Imported Upstream version 2.8.3
[platform/upstream/man-db.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for man-db 2.8.3.
4 #
5 # Report bugs to <cjwatson@debian.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
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: cjwatson@debian.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='man-db'
592 PACKAGE_TARNAME='man-db'
593 PACKAGE_VERSION='2.8.3'
594 PACKAGE_STRING='man-db 2.8.3'
595 PACKAGE_BUGREPORT='cjwatson@debian.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/man.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 gl_use_threads_default=
636 gl_func_list=
637 gl_header_list=
638 gl_fnmatch_required=POSIX
639 gl_getopt_required=POSIX
640 gl_getopt_required=POSIX
641 gt_needs=
642 ac_subst_vars='gltests_LTLIBOBJS
643 gltests_LIBOBJS
644 gl_LTLIBOBJS
645 gl_LIBOBJS
646 am__EXEEXT_FALSE
647 am__EXEEXT_TRUE
648 LTLIBOBJS
649 LIBOBJS
650 HAVE_GNULIB_PO_FALSE
651 HAVE_GNULIB_PO_TRUE
652 CROSS_COMPILING_FALSE
653 CROSS_COMPILING_TRUE
654 TRANS_ZSOELIM_UPPER
655 TRANS_ZSOELIM
656 TRANS_WHATIS_UPPER
657 TRANS_WHATIS
658 TRANS_MANPATH_UPPER
659 TRANS_MANPATH
660 TRANS_MANDB_UPPER
661 TRANS_MANDB
662 TRANS_MANCONV_UPPER
663 TRANS_MANCONV
664 TRANS_MAN_UPPER
665 TRANS_MAN
666 TRANS_LEXGROG_UPPER
667 TRANS_LEXGROG
668 TRANS_CATMAN_UPPER
669 TRANS_CATMAN
670 TRANS_APROPOS_UPPER
671 TRANS_APROPOS
672 libseccomp_LIBS
673 libseccomp_CFLAGS
674 DBLIBS
675 DBTYPE
676 libpipeline_LIBS
677 libpipeline_CFLAGS
678 MAN_SUBDIRS
679 PO4A_FALSE
680 PO4A_TRUE
681 PO4A
682 LINGUAS
683 POSUB
684 INTLLIBS
685 LTLIBICONV
686 LIBICONV
687 INTL_MACOSX_LIBS
688 XGETTEXT_EXTRA_OPTIONS
689 MSGMERGE
690 XGETTEXT_015
691 XGETTEXT
692 GMSGFMT_015
693 MSGFMT_015
694 GMSGFMT
695 MSGFMT
696 GETTEXT_MACRO_VERSION
697 USE_NLS
698 gltests_WITNESS
699 REPLACE_TOWLOWER
700 REPLACE_ISWCNTRL
701 HAVE_WCTYPE_H
702 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
703 NEXT_WCTYPE_H
704 HAVE_ISWCNTRL
705 REPLACE_ISWBLANK
706 HAVE_WCTRANS_T
707 HAVE_WCTYPE_T
708 HAVE_ISWBLANK
709 GNULIB_TOWCTRANS
710 GNULIB_WCTRANS
711 GNULIB_ISWCTYPE
712 GNULIB_WCTYPE
713 GNULIB_ISWBLANK
714 HAVE_WINT_T
715 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
716 NEXT_WCHAR_H
717 HAVE_FEATURES_H
718 HAVE_UNISTD_H
719 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
720 NEXT_UNISTD_H
721 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
722 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
723 TIME_H_DEFINES_STRUCT_TIMESPEC
724 NEXT_AS_FIRST_DIRECTIVE_TIME_H
725 NEXT_TIME_H
726 GL_GENERATE_SYSEXITS_H_FALSE
727 GL_GENERATE_SYSEXITS_H_TRUE
728 SYSEXITS_H
729 HAVE_SYSEXITS_H
730 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
731 NEXT_SYSEXITS_H
732 HAVE_SYS_UIO_H
733 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
734 NEXT_SYS_UIO_H
735 WINDOWS_64_BIT_OFF_T
736 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
737 NEXT_SYS_TYPES_H
738 NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H
739 NEXT_SYS_IOCTL_H
740 HAVE_SYS_IOCTL_H
741 HAVE_SYS_FILE_H
742 NEXT_AS_FIRST_DIRECTIVE_SYS_FILE_H
743 NEXT_SYS_FILE_H
744 HAVE_STRINGS_H
745 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
746 NEXT_STRINGS_H
747 NEXT_AS_FIRST_DIRECTIVE_STRING_H
748 NEXT_STRING_H
749 HAVE_DECL_STRNCASECMP
750 HAVE_STRCASECMP
751 HAVE_FFS
752 GNULIB_FFS
753 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
754 NEXT_STDLIB_H
755 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
756 NEXT_STDIO_H
757 GL_GENERATE_STDINT_H_FALSE
758 GL_GENERATE_STDINT_H_TRUE
759 STDINT_H
760 WINT_T_SUFFIX
761 WCHAR_T_SUFFIX
762 SIG_ATOMIC_T_SUFFIX
763 SIZE_T_SUFFIX
764 PTRDIFF_T_SUFFIX
765 HAVE_SIGNED_WINT_T
766 HAVE_SIGNED_WCHAR_T
767 HAVE_SIGNED_SIG_ATOMIC_T
768 BITSIZEOF_WINT_T
769 BITSIZEOF_WCHAR_T
770 BITSIZEOF_SIG_ATOMIC_T
771 BITSIZEOF_SIZE_T
772 BITSIZEOF_PTRDIFF_T
773 HAVE_SYS_BITYPES_H
774 HAVE_SYS_INTTYPES_H
775 HAVE_STDINT_H
776 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
777 NEXT_STDINT_H
778 HAVE_SYS_TYPES_H
779 HAVE_INTTYPES_H
780 HAVE_WCHAR_H
781 HAVE_UNSIGNED_LONG_LONG_INT
782 HAVE_LONG_LONG_INT
783 HAVE__BOOL
784 GL_GENERATE_STDBOOL_H_FALSE
785 GL_GENERATE_STDBOOL_H_TRUE
786 STDBOOL_H
787 GL_GENERATE_STDARG_H_FALSE
788 GL_GENERATE_STDARG_H_TRUE
789 STDARG_H
790 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
791 NEXT_STDARG_H
792 GL_GENERATE_STDALIGN_H_FALSE
793 GL_GENERATE_STDALIGN_H_TRUE
794 STDALIGN_H
795 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
796 NEXT_SIGNAL_H
797 REPLACE_RAISE
798 REPLACE_PTHREAD_SIGMASK
799 HAVE_SIGHANDLER_T
800 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
801 HAVE_STRUCT_SIGACTION_SA_SIGACTION
802 HAVE_SIGACTION
803 HAVE_SIGINFO_T
804 HAVE_SIGSET_T
805 HAVE_RAISE
806 HAVE_PTHREAD_SIGMASK
807 HAVE_POSIX_SIGNALBLOCKING
808 GNULIB_SIGACTION
809 GNULIB_SIGPROCMASK
810 GNULIB_SIGNAL_H_SIGPIPE
811 GNULIB_RAISE
812 GNULIB_PTHREAD_SIGMASK
813 ASM_SYMBOL_PREFIX
814 LIB_NANOSLEEP
815 LIB_SELECT
816 LIBSOCKET
817 HAVE_SYS_SELECT_H
818 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
819 NEXT_SYS_SELECT_H
820 REPLACE_SELECT
821 REPLACE_PSELECT
822 HAVE_PSELECT
823 GNULIB_SELECT
824 GNULIB_PSELECT
825 REPLACE_LOCALTIME
826 REPLACE_GMTIME
827 REPLACE_TIMEGM
828 REPLACE_NANOSLEEP
829 REPLACE_MKTIME
830 REPLACE_LOCALTIME_R
831 HAVE_TIMEGM
832 HAVE_STRPTIME
833 HAVE_NANOSLEEP
834 HAVE_DECL_LOCALTIME_R
835 GNULIB_TIME_R
836 GNULIB_TIMEGM
837 GNULIB_STRPTIME
838 GNULIB_NANOSLEEP
839 GNULIB_MKTIME
840 APPLE_UNIVERSAL_BUILD
841 UNDEFINE_STRTOK_R
842 REPLACE_STRTOK_R
843 REPLACE_STRSIGNAL
844 REPLACE_STRNLEN
845 REPLACE_STRNDUP
846 REPLACE_STRNCAT
847 REPLACE_STRERROR_R
848 REPLACE_STRERROR
849 REPLACE_STRCHRNUL
850 REPLACE_STRCASESTR
851 REPLACE_STRSTR
852 REPLACE_STRDUP
853 REPLACE_STPNCPY
854 REPLACE_MEMMEM
855 REPLACE_MEMCHR
856 HAVE_STRVERSCMP
857 HAVE_DECL_STRSIGNAL
858 HAVE_DECL_STRERROR_R
859 HAVE_DECL_STRTOK_R
860 HAVE_STRCASESTR
861 HAVE_STRSEP
862 HAVE_STRPBRK
863 HAVE_DECL_STRNLEN
864 HAVE_DECL_STRNDUP
865 HAVE_DECL_STRDUP
866 HAVE_STRCHRNUL
867 HAVE_STPNCPY
868 HAVE_STPCPY
869 HAVE_RAWMEMCHR
870 HAVE_DECL_MEMRCHR
871 HAVE_MEMPCPY
872 HAVE_DECL_MEMMEM
873 HAVE_MEMCHR
874 HAVE_FFSLL
875 HAVE_FFSL
876 HAVE_MBSLEN
877 GNULIB_STRVERSCMP
878 GNULIB_STRSIGNAL
879 GNULIB_STRERROR_R
880 GNULIB_STRERROR
881 GNULIB_MBSTOK_R
882 GNULIB_MBSSEP
883 GNULIB_MBSSPN
884 GNULIB_MBSPBRK
885 GNULIB_MBSCSPN
886 GNULIB_MBSCASESTR
887 GNULIB_MBSPCASECMP
888 GNULIB_MBSNCASECMP
889 GNULIB_MBSCASECMP
890 GNULIB_MBSSTR
891 GNULIB_MBSRCHR
892 GNULIB_MBSCHR
893 GNULIB_MBSNLEN
894 GNULIB_MBSLEN
895 GNULIB_STRTOK_R
896 GNULIB_STRCASESTR
897 GNULIB_STRSTR
898 GNULIB_STRSEP
899 GNULIB_STRPBRK
900 GNULIB_STRNLEN
901 GNULIB_STRNDUP
902 GNULIB_STRNCAT
903 GNULIB_STRDUP
904 GNULIB_STRCHRNUL
905 GNULIB_STPNCPY
906 GNULIB_STPCPY
907 GNULIB_RAWMEMCHR
908 GNULIB_MEMRCHR
909 GNULIB_MEMPCPY
910 GNULIB_MEMMEM
911 GNULIB_MEMCHR
912 GNULIB_FFSLL
913 GNULIB_FFSL
914 LOCALE_FR_UTF8
915 LOCALE_ZH_CN
916 LOCALE_JA
917 LTLIBMULTITHREAD
918 LIBMULTITHREAD
919 LTLIBTHREAD
920 LIBTHREAD
921 LIBPTH_PREFIX
922 LTLIBPTH
923 LIBPTH
924 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
925 NEXT_LOCALE_H
926 HAVE_XLOCALE_H
927 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
928 NEXT_STDDEF_H
929 GL_GENERATE_STDDEF_H_FALSE
930 GL_GENERATE_STDDEF_H_TRUE
931 STDDEF_H
932 HAVE_WCHAR_T
933 REPLACE_NULL
934 REPLACE_STRUCT_LCONV
935 REPLACE_DUPLOCALE
936 REPLACE_SETLOCALE
937 REPLACE_LOCALECONV
938 HAVE_DUPLOCALE
939 GNULIB_DUPLOCALE
940 GNULIB_SETLOCALE
941 GNULIB_LOCALECONV
942 LOCALCHARSET_TESTS_ENVIRONMENT
943 GLIBC21
944 IGNORE_UNUSED_LIBRARIES_CFLAGS
945 HAVE_LANGINFO_YESEXPR
946 HAVE_LANGINFO_ERA
947 HAVE_LANGINFO_T_FMT_AMPM
948 HAVE_LANGINFO_CODESET
949 HAVE_LANGINFO_H
950 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
951 NEXT_LANGINFO_H
952 REPLACE_NL_LANGINFO
953 HAVE_NL_LANGINFO
954 GNULIB_NL_LANGINFO
955 HAVE_WS2TCPIP_H
956 HAVE_SYS_SOCKET_H
957 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
958 NEXT_SYS_SOCKET_H
959 HAVE_ACCEPT4
960 HAVE_SA_FAMILY_T
961 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
962 HAVE_STRUCT_SOCKADDR_STORAGE
963 GNULIB_ACCEPT4
964 GNULIB_SHUTDOWN
965 GNULIB_SETSOCKOPT
966 GNULIB_SENDTO
967 GNULIB_RECVFROM
968 GNULIB_SEND
969 GNULIB_RECV
970 GNULIB_LISTEN
971 GNULIB_GETSOCKOPT
972 GNULIB_GETSOCKNAME
973 GNULIB_GETPEERNAME
974 GNULIB_BIND
975 GNULIB_ACCEPT
976 GNULIB_CONNECT
977 GNULIB_SOCKET
978 HAVE_SYS_CDEFS_H
979 GL_GENERATE_GLOB_H_FALSE
980 GL_GENERATE_GLOB_H_TRUE
981 GLOB_H
982 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
983 NEXT_SYS_TIME_H
984 REPLACE_STRUCT_TIMEVAL
985 REPLACE_GETTIMEOFDAY
986 HAVE_SYS_TIME_H
987 HAVE_STRUCT_TIMEVAL
988 HAVE_GETTIMEOFDAY
989 GNULIB_GETTIMEOFDAY
990 LTLIBINTL
991 LIBINTL
992 GNULIB_GL_UNISTD_H_GETOPT
993 GETOPT_H
994 HAVE_GETOPT_H
995 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
996 NEXT_GETOPT_H
997 REPLACE_VSPRINTF
998 REPLACE_VSNPRINTF
999 REPLACE_VPRINTF
1000 REPLACE_VFPRINTF
1001 REPLACE_VDPRINTF
1002 REPLACE_VASPRINTF
1003 REPLACE_TMPFILE
1004 REPLACE_STDIO_WRITE_FUNCS
1005 REPLACE_STDIO_READ_FUNCS
1006 REPLACE_SPRINTF
1007 REPLACE_SNPRINTF
1008 REPLACE_RENAMEAT
1009 REPLACE_RENAME
1010 REPLACE_REMOVE
1011 REPLACE_PRINTF
1012 REPLACE_POPEN
1013 REPLACE_PERROR
1014 REPLACE_OBSTACK_PRINTF
1015 REPLACE_GETLINE
1016 REPLACE_GETDELIM
1017 REPLACE_FTELLO
1018 REPLACE_FTELL
1019 REPLACE_FSEEKO
1020 REPLACE_FSEEK
1021 REPLACE_FREOPEN
1022 REPLACE_FPURGE
1023 REPLACE_FPRINTF
1024 REPLACE_FOPEN
1025 REPLACE_FFLUSH
1026 REPLACE_FDOPEN
1027 REPLACE_FCLOSE
1028 REPLACE_DPRINTF
1029 HAVE_VDPRINTF
1030 HAVE_VASPRINTF
1031 HAVE_RENAMEAT
1032 HAVE_POPEN
1033 HAVE_PCLOSE
1034 HAVE_FTELLO
1035 HAVE_FSEEKO
1036 HAVE_DPRINTF
1037 HAVE_DECL_VSNPRINTF
1038 HAVE_DECL_SNPRINTF
1039 HAVE_DECL_OBSTACK_PRINTF
1040 HAVE_DECL_GETLINE
1041 HAVE_DECL_GETDELIM
1042 HAVE_DECL_FTELLO
1043 HAVE_DECL_FSEEKO
1044 HAVE_DECL_FPURGE
1045 GNULIB_VSPRINTF_POSIX
1046 GNULIB_VSNPRINTF
1047 GNULIB_VPRINTF_POSIX
1048 GNULIB_VPRINTF
1049 GNULIB_VFPRINTF_POSIX
1050 GNULIB_VFPRINTF
1051 GNULIB_VDPRINTF
1052 GNULIB_VSCANF
1053 GNULIB_VFSCANF
1054 GNULIB_VASPRINTF
1055 GNULIB_TMPFILE
1056 GNULIB_STDIO_H_SIGPIPE
1057 GNULIB_STDIO_H_NONBLOCKING
1058 GNULIB_SPRINTF_POSIX
1059 GNULIB_SNPRINTF
1060 GNULIB_SCANF
1061 GNULIB_RENAMEAT
1062 GNULIB_RENAME
1063 GNULIB_REMOVE
1064 GNULIB_PUTS
1065 GNULIB_PUTCHAR
1066 GNULIB_PUTC
1067 GNULIB_PRINTF_POSIX
1068 GNULIB_PRINTF
1069 GNULIB_POPEN
1070 GNULIB_PERROR
1071 GNULIB_PCLOSE
1072 GNULIB_OBSTACK_PRINTF_POSIX
1073 GNULIB_OBSTACK_PRINTF
1074 GNULIB_GETLINE
1075 GNULIB_GETDELIM
1076 GNULIB_GETCHAR
1077 GNULIB_GETC
1078 GNULIB_FWRITE
1079 GNULIB_FTELLO
1080 GNULIB_FTELL
1081 GNULIB_FSEEKO
1082 GNULIB_FSEEK
1083 GNULIB_FSCANF
1084 GNULIB_FREOPEN
1085 GNULIB_FREAD
1086 GNULIB_FPUTS
1087 GNULIB_FPUTC
1088 GNULIB_FPURGE
1089 GNULIB_FPRINTF_POSIX
1090 GNULIB_FPRINTF
1091 GNULIB_FOPEN
1092 GNULIB_FGETS
1093 GNULIB_FGETC
1094 GNULIB_FFLUSH
1095 GNULIB_FDOPEN
1096 GNULIB_FCLOSE
1097 GNULIB_DPRINTF
1098 WINDOWS_64_BIT_ST_SIZE
1099 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1100 NEXT_SYS_STAT_H
1101 REPLACE_UTIMENSAT
1102 REPLACE_STAT
1103 REPLACE_MKNOD
1104 REPLACE_MKFIFO
1105 REPLACE_MKDIR
1106 REPLACE_LSTAT
1107 REPLACE_FUTIMENS
1108 REPLACE_FSTATAT
1109 REPLACE_FSTAT
1110 HAVE_UTIMENSAT
1111 HAVE_MKNODAT
1112 HAVE_MKNOD
1113 HAVE_MKFIFOAT
1114 HAVE_MKFIFO
1115 HAVE_MKDIRAT
1116 HAVE_LSTAT
1117 HAVE_LCHMOD
1118 HAVE_FUTIMENS
1119 HAVE_FSTATAT
1120 HAVE_FCHMODAT
1121 GNULIB_UTIMENSAT
1122 GNULIB_STAT
1123 GNULIB_MKNODAT
1124 GNULIB_MKNOD
1125 GNULIB_MKFIFOAT
1126 GNULIB_MKFIFO
1127 GNULIB_MKDIRAT
1128 GNULIB_LSTAT
1129 GNULIB_LCHMOD
1130 GNULIB_FUTIMENS
1131 GNULIB_FSTATAT
1132 GNULIB_FSTAT
1133 GNULIB_FCHMODAT
1134 GL_GENERATE_FNMATCH_H_FALSE
1135 GL_GENERATE_FNMATCH_H_TRUE
1136 FNMATCH_H
1137 HAVE_FLOCK
1138 GNULIB_FLOCK
1139 REPLACE_ITOLD
1140 GL_GENERATE_FLOAT_H_FALSE
1141 GL_GENERATE_FLOAT_H_TRUE
1142 FLOAT_H
1143 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1144 NEXT_FLOAT_H
1145 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1146 NEXT_FCNTL_H
1147 REPLACE_OPENAT
1148 REPLACE_OPEN
1149 REPLACE_FCNTL
1150 HAVE_OPENAT
1151 HAVE_FCNTL
1152 GNULIB_OPENAT
1153 GNULIB_OPEN
1154 GNULIB_NONBLOCKING
1155 GNULIB_FCNTL
1156 EOVERFLOW_VALUE
1157 EOVERFLOW_HIDDEN
1158 ENOLINK_VALUE
1159 ENOLINK_HIDDEN
1160 EMULTIHOP_VALUE
1161 EMULTIHOP_HIDDEN
1162 GL_GENERATE_ERRNO_H_FALSE
1163 GL_GENERATE_ERRNO_H_TRUE
1164 ERRNO_H
1165 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1166 NEXT_ERRNO_H
1167 HAVE_DIRENT_H
1168 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1169 NEXT_DIRENT_H
1170 PRAGMA_COLUMNS
1171 PRAGMA_SYSTEM_HEADER
1172 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1173 INCLUDE_NEXT
1174 pkglibexecdir
1175 lispdir
1176 REPLACE_FDOPENDIR
1177 REPLACE_DIRFD
1178 REPLACE_CLOSEDIR
1179 REPLACE_OPENDIR
1180 HAVE_ALPHASORT
1181 HAVE_SCANDIR
1182 HAVE_FDOPENDIR
1183 HAVE_DECL_FDOPENDIR
1184 HAVE_DECL_DIRFD
1185 HAVE_CLOSEDIR
1186 HAVE_REWINDDIR
1187 HAVE_READDIR
1188 HAVE_OPENDIR
1189 GNULIB_ALPHASORT
1190 GNULIB_SCANDIR
1191 GNULIB_FDOPENDIR
1192 GNULIB_DIRFD
1193 GNULIB_CLOSEDIR
1194 GNULIB_REWINDDIR
1195 GNULIB_READDIR
1196 GNULIB_OPENDIR
1197 HAVE_WINSOCK2_H
1198 REPLACE_IOCTL
1199 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1200 SYS_IOCTL_H_HAVE_WINSOCK2_H
1201 GNULIB_IOCTL
1202 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1203 LIB_CLOCK_GETTIME
1204 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1205 UNISTD_H_HAVE_WINSOCK2_H
1206 REPLACE_WRITE
1207 REPLACE_USLEEP
1208 REPLACE_UNLINKAT
1209 REPLACE_UNLINK
1210 REPLACE_TTYNAME_R
1211 REPLACE_SYMLINK
1212 REPLACE_SLEEP
1213 REPLACE_RMDIR
1214 REPLACE_READLINK
1215 REPLACE_READ
1216 REPLACE_PWRITE
1217 REPLACE_PREAD
1218 REPLACE_LSEEK
1219 REPLACE_LINKAT
1220 REPLACE_LINK
1221 REPLACE_LCHOWN
1222 REPLACE_ISATTY
1223 REPLACE_GETPAGESIZE
1224 REPLACE_GETGROUPS
1225 REPLACE_GETLOGIN_R
1226 REPLACE_GETDTABLESIZE
1227 REPLACE_GETDOMAINNAME
1228 REPLACE_GETCWD
1229 REPLACE_FTRUNCATE
1230 REPLACE_FCHOWNAT
1231 REPLACE_DUP2
1232 REPLACE_DUP
1233 REPLACE_CLOSE
1234 REPLACE_CHOWN
1235 HAVE_SYS_PARAM_H
1236 HAVE_OS_H
1237 HAVE_DECL_TTYNAME_R
1238 HAVE_DECL_SETHOSTNAME
1239 HAVE_DECL_GETUSERSHELL
1240 HAVE_DECL_GETPAGESIZE
1241 HAVE_DECL_GETLOGIN_R
1242 HAVE_DECL_GETDOMAINNAME
1243 HAVE_DECL_FDATASYNC
1244 HAVE_DECL_FCHDIR
1245 HAVE_DECL_ENVIRON
1246 HAVE_USLEEP
1247 HAVE_UNLINKAT
1248 HAVE_SYMLINKAT
1249 HAVE_SYMLINK
1250 HAVE_SLEEP
1251 HAVE_SETHOSTNAME
1252 HAVE_READLINKAT
1253 HAVE_READLINK
1254 HAVE_PWRITE
1255 HAVE_PREAD
1256 HAVE_PIPE2
1257 HAVE_PIPE
1258 HAVE_LINKAT
1259 HAVE_LINK
1260 HAVE_LCHOWN
1261 HAVE_GROUP_MEMBER
1262 HAVE_GETPAGESIZE
1263 HAVE_GETLOGIN
1264 HAVE_GETHOSTNAME
1265 HAVE_GETGROUPS
1266 HAVE_GETDTABLESIZE
1267 HAVE_FTRUNCATE
1268 HAVE_FSYNC
1269 HAVE_FDATASYNC
1270 HAVE_FCHOWNAT
1271 HAVE_FCHDIR
1272 HAVE_FACCESSAT
1273 HAVE_EUIDACCESS
1274 HAVE_DUP3
1275 HAVE_DUP2
1276 HAVE_CHOWN
1277 GNULIB_WRITE
1278 GNULIB_USLEEP
1279 GNULIB_UNLINKAT
1280 GNULIB_UNLINK
1281 GNULIB_UNISTD_H_SIGPIPE
1282 GNULIB_UNISTD_H_NONBLOCKING
1283 GNULIB_TTYNAME_R
1284 GNULIB_SYMLINKAT
1285 GNULIB_SYMLINK
1286 GNULIB_SLEEP
1287 GNULIB_SETHOSTNAME
1288 GNULIB_RMDIR
1289 GNULIB_READLINKAT
1290 GNULIB_READLINK
1291 GNULIB_READ
1292 GNULIB_PWRITE
1293 GNULIB_PREAD
1294 GNULIB_PIPE2
1295 GNULIB_PIPE
1296 GNULIB_LSEEK
1297 GNULIB_LINKAT
1298 GNULIB_LINK
1299 GNULIB_LCHOWN
1300 GNULIB_ISATTY
1301 GNULIB_GROUP_MEMBER
1302 GNULIB_GETUSERSHELL
1303 GNULIB_GETPAGESIZE
1304 GNULIB_GETLOGIN_R
1305 GNULIB_GETLOGIN
1306 GNULIB_GETHOSTNAME
1307 GNULIB_GETGROUPS
1308 GNULIB_GETDTABLESIZE
1309 GNULIB_GETDOMAINNAME
1310 GNULIB_GETCWD
1311 GNULIB_FTRUNCATE
1312 GNULIB_FSYNC
1313 GNULIB_FDATASYNC
1314 GNULIB_FCHOWNAT
1315 GNULIB_FCHDIR
1316 GNULIB_FACCESSAT
1317 GNULIB_EUIDACCESS
1318 GNULIB_ENVIRON
1319 GNULIB_DUP3
1320 GNULIB_DUP2
1321 GNULIB_DUP
1322 GNULIB_CLOSE
1323 GNULIB_CHOWN
1324 GNULIB_CHDIR
1325 REPLACE_WCTOMB
1326 REPLACE_UNSETENV
1327 REPLACE_STRTOD
1328 REPLACE_SETENV
1329 REPLACE_REALPATH
1330 REPLACE_REALLOC
1331 REPLACE_RANDOM_R
1332 REPLACE_PUTENV
1333 REPLACE_PTSNAME_R
1334 REPLACE_PTSNAME
1335 REPLACE_MKSTEMP
1336 REPLACE_MBTOWC
1337 REPLACE_MALLOC
1338 REPLACE_CANONICALIZE_FILE_NAME
1339 REPLACE_CALLOC
1340 HAVE_DECL_UNSETENV
1341 HAVE_UNLOCKPT
1342 HAVE_SYS_LOADAVG_H
1343 HAVE_STRUCT_RANDOM_DATA
1344 HAVE_STRTOULL
1345 HAVE_STRTOLL
1346 HAVE_STRTOD
1347 HAVE_DECL_SETENV
1348 HAVE_SETENV
1349 HAVE_SECURE_GETENV
1350 HAVE_RPMATCH
1351 HAVE_REALPATH
1352 HAVE_RANDOM_R
1353 HAVE_RANDOM_H
1354 HAVE_RANDOM
1355 HAVE_PTSNAME_R
1356 HAVE_PTSNAME
1357 HAVE_POSIX_OPENPT
1358 HAVE_MKSTEMPS
1359 HAVE_MKSTEMP
1360 HAVE_MKOSTEMPS
1361 HAVE_MKOSTEMP
1362 HAVE_MKDTEMP
1363 HAVE_GRANTPT
1364 HAVE_GETSUBOPT
1365 HAVE_DECL_GETLOADAVG
1366 HAVE_CANONICALIZE_FILE_NAME
1367 HAVE_ATOLL
1368 HAVE__EXIT
1369 GNULIB_WCTOMB
1370 GNULIB_UNSETENV
1371 GNULIB_UNLOCKPT
1372 GNULIB_SYSTEM_POSIX
1373 GNULIB_STRTOULL
1374 GNULIB_STRTOLL
1375 GNULIB_STRTOD
1376 GNULIB_SETENV
1377 GNULIB_SECURE_GETENV
1378 GNULIB_RPMATCH
1379 GNULIB_REALPATH
1380 GNULIB_REALLOC_POSIX
1381 GNULIB_RANDOM_R
1382 GNULIB_RANDOM
1383 GNULIB_PUTENV
1384 GNULIB_PTSNAME_R
1385 GNULIB_PTSNAME
1386 GNULIB_POSIX_OPENPT
1387 GNULIB_MKSTEMPS
1388 GNULIB_MKSTEMP
1389 GNULIB_MKOSTEMPS
1390 GNULIB_MKOSTEMP
1391 GNULIB_MKDTEMP
1392 GNULIB_MBTOWC
1393 GNULIB_MALLOC_POSIX
1394 GNULIB_GRANTPT
1395 GNULIB_GETSUBOPT
1396 GNULIB_GETLOADAVG
1397 GNULIB_CANONICALIZE_FILE_NAME
1398 GNULIB_CALLOC_POSIX
1399 GNULIB_ATOLL
1400 GNULIB__EXIT
1401 LOCALE_FR
1402 REPLACE_WCSWIDTH
1403 REPLACE_WCWIDTH
1404 REPLACE_WCSNRTOMBS
1405 REPLACE_WCSRTOMBS
1406 REPLACE_WCRTOMB
1407 REPLACE_MBSNRTOWCS
1408 REPLACE_MBSRTOWCS
1409 REPLACE_MBRLEN
1410 REPLACE_MBRTOWC
1411 REPLACE_MBSINIT
1412 REPLACE_WCTOB
1413 REPLACE_BTOWC
1414 REPLACE_MBSTATE_T
1415 HAVE_DECL_WCWIDTH
1416 HAVE_DECL_WCTOB
1417 HAVE_WCSWIDTH
1418 HAVE_WCSTOK
1419 HAVE_WCSSTR
1420 HAVE_WCSPBRK
1421 HAVE_WCSSPN
1422 HAVE_WCSCSPN
1423 HAVE_WCSRCHR
1424 HAVE_WCSCHR
1425 HAVE_WCSDUP
1426 HAVE_WCSXFRM
1427 HAVE_WCSCOLL
1428 HAVE_WCSNCASECMP
1429 HAVE_WCSCASECMP
1430 HAVE_WCSNCMP
1431 HAVE_WCSCMP
1432 HAVE_WCSNCAT
1433 HAVE_WCSCAT
1434 HAVE_WCPNCPY
1435 HAVE_WCSNCPY
1436 HAVE_WCPCPY
1437 HAVE_WCSCPY
1438 HAVE_WCSNLEN
1439 HAVE_WCSLEN
1440 HAVE_WMEMSET
1441 HAVE_WMEMMOVE
1442 HAVE_WMEMCPY
1443 HAVE_WMEMCMP
1444 HAVE_WMEMCHR
1445 HAVE_WCSNRTOMBS
1446 HAVE_WCSRTOMBS
1447 HAVE_WCRTOMB
1448 HAVE_MBSNRTOWCS
1449 HAVE_MBSRTOWCS
1450 HAVE_MBRLEN
1451 HAVE_MBRTOWC
1452 HAVE_MBSINIT
1453 HAVE_BTOWC
1454 GNULIB_WCSWIDTH
1455 GNULIB_WCSTOK
1456 GNULIB_WCSSTR
1457 GNULIB_WCSPBRK
1458 GNULIB_WCSSPN
1459 GNULIB_WCSCSPN
1460 GNULIB_WCSRCHR
1461 GNULIB_WCSCHR
1462 GNULIB_WCSDUP
1463 GNULIB_WCSXFRM
1464 GNULIB_WCSCOLL
1465 GNULIB_WCSNCASECMP
1466 GNULIB_WCSCASECMP
1467 GNULIB_WCSNCMP
1468 GNULIB_WCSCMP
1469 GNULIB_WCSNCAT
1470 GNULIB_WCSCAT
1471 GNULIB_WCPNCPY
1472 GNULIB_WCSNCPY
1473 GNULIB_WCPCPY
1474 GNULIB_WCSCPY
1475 GNULIB_WCSNLEN
1476 GNULIB_WCSLEN
1477 GNULIB_WMEMSET
1478 GNULIB_WMEMMOVE
1479 GNULIB_WMEMCPY
1480 GNULIB_WMEMCMP
1481 GNULIB_WMEMCHR
1482 GNULIB_WCWIDTH
1483 GNULIB_WCSNRTOMBS
1484 GNULIB_WCSRTOMBS
1485 GNULIB_WCRTOMB
1486 GNULIB_MBSNRTOWCS
1487 GNULIB_MBSRTOWCS
1488 GNULIB_MBRLEN
1489 GNULIB_MBRTOWC
1490 GNULIB_MBSINIT
1491 GNULIB_WCTOB
1492 GNULIB_BTOWC
1493 GL_GENERATE_ALLOCA_H_FALSE
1494 GL_GENERATE_ALLOCA_H_TRUE
1495 ALLOCA_H
1496 ALLOCA
1497 LTALLOCA
1498 GL_COND_LIBTOOL_FALSE
1499 GL_COND_LIBTOOL_TRUE
1500 LEXLIB
1501 LEX_OUTPUT_ROOT
1502 LEX
1503 LIBCOMPRESS
1504 unlzip
1505 unxz
1506 unlzma
1507 bunzip2
1508 uncompress
1509 gunzip
1510 compress_ext
1511 compressor
1512 lzip
1513 lzma
1514 xz
1515 bzip2
1516 compress
1517 gzip
1518 pic
1519 grap
1520 refer
1521 vgrind
1522 col
1523 TBL_X_FORMAT
1524 tbl
1525 neqn
1526 eqn
1527 preconv
1528 TROFF
1529 troff
1530 nroff
1531 pager
1532 grep
1533 tr
1534 browser
1535 cat
1536 WARN_CFLAGS
1537 ARFLAGS
1538 MANDIR_LAYOUT
1539 systemdtmpfilesdir
1540 override_dir
1541 sections
1542 config_file_dirname
1543 config_file_basename
1544 config_file
1545 man_mode
1546 man_owner
1547 PKG_CONFIG_LIBDIR
1548 PKG_CONFIG_PATH
1549 PKG_CONFIG
1550 roff_version
1551 date
1552 LT_SYS_LIBRARY_PATH
1553 OTOOL64
1554 OTOOL
1555 LIPO
1556 NMEDIT
1557 DSYMUTIL
1558 MANIFEST_TOOL
1559 RANLIB
1560 DLLTOOL
1561 OBJDUMP
1562 LN_S
1563 NM
1564 ac_ct_DUMPBIN
1565 DUMPBIN
1566 LD
1567 FGREP
1568 SED
1569 host_os
1570 host_vendor
1571 host_cpu
1572 host
1573 build_os
1574 build_vendor
1575 build_cpu
1576 build
1577 LIBTOOL
1578 ac_ct_AR
1579 AR
1580 EGREP
1581 GREP
1582 CPP
1583 am__fastdepCC_FALSE
1584 am__fastdepCC_TRUE
1585 CCDEPMODE
1586 am__nodep
1587 AMDEPBACKSLASH
1588 AMDEP_FALSE
1589 AMDEP_TRUE
1590 am__quote
1591 am__include
1592 DEPDIR
1593 OBJEXT
1594 EXEEXT
1595 ac_ct_CC
1596 CPPFLAGS
1597 LDFLAGS
1598 CFLAGS
1599 CC
1600 MAINT
1601 MAINTAINER_MODE_FALSE
1602 MAINTAINER_MODE_TRUE
1603 AM_BACKSLASH
1604 AM_DEFAULT_VERBOSITY
1605 AM_DEFAULT_V
1606 AM_V
1607 am__untar
1608 am__tar
1609 AMTAR
1610 am__leading_dot
1611 SET_MAKE
1612 AWK
1613 mkdir_p
1614 MKDIR_P
1615 INSTALL_STRIP_PROGRAM
1616 STRIP
1617 install_sh
1618 MAKEINFO
1619 AUTOHEADER
1620 AUTOMAKE
1621 AUTOCONF
1622 ACLOCAL
1623 VERSION
1624 PACKAGE
1625 CYGPATH_W
1626 am__isrc
1627 INSTALL_DATA
1628 INSTALL_SCRIPT
1629 INSTALL_PROGRAM
1630 target_alias
1631 host_alias
1632 build_alias
1633 LIBS
1634 ECHO_T
1635 ECHO_N
1636 ECHO_C
1637 DEFS
1638 mandir
1639 localedir
1640 libdir
1641 psdir
1642 pdfdir
1643 dvidir
1644 htmldir
1645 infodir
1646 docdir
1647 oldincludedir
1648 includedir
1649 runstatedir
1650 localstatedir
1651 sharedstatedir
1652 sysconfdir
1653 datadir
1654 datarootdir
1655 libexecdir
1656 sbindir
1657 bindir
1658 program_transform_name
1659 prefix
1660 exec_prefix
1661 PACKAGE_URL
1662 PACKAGE_BUGREPORT
1663 PACKAGE_STRING
1664 PACKAGE_VERSION
1665 PACKAGE_TARNAME
1666 PACKAGE_NAME
1667 PATH_SEPARATOR
1668 SHELL'
1669 ac_subst_files=''
1670 ac_user_opts='
1671 enable_option_checking
1672 enable_silent_rules
1673 enable_maintainer_mode
1674 enable_dependency_tracking
1675 enable_static
1676 enable_shared
1677 with_pic
1678 enable_fast_install
1679 with_aix_soname
1680 with_gnu_ld
1681 with_sysroot
1682 enable_libtool_lock
1683 enable_cache_owner
1684 enable_setuid
1685 enable_undoc
1686 with_device
1687 with_db
1688 with_config_file
1689 with_sections
1690 enable_automatic_create
1691 enable_automatic_update
1692 enable_cats
1693 with_override_dir
1694 with_systemdtmpfilesdir
1695 enable_mandirs
1696 enable_largefile
1697 enable_threads
1698 with_browser
1699 with_pager
1700 with_nroff
1701 enable_mb_groff
1702 with_eqn
1703 with_neqn
1704 with_tbl
1705 with_col
1706 with_vgrind
1707 with_refer
1708 with_grap
1709 with_gzip
1710 with_compress
1711 with_bzip2
1712 with_xz
1713 with_lzma
1714 with_lzip
1715 enable_rpath
1716 with_libpth_prefix
1717 with_included_regex
1718 enable_nls
1719 with_libiconv_prefix
1720 with_libintl_prefix
1721 with_libseccomp
1722 '
1723       ac_precious_vars='build_alias
1724 host_alias
1725 target_alias
1726 CC
1727 CFLAGS
1728 LDFLAGS
1729 LIBS
1730 CPPFLAGS
1731 CPP
1732 LT_SYS_LIBRARY_PATH
1733 PKG_CONFIG
1734 PKG_CONFIG_PATH
1735 PKG_CONFIG_LIBDIR
1736 libpipeline_CFLAGS
1737 libpipeline_LIBS
1738 libseccomp_CFLAGS
1739 libseccomp_LIBS'
1740
1741
1742 # Initialize some variables set by options.
1743 ac_init_help=
1744 ac_init_version=false
1745 ac_unrecognized_opts=
1746 ac_unrecognized_sep=
1747 # The variables have the same names as the options, with
1748 # dashes changed to underlines.
1749 cache_file=/dev/null
1750 exec_prefix=NONE
1751 no_create=
1752 no_recursion=
1753 prefix=NONE
1754 program_prefix=NONE
1755 program_suffix=NONE
1756 program_transform_name=s,x,x,
1757 silent=
1758 site=
1759 srcdir=
1760 verbose=
1761 x_includes=NONE
1762 x_libraries=NONE
1763
1764 # Installation directory options.
1765 # These are left unexpanded so users can "make install exec_prefix=/foo"
1766 # and all the variables that are supposed to be based on exec_prefix
1767 # by default will actually change.
1768 # Use braces instead of parens because sh, perl, etc. also accept them.
1769 # (The list follows the same order as the GNU Coding Standards.)
1770 bindir='${exec_prefix}/bin'
1771 sbindir='${exec_prefix}/sbin'
1772 libexecdir='${exec_prefix}/libexec'
1773 datarootdir='${prefix}/share'
1774 datadir='${datarootdir}'
1775 sysconfdir='${prefix}/etc'
1776 sharedstatedir='${prefix}/com'
1777 localstatedir='${prefix}/var'
1778 runstatedir='${localstatedir}/run'
1779 includedir='${prefix}/include'
1780 oldincludedir='/usr/include'
1781 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1782 infodir='${datarootdir}/info'
1783 htmldir='${docdir}'
1784 dvidir='${docdir}'
1785 pdfdir='${docdir}'
1786 psdir='${docdir}'
1787 libdir='${exec_prefix}/lib'
1788 localedir='${datarootdir}/locale'
1789 mandir='${datarootdir}/man'
1790
1791 ac_prev=
1792 ac_dashdash=
1793 for ac_option
1794 do
1795   # If the previous option needs an argument, assign it.
1796   if test -n "$ac_prev"; then
1797     eval $ac_prev=\$ac_option
1798     ac_prev=
1799     continue
1800   fi
1801
1802   case $ac_option in
1803   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1804   *=)   ac_optarg= ;;
1805   *)    ac_optarg=yes ;;
1806   esac
1807
1808   # Accept the important Cygnus configure options, so we can diagnose typos.
1809
1810   case $ac_dashdash$ac_option in
1811   --)
1812     ac_dashdash=yes ;;
1813
1814   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1815     ac_prev=bindir ;;
1816   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1817     bindir=$ac_optarg ;;
1818
1819   -build | --build | --buil | --bui | --bu)
1820     ac_prev=build_alias ;;
1821   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1822     build_alias=$ac_optarg ;;
1823
1824   -cache-file | --cache-file | --cache-fil | --cache-fi \
1825   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1826     ac_prev=cache_file ;;
1827   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1828   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1829     cache_file=$ac_optarg ;;
1830
1831   --config-cache | -C)
1832     cache_file=config.cache ;;
1833
1834   -datadir | --datadir | --datadi | --datad)
1835     ac_prev=datadir ;;
1836   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1837     datadir=$ac_optarg ;;
1838
1839   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1840   | --dataroo | --dataro | --datar)
1841     ac_prev=datarootdir ;;
1842   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1843   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1844     datarootdir=$ac_optarg ;;
1845
1846   -disable-* | --disable-*)
1847     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1848     # Reject names that are not valid shell variable names.
1849     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1850       as_fn_error $? "invalid feature name: $ac_useropt"
1851     ac_useropt_orig=$ac_useropt
1852     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1853     case $ac_user_opts in
1854       *"
1855 "enable_$ac_useropt"
1856 "*) ;;
1857       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1858          ac_unrecognized_sep=', ';;
1859     esac
1860     eval enable_$ac_useropt=no ;;
1861
1862   -docdir | --docdir | --docdi | --doc | --do)
1863     ac_prev=docdir ;;
1864   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1865     docdir=$ac_optarg ;;
1866
1867   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1868     ac_prev=dvidir ;;
1869   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1870     dvidir=$ac_optarg ;;
1871
1872   -enable-* | --enable-*)
1873     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1874     # Reject names that are not valid shell variable names.
1875     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1876       as_fn_error $? "invalid feature name: $ac_useropt"
1877     ac_useropt_orig=$ac_useropt
1878     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1879     case $ac_user_opts in
1880       *"
1881 "enable_$ac_useropt"
1882 "*) ;;
1883       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1884          ac_unrecognized_sep=', ';;
1885     esac
1886     eval enable_$ac_useropt=\$ac_optarg ;;
1887
1888   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1889   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1890   | --exec | --exe | --ex)
1891     ac_prev=exec_prefix ;;
1892   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1893   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1894   | --exec=* | --exe=* | --ex=*)
1895     exec_prefix=$ac_optarg ;;
1896
1897   -gas | --gas | --ga | --g)
1898     # Obsolete; use --with-gas.
1899     with_gas=yes ;;
1900
1901   -help | --help | --hel | --he | -h)
1902     ac_init_help=long ;;
1903   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1904     ac_init_help=recursive ;;
1905   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1906     ac_init_help=short ;;
1907
1908   -host | --host | --hos | --ho)
1909     ac_prev=host_alias ;;
1910   -host=* | --host=* | --hos=* | --ho=*)
1911     host_alias=$ac_optarg ;;
1912
1913   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1914     ac_prev=htmldir ;;
1915   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1916   | --ht=*)
1917     htmldir=$ac_optarg ;;
1918
1919   -includedir | --includedir | --includedi | --included | --include \
1920   | --includ | --inclu | --incl | --inc)
1921     ac_prev=includedir ;;
1922   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1923   | --includ=* | --inclu=* | --incl=* | --inc=*)
1924     includedir=$ac_optarg ;;
1925
1926   -infodir | --infodir | --infodi | --infod | --info | --inf)
1927     ac_prev=infodir ;;
1928   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1929     infodir=$ac_optarg ;;
1930
1931   -libdir | --libdir | --libdi | --libd)
1932     ac_prev=libdir ;;
1933   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1934     libdir=$ac_optarg ;;
1935
1936   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1937   | --libexe | --libex | --libe)
1938     ac_prev=libexecdir ;;
1939   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1940   | --libexe=* | --libex=* | --libe=*)
1941     libexecdir=$ac_optarg ;;
1942
1943   -localedir | --localedir | --localedi | --localed | --locale)
1944     ac_prev=localedir ;;
1945   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1946     localedir=$ac_optarg ;;
1947
1948   -localstatedir | --localstatedir | --localstatedi | --localstated \
1949   | --localstate | --localstat | --localsta | --localst | --locals)
1950     ac_prev=localstatedir ;;
1951   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1952   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1953     localstatedir=$ac_optarg ;;
1954
1955   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1956     ac_prev=mandir ;;
1957   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1958     mandir=$ac_optarg ;;
1959
1960   -nfp | --nfp | --nf)
1961     # Obsolete; use --without-fp.
1962     with_fp=no ;;
1963
1964   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1965   | --no-cr | --no-c | -n)
1966     no_create=yes ;;
1967
1968   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1969   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1970     no_recursion=yes ;;
1971
1972   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1973   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1974   | --oldin | --oldi | --old | --ol | --o)
1975     ac_prev=oldincludedir ;;
1976   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1977   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1978   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1979     oldincludedir=$ac_optarg ;;
1980
1981   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1982     ac_prev=prefix ;;
1983   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1984     prefix=$ac_optarg ;;
1985
1986   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1987   | --program-pre | --program-pr | --program-p)
1988     ac_prev=program_prefix ;;
1989   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1990   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1991     program_prefix=$ac_optarg ;;
1992
1993   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1994   | --program-suf | --program-su | --program-s)
1995     ac_prev=program_suffix ;;
1996   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1997   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1998     program_suffix=$ac_optarg ;;
1999
2000   -program-transform-name | --program-transform-name \
2001   | --program-transform-nam | --program-transform-na \
2002   | --program-transform-n | --program-transform- \
2003   | --program-transform | --program-transfor \
2004   | --program-transfo | --program-transf \
2005   | --program-trans | --program-tran \
2006   | --progr-tra | --program-tr | --program-t)
2007     ac_prev=program_transform_name ;;
2008   -program-transform-name=* | --program-transform-name=* \
2009   | --program-transform-nam=* | --program-transform-na=* \
2010   | --program-transform-n=* | --program-transform-=* \
2011   | --program-transform=* | --program-transfor=* \
2012   | --program-transfo=* | --program-transf=* \
2013   | --program-trans=* | --program-tran=* \
2014   | --progr-tra=* | --program-tr=* | --program-t=*)
2015     program_transform_name=$ac_optarg ;;
2016
2017   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2018     ac_prev=pdfdir ;;
2019   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2020     pdfdir=$ac_optarg ;;
2021
2022   -psdir | --psdir | --psdi | --psd | --ps)
2023     ac_prev=psdir ;;
2024   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2025     psdir=$ac_optarg ;;
2026
2027   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2028   | -silent | --silent | --silen | --sile | --sil)
2029     silent=yes ;;
2030
2031   -runstatedir | --runstatedir | --runstatedi | --runstated \
2032   | --runstate | --runstat | --runsta | --runst | --runs \
2033   | --run | --ru | --r)
2034     ac_prev=runstatedir ;;
2035   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2036   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2037   | --run=* | --ru=* | --r=*)
2038     runstatedir=$ac_optarg ;;
2039
2040   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2041     ac_prev=sbindir ;;
2042   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2043   | --sbi=* | --sb=*)
2044     sbindir=$ac_optarg ;;
2045
2046   -sharedstatedir | --sharedstatedir | --sharedstatedi \
2047   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2048   | --sharedst | --shareds | --shared | --share | --shar \
2049   | --sha | --sh)
2050     ac_prev=sharedstatedir ;;
2051   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2052   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2053   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2054   | --sha=* | --sh=*)
2055     sharedstatedir=$ac_optarg ;;
2056
2057   -site | --site | --sit)
2058     ac_prev=site ;;
2059   -site=* | --site=* | --sit=*)
2060     site=$ac_optarg ;;
2061
2062   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2063     ac_prev=srcdir ;;
2064   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2065     srcdir=$ac_optarg ;;
2066
2067   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2068   | --syscon | --sysco | --sysc | --sys | --sy)
2069     ac_prev=sysconfdir ;;
2070   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2071   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2072     sysconfdir=$ac_optarg ;;
2073
2074   -target | --target | --targe | --targ | --tar | --ta | --t)
2075     ac_prev=target_alias ;;
2076   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2077     target_alias=$ac_optarg ;;
2078
2079   -v | -verbose | --verbose | --verbos | --verbo | --verb)
2080     verbose=yes ;;
2081
2082   -version | --version | --versio | --versi | --vers | -V)
2083     ac_init_version=: ;;
2084
2085   -with-* | --with-*)
2086     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2087     # Reject names that are not valid shell variable names.
2088     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2089       as_fn_error $? "invalid package name: $ac_useropt"
2090     ac_useropt_orig=$ac_useropt
2091     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2092     case $ac_user_opts in
2093       *"
2094 "with_$ac_useropt"
2095 "*) ;;
2096       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2097          ac_unrecognized_sep=', ';;
2098     esac
2099     eval with_$ac_useropt=\$ac_optarg ;;
2100
2101   -without-* | --without-*)
2102     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2103     # Reject names that are not valid shell variable names.
2104     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2105       as_fn_error $? "invalid package name: $ac_useropt"
2106     ac_useropt_orig=$ac_useropt
2107     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2108     case $ac_user_opts in
2109       *"
2110 "with_$ac_useropt"
2111 "*) ;;
2112       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2113          ac_unrecognized_sep=', ';;
2114     esac
2115     eval with_$ac_useropt=no ;;
2116
2117   --x)
2118     # Obsolete; use --with-x.
2119     with_x=yes ;;
2120
2121   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2122   | --x-incl | --x-inc | --x-in | --x-i)
2123     ac_prev=x_includes ;;
2124   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2125   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2126     x_includes=$ac_optarg ;;
2127
2128   -x-libraries | --x-libraries | --x-librarie | --x-librari \
2129   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2130     ac_prev=x_libraries ;;
2131   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2132   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2133     x_libraries=$ac_optarg ;;
2134
2135   -*) as_fn_error $? "unrecognized option: \`$ac_option'
2136 Try \`$0 --help' for more information"
2137     ;;
2138
2139   *=*)
2140     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2141     # Reject names that are not valid shell variable names.
2142     case $ac_envvar in #(
2143       '' | [0-9]* | *[!_$as_cr_alnum]* )
2144       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2145     esac
2146     eval $ac_envvar=\$ac_optarg
2147     export $ac_envvar ;;
2148
2149   *)
2150     # FIXME: should be removed in autoconf 3.0.
2151     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2152     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2153       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2154     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2155     ;;
2156
2157   esac
2158 done
2159
2160 if test -n "$ac_prev"; then
2161   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2162   as_fn_error $? "missing argument to $ac_option"
2163 fi
2164
2165 if test -n "$ac_unrecognized_opts"; then
2166   case $enable_option_checking in
2167     no) ;;
2168     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2169     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2170   esac
2171 fi
2172
2173 # Check all directory arguments for consistency.
2174 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2175                 datadir sysconfdir sharedstatedir localstatedir includedir \
2176                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2177                 libdir localedir mandir runstatedir
2178 do
2179   eval ac_val=\$$ac_var
2180   # Remove trailing slashes.
2181   case $ac_val in
2182     */ )
2183       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2184       eval $ac_var=\$ac_val;;
2185   esac
2186   # Be sure to have absolute directory names.
2187   case $ac_val in
2188     [\\/$]* | ?:[\\/]* )  continue;;
2189     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2190   esac
2191   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2192 done
2193
2194 # There might be people who depend on the old broken behavior: `$host'
2195 # used to hold the argument of --host etc.
2196 # FIXME: To remove some day.
2197 build=$build_alias
2198 host=$host_alias
2199 target=$target_alias
2200
2201 # FIXME: To remove some day.
2202 if test "x$host_alias" != x; then
2203   if test "x$build_alias" = x; then
2204     cross_compiling=maybe
2205   elif test "x$build_alias" != "x$host_alias"; then
2206     cross_compiling=yes
2207   fi
2208 fi
2209
2210 ac_tool_prefix=
2211 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2212
2213 test "$silent" = yes && exec 6>/dev/null
2214
2215
2216 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2217 ac_ls_di=`ls -di .` &&
2218 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2219   as_fn_error $? "working directory cannot be determined"
2220 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2221   as_fn_error $? "pwd does not report name of working directory"
2222
2223
2224 # Find the source files, if location was not specified.
2225 if test -z "$srcdir"; then
2226   ac_srcdir_defaulted=yes
2227   # Try the directory containing this script, then the parent directory.
2228   ac_confdir=`$as_dirname -- "$as_myself" ||
2229 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2230          X"$as_myself" : 'X\(//\)[^/]' \| \
2231          X"$as_myself" : 'X\(//\)$' \| \
2232          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2233 $as_echo X"$as_myself" |
2234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2235             s//\1/
2236             q
2237           }
2238           /^X\(\/\/\)[^/].*/{
2239             s//\1/
2240             q
2241           }
2242           /^X\(\/\/\)$/{
2243             s//\1/
2244             q
2245           }
2246           /^X\(\/\).*/{
2247             s//\1/
2248             q
2249           }
2250           s/.*/./; q'`
2251   srcdir=$ac_confdir
2252   if test ! -r "$srcdir/$ac_unique_file"; then
2253     srcdir=..
2254   fi
2255 else
2256   ac_srcdir_defaulted=no
2257 fi
2258 if test ! -r "$srcdir/$ac_unique_file"; then
2259   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2260   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2261 fi
2262 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2263 ac_abs_confdir=`(
2264         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2265         pwd)`
2266 # When building in place, set srcdir=.
2267 if test "$ac_abs_confdir" = "$ac_pwd"; then
2268   srcdir=.
2269 fi
2270 # Remove unnecessary trailing slashes from srcdir.
2271 # Double slashes in file names in object file debugging info
2272 # mess up M-x gdb in Emacs.
2273 case $srcdir in
2274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2275 esac
2276 for ac_var in $ac_precious_vars; do
2277   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2278   eval ac_env_${ac_var}_value=\$${ac_var}
2279   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2280   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2281 done
2282
2283 #
2284 # Report the --help message.
2285 #
2286 if test "$ac_init_help" = "long"; then
2287   # Omit some internal or obsolete options to make the list less imposing.
2288   # This message is too long to be a string in the A/UX 3.1 sh.
2289   cat <<_ACEOF
2290 \`configure' configures man-db 2.8.3 to adapt to many kinds of systems.
2291
2292 Usage: $0 [OPTION]... [VAR=VALUE]...
2293
2294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2295 VAR=VALUE.  See below for descriptions of some of the useful variables.
2296
2297 Defaults for the options are specified in brackets.
2298
2299 Configuration:
2300   -h, --help              display this help and exit
2301       --help=short        display options specific to this package
2302       --help=recursive    display the short help of all the included packages
2303   -V, --version           display version information and exit
2304   -q, --quiet, --silent   do not print \`checking ...' messages
2305       --cache-file=FILE   cache test results in FILE [disabled]
2306   -C, --config-cache      alias for \`--cache-file=config.cache'
2307   -n, --no-create         do not create output files
2308       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2309
2310 Installation directories:
2311   --prefix=PREFIX         install architecture-independent files in PREFIX
2312                           [$ac_default_prefix]
2313   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2314                           [PREFIX]
2315
2316 By default, \`make install' will install all the files in
2317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2319 for instance \`--prefix=\$HOME'.
2320
2321 For better control, use the options below.
2322
2323 Fine tuning of the installation directories:
2324   --bindir=DIR            user executables [EPREFIX/bin]
2325   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2326   --libexecdir=DIR        program executables [EPREFIX/libexec]
2327   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2328   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2329   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2330   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2331   --libdir=DIR            object code libraries [EPREFIX/lib]
2332   --includedir=DIR        C header files [PREFIX/include]
2333   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2334   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2335   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2336   --infodir=DIR           info documentation [DATAROOTDIR/info]
2337   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2338   --mandir=DIR            man documentation [DATAROOTDIR/man]
2339   --docdir=DIR            documentation root [DATAROOTDIR/doc/man-db]
2340   --htmldir=DIR           html documentation [DOCDIR]
2341   --dvidir=DIR            dvi documentation [DOCDIR]
2342   --pdfdir=DIR            pdf documentation [DOCDIR]
2343   --psdir=DIR             ps documentation [DOCDIR]
2344 _ACEOF
2345
2346   cat <<\_ACEOF
2347
2348 Program names:
2349   --program-prefix=PREFIX            prepend PREFIX to installed program names
2350   --program-suffix=SUFFIX            append SUFFIX to installed program names
2351   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2352
2353 System types:
2354   --build=BUILD     configure for building on BUILD [guessed]
2355   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2356 _ACEOF
2357 fi
2358
2359 if test -n "$ac_init_help"; then
2360   case $ac_init_help in
2361      short | recursive ) echo "Configuration of man-db 2.8.3:";;
2362    esac
2363   cat <<\_ACEOF
2364
2365 Optional Features:
2366   --disable-option-checking  ignore unrecognized --enable/--with options
2367   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2368   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2369   --enable-silent-rules   less verbose build output (undo: "make V=1")
2370   --disable-silent-rules  verbose build output (undo: "make V=0")
2371   --enable-maintainer-mode
2372                           enable make rules and dependencies not useful (and
2373                           sometimes confusing) to the casual installer
2374   --enable-dependency-tracking
2375                           do not reject slow dependency extractors
2376   --disable-dependency-tracking
2377                           speeds up one-time build
2378   --enable-static[=PKGS]  build static libraries [default=no]
2379   --enable-shared[=PKGS]  build shared libraries [default=yes]
2380   --enable-fast-install[=PKGS]
2381                           optimize for fast installation [default=yes]
2382   --disable-libtool-lock  avoid locking (might break parallel builds)
2383   --enable-cache-owner=ARG
2384                           make system-wide cache files be owned by user ARG
2385                           [arg=man]
2386   --disable-cache-owner   don't constrain ownership of system-wide cache files
2387   --enable-setuid         install man setuid
2388   --disable-setuid        don't install man setuid
2389   --enable-undoc=COMMAND  suggest COMMAND for missing manual pages
2390   --enable-automatic-create
2391                           allow man to create user databases on the fly
2392   --disable-automatic-update
2393                           don't allow man to update databases on the fly
2394   --disable-cats          don't allow man to create/update cat files
2395   --enable-mandirs=OS     select manual page hierarchy organization (GNU,
2396                           HPUX, IRIX, Solaris, BSD)
2397   --disable-largefile     omit support for large files
2398   --enable-threads={posix|solaris|pth|windows}
2399                           specify multithreading API
2400   --disable-threads       build without multithread safety
2401   --enable-mb-groff       expect groff with Debian multibyte patch or real
2402                           Unicode support
2403   --disable-rpath         do not hardcode runtime library paths
2404   --disable-nls           do not use Native Language Support
2405
2406 Optional Packages:
2407   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2408   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2409   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2410                           both]
2411   --with-aix-soname=aix|svr4|both
2412                           shared library versioning (aka "SONAME") variant to
2413                           provide on AIX, [default=aix].
2414   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2415   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2416                           compiler's sysroot if not specified).
2417   --with-device=DEVICE    use nroff with the output device DEVICE
2418   --with-db=LIBRARY       use database library LIBRARY (db5, db4, db3, db2,
2419                           db1, db, gdbm, ndbm)
2420   --with-config-file=CF   use config file CF [CF=SYSCONFDIR/man_db.conf]
2421   --with-sections=SECTIONS
2422                           use manual page sections SECTIONS [1 n l 8 3 0 2 5 4
2423                           9 6 7]
2424   --with-override-dir=OVERRIDE
2425                           use OVERRIDE as relative override dir inside the man
2426                           path - the first directory to be searched when
2427                           looking for man pages
2428   --with-systemdtmpfilesdir=DIR
2429                           Directory for systemd tmpfiles configuration
2430   --with-browser=BROWSER  use BROWSER as default web browser
2431   --with-pager=PAGER      use PAGER as default pager
2432   --with-nroff=NROFF      use NROFF as roff formatter for character devices
2433   --with-eqn=EQN          use EQN to preprocess equations
2434   --with-neqn=NEQN        use NEQN to preprocess equations for character
2435                           devices
2436   --with-tbl=TBL          use TBL to preprocess tables
2437   --with-col=COL          use COL to filter formatting characters from output
2438   --with-vgrind=VGRIND    use VGRIND to preprocess program sources
2439   --with-refer=REFER      use REFER to preprocess bibliographic references
2440   --with-grap=GRAP        use GRAP to preprocess graphs
2441   --with-pic=PIC          use PIC to preprocess pictures
2442   --with-gzip=GZIP        use GZIP as GNU compression utility
2443   --with-compress=COMPRESS
2444                           use COMPRESS as UNIX compression utility
2445   --with-bzip2=BZIP2      use BZIP2 as block-sorting compression utility
2446   --with-xz=XZ            use XZ as Lempel-Ziv-Markov chain-Algorithm
2447                           compression utility
2448   --with-lzma=LZMA        use LZMA as Lempel-Ziv-Markov chain-Algorithm
2449                           compression utility
2450   --with-lzip=LZIP        use LZIP as Lempel-Ziv-Markov chain-Algorithm
2451                           compression utility
2452   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2453   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2454   --without-libpth-prefix     don't search for libpth in includedir and libdir
2455   --without-included-regex
2456                           don't compile regex; this is the default on systems
2457                           with recent-enough versions of the GNU C Library
2458                           (use with caution on other systems).
2459   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2460   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2461   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2462   --without-libintl-prefix     don't search for libintl in includedir and libdir
2463   --without-libseccomp    do not confine subprocesses using seccomp
2464
2465 Some influential environment variables:
2466   CC          C compiler command
2467   CFLAGS      C compiler flags
2468   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2469               nonstandard directory <lib dir>
2470   LIBS        libraries to pass to the linker, e.g. -l<library>
2471   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2472               you have headers in a nonstandard directory <include dir>
2473   CPP         C preprocessor
2474   LT_SYS_LIBRARY_PATH
2475               User-defined run-time library search path.
2476   PKG_CONFIG  path to pkg-config utility
2477   PKG_CONFIG_PATH
2478               directories to add to pkg-config's search path
2479   PKG_CONFIG_LIBDIR
2480               path overriding pkg-config's built-in search path
2481   libpipeline_CFLAGS
2482               C compiler flags for libpipeline, overriding pkg-config
2483   libpipeline_LIBS
2484               linker flags for libpipeline, overriding pkg-config
2485   libseccomp_CFLAGS
2486               C compiler flags for libseccomp, overriding pkg-config
2487   libseccomp_LIBS
2488               linker flags for libseccomp, overriding pkg-config
2489
2490 Use these variables to override the choices made by `configure' or to help
2491 it to find libraries and programs with nonstandard names/locations.
2492
2493 Report bugs to <cjwatson@debian.org>.
2494 _ACEOF
2495 ac_status=$?
2496 fi
2497
2498 if test "$ac_init_help" = "recursive"; then
2499   # If there are subdirs, report their specific --help.
2500   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2501     test -d "$ac_dir" ||
2502       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2503       continue
2504     ac_builddir=.
2505
2506 case "$ac_dir" in
2507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2508 *)
2509   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2510   # A ".." for each directory in $ac_dir_suffix.
2511   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2512   case $ac_top_builddir_sub in
2513   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2514   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2515   esac ;;
2516 esac
2517 ac_abs_top_builddir=$ac_pwd
2518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2519 # for backward compatibility:
2520 ac_top_builddir=$ac_top_build_prefix
2521
2522 case $srcdir in
2523   .)  # We are building in place.
2524     ac_srcdir=.
2525     ac_top_srcdir=$ac_top_builddir_sub
2526     ac_abs_top_srcdir=$ac_pwd ;;
2527   [\\/]* | ?:[\\/]* )  # Absolute name.
2528     ac_srcdir=$srcdir$ac_dir_suffix;
2529     ac_top_srcdir=$srcdir
2530     ac_abs_top_srcdir=$srcdir ;;
2531   *) # Relative name.
2532     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2533     ac_top_srcdir=$ac_top_build_prefix$srcdir
2534     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2535 esac
2536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2537
2538     cd "$ac_dir" || { ac_status=$?; continue; }
2539     # Check for guested configure.
2540     if test -f "$ac_srcdir/configure.gnu"; then
2541       echo &&
2542       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2543     elif test -f "$ac_srcdir/configure"; then
2544       echo &&
2545       $SHELL "$ac_srcdir/configure" --help=recursive
2546     else
2547       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2548     fi || ac_status=$?
2549     cd "$ac_pwd" || { ac_status=$?; break; }
2550   done
2551 fi
2552
2553 test -n "$ac_init_help" && exit $ac_status
2554 if $ac_init_version; then
2555   cat <<\_ACEOF
2556 man-db configure 2.8.3
2557 generated by GNU Autoconf 2.69
2558
2559 Copyright (C) 2012 Free Software Foundation, Inc.
2560 This configure script is free software; the Free Software Foundation
2561 gives unlimited permission to copy, distribute and modify it.
2562 _ACEOF
2563   exit
2564 fi
2565
2566 ## ------------------------ ##
2567 ## Autoconf initialization. ##
2568 ## ------------------------ ##
2569
2570 # ac_fn_c_try_compile LINENO
2571 # --------------------------
2572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2573 ac_fn_c_try_compile ()
2574 {
2575   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576   rm -f conftest.$ac_objext
2577   if { { ac_try="$ac_compile"
2578 case "(($ac_try" in
2579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580   *) ac_try_echo=$ac_try;;
2581 esac
2582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2583 $as_echo "$ac_try_echo"; } >&5
2584   (eval "$ac_compile") 2>conftest.err
2585   ac_status=$?
2586   if test -s conftest.err; then
2587     grep -v '^ *+' conftest.err >conftest.er1
2588     cat conftest.er1 >&5
2589     mv -f conftest.er1 conftest.err
2590   fi
2591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592   test $ac_status = 0; } && {
2593          test -z "$ac_c_werror_flag" ||
2594          test ! -s conftest.err
2595        } && test -s conftest.$ac_objext; then :
2596   ac_retval=0
2597 else
2598   $as_echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2600
2601         ac_retval=1
2602 fi
2603   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2604   as_fn_set_status $ac_retval
2605
2606 } # ac_fn_c_try_compile
2607
2608 # ac_fn_c_try_cpp LINENO
2609 # ----------------------
2610 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2611 ac_fn_c_try_cpp ()
2612 {
2613   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614   if { { ac_try="$ac_cpp conftest.$ac_ext"
2615 case "(($ac_try" in
2616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617   *) ac_try_echo=$ac_try;;
2618 esac
2619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2620 $as_echo "$ac_try_echo"; } >&5
2621   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2622   ac_status=$?
2623   if test -s conftest.err; then
2624     grep -v '^ *+' conftest.err >conftest.er1
2625     cat conftest.er1 >&5
2626     mv -f conftest.er1 conftest.err
2627   fi
2628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2629   test $ac_status = 0; } > conftest.i && {
2630          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2631          test ! -s conftest.err
2632        }; then :
2633   ac_retval=0
2634 else
2635   $as_echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638     ac_retval=1
2639 fi
2640   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2641   as_fn_set_status $ac_retval
2642
2643 } # ac_fn_c_try_cpp
2644
2645 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2646 # -------------------------------------------------------
2647 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2648 # the include files in INCLUDES and setting the cache variable VAR
2649 # accordingly.
2650 ac_fn_c_check_header_mongrel ()
2651 {
2652   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653   if eval \${$3+:} false; then :
2654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2655 $as_echo_n "checking for $2... " >&6; }
2656 if eval \${$3+:} false; then :
2657   $as_echo_n "(cached) " >&6
2658 fi
2659 eval ac_res=\$$3
2660                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2661 $as_echo "$ac_res" >&6; }
2662 else
2663   # Is the header compilable?
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2665 $as_echo_n "checking $2 usability... " >&6; }
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h.  */
2668 $4
2669 #include <$2>
2670 _ACEOF
2671 if ac_fn_c_try_compile "$LINENO"; then :
2672   ac_header_compiler=yes
2673 else
2674   ac_header_compiler=no
2675 fi
2676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2678 $as_echo "$ac_header_compiler" >&6; }
2679
2680 # Is the header present?
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2682 $as_echo_n "checking $2 presence... " >&6; }
2683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h.  */
2685 #include <$2>
2686 _ACEOF
2687 if ac_fn_c_try_cpp "$LINENO"; then :
2688   ac_header_preproc=yes
2689 else
2690   ac_header_preproc=no
2691 fi
2692 rm -f conftest.err conftest.i conftest.$ac_ext
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2694 $as_echo "$ac_header_preproc" >&6; }
2695
2696 # So?  What about this header?
2697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2698   yes:no: )
2699     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2700 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2701     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2702 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2703     ;;
2704   no:yes:* )
2705     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2706 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2707     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2708 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2709     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2710 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2711     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2712 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2713     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2714 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2715 ( $as_echo "## ---------------------------------- ##
2716 ## Report this to cjwatson@debian.org ##
2717 ## ---------------------------------- ##"
2718      ) | sed "s/^/$as_me: WARNING:     /" >&2
2719     ;;
2720 esac
2721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2722 $as_echo_n "checking for $2... " >&6; }
2723 if eval \${$3+:} false; then :
2724   $as_echo_n "(cached) " >&6
2725 else
2726   eval "$3=\$ac_header_compiler"
2727 fi
2728 eval ac_res=\$$3
2729                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2730 $as_echo "$ac_res" >&6; }
2731 fi
2732   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2733
2734 } # ac_fn_c_check_header_mongrel
2735
2736 # ac_fn_c_try_run LINENO
2737 # ----------------------
2738 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2739 # that executables *can* be run.
2740 ac_fn_c_try_run ()
2741 {
2742   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743   if { { ac_try="$ac_link"
2744 case "(($ac_try" in
2745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746   *) ac_try_echo=$ac_try;;
2747 esac
2748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2749 $as_echo "$ac_try_echo"; } >&5
2750   (eval "$ac_link") 2>&5
2751   ac_status=$?
2752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2753   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2754   { { case "(($ac_try" in
2755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756   *) ac_try_echo=$ac_try;;
2757 esac
2758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2759 $as_echo "$ac_try_echo"; } >&5
2760   (eval "$ac_try") 2>&5
2761   ac_status=$?
2762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2763   test $ac_status = 0; }; }; then :
2764   ac_retval=0
2765 else
2766   $as_echo "$as_me: program exited with status $ac_status" >&5
2767        $as_echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2769
2770        ac_retval=$ac_status
2771 fi
2772   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2773   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2774   as_fn_set_status $ac_retval
2775
2776 } # ac_fn_c_try_run
2777
2778 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2779 # -------------------------------------------------------
2780 # Tests whether HEADER exists and can be compiled using the include files in
2781 # INCLUDES, setting the cache variable VAR accordingly.
2782 ac_fn_c_check_header_compile ()
2783 {
2784   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2786 $as_echo_n "checking for $2... " >&6; }
2787 if eval \${$3+:} false; then :
2788   $as_echo_n "(cached) " >&6
2789 else
2790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h.  */
2792 $4
2793 #include <$2>
2794 _ACEOF
2795 if ac_fn_c_try_compile "$LINENO"; then :
2796   eval "$3=yes"
2797 else
2798   eval "$3=no"
2799 fi
2800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801 fi
2802 eval ac_res=\$$3
2803                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2804 $as_echo "$ac_res" >&6; }
2805   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2806
2807 } # ac_fn_c_check_header_compile
2808
2809 # ac_fn_c_try_link LINENO
2810 # -----------------------
2811 # Try to link conftest.$ac_ext, and return whether this succeeded.
2812 ac_fn_c_try_link ()
2813 {
2814   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2815   rm -f conftest.$ac_objext conftest$ac_exeext
2816   if { { ac_try="$ac_link"
2817 case "(($ac_try" in
2818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819   *) ac_try_echo=$ac_try;;
2820 esac
2821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2822 $as_echo "$ac_try_echo"; } >&5
2823   (eval "$ac_link") 2>conftest.err
2824   ac_status=$?
2825   if test -s conftest.err; then
2826     grep -v '^ *+' conftest.err >conftest.er1
2827     cat conftest.er1 >&5
2828     mv -f conftest.er1 conftest.err
2829   fi
2830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2831   test $ac_status = 0; } && {
2832          test -z "$ac_c_werror_flag" ||
2833          test ! -s conftest.err
2834        } && test -s conftest$ac_exeext && {
2835          test "$cross_compiling" = yes ||
2836          test -x conftest$ac_exeext
2837        }; then :
2838   ac_retval=0
2839 else
2840   $as_echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2842
2843         ac_retval=1
2844 fi
2845   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2846   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2847   # interfere with the next link command; also delete a directory that is
2848   # left behind by Apple's compiler.  We do this before executing the actions.
2849   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2850   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2851   as_fn_set_status $ac_retval
2852
2853 } # ac_fn_c_try_link
2854
2855 # ac_fn_c_check_func LINENO FUNC VAR
2856 # ----------------------------------
2857 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2858 ac_fn_c_check_func ()
2859 {
2860   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2862 $as_echo_n "checking for $2... " >&6; }
2863 if eval \${$3+:} false; then :
2864   $as_echo_n "(cached) " >&6
2865 else
2866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867 /* end confdefs.h.  */
2868 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2870 #define $2 innocuous_$2
2871
2872 /* System header to define __stub macros and hopefully few prototypes,
2873     which can conflict with char $2 (); below.
2874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875     <limits.h> exists even on freestanding compilers.  */
2876
2877 #ifdef __STDC__
2878 # include <limits.h>
2879 #else
2880 # include <assert.h>
2881 #endif
2882
2883 #undef $2
2884
2885 /* Override any GCC internal prototype to avoid an error.
2886    Use char because int might match the return type of a GCC
2887    builtin and then its argument prototype would still apply.  */
2888 #ifdef __cplusplus
2889 extern "C"
2890 #endif
2891 char $2 ();
2892 /* The GNU C library defines this for functions which it implements
2893     to always fail with ENOSYS.  Some functions are actually named
2894     something starting with __ and the normal name is an alias.  */
2895 #if defined __stub_$2 || defined __stub___$2
2896 choke me
2897 #endif
2898
2899 int
2900 main ()
2901 {
2902 return $2 ();
2903   ;
2904   return 0;
2905 }
2906 _ACEOF
2907 if ac_fn_c_try_link "$LINENO"; then :
2908   eval "$3=yes"
2909 else
2910   eval "$3=no"
2911 fi
2912 rm -f core conftest.err conftest.$ac_objext \
2913     conftest$ac_exeext conftest.$ac_ext
2914 fi
2915 eval ac_res=\$$3
2916                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2917 $as_echo "$ac_res" >&6; }
2918   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2919
2920 } # ac_fn_c_check_func
2921
2922 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2923 # -------------------------------------------
2924 # Tests whether TYPE exists after having included INCLUDES, setting cache
2925 # variable VAR accordingly.
2926 ac_fn_c_check_type ()
2927 {
2928   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2930 $as_echo_n "checking for $2... " >&6; }
2931 if eval \${$3+:} false; then :
2932   $as_echo_n "(cached) " >&6
2933 else
2934   eval "$3=no"
2935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936 /* end confdefs.h.  */
2937 $4
2938 int
2939 main ()
2940 {
2941 if (sizeof ($2))
2942          return 0;
2943   ;
2944   return 0;
2945 }
2946 _ACEOF
2947 if ac_fn_c_try_compile "$LINENO"; then :
2948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949 /* end confdefs.h.  */
2950 $4
2951 int
2952 main ()
2953 {
2954 if (sizeof (($2)))
2955             return 0;
2956   ;
2957   return 0;
2958 }
2959 _ACEOF
2960 if ac_fn_c_try_compile "$LINENO"; then :
2961
2962 else
2963   eval "$3=yes"
2964 fi
2965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966 fi
2967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968 fi
2969 eval ac_res=\$$3
2970                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2971 $as_echo "$ac_res" >&6; }
2972   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2973
2974 } # ac_fn_c_check_type
2975
2976 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2977 # ---------------------------------------------
2978 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2979 # accordingly.
2980 ac_fn_c_check_decl ()
2981 {
2982   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2983   as_decl_name=`echo $2|sed 's/ *(.*//'`
2984   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2986 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2987 if eval \${$3+:} false; then :
2988   $as_echo_n "(cached) " >&6
2989 else
2990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2991 /* end confdefs.h.  */
2992 $4
2993 int
2994 main ()
2995 {
2996 #ifndef $as_decl_name
2997 #ifdef __cplusplus
2998   (void) $as_decl_use;
2999 #else
3000   (void) $as_decl_name;
3001 #endif
3002 #endif
3003
3004   ;
3005   return 0;
3006 }
3007 _ACEOF
3008 if ac_fn_c_try_compile "$LINENO"; then :
3009   eval "$3=yes"
3010 else
3011   eval "$3=no"
3012 fi
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 fi
3015 eval ac_res=\$$3
3016                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3017 $as_echo "$ac_res" >&6; }
3018   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3019
3020 } # ac_fn_c_check_decl
3021
3022 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3023 # --------------------------------------------
3024 # Tries to find the compile-time value of EXPR in a program that includes
3025 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3026 # computed
3027 ac_fn_c_compute_int ()
3028 {
3029   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3030   if test "$cross_compiling" = yes; then
3031     # Depending upon the size, compute the lo and hi bounds.
3032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033 /* end confdefs.h.  */
3034 $4
3035 int
3036 main ()
3037 {
3038 static int test_array [1 - 2 * !(($2) >= 0)];
3039 test_array [0] = 0;
3040 return test_array [0];
3041
3042   ;
3043   return 0;
3044 }
3045 _ACEOF
3046 if ac_fn_c_try_compile "$LINENO"; then :
3047   ac_lo=0 ac_mid=0
3048   while :; do
3049     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050 /* end confdefs.h.  */
3051 $4
3052 int
3053 main ()
3054 {
3055 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3056 test_array [0] = 0;
3057 return test_array [0];
3058
3059   ;
3060   return 0;
3061 }
3062 _ACEOF
3063 if ac_fn_c_try_compile "$LINENO"; then :
3064   ac_hi=$ac_mid; break
3065 else
3066   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3067                         if test $ac_lo -le $ac_mid; then
3068                           ac_lo= ac_hi=
3069                           break
3070                         fi
3071                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3072 fi
3073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3074   done
3075 else
3076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077 /* end confdefs.h.  */
3078 $4
3079 int
3080 main ()
3081 {
3082 static int test_array [1 - 2 * !(($2) < 0)];
3083 test_array [0] = 0;
3084 return test_array [0];
3085
3086   ;
3087   return 0;
3088 }
3089 _ACEOF
3090 if ac_fn_c_try_compile "$LINENO"; then :
3091   ac_hi=-1 ac_mid=-1
3092   while :; do
3093     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h.  */
3095 $4
3096 int
3097 main ()
3098 {
3099 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3100 test_array [0] = 0;
3101 return test_array [0];
3102
3103   ;
3104   return 0;
3105 }
3106 _ACEOF
3107 if ac_fn_c_try_compile "$LINENO"; then :
3108   ac_lo=$ac_mid; break
3109 else
3110   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3111                         if test $ac_mid -le $ac_hi; then
3112                           ac_lo= ac_hi=
3113                           break
3114                         fi
3115                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3116 fi
3117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118   done
3119 else
3120   ac_lo= ac_hi=
3121 fi
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123 fi
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 # Binary search between lo and hi bounds.
3126 while test "x$ac_lo" != "x$ac_hi"; do
3127   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h.  */
3130 $4
3131 int
3132 main ()
3133 {
3134 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3135 test_array [0] = 0;
3136 return test_array [0];
3137
3138   ;
3139   return 0;
3140 }
3141 _ACEOF
3142 if ac_fn_c_try_compile "$LINENO"; then :
3143   ac_hi=$ac_mid
3144 else
3145   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3146 fi
3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148 done
3149 case $ac_lo in #((
3150 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3151 '') ac_retval=1 ;;
3152 esac
3153   else
3154     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h.  */
3156 $4
3157 static long int longval () { return $2; }
3158 static unsigned long int ulongval () { return $2; }
3159 #include <stdio.h>
3160 #include <stdlib.h>
3161 int
3162 main ()
3163 {
3164
3165   FILE *f = fopen ("conftest.val", "w");
3166   if (! f)
3167     return 1;
3168   if (($2) < 0)
3169     {
3170       long int i = longval ();
3171       if (i != ($2))
3172         return 1;
3173       fprintf (f, "%ld", i);
3174     }
3175   else
3176     {
3177       unsigned long int i = ulongval ();
3178       if (i != ($2))
3179         return 1;
3180       fprintf (f, "%lu", i);
3181     }
3182   /* Do not output a trailing newline, as this causes \r\n confusion
3183      on some platforms.  */
3184   return ferror (f) || fclose (f) != 0;
3185
3186   ;
3187   return 0;
3188 }
3189 _ACEOF
3190 if ac_fn_c_try_run "$LINENO"; then :
3191   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3192 else
3193   ac_retval=1
3194 fi
3195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3196   conftest.$ac_objext conftest.beam conftest.$ac_ext
3197 rm -f conftest.val
3198
3199   fi
3200   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3201   as_fn_set_status $ac_retval
3202
3203 } # ac_fn_c_compute_int
3204
3205 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3206 # ----------------------------------------------------
3207 # Tries to find if the field MEMBER exists in type AGGR, after including
3208 # INCLUDES, setting cache variable VAR accordingly.
3209 ac_fn_c_check_member ()
3210 {
3211   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3213 $as_echo_n "checking for $2.$3... " >&6; }
3214 if eval \${$4+:} false; then :
3215   $as_echo_n "(cached) " >&6
3216 else
3217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h.  */
3219 $5
3220 int
3221 main ()
3222 {
3223 static $2 ac_aggr;
3224 if (ac_aggr.$3)
3225 return 0;
3226   ;
3227   return 0;
3228 }
3229 _ACEOF
3230 if ac_fn_c_try_compile "$LINENO"; then :
3231   eval "$4=yes"
3232 else
3233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h.  */
3235 $5
3236 int
3237 main ()
3238 {
3239 static $2 ac_aggr;
3240 if (sizeof ac_aggr.$3)
3241 return 0;
3242   ;
3243   return 0;
3244 }
3245 _ACEOF
3246 if ac_fn_c_try_compile "$LINENO"; then :
3247   eval "$4=yes"
3248 else
3249   eval "$4=no"
3250 fi
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 fi
3253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254 fi
3255 eval ac_res=\$$4
3256                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3257 $as_echo "$ac_res" >&6; }
3258   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3259
3260 } # ac_fn_c_check_member
3261 cat >config.log <<_ACEOF
3262 This file contains any messages produced by compilers while
3263 running configure, to aid debugging if configure makes a mistake.
3264
3265 It was created by man-db $as_me 2.8.3, which was
3266 generated by GNU Autoconf 2.69.  Invocation command line was
3267
3268   $ $0 $@
3269
3270 _ACEOF
3271 exec 5>>config.log
3272 {
3273 cat <<_ASUNAME
3274 ## --------- ##
3275 ## Platform. ##
3276 ## --------- ##
3277
3278 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3279 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3280 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3281 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3282 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3283
3284 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3285 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3286
3287 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3288 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3289 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3290 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3291 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3292 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3293 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3294
3295 _ASUNAME
3296
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3299 do
3300   IFS=$as_save_IFS
3301   test -z "$as_dir" && as_dir=.
3302     $as_echo "PATH: $as_dir"
3303   done
3304 IFS=$as_save_IFS
3305
3306 } >&5
3307
3308 cat >&5 <<_ACEOF
3309
3310
3311 ## ----------- ##
3312 ## Core tests. ##
3313 ## ----------- ##
3314
3315 _ACEOF
3316
3317
3318 # Keep a trace of the command line.
3319 # Strip out --no-create and --no-recursion so they do not pile up.
3320 # Strip out --silent because we don't want to record it for future runs.
3321 # Also quote any args containing shell meta-characters.
3322 # Make two passes to allow for proper duplicate-argument suppression.
3323 ac_configure_args=
3324 ac_configure_args0=
3325 ac_configure_args1=
3326 ac_must_keep_next=false
3327 for ac_pass in 1 2
3328 do
3329   for ac_arg
3330   do
3331     case $ac_arg in
3332     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3333     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3334     | -silent | --silent | --silen | --sile | --sil)
3335       continue ;;
3336     *\'*)
3337       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3338     esac
3339     case $ac_pass in
3340     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3341     2)
3342       as_fn_append ac_configure_args1 " '$ac_arg'"
3343       if test $ac_must_keep_next = true; then
3344         ac_must_keep_next=false # Got value, back to normal.
3345       else
3346         case $ac_arg in
3347           *=* | --config-cache | -C | -disable-* | --disable-* \
3348           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3349           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3350           | -with-* | --with-* | -without-* | --without-* | --x)
3351             case "$ac_configure_args0 " in
3352               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3353             esac
3354             ;;
3355           -* ) ac_must_keep_next=true ;;
3356         esac
3357       fi
3358       as_fn_append ac_configure_args " '$ac_arg'"
3359       ;;
3360     esac
3361   done
3362 done
3363 { ac_configure_args0=; unset ac_configure_args0;}
3364 { ac_configure_args1=; unset ac_configure_args1;}
3365
3366 # When interrupted or exit'd, cleanup temporary files, and complete
3367 # config.log.  We remove comments because anyway the quotes in there
3368 # would cause problems or look ugly.
3369 # WARNING: Use '\'' to represent an apostrophe within the trap.
3370 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3371 trap 'exit_status=$?
3372   # Save into config.log some information that might help in debugging.
3373   {
3374     echo
3375
3376     $as_echo "## ---------------- ##
3377 ## Cache variables. ##
3378 ## ---------------- ##"
3379     echo
3380     # The following way of writing the cache mishandles newlines in values,
3381 (
3382   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3383     eval ac_val=\$$ac_var
3384     case $ac_val in #(
3385     *${as_nl}*)
3386       case $ac_var in #(
3387       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3388 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3389       esac
3390       case $ac_var in #(
3391       _ | IFS | as_nl) ;; #(
3392       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3393       *) { eval $ac_var=; unset $ac_var;} ;;
3394       esac ;;
3395     esac
3396   done
3397   (set) 2>&1 |
3398     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3399     *${as_nl}ac_space=\ *)
3400       sed -n \
3401         "s/'\''/'\''\\\\'\'''\''/g;
3402           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3403       ;; #(
3404     *)
3405       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3406       ;;
3407     esac |
3408     sort
3409 )
3410     echo
3411
3412     $as_echo "## ----------------- ##
3413 ## Output variables. ##
3414 ## ----------------- ##"
3415     echo
3416     for ac_var in $ac_subst_vars
3417     do
3418       eval ac_val=\$$ac_var
3419       case $ac_val in
3420       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3421       esac
3422       $as_echo "$ac_var='\''$ac_val'\''"
3423     done | sort
3424     echo
3425
3426     if test -n "$ac_subst_files"; then
3427       $as_echo "## ------------------- ##
3428 ## File substitutions. ##
3429 ## ------------------- ##"
3430       echo
3431       for ac_var in $ac_subst_files
3432       do
3433         eval ac_val=\$$ac_var
3434         case $ac_val in
3435         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3436         esac
3437         $as_echo "$ac_var='\''$ac_val'\''"
3438       done | sort
3439       echo
3440     fi
3441
3442     if test -s confdefs.h; then
3443       $as_echo "## ----------- ##
3444 ## confdefs.h. ##
3445 ## ----------- ##"
3446       echo
3447       cat confdefs.h
3448       echo
3449     fi
3450     test "$ac_signal" != 0 &&
3451       $as_echo "$as_me: caught signal $ac_signal"
3452     $as_echo "$as_me: exit $exit_status"
3453   } >&5
3454   rm -f core *.core core.conftest.* &&
3455     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3456     exit $exit_status
3457 ' 0
3458 for ac_signal in 1 2 13 15; do
3459   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3460 done
3461 ac_signal=0
3462
3463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3464 rm -f -r conftest* confdefs.h
3465
3466 $as_echo "/* confdefs.h */" > confdefs.h
3467
3468 # Predefined preprocessor variables.
3469
3470 cat >>confdefs.h <<_ACEOF
3471 #define PACKAGE_NAME "$PACKAGE_NAME"
3472 _ACEOF
3473
3474 cat >>confdefs.h <<_ACEOF
3475 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3476 _ACEOF
3477
3478 cat >>confdefs.h <<_ACEOF
3479 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3480 _ACEOF
3481
3482 cat >>confdefs.h <<_ACEOF
3483 #define PACKAGE_STRING "$PACKAGE_STRING"
3484 _ACEOF
3485
3486 cat >>confdefs.h <<_ACEOF
3487 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3488 _ACEOF
3489
3490 cat >>confdefs.h <<_ACEOF
3491 #define PACKAGE_URL "$PACKAGE_URL"
3492 _ACEOF
3493
3494
3495 # Let the site file select an alternate cache file if it wants to.
3496 # Prefer an explicitly selected file to automatically selected ones.
3497 ac_site_file1=NONE
3498 ac_site_file2=NONE
3499 if test -n "$CONFIG_SITE"; then
3500   # We do not want a PATH search for config.site.
3501   case $CONFIG_SITE in #((
3502     -*)  ac_site_file1=./$CONFIG_SITE;;
3503     */*) ac_site_file1=$CONFIG_SITE;;
3504     *)   ac_site_file1=./$CONFIG_SITE;;
3505   esac
3506 elif test "x$prefix" != xNONE; then
3507   ac_site_file1=$prefix/share/config.site
3508   ac_site_file2=$prefix/etc/config.site
3509 else
3510   ac_site_file1=$ac_default_prefix/share/config.site
3511   ac_site_file2=$ac_default_prefix/etc/config.site
3512 fi
3513 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3514 do
3515   test "x$ac_site_file" = xNONE && continue
3516   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3517     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3518 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3519     sed 's/^/| /' "$ac_site_file" >&5
3520     . "$ac_site_file" \
3521       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "failed to load site script $ac_site_file
3524 See \`config.log' for more details" "$LINENO" 5; }
3525   fi
3526 done
3527
3528 if test -r "$cache_file"; then
3529   # Some versions of bash will fail to source /dev/null (special files
3530   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3531   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3532     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3533 $as_echo "$as_me: loading cache $cache_file" >&6;}
3534     case $cache_file in
3535       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3536       *)                      . "./$cache_file";;
3537     esac
3538   fi
3539 else
3540   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3541 $as_echo "$as_me: creating cache $cache_file" >&6;}
3542   >$cache_file
3543 fi
3544
3545 gl_func_list="$gl_func_list flockfile"
3546 gl_func_list="$gl_func_list funlockfile"
3547 gl_header_list="$gl_header_list features.h"
3548 gl_header_list="$gl_header_list linewrap.h"
3549 gl_func_list="$gl_func_list btowc"
3550 gl_func_list="$gl_func_list canonicalize_file_name"
3551 gl_func_list="$gl_func_list realpath"
3552 gl_func_list="$gl_func_list getcwd"
3553 gl_func_list="$gl_func_list readlink"
3554 gl_header_list="$gl_header_list sys/param.h"
3555 gl_header_list="$gl_header_list unistd.h"
3556 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3557 gl_header_list="$gl_header_list sys/socket.h"
3558 gl_func_list="$gl_func_list fchdir"
3559 gl_header_list="$gl_header_list dirent.h"
3560 gl_func_list="$gl_func_list fcntl"
3561 gl_func_list="$gl_func_list symlink"
3562 gl_func_list="$gl_func_list fdopendir"
3563 gl_func_list="$gl_func_list mempcpy"
3564 gl_func_list="$gl_func_list flock"
3565 gl_func_list="$gl_func_list isblank"
3566 gl_func_list="$gl_func_list iswctype"
3567 gl_func_list="$gl_func_list mbsrtowcs"
3568 gl_func_list="$gl_func_list wmemchr"
3569 gl_func_list="$gl_func_list wmemcpy"
3570 gl_func_list="$gl_func_list wmempcpy"
3571 gl_header_list="$gl_header_list wctype.h"
3572 gl_fnmatch_required=GNU
3573 gl_header_list="$gl_header_list sys/stat.h"
3574 gl_func_list="$gl_func_list fstatat"
3575 gl_func_list="$gl_func_list futimens"
3576 gl_func_list="$gl_func_list getdelim"
3577 gl_func_list="$gl_func_list getdtablesize"
3578 gl_func_list="$gl_func_list getlogin_r"
3579 gl_getopt_required=GNU
3580 gl_header_list="$gl_header_list getopt.h"
3581 gl_func_list="$gl_func_list gettimeofday"
3582 gl_func_list="$gl_func_list nanotime"
3583 gl_header_list="$gl_header_list sys/time.h"
3584 gl_header_list="$gl_header_list sys/cdefs.h"
3585 gl_func_list="$gl_func_list getpwnam_r"
3586 gl_func_list="$gl_func_list getuid"
3587 gl_func_list="$gl_func_list geteuid"
3588 gl_func_list="$gl_func_list getresuid"
3589 gl_func_list="$gl_func_list getgid"
3590 gl_func_list="$gl_func_list getegid"
3591 gl_func_list="$gl_func_list getresgid"
3592 gl_func_list="$gl_func_list setresuid"
3593 gl_func_list="$gl_func_list setreuid"
3594 gl_func_list="$gl_func_list seteuid"
3595 gl_func_list="$gl_func_list setresgid"
3596 gl_func_list="$gl_func_list setregid"
3597 gl_func_list="$gl_func_list setegid"
3598 gl_header_list="$gl_header_list langinfo.h"
3599 gl_header_list="$gl_header_list xlocale.h"
3600 gl_func_list="$gl_func_list lstat"
3601 gl_func_list="$gl_func_list mbsinit"
3602 gl_func_list="$gl_func_list mbrtowc"
3603 gl_header_list="$gl_header_list sys/mman.h"
3604 gl_func_list="$gl_func_list mprotect"
3605 gl_func_list="$gl_func_list mkstemp"
3606 gl_header_list="$gl_header_list sys/select.h"
3607 gl_func_list="$gl_func_list nl_langinfo"
3608 gl_func_list="$gl_func_list openat"
3609 gl_header_list="$gl_header_list malloc.h"
3610 gl_func_list="$gl_func_list link"
3611 gl_func_list="$gl_func_list pathconf"
3612 gl_func_list="$gl_func_list secure_getenv"
3613 gl_func_list="$gl_func_list setenv"
3614 gl_func_list="$gl_func_list sigaction"
3615 gl_func_list="$gl_func_list sigaltstack"
3616 gl_func_list="$gl_func_list siginterrupt"
3617 gl_func_list="$gl_func_list sleep"
3618 gl_header_list="$gl_header_list wchar.h"
3619 gl_header_list="$gl_header_list stdint.h"
3620 gl_func_list="$gl_func_list strdup"
3621 gl_header_list="$gl_header_list strings.h"
3622 gl_func_list="$gl_func_list strndup"
3623 gl_header_list="$gl_header_list sys/file.h"
3624 gl_header_list="$gl_header_list sys/ioctl.h"
3625 gl_header_list="$gl_header_list sys/uio.h"
3626 gl_header_list="$gl_header_list sysexits.h"
3627 gl_func_list="$gl_func_list pipe"
3628 gl_header_list="$gl_header_list utime.h"
3629 gl_func_list="$gl_func_list futimes"
3630 gl_func_list="$gl_func_list futimesat"
3631 gl_func_list="$gl_func_list utimensat"
3632 gl_func_list="$gl_func_list lutimes"
3633 gl_func_list="$gl_func_list vasnprintf"
3634 gl_func_list="$gl_func_list snprintf"
3635 gl_func_list="$gl_func_list wcrtomb"
3636 gl_func_list="$gl_func_list iswcntrl"
3637 gt_needs="$gt_needs "
3638 # Check that the precious variables saved in the cache have kept the same
3639 # value.
3640 ac_cache_corrupted=false
3641 for ac_var in $ac_precious_vars; do
3642   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3643   eval ac_new_set=\$ac_env_${ac_var}_set
3644   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3645   eval ac_new_val=\$ac_env_${ac_var}_value
3646   case $ac_old_set,$ac_new_set in
3647     set,)
3648       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3649 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3650       ac_cache_corrupted=: ;;
3651     ,set)
3652       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3653 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3654       ac_cache_corrupted=: ;;
3655     ,);;
3656     *)
3657       if test "x$ac_old_val" != "x$ac_new_val"; then
3658         # differences in whitespace do not lead to failure.
3659         ac_old_val_w=`echo x $ac_old_val`
3660         ac_new_val_w=`echo x $ac_new_val`
3661         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3662           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3663 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3664           ac_cache_corrupted=:
3665         else
3666           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3667 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3668           eval $ac_var=\$ac_old_val
3669         fi
3670         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3671 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3672         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3673 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3674       fi;;
3675   esac
3676   # Pass precious variables to config.status.
3677   if test "$ac_new_set" = set; then
3678     case $ac_new_val in
3679     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3680     *) ac_arg=$ac_var=$ac_new_val ;;
3681     esac
3682     case " $ac_configure_args " in
3683       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3684       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3685     esac
3686   fi
3687 done
3688 if $ac_cache_corrupted; then
3689   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3692 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3693   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3694 fi
3695 ## -------------------- ##
3696 ## Main body of script. ##
3697 ## -------------------- ##
3698
3699 ac_ext=c
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704
3705
3706 ac_aux_dir=
3707 for ac_dir in build-aux "$srcdir"/build-aux; do
3708   if test -f "$ac_dir/install-sh"; then
3709     ac_aux_dir=$ac_dir
3710     ac_install_sh="$ac_aux_dir/install-sh -c"
3711     break
3712   elif test -f "$ac_dir/install.sh"; then
3713     ac_aux_dir=$ac_dir
3714     ac_install_sh="$ac_aux_dir/install.sh -c"
3715     break
3716   elif test -f "$ac_dir/shtool"; then
3717     ac_aux_dir=$ac_dir
3718     ac_install_sh="$ac_aux_dir/shtool install -c"
3719     break
3720   fi
3721 done
3722 if test -z "$ac_aux_dir"; then
3723   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3724 fi
3725
3726 # These three variables are undocumented and unsupported,
3727 # and are intended to be withdrawn in a future Autoconf release.
3728 # They can cause serious problems if a builder's source tree is in a directory
3729 # whose full name contains unusual characters.
3730 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3731 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3732 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3733
3734
3735 am__api_version='1.15'
3736
3737 # Find a good install program.  We prefer a C program (faster),
3738 # so one script is as good as another.  But avoid the broken or
3739 # incompatible versions:
3740 # SysV /etc/install, /usr/sbin/install
3741 # SunOS /usr/etc/install
3742 # IRIX /sbin/install
3743 # AIX /bin/install
3744 # AmigaOS /C/install, which installs bootblocks on floppy discs
3745 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3748 # OS/2's system install, which has a completely different semantic
3749 # ./install, which can be erroneously created by make from ./install.sh.
3750 # Reject install programs that cannot install multiple files.
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3752 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3753 if test -z "$INSTALL"; then
3754 if ${ac_cv_path_install+:} false; then :
3755   $as_echo_n "(cached) " >&6
3756 else
3757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760   IFS=$as_save_IFS
3761   test -z "$as_dir" && as_dir=.
3762     # Account for people who put trailing slashes in PATH elements.
3763 case $as_dir/ in #((
3764   ./ | .// | /[cC]/* | \
3765   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3766   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3767   /usr/ucb/* ) ;;
3768   *)
3769     # OSF1 and SCO ODT 3.0 have their own names for install.
3770     # Don't use installbsd from OSF since it installs stuff as root
3771     # by default.
3772     for ac_prog in ginstall scoinst install; do
3773       for ac_exec_ext in '' $ac_executable_extensions; do
3774         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3775           if test $ac_prog = install &&
3776             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3777             # AIX install.  It has an incompatible calling convention.
3778             :
3779           elif test $ac_prog = install &&
3780             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3781             # program-specific install script used by HP pwplus--don't use.
3782             :
3783           else
3784             rm -rf conftest.one conftest.two conftest.dir
3785             echo one > conftest.one
3786             echo two > conftest.two
3787             mkdir conftest.dir
3788             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3789               test -s conftest.one && test -s conftest.two &&
3790               test -s conftest.dir/conftest.one &&
3791               test -s conftest.dir/conftest.two
3792             then
3793               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3794               break 3
3795             fi
3796           fi
3797         fi
3798       done
3799     done
3800     ;;
3801 esac
3802
3803   done
3804 IFS=$as_save_IFS
3805
3806 rm -rf conftest.one conftest.two conftest.dir
3807
3808 fi
3809   if test "${ac_cv_path_install+set}" = set; then
3810     INSTALL=$ac_cv_path_install
3811   else
3812     # As a last resort, use the slow shell script.  Don't cache a
3813     # value for INSTALL within a source directory, because that will
3814     # break other packages using the cache if that directory is
3815     # removed, or if the value is a relative name.
3816     INSTALL=$ac_install_sh
3817   fi
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3820 $as_echo "$INSTALL" >&6; }
3821
3822 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3823 # It thinks the first close brace ends the variable substitution.
3824 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3825
3826 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3827
3828 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3829
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3831 $as_echo_n "checking whether build environment is sane... " >&6; }
3832 # Reject unsafe characters in $srcdir or the absolute working directory
3833 # name.  Accept space and tab only in the latter.
3834 am_lf='
3835 '
3836 case `pwd` in
3837   *[\\\"\#\$\&\'\`$am_lf]*)
3838     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3839 esac
3840 case $srcdir in
3841   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3842     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3843 esac
3844
3845 # Do 'set' in a subshell so we don't clobber the current shell's
3846 # arguments.  Must try -L first in case configure is actually a
3847 # symlink; some systems play weird games with the mod time of symlinks
3848 # (eg FreeBSD returns the mod time of the symlink's containing
3849 # directory).
3850 if (
3851    am_has_slept=no
3852    for am_try in 1 2; do
3853      echo "timestamp, slept: $am_has_slept" > conftest.file
3854      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3855      if test "$*" = "X"; then
3856         # -L didn't work.
3857         set X `ls -t "$srcdir/configure" conftest.file`
3858      fi
3859      if test "$*" != "X $srcdir/configure conftest.file" \
3860         && test "$*" != "X conftest.file $srcdir/configure"; then
3861
3862         # If neither matched, then we have a broken ls.  This can happen
3863         # if, for instance, CONFIG_SHELL is bash and it inherits a
3864         # broken ls alias from the environment.  This has actually
3865         # happened.  Such a system could not be considered "sane".
3866         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3867   alias in your environment" "$LINENO" 5
3868      fi
3869      if test "$2" = conftest.file || test $am_try -eq 2; then
3870        break
3871      fi
3872      # Just in case.
3873      sleep 1
3874      am_has_slept=yes
3875    done
3876    test "$2" = conftest.file
3877    )
3878 then
3879    # Ok.
3880    :
3881 else
3882    as_fn_error $? "newly created file is older than distributed files!
3883 Check your system clock" "$LINENO" 5
3884 fi
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3886 $as_echo "yes" >&6; }
3887 # If we didn't sleep, we still need to ensure time stamps of config.status and
3888 # generated files are strictly newer.
3889 am_sleep_pid=
3890 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3891   ( sleep 1 ) &
3892   am_sleep_pid=$!
3893 fi
3894
3895 rm -f conftest.file
3896
3897 test "$program_prefix" != NONE &&
3898   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3899 # Use a double $ so make ignores it.
3900 test "$program_suffix" != NONE &&
3901   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3902 # Double any \ or $.
3903 # By default was `s,x,x', remove it if useless.
3904 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3905 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3906
3907 # Expand $ac_aux_dir to an absolute path.
3908 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3909
3910 if test x"${MISSING+set}" != xset; then
3911   case $am_aux_dir in
3912   *\ * | *\     *)
3913     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3914   *)
3915     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3916   esac
3917 fi
3918 # Use eval to expand $SHELL
3919 if eval "$MISSING --is-lightweight"; then
3920   am_missing_run="$MISSING "
3921 else
3922   am_missing_run=
3923   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3924 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3925 fi
3926
3927 if test x"${install_sh+set}" != xset; then
3928   case $am_aux_dir in
3929   *\ * | *\     *)
3930     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3931   *)
3932     install_sh="\${SHELL} $am_aux_dir/install-sh"
3933   esac
3934 fi
3935
3936 # Installed binaries are usually stripped using 'strip' when the user
3937 # run "make install-strip".  However 'strip' might not be the right
3938 # tool to use in cross-compilation environments, therefore Automake
3939 # will honor the 'STRIP' environment variable to overrule this program.
3940 if test "$cross_compiling" != no; then
3941   if test -n "$ac_tool_prefix"; then
3942   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3943 set dummy ${ac_tool_prefix}strip; ac_word=$2
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945 $as_echo_n "checking for $ac_word... " >&6; }
3946 if ${ac_cv_prog_STRIP+:} false; then :
3947   $as_echo_n "(cached) " >&6
3948 else
3949   if test -n "$STRIP"; then
3950   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3951 else
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3954 do
3955   IFS=$as_save_IFS
3956   test -z "$as_dir" && as_dir=.
3957     for ac_exec_ext in '' $ac_executable_extensions; do
3958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961     break 2
3962   fi
3963 done
3964   done
3965 IFS=$as_save_IFS
3966
3967 fi
3968 fi
3969 STRIP=$ac_cv_prog_STRIP
3970 if test -n "$STRIP"; then
3971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3972 $as_echo "$STRIP" >&6; }
3973 else
3974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3976 fi
3977
3978
3979 fi
3980 if test -z "$ac_cv_prog_STRIP"; then
3981   ac_ct_STRIP=$STRIP
3982   # Extract the first word of "strip", so it can be a program name with args.
3983 set dummy strip; ac_word=$2
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985 $as_echo_n "checking for $ac_word... " >&6; }
3986 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3987   $as_echo_n "(cached) " >&6
3988 else
3989   if test -n "$ac_ct_STRIP"; then
3990   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3991 else
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3994 do
3995   IFS=$as_save_IFS
3996   test -z "$as_dir" && as_dir=.
3997     for ac_exec_ext in '' $ac_executable_extensions; do
3998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3999     ac_cv_prog_ac_ct_STRIP="strip"
4000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4001     break 2
4002   fi
4003 done
4004   done
4005 IFS=$as_save_IFS
4006
4007 fi
4008 fi
4009 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4010 if test -n "$ac_ct_STRIP"; then
4011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4012 $as_echo "$ac_ct_STRIP" >&6; }
4013 else
4014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015 $as_echo "no" >&6; }
4016 fi
4017
4018   if test "x$ac_ct_STRIP" = x; then
4019     STRIP=":"
4020   else
4021     case $cross_compiling:$ac_tool_warned in
4022 yes:)
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4025 ac_tool_warned=yes ;;
4026 esac
4027     STRIP=$ac_ct_STRIP
4028   fi
4029 else
4030   STRIP="$ac_cv_prog_STRIP"
4031 fi
4032
4033 fi
4034 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4035
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4037 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4038 if test -z "$MKDIR_P"; then
4039   if ${ac_cv_path_mkdir+:} false; then :
4040   $as_echo_n "(cached) " >&6
4041 else
4042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047     for ac_prog in mkdir gmkdir; do
4048          for ac_exec_ext in '' $ac_executable_extensions; do
4049            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4050            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4051              'mkdir (GNU coreutils) '* | \
4052              'mkdir (coreutils) '* | \
4053              'mkdir (fileutils) '4.1*)
4054                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4055                break 3;;
4056            esac
4057          done
4058        done
4059   done
4060 IFS=$as_save_IFS
4061
4062 fi
4063
4064   test -d ./--version && rmdir ./--version
4065   if test "${ac_cv_path_mkdir+set}" = set; then
4066     MKDIR_P="$ac_cv_path_mkdir -p"
4067   else
4068     # As a last resort, use the slow shell script.  Don't cache a
4069     # value for MKDIR_P within a source directory, because that will
4070     # break other packages using the cache if that directory is
4071     # removed, or if the value is a relative name.
4072     MKDIR_P="$ac_install_sh -d"
4073   fi
4074 fi
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4076 $as_echo "$MKDIR_P" >&6; }
4077
4078 for ac_prog in gawk mawk nawk awk
4079 do
4080   # Extract the first word of "$ac_prog", so it can be a program name with args.
4081 set dummy $ac_prog; ac_word=$2
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if ${ac_cv_prog_AWK+:} false; then :
4085   $as_echo_n "(cached) " >&6
4086 else
4087   if test -n "$AWK"; then
4088   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093   IFS=$as_save_IFS
4094   test -z "$as_dir" && as_dir=.
4095     for ac_exec_ext in '' $ac_executable_extensions; do
4096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097     ac_cv_prog_AWK="$ac_prog"
4098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099     break 2
4100   fi
4101 done
4102   done
4103 IFS=$as_save_IFS
4104
4105 fi
4106 fi
4107 AWK=$ac_cv_prog_AWK
4108 if test -n "$AWK"; then
4109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4110 $as_echo "$AWK" >&6; }
4111 else
4112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4114 fi
4115
4116
4117   test -n "$AWK" && break
4118 done
4119
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4121 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4122 set x ${MAKE-make}
4123 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4124 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4125   $as_echo_n "(cached) " >&6
4126 else
4127   cat >conftest.make <<\_ACEOF
4128 SHELL = /bin/sh
4129 all:
4130         @echo '@@@%%%=$(MAKE)=@@@%%%'
4131 _ACEOF
4132 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4133 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4134   *@@@%%%=?*=@@@%%%*)
4135     eval ac_cv_prog_make_${ac_make}_set=yes;;
4136   *)
4137     eval ac_cv_prog_make_${ac_make}_set=no;;
4138 esac
4139 rm -f conftest.make
4140 fi
4141 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4143 $as_echo "yes" >&6; }
4144   SET_MAKE=
4145 else
4146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4148   SET_MAKE="MAKE=${MAKE-make}"
4149 fi
4150
4151 rm -rf .tst 2>/dev/null
4152 mkdir .tst 2>/dev/null
4153 if test -d .tst; then
4154   am__leading_dot=.
4155 else
4156   am__leading_dot=_
4157 fi
4158 rmdir .tst 2>/dev/null
4159
4160 # Check whether --enable-silent-rules was given.
4161 if test "${enable_silent_rules+set}" = set; then :
4162   enableval=$enable_silent_rules;
4163 fi
4164
4165 case $enable_silent_rules in # (((
4166   yes) AM_DEFAULT_VERBOSITY=0;;
4167    no) AM_DEFAULT_VERBOSITY=1;;
4168     *) AM_DEFAULT_VERBOSITY=1;;
4169 esac
4170 am_make=${MAKE-make}
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4172 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4173 if ${am_cv_make_support_nested_variables+:} false; then :
4174   $as_echo_n "(cached) " >&6
4175 else
4176   if $as_echo 'TRUE=$(BAR$(V))
4177 BAR0=false
4178 BAR1=true
4179 V=1
4180 am__doit:
4181         @$(TRUE)
4182 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4183   am_cv_make_support_nested_variables=yes
4184 else
4185   am_cv_make_support_nested_variables=no
4186 fi
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4189 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4190 if test $am_cv_make_support_nested_variables = yes; then
4191     AM_V='$(V)'
4192   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4193 else
4194   AM_V=$AM_DEFAULT_VERBOSITY
4195   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4196 fi
4197 AM_BACKSLASH='\'
4198
4199 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4200   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4201   # is not polluted with repeated "-I."
4202   am__isrc=' -I$(srcdir)'
4203   # test to see if srcdir already configured
4204   if test -f $srcdir/config.status; then
4205     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4206   fi
4207 fi
4208
4209 # test whether we have cygpath
4210 if test -z "$CYGPATH_W"; then
4211   if (cygpath --version) >/dev/null 2>/dev/null; then
4212     CYGPATH_W='cygpath -w'
4213   else
4214     CYGPATH_W=echo
4215   fi
4216 fi
4217
4218
4219 # Define the identity of the package.
4220  PACKAGE='man-db'
4221  VERSION='2.8.3'
4222
4223
4224 cat >>confdefs.h <<_ACEOF
4225 #define PACKAGE "$PACKAGE"
4226 _ACEOF
4227
4228
4229 cat >>confdefs.h <<_ACEOF
4230 #define VERSION "$VERSION"
4231 _ACEOF
4232
4233 # Some tools Automake needs.
4234
4235 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4236
4237
4238 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4239
4240
4241 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4242
4243
4244 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4245
4246
4247 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4248
4249 # For better backward compatibility.  To be removed once Automake 1.9.x
4250 # dies out for good.  For more background, see:
4251 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4252 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4253 mkdir_p='$(MKDIR_P)'
4254
4255 # We need awk for the "check" target (and possibly the TAP driver).  The
4256 # system "awk" is bad on some platforms.
4257 # Always define AMTAR for backward compatibility.  Yes, it's still used
4258 # in the wild :-(  We should find a proper way to deprecate it ...
4259 AMTAR='$${TAR-tar}'
4260
4261
4262 # We'll loop over all known methods to create a tar archive until one works.
4263 _am_tools='gnutar  pax cpio none'
4264
4265 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4266
4267
4268
4269
4270
4271
4272 # POSIX will say in a future version that running "rm -f" with no argument
4273 # is OK; and we want to be able to make that assumption in our Makefile
4274 # recipes.  So use an aggressive probe to check that the usage we want is
4275 # actually supported "in the wild" to an acceptable degree.
4276 # See automake bug#10828.
4277 # To make any issue more visible, cause the running configure to be aborted
4278 # by default if the 'rm' program in use doesn't match our expectations; the
4279 # user can still override this though.
4280 if rm -f && rm -fr && rm -rf; then : OK; else
4281   cat >&2 <<'END'
4282 Oops!
4283
4284 Your 'rm' program seems unable to run without file operands specified
4285 on the command line, even when the '-f' option is present.  This is contrary
4286 to the behaviour of most rm programs out there, and not conforming with
4287 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4288
4289 Please tell bug-automake@gnu.org about your system, including the value
4290 of your $PATH and any error possibly output before this message.  This
4291 can help us improve future automake versions.
4292
4293 END
4294   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4295     echo 'Configuration will proceed anyway, since you have set the' >&2
4296     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4297     echo >&2
4298   else
4299     cat >&2 <<'END'
4300 Aborting the configuration process, to ensure you take notice of the issue.
4301
4302 You can download and install GNU coreutils to get an 'rm' implementation
4303 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4304
4305 If you want to complete the configuration process using your problematic
4306 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4307 to "yes", and re-run configure.
4308
4309 END
4310     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4311   fi
4312 fi
4313
4314
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4316 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4317     # Check whether --enable-maintainer-mode was given.
4318 if test "${enable_maintainer_mode+set}" = set; then :
4319   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4320 else
4321   USE_MAINTAINER_MODE=no
4322 fi
4323
4324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4325 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4326    if test $USE_MAINTAINER_MODE = yes; then
4327   MAINTAINER_MODE_TRUE=
4328   MAINTAINER_MODE_FALSE='#'
4329 else
4330   MAINTAINER_MODE_TRUE='#'
4331   MAINTAINER_MODE_FALSE=
4332 fi
4333
4334   MAINT=$MAINTAINER_MODE_TRUE
4335
4336
4337 # Check whether --enable-silent-rules was given.
4338 if test "${enable_silent_rules+set}" = set; then :
4339   enableval=$enable_silent_rules;
4340 fi
4341
4342 case $enable_silent_rules in # (((
4343   yes) AM_DEFAULT_VERBOSITY=0;;
4344    no) AM_DEFAULT_VERBOSITY=1;;
4345     *) AM_DEFAULT_VERBOSITY=0;;
4346 esac
4347 am_make=${MAKE-make}
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4349 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4350 if ${am_cv_make_support_nested_variables+:} false; then :
4351   $as_echo_n "(cached) " >&6
4352 else
4353   if $as_echo 'TRUE=$(BAR$(V))
4354 BAR0=false
4355 BAR1=true
4356 V=1
4357 am__doit:
4358         @$(TRUE)
4359 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4360   am_cv_make_support_nested_variables=yes
4361 else
4362   am_cv_make_support_nested_variables=no
4363 fi
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4366 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4367 if test $am_cv_make_support_nested_variables = yes; then
4368     AM_V='$(V)'
4369   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4370 else
4371   AM_V=$AM_DEFAULT_VERBOSITY
4372   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4373 fi
4374 AM_BACKSLASH='\'
4375
4376
4377
4378 DEPDIR="${am__leading_dot}deps"
4379
4380 ac_config_commands="$ac_config_commands depfiles"
4381
4382
4383 am_make=${MAKE-make}
4384 cat > confinc << 'END'
4385 am__doit:
4386         @echo this is the am__doit target
4387 .PHONY: am__doit
4388 END
4389 # If we don't find an include directive, just comment out the code.
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4391 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4392 am__include="#"
4393 am__quote=
4394 _am_result=none
4395 # First try GNU make style include.
4396 echo "include confinc" > confmf
4397 # Ignore all kinds of additional output from 'make'.
4398 case `$am_make -s -f confmf 2> /dev/null` in #(
4399 *the\ am__doit\ target*)
4400   am__include=include
4401   am__quote=
4402   _am_result=GNU
4403   ;;
4404 esac
4405 # Now try BSD make style include.
4406 if test "$am__include" = "#"; then
4407    echo '.include "confinc"' > confmf
4408    case `$am_make -s -f confmf 2> /dev/null` in #(
4409    *the\ am__doit\ target*)
4410      am__include=.include
4411      am__quote="\""
4412      _am_result=BSD
4413      ;;
4414    esac
4415 fi
4416
4417
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4419 $as_echo "$_am_result" >&6; }
4420 rm -f confinc confmf
4421
4422 # Check whether --enable-dependency-tracking was given.
4423 if test "${enable_dependency_tracking+set}" = set; then :
4424   enableval=$enable_dependency_tracking;
4425 fi
4426
4427 if test "x$enable_dependency_tracking" != xno; then
4428   am_depcomp="$ac_aux_dir/depcomp"
4429   AMDEPBACKSLASH='\'
4430   am__nodep='_no'
4431 fi
4432  if test "x$enable_dependency_tracking" != xno; then
4433   AMDEP_TRUE=
4434   AMDEP_FALSE='#'
4435 else
4436   AMDEP_TRUE='#'
4437   AMDEP_FALSE=
4438 fi
4439
4440
4441 ac_ext=c
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446 if test -n "$ac_tool_prefix"; then
4447   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4448 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_prog_CC+:} false; then :
4452   $as_echo_n "(cached) " >&6
4453 else
4454   if test -n "$CC"; then
4455   ac_cv_prog_CC="$CC" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460   IFS=$as_save_IFS
4461   test -z "$as_dir" && as_dir=.
4462     for ac_exec_ext in '' $ac_executable_extensions; do
4463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466     break 2
4467   fi
4468 done
4469   done
4470 IFS=$as_save_IFS
4471
4472 fi
4473 fi
4474 CC=$ac_cv_prog_CC
4475 if test -n "$CC"; then
4476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4477 $as_echo "$CC" >&6; }
4478 else
4479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4481 fi
4482
4483
4484 fi
4485 if test -z "$ac_cv_prog_CC"; then
4486   ac_ct_CC=$CC
4487   # Extract the first word of "gcc", so it can be a program name with args.
4488 set dummy gcc; ac_word=$2
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490 $as_echo_n "checking for $ac_word... " >&6; }
4491 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4492   $as_echo_n "(cached) " >&6
4493 else
4494   if test -n "$ac_ct_CC"; then
4495   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4496 else
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500   IFS=$as_save_IFS
4501   test -z "$as_dir" && as_dir=.
4502     for ac_exec_ext in '' $ac_executable_extensions; do
4503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4504     ac_cv_prog_ac_ct_CC="gcc"
4505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4506     break 2
4507   fi
4508 done
4509   done
4510 IFS=$as_save_IFS
4511
4512 fi
4513 fi
4514 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4515 if test -n "$ac_ct_CC"; then
4516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4517 $as_echo "$ac_ct_CC" >&6; }
4518 else
4519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520 $as_echo "no" >&6; }
4521 fi
4522
4523   if test "x$ac_ct_CC" = x; then
4524     CC=""
4525   else
4526     case $cross_compiling:$ac_tool_warned in
4527 yes:)
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4530 ac_tool_warned=yes ;;
4531 esac
4532     CC=$ac_ct_CC
4533   fi
4534 else
4535   CC="$ac_cv_prog_CC"
4536 fi
4537
4538 if test -z "$CC"; then
4539           if test -n "$ac_tool_prefix"; then
4540     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4541 set dummy ${ac_tool_prefix}cc; ac_word=$2
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543 $as_echo_n "checking for $ac_word... " >&6; }
4544 if ${ac_cv_prog_CC+:} false; then :
4545   $as_echo_n "(cached) " >&6
4546 else
4547   if test -n "$CC"; then
4548   ac_cv_prog_CC="$CC" # Let the user override the test.
4549 else
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4552 do
4553   IFS=$as_save_IFS
4554   test -z "$as_dir" && as_dir=.
4555     for ac_exec_ext in '' $ac_executable_extensions; do
4556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557     ac_cv_prog_CC="${ac_tool_prefix}cc"
4558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559     break 2
4560   fi
4561 done
4562   done
4563 IFS=$as_save_IFS
4564
4565 fi
4566 fi
4567 CC=$ac_cv_prog_CC
4568 if test -n "$CC"; then
4569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4570 $as_echo "$CC" >&6; }
4571 else
4572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4574 fi
4575
4576
4577   fi
4578 fi
4579 if test -z "$CC"; then
4580   # Extract the first word of "cc", so it can be a program name with args.
4581 set dummy cc; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if ${ac_cv_prog_CC+:} false; then :
4585   $as_echo_n "(cached) " >&6
4586 else
4587   if test -n "$CC"; then
4588   ac_cv_prog_CC="$CC" # Let the user override the test.
4589 else
4590   ac_prog_rejected=no
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594   IFS=$as_save_IFS
4595   test -z "$as_dir" && as_dir=.
4596     for ac_exec_ext in '' $ac_executable_extensions; do
4597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4599        ac_prog_rejected=yes
4600        continue
4601      fi
4602     ac_cv_prog_CC="cc"
4603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604     break 2
4605   fi
4606 done
4607   done
4608 IFS=$as_save_IFS
4609
4610 if test $ac_prog_rejected = yes; then
4611   # We found a bogon in the path, so make sure we never use it.
4612   set dummy $ac_cv_prog_CC
4613   shift
4614   if test $# != 0; then
4615     # We chose a different compiler from the bogus one.
4616     # However, it has the same basename, so the bogon will be chosen
4617     # first if we set CC to just the basename; use the full file name.
4618     shift
4619     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4620   fi
4621 fi
4622 fi
4623 fi
4624 CC=$ac_cv_prog_CC
4625 if test -n "$CC"; then
4626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4627 $as_echo "$CC" >&6; }
4628 else
4629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4631 fi
4632
4633
4634 fi
4635 if test -z "$CC"; then
4636   if test -n "$ac_tool_prefix"; then
4637   for ac_prog in cl.exe
4638   do
4639     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4640 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if ${ac_cv_prog_CC+:} false; then :
4644   $as_echo_n "(cached) " >&6
4645 else
4646   if test -n "$CC"; then
4647   ac_cv_prog_CC="$CC" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652   IFS=$as_save_IFS
4653   test -z "$as_dir" && as_dir=.
4654     for ac_exec_ext in '' $ac_executable_extensions; do
4655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4656     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658     break 2
4659   fi
4660 done
4661   done
4662 IFS=$as_save_IFS
4663
4664 fi
4665 fi
4666 CC=$ac_cv_prog_CC
4667 if test -n "$CC"; then
4668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4669 $as_echo "$CC" >&6; }
4670 else
4671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4673 fi
4674
4675
4676     test -n "$CC" && break
4677   done
4678 fi
4679 if test -z "$CC"; then
4680   ac_ct_CC=$CC
4681   for ac_prog in cl.exe
4682 do
4683   # Extract the first word of "$ac_prog", so it can be a program name with args.
4684 set dummy $ac_prog; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4688   $as_echo_n "(cached) " >&6
4689 else
4690   if test -n "$ac_ct_CC"; then
4691   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698     for ac_exec_ext in '' $ac_executable_extensions; do
4699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700     ac_cv_prog_ac_ct_CC="$ac_prog"
4701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702     break 2
4703   fi
4704 done
4705   done
4706 IFS=$as_save_IFS
4707
4708 fi
4709 fi
4710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4711 if test -n "$ac_ct_CC"; then
4712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4713 $as_echo "$ac_ct_CC" >&6; }
4714 else
4715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4717 fi
4718
4719
4720   test -n "$ac_ct_CC" && break
4721 done
4722
4723   if test "x$ac_ct_CC" = x; then
4724     CC=""
4725   else
4726     case $cross_compiling:$ac_tool_warned in
4727 yes:)
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4731 esac
4732     CC=$ac_ct_CC
4733   fi
4734 fi
4735
4736 fi
4737
4738
4739 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4741 as_fn_error $? "no acceptable C compiler found in \$PATH
4742 See \`config.log' for more details" "$LINENO" 5; }
4743
4744 # Provide some information about the compiler.
4745 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4746 set X $ac_compile
4747 ac_compiler=$2
4748 for ac_option in --version -v -V -qversion; do
4749   { { ac_try="$ac_compiler $ac_option >&5"
4750 case "(($ac_try" in
4751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752   *) ac_try_echo=$ac_try;;
4753 esac
4754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4755 $as_echo "$ac_try_echo"; } >&5
4756   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4757   ac_status=$?
4758   if test -s conftest.err; then
4759     sed '10a\
4760 ... rest of stderr output deleted ...
4761          10q' conftest.err >conftest.er1
4762     cat conftest.er1 >&5
4763   fi
4764   rm -f conftest.er1 conftest.err
4765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4766   test $ac_status = 0; }
4767 done
4768
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h.  */
4771
4772 int
4773 main ()
4774 {
4775
4776   ;
4777   return 0;
4778 }
4779 _ACEOF
4780 ac_clean_files_save=$ac_clean_files
4781 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4782 # Try to create an executable without -o first, disregard a.out.
4783 # It will help us diagnose broken compilers, and finding out an intuition
4784 # of exeext.
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4786 $as_echo_n "checking whether the C compiler works... " >&6; }
4787 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4788
4789 # The possible output files:
4790 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4791
4792 ac_rmfiles=
4793 for ac_file in $ac_files
4794 do
4795   case $ac_file in
4796     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4797     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4798   esac
4799 done
4800 rm -f $ac_rmfiles
4801
4802 if { { ac_try="$ac_link_default"
4803 case "(($ac_try" in
4804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805   *) ac_try_echo=$ac_try;;
4806 esac
4807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4808 $as_echo "$ac_try_echo"; } >&5
4809   (eval "$ac_link_default") 2>&5
4810   ac_status=$?
4811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4812   test $ac_status = 0; }; then :
4813   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4814 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4815 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4816 # so that the user can short-circuit this test for compilers unknown to
4817 # Autoconf.
4818 for ac_file in $ac_files ''
4819 do
4820   test -f "$ac_file" || continue
4821   case $ac_file in
4822     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4823         ;;
4824     [ab].out )
4825         # We found the default executable, but exeext='' is most
4826         # certainly right.
4827         break;;
4828     *.* )
4829         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4830         then :; else
4831            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4832         fi
4833         # We set ac_cv_exeext here because the later test for it is not
4834         # safe: cross compilers may not add the suffix if given an `-o'
4835         # argument, so we may need to know it at that point already.
4836         # Even if this section looks crufty: it has the advantage of
4837         # actually working.
4838         break;;
4839     * )
4840         break;;
4841   esac
4842 done
4843 test "$ac_cv_exeext" = no && ac_cv_exeext=
4844
4845 else
4846   ac_file=''
4847 fi
4848 if test -z "$ac_file"; then :
4849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4851 $as_echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4856 as_fn_error 77 "C compiler cannot create executables
4857 See \`config.log' for more details" "$LINENO" 5; }
4858 else
4859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4860 $as_echo "yes" >&6; }
4861 fi
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4863 $as_echo_n "checking for C compiler default output file name... " >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4865 $as_echo "$ac_file" >&6; }
4866 ac_exeext=$ac_cv_exeext
4867
4868 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4869 ac_clean_files=$ac_clean_files_save
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4871 $as_echo_n "checking for suffix of executables... " >&6; }
4872 if { { ac_try="$ac_link"
4873 case "(($ac_try" in
4874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875   *) ac_try_echo=$ac_try;;
4876 esac
4877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4878 $as_echo "$ac_try_echo"; } >&5
4879   (eval "$ac_link") 2>&5
4880   ac_status=$?
4881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4882   test $ac_status = 0; }; then :
4883   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4884 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4885 # work properly (i.e., refer to `conftest.exe'), while it won't with
4886 # `rm'.
4887 for ac_file in conftest.exe conftest conftest.*; do
4888   test -f "$ac_file" || continue
4889   case $ac_file in
4890     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4891     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4892           break;;
4893     * ) break;;
4894   esac
4895 done
4896 else
4897   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4899 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4900 See \`config.log' for more details" "$LINENO" 5; }
4901 fi
4902 rm -f conftest conftest$ac_cv_exeext
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4904 $as_echo "$ac_cv_exeext" >&6; }
4905
4906 rm -f conftest.$ac_ext
4907 EXEEXT=$ac_cv_exeext
4908 ac_exeext=$EXEEXT
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h.  */
4911 #include <stdio.h>
4912 int
4913 main ()
4914 {
4915 FILE *f = fopen ("conftest.out", "w");
4916  return ferror (f) || fclose (f) != 0;
4917
4918   ;
4919   return 0;
4920 }
4921 _ACEOF
4922 ac_clean_files="$ac_clean_files conftest.out"
4923 # Check that the compiler produces executables we can run.  If not, either
4924 # the compiler is broken, or we cross compile.
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4926 $as_echo_n "checking whether we are cross compiling... " >&6; }
4927 if test "$cross_compiling" != yes; then
4928   { { ac_try="$ac_link"
4929 case "(($ac_try" in
4930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931   *) ac_try_echo=$ac_try;;
4932 esac
4933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4934 $as_echo "$ac_try_echo"; } >&5
4935   (eval "$ac_link") 2>&5
4936   ac_status=$?
4937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4938   test $ac_status = 0; }
4939   if { ac_try='./conftest$ac_cv_exeext'
4940   { { case "(($ac_try" in
4941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942   *) ac_try_echo=$ac_try;;
4943 esac
4944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4945 $as_echo "$ac_try_echo"; } >&5
4946   (eval "$ac_try") 2>&5
4947   ac_status=$?
4948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4949   test $ac_status = 0; }; }; then
4950     cross_compiling=no
4951   else
4952     if test "$cross_compiling" = maybe; then
4953         cross_compiling=yes
4954     else
4955         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4957 as_fn_error $? "cannot run C compiled programs.
4958 If you meant to cross compile, use \`--host'.
4959 See \`config.log' for more details" "$LINENO" 5; }
4960     fi
4961   fi
4962 fi
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4964 $as_echo "$cross_compiling" >&6; }
4965
4966 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4967 ac_clean_files=$ac_clean_files_save
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4969 $as_echo_n "checking for suffix of object files... " >&6; }
4970 if ${ac_cv_objext+:} false; then :
4971   $as_echo_n "(cached) " >&6
4972 else
4973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h.  */
4975
4976 int
4977 main ()
4978 {
4979
4980   ;
4981   return 0;
4982 }
4983 _ACEOF
4984 rm -f conftest.o conftest.obj
4985 if { { ac_try="$ac_compile"
4986 case "(($ac_try" in
4987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988   *) ac_try_echo=$ac_try;;
4989 esac
4990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4991 $as_echo "$ac_try_echo"; } >&5
4992   (eval "$ac_compile") 2>&5
4993   ac_status=$?
4994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4995   test $ac_status = 0; }; then :
4996   for ac_file in conftest.o conftest.obj conftest.*; do
4997   test -f "$ac_file" || continue;
4998   case $ac_file in
4999     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5000     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5001        break;;
5002   esac
5003 done
5004 else
5005   $as_echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5007
5008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5010 as_fn_error $? "cannot compute suffix of object files: cannot compile
5011 See \`config.log' for more details" "$LINENO" 5; }
5012 fi
5013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5014 fi
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5016 $as_echo "$ac_cv_objext" >&6; }
5017 OBJEXT=$ac_cv_objext
5018 ac_objext=$OBJEXT
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5020 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5021 if ${ac_cv_c_compiler_gnu+:} false; then :
5022   $as_echo_n "(cached) " >&6
5023 else
5024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h.  */
5026
5027 int
5028 main ()
5029 {
5030 #ifndef __GNUC__
5031        choke me
5032 #endif
5033
5034   ;
5035   return 0;
5036 }
5037 _ACEOF
5038 if ac_fn_c_try_compile "$LINENO"; then :
5039   ac_compiler_gnu=yes
5040 else
5041   ac_compiler_gnu=no
5042 fi
5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5045
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5048 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5049 if test $ac_compiler_gnu = yes; then
5050   GCC=yes
5051 else
5052   GCC=
5053 fi
5054 ac_test_CFLAGS=${CFLAGS+set}
5055 ac_save_CFLAGS=$CFLAGS
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5057 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5058 if ${ac_cv_prog_cc_g+:} false; then :
5059   $as_echo_n "(cached) " >&6
5060 else
5061   ac_save_c_werror_flag=$ac_c_werror_flag
5062    ac_c_werror_flag=yes
5063    ac_cv_prog_cc_g=no
5064    CFLAGS="-g"
5065    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h.  */
5067
5068 int
5069 main ()
5070 {
5071
5072   ;
5073   return 0;
5074 }
5075 _ACEOF
5076 if ac_fn_c_try_compile "$LINENO"; then :
5077   ac_cv_prog_cc_g=yes
5078 else
5079   CFLAGS=""
5080       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h.  */
5082
5083 int
5084 main ()
5085 {
5086
5087   ;
5088   return 0;
5089 }
5090 _ACEOF
5091 if ac_fn_c_try_compile "$LINENO"; then :
5092
5093 else
5094   ac_c_werror_flag=$ac_save_c_werror_flag
5095          CFLAGS="-g"
5096          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h.  */
5098
5099 int
5100 main ()
5101 {
5102
5103   ;
5104   return 0;
5105 }
5106 _ACEOF
5107 if ac_fn_c_try_compile "$LINENO"; then :
5108   ac_cv_prog_cc_g=yes
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 fi
5112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5113 fi
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115    ac_c_werror_flag=$ac_save_c_werror_flag
5116 fi
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5118 $as_echo "$ac_cv_prog_cc_g" >&6; }
5119 if test "$ac_test_CFLAGS" = set; then
5120   CFLAGS=$ac_save_CFLAGS
5121 elif test $ac_cv_prog_cc_g = yes; then
5122   if test "$GCC" = yes; then
5123     CFLAGS="-g -O2"
5124   else
5125     CFLAGS="-g"
5126   fi
5127 else
5128   if test "$GCC" = yes; then
5129     CFLAGS="-O2"
5130   else
5131     CFLAGS=
5132   fi
5133 fi
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5135 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5136 if ${ac_cv_prog_cc_c89+:} false; then :
5137   $as_echo_n "(cached) " >&6
5138 else
5139   ac_cv_prog_cc_c89=no
5140 ac_save_CC=$CC
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h.  */
5143 #include <stdarg.h>
5144 #include <stdio.h>
5145 struct stat;
5146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5147 struct buf { int x; };
5148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5149 static char *e (p, i)
5150      char **p;
5151      int i;
5152 {
5153   return p[i];
5154 }
5155 static char *f (char * (*g) (char **, int), char **p, ...)
5156 {
5157   char *s;
5158   va_list v;
5159   va_start (v,p);
5160   s = g (p, va_arg (v,int));
5161   va_end (v);
5162   return s;
5163 }
5164
5165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5166    function prototypes and stuff, but not '\xHH' hex character constants.
5167    These don't provoke an error unfortunately, instead are silently treated
5168    as 'x'.  The following induces an error, until -std is added to get
5169    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5170    array size at least.  It's necessary to write '\x00'==0 to get something
5171    that's true only with -std.  */
5172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5173
5174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5175    inside strings and character constants.  */
5176 #define FOO(x) 'x'
5177 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5178
5179 int test (int i, double x);
5180 struct s1 {int (*f) (int a);};
5181 struct s2 {int (*f) (double a);};
5182 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5183 int argc;
5184 char **argv;
5185 int
5186 main ()
5187 {
5188 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5189   ;
5190   return 0;
5191 }
5192 _ACEOF
5193 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5194         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5195 do
5196   CC="$ac_save_CC $ac_arg"
5197   if ac_fn_c_try_compile "$LINENO"; then :
5198   ac_cv_prog_cc_c89=$ac_arg
5199 fi
5200 rm -f core conftest.err conftest.$ac_objext
5201   test "x$ac_cv_prog_cc_c89" != "xno" && break
5202 done
5203 rm -f conftest.$ac_ext
5204 CC=$ac_save_CC
5205
5206 fi
5207 # AC_CACHE_VAL
5208 case "x$ac_cv_prog_cc_c89" in
5209   x)
5210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5211 $as_echo "none needed" >&6; } ;;
5212   xno)
5213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5214 $as_echo "unsupported" >&6; } ;;
5215   *)
5216     CC="$CC $ac_cv_prog_cc_c89"
5217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5218 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5219 esac
5220 if test "x$ac_cv_prog_cc_c89" != xno; then :
5221
5222 fi
5223
5224 ac_ext=c
5225 ac_cpp='$CPP $CPPFLAGS'
5226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229
5230 ac_ext=c
5231 ac_cpp='$CPP $CPPFLAGS'
5232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5236 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5237 if ${am_cv_prog_cc_c_o+:} false; then :
5238   $as_echo_n "(cached) " >&6
5239 else
5240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h.  */
5242
5243 int
5244 main ()
5245 {
5246
5247   ;
5248   return 0;
5249 }
5250 _ACEOF
5251   # Make sure it works both with $CC and with simple cc.
5252   # Following AC_PROG_CC_C_O, we do the test twice because some
5253   # compilers refuse to overwrite an existing .o file with -o,
5254   # though they will create one.
5255   am_cv_prog_cc_c_o=yes
5256   for am_i in 1 2; do
5257     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5258    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5259    ac_status=$?
5260    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261    (exit $ac_status); } \
5262          && test -f conftest2.$ac_objext; then
5263       : OK
5264     else
5265       am_cv_prog_cc_c_o=no
5266       break
5267     fi
5268   done
5269   rm -f core conftest*
5270   unset am_i
5271 fi
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5273 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5274 if test "$am_cv_prog_cc_c_o" != yes; then
5275    # Losing compiler, so override with the script.
5276    # FIXME: It is wrong to rewrite CC.
5277    # But if we don't then we get into trouble of one sort or another.
5278    # A longer-term fix would be to have automake use am__CC in this case,
5279    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5280    CC="$am_aux_dir/compile $CC"
5281 fi
5282 ac_ext=c
5283 ac_cpp='$CPP $CPPFLAGS'
5284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5287
5288
5289 depcc="$CC"   am_compiler_list=
5290
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5292 $as_echo_n "checking dependency style of $depcc... " >&6; }
5293 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5294   $as_echo_n "(cached) " >&6
5295 else
5296   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5297   # We make a subdir and do the tests there.  Otherwise we can end up
5298   # making bogus files that we don't know about and never remove.  For
5299   # instance it was reported that on HP-UX the gcc test will end up
5300   # making a dummy file named 'D' -- because '-MD' means "put the output
5301   # in D".
5302   rm -rf conftest.dir
5303   mkdir conftest.dir
5304   # Copy depcomp to subdir because otherwise we won't find it if we're
5305   # using a relative directory.
5306   cp "$am_depcomp" conftest.dir
5307   cd conftest.dir
5308   # We will build objects and dependencies in a subdirectory because
5309   # it helps to detect inapplicable dependency modes.  For instance
5310   # both Tru64's cc and ICC support -MD to output dependencies as a
5311   # side effect of compilation, but ICC will put the dependencies in
5312   # the current directory while Tru64 will put them in the object
5313   # directory.
5314   mkdir sub
5315
5316   am_cv_CC_dependencies_compiler_type=none
5317   if test "$am_compiler_list" = ""; then
5318      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5319   fi
5320   am__universal=false
5321   case " $depcc " in #(
5322      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5323      esac
5324
5325   for depmode in $am_compiler_list; do
5326     # Setup a source with many dependencies, because some compilers
5327     # like to wrap large dependency lists on column 80 (with \), and
5328     # we should not choose a depcomp mode which is confused by this.
5329     #
5330     # We need to recreate these files for each test, as the compiler may
5331     # overwrite some of them when testing with obscure command lines.
5332     # This happens at least with the AIX C compiler.
5333     : > sub/conftest.c
5334     for i in 1 2 3 4 5 6; do
5335       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5336       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5337       # Solaris 10 /bin/sh.
5338       echo '/* dummy */' > sub/conftst$i.h
5339     done
5340     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5341
5342     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5343     # mode.  It turns out that the SunPro C++ compiler does not properly
5344     # handle '-M -o', and we need to detect this.  Also, some Intel
5345     # versions had trouble with output in subdirs.
5346     am__obj=sub/conftest.${OBJEXT-o}
5347     am__minus_obj="-o $am__obj"
5348     case $depmode in
5349     gcc)
5350       # This depmode causes a compiler race in universal mode.
5351       test "$am__universal" = false || continue
5352       ;;
5353     nosideeffect)
5354       # After this tag, mechanisms are not by side-effect, so they'll
5355       # only be used when explicitly requested.
5356       if test "x$enable_dependency_tracking" = xyes; then
5357         continue
5358       else
5359         break
5360       fi
5361       ;;
5362     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5363       # This compiler won't grok '-c -o', but also, the minuso test has
5364       # not run yet.  These depmodes are late enough in the game, and
5365       # so weak that their functioning should not be impacted.
5366       am__obj=conftest.${OBJEXT-o}
5367       am__minus_obj=
5368       ;;
5369     none) break ;;
5370     esac
5371     if depmode=$depmode \
5372        source=sub/conftest.c object=$am__obj \
5373        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5374        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5375          >/dev/null 2>conftest.err &&
5376        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5377        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5378        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5379        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5380       # icc doesn't choke on unknown options, it will just issue warnings
5381       # or remarks (even with -Werror).  So we grep stderr for any message
5382       # that says an option was ignored or not supported.
5383       # When given -MP, icc 7.0 and 7.1 complain thusly:
5384       #   icc: Command line warning: ignoring option '-M'; no argument required
5385       # The diagnosis changed in icc 8.0:
5386       #   icc: Command line remark: option '-MP' not supported
5387       if (grep 'ignoring option' conftest.err ||
5388           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5389         am_cv_CC_dependencies_compiler_type=$depmode
5390         break
5391       fi
5392     fi
5393   done
5394
5395   cd ..
5396   rm -rf conftest.dir
5397 else
5398   am_cv_CC_dependencies_compiler_type=none
5399 fi
5400
5401 fi
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5403 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5404 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5405
5406  if
5407   test "x$enable_dependency_tracking" != xno \
5408   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5409   am__fastdepCC_TRUE=
5410   am__fastdepCC_FALSE='#'
5411 else
5412   am__fastdepCC_TRUE='#'
5413   am__fastdepCC_FALSE=
5414 fi
5415
5416
5417
5418 ac_ext=c
5419 ac_cpp='$CPP $CPPFLAGS'
5420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5424 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5425 # On Suns, sometimes $CPP names a directory.
5426 if test -n "$CPP" && test -d "$CPP"; then
5427   CPP=
5428 fi
5429 if test -z "$CPP"; then
5430   if ${ac_cv_prog_CPP+:} false; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433       # Double quotes because CPP needs to be expanded
5434     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5435     do
5436       ac_preproc_ok=false
5437 for ac_c_preproc_warn_flag in '' yes
5438 do
5439   # Use a header file that comes with gcc, so configuring glibc
5440   # with a fresh cross-compiler works.
5441   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5442   # <limits.h> exists even on freestanding compilers.
5443   # On the NeXT, cc -E runs the code through the compiler's parser,
5444   # not just through cpp. "Syntax error" is here to catch this case.
5445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h.  */
5447 #ifdef __STDC__
5448 # include <limits.h>
5449 #else
5450 # include <assert.h>
5451 #endif
5452                      Syntax error
5453 _ACEOF
5454 if ac_fn_c_try_cpp "$LINENO"; then :
5455
5456 else
5457   # Broken: fails on valid input.
5458 continue
5459 fi
5460 rm -f conftest.err conftest.i conftest.$ac_ext
5461
5462   # OK, works on sane cases.  Now check whether nonexistent headers
5463   # can be detected and how.
5464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h.  */
5466 #include <ac_nonexistent.h>
5467 _ACEOF
5468 if ac_fn_c_try_cpp "$LINENO"; then :
5469   # Broken: success on invalid input.
5470 continue
5471 else
5472   # Passes both tests.
5473 ac_preproc_ok=:
5474 break
5475 fi
5476 rm -f conftest.err conftest.i conftest.$ac_ext
5477
5478 done
5479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5480 rm -f conftest.i conftest.err conftest.$ac_ext
5481 if $ac_preproc_ok; then :
5482   break
5483 fi
5484
5485     done
5486     ac_cv_prog_CPP=$CPP
5487
5488 fi
5489   CPP=$ac_cv_prog_CPP
5490 else
5491   ac_cv_prog_CPP=$CPP
5492 fi
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5494 $as_echo "$CPP" >&6; }
5495 ac_preproc_ok=false
5496 for ac_c_preproc_warn_flag in '' yes
5497 do
5498   # Use a header file that comes with gcc, so configuring glibc
5499   # with a fresh cross-compiler works.
5500   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5501   # <limits.h> exists even on freestanding compilers.
5502   # On the NeXT, cc -E runs the code through the compiler's parser,
5503   # not just through cpp. "Syntax error" is here to catch this case.
5504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h.  */
5506 #ifdef __STDC__
5507 # include <limits.h>
5508 #else
5509 # include <assert.h>
5510 #endif
5511                      Syntax error
5512 _ACEOF
5513 if ac_fn_c_try_cpp "$LINENO"; then :
5514
5515 else
5516   # Broken: fails on valid input.
5517 continue
5518 fi
5519 rm -f conftest.err conftest.i conftest.$ac_ext
5520
5521   # OK, works on sane cases.  Now check whether nonexistent headers
5522   # can be detected and how.
5523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h.  */
5525 #include <ac_nonexistent.h>
5526 _ACEOF
5527 if ac_fn_c_try_cpp "$LINENO"; then :
5528   # Broken: success on invalid input.
5529 continue
5530 else
5531   # Passes both tests.
5532 ac_preproc_ok=:
5533 break
5534 fi
5535 rm -f conftest.err conftest.i conftest.$ac_ext
5536
5537 done
5538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5539 rm -f conftest.i conftest.err conftest.$ac_ext
5540 if $ac_preproc_ok; then :
5541
5542 else
5543   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5545 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5546 See \`config.log' for more details" "$LINENO" 5; }
5547 fi
5548
5549 ac_ext=c
5550 ac_cpp='$CPP $CPPFLAGS'
5551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5554
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5557 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5558 if ${ac_cv_path_GREP+:} false; then :
5559   $as_echo_n "(cached) " >&6
5560 else
5561   if test -z "$GREP"; then
5562   ac_path_GREP_found=false
5563   # Loop through the user's path and test for each of PROGNAME-LIST
5564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5566 do
5567   IFS=$as_save_IFS
5568   test -z "$as_dir" && as_dir=.
5569     for ac_prog in grep ggrep; do
5570     for ac_exec_ext in '' $ac_executable_extensions; do
5571       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5572       as_fn_executable_p "$ac_path_GREP" || continue
5573 # Check for GNU ac_path_GREP and select it if it is found.
5574   # Check for GNU $ac_path_GREP
5575 case `"$ac_path_GREP" --version 2>&1` in
5576 *GNU*)
5577   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5578 *)
5579   ac_count=0
5580   $as_echo_n 0123456789 >"conftest.in"
5581   while :
5582   do
5583     cat "conftest.in" "conftest.in" >"conftest.tmp"
5584     mv "conftest.tmp" "conftest.in"
5585     cp "conftest.in" "conftest.nl"
5586     $as_echo 'GREP' >> "conftest.nl"
5587     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5588     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5589     as_fn_arith $ac_count + 1 && ac_count=$as_val
5590     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5591       # Best one so far, save it but keep looking for a better one
5592       ac_cv_path_GREP="$ac_path_GREP"
5593       ac_path_GREP_max=$ac_count
5594     fi
5595     # 10*(2^10) chars as input seems more than enough
5596     test $ac_count -gt 10 && break
5597   done
5598   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5599 esac
5600
5601       $ac_path_GREP_found && break 3
5602     done
5603   done
5604   done
5605 IFS=$as_save_IFS
5606   if test -z "$ac_cv_path_GREP"; then
5607     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5608   fi
5609 else
5610   ac_cv_path_GREP=$GREP
5611 fi
5612
5613 fi
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5615 $as_echo "$ac_cv_path_GREP" >&6; }
5616  GREP="$ac_cv_path_GREP"
5617
5618
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5620 $as_echo_n "checking for egrep... " >&6; }
5621 if ${ac_cv_path_EGREP+:} false; then :
5622   $as_echo_n "(cached) " >&6
5623 else
5624   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5625    then ac_cv_path_EGREP="$GREP -E"
5626    else
5627      if test -z "$EGREP"; then
5628   ac_path_EGREP_found=false
5629   # Loop through the user's path and test for each of PROGNAME-LIST
5630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5632 do
5633   IFS=$as_save_IFS
5634   test -z "$as_dir" && as_dir=.
5635     for ac_prog in egrep; do
5636     for ac_exec_ext in '' $ac_executable_extensions; do
5637       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5638       as_fn_executable_p "$ac_path_EGREP" || continue
5639 # Check for GNU ac_path_EGREP and select it if it is found.
5640   # Check for GNU $ac_path_EGREP
5641 case `"$ac_path_EGREP" --version 2>&1` in
5642 *GNU*)
5643   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5644 *)
5645   ac_count=0
5646   $as_echo_n 0123456789 >"conftest.in"
5647   while :
5648   do
5649     cat "conftest.in" "conftest.in" >"conftest.tmp"
5650     mv "conftest.tmp" "conftest.in"
5651     cp "conftest.in" "conftest.nl"
5652     $as_echo 'EGREP' >> "conftest.nl"
5653     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5654     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5655     as_fn_arith $ac_count + 1 && ac_count=$as_val
5656     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5657       # Best one so far, save it but keep looking for a better one
5658       ac_cv_path_EGREP="$ac_path_EGREP"
5659       ac_path_EGREP_max=$ac_count
5660     fi
5661     # 10*(2^10) chars as input seems more than enough
5662     test $ac_count -gt 10 && break
5663   done
5664   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5665 esac
5666
5667       $ac_path_EGREP_found && break 3
5668     done
5669   done
5670   done
5671 IFS=$as_save_IFS
5672   if test -z "$ac_cv_path_EGREP"; then
5673     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5674   fi
5675 else
5676   ac_cv_path_EGREP=$EGREP
5677 fi
5678
5679    fi
5680 fi
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5682 $as_echo "$ac_cv_path_EGREP" >&6; }
5683  EGREP="$ac_cv_path_EGREP"
5684
5685
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5687 $as_echo_n "checking for ANSI C header files... " >&6; }
5688 if ${ac_cv_header_stdc+:} false; then :
5689   $as_echo_n "(cached) " >&6
5690 else
5691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h.  */
5693 #include <stdlib.h>
5694 #include <stdarg.h>
5695 #include <string.h>
5696 #include <float.h>
5697
5698 int
5699 main ()
5700 {
5701
5702   ;
5703   return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_c_try_compile "$LINENO"; then :
5707   ac_cv_header_stdc=yes
5708 else
5709   ac_cv_header_stdc=no
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712
5713 if test $ac_cv_header_stdc = yes; then
5714   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h.  */
5717 #include <string.h>
5718
5719 _ACEOF
5720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5721   $EGREP "memchr" >/dev/null 2>&1; then :
5722
5723 else
5724   ac_cv_header_stdc=no
5725 fi
5726 rm -f conftest*
5727
5728 fi
5729
5730 if test $ac_cv_header_stdc = yes; then
5731   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h.  */
5734 #include <stdlib.h>
5735
5736 _ACEOF
5737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5738   $EGREP "free" >/dev/null 2>&1; then :
5739
5740 else
5741   ac_cv_header_stdc=no
5742 fi
5743 rm -f conftest*
5744
5745 fi
5746
5747 if test $ac_cv_header_stdc = yes; then
5748   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5749   if test "$cross_compiling" = yes; then :
5750   :
5751 else
5752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h.  */
5754 #include <ctype.h>
5755 #include <stdlib.h>
5756 #if ((' ' & 0x0FF) == 0x020)
5757 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5758 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5759 #else
5760 # define ISLOWER(c) \
5761                    (('a' <= (c) && (c) <= 'i') \
5762                      || ('j' <= (c) && (c) <= 'r') \
5763                      || ('s' <= (c) && (c) <= 'z'))
5764 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5765 #endif
5766
5767 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5768 int
5769 main ()
5770 {
5771   int i;
5772   for (i = 0; i < 256; i++)
5773     if (XOR (islower (i), ISLOWER (i))
5774         || toupper (i) != TOUPPER (i))
5775       return 2;
5776   return 0;
5777 }
5778 _ACEOF
5779 if ac_fn_c_try_run "$LINENO"; then :
5780
5781 else
5782   ac_cv_header_stdc=no
5783 fi
5784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5785   conftest.$ac_objext conftest.beam conftest.$ac_ext
5786 fi
5787
5788 fi
5789 fi
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5791 $as_echo "$ac_cv_header_stdc" >&6; }
5792 if test $ac_cv_header_stdc = yes; then
5793
5794 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5795
5796 fi
5797
5798 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5799 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5800                   inttypes.h stdint.h unistd.h
5801 do :
5802   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5803 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5804 "
5805 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5806   cat >>confdefs.h <<_ACEOF
5807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5808 _ACEOF
5809
5810 fi
5811
5812 done
5813
5814
5815
5816   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5817 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5818   MINIX=yes
5819 else
5820   MINIX=
5821 fi
5822
5823
5824   if test "$MINIX" = yes; then
5825
5826 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5827
5828
5829 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5830
5831
5832 $as_echo "#define _MINIX 1" >>confdefs.h
5833
5834
5835 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5836
5837   fi
5838
5839
5840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5841 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5842 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5843   $as_echo_n "(cached) " >&6
5844 else
5845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h.  */
5847
5848 #         define __EXTENSIONS__ 1
5849           $ac_includes_default
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_safe_to_define___extensions__=yes
5860 else
5861   ac_cv_safe_to_define___extensions__=no
5862 fi
5863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864 fi
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5866 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5867   test $ac_cv_safe_to_define___extensions__ = yes &&
5868     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5869
5870   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5871
5872   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5873
5874   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5875
5876   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5877
5878   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5879
5880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5881 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5882 if ${ac_cv_should_define__xopen_source+:} false; then :
5883   $as_echo_n "(cached) " >&6
5884 else
5885   ac_cv_should_define__xopen_source=no
5886      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h.  */
5888
5889           #include <wchar.h>
5890           mbstate_t x;
5891 int
5892 main ()
5893 {
5894
5895   ;
5896   return 0;
5897 }
5898 _ACEOF
5899 if ac_fn_c_try_compile "$LINENO"; then :
5900
5901 else
5902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h.  */
5904
5905              #define _XOPEN_SOURCE 500
5906              #include <wchar.h>
5907              mbstate_t x;
5908 int
5909 main ()
5910 {
5911
5912   ;
5913   return 0;
5914 }
5915 _ACEOF
5916 if ac_fn_c_try_compile "$LINENO"; then :
5917   ac_cv_should_define__xopen_source=yes
5918 fi
5919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920 fi
5921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5924 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5925   test $ac_cv_should_define__xopen_source = yes &&
5926     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5927
5928
5929
5930 if test -n "$ac_tool_prefix"; then
5931   for ac_prog in ar lib "link -lib"
5932   do
5933     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if ${ac_cv_prog_AR+:} false; then :
5938   $as_echo_n "(cached) " >&6
5939 else
5940   if test -n "$AR"; then
5941   ac_cv_prog_AR="$AR" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5945 do
5946   IFS=$as_save_IFS
5947   test -z "$as_dir" && as_dir=.
5948     for ac_exec_ext in '' $ac_executable_extensions; do
5949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952     break 2
5953   fi
5954 done
5955   done
5956 IFS=$as_save_IFS
5957
5958 fi
5959 fi
5960 AR=$ac_cv_prog_AR
5961 if test -n "$AR"; then
5962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5963 $as_echo "$AR" >&6; }
5964 else
5965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5967 fi
5968
5969
5970     test -n "$AR" && break
5971   done
5972 fi
5973 if test -z "$AR"; then
5974   ac_ct_AR=$AR
5975   for ac_prog in ar lib "link -lib"
5976 do
5977   # Extract the first word of "$ac_prog", so it can be a program name with args.
5978 set dummy $ac_prog; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5982   $as_echo_n "(cached) " >&6
5983 else
5984   if test -n "$ac_ct_AR"; then
5985   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990   IFS=$as_save_IFS
5991   test -z "$as_dir" && as_dir=.
5992     for ac_exec_ext in '' $ac_executable_extensions; do
5993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994     ac_cv_prog_ac_ct_AR="$ac_prog"
5995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996     break 2
5997   fi
5998 done
5999   done
6000 IFS=$as_save_IFS
6001
6002 fi
6003 fi
6004 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6005 if test -n "$ac_ct_AR"; then
6006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6007 $as_echo "$ac_ct_AR" >&6; }
6008 else
6009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6011 fi
6012
6013
6014   test -n "$ac_ct_AR" && break
6015 done
6016
6017   if test "x$ac_ct_AR" = x; then
6018     AR="false"
6019   else
6020     case $cross_compiling:$ac_tool_warned in
6021 yes:)
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6024 ac_tool_warned=yes ;;
6025 esac
6026     AR=$ac_ct_AR
6027   fi
6028 fi
6029
6030 : ${AR=ar}
6031
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6033 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6034 if ${am_cv_ar_interface+:} false; then :
6035   $as_echo_n "(cached) " >&6
6036 else
6037   ac_ext=c
6038 ac_cpp='$CPP $CPPFLAGS'
6039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6042
6043    am_cv_ar_interface=ar
6044    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h.  */
6046 int some_variable = 0;
6047 _ACEOF
6048 if ac_fn_c_try_compile "$LINENO"; then :
6049   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6050       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6051   (eval $am_ar_try) 2>&5
6052   ac_status=$?
6053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6054   test $ac_status = 0; }
6055       if test "$ac_status" -eq 0; then
6056         am_cv_ar_interface=ar
6057       else
6058         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6059         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6060   (eval $am_ar_try) 2>&5
6061   ac_status=$?
6062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063   test $ac_status = 0; }
6064         if test "$ac_status" -eq 0; then
6065           am_cv_ar_interface=lib
6066         else
6067           am_cv_ar_interface=unknown
6068         fi
6069       fi
6070       rm -f conftest.lib libconftest.a
6071
6072 fi
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074    ac_ext=c
6075 ac_cpp='$CPP $CPPFLAGS'
6076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6079
6080 fi
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6082 $as_echo "$am_cv_ar_interface" >&6; }
6083
6084 case $am_cv_ar_interface in
6085 ar)
6086   ;;
6087 lib)
6088   # Microsoft lib, so override with the ar-lib wrapper script.
6089   # FIXME: It is wrong to rewrite AR.
6090   # But if we don't then we get into trouble of one sort or another.
6091   # A longer-term fix would be to have automake use am__AR in this case,
6092   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6093   # similar.
6094   AR="$am_aux_dir/ar-lib $AR"
6095   ;;
6096 unknown)
6097   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6098   ;;
6099 esac
6100
6101 case `pwd` in
6102   *\ * | *\     *)
6103     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6104 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6105 esac
6106
6107
6108
6109 macro_version='2.4.6'
6110 macro_revision='2.4.6'
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124 ltmain=$ac_aux_dir/ltmain.sh
6125
6126 # Make sure we can run config.sub.
6127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6128   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6129
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6131 $as_echo_n "checking build system type... " >&6; }
6132 if ${ac_cv_build+:} false; then :
6133   $as_echo_n "(cached) " >&6
6134 else
6135   ac_build_alias=$build_alias
6136 test "x$ac_build_alias" = x &&
6137   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6138 test "x$ac_build_alias" = x &&
6139   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6141   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6142
6143 fi
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6145 $as_echo "$ac_cv_build" >&6; }
6146 case $ac_cv_build in
6147 *-*-*) ;;
6148 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6149 esac
6150 build=$ac_cv_build
6151 ac_save_IFS=$IFS; IFS='-'
6152 set x $ac_cv_build
6153 shift
6154 build_cpu=$1
6155 build_vendor=$2
6156 shift; shift
6157 # Remember, the first character of IFS is used to create $*,
6158 # except with old shells:
6159 build_os=$*
6160 IFS=$ac_save_IFS
6161 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6162
6163
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6165 $as_echo_n "checking host system type... " >&6; }
6166 if ${ac_cv_host+:} false; then :
6167   $as_echo_n "(cached) " >&6
6168 else
6169   if test "x$host_alias" = x; then
6170   ac_cv_host=$ac_cv_build
6171 else
6172   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6173     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6174 fi
6175
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6178 $as_echo "$ac_cv_host" >&6; }
6179 case $ac_cv_host in
6180 *-*-*) ;;
6181 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6182 esac
6183 host=$ac_cv_host
6184 ac_save_IFS=$IFS; IFS='-'
6185 set x $ac_cv_host
6186 shift
6187 host_cpu=$1
6188 host_vendor=$2
6189 shift; shift
6190 # Remember, the first character of IFS is used to create $*,
6191 # except with old shells:
6192 host_os=$*
6193 IFS=$ac_save_IFS
6194 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6195
6196
6197 # Backslashify metacharacters that are still active within
6198 # double-quoted strings.
6199 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6200
6201 # Same as above, but do not quote variable references.
6202 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6203
6204 # Sed substitution to delay expansion of an escaped shell variable in a
6205 # double_quote_subst'ed string.
6206 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6207
6208 # Sed substitution to delay expansion of an escaped single quote.
6209 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6210
6211 # Sed substitution to avoid accidental globbing in evaled expressions
6212 no_glob_subst='s/\*/\\\*/g'
6213
6214 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6215 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6216 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6217
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6219 $as_echo_n "checking how to print strings... " >&6; }
6220 # Test print first, because it will be a builtin if present.
6221 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6222    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6223   ECHO='print -r --'
6224 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6225   ECHO='printf %s\n'
6226 else
6227   # Use this function as a fallback that always works.
6228   func_fallback_echo ()
6229   {
6230     eval 'cat <<_LTECHO_EOF
6231 $1
6232 _LTECHO_EOF'
6233   }
6234   ECHO='func_fallback_echo'
6235 fi
6236
6237 # func_echo_all arg...
6238 # Invoke $ECHO with all args, space-separated.
6239 func_echo_all ()
6240 {
6241     $ECHO ""
6242 }
6243
6244 case $ECHO in
6245   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6246 $as_echo "printf" >&6; } ;;
6247   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6248 $as_echo "print -r" >&6; } ;;
6249   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6250 $as_echo "cat" >&6; } ;;
6251 esac
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6267 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6268 if ${ac_cv_path_SED+:} false; then :
6269   $as_echo_n "(cached) " >&6
6270 else
6271             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6272      for ac_i in 1 2 3 4 5 6 7; do
6273        ac_script="$ac_script$as_nl$ac_script"
6274      done
6275      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6276      { ac_script=; unset ac_script;}
6277      if test -z "$SED"; then
6278   ac_path_SED_found=false
6279   # Loop through the user's path and test for each of PROGNAME-LIST
6280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283   IFS=$as_save_IFS
6284   test -z "$as_dir" && as_dir=.
6285     for ac_prog in sed gsed; do
6286     for ac_exec_ext in '' $ac_executable_extensions; do
6287       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6288       as_fn_executable_p "$ac_path_SED" || continue
6289 # Check for GNU ac_path_SED and select it if it is found.
6290   # Check for GNU $ac_path_SED
6291 case `"$ac_path_SED" --version 2>&1` in
6292 *GNU*)
6293   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6294 *)
6295   ac_count=0
6296   $as_echo_n 0123456789 >"conftest.in"
6297   while :
6298   do
6299     cat "conftest.in" "conftest.in" >"conftest.tmp"
6300     mv "conftest.tmp" "conftest.in"
6301     cp "conftest.in" "conftest.nl"
6302     $as_echo '' >> "conftest.nl"
6303     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6304     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6305     as_fn_arith $ac_count + 1 && ac_count=$as_val
6306     if test $ac_count -gt ${ac_path_SED_max-0}; then
6307       # Best one so far, save it but keep looking for a better one
6308       ac_cv_path_SED="$ac_path_SED"
6309       ac_path_SED_max=$ac_count
6310     fi
6311     # 10*(2^10) chars as input seems more than enough
6312     test $ac_count -gt 10 && break
6313   done
6314   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6315 esac
6316
6317       $ac_path_SED_found && break 3
6318     done
6319   done
6320   done
6321 IFS=$as_save_IFS
6322   if test -z "$ac_cv_path_SED"; then
6323     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6324   fi
6325 else
6326   ac_cv_path_SED=$SED
6327 fi
6328
6329 fi
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6331 $as_echo "$ac_cv_path_SED" >&6; }
6332  SED="$ac_cv_path_SED"
6333   rm -f conftest.sed
6334
6335 test -z "$SED" && SED=sed
6336 Xsed="$SED -e 1s/^X//"
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6349 $as_echo_n "checking for fgrep... " >&6; }
6350 if ${ac_cv_path_FGREP+:} false; then :
6351   $as_echo_n "(cached) " >&6
6352 else
6353   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6354    then ac_cv_path_FGREP="$GREP -F"
6355    else
6356      if test -z "$FGREP"; then
6357   ac_path_FGREP_found=false
6358   # Loop through the user's path and test for each of PROGNAME-LIST
6359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6361 do
6362   IFS=$as_save_IFS
6363   test -z "$as_dir" && as_dir=.
6364     for ac_prog in fgrep; do
6365     for ac_exec_ext in '' $ac_executable_extensions; do
6366       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6367       as_fn_executable_p "$ac_path_FGREP" || continue
6368 # Check for GNU ac_path_FGREP and select it if it is found.
6369   # Check for GNU $ac_path_FGREP
6370 case `"$ac_path_FGREP" --version 2>&1` in
6371 *GNU*)
6372   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6373 *)
6374   ac_count=0
6375   $as_echo_n 0123456789 >"conftest.in"
6376   while :
6377   do
6378     cat "conftest.in" "conftest.in" >"conftest.tmp"
6379     mv "conftest.tmp" "conftest.in"
6380     cp "conftest.in" "conftest.nl"
6381     $as_echo 'FGREP' >> "conftest.nl"
6382     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6383     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6384     as_fn_arith $ac_count + 1 && ac_count=$as_val
6385     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6386       # Best one so far, save it but keep looking for a better one
6387       ac_cv_path_FGREP="$ac_path_FGREP"
6388       ac_path_FGREP_max=$ac_count
6389     fi
6390     # 10*(2^10) chars as input seems more than enough
6391     test $ac_count -gt 10 && break
6392   done
6393   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6394 esac
6395
6396       $ac_path_FGREP_found && break 3
6397     done
6398   done
6399   done
6400 IFS=$as_save_IFS
6401   if test -z "$ac_cv_path_FGREP"; then
6402     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6403   fi
6404 else
6405   ac_cv_path_FGREP=$FGREP
6406 fi
6407
6408    fi
6409 fi
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6411 $as_echo "$ac_cv_path_FGREP" >&6; }
6412  FGREP="$ac_cv_path_FGREP"
6413
6414
6415 test -z "$GREP" && GREP=grep
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435 # Check whether --with-gnu-ld was given.
6436 if test "${with_gnu_ld+set}" = set; then :
6437   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6438 else
6439   with_gnu_ld=no
6440 fi
6441
6442 ac_prog=ld
6443 if test yes = "$GCC"; then
6444   # Check if gcc -print-prog-name=ld gives a path.
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6446 $as_echo_n "checking for ld used by $CC... " >&6; }
6447   case $host in
6448   *-*-mingw*)
6449     # gcc leaves a trailing carriage return, which upsets mingw
6450     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6451   *)
6452     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6453   esac
6454   case $ac_prog in
6455     # Accept absolute paths.
6456     [\\/]* | ?:[\\/]*)
6457       re_direlt='/[^/][^/]*/\.\./'
6458       # Canonicalize the pathname of ld
6459       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6460       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6461         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6462       done
6463       test -z "$LD" && LD=$ac_prog
6464       ;;
6465   "")
6466     # If it fails, then pretend we aren't using GCC.
6467     ac_prog=ld
6468     ;;
6469   *)
6470     # If it is relative, then search for the first ld in PATH.
6471     with_gnu_ld=unknown
6472     ;;
6473   esac
6474 elif test yes = "$with_gnu_ld"; then
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6476 $as_echo_n "checking for GNU ld... " >&6; }
6477 else
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6479 $as_echo_n "checking for non-GNU ld... " >&6; }
6480 fi
6481 if ${lt_cv_path_LD+:} false; then :
6482   $as_echo_n "(cached) " >&6
6483 else
6484   if test -z "$LD"; then
6485   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6486   for ac_dir in $PATH; do
6487     IFS=$lt_save_ifs
6488     test -z "$ac_dir" && ac_dir=.
6489     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6490       lt_cv_path_LD=$ac_dir/$ac_prog
6491       # Check to see if the program is GNU ld.  I'd rather use --version,
6492       # but apparently some variants of GNU ld only accept -v.
6493       # Break only if it was the GNU/non-GNU ld that we prefer.
6494       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6495       *GNU* | *'with BFD'*)
6496         test no != "$with_gnu_ld" && break
6497         ;;
6498       *)
6499         test yes != "$with_gnu_ld" && break
6500         ;;
6501       esac
6502     fi
6503   done
6504   IFS=$lt_save_ifs
6505 else
6506   lt_cv_path_LD=$LD # Let the user override the test with a path.
6507 fi
6508 fi
6509
6510 LD=$lt_cv_path_LD
6511 if test -n "$LD"; then
6512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6513 $as_echo "$LD" >&6; }
6514 else
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6520 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6521 if ${lt_cv_prog_gnu_ld+:} false; then :
6522   $as_echo_n "(cached) " >&6
6523 else
6524   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6525 case `$LD -v 2>&1 </dev/null` in
6526 *GNU* | *'with BFD'*)
6527   lt_cv_prog_gnu_ld=yes
6528   ;;
6529 *)
6530   lt_cv_prog_gnu_ld=no
6531   ;;
6532 esac
6533 fi
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6535 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6536 with_gnu_ld=$lt_cv_prog_gnu_ld
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6547 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6548 if ${lt_cv_path_NM+:} false; then :
6549   $as_echo_n "(cached) " >&6
6550 else
6551   if test -n "$NM"; then
6552   # Let the user override the test.
6553   lt_cv_path_NM=$NM
6554 else
6555   lt_nm_to_check=${ac_tool_prefix}nm
6556   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6557     lt_nm_to_check="$lt_nm_to_check nm"
6558   fi
6559   for lt_tmp_nm in $lt_nm_to_check; do
6560     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6561     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6562       IFS=$lt_save_ifs
6563       test -z "$ac_dir" && ac_dir=.
6564       tmp_nm=$ac_dir/$lt_tmp_nm
6565       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6566         # Check to see if the nm accepts a BSD-compat flag.
6567         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6568         #   nm: unknown option "B" ignored
6569         # Tru64's nm complains that /dev/null is an invalid object file
6570         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6571         case $build_os in
6572         mingw*) lt_bad_file=conftest.nm/nofile ;;
6573         *) lt_bad_file=/dev/null ;;
6574         esac
6575         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6576         *$lt_bad_file* | *'Invalid file or object type'*)
6577           lt_cv_path_NM="$tmp_nm -B"
6578           break 2
6579           ;;
6580         *)
6581           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6582           */dev/null*)
6583             lt_cv_path_NM="$tmp_nm -p"
6584             break 2
6585             ;;
6586           *)
6587             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6588             continue # so that we can try to find one that supports BSD flags
6589             ;;
6590           esac
6591           ;;
6592         esac
6593       fi
6594     done
6595     IFS=$lt_save_ifs
6596   done
6597   : ${lt_cv_path_NM=no}
6598 fi
6599 fi
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6601 $as_echo "$lt_cv_path_NM" >&6; }
6602 if test no != "$lt_cv_path_NM"; then
6603   NM=$lt_cv_path_NM
6604 else
6605   # Didn't find any BSD compatible name lister, look for dumpbin.
6606   if test -n "$DUMPBIN"; then :
6607     # Let the user override the test.
6608   else
6609     if test -n "$ac_tool_prefix"; then
6610   for ac_prog in dumpbin "link -dump"
6611   do
6612     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_DUMPBIN+:} false; then :
6617   $as_echo_n "(cached) " >&6
6618 else
6619   if test -n "$DUMPBIN"; then
6620   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625   IFS=$as_save_IFS
6626   test -z "$as_dir" && as_dir=.
6627     for ac_exec_ext in '' $ac_executable_extensions; do
6628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631     break 2
6632   fi
6633 done
6634   done
6635 IFS=$as_save_IFS
6636
6637 fi
6638 fi
6639 DUMPBIN=$ac_cv_prog_DUMPBIN
6640 if test -n "$DUMPBIN"; then
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6642 $as_echo "$DUMPBIN" >&6; }
6643 else
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647
6648
6649     test -n "$DUMPBIN" && break
6650   done
6651 fi
6652 if test -z "$DUMPBIN"; then
6653   ac_ct_DUMPBIN=$DUMPBIN
6654   for ac_prog in dumpbin "link -dump"
6655 do
6656   # Extract the first word of "$ac_prog", so it can be a program name with args.
6657 set dummy $ac_prog; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6661   $as_echo_n "(cached) " >&6
6662 else
6663   if test -n "$ac_ct_DUMPBIN"; then
6664   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671     for ac_exec_ext in '' $ac_executable_extensions; do
6672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6673     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678   done
6679 IFS=$as_save_IFS
6680
6681 fi
6682 fi
6683 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6684 if test -n "$ac_ct_DUMPBIN"; then
6685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6686 $as_echo "$ac_ct_DUMPBIN" >&6; }
6687 else
6688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6690 fi
6691
6692
6693   test -n "$ac_ct_DUMPBIN" && break
6694 done
6695
6696   if test "x$ac_ct_DUMPBIN" = x; then
6697     DUMPBIN=":"
6698   else
6699     case $cross_compiling:$ac_tool_warned in
6700 yes:)
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6703 ac_tool_warned=yes ;;
6704 esac
6705     DUMPBIN=$ac_ct_DUMPBIN
6706   fi
6707 fi
6708
6709     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6710     *COFF*)
6711       DUMPBIN="$DUMPBIN -symbols -headers"
6712       ;;
6713     *)
6714       DUMPBIN=:
6715       ;;
6716     esac
6717   fi
6718
6719   if test : != "$DUMPBIN"; then
6720     NM=$DUMPBIN
6721   fi
6722 fi
6723 test -z "$NM" && NM=nm
6724
6725
6726
6727
6728
6729
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6731 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6732 if ${lt_cv_nm_interface+:} false; then :
6733   $as_echo_n "(cached) " >&6
6734 else
6735   lt_cv_nm_interface="BSD nm"
6736   echo "int some_variable = 0;" > conftest.$ac_ext
6737   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6738   (eval "$ac_compile" 2>conftest.err)
6739   cat conftest.err >&5
6740   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6741   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6742   cat conftest.err >&5
6743   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6744   cat conftest.out >&5
6745   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6746     lt_cv_nm_interface="MS dumpbin"
6747   fi
6748   rm -f conftest*
6749 fi
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6751 $as_echo "$lt_cv_nm_interface" >&6; }
6752
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6754 $as_echo_n "checking whether ln -s works... " >&6; }
6755 LN_S=$as_ln_s
6756 if test "$LN_S" = "ln -s"; then
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6758 $as_echo "yes" >&6; }
6759 else
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6761 $as_echo "no, using $LN_S" >&6; }
6762 fi
6763
6764 # find the maximum length of command line arguments
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6766 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6767 if ${lt_cv_sys_max_cmd_len+:} false; then :
6768   $as_echo_n "(cached) " >&6
6769 else
6770     i=0
6771   teststring=ABCD
6772
6773   case $build_os in
6774   msdosdjgpp*)
6775     # On DJGPP, this test can blow up pretty badly due to problems in libc
6776     # (any single argument exceeding 2000 bytes causes a buffer overrun
6777     # during glob expansion).  Even if it were fixed, the result of this
6778     # check would be larger than it should be.
6779     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6780     ;;
6781
6782   gnu*)
6783     # Under GNU Hurd, this test is not required because there is
6784     # no limit to the length of command line arguments.
6785     # Libtool will interpret -1 as no limit whatsoever
6786     lt_cv_sys_max_cmd_len=-1;
6787     ;;
6788
6789   cygwin* | mingw* | cegcc*)
6790     # On Win9x/ME, this test blows up -- it succeeds, but takes
6791     # about 5 minutes as the teststring grows exponentially.
6792     # Worse, since 9x/ME are not pre-emptively multitasking,
6793     # you end up with a "frozen" computer, even though with patience
6794     # the test eventually succeeds (with a max line length of 256k).
6795     # Instead, let's just punt: use the minimum linelength reported by
6796     # all of the supported platforms: 8192 (on NT/2K/XP).
6797     lt_cv_sys_max_cmd_len=8192;
6798     ;;
6799
6800   mint*)
6801     # On MiNT this can take a long time and run out of memory.
6802     lt_cv_sys_max_cmd_len=8192;
6803     ;;
6804
6805   amigaos*)
6806     # On AmigaOS with pdksh, this test takes hours, literally.
6807     # So we just punt and use a minimum line length of 8192.
6808     lt_cv_sys_max_cmd_len=8192;
6809     ;;
6810
6811   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6812     # This has been around since 386BSD, at least.  Likely further.
6813     if test -x /sbin/sysctl; then
6814       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6815     elif test -x /usr/sbin/sysctl; then
6816       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6817     else
6818       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6819     fi
6820     # And add a safety zone
6821     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6822     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6823     ;;
6824
6825   interix*)
6826     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6827     lt_cv_sys_max_cmd_len=196608
6828     ;;
6829
6830   os2*)
6831     # The test takes a long time on OS/2.
6832     lt_cv_sys_max_cmd_len=8192
6833     ;;
6834
6835   osf*)
6836     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6837     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6838     # nice to cause kernel panics so lets avoid the loop below.
6839     # First set a reasonable default.
6840     lt_cv_sys_max_cmd_len=16384
6841     #
6842     if test -x /sbin/sysconfig; then
6843       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6844         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6845       esac
6846     fi
6847     ;;
6848   sco3.2v5*)
6849     lt_cv_sys_max_cmd_len=102400
6850     ;;
6851   sysv5* | sco5v6* | sysv4.2uw2*)
6852     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6853     if test -n "$kargmax"; then
6854       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6855     else
6856       lt_cv_sys_max_cmd_len=32768
6857     fi
6858     ;;
6859   *)
6860     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6861     if test -n "$lt_cv_sys_max_cmd_len" && \
6862        test undefined != "$lt_cv_sys_max_cmd_len"; then
6863       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6864       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6865     else
6866       # Make teststring a little bigger before we do anything with it.
6867       # a 1K string should be a reasonable start.
6868       for i in 1 2 3 4 5 6 7 8; do
6869         teststring=$teststring$teststring
6870       done
6871       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6872       # If test is not a shell built-in, we'll probably end up computing a
6873       # maximum length that is only half of the actual maximum length, but
6874       # we can't tell.
6875       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6876                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6877               test 17 != "$i" # 1/2 MB should be enough
6878       do
6879         i=`expr $i + 1`
6880         teststring=$teststring$teststring
6881       done
6882       # Only check the string length outside the loop.
6883       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6884       teststring=
6885       # Add a significant safety factor because C++ compilers can tack on
6886       # massive amounts of additional arguments before passing them to the
6887       # linker.  It appears as though 1/2 is a usable value.
6888       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6889     fi
6890     ;;
6891   esac
6892
6893 fi
6894
6895 if test -n "$lt_cv_sys_max_cmd_len"; then
6896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6897 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6898 else
6899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6900 $as_echo "none" >&6; }
6901 fi
6902 max_cmd_len=$lt_cv_sys_max_cmd_len
6903
6904
6905
6906
6907
6908
6909 : ${CP="cp -f"}
6910 : ${MV="mv -f"}
6911 : ${RM="rm -f"}
6912
6913 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6914   lt_unset=unset
6915 else
6916   lt_unset=false
6917 fi
6918
6919
6920
6921
6922
6923 # test EBCDIC or ASCII
6924 case `echo X|tr X '\101'` in
6925  A) # ASCII based system
6926     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6927   lt_SP2NL='tr \040 \012'
6928   lt_NL2SP='tr \015\012 \040\040'
6929   ;;
6930  *) # EBCDIC based system
6931   lt_SP2NL='tr \100 \n'
6932   lt_NL2SP='tr \r\n \100\100'
6933   ;;
6934 esac
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6945 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6946 if ${lt_cv_to_host_file_cmd+:} false; then :
6947   $as_echo_n "(cached) " >&6
6948 else
6949   case $host in
6950   *-*-mingw* )
6951     case $build in
6952       *-*-mingw* ) # actually msys
6953         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6954         ;;
6955       *-*-cygwin* )
6956         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6957         ;;
6958       * ) # otherwise, assume *nix
6959         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6960         ;;
6961     esac
6962     ;;
6963   *-*-cygwin* )
6964     case $build in
6965       *-*-mingw* ) # actually msys
6966         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6967         ;;
6968       *-*-cygwin* )
6969         lt_cv_to_host_file_cmd=func_convert_file_noop
6970         ;;
6971       * ) # otherwise, assume *nix
6972         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6973         ;;
6974     esac
6975     ;;
6976   * ) # unhandled hosts (and "normal" native builds)
6977     lt_cv_to_host_file_cmd=func_convert_file_noop
6978     ;;
6979 esac
6980
6981 fi
6982
6983 to_host_file_cmd=$lt_cv_to_host_file_cmd
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6985 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6986
6987
6988
6989
6990
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6992 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6993 if ${lt_cv_to_tool_file_cmd+:} false; then :
6994   $as_echo_n "(cached) " >&6
6995 else
6996   #assume ordinary cross tools, or native build.
6997 lt_cv_to_tool_file_cmd=func_convert_file_noop
6998 case $host in
6999   *-*-mingw* )
7000     case $build in
7001       *-*-mingw* ) # actually msys
7002         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7003         ;;
7004     esac
7005     ;;
7006 esac
7007
7008 fi
7009
7010 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7012 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7013
7014
7015
7016
7017
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7019 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7020 if ${lt_cv_ld_reload_flag+:} false; then :
7021   $as_echo_n "(cached) " >&6
7022 else
7023   lt_cv_ld_reload_flag='-r'
7024 fi
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7026 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7027 reload_flag=$lt_cv_ld_reload_flag
7028 case $reload_flag in
7029 "" | " "*) ;;
7030 *) reload_flag=" $reload_flag" ;;
7031 esac
7032 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7033 case $host_os in
7034   cygwin* | mingw* | pw32* | cegcc*)
7035     if test yes != "$GCC"; then
7036       reload_cmds=false
7037     fi
7038     ;;
7039   darwin*)
7040     if test yes = "$GCC"; then
7041       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7042     else
7043       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7044     fi
7045     ;;
7046 esac
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056 if test -n "$ac_tool_prefix"; then
7057   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7058 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060 $as_echo_n "checking for $ac_word... " >&6; }
7061 if ${ac_cv_prog_OBJDUMP+:} false; then :
7062   $as_echo_n "(cached) " >&6
7063 else
7064   if test -n "$OBJDUMP"; then
7065   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7066 else
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7069 do
7070   IFS=$as_save_IFS
7071   test -z "$as_dir" && as_dir=.
7072     for ac_exec_ext in '' $ac_executable_extensions; do
7073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7074     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076     break 2
7077   fi
7078 done
7079   done
7080 IFS=$as_save_IFS
7081
7082 fi
7083 fi
7084 OBJDUMP=$ac_cv_prog_OBJDUMP
7085 if test -n "$OBJDUMP"; then
7086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7087 $as_echo "$OBJDUMP" >&6; }
7088 else
7089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7091 fi
7092
7093
7094 fi
7095 if test -z "$ac_cv_prog_OBJDUMP"; then
7096   ac_ct_OBJDUMP=$OBJDUMP
7097   # Extract the first word of "objdump", so it can be a program name with args.
7098 set dummy objdump; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7102   $as_echo_n "(cached) " >&6
7103 else
7104   if test -n "$ac_ct_OBJDUMP"; then
7105   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110   IFS=$as_save_IFS
7111   test -z "$as_dir" && as_dir=.
7112     for ac_exec_ext in '' $ac_executable_extensions; do
7113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116     break 2
7117   fi
7118 done
7119   done
7120 IFS=$as_save_IFS
7121
7122 fi
7123 fi
7124 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7125 if test -n "$ac_ct_OBJDUMP"; then
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7127 $as_echo "$ac_ct_OBJDUMP" >&6; }
7128 else
7129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133   if test "x$ac_ct_OBJDUMP" = x; then
7134     OBJDUMP="false"
7135   else
7136     case $cross_compiling:$ac_tool_warned in
7137 yes:)
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7140 ac_tool_warned=yes ;;
7141 esac
7142     OBJDUMP=$ac_ct_OBJDUMP
7143   fi
7144 else
7145   OBJDUMP="$ac_cv_prog_OBJDUMP"
7146 fi
7147
7148 test -z "$OBJDUMP" && OBJDUMP=objdump
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7159 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7160 if ${lt_cv_deplibs_check_method+:} false; then :
7161   $as_echo_n "(cached) " >&6
7162 else
7163   lt_cv_file_magic_cmd='$MAGIC_CMD'
7164 lt_cv_file_magic_test_file=
7165 lt_cv_deplibs_check_method='unknown'
7166 # Need to set the preceding variable on all platforms that support
7167 # interlibrary dependencies.
7168 # 'none' -- dependencies not supported.
7169 # 'unknown' -- same as none, but documents that we really don't know.
7170 # 'pass_all' -- all dependencies passed with no checks.
7171 # 'test_compile' -- check by making test program.
7172 # 'file_magic [[regex]]' -- check by looking for files in library path
7173 # that responds to the $file_magic_cmd with a given extended regex.
7174 # If you have 'file' or equivalent on your system and you're not sure
7175 # whether 'pass_all' will *always* work, you probably want this one.
7176
7177 case $host_os in
7178 aix[4-9]*)
7179   lt_cv_deplibs_check_method=pass_all
7180   ;;
7181
7182 beos*)
7183   lt_cv_deplibs_check_method=pass_all
7184   ;;
7185
7186 bsdi[45]*)
7187   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7188   lt_cv_file_magic_cmd='/usr/bin/file -L'
7189   lt_cv_file_magic_test_file=/shlib/libc.so
7190   ;;
7191
7192 cygwin*)
7193   # func_win32_libid is a shell function defined in ltmain.sh
7194   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7195   lt_cv_file_magic_cmd='func_win32_libid'
7196   ;;
7197
7198 mingw* | pw32*)
7199   # Base MSYS/MinGW do not provide the 'file' command needed by
7200   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7201   # unless we find 'file', for example because we are cross-compiling.
7202   if ( file / ) >/dev/null 2>&1; then
7203     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7204     lt_cv_file_magic_cmd='func_win32_libid'
7205   else
7206     # Keep this pattern in sync with the one in func_win32_libid.
7207     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7208     lt_cv_file_magic_cmd='$OBJDUMP -f'
7209   fi
7210   ;;
7211
7212 cegcc*)
7213   # use the weaker test based on 'objdump'. See mingw*.
7214   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7215   lt_cv_file_magic_cmd='$OBJDUMP -f'
7216   ;;
7217
7218 darwin* | rhapsody*)
7219   lt_cv_deplibs_check_method=pass_all
7220   ;;
7221
7222 freebsd* | dragonfly*)
7223   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7224     case $host_cpu in
7225     i*86 )
7226       # Not sure whether the presence of OpenBSD here was a mistake.
7227       # Let's accept both of them until this is cleared up.
7228       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7229       lt_cv_file_magic_cmd=/usr/bin/file
7230       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7231       ;;
7232     esac
7233   else
7234     lt_cv_deplibs_check_method=pass_all
7235   fi
7236   ;;
7237
7238 haiku*)
7239   lt_cv_deplibs_check_method=pass_all
7240   ;;
7241
7242 hpux10.20* | hpux11*)
7243   lt_cv_file_magic_cmd=/usr/bin/file
7244   case $host_cpu in
7245   ia64*)
7246     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7247     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7248     ;;
7249   hppa*64*)
7250     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7251     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7252     ;;
7253   *)
7254     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7255     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7256     ;;
7257   esac
7258   ;;
7259
7260 interix[3-9]*)
7261   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7262   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7263   ;;
7264
7265 irix5* | irix6* | nonstopux*)
7266   case $LD in
7267   *-32|*"-32 ") libmagic=32-bit;;
7268   *-n32|*"-n32 ") libmagic=N32;;
7269   *-64|*"-64 ") libmagic=64-bit;;
7270   *) libmagic=never-match;;
7271   esac
7272   lt_cv_deplibs_check_method=pass_all
7273   ;;
7274
7275 # This must be glibc/ELF.
7276 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7277   lt_cv_deplibs_check_method=pass_all
7278   ;;
7279
7280 netbsd* | netbsdelf*-gnu)
7281   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7282     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7283   else
7284     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7285   fi
7286   ;;
7287
7288 newos6*)
7289   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7290   lt_cv_file_magic_cmd=/usr/bin/file
7291   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7292   ;;
7293
7294 *nto* | *qnx*)
7295   lt_cv_deplibs_check_method=pass_all
7296   ;;
7297
7298 openbsd* | bitrig*)
7299   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7300     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7301   else
7302     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7303   fi
7304   ;;
7305
7306 osf3* | osf4* | osf5*)
7307   lt_cv_deplibs_check_method=pass_all
7308   ;;
7309
7310 rdos*)
7311   lt_cv_deplibs_check_method=pass_all
7312   ;;
7313
7314 solaris*)
7315   lt_cv_deplibs_check_method=pass_all
7316   ;;
7317
7318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7319   lt_cv_deplibs_check_method=pass_all
7320   ;;
7321
7322 sysv4 | sysv4.3*)
7323   case $host_vendor in
7324   motorola)
7325     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7326     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7327     ;;
7328   ncr)
7329     lt_cv_deplibs_check_method=pass_all
7330     ;;
7331   sequent)
7332     lt_cv_file_magic_cmd='/bin/file'
7333     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7334     ;;
7335   sni)
7336     lt_cv_file_magic_cmd='/bin/file'
7337     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7338     lt_cv_file_magic_test_file=/lib/libc.so
7339     ;;
7340   siemens)
7341     lt_cv_deplibs_check_method=pass_all
7342     ;;
7343   pc)
7344     lt_cv_deplibs_check_method=pass_all
7345     ;;
7346   esac
7347   ;;
7348
7349 tpf*)
7350   lt_cv_deplibs_check_method=pass_all
7351   ;;
7352 os2*)
7353   lt_cv_deplibs_check_method=pass_all
7354   ;;
7355 esac
7356
7357 fi
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7359 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7360
7361 file_magic_glob=
7362 want_nocaseglob=no
7363 if test "$build" = "$host"; then
7364   case $host_os in
7365   mingw* | pw32*)
7366     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7367       want_nocaseglob=yes
7368     else
7369       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7370     fi
7371     ;;
7372   esac
7373 fi
7374
7375 file_magic_cmd=$lt_cv_file_magic_cmd
7376 deplibs_check_method=$lt_cv_deplibs_check_method
7377 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400 if test -n "$ac_tool_prefix"; then
7401   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if ${ac_cv_prog_DLLTOOL+:} false; then :
7406   $as_echo_n "(cached) " >&6
7407 else
7408   if test -n "$DLLTOOL"; then
7409   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416     for ac_exec_ext in '' $ac_executable_extensions; do
7417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423   done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 DLLTOOL=$ac_cv_prog_DLLTOOL
7429 if test -n "$DLLTOOL"; then
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7431 $as_echo "$DLLTOOL" >&6; }
7432 else
7433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437
7438 fi
7439 if test -z "$ac_cv_prog_DLLTOOL"; then
7440   ac_ct_DLLTOOL=$DLLTOOL
7441   # Extract the first word of "dlltool", so it can be a program name with args.
7442 set dummy dlltool; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7446   $as_echo_n "(cached) " >&6
7447 else
7448   if test -n "$ac_ct_DLLTOOL"; then
7449   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454   IFS=$as_save_IFS
7455   test -z "$as_dir" && as_dir=.
7456     for ac_exec_ext in '' $ac_executable_extensions; do
7457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460     break 2
7461   fi
7462 done
7463   done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7469 if test -n "$ac_ct_DLLTOOL"; then
7470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7471 $as_echo "$ac_ct_DLLTOOL" >&6; }
7472 else
7473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7475 fi
7476
7477   if test "x$ac_ct_DLLTOOL" = x; then
7478     DLLTOOL="false"
7479   else
7480     case $cross_compiling:$ac_tool_warned in
7481 yes:)
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7485 esac
7486     DLLTOOL=$ac_ct_DLLTOOL
7487   fi
7488 else
7489   DLLTOOL="$ac_cv_prog_DLLTOOL"
7490 fi
7491
7492 test -z "$DLLTOOL" && DLLTOOL=dlltool
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7504 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7505 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7506   $as_echo_n "(cached) " >&6
7507 else
7508   lt_cv_sharedlib_from_linklib_cmd='unknown'
7509
7510 case $host_os in
7511 cygwin* | mingw* | pw32* | cegcc*)
7512   # two different shell functions defined in ltmain.sh;
7513   # decide which one to use based on capabilities of $DLLTOOL
7514   case `$DLLTOOL --help 2>&1` in
7515   *--identify-strict*)
7516     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7517     ;;
7518   *)
7519     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7520     ;;
7521   esac
7522   ;;
7523 *)
7524   # fallback: assume linklib IS sharedlib
7525   lt_cv_sharedlib_from_linklib_cmd=$ECHO
7526   ;;
7527 esac
7528
7529 fi
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7531 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7532 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7533 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7534
7535
7536
7537
7538
7539
7540
7541 if test -n "$ac_tool_prefix"; then
7542   for ac_prog in ar
7543   do
7544     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7547 $as_echo_n "checking for $ac_word... " >&6; }
7548 if ${ac_cv_prog_AR+:} false; then :
7549   $as_echo_n "(cached) " >&6
7550 else
7551   if test -n "$AR"; then
7552   ac_cv_prog_AR="$AR" # Let the user override the test.
7553 else
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557   IFS=$as_save_IFS
7558   test -z "$as_dir" && as_dir=.
7559     for ac_exec_ext in '' $ac_executable_extensions; do
7560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563     break 2
7564   fi
7565 done
7566   done
7567 IFS=$as_save_IFS
7568
7569 fi
7570 fi
7571 AR=$ac_cv_prog_AR
7572 if test -n "$AR"; then
7573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7574 $as_echo "$AR" >&6; }
7575 else
7576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7578 fi
7579
7580
7581     test -n "$AR" && break
7582   done
7583 fi
7584 if test -z "$AR"; then
7585   ac_ct_AR=$AR
7586   for ac_prog in ar
7587 do
7588   # Extract the first word of "$ac_prog", so it can be a program name with args.
7589 set dummy $ac_prog; ac_word=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7593   $as_echo_n "(cached) " >&6
7594 else
7595   if test -n "$ac_ct_AR"; then
7596   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7597 else
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603     for ac_exec_ext in '' $ac_executable_extensions; do
7604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605     ac_cv_prog_ac_ct_AR="$ac_prog"
7606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610   done
7611 IFS=$as_save_IFS
7612
7613 fi
7614 fi
7615 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7616 if test -n "$ac_ct_AR"; then
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7618 $as_echo "$ac_ct_AR" >&6; }
7619 else
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7622 fi
7623
7624
7625   test -n "$ac_ct_AR" && break
7626 done
7627
7628   if test "x$ac_ct_AR" = x; then
7629     AR="false"
7630   else
7631     case $cross_compiling:$ac_tool_warned in
7632 yes:)
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7635 ac_tool_warned=yes ;;
7636 esac
7637     AR=$ac_ct_AR
7638   fi
7639 fi
7640
7641 : ${AR=ar}
7642 : ${AR_FLAGS=cru}
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7655 $as_echo_n "checking for archiver @FILE support... " >&6; }
7656 if ${lt_cv_ar_at_file+:} false; then :
7657   $as_echo_n "(cached) " >&6
7658 else
7659   lt_cv_ar_at_file=no
7660    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h.  */
7662
7663 int
7664 main ()
7665 {
7666
7667   ;
7668   return 0;
7669 }
7670 _ACEOF
7671 if ac_fn_c_try_compile "$LINENO"; then :
7672   echo conftest.$ac_objext > conftest.lst
7673       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7674       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7675   (eval $lt_ar_try) 2>&5
7676   ac_status=$?
7677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7678   test $ac_status = 0; }
7679       if test 0 -eq "$ac_status"; then
7680         # Ensure the archiver fails upon bogus file names.
7681         rm -f conftest.$ac_objext libconftest.a
7682         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7683   (eval $lt_ar_try) 2>&5
7684   ac_status=$?
7685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7686   test $ac_status = 0; }
7687         if test 0 -ne "$ac_status"; then
7688           lt_cv_ar_at_file=@
7689         fi
7690       fi
7691       rm -f conftest.* libconftest.a
7692
7693 fi
7694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695
7696 fi
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7698 $as_echo "$lt_cv_ar_at_file" >&6; }
7699
7700 if test no = "$lt_cv_ar_at_file"; then
7701   archiver_list_spec=
7702 else
7703   archiver_list_spec=$lt_cv_ar_at_file
7704 fi
7705
7706
7707
7708
7709
7710
7711
7712 if test -n "$ac_tool_prefix"; then
7713   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}strip; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_prog_STRIP+:} false; then :
7718   $as_echo_n "(cached) " >&6
7719 else
7720   if test -n "$STRIP"; then
7721   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7725 do
7726   IFS=$as_save_IFS
7727   test -z "$as_dir" && as_dir=.
7728     for ac_exec_ext in '' $ac_executable_extensions; do
7729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732     break 2
7733   fi
7734 done
7735   done
7736 IFS=$as_save_IFS
7737
7738 fi
7739 fi
7740 STRIP=$ac_cv_prog_STRIP
7741 if test -n "$STRIP"; then
7742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7743 $as_echo "$STRIP" >&6; }
7744 else
7745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7747 fi
7748
7749
7750 fi
7751 if test -z "$ac_cv_prog_STRIP"; then
7752   ac_ct_STRIP=$STRIP
7753   # Extract the first word of "strip", so it can be a program name with args.
7754 set dummy strip; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7758   $as_echo_n "(cached) " >&6
7759 else
7760   if test -n "$ac_ct_STRIP"; then
7761   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7765 do
7766   IFS=$as_save_IFS
7767   test -z "$as_dir" && as_dir=.
7768     for ac_exec_ext in '' $ac_executable_extensions; do
7769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770     ac_cv_prog_ac_ct_STRIP="strip"
7771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772     break 2
7773   fi
7774 done
7775   done
7776 IFS=$as_save_IFS
7777
7778 fi
7779 fi
7780 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7781 if test -n "$ac_ct_STRIP"; then
7782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7783 $as_echo "$ac_ct_STRIP" >&6; }
7784 else
7785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7787 fi
7788
7789   if test "x$ac_ct_STRIP" = x; then
7790     STRIP=":"
7791   else
7792     case $cross_compiling:$ac_tool_warned in
7793 yes:)
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7796 ac_tool_warned=yes ;;
7797 esac
7798     STRIP=$ac_ct_STRIP
7799   fi
7800 else
7801   STRIP="$ac_cv_prog_STRIP"
7802 fi
7803
7804 test -z "$STRIP" && STRIP=:
7805
7806
7807
7808
7809
7810
7811 if test -n "$ac_tool_prefix"; then
7812   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7813 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if ${ac_cv_prog_RANLIB+:} false; then :
7817   $as_echo_n "(cached) " >&6
7818 else
7819   if test -n "$RANLIB"; then
7820   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825   IFS=$as_save_IFS
7826   test -z "$as_dir" && as_dir=.
7827     for ac_exec_ext in '' $ac_executable_extensions; do
7828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831     break 2
7832   fi
7833 done
7834   done
7835 IFS=$as_save_IFS
7836
7837 fi
7838 fi
7839 RANLIB=$ac_cv_prog_RANLIB
7840 if test -n "$RANLIB"; then
7841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7842 $as_echo "$RANLIB" >&6; }
7843 else
7844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7846 fi
7847
7848
7849 fi
7850 if test -z "$ac_cv_prog_RANLIB"; then
7851   ac_ct_RANLIB=$RANLIB
7852   # Extract the first word of "ranlib", so it can be a program name with args.
7853 set dummy ranlib; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7857   $as_echo_n "(cached) " >&6
7858 else
7859   if test -n "$ac_ct_RANLIB"; then
7860   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865   IFS=$as_save_IFS
7866   test -z "$as_dir" && as_dir=.
7867     for ac_exec_ext in '' $ac_executable_extensions; do
7868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869     ac_cv_prog_ac_ct_RANLIB="ranlib"
7870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871     break 2
7872   fi
7873 done
7874   done
7875 IFS=$as_save_IFS
7876
7877 fi
7878 fi
7879 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7880 if test -n "$ac_ct_RANLIB"; then
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7882 $as_echo "$ac_ct_RANLIB" >&6; }
7883 else
7884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7886 fi
7887
7888   if test "x$ac_ct_RANLIB" = x; then
7889     RANLIB=":"
7890   else
7891     case $cross_compiling:$ac_tool_warned in
7892 yes:)
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7895 ac_tool_warned=yes ;;
7896 esac
7897     RANLIB=$ac_ct_RANLIB
7898   fi
7899 else
7900   RANLIB="$ac_cv_prog_RANLIB"
7901 fi
7902
7903 test -z "$RANLIB" && RANLIB=:
7904
7905
7906
7907
7908
7909
7910 # Determine commands to create old-style static archives.
7911 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7912 old_postinstall_cmds='chmod 644 $oldlib'
7913 old_postuninstall_cmds=
7914
7915 if test -n "$RANLIB"; then
7916   case $host_os in
7917   bitrig* | openbsd*)
7918     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7919     ;;
7920   *)
7921     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7922     ;;
7923   esac
7924   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7925 fi
7926
7927 case $host_os in
7928   darwin*)
7929     lock_old_archive_extraction=yes ;;
7930   *)
7931     lock_old_archive_extraction=no ;;
7932 esac
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972 # If no C compiler was specified, use CC.
7973 LTCC=${LTCC-"$CC"}
7974
7975 # If no C compiler flags were specified, use CFLAGS.
7976 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7977
7978 # Allow CC to be a program name with arguments.
7979 compiler=$CC
7980
7981
7982 # Check for command to grab the raw symbol name followed by C symbol from nm.
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7984 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7985 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7986   $as_echo_n "(cached) " >&6
7987 else
7988
7989 # These are sane defaults that work on at least a few old systems.
7990 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7991
7992 # Character class describing NM global symbol codes.
7993 symcode='[BCDEGRST]'
7994
7995 # Regexp to match symbols that can be accessed directly from C.
7996 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7997
7998 # Define system-specific variables.
7999 case $host_os in
8000 aix*)
8001   symcode='[BCDT]'
8002   ;;
8003 cygwin* | mingw* | pw32* | cegcc*)
8004   symcode='[ABCDGISTW]'
8005   ;;
8006 hpux*)
8007   if test ia64 = "$host_cpu"; then
8008     symcode='[ABCDEGRST]'
8009   fi
8010   ;;
8011 irix* | nonstopux*)
8012   symcode='[BCDEGRST]'
8013   ;;
8014 osf*)
8015   symcode='[BCDEGQRST]'
8016   ;;
8017 solaris*)
8018   symcode='[BDRT]'
8019   ;;
8020 sco3.2v5*)
8021   symcode='[DT]'
8022   ;;
8023 sysv4.2uw2*)
8024   symcode='[DT]'
8025   ;;
8026 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8027   symcode='[ABDT]'
8028   ;;
8029 sysv4)
8030   symcode='[DFNSTU]'
8031   ;;
8032 esac
8033
8034 # If we're using GNU nm, then use its standard symbol codes.
8035 case `$NM -V 2>&1` in
8036 *GNU* | *'with BFD'*)
8037   symcode='[ABCDGIRSTW]' ;;
8038 esac
8039
8040 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8041   # Gets list of data symbols to import.
8042   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8043   # Adjust the below global symbol transforms to fixup imported variables.
8044   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8045   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8046   lt_c_name_lib_hook="\
8047   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8048   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8049 else
8050   # Disable hooks by default.
8051   lt_cv_sys_global_symbol_to_import=
8052   lt_cdecl_hook=
8053   lt_c_name_hook=
8054   lt_c_name_lib_hook=
8055 fi
8056
8057 # Transform an extracted symbol line into a proper C declaration.
8058 # Some systems (esp. on ia64) link data and code symbols differently,
8059 # so use this general approach.
8060 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8061 $lt_cdecl_hook\
8062 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8063 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8064
8065 # Transform an extracted symbol line into symbol name and symbol address
8066 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8067 $lt_c_name_hook\
8068 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8069 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8070
8071 # Transform an extracted symbol line into symbol name with lib prefix and
8072 # symbol address.
8073 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8074 $lt_c_name_lib_hook\
8075 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8076 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8077 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8078
8079 # Handle CRLF in mingw tool chain
8080 opt_cr=
8081 case $build_os in
8082 mingw*)
8083   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8084   ;;
8085 esac
8086
8087 # Try without a prefix underscore, then with it.
8088 for ac_symprfx in "" "_"; do
8089
8090   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8091   symxfrm="\\1 $ac_symprfx\\2 \\2"
8092
8093   # Write the raw and C identifiers.
8094   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8095     # Fake it for dumpbin and say T for any non-static function,
8096     # D for any global variable and I for any imported variable.
8097     # Also find C++ and __fastcall symbols from MSVC++,
8098     # which start with @ or ?.
8099     lt_cv_sys_global_symbol_pipe="$AWK '"\
8100 "     {last_section=section; section=\$ 3};"\
8101 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8102 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8103 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8104 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8105 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8106 "     \$ 0!~/External *\|/{next};"\
8107 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8108 "     {if(hide[section]) next};"\
8109 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8110 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8111 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8112 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8113 "     ' prfx=^$ac_symprfx"
8114   else
8115     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8116   fi
8117   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8118
8119   # Check to see that the pipe works correctly.
8120   pipe_works=no
8121
8122   rm -f conftest*
8123   cat > conftest.$ac_ext <<_LT_EOF
8124 #ifdef __cplusplus
8125 extern "C" {
8126 #endif
8127 char nm_test_var;
8128 void nm_test_func(void);
8129 void nm_test_func(void){}
8130 #ifdef __cplusplus
8131 }
8132 #endif
8133 int main(){nm_test_var='a';nm_test_func();return(0);}
8134 _LT_EOF
8135
8136   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8137   (eval $ac_compile) 2>&5
8138   ac_status=$?
8139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8140   test $ac_status = 0; }; then
8141     # Now try to grab the symbols.
8142     nlist=conftest.nm
8143     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8144   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8145   ac_status=$?
8146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8147   test $ac_status = 0; } && test -s "$nlist"; then
8148       # Try sorting and uniquifying the output.
8149       if sort "$nlist" | uniq > "$nlist"T; then
8150         mv -f "$nlist"T "$nlist"
8151       else
8152         rm -f "$nlist"T
8153       fi
8154
8155       # Make sure that we snagged all the symbols we need.
8156       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8157         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8158           cat <<_LT_EOF > conftest.$ac_ext
8159 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8160 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8161 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8162    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8163 # define LT_DLSYM_CONST
8164 #elif defined __osf__
8165 /* This system does not cope well with relocations in const data.  */
8166 # define LT_DLSYM_CONST
8167 #else
8168 # define LT_DLSYM_CONST const
8169 #endif
8170
8171 #ifdef __cplusplus
8172 extern "C" {
8173 #endif
8174
8175 _LT_EOF
8176           # Now generate the symbol file.
8177           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8178
8179           cat <<_LT_EOF >> conftest.$ac_ext
8180
8181 /* The mapping between symbol names and symbols.  */
8182 LT_DLSYM_CONST struct {
8183   const char *name;
8184   void       *address;
8185 }
8186 lt__PROGRAM__LTX_preloaded_symbols[] =
8187 {
8188   { "@PROGRAM@", (void *) 0 },
8189 _LT_EOF
8190           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8191           cat <<\_LT_EOF >> conftest.$ac_ext
8192   {0, (void *) 0}
8193 };
8194
8195 /* This works around a problem in FreeBSD linker */
8196 #ifdef FREEBSD_WORKAROUND
8197 static const void *lt_preloaded_setup() {
8198   return lt__PROGRAM__LTX_preloaded_symbols;
8199 }
8200 #endif
8201
8202 #ifdef __cplusplus
8203 }
8204 #endif
8205 _LT_EOF
8206           # Now try linking the two files.
8207           mv conftest.$ac_objext conftstm.$ac_objext
8208           lt_globsym_save_LIBS=$LIBS
8209           lt_globsym_save_CFLAGS=$CFLAGS
8210           LIBS=conftstm.$ac_objext
8211           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8212           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8213   (eval $ac_link) 2>&5
8214   ac_status=$?
8215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8216   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8217             pipe_works=yes
8218           fi
8219           LIBS=$lt_globsym_save_LIBS
8220           CFLAGS=$lt_globsym_save_CFLAGS
8221         else
8222           echo "cannot find nm_test_func in $nlist" >&5
8223         fi
8224       else
8225         echo "cannot find nm_test_var in $nlist" >&5
8226       fi
8227     else
8228       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8229     fi
8230   else
8231     echo "$progname: failed program was:" >&5
8232     cat conftest.$ac_ext >&5
8233   fi
8234   rm -rf conftest* conftst*
8235
8236   # Do not use the global_symbol_pipe unless it works.
8237   if test yes = "$pipe_works"; then
8238     break
8239   else
8240     lt_cv_sys_global_symbol_pipe=
8241   fi
8242 done
8243
8244 fi
8245
8246 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8247   lt_cv_sys_global_symbol_to_cdecl=
8248 fi
8249 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8251 $as_echo "failed" >&6; }
8252 else
8253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8254 $as_echo "ok" >&6; }
8255 fi
8256
8257 # Response file support.
8258 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8259   nm_file_list_spec='@'
8260 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8261   nm_file_list_spec='@'
8262 fi
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8301 $as_echo_n "checking for sysroot... " >&6; }
8302
8303 # Check whether --with-sysroot was given.
8304 if test "${with_sysroot+set}" = set; then :
8305   withval=$with_sysroot;
8306 else
8307   with_sysroot=no
8308 fi
8309
8310
8311 lt_sysroot=
8312 case $with_sysroot in #(
8313  yes)
8314    if test yes = "$GCC"; then
8315      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8316    fi
8317    ;; #(
8318  /*)
8319    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8320    ;; #(
8321  no|'')
8322    ;; #(
8323  *)
8324    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8325 $as_echo "$with_sysroot" >&6; }
8326    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8327    ;;
8328 esac
8329
8330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8331 $as_echo "${lt_sysroot:-no}" >&6; }
8332
8333
8334
8335
8336
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8338 $as_echo_n "checking for a working dd... " >&6; }
8339 if ${ac_cv_path_lt_DD+:} false; then :
8340   $as_echo_n "(cached) " >&6
8341 else
8342   printf 0123456789abcdef0123456789abcdef >conftest.i
8343 cat conftest.i conftest.i >conftest2.i
8344 : ${lt_DD:=$DD}
8345 if test -z "$lt_DD"; then
8346   ac_path_lt_DD_found=false
8347   # Loop through the user's path and test for each of PROGNAME-LIST
8348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8350 do
8351   IFS=$as_save_IFS
8352   test -z "$as_dir" && as_dir=.
8353     for ac_prog in dd; do
8354     for ac_exec_ext in '' $ac_executable_extensions; do
8355       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8356       as_fn_executable_p "$ac_path_lt_DD" || continue
8357 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8358   cmp -s conftest.i conftest.out \
8359   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8360 fi
8361       $ac_path_lt_DD_found && break 3
8362     done
8363   done
8364   done
8365 IFS=$as_save_IFS
8366   if test -z "$ac_cv_path_lt_DD"; then
8367     :
8368   fi
8369 else
8370   ac_cv_path_lt_DD=$lt_DD
8371 fi
8372
8373 rm -f conftest.i conftest2.i conftest.out
8374 fi
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8376 $as_echo "$ac_cv_path_lt_DD" >&6; }
8377
8378
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8380 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8381 if ${lt_cv_truncate_bin+:} false; then :
8382   $as_echo_n "(cached) " >&6
8383 else
8384   printf 0123456789abcdef0123456789abcdef >conftest.i
8385 cat conftest.i conftest.i >conftest2.i
8386 lt_cv_truncate_bin=
8387 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8388   cmp -s conftest.i conftest.out \
8389   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8390 fi
8391 rm -f conftest.i conftest2.i conftest.out
8392 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8393 fi
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8395 $as_echo "$lt_cv_truncate_bin" >&6; }
8396
8397
8398
8399
8400
8401
8402
8403 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8404 func_cc_basename ()
8405 {
8406     for cc_temp in $*""; do
8407       case $cc_temp in
8408         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8409         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8410         \-*) ;;
8411         *) break;;
8412       esac
8413     done
8414     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8415 }
8416
8417 # Check whether --enable-libtool-lock was given.
8418 if test "${enable_libtool_lock+set}" = set; then :
8419   enableval=$enable_libtool_lock;
8420 fi
8421
8422 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8423
8424 # Some flags need to be propagated to the compiler or linker for good
8425 # libtool support.
8426 case $host in
8427 ia64-*-hpux*)
8428   # Find out what ABI is being produced by ac_compile, and set mode
8429   # options accordingly.
8430   echo 'int i;' > conftest.$ac_ext
8431   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8432   (eval $ac_compile) 2>&5
8433   ac_status=$?
8434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8435   test $ac_status = 0; }; then
8436     case `/usr/bin/file conftest.$ac_objext` in
8437       *ELF-32*)
8438         HPUX_IA64_MODE=32
8439         ;;
8440       *ELF-64*)
8441         HPUX_IA64_MODE=64
8442         ;;
8443     esac
8444   fi
8445   rm -rf conftest*
8446   ;;
8447 *-*-irix6*)
8448   # Find out what ABI is being produced by ac_compile, and set linker
8449   # options accordingly.
8450   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8451   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8452   (eval $ac_compile) 2>&5
8453   ac_status=$?
8454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8455   test $ac_status = 0; }; then
8456     if test yes = "$lt_cv_prog_gnu_ld"; then
8457       case `/usr/bin/file conftest.$ac_objext` in
8458         *32-bit*)
8459           LD="${LD-ld} -melf32bsmip"
8460           ;;
8461         *N32*)
8462           LD="${LD-ld} -melf32bmipn32"
8463           ;;
8464         *64-bit*)
8465           LD="${LD-ld} -melf64bmip"
8466         ;;
8467       esac
8468     else
8469       case `/usr/bin/file conftest.$ac_objext` in
8470         *32-bit*)
8471           LD="${LD-ld} -32"
8472           ;;
8473         *N32*)
8474           LD="${LD-ld} -n32"
8475           ;;
8476         *64-bit*)
8477           LD="${LD-ld} -64"
8478           ;;
8479       esac
8480     fi
8481   fi
8482   rm -rf conftest*
8483   ;;
8484
8485 mips64*-*linux*)
8486   # Find out what ABI is being produced by ac_compile, and set linker
8487   # options accordingly.
8488   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8489   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8490   (eval $ac_compile) 2>&5
8491   ac_status=$?
8492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8493   test $ac_status = 0; }; then
8494     emul=elf
8495     case `/usr/bin/file conftest.$ac_objext` in
8496       *32-bit*)
8497         emul="${emul}32"
8498         ;;
8499       *64-bit*)
8500         emul="${emul}64"
8501         ;;
8502     esac
8503     case `/usr/bin/file conftest.$ac_objext` in
8504       *MSB*)
8505         emul="${emul}btsmip"
8506         ;;
8507       *LSB*)
8508         emul="${emul}ltsmip"
8509         ;;
8510     esac
8511     case `/usr/bin/file conftest.$ac_objext` in
8512       *N32*)
8513         emul="${emul}n32"
8514         ;;
8515     esac
8516     LD="${LD-ld} -m $emul"
8517   fi
8518   rm -rf conftest*
8519   ;;
8520
8521 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8522 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8523   # Find out what ABI is being produced by ac_compile, and set linker
8524   # options accordingly.  Note that the listed cases only cover the
8525   # situations where additional linker options are needed (such as when
8526   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8527   # vice versa); the common cases where no linker options are needed do
8528   # not appear in the list.
8529   echo 'int i;' > conftest.$ac_ext
8530   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8531   (eval $ac_compile) 2>&5
8532   ac_status=$?
8533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8534   test $ac_status = 0; }; then
8535     case `/usr/bin/file conftest.o` in
8536       *32-bit*)
8537         case $host in
8538           x86_64-*kfreebsd*-gnu)
8539             LD="${LD-ld} -m elf_i386_fbsd"
8540             ;;
8541           x86_64-*linux*)
8542             case `/usr/bin/file conftest.o` in
8543               *x86-64*)
8544                 LD="${LD-ld} -m elf32_x86_64"
8545                 ;;
8546               *)
8547                 LD="${LD-ld} -m elf_i386"
8548                 ;;
8549             esac
8550             ;;
8551           powerpc64le-*linux*)
8552             LD="${LD-ld} -m elf32lppclinux"
8553             ;;
8554           powerpc64-*linux*)
8555             LD="${LD-ld} -m elf32ppclinux"
8556             ;;
8557           s390x-*linux*)
8558             LD="${LD-ld} -m elf_s390"
8559             ;;
8560           sparc64-*linux*)
8561             LD="${LD-ld} -m elf32_sparc"
8562             ;;
8563         esac
8564         ;;
8565       *64-bit*)
8566         case $host in
8567           x86_64-*kfreebsd*-gnu)
8568             LD="${LD-ld} -m elf_x86_64_fbsd"
8569             ;;
8570           x86_64-*linux*)
8571             LD="${LD-ld} -m elf_x86_64"
8572             ;;
8573           powerpcle-*linux*)
8574             LD="${LD-ld} -m elf64lppc"
8575             ;;
8576           powerpc-*linux*)
8577             LD="${LD-ld} -m elf64ppc"
8578             ;;
8579           s390*-*linux*|s390*-*tpf*)
8580             LD="${LD-ld} -m elf64_s390"
8581             ;;
8582           sparc*-*linux*)
8583             LD="${LD-ld} -m elf64_sparc"
8584             ;;
8585         esac
8586         ;;
8587     esac
8588   fi
8589   rm -rf conftest*
8590   ;;
8591
8592 *-*-sco3.2v5*)
8593   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8594   SAVE_CFLAGS=$CFLAGS
8595   CFLAGS="$CFLAGS -belf"
8596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8597 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8598 if ${lt_cv_cc_needs_belf+:} false; then :
8599   $as_echo_n "(cached) " >&6
8600 else
8601   ac_ext=c
8602 ac_cpp='$CPP $CPPFLAGS'
8603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8606
8607      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h.  */
8609
8610 int
8611 main ()
8612 {
8613
8614   ;
8615   return 0;
8616 }
8617 _ACEOF
8618 if ac_fn_c_try_link "$LINENO"; then :
8619   lt_cv_cc_needs_belf=yes
8620 else
8621   lt_cv_cc_needs_belf=no
8622 fi
8623 rm -f core conftest.err conftest.$ac_objext \
8624     conftest$ac_exeext conftest.$ac_ext
8625      ac_ext=c
8626 ac_cpp='$CPP $CPPFLAGS'
8627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8630
8631 fi
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8633 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8634   if test yes != "$lt_cv_cc_needs_belf"; then
8635     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8636     CFLAGS=$SAVE_CFLAGS
8637   fi
8638   ;;
8639 *-*solaris*)
8640   # Find out what ABI is being produced by ac_compile, and set linker
8641   # options accordingly.
8642   echo 'int i;' > conftest.$ac_ext
8643   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8644   (eval $ac_compile) 2>&5
8645   ac_status=$?
8646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8647   test $ac_status = 0; }; then
8648     case `/usr/bin/file conftest.o` in
8649     *64-bit*)
8650       case $lt_cv_prog_gnu_ld in
8651       yes*)
8652         case $host in
8653         i?86-*-solaris*|x86_64-*-solaris*)
8654           LD="${LD-ld} -m elf_x86_64"
8655           ;;
8656         sparc*-*-solaris*)
8657           LD="${LD-ld} -m elf64_sparc"
8658           ;;
8659         esac
8660         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8661         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8662           LD=${LD-ld}_sol2
8663         fi
8664         ;;
8665       *)
8666         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8667           LD="${LD-ld} -64"
8668         fi
8669         ;;
8670       esac
8671       ;;
8672     esac
8673   fi
8674   rm -rf conftest*
8675   ;;
8676 esac
8677
8678 need_locks=$enable_libtool_lock
8679
8680 if test -n "$ac_tool_prefix"; then
8681   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8682 set dummy ${ac_tool_prefix}mt; ac_word=$2
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684 $as_echo_n "checking for $ac_word... " >&6; }
8685 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8686   $as_echo_n "(cached) " >&6
8687 else
8688   if test -n "$MANIFEST_TOOL"; then
8689   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8690 else
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 for as_dir in $PATH
8693 do
8694   IFS=$as_save_IFS
8695   test -z "$as_dir" && as_dir=.
8696     for ac_exec_ext in '' $ac_executable_extensions; do
8697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8700     break 2
8701   fi
8702 done
8703   done
8704 IFS=$as_save_IFS
8705
8706 fi
8707 fi
8708 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8709 if test -n "$MANIFEST_TOOL"; then
8710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8711 $as_echo "$MANIFEST_TOOL" >&6; }
8712 else
8713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8715 fi
8716
8717
8718 fi
8719 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8720   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8721   # Extract the first word of "mt", so it can be a program name with args.
8722 set dummy mt; ac_word=$2
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724 $as_echo_n "checking for $ac_word... " >&6; }
8725 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8726   $as_echo_n "(cached) " >&6
8727 else
8728   if test -n "$ac_ct_MANIFEST_TOOL"; then
8729   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8730 else
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 for as_dir in $PATH
8733 do
8734   IFS=$as_save_IFS
8735   test -z "$as_dir" && as_dir=.
8736     for ac_exec_ext in '' $ac_executable_extensions; do
8737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8738     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740     break 2
8741   fi
8742 done
8743   done
8744 IFS=$as_save_IFS
8745
8746 fi
8747 fi
8748 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8749 if test -n "$ac_ct_MANIFEST_TOOL"; then
8750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8751 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8752 else
8753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754 $as_echo "no" >&6; }
8755 fi
8756
8757   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8758     MANIFEST_TOOL=":"
8759   else
8760     case $cross_compiling:$ac_tool_warned in
8761 yes:)
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8764 ac_tool_warned=yes ;;
8765 esac
8766     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8767   fi
8768 else
8769   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8770 fi
8771
8772 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8774 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8775 if ${lt_cv_path_mainfest_tool+:} false; then :
8776   $as_echo_n "(cached) " >&6
8777 else
8778   lt_cv_path_mainfest_tool=no
8779   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8780   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8781   cat conftest.err >&5
8782   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8783     lt_cv_path_mainfest_tool=yes
8784   fi
8785   rm -f conftest*
8786 fi
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8788 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8789 if test yes != "$lt_cv_path_mainfest_tool"; then
8790   MANIFEST_TOOL=:
8791 fi
8792
8793
8794
8795
8796
8797
8798   case $host_os in
8799     rhapsody* | darwin*)
8800     if test -n "$ac_tool_prefix"; then
8801   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8802 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804 $as_echo_n "checking for $ac_word... " >&6; }
8805 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8806   $as_echo_n "(cached) " >&6
8807 else
8808   if test -n "$DSYMUTIL"; then
8809   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8810 else
8811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812 for as_dir in $PATH
8813 do
8814   IFS=$as_save_IFS
8815   test -z "$as_dir" && as_dir=.
8816     for ac_exec_ext in '' $ac_executable_extensions; do
8817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8818     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8820     break 2
8821   fi
8822 done
8823   done
8824 IFS=$as_save_IFS
8825
8826 fi
8827 fi
8828 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8829 if test -n "$DSYMUTIL"; then
8830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8831 $as_echo "$DSYMUTIL" >&6; }
8832 else
8833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834 $as_echo "no" >&6; }
8835 fi
8836
8837
8838 fi
8839 if test -z "$ac_cv_prog_DSYMUTIL"; then
8840   ac_ct_DSYMUTIL=$DSYMUTIL
8841   # Extract the first word of "dsymutil", so it can be a program name with args.
8842 set dummy dsymutil; ac_word=$2
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844 $as_echo_n "checking for $ac_word... " >&6; }
8845 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8846   $as_echo_n "(cached) " >&6
8847 else
8848   if test -n "$ac_ct_DSYMUTIL"; then
8849   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8850 else
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852 for as_dir in $PATH
8853 do
8854   IFS=$as_save_IFS
8855   test -z "$as_dir" && as_dir=.
8856     for ac_exec_ext in '' $ac_executable_extensions; do
8857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8858     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8860     break 2
8861   fi
8862 done
8863   done
8864 IFS=$as_save_IFS
8865
8866 fi
8867 fi
8868 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8869 if test -n "$ac_ct_DSYMUTIL"; then
8870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8871 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8872 else
8873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874 $as_echo "no" >&6; }
8875 fi
8876
8877   if test "x$ac_ct_DSYMUTIL" = x; then
8878     DSYMUTIL=":"
8879   else
8880     case $cross_compiling:$ac_tool_warned in
8881 yes:)
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8884 ac_tool_warned=yes ;;
8885 esac
8886     DSYMUTIL=$ac_ct_DSYMUTIL
8887   fi
8888 else
8889   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8890 fi
8891
8892     if test -n "$ac_tool_prefix"; then
8893   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8894 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 $as_echo_n "checking for $ac_word... " >&6; }
8897 if ${ac_cv_prog_NMEDIT+:} false; then :
8898   $as_echo_n "(cached) " >&6
8899 else
8900   if test -n "$NMEDIT"; then
8901   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8902 else
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904 for as_dir in $PATH
8905 do
8906   IFS=$as_save_IFS
8907   test -z "$as_dir" && as_dir=.
8908     for ac_exec_ext in '' $ac_executable_extensions; do
8909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8912     break 2
8913   fi
8914 done
8915   done
8916 IFS=$as_save_IFS
8917
8918 fi
8919 fi
8920 NMEDIT=$ac_cv_prog_NMEDIT
8921 if test -n "$NMEDIT"; then
8922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8923 $as_echo "$NMEDIT" >&6; }
8924 else
8925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8927 fi
8928
8929
8930 fi
8931 if test -z "$ac_cv_prog_NMEDIT"; then
8932   ac_ct_NMEDIT=$NMEDIT
8933   # Extract the first word of "nmedit", so it can be a program name with args.
8934 set dummy nmedit; ac_word=$2
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8936 $as_echo_n "checking for $ac_word... " >&6; }
8937 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8938   $as_echo_n "(cached) " >&6
8939 else
8940   if test -n "$ac_ct_NMEDIT"; then
8941   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8942 else
8943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944 for as_dir in $PATH
8945 do
8946   IFS=$as_save_IFS
8947   test -z "$as_dir" && as_dir=.
8948     for ac_exec_ext in '' $ac_executable_extensions; do
8949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8950     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8952     break 2
8953   fi
8954 done
8955   done
8956 IFS=$as_save_IFS
8957
8958 fi
8959 fi
8960 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8961 if test -n "$ac_ct_NMEDIT"; then
8962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8963 $as_echo "$ac_ct_NMEDIT" >&6; }
8964 else
8965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966 $as_echo "no" >&6; }
8967 fi
8968
8969   if test "x$ac_ct_NMEDIT" = x; then
8970     NMEDIT=":"
8971   else
8972     case $cross_compiling:$ac_tool_warned in
8973 yes:)
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8976 ac_tool_warned=yes ;;
8977 esac
8978     NMEDIT=$ac_ct_NMEDIT
8979   fi
8980 else
8981   NMEDIT="$ac_cv_prog_NMEDIT"
8982 fi
8983
8984     if test -n "$ac_tool_prefix"; then
8985   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8986 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8988 $as_echo_n "checking for $ac_word... " >&6; }
8989 if ${ac_cv_prog_LIPO+:} false; then :
8990   $as_echo_n "(cached) " >&6
8991 else
8992   if test -n "$LIPO"; then
8993   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8994 else
8995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8996 for as_dir in $PATH
8997 do
8998   IFS=$as_save_IFS
8999   test -z "$as_dir" && as_dir=.
9000     for ac_exec_ext in '' $ac_executable_extensions; do
9001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9002     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9004     break 2
9005   fi
9006 done
9007   done
9008 IFS=$as_save_IFS
9009
9010 fi
9011 fi
9012 LIPO=$ac_cv_prog_LIPO
9013 if test -n "$LIPO"; then
9014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9015 $as_echo "$LIPO" >&6; }
9016 else
9017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9018 $as_echo "no" >&6; }
9019 fi
9020
9021
9022 fi
9023 if test -z "$ac_cv_prog_LIPO"; then
9024   ac_ct_LIPO=$LIPO
9025   # Extract the first word of "lipo", so it can be a program name with args.
9026 set dummy lipo; ac_word=$2
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9028 $as_echo_n "checking for $ac_word... " >&6; }
9029 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9030   $as_echo_n "(cached) " >&6
9031 else
9032   if test -n "$ac_ct_LIPO"; then
9033   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9034 else
9035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9036 for as_dir in $PATH
9037 do
9038   IFS=$as_save_IFS
9039   test -z "$as_dir" && as_dir=.
9040     for ac_exec_ext in '' $ac_executable_extensions; do
9041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9042     ac_cv_prog_ac_ct_LIPO="lipo"
9043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9044     break 2
9045   fi
9046 done
9047   done
9048 IFS=$as_save_IFS
9049
9050 fi
9051 fi
9052 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9053 if test -n "$ac_ct_LIPO"; then
9054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9055 $as_echo "$ac_ct_LIPO" >&6; }
9056 else
9057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9058 $as_echo "no" >&6; }
9059 fi
9060
9061   if test "x$ac_ct_LIPO" = x; then
9062     LIPO=":"
9063   else
9064     case $cross_compiling:$ac_tool_warned in
9065 yes:)
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9068 ac_tool_warned=yes ;;
9069 esac
9070     LIPO=$ac_ct_LIPO
9071   fi
9072 else
9073   LIPO="$ac_cv_prog_LIPO"
9074 fi
9075
9076     if test -n "$ac_tool_prefix"; then
9077   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9078 set dummy ${ac_tool_prefix}otool; ac_word=$2
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9080 $as_echo_n "checking for $ac_word... " >&6; }
9081 if ${ac_cv_prog_OTOOL+:} false; then :
9082   $as_echo_n "(cached) " >&6
9083 else
9084   if test -n "$OTOOL"; then
9085   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9086 else
9087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088 for as_dir in $PATH
9089 do
9090   IFS=$as_save_IFS
9091   test -z "$as_dir" && as_dir=.
9092     for ac_exec_ext in '' $ac_executable_extensions; do
9093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9094     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9096     break 2
9097   fi
9098 done
9099   done
9100 IFS=$as_save_IFS
9101
9102 fi
9103 fi
9104 OTOOL=$ac_cv_prog_OTOOL
9105 if test -n "$OTOOL"; then
9106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9107 $as_echo "$OTOOL" >&6; }
9108 else
9109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9110 $as_echo "no" >&6; }
9111 fi
9112
9113
9114 fi
9115 if test -z "$ac_cv_prog_OTOOL"; then
9116   ac_ct_OTOOL=$OTOOL
9117   # Extract the first word of "otool", so it can be a program name with args.
9118 set dummy otool; ac_word=$2
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120 $as_echo_n "checking for $ac_word... " >&6; }
9121 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9122   $as_echo_n "(cached) " >&6
9123 else
9124   if test -n "$ac_ct_OTOOL"; then
9125   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9126 else
9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128 for as_dir in $PATH
9129 do
9130   IFS=$as_save_IFS
9131   test -z "$as_dir" && as_dir=.
9132     for ac_exec_ext in '' $ac_executable_extensions; do
9133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9134     ac_cv_prog_ac_ct_OTOOL="otool"
9135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9136     break 2
9137   fi
9138 done
9139   done
9140 IFS=$as_save_IFS
9141
9142 fi
9143 fi
9144 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9145 if test -n "$ac_ct_OTOOL"; then
9146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9147 $as_echo "$ac_ct_OTOOL" >&6; }
9148 else
9149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9151 fi
9152
9153   if test "x$ac_ct_OTOOL" = x; then
9154     OTOOL=":"
9155   else
9156     case $cross_compiling:$ac_tool_warned in
9157 yes:)
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9160 ac_tool_warned=yes ;;
9161 esac
9162     OTOOL=$ac_ct_OTOOL
9163   fi
9164 else
9165   OTOOL="$ac_cv_prog_OTOOL"
9166 fi
9167
9168     if test -n "$ac_tool_prefix"; then
9169   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9170 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9172 $as_echo_n "checking for $ac_word... " >&6; }
9173 if ${ac_cv_prog_OTOOL64+:} false; then :
9174   $as_echo_n "(cached) " >&6
9175 else
9176   if test -n "$OTOOL64"; then
9177   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9178 else
9179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9180 for as_dir in $PATH
9181 do
9182   IFS=$as_save_IFS
9183   test -z "$as_dir" && as_dir=.
9184     for ac_exec_ext in '' $ac_executable_extensions; do
9185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9186     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9188     break 2
9189   fi
9190 done
9191   done
9192 IFS=$as_save_IFS
9193
9194 fi
9195 fi
9196 OTOOL64=$ac_cv_prog_OTOOL64
9197 if test -n "$OTOOL64"; then
9198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9199 $as_echo "$OTOOL64" >&6; }
9200 else
9201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9202 $as_echo "no" >&6; }
9203 fi
9204
9205
9206 fi
9207 if test -z "$ac_cv_prog_OTOOL64"; then
9208   ac_ct_OTOOL64=$OTOOL64
9209   # Extract the first word of "otool64", so it can be a program name with args.
9210 set dummy otool64; ac_word=$2
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9212 $as_echo_n "checking for $ac_word... " >&6; }
9213 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9214   $as_echo_n "(cached) " >&6
9215 else
9216   if test -n "$ac_ct_OTOOL64"; then
9217   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9218 else
9219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220 for as_dir in $PATH
9221 do
9222   IFS=$as_save_IFS
9223   test -z "$as_dir" && as_dir=.
9224     for ac_exec_ext in '' $ac_executable_extensions; do
9225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9226     ac_cv_prog_ac_ct_OTOOL64="otool64"
9227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9228     break 2
9229   fi
9230 done
9231   done
9232 IFS=$as_save_IFS
9233
9234 fi
9235 fi
9236 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9237 if test -n "$ac_ct_OTOOL64"; then
9238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9239 $as_echo "$ac_ct_OTOOL64" >&6; }
9240 else
9241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9242 $as_echo "no" >&6; }
9243 fi
9244
9245   if test "x$ac_ct_OTOOL64" = x; then
9246     OTOOL64=":"
9247   else
9248     case $cross_compiling:$ac_tool_warned in
9249 yes:)
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9252 ac_tool_warned=yes ;;
9253 esac
9254     OTOOL64=$ac_ct_OTOOL64
9255   fi
9256 else
9257   OTOOL64="$ac_cv_prog_OTOOL64"
9258 fi
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9287 $as_echo_n "checking for -single_module linker flag... " >&6; }
9288 if ${lt_cv_apple_cc_single_mod+:} false; then :
9289   $as_echo_n "(cached) " >&6
9290 else
9291   lt_cv_apple_cc_single_mod=no
9292       if test -z "$LT_MULTI_MODULE"; then
9293         # By default we will add the -single_module flag. You can override
9294         # by either setting the environment variable LT_MULTI_MODULE
9295         # non-empty at configure time, or by adding -multi_module to the
9296         # link flags.
9297         rm -rf libconftest.dylib*
9298         echo "int foo(void){return 1;}" > conftest.c
9299         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9300 -dynamiclib -Wl,-single_module conftest.c" >&5
9301         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9302           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9303         _lt_result=$?
9304         # If there is a non-empty error log, and "single_module"
9305         # appears in it, assume the flag caused a linker warning
9306         if test -s conftest.err && $GREP single_module conftest.err; then
9307           cat conftest.err >&5
9308         # Otherwise, if the output was created with a 0 exit code from
9309         # the compiler, it worked.
9310         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9311           lt_cv_apple_cc_single_mod=yes
9312         else
9313           cat conftest.err >&5
9314         fi
9315         rm -rf libconftest.dylib*
9316         rm -f conftest.*
9317       fi
9318 fi
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9320 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9321
9322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9323 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9324 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9325   $as_echo_n "(cached) " >&6
9326 else
9327   lt_cv_ld_exported_symbols_list=no
9328       save_LDFLAGS=$LDFLAGS
9329       echo "_main" > conftest.sym
9330       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9331       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h.  */
9333
9334 int
9335 main ()
9336 {
9337
9338   ;
9339   return 0;
9340 }
9341 _ACEOF
9342 if ac_fn_c_try_link "$LINENO"; then :
9343   lt_cv_ld_exported_symbols_list=yes
9344 else
9345   lt_cv_ld_exported_symbols_list=no
9346 fi
9347 rm -f core conftest.err conftest.$ac_objext \
9348     conftest$ac_exeext conftest.$ac_ext
9349         LDFLAGS=$save_LDFLAGS
9350
9351 fi
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9353 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9354
9355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9356 $as_echo_n "checking for -force_load linker flag... " >&6; }
9357 if ${lt_cv_ld_force_load+:} false; then :
9358   $as_echo_n "(cached) " >&6
9359 else
9360   lt_cv_ld_force_load=no
9361       cat > conftest.c << _LT_EOF
9362 int forced_loaded() { return 2;}
9363 _LT_EOF
9364       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9365       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9366       echo "$AR cru libconftest.a conftest.o" >&5
9367       $AR cru libconftest.a conftest.o 2>&5
9368       echo "$RANLIB libconftest.a" >&5
9369       $RANLIB libconftest.a 2>&5
9370       cat > conftest.c << _LT_EOF
9371 int main() { return 0;}
9372 _LT_EOF
9373       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9374       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9375       _lt_result=$?
9376       if test -s conftest.err && $GREP force_load conftest.err; then
9377         cat conftest.err >&5
9378       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9379         lt_cv_ld_force_load=yes
9380       else
9381         cat conftest.err >&5
9382       fi
9383         rm -f conftest.err libconftest.a conftest conftest.c
9384         rm -rf conftest.dSYM
9385
9386 fi
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9388 $as_echo "$lt_cv_ld_force_load" >&6; }
9389     case $host_os in
9390     rhapsody* | darwin1.[012])
9391       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9392     darwin1.*)
9393       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9394     darwin*) # darwin 5.x on
9395       # if running on 10.5 or later, the deployment target defaults
9396       # to the OS version, if on x86, and 10.4, the deployment
9397       # target defaults to 10.4. Don't you love it?
9398       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9399         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9400           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9401         10.[012][,.]*)
9402           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9403         10.*)
9404           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9405       esac
9406     ;;
9407   esac
9408     if test yes = "$lt_cv_apple_cc_single_mod"; then
9409       _lt_dar_single_mod='$single_module'
9410     fi
9411     if test yes = "$lt_cv_ld_exported_symbols_list"; then
9412       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9413     else
9414       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9415     fi
9416     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9417       _lt_dsymutil='~$DSYMUTIL $lib || :'
9418     else
9419       _lt_dsymutil=
9420     fi
9421     ;;
9422   esac
9423
9424 # func_munge_path_list VARIABLE PATH
9425 # -----------------------------------
9426 # VARIABLE is name of variable containing _space_ separated list of
9427 # directories to be munged by the contents of PATH, which is string
9428 # having a format:
9429 # "DIR[:DIR]:"
9430 #       string "DIR[ DIR]" will be prepended to VARIABLE
9431 # ":DIR[:DIR]"
9432 #       string "DIR[ DIR]" will be appended to VARIABLE
9433 # "DIRP[:DIRP]::[DIRA:]DIRA"
9434 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9435 #       "DIRA[ DIRA]" will be appended to VARIABLE
9436 # "DIR[:DIR]"
9437 #       VARIABLE will be replaced by "DIR[ DIR]"
9438 func_munge_path_list ()
9439 {
9440     case x$2 in
9441     x)
9442         ;;
9443     *:)
9444         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9445         ;;
9446     x:*)
9447         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9448         ;;
9449     *::*)
9450         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9451         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9452         ;;
9453     *)
9454         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9455         ;;
9456     esac
9457 }
9458
9459 for ac_header in dlfcn.h
9460 do :
9461   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9462 "
9463 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9464   cat >>confdefs.h <<_ACEOF
9465 #define HAVE_DLFCN_H 1
9466 _ACEOF
9467
9468 fi
9469
9470 done
9471
9472
9473
9474
9475
9476 # Set options
9477 # Check whether --enable-static was given.
9478 if test "${enable_static+set}" = set; then :
9479   enableval=$enable_static; p=${PACKAGE-default}
9480     case $enableval in
9481     yes) enable_static=yes ;;
9482     no) enable_static=no ;;
9483     *)
9484      enable_static=no
9485       # Look at the argument we got.  We use all the common list separators.
9486       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9487       for pkg in $enableval; do
9488         IFS=$lt_save_ifs
9489         if test "X$pkg" = "X$p"; then
9490           enable_static=yes
9491         fi
9492       done
9493       IFS=$lt_save_ifs
9494       ;;
9495     esac
9496 else
9497   enable_static=no
9498 fi
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509         enable_dlopen=no
9510
9511
9512   enable_win32_dll=no
9513
9514
9515             # Check whether --enable-shared was given.
9516 if test "${enable_shared+set}" = set; then :
9517   enableval=$enable_shared; p=${PACKAGE-default}
9518     case $enableval in
9519     yes) enable_shared=yes ;;
9520     no) enable_shared=no ;;
9521     *)
9522       enable_shared=no
9523       # Look at the argument we got.  We use all the common list separators.
9524       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9525       for pkg in $enableval; do
9526         IFS=$lt_save_ifs
9527         if test "X$pkg" = "X$p"; then
9528           enable_shared=yes
9529         fi
9530       done
9531       IFS=$lt_save_ifs
9532       ;;
9533     esac
9534 else
9535   enable_shared=yes
9536 fi
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548 # Check whether --with-pic was given.
9549 if test "${with_pic+set}" = set; then :
9550   withval=$with_pic; lt_p=${PACKAGE-default}
9551     case $withval in
9552     yes|no) pic_mode=$withval ;;
9553     *)
9554       pic_mode=default
9555       # Look at the argument we got.  We use all the common list separators.
9556       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9557       for lt_pkg in $withval; do
9558         IFS=$lt_save_ifs
9559         if test "X$lt_pkg" = "X$lt_p"; then
9560           pic_mode=yes
9561         fi
9562       done
9563       IFS=$lt_save_ifs
9564       ;;
9565     esac
9566 else
9567   pic_mode=default
9568 fi
9569
9570
9571
9572
9573
9574
9575
9576
9577   # Check whether --enable-fast-install was given.
9578 if test "${enable_fast_install+set}" = set; then :
9579   enableval=$enable_fast_install; p=${PACKAGE-default}
9580     case $enableval in
9581     yes) enable_fast_install=yes ;;
9582     no) enable_fast_install=no ;;
9583     *)
9584       enable_fast_install=no
9585       # Look at the argument we got.  We use all the common list separators.
9586       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9587       for pkg in $enableval; do
9588         IFS=$lt_save_ifs
9589         if test "X$pkg" = "X$p"; then
9590           enable_fast_install=yes
9591         fi
9592       done
9593       IFS=$lt_save_ifs
9594       ;;
9595     esac
9596 else
9597   enable_fast_install=yes
9598 fi
9599
9600
9601
9602
9603
9604
9605
9606
9607   shared_archive_member_spec=
9608 case $host,$enable_shared in
9609 power*-*-aix[5-9]*,yes)
9610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9611 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9612
9613 # Check whether --with-aix-soname was given.
9614 if test "${with_aix_soname+set}" = set; then :
9615   withval=$with_aix_soname; case $withval in
9616     aix|svr4|both)
9617       ;;
9618     *)
9619       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9620       ;;
9621     esac
9622     lt_cv_with_aix_soname=$with_aix_soname
9623 else
9624   if ${lt_cv_with_aix_soname+:} false; then :
9625   $as_echo_n "(cached) " >&6
9626 else
9627   lt_cv_with_aix_soname=aix
9628 fi
9629
9630     with_aix_soname=$lt_cv_with_aix_soname
9631 fi
9632
9633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9634 $as_echo "$with_aix_soname" >&6; }
9635   if test aix != "$with_aix_soname"; then
9636     # For the AIX way of multilib, we name the shared archive member
9637     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9638     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9639     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9640     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9641     if test 64 = "${OBJECT_MODE-32}"; then
9642       shared_archive_member_spec=shr_64
9643     else
9644       shared_archive_member_spec=shr
9645     fi
9646   fi
9647   ;;
9648 *)
9649   with_aix_soname=aix
9650   ;;
9651 esac
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662 # This can be used to rebuild libtool when needed
9663 LIBTOOL_DEPS=$ltmain
9664
9665 # Always use our own libtool.
9666 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697 test -z "$LN_S" && LN_S="ln -s"
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712 if test -n "${ZSH_VERSION+set}"; then
9713    setopt NO_GLOB_SUBST
9714 fi
9715
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9717 $as_echo_n "checking for objdir... " >&6; }
9718 if ${lt_cv_objdir+:} false; then :
9719   $as_echo_n "(cached) " >&6
9720 else
9721   rm -f .libs 2>/dev/null
9722 mkdir .libs 2>/dev/null
9723 if test -d .libs; then
9724   lt_cv_objdir=.libs
9725 else
9726   # MS-DOS does not allow filenames that begin with a dot.
9727   lt_cv_objdir=_libs
9728 fi
9729 rmdir .libs 2>/dev/null
9730 fi
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9732 $as_echo "$lt_cv_objdir" >&6; }
9733 objdir=$lt_cv_objdir
9734
9735
9736
9737
9738
9739 cat >>confdefs.h <<_ACEOF
9740 #define LT_OBJDIR "$lt_cv_objdir/"
9741 _ACEOF
9742
9743
9744
9745
9746 case $host_os in
9747 aix3*)
9748   # AIX sometimes has problems with the GCC collect2 program.  For some
9749   # reason, if we set the COLLECT_NAMES environment variable, the problems
9750   # vanish in a puff of smoke.
9751   if test set != "${COLLECT_NAMES+set}"; then
9752     COLLECT_NAMES=
9753     export COLLECT_NAMES
9754   fi
9755   ;;
9756 esac
9757
9758 # Global variables:
9759 ofile=libtool
9760 can_build_shared=yes
9761
9762 # All known linkers require a '.a' archive for static linking (except MSVC,
9763 # which needs '.lib').
9764 libext=a
9765
9766 with_gnu_ld=$lt_cv_prog_gnu_ld
9767
9768 old_CC=$CC
9769 old_CFLAGS=$CFLAGS
9770
9771 # Set sane defaults for various variables
9772 test -z "$CC" && CC=cc
9773 test -z "$LTCC" && LTCC=$CC
9774 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9775 test -z "$LD" && LD=ld
9776 test -z "$ac_objext" && ac_objext=o
9777
9778 func_cc_basename $compiler
9779 cc_basename=$func_cc_basename_result
9780
9781
9782 # Only perform the check for file, if the check method requires it
9783 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9784 case $deplibs_check_method in
9785 file_magic*)
9786   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9788 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9789 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9790   $as_echo_n "(cached) " >&6
9791 else
9792   case $MAGIC_CMD in
9793 [\\/*] |  ?:[\\/]*)
9794   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9795   ;;
9796 *)
9797   lt_save_MAGIC_CMD=$MAGIC_CMD
9798   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9799   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9800   for ac_dir in $ac_dummy; do
9801     IFS=$lt_save_ifs
9802     test -z "$ac_dir" && ac_dir=.
9803     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9804       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9805       if test -n "$file_magic_test_file"; then
9806         case $deplibs_check_method in
9807         "file_magic "*)
9808           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9809           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9810           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9811             $EGREP "$file_magic_regex" > /dev/null; then
9812             :
9813           else
9814             cat <<_LT_EOF 1>&2
9815
9816 *** Warning: the command libtool uses to detect shared libraries,
9817 *** $file_magic_cmd, produces output that libtool cannot recognize.
9818 *** The result is that libtool may fail to recognize shared libraries
9819 *** as such.  This will affect the creation of libtool libraries that
9820 *** depend on shared libraries, but programs linked with such libtool
9821 *** libraries will work regardless of this problem.  Nevertheless, you
9822 *** may want to report the problem to your system manager and/or to
9823 *** bug-libtool@gnu.org
9824
9825 _LT_EOF
9826           fi ;;
9827         esac
9828       fi
9829       break
9830     fi
9831   done
9832   IFS=$lt_save_ifs
9833   MAGIC_CMD=$lt_save_MAGIC_CMD
9834   ;;
9835 esac
9836 fi
9837
9838 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9839 if test -n "$MAGIC_CMD"; then
9840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9841 $as_echo "$MAGIC_CMD" >&6; }
9842 else
9843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844 $as_echo "no" >&6; }
9845 fi
9846
9847
9848
9849
9850
9851 if test -z "$lt_cv_path_MAGIC_CMD"; then
9852   if test -n "$ac_tool_prefix"; then
9853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9854 $as_echo_n "checking for file... " >&6; }
9855 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9856   $as_echo_n "(cached) " >&6
9857 else
9858   case $MAGIC_CMD in
9859 [\\/*] |  ?:[\\/]*)
9860   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9861   ;;
9862 *)
9863   lt_save_MAGIC_CMD=$MAGIC_CMD
9864   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9865   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9866   for ac_dir in $ac_dummy; do
9867     IFS=$lt_save_ifs
9868     test -z "$ac_dir" && ac_dir=.
9869     if test -f "$ac_dir/file"; then
9870       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9871       if test -n "$file_magic_test_file"; then
9872         case $deplibs_check_method in
9873         "file_magic "*)
9874           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9875           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9876           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9877             $EGREP "$file_magic_regex" > /dev/null; then
9878             :
9879           else
9880             cat <<_LT_EOF 1>&2
9881
9882 *** Warning: the command libtool uses to detect shared libraries,
9883 *** $file_magic_cmd, produces output that libtool cannot recognize.
9884 *** The result is that libtool may fail to recognize shared libraries
9885 *** as such.  This will affect the creation of libtool libraries that
9886 *** depend on shared libraries, but programs linked with such libtool
9887 *** libraries will work regardless of this problem.  Nevertheless, you
9888 *** may want to report the problem to your system manager and/or to
9889 *** bug-libtool@gnu.org
9890
9891 _LT_EOF
9892           fi ;;
9893         esac
9894       fi
9895       break
9896     fi
9897   done
9898   IFS=$lt_save_ifs
9899   MAGIC_CMD=$lt_save_MAGIC_CMD
9900   ;;
9901 esac
9902 fi
9903
9904 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9905 if test -n "$MAGIC_CMD"; then
9906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9907 $as_echo "$MAGIC_CMD" >&6; }
9908 else
9909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 $as_echo "no" >&6; }
9911 fi
9912
9913
9914   else
9915     MAGIC_CMD=:
9916   fi
9917 fi
9918
9919   fi
9920   ;;
9921 esac
9922
9923 # Use C for the default configuration in the libtool script
9924
9925 lt_save_CC=$CC
9926 ac_ext=c
9927 ac_cpp='$CPP $CPPFLAGS'
9928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9931
9932
9933 # Source file extension for C test sources.
9934 ac_ext=c
9935
9936 # Object file extension for compiled C test sources.
9937 objext=o
9938 objext=$objext
9939
9940 # Code to be used in simple compile tests
9941 lt_simple_compile_test_code="int some_variable = 0;"
9942
9943 # Code to be used in simple link tests
9944 lt_simple_link_test_code='int main(){return(0);}'
9945
9946
9947
9948
9949
9950
9951
9952 # If no C compiler was specified, use CC.
9953 LTCC=${LTCC-"$CC"}
9954
9955 # If no C compiler flags were specified, use CFLAGS.
9956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9957
9958 # Allow CC to be a program name with arguments.
9959 compiler=$CC
9960
9961 # Save the default compiler, since it gets overwritten when the other
9962 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9963 compiler_DEFAULT=$CC
9964
9965 # save warnings/boilerplate of simple test code
9966 ac_outfile=conftest.$ac_objext
9967 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9968 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9969 _lt_compiler_boilerplate=`cat conftest.err`
9970 $RM conftest*
9971
9972 ac_outfile=conftest.$ac_objext
9973 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9974 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9975 _lt_linker_boilerplate=`cat conftest.err`
9976 $RM -r conftest*
9977
9978
9979 ## CAVEAT EMPTOR:
9980 ## There is no encapsulation within the following macros, do not change
9981 ## the running order or otherwise move them around unless you know exactly
9982 ## what you are doing...
9983 if test -n "$compiler"; then
9984
9985 lt_prog_compiler_no_builtin_flag=
9986
9987 if test yes = "$GCC"; then
9988   case $cc_basename in
9989   nvcc*)
9990     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9991   *)
9992     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9993   esac
9994
9995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9996 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9997 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9998   $as_echo_n "(cached) " >&6
9999 else
10000   lt_cv_prog_compiler_rtti_exceptions=no
10001    ac_outfile=conftest.$ac_objext
10002    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10003    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10004    # Insert the option either (1) after the last *FLAGS variable, or
10005    # (2) before a word containing "conftest.", or (3) at the end.
10006    # Note that $ac_compile itself does not contain backslashes and begins
10007    # with a dollar sign (not a hyphen), so the echo should work correctly.
10008    # The option is referenced via a variable to avoid confusing sed.
10009    lt_compile=`echo "$ac_compile" | $SED \
10010    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10011    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10012    -e 's:$: $lt_compiler_flag:'`
10013    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10014    (eval "$lt_compile" 2>conftest.err)
10015    ac_status=$?
10016    cat conftest.err >&5
10017    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018    if (exit $ac_status) && test -s "$ac_outfile"; then
10019      # The compiler can only warn and ignore the option if not recognized
10020      # So say no if there are warnings other than the usual output.
10021      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10022      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10023      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10024        lt_cv_prog_compiler_rtti_exceptions=yes
10025      fi
10026    fi
10027    $RM conftest*
10028
10029 fi
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10031 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10032
10033 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10034     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10035 else
10036     :
10037 fi
10038
10039 fi
10040
10041
10042
10043
10044
10045
10046   lt_prog_compiler_wl=
10047 lt_prog_compiler_pic=
10048 lt_prog_compiler_static=
10049
10050
10051   if test yes = "$GCC"; then
10052     lt_prog_compiler_wl='-Wl,'
10053     lt_prog_compiler_static='-static'
10054
10055     case $host_os in
10056       aix*)
10057       # All AIX code is PIC.
10058       if test ia64 = "$host_cpu"; then
10059         # AIX 5 now supports IA64 processor
10060         lt_prog_compiler_static='-Bstatic'
10061       fi
10062       lt_prog_compiler_pic='-fPIC'
10063       ;;
10064
10065     amigaos*)
10066       case $host_cpu in
10067       powerpc)
10068             # see comment about AmigaOS4 .so support
10069             lt_prog_compiler_pic='-fPIC'
10070         ;;
10071       m68k)
10072             # FIXME: we need at least 68020 code to build shared libraries, but
10073             # adding the '-m68020' flag to GCC prevents building anything better,
10074             # like '-m68040'.
10075             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10076         ;;
10077       esac
10078       ;;
10079
10080     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10081       # PIC is the default for these OSes.
10082       ;;
10083
10084     mingw* | cygwin* | pw32* | os2* | cegcc*)
10085       # This hack is so that the source file can tell whether it is being
10086       # built for inclusion in a dll (and should export symbols for example).
10087       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10088       # (--disable-auto-import) libraries
10089       lt_prog_compiler_pic='-DDLL_EXPORT'
10090       case $host_os in
10091       os2*)
10092         lt_prog_compiler_static='$wl-static'
10093         ;;
10094       esac
10095       ;;
10096
10097     darwin* | rhapsody*)
10098       # PIC is the default on this platform
10099       # Common symbols not allowed in MH_DYLIB files
10100       lt_prog_compiler_pic='-fno-common'
10101       ;;
10102
10103     haiku*)
10104       # PIC is the default for Haiku.
10105       # The "-static" flag exists, but is broken.
10106       lt_prog_compiler_static=
10107       ;;
10108
10109     hpux*)
10110       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10111       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10112       # sets the default TLS model and affects inlining.
10113       case $host_cpu in
10114       hppa*64*)
10115         # +Z the default
10116         ;;
10117       *)
10118         lt_prog_compiler_pic='-fPIC'
10119         ;;
10120       esac
10121       ;;
10122
10123     interix[3-9]*)
10124       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10125       # Instead, we relocate shared libraries at runtime.
10126       ;;
10127
10128     msdosdjgpp*)
10129       # Just because we use GCC doesn't mean we suddenly get shared libraries
10130       # on systems that don't support them.
10131       lt_prog_compiler_can_build_shared=no
10132       enable_shared=no
10133       ;;
10134
10135     *nto* | *qnx*)
10136       # QNX uses GNU C++, but need to define -shared option too, otherwise
10137       # it will coredump.
10138       lt_prog_compiler_pic='-fPIC -shared'
10139       ;;
10140
10141     sysv4*MP*)
10142       if test -d /usr/nec; then
10143         lt_prog_compiler_pic=-Kconform_pic
10144       fi
10145       ;;
10146
10147     *)
10148       lt_prog_compiler_pic='-fPIC'
10149       ;;
10150     esac
10151
10152     case $cc_basename in
10153     nvcc*) # Cuda Compiler Driver 2.2
10154       lt_prog_compiler_wl='-Xlinker '
10155       if test -n "$lt_prog_compiler_pic"; then
10156         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10157       fi
10158       ;;
10159     esac
10160   else
10161     # PORTME Check for flag to pass linker flags through the system compiler.
10162     case $host_os in
10163     aix*)
10164       lt_prog_compiler_wl='-Wl,'
10165       if test ia64 = "$host_cpu"; then
10166         # AIX 5 now supports IA64 processor
10167         lt_prog_compiler_static='-Bstatic'
10168       else
10169         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10170       fi
10171       ;;
10172
10173     darwin* | rhapsody*)
10174       # PIC is the default on this platform
10175       # Common symbols not allowed in MH_DYLIB files
10176       lt_prog_compiler_pic='-fno-common'
10177       case $cc_basename in
10178       nagfor*)
10179         # NAG Fortran compiler
10180         lt_prog_compiler_wl='-Wl,-Wl,,'
10181         lt_prog_compiler_pic='-PIC'
10182         lt_prog_compiler_static='-Bstatic'
10183         ;;
10184       esac
10185       ;;
10186
10187     mingw* | cygwin* | pw32* | os2* | cegcc*)
10188       # This hack is so that the source file can tell whether it is being
10189       # built for inclusion in a dll (and should export symbols for example).
10190       lt_prog_compiler_pic='-DDLL_EXPORT'
10191       case $host_os in
10192       os2*)
10193         lt_prog_compiler_static='$wl-static'
10194         ;;
10195       esac
10196       ;;
10197
10198     hpux9* | hpux10* | hpux11*)
10199       lt_prog_compiler_wl='-Wl,'
10200       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10201       # not for PA HP-UX.
10202       case $host_cpu in
10203       hppa*64*|ia64*)
10204         # +Z the default
10205         ;;
10206       *)
10207         lt_prog_compiler_pic='+Z'
10208         ;;
10209       esac
10210       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10211       lt_prog_compiler_static='$wl-a ${wl}archive'
10212       ;;
10213
10214     irix5* | irix6* | nonstopux*)
10215       lt_prog_compiler_wl='-Wl,'
10216       # PIC (with -KPIC) is the default.
10217       lt_prog_compiler_static='-non_shared'
10218       ;;
10219
10220     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10221       case $cc_basename in
10222       # old Intel for x86_64, which still supported -KPIC.
10223       ecc*)
10224         lt_prog_compiler_wl='-Wl,'
10225         lt_prog_compiler_pic='-KPIC'
10226         lt_prog_compiler_static='-static'
10227         ;;
10228       # icc used to be incompatible with GCC.
10229       # ICC 10 doesn't accept -KPIC any more.
10230       icc* | ifort*)
10231         lt_prog_compiler_wl='-Wl,'
10232         lt_prog_compiler_pic='-fPIC'
10233         lt_prog_compiler_static='-static'
10234         ;;
10235       # Lahey Fortran 8.1.
10236       lf95*)
10237         lt_prog_compiler_wl='-Wl,'
10238         lt_prog_compiler_pic='--shared'
10239         lt_prog_compiler_static='--static'
10240         ;;
10241       nagfor*)
10242         # NAG Fortran compiler
10243         lt_prog_compiler_wl='-Wl,-Wl,,'
10244         lt_prog_compiler_pic='-PIC'
10245         lt_prog_compiler_static='-Bstatic'
10246         ;;
10247       tcc*)
10248         # Fabrice Bellard et al's Tiny C Compiler
10249         lt_prog_compiler_wl='-Wl,'
10250         lt_prog_compiler_pic='-fPIC'
10251         lt_prog_compiler_static='-static'
10252         ;;
10253       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10254         # Portland Group compilers (*not* the Pentium gcc compiler,
10255         # which looks to be a dead project)
10256         lt_prog_compiler_wl='-Wl,'
10257         lt_prog_compiler_pic='-fpic'
10258         lt_prog_compiler_static='-Bstatic'
10259         ;;
10260       ccc*)
10261         lt_prog_compiler_wl='-Wl,'
10262         # All Alpha code is PIC.
10263         lt_prog_compiler_static='-non_shared'
10264         ;;
10265       xl* | bgxl* | bgf* | mpixl*)
10266         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10267         lt_prog_compiler_wl='-Wl,'
10268         lt_prog_compiler_pic='-qpic'
10269         lt_prog_compiler_static='-qstaticlink'
10270         ;;
10271       *)
10272         case `$CC -V 2>&1 | sed 5q` in
10273         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10274           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10275           lt_prog_compiler_pic='-KPIC'
10276           lt_prog_compiler_static='-Bstatic'
10277           lt_prog_compiler_wl=''
10278           ;;
10279         *Sun\ F* | *Sun*Fortran*)
10280           lt_prog_compiler_pic='-KPIC'
10281           lt_prog_compiler_static='-Bstatic'
10282           lt_prog_compiler_wl='-Qoption ld '
10283           ;;
10284         *Sun\ C*)
10285           # Sun C 5.9
10286           lt_prog_compiler_pic='-KPIC'
10287           lt_prog_compiler_static='-Bstatic'
10288           lt_prog_compiler_wl='-Wl,'
10289           ;;
10290         *Intel*\ [CF]*Compiler*)
10291           lt_prog_compiler_wl='-Wl,'
10292           lt_prog_compiler_pic='-fPIC'
10293           lt_prog_compiler_static='-static'
10294           ;;
10295         *Portland\ Group*)
10296           lt_prog_compiler_wl='-Wl,'
10297           lt_prog_compiler_pic='-fpic'
10298           lt_prog_compiler_static='-Bstatic'
10299           ;;
10300         esac
10301         ;;
10302       esac
10303       ;;
10304
10305     newsos6)
10306       lt_prog_compiler_pic='-KPIC'
10307       lt_prog_compiler_static='-Bstatic'
10308       ;;
10309
10310     *nto* | *qnx*)
10311       # QNX uses GNU C++, but need to define -shared option too, otherwise
10312       # it will coredump.
10313       lt_prog_compiler_pic='-fPIC -shared'
10314       ;;
10315
10316     osf3* | osf4* | osf5*)
10317       lt_prog_compiler_wl='-Wl,'
10318       # All OSF/1 code is PIC.
10319       lt_prog_compiler_static='-non_shared'
10320       ;;
10321
10322     rdos*)
10323       lt_prog_compiler_static='-non_shared'
10324       ;;
10325
10326     solaris*)
10327       lt_prog_compiler_pic='-KPIC'
10328       lt_prog_compiler_static='-Bstatic'
10329       case $cc_basename in
10330       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10331         lt_prog_compiler_wl='-Qoption ld ';;
10332       *)
10333         lt_prog_compiler_wl='-Wl,';;
10334       esac
10335       ;;
10336
10337     sunos4*)
10338       lt_prog_compiler_wl='-Qoption ld '
10339       lt_prog_compiler_pic='-PIC'
10340       lt_prog_compiler_static='-Bstatic'
10341       ;;
10342
10343     sysv4 | sysv4.2uw2* | sysv4.3*)
10344       lt_prog_compiler_wl='-Wl,'
10345       lt_prog_compiler_pic='-KPIC'
10346       lt_prog_compiler_static='-Bstatic'
10347       ;;
10348
10349     sysv4*MP*)
10350       if test -d /usr/nec; then
10351         lt_prog_compiler_pic='-Kconform_pic'
10352         lt_prog_compiler_static='-Bstatic'
10353       fi
10354       ;;
10355
10356     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10357       lt_prog_compiler_wl='-Wl,'
10358       lt_prog_compiler_pic='-KPIC'
10359       lt_prog_compiler_static='-Bstatic'
10360       ;;
10361
10362     unicos*)
10363       lt_prog_compiler_wl='-Wl,'
10364       lt_prog_compiler_can_build_shared=no
10365       ;;
10366
10367     uts4*)
10368       lt_prog_compiler_pic='-pic'
10369       lt_prog_compiler_static='-Bstatic'
10370       ;;
10371
10372     *)
10373       lt_prog_compiler_can_build_shared=no
10374       ;;
10375     esac
10376   fi
10377
10378 case $host_os in
10379   # For platforms that do not support PIC, -DPIC is meaningless:
10380   *djgpp*)
10381     lt_prog_compiler_pic=
10382     ;;
10383   *)
10384     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10385     ;;
10386 esac
10387
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10389 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10390 if ${lt_cv_prog_compiler_pic+:} false; then :
10391   $as_echo_n "(cached) " >&6
10392 else
10393   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10394 fi
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10396 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10397 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10398
10399 #
10400 # Check to make sure the PIC flag actually works.
10401 #
10402 if test -n "$lt_prog_compiler_pic"; then
10403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10404 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10405 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10406   $as_echo_n "(cached) " >&6
10407 else
10408   lt_cv_prog_compiler_pic_works=no
10409    ac_outfile=conftest.$ac_objext
10410    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10411    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10412    # Insert the option either (1) after the last *FLAGS variable, or
10413    # (2) before a word containing "conftest.", or (3) at the end.
10414    # Note that $ac_compile itself does not contain backslashes and begins
10415    # with a dollar sign (not a hyphen), so the echo should work correctly.
10416    # The option is referenced via a variable to avoid confusing sed.
10417    lt_compile=`echo "$ac_compile" | $SED \
10418    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10419    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10420    -e 's:$: $lt_compiler_flag:'`
10421    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10422    (eval "$lt_compile" 2>conftest.err)
10423    ac_status=$?
10424    cat conftest.err >&5
10425    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426    if (exit $ac_status) && test -s "$ac_outfile"; then
10427      # The compiler can only warn and ignore the option if not recognized
10428      # So say no if there are warnings other than the usual output.
10429      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10430      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10431      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10432        lt_cv_prog_compiler_pic_works=yes
10433      fi
10434    fi
10435    $RM conftest*
10436
10437 fi
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10439 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10440
10441 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10442     case $lt_prog_compiler_pic in
10443      "" | " "*) ;;
10444      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10445      esac
10446 else
10447     lt_prog_compiler_pic=
10448      lt_prog_compiler_can_build_shared=no
10449 fi
10450
10451 fi
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463 #
10464 # Check to make sure the static flag actually works.
10465 #
10466 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10468 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10469 if ${lt_cv_prog_compiler_static_works+:} false; then :
10470   $as_echo_n "(cached) " >&6
10471 else
10472   lt_cv_prog_compiler_static_works=no
10473    save_LDFLAGS=$LDFLAGS
10474    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10475    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10476    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10477      # The linker can only warn and ignore the option if not recognized
10478      # So say no if there are warnings
10479      if test -s conftest.err; then
10480        # Append any errors to the config.log.
10481        cat conftest.err 1>&5
10482        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10483        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10484        if diff conftest.exp conftest.er2 >/dev/null; then
10485          lt_cv_prog_compiler_static_works=yes
10486        fi
10487      else
10488        lt_cv_prog_compiler_static_works=yes
10489      fi
10490    fi
10491    $RM -r conftest*
10492    LDFLAGS=$save_LDFLAGS
10493
10494 fi
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10496 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10497
10498 if test yes = "$lt_cv_prog_compiler_static_works"; then
10499     :
10500 else
10501     lt_prog_compiler_static=
10502 fi
10503
10504
10505
10506
10507
10508
10509
10510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10511 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10512 if ${lt_cv_prog_compiler_c_o+:} false; then :
10513   $as_echo_n "(cached) " >&6
10514 else
10515   lt_cv_prog_compiler_c_o=no
10516    $RM -r conftest 2>/dev/null
10517    mkdir conftest
10518    cd conftest
10519    mkdir out
10520    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10521
10522    lt_compiler_flag="-o out/conftest2.$ac_objext"
10523    # Insert the option either (1) after the last *FLAGS variable, or
10524    # (2) before a word containing "conftest.", or (3) at the end.
10525    # Note that $ac_compile itself does not contain backslashes and begins
10526    # with a dollar sign (not a hyphen), so the echo should work correctly.
10527    lt_compile=`echo "$ac_compile" | $SED \
10528    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10529    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10530    -e 's:$: $lt_compiler_flag:'`
10531    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10532    (eval "$lt_compile" 2>out/conftest.err)
10533    ac_status=$?
10534    cat out/conftest.err >&5
10535    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10537    then
10538      # The compiler can only warn and ignore the option if not recognized
10539      # So say no if there are warnings
10540      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10541      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10542      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10543        lt_cv_prog_compiler_c_o=yes
10544      fi
10545    fi
10546    chmod u+w . 2>&5
10547    $RM conftest*
10548    # SGI C++ compiler will create directory out/ii_files/ for
10549    # template instantiation
10550    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10551    $RM out/* && rmdir out
10552    cd ..
10553    $RM -r conftest
10554    $RM conftest*
10555
10556 fi
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10558 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10559
10560
10561
10562
10563
10564
10565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10566 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10567 if ${lt_cv_prog_compiler_c_o+:} false; then :
10568   $as_echo_n "(cached) " >&6
10569 else
10570   lt_cv_prog_compiler_c_o=no
10571    $RM -r conftest 2>/dev/null
10572    mkdir conftest
10573    cd conftest
10574    mkdir out
10575    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10576
10577    lt_compiler_flag="-o out/conftest2.$ac_objext"
10578    # Insert the option either (1) after the last *FLAGS variable, or
10579    # (2) before a word containing "conftest.", or (3) at the end.
10580    # Note that $ac_compile itself does not contain backslashes and begins
10581    # with a dollar sign (not a hyphen), so the echo should work correctly.
10582    lt_compile=`echo "$ac_compile" | $SED \
10583    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10584    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10585    -e 's:$: $lt_compiler_flag:'`
10586    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10587    (eval "$lt_compile" 2>out/conftest.err)
10588    ac_status=$?
10589    cat out/conftest.err >&5
10590    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10592    then
10593      # The compiler can only warn and ignore the option if not recognized
10594      # So say no if there are warnings
10595      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10596      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10597      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10598        lt_cv_prog_compiler_c_o=yes
10599      fi
10600    fi
10601    chmod u+w . 2>&5
10602    $RM conftest*
10603    # SGI C++ compiler will create directory out/ii_files/ for
10604    # template instantiation
10605    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10606    $RM out/* && rmdir out
10607    cd ..
10608    $RM -r conftest
10609    $RM conftest*
10610
10611 fi
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10613 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10614
10615
10616
10617
10618 hard_links=nottested
10619 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10620   # do not overwrite the value of need_locks provided by the user
10621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10622 $as_echo_n "checking if we can lock with hard links... " >&6; }
10623   hard_links=yes
10624   $RM conftest*
10625   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10626   touch conftest.a
10627   ln conftest.a conftest.b 2>&5 || hard_links=no
10628   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10630 $as_echo "$hard_links" >&6; }
10631   if test no = "$hard_links"; then
10632     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10633 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10634     need_locks=warn
10635   fi
10636 else
10637   need_locks=no
10638 fi
10639
10640
10641
10642
10643
10644
10645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10646 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10647
10648   runpath_var=
10649   allow_undefined_flag=
10650   always_export_symbols=no
10651   archive_cmds=
10652   archive_expsym_cmds=
10653   compiler_needs_object=no
10654   enable_shared_with_static_runtimes=no
10655   export_dynamic_flag_spec=
10656   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10657   hardcode_automatic=no
10658   hardcode_direct=no
10659   hardcode_direct_absolute=no
10660   hardcode_libdir_flag_spec=
10661   hardcode_libdir_separator=
10662   hardcode_minus_L=no
10663   hardcode_shlibpath_var=unsupported
10664   inherit_rpath=no
10665   link_all_deplibs=unknown
10666   module_cmds=
10667   module_expsym_cmds=
10668   old_archive_from_new_cmds=
10669   old_archive_from_expsyms_cmds=
10670   thread_safe_flag_spec=
10671   whole_archive_flag_spec=
10672   # include_expsyms should be a list of space-separated symbols to be *always*
10673   # included in the symbol list
10674   include_expsyms=
10675   # exclude_expsyms can be an extended regexp of symbols to exclude
10676   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10677   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10678   # as well as any symbol that contains 'd'.
10679   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10680   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10681   # platforms (ab)use it in PIC code, but their linkers get confused if
10682   # the symbol is explicitly referenced.  Since portable code cannot
10683   # rely on this symbol name, it's probably fine to never include it in
10684   # preloaded symbol tables.
10685   # Exclude shared library initialization/finalization symbols.
10686   extract_expsyms_cmds=
10687
10688   case $host_os in
10689   cygwin* | mingw* | pw32* | cegcc*)
10690     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10691     # When not using gcc, we currently assume that we are using
10692     # Microsoft Visual C++.
10693     if test yes != "$GCC"; then
10694       with_gnu_ld=no
10695     fi
10696     ;;
10697   interix*)
10698     # we just hope/assume this is gcc and not c89 (= MSVC++)
10699     with_gnu_ld=yes
10700     ;;
10701   openbsd* | bitrig*)
10702     with_gnu_ld=no
10703     ;;
10704   linux* | k*bsd*-gnu | gnu*)
10705     link_all_deplibs=no
10706     ;;
10707   esac
10708
10709   ld_shlibs=yes
10710
10711   # On some targets, GNU ld is compatible enough with the native linker
10712   # that we're better off using the native interface for both.
10713   lt_use_gnu_ld_interface=no
10714   if test yes = "$with_gnu_ld"; then
10715     case $host_os in
10716       aix*)
10717         # The AIX port of GNU ld has always aspired to compatibility
10718         # with the native linker.  However, as the warning in the GNU ld
10719         # block says, versions before 2.19.5* couldn't really create working
10720         # shared libraries, regardless of the interface used.
10721         case `$LD -v 2>&1` in
10722           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10723           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10724           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10725           *)
10726             lt_use_gnu_ld_interface=yes
10727             ;;
10728         esac
10729         ;;
10730       *)
10731         lt_use_gnu_ld_interface=yes
10732         ;;
10733     esac
10734   fi
10735
10736   if test yes = "$lt_use_gnu_ld_interface"; then
10737     # If archive_cmds runs LD, not CC, wlarc should be empty
10738     wlarc='$wl'
10739
10740     # Set some defaults for GNU ld with shared library support. These
10741     # are reset later if shared libraries are not supported. Putting them
10742     # here allows them to be overridden if necessary.
10743     runpath_var=LD_RUN_PATH
10744     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10745     export_dynamic_flag_spec='$wl--export-dynamic'
10746     # ancient GNU ld didn't support --whole-archive et. al.
10747     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10748       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10749     else
10750       whole_archive_flag_spec=
10751     fi
10752     supports_anon_versioning=no
10753     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10754       *GNU\ gold*) supports_anon_versioning=yes ;;
10755       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10756       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10757       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10758       *\ 2.11.*) ;; # other 2.11 versions
10759       *) supports_anon_versioning=yes ;;
10760     esac
10761
10762     # See if GNU ld supports shared libraries.
10763     case $host_os in
10764     aix[3-9]*)
10765       # On AIX/PPC, the GNU linker is very broken
10766       if test ia64 != "$host_cpu"; then
10767         ld_shlibs=no
10768         cat <<_LT_EOF 1>&2
10769
10770 *** Warning: the GNU linker, at least up to release 2.19, is reported
10771 *** to be unable to reliably create shared libraries on AIX.
10772 *** Therefore, libtool is disabling shared libraries support.  If you
10773 *** really care for shared libraries, you may want to install binutils
10774 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10775 *** You will then need to restart the configuration process.
10776
10777 _LT_EOF
10778       fi
10779       ;;
10780
10781     amigaos*)
10782       case $host_cpu in
10783       powerpc)
10784             # see comment about AmigaOS4 .so support
10785             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10786             archive_expsym_cmds=''
10787         ;;
10788       m68k)
10789             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10790             hardcode_libdir_flag_spec='-L$libdir'
10791             hardcode_minus_L=yes
10792         ;;
10793       esac
10794       ;;
10795
10796     beos*)
10797       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10798         allow_undefined_flag=unsupported
10799         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10800         # support --undefined.  This deserves some investigation.  FIXME
10801         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10802       else
10803         ld_shlibs=no
10804       fi
10805       ;;
10806
10807     cygwin* | mingw* | pw32* | cegcc*)
10808       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10809       # as there is no search path for DLLs.
10810       hardcode_libdir_flag_spec='-L$libdir'
10811       export_dynamic_flag_spec='$wl--export-all-symbols'
10812       allow_undefined_flag=unsupported
10813       always_export_symbols=no
10814       enable_shared_with_static_runtimes=yes
10815       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10816       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10817
10818       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10819         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10820         # If the export-symbols file already is a .def file, use it as
10821         # is; otherwise, prepend EXPORTS...
10822         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10823           cp $export_symbols $output_objdir/$soname.def;
10824         else
10825           echo EXPORTS > $output_objdir/$soname.def;
10826           cat $export_symbols >> $output_objdir/$soname.def;
10827         fi~
10828         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10829       else
10830         ld_shlibs=no
10831       fi
10832       ;;
10833
10834     haiku*)
10835       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10836       link_all_deplibs=yes
10837       ;;
10838
10839     os2*)
10840       hardcode_libdir_flag_spec='-L$libdir'
10841       hardcode_minus_L=yes
10842       allow_undefined_flag=unsupported
10843       shrext_cmds=.dll
10844       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10845         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10846         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10847         $ECHO EXPORTS >> $output_objdir/$libname.def~
10848         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10849         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10850         emximp -o $lib $output_objdir/$libname.def'
10851       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10852         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10853         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10854         $ECHO EXPORTS >> $output_objdir/$libname.def~
10855         prefix_cmds="$SED"~
10856         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10857           prefix_cmds="$prefix_cmds -e 1d";
10858         fi~
10859         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10860         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10861         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10862         emximp -o $lib $output_objdir/$libname.def'
10863       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10864       enable_shared_with_static_runtimes=yes
10865       ;;
10866
10867     interix[3-9]*)
10868       hardcode_direct=no
10869       hardcode_shlibpath_var=no
10870       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10871       export_dynamic_flag_spec='$wl-E'
10872       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10873       # Instead, shared libraries are loaded at an image base (0x10000000 by
10874       # default) and relocated if they conflict, which is a slow very memory
10875       # consuming and fragmenting process.  To avoid this, we pick a random,
10876       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10877       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10878       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10879       archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10880       ;;
10881
10882     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10883       tmp_diet=no
10884       if test linux-dietlibc = "$host_os"; then
10885         case $cc_basename in
10886           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10887         esac
10888       fi
10889       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10890          && test no = "$tmp_diet"
10891       then
10892         tmp_addflag=' $pic_flag'
10893         tmp_sharedflag='-shared'
10894         case $cc_basename,$host_cpu in
10895         pgcc*)                          # Portland Group C compiler
10896           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10897           tmp_addflag=' $pic_flag'
10898           ;;
10899         pgf77* | pgf90* | pgf95* | pgfortran*)
10900                                         # Portland Group f77 and f90 compilers
10901           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10902           tmp_addflag=' $pic_flag -Mnomain' ;;
10903         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10904           tmp_addflag=' -i_dynamic' ;;
10905         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10906           tmp_addflag=' -i_dynamic -nofor_main' ;;
10907         ifc* | ifort*)                  # Intel Fortran compiler
10908           tmp_addflag=' -nofor_main' ;;
10909         lf95*)                          # Lahey Fortran 8.1
10910           whole_archive_flag_spec=
10911           tmp_sharedflag='--shared' ;;
10912         nagfor*)                        # NAGFOR 5.3
10913           tmp_sharedflag='-Wl,-shared' ;;
10914         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10915           tmp_sharedflag='-qmkshrobj'
10916           tmp_addflag= ;;
10917         nvcc*)  # Cuda Compiler Driver 2.2
10918           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10919           compiler_needs_object=yes
10920           ;;
10921         esac
10922         case `$CC -V 2>&1 | sed 5q` in
10923         *Sun\ C*)                       # Sun C 5.9
10924           whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10925           compiler_needs_object=yes
10926           tmp_sharedflag='-G' ;;
10927         *Sun\ F*)                       # Sun Fortran 8.3
10928           tmp_sharedflag='-G' ;;
10929         esac
10930         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10931
10932         if test yes = "$supports_anon_versioning"; then
10933           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10934             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10935             echo "local: *; };" >> $output_objdir/$libname.ver~
10936             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10937         fi
10938
10939         case $cc_basename in
10940         tcc*)
10941           export_dynamic_flag_spec='-rdynamic'
10942           ;;
10943         xlf* | bgf* | bgxlf* | mpixlf*)
10944           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10945           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10946           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10947           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10948           if test yes = "$supports_anon_versioning"; then
10949             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10950               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10951               echo "local: *; };" >> $output_objdir/$libname.ver~
10952               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10953           fi
10954           ;;
10955         esac
10956       else
10957         ld_shlibs=no
10958       fi
10959       ;;
10960
10961     netbsd* | netbsdelf*-gnu)
10962       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10963         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10964         wlarc=
10965       else
10966         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10967         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10968       fi
10969       ;;
10970
10971     solaris*)
10972       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10973         ld_shlibs=no
10974         cat <<_LT_EOF 1>&2
10975
10976 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10977 *** create shared libraries on Solaris systems.  Therefore, libtool
10978 *** is disabling shared libraries support.  We urge you to upgrade GNU
10979 *** binutils to release 2.9.1 or newer.  Another option is to modify
10980 *** your PATH or compiler configuration so that the native linker is
10981 *** used, and then restart.
10982
10983 _LT_EOF
10984       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10985         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10986         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10987       else
10988         ld_shlibs=no
10989       fi
10990       ;;
10991
10992     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10993       case `$LD -v 2>&1` in
10994         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10995         ld_shlibs=no
10996         cat <<_LT_EOF 1>&2
10997
10998 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10999 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11000 *** is disabling shared libraries support.  We urge you to upgrade GNU
11001 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11002 *** your PATH or compiler configuration so that the native linker is
11003 *** used, and then restart.
11004
11005 _LT_EOF
11006         ;;
11007         *)
11008           # For security reasons, it is highly recommended that you always
11009           # use absolute paths for naming shared libraries, and exclude the
11010           # DT_RUNPATH tag from executables and libraries.  But doing so
11011           # requires that you compile everything twice, which is a pain.
11012           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11013             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11014             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11015             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11016           else
11017             ld_shlibs=no
11018           fi
11019         ;;
11020       esac
11021       ;;
11022
11023     sunos4*)
11024       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11025       wlarc=
11026       hardcode_direct=yes
11027       hardcode_shlibpath_var=no
11028       ;;
11029
11030     *)
11031       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11032         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11033         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11034       else
11035         ld_shlibs=no
11036       fi
11037       ;;
11038     esac
11039
11040     if test no = "$ld_shlibs"; then
11041       runpath_var=
11042       hardcode_libdir_flag_spec=
11043       export_dynamic_flag_spec=
11044       whole_archive_flag_spec=
11045     fi
11046   else
11047     # PORTME fill in a description of your system's linker (not GNU ld)
11048     case $host_os in
11049     aix3*)
11050       allow_undefined_flag=unsupported
11051       always_export_symbols=yes
11052       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11053       # Note: this linker hardcodes the directories in LIBPATH if there
11054       # are no directories specified by -L.
11055       hardcode_minus_L=yes
11056       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11057         # Neither direct hardcoding nor static linking is supported with a
11058         # broken collect2.
11059         hardcode_direct=unsupported
11060       fi
11061       ;;
11062
11063     aix[4-9]*)
11064       if test ia64 = "$host_cpu"; then
11065         # On IA64, the linker does run time linking by default, so we don't
11066         # have to do anything special.
11067         aix_use_runtimelinking=no
11068         exp_sym_flag='-Bexport'
11069         no_entry_flag=
11070       else
11071         # If we're using GNU nm, then we don't want the "-C" option.
11072         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11073         # Without the "-l" option, or with the "-B" option, AIX nm treats
11074         # weak defined symbols like other global defined symbols, whereas
11075         # GNU nm marks them as "W".
11076         # While the 'weak' keyword is ignored in the Export File, we need
11077         # it in the Import File for the 'aix-soname' feature, so we have
11078         # to replace the "-B" option with "-P" for AIX nm.
11079         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11080           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11081         else
11082           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11083         fi
11084         aix_use_runtimelinking=no
11085
11086         # Test if we are trying to use run time linking or normal
11087         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11088         # have runtime linking enabled, and use it for executables.
11089         # For shared libraries, we enable/disable runtime linking
11090         # depending on the kind of the shared library created -
11091         # when "with_aix_soname,aix_use_runtimelinking" is:
11092         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11093         # "aix,yes"  lib.so          shared, rtl:yes, for executables
11094         #            lib.a           static archive
11095         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
11096         #            lib.a(lib.so.V) shared, rtl:no,  for executables
11097         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11098         #            lib.a(lib.so.V) shared, rtl:no
11099         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11100         #            lib.a           static archive
11101         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11102           for ld_flag in $LDFLAGS; do
11103           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11104             aix_use_runtimelinking=yes
11105             break
11106           fi
11107           done
11108           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11109             # With aix-soname=svr4, we create the lib.so.V shared archives only,
11110             # so we don't have lib.a shared libs to link our executables.
11111             # We have to force runtime linking in this case.
11112             aix_use_runtimelinking=yes
11113             LDFLAGS="$LDFLAGS -Wl,-brtl"
11114           fi
11115           ;;
11116         esac
11117
11118         exp_sym_flag='-bexport'
11119         no_entry_flag='-bnoentry'
11120       fi
11121
11122       # When large executables or shared objects are built, AIX ld can
11123       # have problems creating the table of contents.  If linking a library
11124       # or program results in "error TOC overflow" add -mminimal-toc to
11125       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11126       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11127
11128       archive_cmds=''
11129       hardcode_direct=yes
11130       hardcode_direct_absolute=yes
11131       hardcode_libdir_separator=':'
11132       link_all_deplibs=yes
11133       file_list_spec='$wl-f,'
11134       case $with_aix_soname,$aix_use_runtimelinking in
11135       aix,*) ;; # traditional, no import file
11136       svr4,* | *,yes) # use import file
11137         # The Import File defines what to hardcode.
11138         hardcode_direct=no
11139         hardcode_direct_absolute=no
11140         ;;
11141       esac
11142
11143       if test yes = "$GCC"; then
11144         case $host_os in aix4.[012]|aix4.[012].*)
11145         # We only want to do this on AIX 4.2 and lower, the check
11146         # below for broken collect2 doesn't work under 4.3+
11147           collect2name=`$CC -print-prog-name=collect2`
11148           if test -f "$collect2name" &&
11149            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11150           then
11151           # We have reworked collect2
11152           :
11153           else
11154           # We have old collect2
11155           hardcode_direct=unsupported
11156           # It fails to find uninstalled libraries when the uninstalled
11157           # path is not listed in the libpath.  Setting hardcode_minus_L
11158           # to unsupported forces relinking
11159           hardcode_minus_L=yes
11160           hardcode_libdir_flag_spec='-L$libdir'
11161           hardcode_libdir_separator=
11162           fi
11163           ;;
11164         esac
11165         shared_flag='-shared'
11166         if test yes = "$aix_use_runtimelinking"; then
11167           shared_flag="$shared_flag "'$wl-G'
11168         fi
11169         # Need to ensure runtime linking is disabled for the traditional
11170         # shared library, or the linker may eventually find shared libraries
11171         # /with/ Import File - we do not want to mix them.
11172         shared_flag_aix='-shared'
11173         shared_flag_svr4='-shared $wl-G'
11174       else
11175         # not using gcc
11176         if test ia64 = "$host_cpu"; then
11177         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11178         # chokes on -Wl,-G. The following line is correct:
11179           shared_flag='-G'
11180         else
11181           if test yes = "$aix_use_runtimelinking"; then
11182             shared_flag='$wl-G'
11183           else
11184             shared_flag='$wl-bM:SRE'
11185           fi
11186           shared_flag_aix='$wl-bM:SRE'
11187           shared_flag_svr4='$wl-G'
11188         fi
11189       fi
11190
11191       export_dynamic_flag_spec='$wl-bexpall'
11192       # It seems that -bexpall does not export symbols beginning with
11193       # underscore (_), so it is better to generate a list of symbols to export.
11194       always_export_symbols=yes
11195       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11196         # Warning - without using the other runtime loading flags (-brtl),
11197         # -berok will link without error, but may produce a broken library.
11198         allow_undefined_flag='-berok'
11199         # Determine the default libpath from the value encoded in an
11200         # empty executable.
11201         if test set = "${lt_cv_aix_libpath+set}"; then
11202   aix_libpath=$lt_cv_aix_libpath
11203 else
11204   if ${lt_cv_aix_libpath_+:} false; then :
11205   $as_echo_n "(cached) " >&6
11206 else
11207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h.  */
11209
11210 int
11211 main ()
11212 {
11213
11214   ;
11215   return 0;
11216 }
11217 _ACEOF
11218 if ac_fn_c_try_link "$LINENO"; then :
11219
11220   lt_aix_libpath_sed='
11221       /Import File Strings/,/^$/ {
11222           /^0/ {
11223               s/^0  *\([^ ]*\) *$/\1/
11224               p
11225           }
11226       }'
11227   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11228   # Check for a 64-bit object if we didn't find anything.
11229   if test -z "$lt_cv_aix_libpath_"; then
11230     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11231   fi
11232 fi
11233 rm -f core conftest.err conftest.$ac_objext \
11234     conftest$ac_exeext conftest.$ac_ext
11235   if test -z "$lt_cv_aix_libpath_"; then
11236     lt_cv_aix_libpath_=/usr/lib:/lib
11237   fi
11238
11239 fi
11240
11241   aix_libpath=$lt_cv_aix_libpath_
11242 fi
11243
11244         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11245         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11246       else
11247         if test ia64 = "$host_cpu"; then
11248           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11249           allow_undefined_flag="-z nodefs"
11250           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
11251         else
11252          # Determine the default libpath from the value encoded in an
11253          # empty executable.
11254          if test set = "${lt_cv_aix_libpath+set}"; then
11255   aix_libpath=$lt_cv_aix_libpath
11256 else
11257   if ${lt_cv_aix_libpath_+:} false; then :
11258   $as_echo_n "(cached) " >&6
11259 else
11260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h.  */
11262
11263 int
11264 main ()
11265 {
11266
11267   ;
11268   return 0;
11269 }
11270 _ACEOF
11271 if ac_fn_c_try_link "$LINENO"; then :
11272
11273   lt_aix_libpath_sed='
11274       /Import File Strings/,/^$/ {
11275           /^0/ {
11276               s/^0  *\([^ ]*\) *$/\1/
11277               p
11278           }
11279       }'
11280   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11281   # Check for a 64-bit object if we didn't find anything.
11282   if test -z "$lt_cv_aix_libpath_"; then
11283     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11284   fi
11285 fi
11286 rm -f core conftest.err conftest.$ac_objext \
11287     conftest$ac_exeext conftest.$ac_ext
11288   if test -z "$lt_cv_aix_libpath_"; then
11289     lt_cv_aix_libpath_=/usr/lib:/lib
11290   fi
11291
11292 fi
11293
11294   aix_libpath=$lt_cv_aix_libpath_
11295 fi
11296
11297          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11298           # Warning - without using the other run time loading flags,
11299           # -berok will link without error, but may produce a broken library.
11300           no_undefined_flag=' $wl-bernotok'
11301           allow_undefined_flag=' $wl-berok'
11302           if test yes = "$with_gnu_ld"; then
11303             # We only use this code for GNU lds that support --whole-archive.
11304             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11305           else
11306             # Exported symbols can be pulled into shared objects from archives
11307             whole_archive_flag_spec='$convenience'
11308           fi
11309           archive_cmds_need_lc=yes
11310           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11311           # -brtl affects multiple linker settings, -berok does not and is overridden later
11312           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11313           if test svr4 != "$with_aix_soname"; then
11314             # This is similar to how AIX traditionally builds its shared libraries.
11315             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11316           fi
11317           if test aix != "$with_aix_soname"; then
11318             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11319           else
11320             # used by -dlpreopen to get the symbols
11321             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11322           fi
11323           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11324         fi
11325       fi
11326       ;;
11327
11328     amigaos*)
11329       case $host_cpu in
11330       powerpc)
11331             # see comment about AmigaOS4 .so support
11332             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11333             archive_expsym_cmds=''
11334         ;;
11335       m68k)
11336             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11337             hardcode_libdir_flag_spec='-L$libdir'
11338             hardcode_minus_L=yes
11339         ;;
11340       esac
11341       ;;
11342
11343     bsdi[45]*)
11344       export_dynamic_flag_spec=-rdynamic
11345       ;;
11346
11347     cygwin* | mingw* | pw32* | cegcc*)
11348       # When not using gcc, we currently assume that we are using
11349       # Microsoft Visual C++.
11350       # hardcode_libdir_flag_spec is actually meaningless, as there is
11351       # no search path for DLLs.
11352       case $cc_basename in
11353       cl*)
11354         # Native MSVC
11355         hardcode_libdir_flag_spec=' '
11356         allow_undefined_flag=unsupported
11357         always_export_symbols=yes
11358         file_list_spec='@'
11359         # Tell ltmain to make .lib files, not .a files.
11360         libext=lib
11361         # Tell ltmain to make .dll files, not .so files.
11362         shrext_cmds=.dll
11363         # FIXME: Setting linknames here is a bad hack.
11364         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11365         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11366             cp "$export_symbols" "$output_objdir/$soname.def";
11367             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11368           else
11369             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11370           fi~
11371           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11372           linknames='
11373         # The linker will not automatically build a static lib if we build a DLL.
11374         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11375         enable_shared_with_static_runtimes=yes
11376         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11377         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11378         # Don't use ranlib
11379         old_postinstall_cmds='chmod 644 $oldlib'
11380         postlink_cmds='lt_outputfile="@OUTPUT@"~
11381           lt_tool_outputfile="@TOOL_OUTPUT@"~
11382           case $lt_outputfile in
11383             *.exe|*.EXE) ;;
11384             *)
11385               lt_outputfile=$lt_outputfile.exe
11386               lt_tool_outputfile=$lt_tool_outputfile.exe
11387               ;;
11388           esac~
11389           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11390             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11391             $RM "$lt_outputfile.manifest";
11392           fi'
11393         ;;
11394       *)
11395         # Assume MSVC wrapper
11396         hardcode_libdir_flag_spec=' '
11397         allow_undefined_flag=unsupported
11398         # Tell ltmain to make .lib files, not .a files.
11399         libext=lib
11400         # Tell ltmain to make .dll files, not .so files.
11401         shrext_cmds=.dll
11402         # FIXME: Setting linknames here is a bad hack.
11403         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11404         # The linker will automatically build a .lib file if we build a DLL.
11405         old_archive_from_new_cmds='true'
11406         # FIXME: Should let the user specify the lib program.
11407         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11408         enable_shared_with_static_runtimes=yes
11409         ;;
11410       esac
11411       ;;
11412
11413     darwin* | rhapsody*)
11414
11415
11416   archive_cmds_need_lc=no
11417   hardcode_direct=no
11418   hardcode_automatic=yes
11419   hardcode_shlibpath_var=unsupported
11420   if test yes = "$lt_cv_ld_force_load"; then
11421     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11422
11423   else
11424     whole_archive_flag_spec=''
11425   fi
11426   link_all_deplibs=yes
11427   allow_undefined_flag=$_lt_dar_allow_undefined
11428   case $cc_basename in
11429      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11430      *) _lt_dar_can_shared=$GCC ;;
11431   esac
11432   if test yes = "$_lt_dar_can_shared"; then
11433     output_verbose_link_cmd=func_echo_all
11434     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11435     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11436     archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
11437     module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11438
11439   else
11440   ld_shlibs=no
11441   fi
11442
11443       ;;
11444
11445     dgux*)
11446       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11447       hardcode_libdir_flag_spec='-L$libdir'
11448       hardcode_shlibpath_var=no
11449       ;;
11450
11451     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11452     # support.  Future versions do this automatically, but an explicit c++rt0.o
11453     # does not break anything, and helps significantly (at the cost of a little
11454     # extra space).
11455     freebsd2.2*)
11456       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11457       hardcode_libdir_flag_spec='-R$libdir'
11458       hardcode_direct=yes
11459       hardcode_shlibpath_var=no
11460       ;;
11461
11462     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11463     freebsd2.*)
11464       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11465       hardcode_direct=yes
11466       hardcode_minus_L=yes
11467       hardcode_shlibpath_var=no
11468       ;;
11469
11470     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11471     freebsd* | dragonfly*)
11472       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11473       hardcode_libdir_flag_spec='-R$libdir'
11474       hardcode_direct=yes
11475       hardcode_shlibpath_var=no
11476       ;;
11477
11478     hpux9*)
11479       if test yes = "$GCC"; then
11480         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11481       else
11482         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11483       fi
11484       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11485       hardcode_libdir_separator=:
11486       hardcode_direct=yes
11487
11488       # hardcode_minus_L: Not really in the search PATH,
11489       # but as the default location of the library.
11490       hardcode_minus_L=yes
11491       export_dynamic_flag_spec='$wl-E'
11492       ;;
11493
11494     hpux10*)
11495       if test yes,no = "$GCC,$with_gnu_ld"; then
11496         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11497       else
11498         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11499       fi
11500       if test no = "$with_gnu_ld"; then
11501         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11502         hardcode_libdir_separator=:
11503         hardcode_direct=yes
11504         hardcode_direct_absolute=yes
11505         export_dynamic_flag_spec='$wl-E'
11506         # hardcode_minus_L: Not really in the search PATH,
11507         # but as the default location of the library.
11508         hardcode_minus_L=yes
11509       fi
11510       ;;
11511
11512     hpux11*)
11513       if test yes,no = "$GCC,$with_gnu_ld"; then
11514         case $host_cpu in
11515         hppa*64*)
11516           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11517           ;;
11518         ia64*)
11519           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11520           ;;
11521         *)
11522           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11523           ;;
11524         esac
11525       else
11526         case $host_cpu in
11527         hppa*64*)
11528           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11529           ;;
11530         ia64*)
11531           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11532           ;;
11533         *)
11534
11535           # Older versions of the 11.00 compiler do not understand -b yet
11536           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11537           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11538 $as_echo_n "checking if $CC understands -b... " >&6; }
11539 if ${lt_cv_prog_compiler__b+:} false; then :
11540   $as_echo_n "(cached) " >&6
11541 else
11542   lt_cv_prog_compiler__b=no
11543    save_LDFLAGS=$LDFLAGS
11544    LDFLAGS="$LDFLAGS -b"
11545    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11546    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11547      # The linker can only warn and ignore the option if not recognized
11548      # So say no if there are warnings
11549      if test -s conftest.err; then
11550        # Append any errors to the config.log.
11551        cat conftest.err 1>&5
11552        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11553        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11554        if diff conftest.exp conftest.er2 >/dev/null; then
11555          lt_cv_prog_compiler__b=yes
11556        fi
11557      else
11558        lt_cv_prog_compiler__b=yes
11559      fi
11560    fi
11561    $RM -r conftest*
11562    LDFLAGS=$save_LDFLAGS
11563
11564 fi
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11566 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11567
11568 if test yes = "$lt_cv_prog_compiler__b"; then
11569     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11570 else
11571     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11572 fi
11573
11574           ;;
11575         esac
11576       fi
11577       if test no = "$with_gnu_ld"; then
11578         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11579         hardcode_libdir_separator=:
11580
11581         case $host_cpu in
11582         hppa*64*|ia64*)
11583           hardcode_direct=no
11584           hardcode_shlibpath_var=no
11585           ;;
11586         *)
11587           hardcode_direct=yes
11588           hardcode_direct_absolute=yes
11589           export_dynamic_flag_spec='$wl-E'
11590
11591           # hardcode_minus_L: Not really in the search PATH,
11592           # but as the default location of the library.
11593           hardcode_minus_L=yes
11594           ;;
11595         esac
11596       fi
11597       ;;
11598
11599     irix5* | irix6* | nonstopux*)
11600       if test yes = "$GCC"; then
11601         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11602         # Try to use the -exported_symbol ld option, if it does not
11603         # work, assume that -exports_file does not work either and
11604         # implicitly export all symbols.
11605         # This should be the same for all languages, so no per-tag cache variable.
11606         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11607 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11608 if ${lt_cv_irix_exported_symbol+:} false; then :
11609   $as_echo_n "(cached) " >&6
11610 else
11611   save_LDFLAGS=$LDFLAGS
11612            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11613            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h.  */
11615 int foo (void) { return 0; }
11616 _ACEOF
11617 if ac_fn_c_try_link "$LINENO"; then :
11618   lt_cv_irix_exported_symbol=yes
11619 else
11620   lt_cv_irix_exported_symbol=no
11621 fi
11622 rm -f core conftest.err conftest.$ac_objext \
11623     conftest$ac_exeext conftest.$ac_ext
11624            LDFLAGS=$save_LDFLAGS
11625 fi
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11627 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11628         if test yes = "$lt_cv_irix_exported_symbol"; then
11629           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11630         fi
11631         link_all_deplibs=no
11632       else
11633         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11634         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11635       fi
11636       archive_cmds_need_lc='no'
11637       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11638       hardcode_libdir_separator=:
11639       inherit_rpath=yes
11640       link_all_deplibs=yes
11641       ;;
11642
11643     linux*)
11644       case $cc_basename in
11645       tcc*)
11646         # Fabrice Bellard et al's Tiny C Compiler
11647         ld_shlibs=yes
11648         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11649         ;;
11650       esac
11651       ;;
11652
11653     netbsd* | netbsdelf*-gnu)
11654       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11655         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11656       else
11657         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11658       fi
11659       hardcode_libdir_flag_spec='-R$libdir'
11660       hardcode_direct=yes
11661       hardcode_shlibpath_var=no
11662       ;;
11663
11664     newsos6)
11665       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11666       hardcode_direct=yes
11667       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11668       hardcode_libdir_separator=:
11669       hardcode_shlibpath_var=no
11670       ;;
11671
11672     *nto* | *qnx*)
11673       ;;
11674
11675     openbsd* | bitrig*)
11676       if test -f /usr/libexec/ld.so; then
11677         hardcode_direct=yes
11678         hardcode_shlibpath_var=no
11679         hardcode_direct_absolute=yes
11680         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11681           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11682           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11683           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11684           export_dynamic_flag_spec='$wl-E'
11685         else
11686           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11687           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11688         fi
11689       else
11690         ld_shlibs=no
11691       fi
11692       ;;
11693
11694     os2*)
11695       hardcode_libdir_flag_spec='-L$libdir'
11696       hardcode_minus_L=yes
11697       allow_undefined_flag=unsupported
11698       shrext_cmds=.dll
11699       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11700         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11701         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11702         $ECHO EXPORTS >> $output_objdir/$libname.def~
11703         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11704         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11705         emximp -o $lib $output_objdir/$libname.def'
11706       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11707         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11708         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11709         $ECHO EXPORTS >> $output_objdir/$libname.def~
11710         prefix_cmds="$SED"~
11711         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11712           prefix_cmds="$prefix_cmds -e 1d";
11713         fi~
11714         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11715         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11716         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11717         emximp -o $lib $output_objdir/$libname.def'
11718       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11719       enable_shared_with_static_runtimes=yes
11720       ;;
11721
11722     osf3*)
11723       if test yes = "$GCC"; then
11724         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11725         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11726       else
11727         allow_undefined_flag=' -expect_unresolved \*'
11728         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11729       fi
11730       archive_cmds_need_lc='no'
11731       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11732       hardcode_libdir_separator=:
11733       ;;
11734
11735     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11736       if test yes = "$GCC"; then
11737         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11738         archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11739         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11740       else
11741         allow_undefined_flag=' -expect_unresolved \*'
11742         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11743         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11744           $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11745
11746         # Both c and cxx compiler support -rpath directly
11747         hardcode_libdir_flag_spec='-rpath $libdir'
11748       fi
11749       archive_cmds_need_lc='no'
11750       hardcode_libdir_separator=:
11751       ;;
11752
11753     solaris*)
11754       no_undefined_flag=' -z defs'
11755       if test yes = "$GCC"; then
11756         wlarc='$wl'
11757         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11758         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11759           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11760       else
11761         case `$CC -V 2>&1` in
11762         *"Compilers 5.0"*)
11763           wlarc=''
11764           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11765           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11766             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11767           ;;
11768         *)
11769           wlarc='$wl'
11770           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11771           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11772             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11773           ;;
11774         esac
11775       fi
11776       hardcode_libdir_flag_spec='-R$libdir'
11777       hardcode_shlibpath_var=no
11778       case $host_os in
11779       solaris2.[0-5] | solaris2.[0-5].*) ;;
11780       *)
11781         # The compiler driver will combine and reorder linker options,
11782         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11783         # but is careful enough not to reorder.
11784         # Supported since Solaris 2.6 (maybe 2.5.1?)
11785         if test yes = "$GCC"; then
11786           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11787         else
11788           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11789         fi
11790         ;;
11791       esac
11792       link_all_deplibs=yes
11793       ;;
11794
11795     sunos4*)
11796       if test sequent = "$host_vendor"; then
11797         # Use $CC to link under sequent, because it throws in some extra .o
11798         # files that make .init and .fini sections work.
11799         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11800       else
11801         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11802       fi
11803       hardcode_libdir_flag_spec='-L$libdir'
11804       hardcode_direct=yes
11805       hardcode_minus_L=yes
11806       hardcode_shlibpath_var=no
11807       ;;
11808
11809     sysv4)
11810       case $host_vendor in
11811         sni)
11812           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11813           hardcode_direct=yes # is this really true???
11814         ;;
11815         siemens)
11816           ## LD is ld it makes a PLAMLIB
11817           ## CC just makes a GrossModule.
11818           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11819           reload_cmds='$CC -r -o $output$reload_objs'
11820           hardcode_direct=no
11821         ;;
11822         motorola)
11823           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11824           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11825         ;;
11826       esac
11827       runpath_var='LD_RUN_PATH'
11828       hardcode_shlibpath_var=no
11829       ;;
11830
11831     sysv4.3*)
11832       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11833       hardcode_shlibpath_var=no
11834       export_dynamic_flag_spec='-Bexport'
11835       ;;
11836
11837     sysv4*MP*)
11838       if test -d /usr/nec; then
11839         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11840         hardcode_shlibpath_var=no
11841         runpath_var=LD_RUN_PATH
11842         hardcode_runpath_var=yes
11843         ld_shlibs=yes
11844       fi
11845       ;;
11846
11847     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11848       no_undefined_flag='$wl-z,text'
11849       archive_cmds_need_lc=no
11850       hardcode_shlibpath_var=no
11851       runpath_var='LD_RUN_PATH'
11852
11853       if test yes = "$GCC"; then
11854         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11855         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11856       else
11857         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11858         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11859       fi
11860       ;;
11861
11862     sysv5* | sco3.2v5* | sco5v6*)
11863       # Note: We CANNOT use -z defs as we might desire, because we do not
11864       # link with -lc, and that would cause any symbols used from libc to
11865       # always be unresolved, which means just about no library would
11866       # ever link correctly.  If we're not using GNU ld we use -z text
11867       # though, which does catch some bad symbols but isn't as heavy-handed
11868       # as -z defs.
11869       no_undefined_flag='$wl-z,text'
11870       allow_undefined_flag='$wl-z,nodefs'
11871       archive_cmds_need_lc=no
11872       hardcode_shlibpath_var=no
11873       hardcode_libdir_flag_spec='$wl-R,$libdir'
11874       hardcode_libdir_separator=':'
11875       link_all_deplibs=yes
11876       export_dynamic_flag_spec='$wl-Bexport'
11877       runpath_var='LD_RUN_PATH'
11878
11879       if test yes = "$GCC"; then
11880         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11881         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11882       else
11883         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11884         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11885       fi
11886       ;;
11887
11888     uts4*)
11889       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11890       hardcode_libdir_flag_spec='-L$libdir'
11891       hardcode_shlibpath_var=no
11892       ;;
11893
11894     *)
11895       ld_shlibs=no
11896       ;;
11897     esac
11898
11899     if test sni = "$host_vendor"; then
11900       case $host in
11901       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11902         export_dynamic_flag_spec='$wl-Blargedynsym'
11903         ;;
11904       esac
11905     fi
11906   fi
11907
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11909 $as_echo "$ld_shlibs" >&6; }
11910 test no = "$ld_shlibs" && can_build_shared=no
11911
11912 with_gnu_ld=$with_gnu_ld
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928 #
11929 # Do we need to explicitly link libc?
11930 #
11931 case "x$archive_cmds_need_lc" in
11932 x|xyes)
11933   # Assume -lc should be added
11934   archive_cmds_need_lc=yes
11935
11936   if test yes,yes = "$GCC,$enable_shared"; then
11937     case $archive_cmds in
11938     *'~'*)
11939       # FIXME: we may have to deal with multi-command sequences.
11940       ;;
11941     '$CC '*)
11942       # Test whether the compiler implicitly links with -lc since on some
11943       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11944       # to ld, don't add -lc before -lgcc.
11945       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11946 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11947 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11948   $as_echo_n "(cached) " >&6
11949 else
11950   $RM conftest*
11951         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11952
11953         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11954   (eval $ac_compile) 2>&5
11955   ac_status=$?
11956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11957   test $ac_status = 0; } 2>conftest.err; then
11958           soname=conftest
11959           lib=conftest
11960           libobjs=conftest.$ac_objext
11961           deplibs=
11962           wl=$lt_prog_compiler_wl
11963           pic_flag=$lt_prog_compiler_pic
11964           compiler_flags=-v
11965           linker_flags=-v
11966           verstring=
11967           output_objdir=.
11968           libname=conftest
11969           lt_save_allow_undefined_flag=$allow_undefined_flag
11970           allow_undefined_flag=
11971           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11972   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11973   ac_status=$?
11974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11975   test $ac_status = 0; }
11976           then
11977             lt_cv_archive_cmds_need_lc=no
11978           else
11979             lt_cv_archive_cmds_need_lc=yes
11980           fi
11981           allow_undefined_flag=$lt_save_allow_undefined_flag
11982         else
11983           cat conftest.err 1>&5
11984         fi
11985         $RM conftest*
11986
11987 fi
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11989 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11990       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11991       ;;
11992     esac
11993   fi
11994   ;;
11995 esac
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12149 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12150
12151 if test yes = "$GCC"; then
12152   case $host_os in
12153     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12154     *) lt_awk_arg='/^libraries:/' ;;
12155   esac
12156   case $host_os in
12157     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12158     *) lt_sed_strip_eq='s|=/|/|g' ;;
12159   esac
12160   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12161   case $lt_search_path_spec in
12162   *\;*)
12163     # if the path contains ";" then we assume it to be the separator
12164     # otherwise default to the standard path separator (i.e. ":") - it is
12165     # assumed that no part of a normal pathname contains ";" but that should
12166     # okay in the real world where ";" in dirpaths is itself problematic.
12167     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12168     ;;
12169   *)
12170     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12171     ;;
12172   esac
12173   # Ok, now we have the path, separated by spaces, we can step through it
12174   # and add multilib dir if necessary...
12175   lt_tmp_lt_search_path_spec=
12176   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12177   # ...but if some path component already ends with the multilib dir we assume
12178   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12179   case "$lt_multi_os_dir; $lt_search_path_spec " in
12180   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12181     lt_multi_os_dir=
12182     ;;
12183   esac
12184   for lt_sys_path in $lt_search_path_spec; do
12185     if test -d "$lt_sys_path$lt_multi_os_dir"; then
12186       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12187     elif test -n "$lt_multi_os_dir"; then
12188       test -d "$lt_sys_path" && \
12189         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12190     fi
12191   done
12192   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12193 BEGIN {RS = " "; FS = "/|\n";} {
12194   lt_foo = "";
12195   lt_count = 0;
12196   for (lt_i = NF; lt_i > 0; lt_i--) {
12197     if ($lt_i != "" && $lt_i != ".") {
12198       if ($lt_i == "..") {
12199         lt_count++;
12200       } else {
12201         if (lt_count == 0) {
12202           lt_foo = "/" $lt_i lt_foo;
12203         } else {
12204           lt_count--;
12205         }
12206       }
12207     }
12208   }
12209   if (lt_foo != "") { lt_freq[lt_foo]++; }
12210   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12211 }'`
12212   # AWK program above erroneously prepends '/' to C:/dos/paths
12213   # for these hosts.
12214   case $host_os in
12215     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12216       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12217   esac
12218   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12219 else
12220   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12221 fi
12222 library_names_spec=
12223 libname_spec='lib$name'
12224 soname_spec=
12225 shrext_cmds=.so
12226 postinstall_cmds=
12227 postuninstall_cmds=
12228 finish_cmds=
12229 finish_eval=
12230 shlibpath_var=
12231 shlibpath_overrides_runpath=unknown
12232 version_type=none
12233 dynamic_linker="$host_os ld.so"
12234 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12235 need_lib_prefix=unknown
12236 hardcode_into_libs=no
12237
12238 # when you set need_version to no, make sure it does not cause -set_version
12239 # flags to be left without arguments
12240 need_version=unknown
12241
12242
12243
12244 case $host_os in
12245 aix3*)
12246   version_type=linux # correct to gnu/linux during the next big refactor
12247   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12248   shlibpath_var=LIBPATH
12249
12250   # AIX 3 has no versioning support, so we append a major version to the name.
12251   soname_spec='$libname$release$shared_ext$major'
12252   ;;
12253
12254 aix[4-9]*)
12255   version_type=linux # correct to gnu/linux during the next big refactor
12256   need_lib_prefix=no
12257   need_version=no
12258   hardcode_into_libs=yes
12259   if test ia64 = "$host_cpu"; then
12260     # AIX 5 supports IA64
12261     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12262     shlibpath_var=LD_LIBRARY_PATH
12263   else
12264     # With GCC up to 2.95.x, collect2 would create an import file
12265     # for dependence libraries.  The import file would start with
12266     # the line '#! .'.  This would cause the generated library to
12267     # depend on '.', always an invalid library.  This was fixed in
12268     # development snapshots of GCC prior to 3.0.
12269     case $host_os in
12270       aix4 | aix4.[01] | aix4.[01].*)
12271       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12272            echo ' yes '
12273            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12274         :
12275       else
12276         can_build_shared=no
12277       fi
12278       ;;
12279     esac
12280     # Using Import Files as archive members, it is possible to support
12281     # filename-based versioning of shared library archives on AIX. While
12282     # this would work for both with and without runtime linking, it will
12283     # prevent static linking of such archives. So we do filename-based
12284     # shared library versioning with .so extension only, which is used
12285     # when both runtime linking and shared linking is enabled.
12286     # Unfortunately, runtime linking may impact performance, so we do
12287     # not want this to be the default eventually. Also, we use the
12288     # versioned .so libs for executables only if there is the -brtl
12289     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12290     # To allow for filename-based versioning support, we need to create
12291     # libNAME.so.V as an archive file, containing:
12292     # *) an Import File, referring to the versioned filename of the
12293     #    archive as well as the shared archive member, telling the
12294     #    bitwidth (32 or 64) of that shared object, and providing the
12295     #    list of exported symbols of that shared object, eventually
12296     #    decorated with the 'weak' keyword
12297     # *) the shared object with the F_LOADONLY flag set, to really avoid
12298     #    it being seen by the linker.
12299     # At run time we better use the real file rather than another symlink,
12300     # but for link time we create the symlink libNAME.so -> libNAME.so.V
12301
12302     case $with_aix_soname,$aix_use_runtimelinking in
12303     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12304     # soname into executable. Probably we can add versioning support to
12305     # collect2, so additional links can be useful in future.
12306     aix,yes) # traditional libtool
12307       dynamic_linker='AIX unversionable lib.so'
12308       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12309       # instead of lib<name>.a to let people know that these are not
12310       # typical AIX shared libraries.
12311       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12312       ;;
12313     aix,no) # traditional AIX only
12314       dynamic_linker='AIX lib.a(lib.so.V)'
12315       # We preserve .a as extension for shared libraries through AIX4.2
12316       # and later when we are not doing run time linking.
12317       library_names_spec='$libname$release.a $libname.a'
12318       soname_spec='$libname$release$shared_ext$major'
12319       ;;
12320     svr4,*) # full svr4 only
12321       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12322       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12323       # We do not specify a path in Import Files, so LIBPATH fires.
12324       shlibpath_overrides_runpath=yes
12325       ;;
12326     *,yes) # both, prefer svr4
12327       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12328       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12329       # unpreferred sharedlib libNAME.a needs extra handling
12330       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12331       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12332       # We do not specify a path in Import Files, so LIBPATH fires.
12333       shlibpath_overrides_runpath=yes
12334       ;;
12335     *,no) # both, prefer aix
12336       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12337       library_names_spec='$libname$release.a $libname.a'
12338       soname_spec='$libname$release$shared_ext$major'
12339       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12340       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12341       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12342       ;;
12343     esac
12344     shlibpath_var=LIBPATH
12345   fi
12346   ;;
12347
12348 amigaos*)
12349   case $host_cpu in
12350   powerpc)
12351     # Since July 2007 AmigaOS4 officially supports .so libraries.
12352     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12353     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12354     ;;
12355   m68k)
12356     library_names_spec='$libname.ixlibrary $libname.a'
12357     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12358     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12359     ;;
12360   esac
12361   ;;
12362
12363 beos*)
12364   library_names_spec='$libname$shared_ext'
12365   dynamic_linker="$host_os ld.so"
12366   shlibpath_var=LIBRARY_PATH
12367   ;;
12368
12369 bsdi[45]*)
12370   version_type=linux # correct to gnu/linux during the next big refactor
12371   need_version=no
12372   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12373   soname_spec='$libname$release$shared_ext$major'
12374   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12375   shlibpath_var=LD_LIBRARY_PATH
12376   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12377   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12378   # the default ld.so.conf also contains /usr/contrib/lib and
12379   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12380   # libtool to hard-code these into programs
12381   ;;
12382
12383 cygwin* | mingw* | pw32* | cegcc*)
12384   version_type=windows
12385   shrext_cmds=.dll
12386   need_version=no
12387   need_lib_prefix=no
12388
12389   case $GCC,$cc_basename in
12390   yes,*)
12391     # gcc
12392     library_names_spec='$libname.dll.a'
12393     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12394     postinstall_cmds='base_file=`basename \$file`~
12395       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12396       dldir=$destdir/`dirname \$dlpath`~
12397       test -d \$dldir || mkdir -p \$dldir~
12398       $install_prog $dir/$dlname \$dldir/$dlname~
12399       chmod a+x \$dldir/$dlname~
12400       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12401         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12402       fi'
12403     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12404       dlpath=$dir/\$dldll~
12405        $RM \$dlpath'
12406     shlibpath_overrides_runpath=yes
12407
12408     case $host_os in
12409     cygwin*)
12410       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12411       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12412
12413       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12414       ;;
12415     mingw* | cegcc*)
12416       # MinGW DLLs use traditional 'lib' prefix
12417       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12418       ;;
12419     pw32*)
12420       # pw32 DLLs use 'pw' prefix rather than 'lib'
12421       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12422       ;;
12423     esac
12424     dynamic_linker='Win32 ld.exe'
12425     ;;
12426
12427   *,cl*)
12428     # Native MSVC
12429     libname_spec='$name'
12430     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12431     library_names_spec='$libname.dll.lib'
12432
12433     case $build_os in
12434     mingw*)
12435       sys_lib_search_path_spec=
12436       lt_save_ifs=$IFS
12437       IFS=';'
12438       for lt_path in $LIB
12439       do
12440         IFS=$lt_save_ifs
12441         # Let DOS variable expansion print the short 8.3 style file name.
12442         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12443         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12444       done
12445       IFS=$lt_save_ifs
12446       # Convert to MSYS style.
12447       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12448       ;;
12449     cygwin*)
12450       # Convert to unix form, then to dos form, then back to unix form
12451       # but this time dos style (no spaces!) so that the unix form looks
12452       # like /cygdrive/c/PROGRA~1:/cygdr...
12453       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12454       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12455       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12456       ;;
12457     *)
12458       sys_lib_search_path_spec=$LIB
12459       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12460         # It is most probably a Windows format PATH.
12461         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12462       else
12463         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12464       fi
12465       # FIXME: find the short name or the path components, as spaces are
12466       # common. (e.g. "Program Files" -> "PROGRA~1")
12467       ;;
12468     esac
12469
12470     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12471     postinstall_cmds='base_file=`basename \$file`~
12472       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12473       dldir=$destdir/`dirname \$dlpath`~
12474       test -d \$dldir || mkdir -p \$dldir~
12475       $install_prog $dir/$dlname \$dldir/$dlname'
12476     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12477       dlpath=$dir/\$dldll~
12478        $RM \$dlpath'
12479     shlibpath_overrides_runpath=yes
12480     dynamic_linker='Win32 link.exe'
12481     ;;
12482
12483   *)
12484     # Assume MSVC wrapper
12485     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12486     dynamic_linker='Win32 ld.exe'
12487     ;;
12488   esac
12489   # FIXME: first we should search . and the directory the executable is in
12490   shlibpath_var=PATH
12491   ;;
12492
12493 darwin* | rhapsody*)
12494   dynamic_linker="$host_os dyld"
12495   version_type=darwin
12496   need_lib_prefix=no
12497   need_version=no
12498   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12499   soname_spec='$libname$release$major$shared_ext'
12500   shlibpath_overrides_runpath=yes
12501   shlibpath_var=DYLD_LIBRARY_PATH
12502   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12503
12504   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12505   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12506   ;;
12507
12508 dgux*)
12509   version_type=linux # correct to gnu/linux during the next big refactor
12510   need_lib_prefix=no
12511   need_version=no
12512   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12513   soname_spec='$libname$release$shared_ext$major'
12514   shlibpath_var=LD_LIBRARY_PATH
12515   ;;
12516
12517 freebsd* | dragonfly*)
12518   # DragonFly does not have aout.  When/if they implement a new
12519   # versioning mechanism, adjust this.
12520   if test -x /usr/bin/objformat; then
12521     objformat=`/usr/bin/objformat`
12522   else
12523     case $host_os in
12524     freebsd[23].*) objformat=aout ;;
12525     *) objformat=elf ;;
12526     esac
12527   fi
12528   version_type=freebsd-$objformat
12529   case $version_type in
12530     freebsd-elf*)
12531       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12532       soname_spec='$libname$release$shared_ext$major'
12533       need_version=no
12534       need_lib_prefix=no
12535       ;;
12536     freebsd-*)
12537       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12538       need_version=yes
12539       ;;
12540   esac
12541   shlibpath_var=LD_LIBRARY_PATH
12542   case $host_os in
12543   freebsd2.*)
12544     shlibpath_overrides_runpath=yes
12545     ;;
12546   freebsd3.[01]* | freebsdelf3.[01]*)
12547     shlibpath_overrides_runpath=yes
12548     hardcode_into_libs=yes
12549     ;;
12550   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12551   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12552     shlibpath_overrides_runpath=no
12553     hardcode_into_libs=yes
12554     ;;
12555   *) # from 4.6 on, and DragonFly
12556     shlibpath_overrides_runpath=yes
12557     hardcode_into_libs=yes
12558     ;;
12559   esac
12560   ;;
12561
12562 haiku*)
12563   version_type=linux # correct to gnu/linux during the next big refactor
12564   need_lib_prefix=no
12565   need_version=no
12566   dynamic_linker="$host_os runtime_loader"
12567   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12568   soname_spec='$libname$release$shared_ext$major'
12569   shlibpath_var=LIBRARY_PATH
12570   shlibpath_overrides_runpath=no
12571   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12572   hardcode_into_libs=yes
12573   ;;
12574
12575 hpux9* | hpux10* | hpux11*)
12576   # Give a soname corresponding to the major version so that dld.sl refuses to
12577   # link against other versions.
12578   version_type=sunos
12579   need_lib_prefix=no
12580   need_version=no
12581   case $host_cpu in
12582   ia64*)
12583     shrext_cmds='.so'
12584     hardcode_into_libs=yes
12585     dynamic_linker="$host_os dld.so"
12586     shlibpath_var=LD_LIBRARY_PATH
12587     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12588     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12589     soname_spec='$libname$release$shared_ext$major'
12590     if test 32 = "$HPUX_IA64_MODE"; then
12591       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12592       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12593     else
12594       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12595       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12596     fi
12597     ;;
12598   hppa*64*)
12599     shrext_cmds='.sl'
12600     hardcode_into_libs=yes
12601     dynamic_linker="$host_os dld.sl"
12602     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12603     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12604     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12605     soname_spec='$libname$release$shared_ext$major'
12606     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12607     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12608     ;;
12609   *)
12610     shrext_cmds='.sl'
12611     dynamic_linker="$host_os dld.sl"
12612     shlibpath_var=SHLIB_PATH
12613     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12614     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12615     soname_spec='$libname$release$shared_ext$major'
12616     ;;
12617   esac
12618   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12619   postinstall_cmds='chmod 555 $lib'
12620   # or fails outright, so override atomically:
12621   install_override_mode=555
12622   ;;
12623
12624 interix[3-9]*)
12625   version_type=linux # correct to gnu/linux during the next big refactor
12626   need_lib_prefix=no
12627   need_version=no
12628   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12629   soname_spec='$libname$release$shared_ext$major'
12630   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12631   shlibpath_var=LD_LIBRARY_PATH
12632   shlibpath_overrides_runpath=no
12633   hardcode_into_libs=yes
12634   ;;
12635
12636 irix5* | irix6* | nonstopux*)
12637   case $host_os in
12638     nonstopux*) version_type=nonstopux ;;
12639     *)
12640         if test yes = "$lt_cv_prog_gnu_ld"; then
12641                 version_type=linux # correct to gnu/linux during the next big refactor
12642         else
12643                 version_type=irix
12644         fi ;;
12645   esac
12646   need_lib_prefix=no
12647   need_version=no
12648   soname_spec='$libname$release$shared_ext$major'
12649   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12650   case $host_os in
12651   irix5* | nonstopux*)
12652     libsuff= shlibsuff=
12653     ;;
12654   *)
12655     case $LD in # libtool.m4 will add one of these switches to LD
12656     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12657       libsuff= shlibsuff= libmagic=32-bit;;
12658     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12659       libsuff=32 shlibsuff=N32 libmagic=N32;;
12660     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12661       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12662     *) libsuff= shlibsuff= libmagic=never-match;;
12663     esac
12664     ;;
12665   esac
12666   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12667   shlibpath_overrides_runpath=no
12668   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12669   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12670   hardcode_into_libs=yes
12671   ;;
12672
12673 # No shared lib support for Linux oldld, aout, or coff.
12674 linux*oldld* | linux*aout* | linux*coff*)
12675   dynamic_linker=no
12676   ;;
12677
12678 linux*android*)
12679   version_type=none # Android doesn't support versioned libraries.
12680   need_lib_prefix=no
12681   need_version=no
12682   library_names_spec='$libname$release$shared_ext'
12683   soname_spec='$libname$release$shared_ext'
12684   finish_cmds=
12685   shlibpath_var=LD_LIBRARY_PATH
12686   shlibpath_overrides_runpath=yes
12687
12688   # This implies no fast_install, which is unacceptable.
12689   # Some rework will be needed to allow for fast_install
12690   # before this can be enabled.
12691   hardcode_into_libs=yes
12692
12693   dynamic_linker='Android linker'
12694   # Don't embed -rpath directories since the linker doesn't support them.
12695   hardcode_libdir_flag_spec='-L$libdir'
12696   ;;
12697
12698 # This must be glibc/ELF.
12699 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12700   version_type=linux # correct to gnu/linux during the next big refactor
12701   need_lib_prefix=no
12702   need_version=no
12703   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12704   soname_spec='$libname$release$shared_ext$major'
12705   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12706   shlibpath_var=LD_LIBRARY_PATH
12707   shlibpath_overrides_runpath=no
12708
12709   # Some binutils ld are patched to set DT_RUNPATH
12710   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12711   $as_echo_n "(cached) " >&6
12712 else
12713   lt_cv_shlibpath_overrides_runpath=no
12714     save_LDFLAGS=$LDFLAGS
12715     save_libdir=$libdir
12716     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12717          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12718     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h.  */
12720
12721 int
12722 main ()
12723 {
12724
12725   ;
12726   return 0;
12727 }
12728 _ACEOF
12729 if ac_fn_c_try_link "$LINENO"; then :
12730   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12731   lt_cv_shlibpath_overrides_runpath=yes
12732 fi
12733 fi
12734 rm -f core conftest.err conftest.$ac_objext \
12735     conftest$ac_exeext conftest.$ac_ext
12736     LDFLAGS=$save_LDFLAGS
12737     libdir=$save_libdir
12738
12739 fi
12740
12741   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12742
12743   # This implies no fast_install, which is unacceptable.
12744   # Some rework will be needed to allow for fast_install
12745   # before this can be enabled.
12746   hardcode_into_libs=yes
12747
12748   # Ideally, we could use ldconfig to report *all* directores which are
12749   # searched for libraries, however this is still not possible.  Aside from not
12750   # being certain /sbin/ldconfig is available, command
12751   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12752   # even though it is searched at run-time.  Try to do the best guess by
12753   # appending ld.so.conf contents (and includes) to the search path.
12754   if test -f /etc/ld.so.conf; then
12755     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12756     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12757   fi
12758
12759   # We used to test for /lib/ld.so.1 and disable shared libraries on
12760   # powerpc, because MkLinux only supported shared libraries with the
12761   # GNU dynamic linker.  Since this was broken with cross compilers,
12762   # most powerpc-linux boxes support dynamic linking these days and
12763   # people can always --disable-shared, the test was removed, and we
12764   # assume the GNU/Linux dynamic linker is in use.
12765   dynamic_linker='GNU/Linux ld.so'
12766   ;;
12767
12768 netbsdelf*-gnu)
12769   version_type=linux
12770   need_lib_prefix=no
12771   need_version=no
12772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12773   soname_spec='${libname}${release}${shared_ext}$major'
12774   shlibpath_var=LD_LIBRARY_PATH
12775   shlibpath_overrides_runpath=no
12776   hardcode_into_libs=yes
12777   dynamic_linker='NetBSD ld.elf_so'
12778   ;;
12779
12780 netbsd*)
12781   version_type=sunos
12782   need_lib_prefix=no
12783   need_version=no
12784   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12785     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12786     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12787     dynamic_linker='NetBSD (a.out) ld.so'
12788   else
12789     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12790     soname_spec='$libname$release$shared_ext$major'
12791     dynamic_linker='NetBSD ld.elf_so'
12792   fi
12793   shlibpath_var=LD_LIBRARY_PATH
12794   shlibpath_overrides_runpath=yes
12795   hardcode_into_libs=yes
12796   ;;
12797
12798 newsos6)
12799   version_type=linux # correct to gnu/linux during the next big refactor
12800   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12801   shlibpath_var=LD_LIBRARY_PATH
12802   shlibpath_overrides_runpath=yes
12803   ;;
12804
12805 *nto* | *qnx*)
12806   version_type=qnx
12807   need_lib_prefix=no
12808   need_version=no
12809   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12810   soname_spec='$libname$release$shared_ext$major'
12811   shlibpath_var=LD_LIBRARY_PATH
12812   shlibpath_overrides_runpath=no
12813   hardcode_into_libs=yes
12814   dynamic_linker='ldqnx.so'
12815   ;;
12816
12817 openbsd* | bitrig*)
12818   version_type=sunos
12819   sys_lib_dlsearch_path_spec=/usr/lib
12820   need_lib_prefix=no
12821   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12822     need_version=no
12823   else
12824     need_version=yes
12825   fi
12826   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12827   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12828   shlibpath_var=LD_LIBRARY_PATH
12829   shlibpath_overrides_runpath=yes
12830   ;;
12831
12832 os2*)
12833   libname_spec='$name'
12834   version_type=windows
12835   shrext_cmds=.dll
12836   need_version=no
12837   need_lib_prefix=no
12838   # OS/2 can only load a DLL with a base name of 8 characters or less.
12839   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12840     v=$($ECHO $release$versuffix | tr -d .-);
12841     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12842     $ECHO $n$v`$shared_ext'
12843   library_names_spec='${libname}_dll.$libext'
12844   dynamic_linker='OS/2 ld.exe'
12845   shlibpath_var=BEGINLIBPATH
12846   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12847   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12848   postinstall_cmds='base_file=`basename \$file`~
12849     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12850     dldir=$destdir/`dirname \$dlpath`~
12851     test -d \$dldir || mkdir -p \$dldir~
12852     $install_prog $dir/$dlname \$dldir/$dlname~
12853     chmod a+x \$dldir/$dlname~
12854     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12855       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12856     fi'
12857   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12858     dlpath=$dir/\$dldll~
12859     $RM \$dlpath'
12860   ;;
12861
12862 osf3* | osf4* | osf5*)
12863   version_type=osf
12864   need_lib_prefix=no
12865   need_version=no
12866   soname_spec='$libname$release$shared_ext$major'
12867   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12868   shlibpath_var=LD_LIBRARY_PATH
12869   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12870   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12871   ;;
12872
12873 rdos*)
12874   dynamic_linker=no
12875   ;;
12876
12877 solaris*)
12878   version_type=linux # correct to gnu/linux during the next big refactor
12879   need_lib_prefix=no
12880   need_version=no
12881   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12882   soname_spec='$libname$release$shared_ext$major'
12883   shlibpath_var=LD_LIBRARY_PATH
12884   shlibpath_overrides_runpath=yes
12885   hardcode_into_libs=yes
12886   # ldd complains unless libraries are executable
12887   postinstall_cmds='chmod +x $lib'
12888   ;;
12889
12890 sunos4*)
12891   version_type=sunos
12892   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12893   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12894   shlibpath_var=LD_LIBRARY_PATH
12895   shlibpath_overrides_runpath=yes
12896   if test yes = "$with_gnu_ld"; then
12897     need_lib_prefix=no
12898   fi
12899   need_version=yes
12900   ;;
12901
12902 sysv4 | sysv4.3*)
12903   version_type=linux # correct to gnu/linux during the next big refactor
12904   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12905   soname_spec='$libname$release$shared_ext$major'
12906   shlibpath_var=LD_LIBRARY_PATH
12907   case $host_vendor in
12908     sni)
12909       shlibpath_overrides_runpath=no
12910       need_lib_prefix=no
12911       runpath_var=LD_RUN_PATH
12912       ;;
12913     siemens)
12914       need_lib_prefix=no
12915       ;;
12916     motorola)
12917       need_lib_prefix=no
12918       need_version=no
12919       shlibpath_overrides_runpath=no
12920       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12921       ;;
12922   esac
12923   ;;
12924
12925 sysv4*MP*)
12926   if test -d /usr/nec; then
12927     version_type=linux # correct to gnu/linux during the next big refactor
12928     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12929     soname_spec='$libname$shared_ext.$major'
12930     shlibpath_var=LD_LIBRARY_PATH
12931   fi
12932   ;;
12933
12934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12935   version_type=sco
12936   need_lib_prefix=no
12937   need_version=no
12938   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12939   soname_spec='$libname$release$shared_ext$major'
12940   shlibpath_var=LD_LIBRARY_PATH
12941   shlibpath_overrides_runpath=yes
12942   hardcode_into_libs=yes
12943   if test yes = "$with_gnu_ld"; then
12944     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12945   else
12946     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12947     case $host_os in
12948       sco3.2v5*)
12949         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12950         ;;
12951     esac
12952   fi
12953   sys_lib_dlsearch_path_spec='/usr/lib'
12954   ;;
12955
12956 tpf*)
12957   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12958   version_type=linux # correct to gnu/linux during the next big refactor
12959   need_lib_prefix=no
12960   need_version=no
12961   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12962   shlibpath_var=LD_LIBRARY_PATH
12963   shlibpath_overrides_runpath=no
12964   hardcode_into_libs=yes
12965   ;;
12966
12967 uts4*)
12968   version_type=linux # correct to gnu/linux during the next big refactor
12969   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12970   soname_spec='$libname$release$shared_ext$major'
12971   shlibpath_var=LD_LIBRARY_PATH
12972   ;;
12973
12974 *)
12975   dynamic_linker=no
12976   ;;
12977 esac
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12979 $as_echo "$dynamic_linker" >&6; }
12980 test no = "$dynamic_linker" && can_build_shared=no
12981
12982 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12983 if test yes = "$GCC"; then
12984   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12985 fi
12986
12987 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12988   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12989 fi
12990
12991 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12992   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12993 fi
12994
12995 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12996 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12997
12998 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12999 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13000
13001 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13002 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13101 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13102 hardcode_action=
13103 if test -n "$hardcode_libdir_flag_spec" ||
13104    test -n "$runpath_var" ||
13105    test yes = "$hardcode_automatic"; then
13106
13107   # We can hardcode non-existent directories.
13108   if test no != "$hardcode_direct" &&
13109      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13110      # have to relink, otherwise we might link with an installed library
13111      # when we should be linking with a yet-to-be-installed one
13112      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13113      test no != "$hardcode_minus_L"; then
13114     # Linking always hardcodes the temporary library directory.
13115     hardcode_action=relink
13116   else
13117     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13118     hardcode_action=immediate
13119   fi
13120 else
13121   # We cannot hardcode anything, or else we can only hardcode existing
13122   # directories.
13123   hardcode_action=unsupported
13124 fi
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13126 $as_echo "$hardcode_action" >&6; }
13127
13128 if test relink = "$hardcode_action" ||
13129    test yes = "$inherit_rpath"; then
13130   # Fast installation is not supported
13131   enable_fast_install=no
13132 elif test yes = "$shlibpath_overrides_runpath" ||
13133      test no = "$enable_shared"; then
13134   # Fast installation is not necessary
13135   enable_fast_install=needless
13136 fi
13137
13138
13139
13140
13141
13142
13143   if test yes != "$enable_dlopen"; then
13144   enable_dlopen=unknown
13145   enable_dlopen_self=unknown
13146   enable_dlopen_self_static=unknown
13147 else
13148   lt_cv_dlopen=no
13149   lt_cv_dlopen_libs=
13150
13151   case $host_os in
13152   beos*)
13153     lt_cv_dlopen=load_add_on
13154     lt_cv_dlopen_libs=
13155     lt_cv_dlopen_self=yes
13156     ;;
13157
13158   mingw* | pw32* | cegcc*)
13159     lt_cv_dlopen=LoadLibrary
13160     lt_cv_dlopen_libs=
13161     ;;
13162
13163   cygwin*)
13164     lt_cv_dlopen=dlopen
13165     lt_cv_dlopen_libs=
13166     ;;
13167
13168   darwin*)
13169     # if libdl is installed we need to link against it
13170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13171 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13172 if ${ac_cv_lib_dl_dlopen+:} false; then :
13173   $as_echo_n "(cached) " >&6
13174 else
13175   ac_check_lib_save_LIBS=$LIBS
13176 LIBS="-ldl  $LIBS"
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h.  */
13179
13180 /* Override any GCC internal prototype to avoid an error.
13181    Use char because int might match the return type of a GCC
13182    builtin and then its argument prototype would still apply.  */
13183 #ifdef __cplusplus
13184 extern "C"
13185 #endif
13186 char dlopen ();
13187 int
13188 main ()
13189 {
13190 return dlopen ();
13191   ;
13192   return 0;
13193 }
13194 _ACEOF
13195 if ac_fn_c_try_link "$LINENO"; then :
13196   ac_cv_lib_dl_dlopen=yes
13197 else
13198   ac_cv_lib_dl_dlopen=no
13199 fi
13200 rm -f core conftest.err conftest.$ac_objext \
13201     conftest$ac_exeext conftest.$ac_ext
13202 LIBS=$ac_check_lib_save_LIBS
13203 fi
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13205 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13206 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13207   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13208 else
13209
13210     lt_cv_dlopen=dyld
13211     lt_cv_dlopen_libs=
13212     lt_cv_dlopen_self=yes
13213
13214 fi
13215
13216     ;;
13217
13218   tpf*)
13219     # Don't try to run any link tests for TPF.  We know it's impossible
13220     # because TPF is a cross-compiler, and we know how we open DSOs.
13221     lt_cv_dlopen=dlopen
13222     lt_cv_dlopen_libs=
13223     lt_cv_dlopen_self=no
13224     ;;
13225
13226   *)
13227     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13228 if test "x$ac_cv_func_shl_load" = xyes; then :
13229   lt_cv_dlopen=shl_load
13230 else
13231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13232 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13233 if ${ac_cv_lib_dld_shl_load+:} false; then :
13234   $as_echo_n "(cached) " >&6
13235 else
13236   ac_check_lib_save_LIBS=$LIBS
13237 LIBS="-ldld  $LIBS"
13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h.  */
13240
13241 /* Override any GCC internal prototype to avoid an error.
13242    Use char because int might match the return type of a GCC
13243    builtin and then its argument prototype would still apply.  */
13244 #ifdef __cplusplus
13245 extern "C"
13246 #endif
13247 char shl_load ();
13248 int
13249 main ()
13250 {
13251 return shl_load ();
13252   ;
13253   return 0;
13254 }
13255 _ACEOF
13256 if ac_fn_c_try_link "$LINENO"; then :
13257   ac_cv_lib_dld_shl_load=yes
13258 else
13259   ac_cv_lib_dld_shl_load=no
13260 fi
13261 rm -f core conftest.err conftest.$ac_objext \
13262     conftest$ac_exeext conftest.$ac_ext
13263 LIBS=$ac_check_lib_save_LIBS
13264 fi
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13266 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13267 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13268   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13269 else
13270   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13271 if test "x$ac_cv_func_dlopen" = xyes; then :
13272   lt_cv_dlopen=dlopen
13273 else
13274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13275 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13276 if ${ac_cv_lib_dl_dlopen+:} false; then :
13277   $as_echo_n "(cached) " >&6
13278 else
13279   ac_check_lib_save_LIBS=$LIBS
13280 LIBS="-ldl  $LIBS"
13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282 /* end confdefs.h.  */
13283
13284 /* Override any GCC internal prototype to avoid an error.
13285    Use char because int might match the return type of a GCC
13286    builtin and then its argument prototype would still apply.  */
13287 #ifdef __cplusplus
13288 extern "C"
13289 #endif
13290 char dlopen ();
13291 int
13292 main ()
13293 {
13294 return dlopen ();
13295   ;
13296   return 0;
13297 }
13298 _ACEOF
13299 if ac_fn_c_try_link "$LINENO"; then :
13300   ac_cv_lib_dl_dlopen=yes
13301 else
13302   ac_cv_lib_dl_dlopen=no
13303 fi
13304 rm -f core conftest.err conftest.$ac_objext \
13305     conftest$ac_exeext conftest.$ac_ext
13306 LIBS=$ac_check_lib_save_LIBS
13307 fi
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13309 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13310 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13311   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13312 else
13313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13314 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13315 if ${ac_cv_lib_svld_dlopen+:} false; then :
13316   $as_echo_n "(cached) " >&6
13317 else
13318   ac_check_lib_save_LIBS=$LIBS
13319 LIBS="-lsvld  $LIBS"
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h.  */
13322
13323 /* Override any GCC internal prototype to avoid an error.
13324    Use char because int might match the return type of a GCC
13325    builtin and then its argument prototype would still apply.  */
13326 #ifdef __cplusplus
13327 extern "C"
13328 #endif
13329 char dlopen ();
13330 int
13331 main ()
13332 {
13333 return dlopen ();
13334   ;
13335   return 0;
13336 }
13337 _ACEOF
13338 if ac_fn_c_try_link "$LINENO"; then :
13339   ac_cv_lib_svld_dlopen=yes
13340 else
13341   ac_cv_lib_svld_dlopen=no
13342 fi
13343 rm -f core conftest.err conftest.$ac_objext \
13344     conftest$ac_exeext conftest.$ac_ext
13345 LIBS=$ac_check_lib_save_LIBS
13346 fi
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13348 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13349 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13350   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13351 else
13352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13353 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13354 if ${ac_cv_lib_dld_dld_link+:} false; then :
13355   $as_echo_n "(cached) " >&6
13356 else
13357   ac_check_lib_save_LIBS=$LIBS
13358 LIBS="-ldld  $LIBS"
13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h.  */
13361
13362 /* Override any GCC internal prototype to avoid an error.
13363    Use char because int might match the return type of a GCC
13364    builtin and then its argument prototype would still apply.  */
13365 #ifdef __cplusplus
13366 extern "C"
13367 #endif
13368 char dld_link ();
13369 int
13370 main ()
13371 {
13372 return dld_link ();
13373   ;
13374   return 0;
13375 }
13376 _ACEOF
13377 if ac_fn_c_try_link "$LINENO"; then :
13378   ac_cv_lib_dld_dld_link=yes
13379 else
13380   ac_cv_lib_dld_dld_link=no
13381 fi
13382 rm -f core conftest.err conftest.$ac_objext \
13383     conftest$ac_exeext conftest.$ac_ext
13384 LIBS=$ac_check_lib_save_LIBS
13385 fi
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13387 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13388 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13389   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13390 fi
13391
13392
13393 fi
13394
13395
13396 fi
13397
13398
13399 fi
13400
13401
13402 fi
13403
13404
13405 fi
13406
13407     ;;
13408   esac
13409
13410   if test no = "$lt_cv_dlopen"; then
13411     enable_dlopen=no
13412   else
13413     enable_dlopen=yes
13414   fi
13415
13416   case $lt_cv_dlopen in
13417   dlopen)
13418     save_CPPFLAGS=$CPPFLAGS
13419     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13420
13421     save_LDFLAGS=$LDFLAGS
13422     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13423
13424     save_LIBS=$LIBS
13425     LIBS="$lt_cv_dlopen_libs $LIBS"
13426
13427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13428 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13429 if ${lt_cv_dlopen_self+:} false; then :
13430   $as_echo_n "(cached) " >&6
13431 else
13432           if test yes = "$cross_compiling"; then :
13433   lt_cv_dlopen_self=cross
13434 else
13435   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13436   lt_status=$lt_dlunknown
13437   cat > conftest.$ac_ext <<_LT_EOF
13438 #line $LINENO "configure"
13439 #include "confdefs.h"
13440
13441 #if HAVE_DLFCN_H
13442 #include <dlfcn.h>
13443 #endif
13444
13445 #include <stdio.h>
13446
13447 #ifdef RTLD_GLOBAL
13448 #  define LT_DLGLOBAL           RTLD_GLOBAL
13449 #else
13450 #  ifdef DL_GLOBAL
13451 #    define LT_DLGLOBAL         DL_GLOBAL
13452 #  else
13453 #    define LT_DLGLOBAL         0
13454 #  endif
13455 #endif
13456
13457 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13458    find out it does not work in some platform. */
13459 #ifndef LT_DLLAZY_OR_NOW
13460 #  ifdef RTLD_LAZY
13461 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13462 #  else
13463 #    ifdef DL_LAZY
13464 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13465 #    else
13466 #      ifdef RTLD_NOW
13467 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13468 #      else
13469 #        ifdef DL_NOW
13470 #          define LT_DLLAZY_OR_NOW      DL_NOW
13471 #        else
13472 #          define LT_DLLAZY_OR_NOW      0
13473 #        endif
13474 #      endif
13475 #    endif
13476 #  endif
13477 #endif
13478
13479 /* When -fvisibility=hidden is used, assume the code has been annotated
13480    correspondingly for the symbols needed.  */
13481 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13482 int fnord () __attribute__((visibility("default")));
13483 #endif
13484
13485 int fnord () { return 42; }
13486 int main ()
13487 {
13488   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13489   int status = $lt_dlunknown;
13490
13491   if (self)
13492     {
13493       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13494       else
13495         {
13496           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13497           else puts (dlerror ());
13498         }
13499       /* dlclose (self); */
13500     }
13501   else
13502     puts (dlerror ());
13503
13504   return status;
13505 }
13506 _LT_EOF
13507   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13508   (eval $ac_link) 2>&5
13509   ac_status=$?
13510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13511   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13512     (./conftest; exit; ) >&5 2>/dev/null
13513     lt_status=$?
13514     case x$lt_status in
13515       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13516       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13517       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13518     esac
13519   else :
13520     # compilation failed
13521     lt_cv_dlopen_self=no
13522   fi
13523 fi
13524 rm -fr conftest*
13525
13526
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13529 $as_echo "$lt_cv_dlopen_self" >&6; }
13530
13531     if test yes = "$lt_cv_dlopen_self"; then
13532       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13533       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13534 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13535 if ${lt_cv_dlopen_self_static+:} false; then :
13536   $as_echo_n "(cached) " >&6
13537 else
13538           if test yes = "$cross_compiling"; then :
13539   lt_cv_dlopen_self_static=cross
13540 else
13541   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13542   lt_status=$lt_dlunknown
13543   cat > conftest.$ac_ext <<_LT_EOF
13544 #line $LINENO "configure"
13545 #include "confdefs.h"
13546
13547 #if HAVE_DLFCN_H
13548 #include <dlfcn.h>
13549 #endif
13550
13551 #include <stdio.h>
13552
13553 #ifdef RTLD_GLOBAL
13554 #  define LT_DLGLOBAL           RTLD_GLOBAL
13555 #else
13556 #  ifdef DL_GLOBAL
13557 #    define LT_DLGLOBAL         DL_GLOBAL
13558 #  else
13559 #    define LT_DLGLOBAL         0
13560 #  endif
13561 #endif
13562
13563 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13564    find out it does not work in some platform. */
13565 #ifndef LT_DLLAZY_OR_NOW
13566 #  ifdef RTLD_LAZY
13567 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13568 #  else
13569 #    ifdef DL_LAZY
13570 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13571 #    else
13572 #      ifdef RTLD_NOW
13573 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13574 #      else
13575 #        ifdef DL_NOW
13576 #          define LT_DLLAZY_OR_NOW      DL_NOW
13577 #        else
13578 #          define LT_DLLAZY_OR_NOW      0
13579 #        endif
13580 #      endif
13581 #    endif
13582 #  endif
13583 #endif
13584
13585 /* When -fvisibility=hidden is used, assume the code has been annotated
13586    correspondingly for the symbols needed.  */
13587 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13588 int fnord () __attribute__((visibility("default")));
13589 #endif
13590
13591 int fnord () { return 42; }
13592 int main ()
13593 {
13594   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13595   int status = $lt_dlunknown;
13596
13597   if (self)
13598     {
13599       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13600       else
13601         {
13602           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13603           else puts (dlerror ());
13604         }
13605       /* dlclose (self); */
13606     }
13607   else
13608     puts (dlerror ());
13609
13610   return status;
13611 }
13612 _LT_EOF
13613   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13614   (eval $ac_link) 2>&5
13615   ac_status=$?
13616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13617   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13618     (./conftest; exit; ) >&5 2>/dev/null
13619     lt_status=$?
13620     case x$lt_status in
13621       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13622       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13623       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13624     esac
13625   else :
13626     # compilation failed
13627     lt_cv_dlopen_self_static=no
13628   fi
13629 fi
13630 rm -fr conftest*
13631
13632
13633 fi
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13635 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13636     fi
13637
13638     CPPFLAGS=$save_CPPFLAGS
13639     LDFLAGS=$save_LDFLAGS
13640     LIBS=$save_LIBS
13641     ;;
13642   esac
13643
13644   case $lt_cv_dlopen_self in
13645   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13646   *) enable_dlopen_self=unknown ;;
13647   esac
13648
13649   case $lt_cv_dlopen_self_static in
13650   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13651   *) enable_dlopen_self_static=unknown ;;
13652   esac
13653 fi
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671 striplib=
13672 old_striplib=
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13674 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13675 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13676   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13677   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13679 $as_echo "yes" >&6; }
13680 else
13681 # FIXME - insert some real tests, host_os isn't really good enough
13682   case $host_os in
13683   darwin*)
13684     if test -n "$STRIP"; then
13685       striplib="$STRIP -x"
13686       old_striplib="$STRIP -S"
13687       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13688 $as_echo "yes" >&6; }
13689     else
13690       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691 $as_echo "no" >&6; }
13692     fi
13693     ;;
13694   *)
13695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696 $as_echo "no" >&6; }
13697     ;;
13698   esac
13699 fi
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712   # Report what library types will actually be built
13713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13714 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13716 $as_echo "$can_build_shared" >&6; }
13717
13718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13719 $as_echo_n "checking whether to build shared libraries... " >&6; }
13720   test no = "$can_build_shared" && enable_shared=no
13721
13722   # On AIX, shared libraries and static libraries use the same namespace, and
13723   # are all built from PIC.
13724   case $host_os in
13725   aix3*)
13726     test yes = "$enable_shared" && enable_static=no
13727     if test -n "$RANLIB"; then
13728       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13729       postinstall_cmds='$RANLIB $lib'
13730     fi
13731     ;;
13732
13733   aix[4-9]*)
13734     if test ia64 != "$host_cpu"; then
13735       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13736       yes,aix,yes) ;;                   # shared object as lib.so file only
13737       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13738       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13739       esac
13740     fi
13741     ;;
13742   esac
13743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13744 $as_echo "$enable_shared" >&6; }
13745
13746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13747 $as_echo_n "checking whether to build static libraries... " >&6; }
13748   # Make sure either enable_shared or enable_static is yes.
13749   test yes = "$enable_shared" || enable_static=yes
13750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13751 $as_echo "$enable_static" >&6; }
13752
13753
13754
13755
13756 fi
13757 ac_ext=c
13758 ac_cpp='$CPP $CPPFLAGS'
13759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13762
13763 CC=$lt_save_CC
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779         ac_config_commands="$ac_config_commands libtool"
13780
13781
13782
13783
13784 # Only expand once:
13785
13786
13787
13788 ac_config_headers="$ac_config_headers config.h"
13789
13790
13791
13792 # Define below date and version information to be put into man pages etc.
13793 date=2018-04-05
13794 roff_version=`echo 2.8.3 | sed 's/-/\\-/g'`
13795
13796 # Explicitly check for pkg-config early on, since otherwise the conditional
13797 # call in MAN_ARG_SYSTEMDTMPFILESDIR is problematic.
13798
13799
13800
13801
13802
13803
13804
13805 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13806         if test -n "$ac_tool_prefix"; then
13807   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13808 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13810 $as_echo_n "checking for $ac_word... " >&6; }
13811 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13812   $as_echo_n "(cached) " >&6
13813 else
13814   case $PKG_CONFIG in
13815   [\\/]* | ?:[\\/]*)
13816   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13817   ;;
13818   *)
13819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13820 for as_dir in $PATH
13821 do
13822   IFS=$as_save_IFS
13823   test -z "$as_dir" && as_dir=.
13824     for ac_exec_ext in '' $ac_executable_extensions; do
13825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13826     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13828     break 2
13829   fi
13830 done
13831   done
13832 IFS=$as_save_IFS
13833
13834   ;;
13835 esac
13836 fi
13837 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13838 if test -n "$PKG_CONFIG"; then
13839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13840 $as_echo "$PKG_CONFIG" >&6; }
13841 else
13842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13844 fi
13845
13846
13847 fi
13848 if test -z "$ac_cv_path_PKG_CONFIG"; then
13849   ac_pt_PKG_CONFIG=$PKG_CONFIG
13850   # Extract the first word of "pkg-config", so it can be a program name with args.
13851 set dummy pkg-config; ac_word=$2
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13853 $as_echo_n "checking for $ac_word... " >&6; }
13854 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13855   $as_echo_n "(cached) " >&6
13856 else
13857   case $ac_pt_PKG_CONFIG in
13858   [\\/]* | ?:[\\/]*)
13859   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13860   ;;
13861   *)
13862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863 for as_dir in $PATH
13864 do
13865   IFS=$as_save_IFS
13866   test -z "$as_dir" && as_dir=.
13867     for ac_exec_ext in '' $ac_executable_extensions; do
13868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13869     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13871     break 2
13872   fi
13873 done
13874   done
13875 IFS=$as_save_IFS
13876
13877   ;;
13878 esac
13879 fi
13880 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13881 if test -n "$ac_pt_PKG_CONFIG"; then
13882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13883 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13884 else
13885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13886 $as_echo "no" >&6; }
13887 fi
13888
13889   if test "x$ac_pt_PKG_CONFIG" = x; then
13890     PKG_CONFIG=""
13891   else
13892     case $cross_compiling:$ac_tool_warned in
13893 yes:)
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13896 ac_tool_warned=yes ;;
13897 esac
13898     PKG_CONFIG=$ac_pt_PKG_CONFIG
13899   fi
13900 else
13901   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13902 fi
13903
13904 fi
13905 if test -n "$PKG_CONFIG"; then
13906         _pkg_min_version=0.9.0
13907         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13908 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13909         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13910                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13911 $as_echo "yes" >&6; }
13912         else
13913                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914 $as_echo "no" >&6; }
13915                 PKG_CONFIG=""
13916         fi
13917 fi
13918
13919 # We have to be a bit naughty here and supply options.
13920 # The autoconf literature states that only features that can be separately
13921 # 'built' should use --enable and friends. Oh well...
13922
13923 # Check whether --enable-cache-owner was given.
13924 if test "${enable_cache_owner+set}" = set; then :
13925   enableval=$enable_cache_owner; if test "$enableval" = "yes"
13926            then
13927                 enableval=man
13928            fi
13929            if test "$enableval" = "no"
13930            then
13931                 man_owner=
13932                 { $as_echo "$as_me:${as_lineno-$LINENO}: System-wide cache files will have unconstrained ownership" >&5
13933 $as_echo "$as_me: System-wide cache files will have unconstrained ownership" >&6;}
13934            else
13935                 man_owner=$enableval
13936                 { $as_echo "$as_me:${as_lineno-$LINENO}: System-wide cache files will be owned by $enableval" >&5
13937 $as_echo "$as_me: System-wide cache files will be owned by $enableval" >&6;}
13938
13939 cat >>confdefs.h <<_ACEOF
13940 #define MAN_OWNER "$man_owner"
13941 _ACEOF
13942
13943            fi
13944 else
13945   man_owner=man
13946            cat >>confdefs.h <<_ACEOF
13947 #define MAN_OWNER "$man_owner"
13948 _ACEOF
13949
13950 fi
13951
13952
13953
13954
13955 # Check whether --enable-setuid was given.
13956 if test "${enable_setuid+set}" = set; then :
13957   enableval=$enable_setuid; if test "$enableval" = "yes"
13958            then
13959                 if test -z "$man_owner"
13960                 then
13961                         as_fn_error $? "--enable-setuid is incompatible with --disable-cache-owner" "$LINENO" 5
13962                 fi
13963                 man_mode="6755"
13964                 { $as_echo "$as_me:${as_lineno-$LINENO}: Man will be installed setuid $man_owner" >&5
13965 $as_echo "$as_me: Man will be installed setuid $man_owner" >&6;}
13966            elif test "$enableval" = "no"
13967            then
13968                 man_mode="755"
13969                 { $as_echo "$as_me:${as_lineno-$LINENO}: Man will not be installed setuid" >&5
13970 $as_echo "$as_me: Man will not be installed setuid" >&6;}
13971            else
13972                 as_fn_error $? "--enable-setuid=$enableval is no longer valid; consider --enable-cache-owner=$enableval --enable-setuid instead" "$LINENO" 5
13973            fi
13974 else
13975   if test -z "$man_owner"
13976            then
13977                 man_mode="755"
13978            else
13979                 man_mode="6755"
13980            fi
13981 fi
13982
13983
13984
13985
13986 # Check whether --enable-undoc was given.
13987 if test "${enable_undoc+set}" = set; then :
13988   enableval=$enable_undoc; if test "$enableval" = "yes" || test "$enableval" = "no"
13989          then
13990                 as_fn_error $? "--enable-undoc requires an argument" "$LINENO" 5
13991          else
13992                 { $as_echo "$as_me:${as_lineno-$LINENO}: Suggesting '$enableval' for missing manual pages" >&5
13993 $as_echo "$as_me: Suggesting '$enableval' for missing manual pages" >&6;}
13994
13995 cat >>confdefs.h <<_ACEOF
13996 #define UNDOC_COMMAND "$enableval"
13997 _ACEOF
13998
13999          fi
14000 fi
14001
14002
14003
14004
14005 # Check whether --with-device was given.
14006 if test "${with_device+set}" = set; then :
14007   withval=$with_device; if test "$withval" = "yes" || test "$withval" = "no"
14008          then
14009                 as_fn_error $? "--with-device requires an argument" "$LINENO" 5
14010          else
14011                 nroff_device=" -T$withval"
14012          fi
14013 fi
14014
14015
14016
14017
14018 # Check whether --with-db was given.
14019 if test "${with_db+set}" = set; then :
14020   withval=$with_db; if test "$withval" = "yes" || test "$withval" = "no"
14021          then
14022                 as_fn_error $? "--with-db requires an argument" "$LINENO" 5
14023          else
14024                 db=$withval
14025          fi
14026 else
14027   : ${db=no}
14028 fi
14029
14030
14031
14032
14033 # Check whether --with-config-file was given.
14034 if test "${with_config_file+set}" = set; then :
14035   withval=$with_config_file; if test "$withval" = "yes" || test "$withval" = "no"
14036          then
14037                 as_fn_error $? "--with-config-file requires an argument" "$LINENO" 5
14038          else
14039                 config_file=$withval
14040          fi
14041 else
14042   : ${config_file=\$\{sysconfdir\}/man_db.conf}
14043 fi
14044
14045 config_file_basename=${withval##*/}
14046 config_file_dirname=`$as_dirname -- "$config_file" ||
14047 $as_expr X"$config_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14048          X"$config_file" : 'X\(//\)[^/]' \| \
14049          X"$config_file" : 'X\(//\)$' \| \
14050          X"$config_file" : 'X\(/\)' \| . 2>/dev/null ||
14051 $as_echo X"$config_file" |
14052     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14053             s//\1/
14054             q
14055           }
14056           /^X\(\/\/\)[^/].*/{
14057             s//\1/
14058             q
14059           }
14060           /^X\(\/\/\)$/{
14061             s//\1/
14062             q
14063           }
14064           /^X\(\/\).*/{
14065             s//\1/
14066             q
14067           }
14068           s/.*/./; q'`
14069
14070
14071
14072
14073
14074
14075 # Check whether --with-sections was given.
14076 if test "${with_sections+set}" = set; then :
14077   withval=$with_sections; if test "$withval" = "yes" || test "$withval" = "no"
14078          then
14079                 as_fn_error $? "--with-sections requires an argument" "$LINENO" 5
14080          else
14081                 sections="$withval"
14082          fi
14083 else
14084   : ${sections=1 n l 8 3 0 2 5 4 9 6 7}
14085 fi
14086
14087
14088
14089 # Check whether --enable-automatic-create was given.
14090 if test "${enable_automatic_create+set}" = set; then :
14091   enableval=$enable_automatic_create; if test "$enableval" = "yes"
14092          then
14093
14094 $as_echo "#define MAN_DB_CREATES 1" >>confdefs.h
14095
14096          fi
14097 fi
14098
14099
14100
14101 # Check whether --enable-automatic-update was given.
14102 if test "${enable_automatic_update+set}" = set; then :
14103   enableval=$enable_automatic_update; if test "$enableval" = "yes"
14104          then
14105
14106 $as_echo "#define MAN_DB_UPDATES 1" >>confdefs.h
14107
14108          fi
14109 else
14110
14111 $as_echo "#define MAN_DB_UPDATES 1" >>confdefs.h
14112
14113 fi
14114
14115
14116
14117 # Check whether --enable-cats was given.
14118 if test "${enable_cats+set}" = set; then :
14119   enableval=$enable_cats; if test "$enableval" = "yes"
14120          then
14121
14122 $as_echo "#define MAN_CATS 1" >>confdefs.h
14123
14124          fi
14125 else
14126
14127 $as_echo "#define MAN_CATS 1" >>confdefs.h
14128
14129 fi
14130
14131
14132
14133
14134 # Check whether --with-override-dir was given.
14135 if test "${with_override_dir+set}" = set; then :
14136   withval=$with_override_dir; if test "$withval" = "yes" || test "$withval" = "no"
14137          then
14138                 as_fn_error $? "--with-override-dir requires an argument" "$LINENO" 5
14139          else
14140                 override_dir=$withval
14141          fi
14142 else
14143   : ${override_dir=""}
14144 fi
14145
14146
14147
14148
14149
14150 # Check whether --with-systemdtmpfilesdir was given.
14151 if test "${with_systemdtmpfilesdir+set}" = set; then :
14152   withval=$with_systemdtmpfilesdir;
14153 else
14154         # The default is not prefix-sensitive, since systemd's prefix is not
14155         # necessarily the same as man-db's.
14156
14157 if test -n "$with_systemdtmpfilesdir"; then
14158     pkg_cv_with_systemdtmpfilesdir="$with_systemdtmpfilesdir"
14159  elif test -n "$PKG_CONFIG"; then
14160     if test -n "$PKG_CONFIG" && \
14161     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14162   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14163   ac_status=$?
14164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14165   test $ac_status = 0; }; then
14166   pkg_cv_with_systemdtmpfilesdir=`$PKG_CONFIG --variable="tmpfilesdir" "systemd" 2>/dev/null`
14167                       test "x$?" != "x0" && pkg_failed=yes
14168 else
14169   pkg_failed=yes
14170 fi
14171  else
14172     pkg_failed=untried
14173 fi
14174 with_systemdtmpfilesdir=$pkg_cv_with_systemdtmpfilesdir
14175
14176 if test "x$with_systemdtmpfilesdir" = x""; then :
14177   with_systemdtmpfilesdir=/usr/lib/tmpfiles.d
14178 fi
14179
14180 fi
14181
14182 systemdtmpfilesdir=$with_systemdtmpfilesdir
14183
14184
14185
14186 # Work out which manual page hierarchy scheme might be in use.
14187 # Check whether --enable-mandirs was given.
14188 if test "${enable_mandirs+set}" = set; then :
14189   enableval=$enable_mandirs; { $as_echo "$as_me:${as_lineno-$LINENO}: Using $enableval hierarchy organization(s)" >&5
14190 $as_echo "$as_me: Using $enableval hierarchy organization(s)" >&6;}
14191
14192 cat >>confdefs.h <<_ACEOF
14193 #define MANDIR_LAYOUT "$enableval"
14194 _ACEOF
14195
14196          MANDIR_LAYOUT="$enableval"
14197 else
14198   case $host in
14199                 *-gnu)          mandirs=GNU;;
14200                 *-hpux*)        mandirs=HPUX;;
14201                 *-irix*)        mandirs=IRIX;;
14202                 *-solaris*)     mandirs=Solaris;;
14203                 *-*bsd*)        mandirs=BSD;;
14204                 *)              mandirs=;;
14205          esac
14206          if test -n "$mandirs"; then
14207                 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $mandirs hierarchy organization" >&5
14208 $as_echo "$as_me: Using $mandirs hierarchy organization" >&6;}
14209                 cat >>confdefs.h <<_ACEOF
14210 #define MANDIR_LAYOUT "$mandirs"
14211 _ACEOF
14212
14213                 MANDIR_LAYOUT="$mandirs"
14214          else
14215                 { $as_echo "$as_me:${as_lineno-$LINENO}: Allowing any hierarchy organization" >&5
14216 $as_echo "$as_me: Allowing any hierarchy organization" >&6;}
14217                 $as_echo "#define MANDIR_LAYOUT \"\"" >>confdefs.h
14218
14219                 MANDIR_LAYOUT=
14220          fi
14221 fi
14222
14223
14224
14225
14226 # Check $PATH for the following programs and append suitable options.
14227 ac_ext=c
14228 ac_cpp='$CPP $CPPFLAGS'
14229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14232 if test -n "$ac_tool_prefix"; then
14233   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14234 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14236 $as_echo_n "checking for $ac_word... " >&6; }
14237 if ${ac_cv_prog_CC+:} false; then :
14238   $as_echo_n "(cached) " >&6
14239 else
14240   if test -n "$CC"; then
14241   ac_cv_prog_CC="$CC" # Let the user override the test.
14242 else
14243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14244 for as_dir in $PATH
14245 do
14246   IFS=$as_save_IFS
14247   test -z "$as_dir" && as_dir=.
14248     for ac_exec_ext in '' $ac_executable_extensions; do
14249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14250     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14252     break 2
14253   fi
14254 done
14255   done
14256 IFS=$as_save_IFS
14257
14258 fi
14259 fi
14260 CC=$ac_cv_prog_CC
14261 if test -n "$CC"; then
14262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14263 $as_echo "$CC" >&6; }
14264 else
14265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14266 $as_echo "no" >&6; }
14267 fi
14268
14269
14270 fi
14271 if test -z "$ac_cv_prog_CC"; then
14272   ac_ct_CC=$CC
14273   # Extract the first word of "gcc", so it can be a program name with args.
14274 set dummy gcc; ac_word=$2
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14276 $as_echo_n "checking for $ac_word... " >&6; }
14277 if ${ac_cv_prog_ac_ct_CC+:} false; then :
14278   $as_echo_n "(cached) " >&6
14279 else
14280   if test -n "$ac_ct_CC"; then
14281   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14282 else
14283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14284 for as_dir in $PATH
14285 do
14286   IFS=$as_save_IFS
14287   test -z "$as_dir" && as_dir=.
14288     for ac_exec_ext in '' $ac_executable_extensions; do
14289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14290     ac_cv_prog_ac_ct_CC="gcc"
14291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14292     break 2
14293   fi
14294 done
14295   done
14296 IFS=$as_save_IFS
14297
14298 fi
14299 fi
14300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14301 if test -n "$ac_ct_CC"; then
14302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14303 $as_echo "$ac_ct_CC" >&6; }
14304 else
14305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14306 $as_echo "no" >&6; }
14307 fi
14308
14309   if test "x$ac_ct_CC" = x; then
14310     CC=""
14311   else
14312     case $cross_compiling:$ac_tool_warned in
14313 yes:)
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14316 ac_tool_warned=yes ;;
14317 esac
14318     CC=$ac_ct_CC
14319   fi
14320 else
14321   CC="$ac_cv_prog_CC"
14322 fi
14323
14324 if test -z "$CC"; then
14325           if test -n "$ac_tool_prefix"; then
14326     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14327 set dummy ${ac_tool_prefix}cc; ac_word=$2
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14329 $as_echo_n "checking for $ac_word... " >&6; }
14330 if ${ac_cv_prog_CC+:} false; then :
14331   $as_echo_n "(cached) " >&6
14332 else
14333   if test -n "$CC"; then
14334   ac_cv_prog_CC="$CC" # Let the user override the test.
14335 else
14336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14337 for as_dir in $PATH
14338 do
14339   IFS=$as_save_IFS
14340   test -z "$as_dir" && as_dir=.
14341     for ac_exec_ext in '' $ac_executable_extensions; do
14342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14343     ac_cv_prog_CC="${ac_tool_prefix}cc"
14344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14345     break 2
14346   fi
14347 done
14348   done
14349 IFS=$as_save_IFS
14350
14351 fi
14352 fi
14353 CC=$ac_cv_prog_CC
14354 if test -n "$CC"; then
14355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14356 $as_echo "$CC" >&6; }
14357 else
14358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359 $as_echo "no" >&6; }
14360 fi
14361
14362
14363   fi
14364 fi
14365 if test -z "$CC"; then
14366   # Extract the first word of "cc", so it can be a program name with args.
14367 set dummy cc; ac_word=$2
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14369 $as_echo_n "checking for $ac_word... " >&6; }
14370 if ${ac_cv_prog_CC+:} false; then :
14371   $as_echo_n "(cached) " >&6
14372 else
14373   if test -n "$CC"; then
14374   ac_cv_prog_CC="$CC" # Let the user override the test.
14375 else
14376   ac_prog_rejected=no
14377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14378 for as_dir in $PATH
14379 do
14380   IFS=$as_save_IFS
14381   test -z "$as_dir" && as_dir=.
14382     for ac_exec_ext in '' $ac_executable_extensions; do
14383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14384     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14385        ac_prog_rejected=yes
14386        continue
14387      fi
14388     ac_cv_prog_CC="cc"
14389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14390     break 2
14391   fi
14392 done
14393   done
14394 IFS=$as_save_IFS
14395
14396 if test $ac_prog_rejected = yes; then
14397   # We found a bogon in the path, so make sure we never use it.
14398   set dummy $ac_cv_prog_CC
14399   shift
14400   if test $# != 0; then
14401     # We chose a different compiler from the bogus one.
14402     # However, it has the same basename, so the bogon will be chosen
14403     # first if we set CC to just the basename; use the full file name.
14404     shift
14405     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14406   fi
14407 fi
14408 fi
14409 fi
14410 CC=$ac_cv_prog_CC
14411 if test -n "$CC"; then
14412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14413 $as_echo "$CC" >&6; }
14414 else
14415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14416 $as_echo "no" >&6; }
14417 fi
14418
14419
14420 fi
14421 if test -z "$CC"; then
14422   if test -n "$ac_tool_prefix"; then
14423   for ac_prog in cl.exe
14424   do
14425     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14428 $as_echo_n "checking for $ac_word... " >&6; }
14429 if ${ac_cv_prog_CC+:} false; then :
14430   $as_echo_n "(cached) " >&6
14431 else
14432   if test -n "$CC"; then
14433   ac_cv_prog_CC="$CC" # Let the user override the test.
14434 else
14435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14436 for as_dir in $PATH
14437 do
14438   IFS=$as_save_IFS
14439   test -z "$as_dir" && as_dir=.
14440     for ac_exec_ext in '' $ac_executable_extensions; do
14441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14442     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14444     break 2
14445   fi
14446 done
14447   done
14448 IFS=$as_save_IFS
14449
14450 fi
14451 fi
14452 CC=$ac_cv_prog_CC
14453 if test -n "$CC"; then
14454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14455 $as_echo "$CC" >&6; }
14456 else
14457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14458 $as_echo "no" >&6; }
14459 fi
14460
14461
14462     test -n "$CC" && break
14463   done
14464 fi
14465 if test -z "$CC"; then
14466   ac_ct_CC=$CC
14467   for ac_prog in cl.exe
14468 do
14469   # Extract the first word of "$ac_prog", so it can be a program name with args.
14470 set dummy $ac_prog; ac_word=$2
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14472 $as_echo_n "checking for $ac_word... " >&6; }
14473 if ${ac_cv_prog_ac_ct_CC+:} false; then :
14474   $as_echo_n "(cached) " >&6
14475 else
14476   if test -n "$ac_ct_CC"; then
14477   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14478 else
14479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14480 for as_dir in $PATH
14481 do
14482   IFS=$as_save_IFS
14483   test -z "$as_dir" && as_dir=.
14484     for ac_exec_ext in '' $ac_executable_extensions; do
14485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14486     ac_cv_prog_ac_ct_CC="$ac_prog"
14487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14488     break 2
14489   fi
14490 done
14491   done
14492 IFS=$as_save_IFS
14493
14494 fi
14495 fi
14496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14497 if test -n "$ac_ct_CC"; then
14498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14499 $as_echo "$ac_ct_CC" >&6; }
14500 else
14501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502 $as_echo "no" >&6; }
14503 fi
14504
14505
14506   test -n "$ac_ct_CC" && break
14507 done
14508
14509   if test "x$ac_ct_CC" = x; then
14510     CC=""
14511   else
14512     case $cross_compiling:$ac_tool_warned in
14513 yes:)
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14516 ac_tool_warned=yes ;;
14517 esac
14518     CC=$ac_ct_CC
14519   fi
14520 fi
14521
14522 fi
14523
14524
14525 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14527 as_fn_error $? "no acceptable C compiler found in \$PATH
14528 See \`config.log' for more details" "$LINENO" 5; }
14529
14530 # Provide some information about the compiler.
14531 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14532 set X $ac_compile
14533 ac_compiler=$2
14534 for ac_option in --version -v -V -qversion; do
14535   { { ac_try="$ac_compiler $ac_option >&5"
14536 case "(($ac_try" in
14537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538   *) ac_try_echo=$ac_try;;
14539 esac
14540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14541 $as_echo "$ac_try_echo"; } >&5
14542   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14543   ac_status=$?
14544   if test -s conftest.err; then
14545     sed '10a\
14546 ... rest of stderr output deleted ...
14547          10q' conftest.err >conftest.er1
14548     cat conftest.er1 >&5
14549   fi
14550   rm -f conftest.er1 conftest.err
14551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14552   test $ac_status = 0; }
14553 done
14554
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14556 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14557 if ${ac_cv_c_compiler_gnu+:} false; then :
14558   $as_echo_n "(cached) " >&6
14559 else
14560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h.  */
14562
14563 int
14564 main ()
14565 {
14566 #ifndef __GNUC__
14567        choke me
14568 #endif
14569
14570   ;
14571   return 0;
14572 }
14573 _ACEOF
14574 if ac_fn_c_try_compile "$LINENO"; then :
14575   ac_compiler_gnu=yes
14576 else
14577   ac_compiler_gnu=no
14578 fi
14579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14581
14582 fi
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14584 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
14585 if test $ac_compiler_gnu = yes; then
14586   GCC=yes
14587 else
14588   GCC=
14589 fi
14590 ac_test_CFLAGS=${CFLAGS+set}
14591 ac_save_CFLAGS=$CFLAGS
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14593 $as_echo_n "checking whether $CC accepts -g... " >&6; }
14594 if ${ac_cv_prog_cc_g+:} false; then :
14595   $as_echo_n "(cached) " >&6
14596 else
14597   ac_save_c_werror_flag=$ac_c_werror_flag
14598    ac_c_werror_flag=yes
14599    ac_cv_prog_cc_g=no
14600    CFLAGS="-g"
14601    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h.  */
14603
14604 int
14605 main ()
14606 {
14607
14608   ;
14609   return 0;
14610 }
14611 _ACEOF
14612 if ac_fn_c_try_compile "$LINENO"; then :
14613   ac_cv_prog_cc_g=yes
14614 else
14615   CFLAGS=""
14616       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h.  */
14618
14619 int
14620 main ()
14621 {
14622
14623   ;
14624   return 0;
14625 }
14626 _ACEOF
14627 if ac_fn_c_try_compile "$LINENO"; then :
14628
14629 else
14630   ac_c_werror_flag=$ac_save_c_werror_flag
14631          CFLAGS="-g"
14632          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h.  */
14634
14635 int
14636 main ()
14637 {
14638
14639   ;
14640   return 0;
14641 }
14642 _ACEOF
14643 if ac_fn_c_try_compile "$LINENO"; then :
14644   ac_cv_prog_cc_g=yes
14645 fi
14646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14647 fi
14648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14649 fi
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651    ac_c_werror_flag=$ac_save_c_werror_flag
14652 fi
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14654 $as_echo "$ac_cv_prog_cc_g" >&6; }
14655 if test "$ac_test_CFLAGS" = set; then
14656   CFLAGS=$ac_save_CFLAGS
14657 elif test $ac_cv_prog_cc_g = yes; then
14658   if test "$GCC" = yes; then
14659     CFLAGS="-g -O2"
14660   else
14661     CFLAGS="-g"
14662   fi
14663 else
14664   if test "$GCC" = yes; then
14665     CFLAGS="-O2"
14666   else
14667     CFLAGS=
14668   fi
14669 fi
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14671 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14672 if ${ac_cv_prog_cc_c89+:} false; then :
14673   $as_echo_n "(cached) " >&6
14674 else
14675   ac_cv_prog_cc_c89=no
14676 ac_save_CC=$CC
14677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h.  */
14679 #include <stdarg.h>
14680 #include <stdio.h>
14681 struct stat;
14682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14683 struct buf { int x; };
14684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14685 static char *e (p, i)
14686      char **p;
14687      int i;
14688 {
14689   return p[i];
14690 }
14691 static char *f (char * (*g) (char **, int), char **p, ...)
14692 {
14693   char *s;
14694   va_list v;
14695   va_start (v,p);
14696   s = g (p, va_arg (v,int));
14697   va_end (v);
14698   return s;
14699 }
14700
14701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14702    function prototypes and stuff, but not '\xHH' hex character constants.
14703    These don't provoke an error unfortunately, instead are silently treated
14704    as 'x'.  The following induces an error, until -std is added to get
14705    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14706    array size at least.  It's necessary to write '\x00'==0 to get something
14707    that's true only with -std.  */
14708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14709
14710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14711    inside strings and character constants.  */
14712 #define FOO(x) 'x'
14713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14714
14715 int test (int i, double x);
14716 struct s1 {int (*f) (int a);};
14717 struct s2 {int (*f) (double a);};
14718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14719 int argc;
14720 char **argv;
14721 int
14722 main ()
14723 {
14724 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14725   ;
14726   return 0;
14727 }
14728 _ACEOF
14729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14730         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14731 do
14732   CC="$ac_save_CC $ac_arg"
14733   if ac_fn_c_try_compile "$LINENO"; then :
14734   ac_cv_prog_cc_c89=$ac_arg
14735 fi
14736 rm -f core conftest.err conftest.$ac_objext
14737   test "x$ac_cv_prog_cc_c89" != "xno" && break
14738 done
14739 rm -f conftest.$ac_ext
14740 CC=$ac_save_CC
14741
14742 fi
14743 # AC_CACHE_VAL
14744 case "x$ac_cv_prog_cc_c89" in
14745   x)
14746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14747 $as_echo "none needed" >&6; } ;;
14748   xno)
14749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14750 $as_echo "unsupported" >&6; } ;;
14751   *)
14752     CC="$CC $ac_cv_prog_cc_c89"
14753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14754 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14755 esac
14756 if test "x$ac_cv_prog_cc_c89" != xno; then :
14757
14758 fi
14759
14760 ac_ext=c
14761 ac_cpp='$CPP $CPPFLAGS'
14762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14765
14766 ac_ext=c
14767 ac_cpp='$CPP $CPPFLAGS'
14768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14772 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14773 if ${am_cv_prog_cc_c_o+:} false; then :
14774   $as_echo_n "(cached) " >&6
14775 else
14776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h.  */
14778
14779 int
14780 main ()
14781 {
14782
14783   ;
14784   return 0;
14785 }
14786 _ACEOF
14787   # Make sure it works both with $CC and with simple cc.
14788   # Following AC_PROG_CC_C_O, we do the test twice because some
14789   # compilers refuse to overwrite an existing .o file with -o,
14790   # though they will create one.
14791   am_cv_prog_cc_c_o=yes
14792   for am_i in 1 2; do
14793     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14794    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14795    ac_status=$?
14796    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797    (exit $ac_status); } \
14798          && test -f conftest2.$ac_objext; then
14799       : OK
14800     else
14801       am_cv_prog_cc_c_o=no
14802       break
14803     fi
14804   done
14805   rm -f core conftest*
14806   unset am_i
14807 fi
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14809 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14810 if test "$am_cv_prog_cc_c_o" != yes; then
14811    # Losing compiler, so override with the script.
14812    # FIXME: It is wrong to rewrite CC.
14813    # But if we don't then we get into trouble of one sort or another.
14814    # A longer-term fix would be to have automake use am__CC in this case,
14815    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14816    CC="$am_aux_dir/compile $CC"
14817 fi
14818 ac_ext=c
14819 ac_cpp='$CPP $CPPFLAGS'
14820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14823
14824
14825 depcc="$CC"   am_compiler_list=
14826
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14828 $as_echo_n "checking dependency style of $depcc... " >&6; }
14829 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14830   $as_echo_n "(cached) " >&6
14831 else
14832   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14833   # We make a subdir and do the tests there.  Otherwise we can end up
14834   # making bogus files that we don't know about and never remove.  For
14835   # instance it was reported that on HP-UX the gcc test will end up
14836   # making a dummy file named 'D' -- because '-MD' means "put the output
14837   # in D".
14838   rm -rf conftest.dir
14839   mkdir conftest.dir
14840   # Copy depcomp to subdir because otherwise we won't find it if we're
14841   # using a relative directory.
14842   cp "$am_depcomp" conftest.dir
14843   cd conftest.dir
14844   # We will build objects and dependencies in a subdirectory because
14845   # it helps to detect inapplicable dependency modes.  For instance
14846   # both Tru64's cc and ICC support -MD to output dependencies as a
14847   # side effect of compilation, but ICC will put the dependencies in
14848   # the current directory while Tru64 will put them in the object
14849   # directory.
14850   mkdir sub
14851
14852   am_cv_CC_dependencies_compiler_type=none
14853   if test "$am_compiler_list" = ""; then
14854      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14855   fi
14856   am__universal=false
14857   case " $depcc " in #(
14858      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14859      esac
14860
14861   for depmode in $am_compiler_list; do
14862     # Setup a source with many dependencies, because some compilers
14863     # like to wrap large dependency lists on column 80 (with \), and
14864     # we should not choose a depcomp mode which is confused by this.
14865     #
14866     # We need to recreate these files for each test, as the compiler may
14867     # overwrite some of them when testing with obscure command lines.
14868     # This happens at least with the AIX C compiler.
14869     : > sub/conftest.c
14870     for i in 1 2 3 4 5 6; do
14871       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14872       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14873       # Solaris 10 /bin/sh.
14874       echo '/* dummy */' > sub/conftst$i.h
14875     done
14876     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14877
14878     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14879     # mode.  It turns out that the SunPro C++ compiler does not properly
14880     # handle '-M -o', and we need to detect this.  Also, some Intel
14881     # versions had trouble with output in subdirs.
14882     am__obj=sub/conftest.${OBJEXT-o}
14883     am__minus_obj="-o $am__obj"
14884     case $depmode in
14885     gcc)
14886       # This depmode causes a compiler race in universal mode.
14887       test "$am__universal" = false || continue
14888       ;;
14889     nosideeffect)
14890       # After this tag, mechanisms are not by side-effect, so they'll
14891       # only be used when explicitly requested.
14892       if test "x$enable_dependency_tracking" = xyes; then
14893         continue
14894       else
14895         break
14896       fi
14897       ;;
14898     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14899       # This compiler won't grok '-c -o', but also, the minuso test has
14900       # not run yet.  These depmodes are late enough in the game, and
14901       # so weak that their functioning should not be impacted.
14902       am__obj=conftest.${OBJEXT-o}
14903       am__minus_obj=
14904       ;;
14905     none) break ;;
14906     esac
14907     if depmode=$depmode \
14908        source=sub/conftest.c object=$am__obj \
14909        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14910        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14911          >/dev/null 2>conftest.err &&
14912        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14913        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14914        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14915        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14916       # icc doesn't choke on unknown options, it will just issue warnings
14917       # or remarks (even with -Werror).  So we grep stderr for any message
14918       # that says an option was ignored or not supported.
14919       # When given -MP, icc 7.0 and 7.1 complain thusly:
14920       #   icc: Command line warning: ignoring option '-M'; no argument required
14921       # The diagnosis changed in icc 8.0:
14922       #   icc: Command line remark: option '-MP' not supported
14923       if (grep 'ignoring option' conftest.err ||
14924           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14925         am_cv_CC_dependencies_compiler_type=$depmode
14926         break
14927       fi
14928     fi
14929   done
14930
14931   cd ..
14932   rm -rf conftest.dir
14933 else
14934   am_cv_CC_dependencies_compiler_type=none
14935 fi
14936
14937 fi
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14939 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14940 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14941
14942  if
14943   test "x$enable_dependency_tracking" != xno \
14944   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14945   am__fastdepCC_TRUE=
14946   am__fastdepCC_FALSE='#'
14947 else
14948   am__fastdepCC_TRUE='#'
14949   am__fastdepCC_FALSE=
14950 fi
14951
14952
14953
14954
14955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
14956 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
14957 if ${gl_cv_c_amsterdam_compiler+:} false; then :
14958   $as_echo_n "(cached) " >&6
14959 else
14960
14961       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h.  */
14963
14964 #ifdef __ACK__
14965 Amsterdam
14966 #endif
14967
14968 _ACEOF
14969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14970   $EGREP "Amsterdam" >/dev/null 2>&1; then :
14971   gl_cv_c_amsterdam_compiler=yes
14972 else
14973   gl_cv_c_amsterdam_compiler=no
14974 fi
14975 rm -f conftest*
14976
14977
14978 fi
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
14980 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
14981   if test -z "$AR"; then
14982     if test $gl_cv_c_amsterdam_compiler = yes; then
14983       AR='cc -c.a'
14984       if test -z "$ARFLAGS"; then
14985         ARFLAGS='-o'
14986       fi
14987     else
14988                   if test -n "$ac_tool_prefix"; then
14989   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14990 set dummy ${ac_tool_prefix}ar; ac_word=$2
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14992 $as_echo_n "checking for $ac_word... " >&6; }
14993 if ${ac_cv_prog_AR+:} false; then :
14994   $as_echo_n "(cached) " >&6
14995 else
14996   if test -n "$AR"; then
14997   ac_cv_prog_AR="$AR" # Let the user override the test.
14998 else
14999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15000 for as_dir in $PATH
15001 do
15002   IFS=$as_save_IFS
15003   test -z "$as_dir" && as_dir=.
15004     for ac_exec_ext in '' $ac_executable_extensions; do
15005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15006     ac_cv_prog_AR="${ac_tool_prefix}ar"
15007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15008     break 2
15009   fi
15010 done
15011   done
15012 IFS=$as_save_IFS
15013
15014 fi
15015 fi
15016 AR=$ac_cv_prog_AR
15017 if test -n "$AR"; then
15018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15019 $as_echo "$AR" >&6; }
15020 else
15021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15022 $as_echo "no" >&6; }
15023 fi
15024
15025
15026 fi
15027 if test -z "$ac_cv_prog_AR"; then
15028   ac_ct_AR=$AR
15029   # Extract the first word of "ar", so it can be a program name with args.
15030 set dummy ar; ac_word=$2
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15032 $as_echo_n "checking for $ac_word... " >&6; }
15033 if ${ac_cv_prog_ac_ct_AR+:} false; then :
15034   $as_echo_n "(cached) " >&6
15035 else
15036   if test -n "$ac_ct_AR"; then
15037   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15038 else
15039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15040 for as_dir in $PATH
15041 do
15042   IFS=$as_save_IFS
15043   test -z "$as_dir" && as_dir=.
15044     for ac_exec_ext in '' $ac_executable_extensions; do
15045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15046     ac_cv_prog_ac_ct_AR="ar"
15047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15048     break 2
15049   fi
15050 done
15051   done
15052 IFS=$as_save_IFS
15053
15054 fi
15055 fi
15056 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15057 if test -n "$ac_ct_AR"; then
15058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
15059 $as_echo "$ac_ct_AR" >&6; }
15060 else
15061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15062 $as_echo "no" >&6; }
15063 fi
15064
15065   if test "x$ac_ct_AR" = x; then
15066     AR="ar"
15067   else
15068     case $cross_compiling:$ac_tool_warned in
15069 yes:)
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15072 ac_tool_warned=yes ;;
15073 esac
15074     AR=$ac_ct_AR
15075   fi
15076 else
15077   AR="$ac_cv_prog_AR"
15078 fi
15079
15080       if test -z "$ARFLAGS"; then
15081         ARFLAGS='cru'
15082       fi
15083     fi
15084   else
15085     if test -z "$ARFLAGS"; then
15086       ARFLAGS='cru'
15087     fi
15088   fi
15089
15090
15091   if test -z "$RANLIB"; then
15092     if test $gl_cv_c_amsterdam_compiler = yes; then
15093       RANLIB=':'
15094     else
15095             if test -n "$ac_tool_prefix"; then
15096   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15097 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15099 $as_echo_n "checking for $ac_word... " >&6; }
15100 if ${ac_cv_prog_RANLIB+:} false; then :
15101   $as_echo_n "(cached) " >&6
15102 else
15103   if test -n "$RANLIB"; then
15104   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15105 else
15106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15107 for as_dir in $PATH
15108 do
15109   IFS=$as_save_IFS
15110   test -z "$as_dir" && as_dir=.
15111     for ac_exec_ext in '' $ac_executable_extensions; do
15112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15113     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15115     break 2
15116   fi
15117 done
15118   done
15119 IFS=$as_save_IFS
15120
15121 fi
15122 fi
15123 RANLIB=$ac_cv_prog_RANLIB
15124 if test -n "$RANLIB"; then
15125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15126 $as_echo "$RANLIB" >&6; }
15127 else
15128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15129 $as_echo "no" >&6; }
15130 fi
15131
15132
15133 fi
15134 if test -z "$ac_cv_prog_RANLIB"; then
15135   ac_ct_RANLIB=$RANLIB
15136   # Extract the first word of "ranlib", so it can be a program name with args.
15137 set dummy ranlib; ac_word=$2
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15139 $as_echo_n "checking for $ac_word... " >&6; }
15140 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15141   $as_echo_n "(cached) " >&6
15142 else
15143   if test -n "$ac_ct_RANLIB"; then
15144   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15145 else
15146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15147 for as_dir in $PATH
15148 do
15149   IFS=$as_save_IFS
15150   test -z "$as_dir" && as_dir=.
15151     for ac_exec_ext in '' $ac_executable_extensions; do
15152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15153     ac_cv_prog_ac_ct_RANLIB="ranlib"
15154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15155     break 2
15156   fi
15157 done
15158   done
15159 IFS=$as_save_IFS
15160
15161 fi
15162 fi
15163 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15164 if test -n "$ac_ct_RANLIB"; then
15165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15166 $as_echo "$ac_ct_RANLIB" >&6; }
15167 else
15168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15169 $as_echo "no" >&6; }
15170 fi
15171
15172   if test "x$ac_ct_RANLIB" = x; then
15173     RANLIB=":"
15174   else
15175     case $cross_compiling:$ac_tool_warned in
15176 yes:)
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15179 ac_tool_warned=yes ;;
15180 esac
15181     RANLIB=$ac_ct_RANLIB
15182   fi
15183 else
15184   RANLIB="$ac_cv_prog_RANLIB"
15185 fi
15186
15187     fi
15188   fi
15189
15190
15191
15192
15193
15194
15195
15196
15197 # Check whether --enable-largefile was given.
15198 if test "${enable_largefile+set}" = set; then :
15199   enableval=$enable_largefile;
15200 fi
15201
15202 if test "$enable_largefile" != no; then
15203
15204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15205 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15206 if ${ac_cv_sys_largefile_CC+:} false; then :
15207   $as_echo_n "(cached) " >&6
15208 else
15209   ac_cv_sys_largefile_CC=no
15210      if test "$GCC" != yes; then
15211        ac_save_CC=$CC
15212        while :; do
15213          # IRIX 6.2 and later do not support large files by default,
15214          # so use the C compiler's -n32 option if that helps.
15215          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h.  */
15217 #include <sys/types.h>
15218  /* Check that off_t can represent 2**63 - 1 correctly.
15219     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15220     since some C++ compilers masquerading as C compilers
15221     incorrectly reject 9223372036854775807.  */
15222 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15223   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15224                        && LARGE_OFF_T % 2147483647 == 1)
15225                       ? 1 : -1];
15226 int
15227 main ()
15228 {
15229
15230   ;
15231   return 0;
15232 }
15233 _ACEOF
15234          if ac_fn_c_try_compile "$LINENO"; then :
15235   break
15236 fi
15237 rm -f core conftest.err conftest.$ac_objext
15238          CC="$CC -n32"
15239          if ac_fn_c_try_compile "$LINENO"; then :
15240   ac_cv_sys_largefile_CC=' -n32'; break
15241 fi
15242 rm -f core conftest.err conftest.$ac_objext
15243          break
15244        done
15245        CC=$ac_save_CC
15246        rm -f conftest.$ac_ext
15247     fi
15248 fi
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15250 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15251   if test "$ac_cv_sys_largefile_CC" != no; then
15252     CC=$CC$ac_cv_sys_largefile_CC
15253   fi
15254
15255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15256 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15257 if ${ac_cv_sys_file_offset_bits+:} false; then :
15258   $as_echo_n "(cached) " >&6
15259 else
15260   while :; do
15261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h.  */
15263 #include <sys/types.h>
15264  /* Check that off_t can represent 2**63 - 1 correctly.
15265     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15266     since some C++ compilers masquerading as C compilers
15267     incorrectly reject 9223372036854775807.  */
15268 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15269   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15270                        && LARGE_OFF_T % 2147483647 == 1)
15271                       ? 1 : -1];
15272 int
15273 main ()
15274 {
15275
15276   ;
15277   return 0;
15278 }
15279 _ACEOF
15280 if ac_fn_c_try_compile "$LINENO"; then :
15281   ac_cv_sys_file_offset_bits=no; break
15282 fi
15283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h.  */
15286 #define _FILE_OFFSET_BITS 64
15287 #include <sys/types.h>
15288  /* Check that off_t can represent 2**63 - 1 correctly.
15289     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15290     since some C++ compilers masquerading as C compilers
15291     incorrectly reject 9223372036854775807.  */
15292 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15293   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15294                        && LARGE_OFF_T % 2147483647 == 1)
15295                       ? 1 : -1];
15296 int
15297 main ()
15298 {
15299
15300   ;
15301   return 0;
15302 }
15303 _ACEOF
15304 if ac_fn_c_try_compile "$LINENO"; then :
15305   ac_cv_sys_file_offset_bits=64; break
15306 fi
15307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15308   ac_cv_sys_file_offset_bits=unknown
15309   break
15310 done
15311 fi
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15313 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15314 case $ac_cv_sys_file_offset_bits in #(
15315   no | unknown) ;;
15316   *)
15317 cat >>confdefs.h <<_ACEOF
15318 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15319 _ACEOF
15320 ;;
15321 esac
15322 rm -rf conftest*
15323   if test $ac_cv_sys_file_offset_bits = unknown; then
15324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15325 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15326 if ${ac_cv_sys_large_files+:} false; then :
15327   $as_echo_n "(cached) " >&6
15328 else
15329   while :; do
15330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h.  */
15332 #include <sys/types.h>
15333  /* Check that off_t can represent 2**63 - 1 correctly.
15334     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15335     since some C++ compilers masquerading as C compilers
15336     incorrectly reject 9223372036854775807.  */
15337 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15338   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15339                        && LARGE_OFF_T % 2147483647 == 1)
15340                       ? 1 : -1];
15341 int
15342 main ()
15343 {
15344
15345   ;
15346   return 0;
15347 }
15348 _ACEOF
15349 if ac_fn_c_try_compile "$LINENO"; then :
15350   ac_cv_sys_large_files=no; break
15351 fi
15352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h.  */
15355 #define _LARGE_FILES 1
15356 #include <sys/types.h>
15357  /* Check that off_t can represent 2**63 - 1 correctly.
15358     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15359     since some C++ compilers masquerading as C compilers
15360     incorrectly reject 9223372036854775807.  */
15361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15362   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15363                        && LARGE_OFF_T % 2147483647 == 1)
15364                       ? 1 : -1];
15365 int
15366 main ()
15367 {
15368
15369   ;
15370   return 0;
15371 }
15372 _ACEOF
15373 if ac_fn_c_try_compile "$LINENO"; then :
15374   ac_cv_sys_large_files=1; break
15375 fi
15376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15377   ac_cv_sys_large_files=unknown
15378   break
15379 done
15380 fi
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15382 $as_echo "$ac_cv_sys_large_files" >&6; }
15383 case $ac_cv_sys_large_files in #(
15384   no | unknown) ;;
15385   *)
15386 cat >>confdefs.h <<_ACEOF
15387 #define _LARGE_FILES $ac_cv_sys_large_files
15388 _ACEOF
15389 ;;
15390 esac
15391 rm -rf conftest*
15392   fi
15393
15394
15395 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
15396
15397 fi
15398
15399    case $ac_cv_prog_cc_stdc in #(
15400   no) :
15401     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
15402   *) :
15403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
15404 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
15405 if ${ac_cv_prog_cc_c99+:} false; then :
15406   $as_echo_n "(cached) " >&6
15407 else
15408   ac_cv_prog_cc_c99=no
15409 ac_save_CC=$CC
15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h.  */
15412 #include <stdarg.h>
15413 #include <stdbool.h>
15414 #include <stdlib.h>
15415 #include <wchar.h>
15416 #include <stdio.h>
15417
15418 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
15419 #define debug(...) fprintf (stderr, __VA_ARGS__)
15420 #define showlist(...) puts (#__VA_ARGS__)
15421 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
15422 static void
15423 test_varargs_macros (void)
15424 {
15425   int x = 1234;
15426   int y = 5678;
15427   debug ("Flag");
15428   debug ("X = %d\n", x);
15429   showlist (The first, second, and third items.);
15430   report (x>y, "x is %d but y is %d", x, y);
15431 }
15432
15433 // Check long long types.
15434 #define BIG64 18446744073709551615ull
15435 #define BIG32 4294967295ul
15436 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
15437 #if !BIG_OK
15438   your preprocessor is broken;
15439 #endif
15440 #if BIG_OK
15441 #else
15442   your preprocessor is broken;
15443 #endif
15444 static long long int bignum = -9223372036854775807LL;
15445 static unsigned long long int ubignum = BIG64;
15446
15447 struct incomplete_array
15448 {
15449   int datasize;
15450   double data[];
15451 };
15452
15453 struct named_init {
15454   int number;
15455   const wchar_t *name;
15456   double average;
15457 };
15458
15459 typedef const char *ccp;
15460
15461 static inline int
15462 test_restrict (ccp restrict text)
15463 {
15464   // See if C++-style comments work.
15465   // Iterate through items via the restricted pointer.
15466   // Also check for declarations in for loops.
15467   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
15468     continue;
15469   return 0;
15470 }
15471
15472 // Check varargs and va_copy.
15473 static void
15474 test_varargs (const char *format, ...)
15475 {
15476   va_list args;
15477   va_start (args, format);
15478   va_list args_copy;
15479   va_copy (args_copy, args);
15480
15481   const char *str;
15482   int number;
15483   float fnumber;
15484
15485   while (*format)
15486     {
15487       switch (*format++)
15488         {
15489         case 's': // string
15490           str = va_arg (args_copy, const char *);
15491           break;
15492         case 'd': // int
15493           number = va_arg (args_copy, int);
15494           break;
15495         case 'f': // float
15496           fnumber = va_arg (args_copy, double);
15497           break;
15498         default:
15499           break;
15500         }
15501     }
15502   va_end (args_copy);
15503   va_end (args);
15504 }
15505
15506 int
15507 main ()
15508 {
15509
15510   // Check bool.
15511   _Bool success = false;
15512
15513   // Check restrict.
15514   if (test_restrict ("String literal") == 0)
15515     success = true;
15516   char *restrict newvar = "Another string";
15517
15518   // Check varargs.
15519   test_varargs ("s, d' f .", "string", 65, 34.234);
15520   test_varargs_macros ();
15521
15522   // Check flexible array members.
15523   struct incomplete_array *ia =
15524     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
15525   ia->datasize = 10;
15526   for (int i = 0; i < ia->datasize; ++i)
15527     ia->data[i] = i * 1.234;
15528
15529   // Check named initializers.
15530   struct named_init ni = {
15531     .number = 34,
15532     .name = L"Test wide string",
15533     .average = 543.34343,
15534   };
15535
15536   ni.number = 58;
15537
15538   int dynamic_array[ni.number];
15539   dynamic_array[ni.number - 1] = 543;
15540
15541   // work around unused variable warnings
15542   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
15543           || dynamic_array[ni.number - 1] != 543);
15544
15545   ;
15546   return 0;
15547 }
15548 _ACEOF
15549 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
15550 do
15551   CC="$ac_save_CC $ac_arg"
15552   if ac_fn_c_try_compile "$LINENO"; then :
15553   ac_cv_prog_cc_c99=$ac_arg
15554 fi
15555 rm -f core conftest.err conftest.$ac_objext
15556   test "x$ac_cv_prog_cc_c99" != "xno" && break
15557 done
15558 rm -f conftest.$ac_ext
15559 CC=$ac_save_CC
15560
15561 fi
15562 # AC_CACHE_VAL
15563 case "x$ac_cv_prog_cc_c99" in
15564   x)
15565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15566 $as_echo "none needed" >&6; } ;;
15567   xno)
15568     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15569 $as_echo "unsupported" >&6; } ;;
15570   *)
15571     CC="$CC $ac_cv_prog_cc_c99"
15572     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
15573 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
15574 esac
15575 if test "x$ac_cv_prog_cc_c99" != xno; then :
15576   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
15577 else
15578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
15579 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
15580 if ${ac_cv_prog_cc_c89+:} false; then :
15581   $as_echo_n "(cached) " >&6
15582 else
15583   ac_cv_prog_cc_c89=no
15584 ac_save_CC=$CC
15585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15586 /* end confdefs.h.  */
15587 #include <stdarg.h>
15588 #include <stdio.h>
15589 struct stat;
15590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15591 struct buf { int x; };
15592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15593 static char *e (p, i)
15594      char **p;
15595      int i;
15596 {
15597   return p[i];
15598 }
15599 static char *f (char * (*g) (char **, int), char **p, ...)
15600 {
15601   char *s;
15602   va_list v;
15603   va_start (v,p);
15604   s = g (p, va_arg (v,int));
15605   va_end (v);
15606   return s;
15607 }
15608
15609 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15610    function prototypes and stuff, but not '\xHH' hex character constants.
15611    These don't provoke an error unfortunately, instead are silently treated
15612    as 'x'.  The following induces an error, until -std is added to get
15613    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15614    array size at least.  It's necessary to write '\x00'==0 to get something
15615    that's true only with -std.  */
15616 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15617
15618 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15619    inside strings and character constants.  */
15620 #define FOO(x) 'x'
15621 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15622
15623 int test (int i, double x);
15624 struct s1 {int (*f) (int a);};
15625 struct s2 {int (*f) (double a);};
15626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15627 int argc;
15628 char **argv;
15629 int
15630 main ()
15631 {
15632 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15633   ;
15634   return 0;
15635 }
15636 _ACEOF
15637 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15638         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15639 do
15640   CC="$ac_save_CC $ac_arg"
15641   if ac_fn_c_try_compile "$LINENO"; then :
15642   ac_cv_prog_cc_c89=$ac_arg
15643 fi
15644 rm -f core conftest.err conftest.$ac_objext
15645   test "x$ac_cv_prog_cc_c89" != "xno" && break
15646 done
15647 rm -f conftest.$ac_ext
15648 CC=$ac_save_CC
15649
15650 fi
15651 # AC_CACHE_VAL
15652 case "x$ac_cv_prog_cc_c89" in
15653   x)
15654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15655 $as_echo "none needed" >&6; } ;;
15656   xno)
15657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15658 $as_echo "unsupported" >&6; } ;;
15659   *)
15660     CC="$CC $ac_cv_prog_cc_c89"
15661     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15662 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15663 esac
15664 if test "x$ac_cv_prog_cc_c89" != xno; then :
15665   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
15666 else
15667   ac_cv_prog_cc_stdc=no
15668 fi
15669
15670 fi
15671  ;;
15672 esac
15673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
15674 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
15675   if ${ac_cv_prog_cc_stdc+:} false; then :
15676   $as_echo_n "(cached) " >&6
15677 fi
15678
15679   case $ac_cv_prog_cc_stdc in #(
15680   no) :
15681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15682 $as_echo "unsupported" >&6; } ;; #(
15683   '') :
15684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15685 $as_echo "none needed" >&6; } ;; #(
15686   *) :
15687     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
15688 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
15689 esac
15690
15691
15692
15693
15694
15695
15696   # Check whether --enable-threads was given.
15697 if test "${enable_threads+set}" = set; then :
15698   enableval=$enable_threads; gl_use_threads=$enableval
15699 else
15700   if test -n "$gl_use_threads_default"; then
15701        gl_use_threads="$gl_use_threads_default"
15702      else
15703        case "$host_os" in
15704                                                                osf*) gl_use_threads=no ;;
15705          cygwin*)
15706                case `uname -r` in
15707                  1.[0-5].*) gl_use_threads=no ;;
15708                  *)         gl_use_threads=yes ;;
15709                esac
15710                ;;
15711          *)    gl_use_threads=yes ;;
15712        esac
15713      fi
15714
15715 fi
15716
15717   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
15718     # For using <pthread.h>:
15719     case "$host_os" in
15720       osf*)
15721         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
15722         # groks <pthread.h>. cc also understands the flag -pthread, but
15723         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
15724         # 2. putting a flag into CPPFLAGS that has an effect on the linker
15725         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
15726         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
15727         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
15728         ;;
15729     esac
15730     # Some systems optimize for single-threaded programs by default, and
15731     # need special flags to disable these optimizations. For example, the
15732     # definition of 'errno' in <errno.h>.
15733     case "$host_os" in
15734       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
15735       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
15736     esac
15737   fi
15738
15739
15740
15741
15742   # Code from module absolute-header:
15743   # Code from module alloca:
15744   # Code from module alloca-opt:
15745   # Code from module areadlink-with-size:
15746   # Code from module argp:
15747   # Code from module at-internal:
15748   # Code from module bitrotate:
15749   # Code from module btowc:
15750   # Code from module canonicalize:
15751   # Code from module canonicalize-lgpl:
15752   # Code from module chdir:
15753   # Code from module chdir-long:
15754   # Code from module clock-time:
15755   # Code from module cloexec:
15756   # Code from module close:
15757   # Code from module closedir:
15758   # Code from module configmake:
15759   # Code from module d-ino:
15760   # Code from module d-type:
15761   # Code from module dirent:
15762   # Code from module dirfd:
15763   # Code from module dirname:
15764   # Code from module dirname-lgpl:
15765   # Code from module dosname:
15766   # Code from module double-slash-root:
15767   # Code from module dup:
15768   # Code from module dup2:
15769   # Code from module environ:
15770   # Code from module errno:
15771   # Code from module error:
15772   # Code from module exitfail:
15773   # Code from module extensions:
15774
15775   # Code from module extern-inline:
15776   # Code from module fchdir:
15777   # Code from module fcntl:
15778   # Code from module fcntl-h:
15779   # Code from module fd-hook:
15780   # Code from module fdopendir:
15781   # Code from module file-set:
15782   # Code from module filename:
15783   # Code from module filenamecat-lgpl:
15784   # Code from module float:
15785   # Code from module flock:
15786   # Code from module fnmatch:
15787   # Code from module fnmatch-gnu:
15788   # Code from module fstat:
15789   # Code from module fstatat:
15790   # Code from module futimens:
15791   # Code from module getcwd:
15792   # Code from module getcwd-lgpl:
15793   # Code from module getdelim:
15794   # Code from module getdtablesize:
15795   # Code from module getline:
15796   # Code from module getlogin_r:
15797   # Code from module getopt-gnu:
15798   # Code from module getopt-posix:
15799   # Code from module gettext:
15800   # Code from module gettext-h:
15801   # Code from module gettime:
15802   # Code from module gettimeofday:
15803   # Code from module gitlog-to-changelog:
15804   # Code from module glob:
15805   # Code from module gnupload:
15806   # Code from module hash:
15807   # Code from module hash-pjw:
15808   # Code from module hash-triple:
15809   # Code from module havelib:
15810   # Code from module idpriv-drop:
15811   # Code from module idpriv-droptemp:
15812   # Code from module include_next:
15813   # Code from module intprops:
15814   # Code from module ioctl:
15815   # Code from module langinfo:
15816   # Code from module largefile:
15817
15818   # Code from module lib-ignore:
15819   # Code from module localcharset:
15820   # Code from module locale:
15821   # Code from module localeconv:
15822   # Code from module lock:
15823   # Code from module lstat:
15824   # Code from module malloc-gnu:
15825   # Code from module malloc-posix:
15826   # Code from module malloca:
15827   # Code from module mbrtowc:
15828   # Code from module mbsinit:
15829   # Code from module mbsrtowcs:
15830   # Code from module mbtowc:
15831   # Code from module memchr:
15832   # Code from module memmem:
15833   # Code from module memmem-simple:
15834   # Code from module mempcpy:
15835   # Code from module memrchr:
15836   # Code from module minmax:
15837   # Code from module mkdtemp:
15838   # Code from module mkstemp:
15839   # Code from module msvc-inval:
15840   # Code from module msvc-nothrow:
15841   # Code from module multiarch:
15842   # Code from module nanosleep:
15843   # Code from module nl_langinfo:
15844   # Code from module nocrash:
15845   # Code from module nonblocking:
15846   # Code from module open:
15847   # Code from module openat:
15848   # Code from module openat-die:
15849   # Code from module openat-h:
15850   # Code from module opendir:
15851   # Code from module pathmax:
15852   # Code from module raise:
15853   # Code from module rawmemchr:
15854   # Code from module readdir:
15855   # Code from module readlink:
15856   # Code from module realloc-posix:
15857   # Code from module regex:
15858   # Code from module rename:
15859   # Code from module rewinddir:
15860   # Code from module rmdir:
15861   # Code from module same:
15862   # Code from module same-inode:
15863   # Code from module save-cwd:
15864   # Code from module secure_getenv:
15865   # Code from module select:
15866   # Code from module setenv:
15867   # Code from module sigaction:
15868   # Code from module signal:
15869   # Code from module signal-h:
15870   # Code from module sigprocmask:
15871   # Code from module size_max:
15872   # Code from module sleep:
15873   # Code from module snippet/_Noreturn:
15874   # Code from module snippet/arg-nonnull:
15875   # Code from module snippet/c++defs:
15876   # Code from module snippet/warn-on-use:
15877   # Code from module socketlib:
15878   # Code from module sockets:
15879   # Code from module socklen:
15880   # Code from module ssize_t:
15881   # Code from module stat:
15882   # Code from module stat-time:
15883   # Code from module stdalign:
15884   # Code from module stdarg:
15885
15886
15887
15888   # Code from module stdbool:
15889   # Code from module stddef:
15890   # Code from module stdint:
15891   # Code from module stdio:
15892   # Code from module stdlib:
15893   # Code from module strcase:
15894   # Code from module strcasestr:
15895   # Code from module strcasestr-simple:
15896   # Code from module strchrnul:
15897   # Code from module strdup-posix:
15898   # Code from module streq:
15899   # Code from module strerror:
15900   # Code from module strerror-override:
15901   # Code from module string:
15902   # Code from module strings:
15903   # Code from module strndup:
15904   # Code from module strnlen:
15905   # Code from module strnlen1:
15906   # Code from module strsep:
15907   # Code from module sys_file:
15908   # Code from module sys_ioctl:
15909   # Code from module sys_select:
15910   # Code from module sys_socket:
15911   # Code from module sys_stat:
15912   # Code from module sys_time:
15913   # Code from module sys_types:
15914   # Code from module sys_uio:
15915   # Code from module sysexits:
15916   # Code from module tempname:
15917   # Code from module threadlib:
15918
15919
15920
15921   # Code from module time:
15922   # Code from module timespec:
15923   # Code from module unistd:
15924   # Code from module unistd-safer:
15925   # Code from module unsetenv:
15926   # Code from module utimens:
15927   # Code from module vasnprintf:
15928   # Code from module vasprintf:
15929   # Code from module verify:
15930   # Code from module vsnprintf:
15931   # Code from module warnings:
15932   # Code from module wchar:
15933   # Code from module wcrtomb:
15934   # Code from module wctype-h:
15935   # Code from module xalloc:
15936   # Code from module xalloc-die:
15937   # Code from module xalloc-oversized:
15938   # Code from module xgetcwd:
15939   # Code from module xsize:
15940   # Code from module xstrndup:
15941   # Code from module xvasprintf:
15942
15943 ac_ext=c
15944 ac_cpp='$CPP $CPPFLAGS'
15945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15949 $as_echo_n "checking how to run the C preprocessor... " >&6; }
15950 # On Suns, sometimes $CPP names a directory.
15951 if test -n "$CPP" && test -d "$CPP"; then
15952   CPP=
15953 fi
15954 if test -z "$CPP"; then
15955   if ${ac_cv_prog_CPP+:} false; then :
15956   $as_echo_n "(cached) " >&6
15957 else
15958       # Double quotes because CPP needs to be expanded
15959     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
15960     do
15961       ac_preproc_ok=false
15962 for ac_c_preproc_warn_flag in '' yes
15963 do
15964   # Use a header file that comes with gcc, so configuring glibc
15965   # with a fresh cross-compiler works.
15966   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15967   # <limits.h> exists even on freestanding compilers.
15968   # On the NeXT, cc -E runs the code through the compiler's parser,
15969   # not just through cpp. "Syntax error" is here to catch this case.
15970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h.  */
15972 #ifdef __STDC__
15973 # include <limits.h>
15974 #else
15975 # include <assert.h>
15976 #endif
15977                      Syntax error
15978 _ACEOF
15979 if ac_fn_c_try_cpp "$LINENO"; then :
15980
15981 else
15982   # Broken: fails on valid input.
15983 continue
15984 fi
15985 rm -f conftest.err conftest.i conftest.$ac_ext
15986
15987   # OK, works on sane cases.  Now check whether nonexistent headers
15988   # can be detected and how.
15989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h.  */
15991 #include <ac_nonexistent.h>
15992 _ACEOF
15993 if ac_fn_c_try_cpp "$LINENO"; then :
15994   # Broken: success on invalid input.
15995 continue
15996 else
15997   # Passes both tests.
15998 ac_preproc_ok=:
15999 break
16000 fi
16001 rm -f conftest.err conftest.i conftest.$ac_ext
16002
16003 done
16004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16005 rm -f conftest.i conftest.err conftest.$ac_ext
16006 if $ac_preproc_ok; then :
16007   break
16008 fi
16009
16010     done
16011     ac_cv_prog_CPP=$CPP
16012
16013 fi
16014   CPP=$ac_cv_prog_CPP
16015 else
16016   ac_cv_prog_CPP=$CPP
16017 fi
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
16019 $as_echo "$CPP" >&6; }
16020 ac_preproc_ok=false
16021 for ac_c_preproc_warn_flag in '' yes
16022 do
16023   # Use a header file that comes with gcc, so configuring glibc
16024   # with a fresh cross-compiler works.
16025   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16026   # <limits.h> exists even on freestanding compilers.
16027   # On the NeXT, cc -E runs the code through the compiler's parser,
16028   # not just through cpp. "Syntax error" is here to catch this case.
16029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16030 /* end confdefs.h.  */
16031 #ifdef __STDC__
16032 # include <limits.h>
16033 #else
16034 # include <assert.h>
16035 #endif
16036                      Syntax error
16037 _ACEOF
16038 if ac_fn_c_try_cpp "$LINENO"; then :
16039
16040 else
16041   # Broken: fails on valid input.
16042 continue
16043 fi
16044 rm -f conftest.err conftest.i conftest.$ac_ext
16045
16046   # OK, works on sane cases.  Now check whether nonexistent headers
16047   # can be detected and how.
16048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h.  */
16050 #include <ac_nonexistent.h>
16051 _ACEOF
16052 if ac_fn_c_try_cpp "$LINENO"; then :
16053   # Broken: success on invalid input.
16054 continue
16055 else
16056   # Passes both tests.
16057 ac_preproc_ok=:
16058 break
16059 fi
16060 rm -f conftest.err conftest.i conftest.$ac_ext
16061
16062 done
16063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16064 rm -f conftest.i conftest.err conftest.$ac_ext
16065 if $ac_preproc_ok; then :
16066
16067 else
16068   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16070 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
16071 See \`config.log' for more details" "$LINENO" 5; }
16072 fi
16073
16074 ac_ext=c
16075 ac_cpp='$CPP $CPPFLAGS'
16076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16079
16080 CFLAGS="$CFLAGS -Wall"
16081 case $host_os in
16082         ultrix4.3*)
16083                                                                                                                 CFLAGS="$CFLAGS -YPOSIX"
16084                 ;;
16085 esac
16086 if test "$GCC" = yes
16087 then
16088         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
16089 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
16090 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
16091   $as_echo_n "(cached) " >&6
16092 else
16093
16094   gl_save_compiler_FLAGS="$CFLAGS"
16095   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
16096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16097 /* end confdefs.h.  */
16098
16099 int
16100 main ()
16101 {
16102
16103   ;
16104   return 0;
16105 }
16106 _ACEOF
16107 if ac_fn_c_try_link "$LINENO"; then :
16108   gl_cv_warn_c__Werror__Wunknown_warning_option=yes
16109 else
16110   gl_cv_warn_c__Werror__Wunknown_warning_option=no
16111 fi
16112 rm -f core conftest.err conftest.$ac_objext \
16113     conftest$ac_exeext conftest.$ac_ext
16114   CFLAGS="$gl_save_compiler_FLAGS"
16115
16116 fi
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
16118 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
16119 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
16120   gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
16121 else
16122   gl_unknown_warnings_are_errors=
16123 fi
16124
16125
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -W" >&5
16127 $as_echo_n "checking whether C compiler handles -W... " >&6; }
16128 if ${gl_cv_warn_c__W+:} false; then :
16129   $as_echo_n "(cached) " >&6
16130 else
16131
16132   gl_save_compiler_FLAGS="$CFLAGS"
16133   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -W"
16134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135 /* end confdefs.h.  */
16136
16137 int
16138 main ()
16139 {
16140
16141   ;
16142   return 0;
16143 }
16144 _ACEOF
16145 if ac_fn_c_try_link "$LINENO"; then :
16146   gl_cv_warn_c__W=yes
16147 else
16148   gl_cv_warn_c__W=no
16149 fi
16150 rm -f core conftest.err conftest.$ac_objext \
16151     conftest$ac_exeext conftest.$ac_ext
16152   CFLAGS="$gl_save_compiler_FLAGS"
16153
16154 fi
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__W" >&5
16156 $as_echo "$gl_cv_warn_c__W" >&6; }
16157 if test "x$gl_cv_warn_c__W" = xyes; then :
16158   as_fn_append WARN_CFLAGS " -W"
16159 fi
16160
16161
16162
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wpointer-arith" >&5
16164 $as_echo_n "checking whether C compiler handles -Wpointer-arith... " >&6; }
16165 if ${gl_cv_warn_c__Wpointer_arith+:} false; then :
16166   $as_echo_n "(cached) " >&6
16167 else
16168
16169   gl_save_compiler_FLAGS="$CFLAGS"
16170   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-arith"
16171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16172 /* end confdefs.h.  */
16173
16174 int
16175 main ()
16176 {
16177
16178   ;
16179   return 0;
16180 }
16181 _ACEOF
16182 if ac_fn_c_try_link "$LINENO"; then :
16183   gl_cv_warn_c__Wpointer_arith=yes
16184 else
16185   gl_cv_warn_c__Wpointer_arith=no
16186 fi
16187 rm -f core conftest.err conftest.$ac_objext \
16188     conftest$ac_exeext conftest.$ac_ext
16189   CFLAGS="$gl_save_compiler_FLAGS"
16190
16191 fi
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wpointer_arith" >&5
16193 $as_echo "$gl_cv_warn_c__Wpointer_arith" >&6; }
16194 if test "x$gl_cv_warn_c__Wpointer_arith" = xyes; then :
16195   as_fn_append WARN_CFLAGS " -Wpointer-arith"
16196 fi
16197
16198
16199
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wwrite-strings" >&5
16201 $as_echo_n "checking whether C compiler handles -Wwrite-strings... " >&6; }
16202 if ${gl_cv_warn_c__Wwrite_strings+:} false; then :
16203   $as_echo_n "(cached) " >&6
16204 else
16205
16206   gl_save_compiler_FLAGS="$CFLAGS"
16207   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings"
16208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h.  */
16210
16211 int
16212 main ()
16213 {
16214
16215   ;
16216   return 0;
16217 }
16218 _ACEOF
16219 if ac_fn_c_try_link "$LINENO"; then :
16220   gl_cv_warn_c__Wwrite_strings=yes
16221 else
16222   gl_cv_warn_c__Wwrite_strings=no
16223 fi
16224 rm -f core conftest.err conftest.$ac_objext \
16225     conftest$ac_exeext conftest.$ac_ext
16226   CFLAGS="$gl_save_compiler_FLAGS"
16227
16228 fi
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wwrite_strings" >&5
16230 $as_echo "$gl_cv_warn_c__Wwrite_strings" >&6; }
16231 if test "x$gl_cv_warn_c__Wwrite_strings" = xyes; then :
16232   as_fn_append WARN_CFLAGS " -Wwrite-strings"
16233 fi
16234
16235
16236
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wstrict-prototypes" >&5
16238 $as_echo_n "checking whether C compiler handles -Wstrict-prototypes... " >&6; }
16239 if ${gl_cv_warn_c__Wstrict_prototypes+:} false; then :
16240   $as_echo_n "(cached) " >&6
16241 else
16242
16243   gl_save_compiler_FLAGS="$CFLAGS"
16244   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstrict-prototypes"
16245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16246 /* end confdefs.h.  */
16247
16248 int
16249 main ()
16250 {
16251
16252   ;
16253   return 0;
16254 }
16255 _ACEOF
16256 if ac_fn_c_try_link "$LINENO"; then :
16257   gl_cv_warn_c__Wstrict_prototypes=yes
16258 else
16259   gl_cv_warn_c__Wstrict_prototypes=no
16260 fi
16261 rm -f core conftest.err conftest.$ac_objext \
16262     conftest$ac_exeext conftest.$ac_ext
16263   CFLAGS="$gl_save_compiler_FLAGS"
16264
16265 fi
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wstrict_prototypes" >&5
16267 $as_echo "$gl_cv_warn_c__Wstrict_prototypes" >&6; }
16268 if test "x$gl_cv_warn_c__Wstrict_prototypes" = xyes; then :
16269   as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
16270 fi
16271
16272
16273
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wshadow" >&5
16275 $as_echo_n "checking whether C compiler handles -Wshadow... " >&6; }
16276 if ${gl_cv_warn_c__Wshadow+:} false; then :
16277   $as_echo_n "(cached) " >&6
16278 else
16279
16280   gl_save_compiler_FLAGS="$CFLAGS"
16281   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wshadow"
16282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16283 /* end confdefs.h.  */
16284
16285 int
16286 main ()
16287 {
16288
16289   ;
16290   return 0;
16291 }
16292 _ACEOF
16293 if ac_fn_c_try_link "$LINENO"; then :
16294   gl_cv_warn_c__Wshadow=yes
16295 else
16296   gl_cv_warn_c__Wshadow=no
16297 fi
16298 rm -f core conftest.err conftest.$ac_objext \
16299     conftest$ac_exeext conftest.$ac_ext
16300   CFLAGS="$gl_save_compiler_FLAGS"
16301
16302 fi
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wshadow" >&5
16304 $as_echo "$gl_cv_warn_c__Wshadow" >&6; }
16305 if test "x$gl_cv_warn_c__Wshadow" = xyes; then :
16306   as_fn_append WARN_CFLAGS " -Wshadow"
16307 fi
16308
16309
16310
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wformat-security" >&5
16312 $as_echo_n "checking whether C compiler handles -Wformat-security... " >&6; }
16313 if ${gl_cv_warn_c__Wformat_security+:} false; then :
16314   $as_echo_n "(cached) " >&6
16315 else
16316
16317   gl_save_compiler_FLAGS="$CFLAGS"
16318   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-security"
16319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h.  */
16321
16322 int
16323 main ()
16324 {
16325
16326   ;
16327   return 0;
16328 }
16329 _ACEOF
16330 if ac_fn_c_try_link "$LINENO"; then :
16331   gl_cv_warn_c__Wformat_security=yes
16332 else
16333   gl_cv_warn_c__Wformat_security=no
16334 fi
16335 rm -f core conftest.err conftest.$ac_objext \
16336     conftest$ac_exeext conftest.$ac_ext
16337   CFLAGS="$gl_save_compiler_FLAGS"
16338
16339 fi
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wformat_security" >&5
16341 $as_echo "$gl_cv_warn_c__Wformat_security" >&6; }
16342 if test "x$gl_cv_warn_c__Wformat_security" = xyes; then :
16343   as_fn_append WARN_CFLAGS " -Wformat-security"
16344 fi
16345
16346
16347
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wredundant-decls" >&5
16349 $as_echo_n "checking whether C compiler handles -Wredundant-decls... " >&6; }
16350 if ${gl_cv_warn_c__Wredundant_decls+:} false; then :
16351   $as_echo_n "(cached) " >&6
16352 else
16353
16354   gl_save_compiler_FLAGS="$CFLAGS"
16355   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wredundant-decls"
16356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h.  */
16358
16359 int
16360 main ()
16361 {
16362
16363   ;
16364   return 0;
16365 }
16366 _ACEOF
16367 if ac_fn_c_try_link "$LINENO"; then :
16368   gl_cv_warn_c__Wredundant_decls=yes
16369 else
16370   gl_cv_warn_c__Wredundant_decls=no
16371 fi
16372 rm -f core conftest.err conftest.$ac_objext \
16373     conftest$ac_exeext conftest.$ac_ext
16374   CFLAGS="$gl_save_compiler_FLAGS"
16375
16376 fi
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wredundant_decls" >&5
16378 $as_echo "$gl_cv_warn_c__Wredundant_decls" >&6; }
16379 if test "x$gl_cv_warn_c__Wredundant_decls" = xyes; then :
16380   as_fn_append WARN_CFLAGS " -Wredundant-decls"
16381 fi
16382
16383
16384
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
16386 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
16387 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
16388   $as_echo_n "(cached) " >&6
16389 else
16390
16391   gl_save_compiler_FLAGS="$CFLAGS"
16392   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
16393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16394 /* end confdefs.h.  */
16395
16396 int
16397 main ()
16398 {
16399
16400   ;
16401   return 0;
16402 }
16403 _ACEOF
16404 if ac_fn_c_try_link "$LINENO"; then :
16405   gl_cv_warn_c__Wno_missing_field_initializers=yes
16406 else
16407   gl_cv_warn_c__Wno_missing_field_initializers=no
16408 fi
16409 rm -f core conftest.err conftest.$ac_objext \
16410     conftest$ac_exeext conftest.$ac_ext
16411   CFLAGS="$gl_save_compiler_FLAGS"
16412
16413 fi
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
16415 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
16416 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
16417   as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
16418 fi
16419
16420
16421 fi
16422
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16424 $as_echo_n "checking whether ln -s works... " >&6; }
16425 LN_S=$as_ln_s
16426 if test "$LN_S" = "ln -s"; then
16427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16428 $as_echo "yes" >&6; }
16429 else
16430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16431 $as_echo "no, using $LN_S" >&6; }
16432 fi
16433
16434 for ac_prog in cat
16435 do
16436   # Extract the first word of "$ac_prog", so it can be a program name with args.
16437 set dummy $ac_prog; ac_word=$2
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16439 $as_echo_n "checking for $ac_word... " >&6; }
16440 if ${ac_cv_prog_cat+:} false; then :
16441   $as_echo_n "(cached) " >&6
16442 else
16443   if test -n "$cat"; then
16444   ac_cv_prog_cat="$cat" # Let the user override the test.
16445 else
16446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16447 for as_dir in $PATH
16448 do
16449   IFS=$as_save_IFS
16450   test -z "$as_dir" && as_dir=.
16451     for ac_exec_ext in '' $ac_executable_extensions; do
16452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16453     ac_cv_prog_cat="$ac_prog"
16454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16455     break 2
16456   fi
16457 done
16458   done
16459 IFS=$as_save_IFS
16460
16461 fi
16462 fi
16463 cat=$ac_cv_prog_cat
16464 if test -n "$cat"; then
16465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cat" >&5
16466 $as_echo "$cat" >&6; }
16467 else
16468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16469 $as_echo "no" >&6; }
16470 fi
16471
16472
16473   test -n "$cat" && break
16474 done
16475
16476
16477 # Check whether --with-browser was given.
16478 if test "${with_browser+set}" = set; then :
16479   withval=$with_browser; if test "$withval" = yes || test "$withval" = no; then :
16480   as_fn_error $? "--with-browser requires an argument" "$LINENO" 5
16481 else
16482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for browser" >&5
16483 $as_echo_n "checking for browser... " >&6; }
16484                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
16485 $as_echo "$withval" >&6; }
16486                      browser="$withval"
16487 fi
16488 else
16489   for ac_prog in www-browser lynx elinks w3m
16490 do
16491   # Extract the first word of "$ac_prog", so it can be a program name with args.
16492 set dummy $ac_prog; ac_word=$2
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16494 $as_echo_n "checking for $ac_word... " >&6; }
16495 if ${ac_cv_prog_browser+:} false; then :
16496   $as_echo_n "(cached) " >&6
16497 else
16498   if test -n "$browser"; then
16499   ac_cv_prog_browser="$browser" # Let the user override the test.
16500 else
16501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16502 for as_dir in $PATH
16503 do
16504   IFS=$as_save_IFS
16505   test -z "$as_dir" && as_dir=.
16506     for ac_exec_ext in '' $ac_executable_extensions; do
16507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16508     ac_cv_prog_browser="$ac_prog"
16509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16510     break 2
16511   fi
16512 done
16513   done
16514 IFS=$as_save_IFS
16515
16516 fi
16517 fi
16518 browser=$ac_cv_prog_browser
16519 if test -n "$browser"; then
16520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $browser" >&5
16521 $as_echo "$browser" >&6; }
16522 else
16523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16524 $as_echo "no" >&6; }
16525 fi
16526
16527
16528   test -n "$browser" && break
16529 done
16530
16531 fi
16532
16533 if test -n "$browser"; then
16534
16535 $as_echo "#define HAVE_BROWSER 1" >>confdefs.h
16536
16537 fi
16538 test -n "$browser" && browser="exec $browser"
16539 for ac_prog in tr
16540 do
16541   # Extract the first word of "$ac_prog", so it can be a program name with args.
16542 set dummy $ac_prog; ac_word=$2
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16544 $as_echo_n "checking for $ac_word... " >&6; }
16545 if ${ac_cv_prog_tr+:} false; then :
16546   $as_echo_n "(cached) " >&6
16547 else
16548   if test -n "$tr"; then
16549   ac_cv_prog_tr="$tr" # Let the user override the test.
16550 else
16551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16552 for as_dir in $PATH
16553 do
16554   IFS=$as_save_IFS
16555   test -z "$as_dir" && as_dir=.
16556     for ac_exec_ext in '' $ac_executable_extensions; do
16557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16558     ac_cv_prog_tr="$ac_prog"
16559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16560     break 2
16561   fi
16562 done
16563   done
16564 IFS=$as_save_IFS
16565
16566 fi
16567 fi
16568 tr=$ac_cv_prog_tr
16569 if test -n "$tr"; then
16570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tr" >&5
16571 $as_echo "$tr" >&6; }
16572 else
16573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16574 $as_echo "no" >&6; }
16575 fi
16576
16577
16578   test -n "$tr" && break
16579 done
16580
16581 for ac_prog in grep
16582 do
16583   # Extract the first word of "$ac_prog", so it can be a program name with args.
16584 set dummy $ac_prog; ac_word=$2
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16586 $as_echo_n "checking for $ac_word... " >&6; }
16587 if ${ac_cv_prog_grep+:} false; then :
16588   $as_echo_n "(cached) " >&6
16589 else
16590   if test -n "$grep"; then
16591   ac_cv_prog_grep="$grep" # Let the user override the test.
16592 else
16593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16594 for as_dir in $PATH
16595 do
16596   IFS=$as_save_IFS
16597   test -z "$as_dir" && as_dir=.
16598     for ac_exec_ext in '' $ac_executable_extensions; do
16599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16600     ac_cv_prog_grep="$ac_prog"
16601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16602     break 2
16603   fi
16604 done
16605   done
16606 IFS=$as_save_IFS
16607
16608 fi
16609 fi
16610 grep=$ac_cv_prog_grep
16611 if test -n "$grep"; then
16612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grep" >&5
16613 $as_echo "$grep" >&6; }
16614 else
16615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16616 $as_echo "no" >&6; }
16617 fi
16618
16619
16620   test -n "$grep" && break
16621 done
16622
16623
16624 # Check whether --with-pager was given.
16625 if test "${with_pager+set}" = set; then :
16626   withval=$with_pager; if test "$withval" = yes || test "$withval" = no; then :
16627   as_fn_error $? "--with-pager requires an argument" "$LINENO" 5
16628 else
16629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pager" >&5
16630 $as_echo_n "checking for pager... " >&6; }
16631                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
16632 $as_echo "$withval" >&6; }
16633                      pager="$withval"
16634 fi
16635 else
16636   for ac_prog in pager less more
16637 do
16638   # Extract the first word of "$ac_prog", so it can be a program name with args.
16639 set dummy $ac_prog; ac_word=$2
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16641 $as_echo_n "checking for $ac_word... " >&6; }
16642 if ${ac_cv_prog_pager+:} false; then :
16643   $as_echo_n "(cached) " >&6
16644 else
16645   if test -n "$pager"; then
16646   ac_cv_prog_pager="$pager" # Let the user override the test.
16647 else
16648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16649 for as_dir in $PATH
16650 do
16651   IFS=$as_save_IFS
16652   test -z "$as_dir" && as_dir=.
16653     for ac_exec_ext in '' $ac_executable_extensions; do
16654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16655     ac_cv_prog_pager="$ac_prog"
16656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16657     break 2
16658   fi
16659 done
16660   done
16661 IFS=$as_save_IFS
16662
16663 fi
16664 fi
16665 pager=$ac_cv_prog_pager
16666 if test -n "$pager"; then
16667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pager" >&5
16668 $as_echo "$pager" >&6; }
16669 else
16670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16671 $as_echo "no" >&6; }
16672 fi
16673
16674
16675   test -n "$pager" && break
16676 done
16677
16678 fi
16679
16680 if test -n "$pager"; then
16681
16682 $as_echo "#define HAVE_PAGER 1" >>confdefs.h
16683
16684 fi
16685
16686 # Define below (in list of preference) *roff macros to check for.
16687 macros="andoc an doc"
16688
16689 # We have problems here, as different systems have different *roff
16690 # formatters and they accept different options and do different things :(
16691
16692 # Check whether --with-nroff was given.
16693 if test "${with_nroff+set}" = set; then :
16694   withval=$with_nroff; if test "$withval" = yes || test "$withval" = no; then :
16695   as_fn_error $? "--with-nroff requires an argument" "$LINENO" 5
16696 else
16697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nroff" >&5
16698 $as_echo_n "checking for nroff... " >&6; }
16699                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
16700 $as_echo "$withval" >&6; }
16701                      nroff="$withval"
16702 fi
16703 else
16704   for ac_prog in nroff gnroff groff
16705 do
16706   # Extract the first word of "$ac_prog", so it can be a program name with args.
16707 set dummy $ac_prog; ac_word=$2
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16709 $as_echo_n "checking for $ac_word... " >&6; }
16710 if ${ac_cv_prog_nroff+:} false; then :
16711   $as_echo_n "(cached) " >&6
16712 else
16713   if test -n "$nroff"; then
16714   ac_cv_prog_nroff="$nroff" # Let the user override the test.
16715 else
16716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16717 for as_dir in $PATH
16718 do
16719   IFS=$as_save_IFS
16720   test -z "$as_dir" && as_dir=.
16721     for ac_exec_ext in '' $ac_executable_extensions; do
16722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16723     ac_cv_prog_nroff="$ac_prog"
16724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16725     break 2
16726   fi
16727 done
16728   done
16729 IFS=$as_save_IFS
16730
16731 fi
16732 fi
16733 nroff=$ac_cv_prog_nroff
16734 if test -n "$nroff"; then
16735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nroff" >&5
16736 $as_echo "$nroff" >&6; }
16737 else
16738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16739 $as_echo "no" >&6; }
16740 fi
16741
16742
16743   test -n "$nroff" && break
16744 done
16745
16746 fi
16747
16748 if test -n "$nroff"; then
16749
16750 $as_echo "#define HAVE_NROFF 1" >>confdefs.h
16751
16752 fi
16753 if test -n "$nroff"
16754 then
16755         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nroff is GNU nroff" >&5
16756 $as_echo_n "checking whether nroff is GNU nroff... " >&6; }
16757
16758 if ${man_cv_prog_gnu_nroff+:} false; then :
16759   $as_echo_n "(cached) " >&6
16760 else
16761   if test `$nroff <<EOF | tr -d '\n'
16762 \\n(.g
16763 EOF
16764 ` -eq 1
16765    then
16766         man_cv_prog_gnu_nroff=yes
16767    else
16768         man_cv_prog_gnu_nroff=no
16769    fi
16770 fi
16771
16772
16773 if test "$man_cv_prog_gnu_nroff" = "yes"
16774 then
16775
16776 $as_echo "#define GNU_NROFF 1" >>confdefs.h
16777
16778 fi
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $man_cv_prog_gnu_nroff" >&5
16780 $as_echo "$man_cv_prog_gnu_nroff" >&6; }
16781
16782         if test "$man_cv_prog_gnu_nroff" != "yes"
16783         then
16784                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nroff is Heirloom nroff" >&5
16785 $as_echo_n "checking whether nroff is Heirloom nroff... " >&6; }
16786
16787 if ${man_cv_prog_heirloom_nroff+:} false; then :
16788   $as_echo_n "(cached) " >&6
16789 else
16790   man_heirloom_ext_plain=`$nroff 2>/dev/null <<EOF | tr -d '\n'
16791 \\n(.X
16792 EOF
16793 `
16794    man_heirloom_ext_mg=`$nroff -mg 2>/dev/null <<EOF | tr -d '\n'
16795 \\n(.X
16796 EOF
16797 `
16798    if test "x$man_heirloom_ext_plain" != 0 && \
16799       test "x$man_heirloom_ext_mg" != 0 && \
16800       test "x$man_heirloom_ext_plain" != "x$man_heirloom_extflag_mg"
16801    then
16802      man_cv_prog_heirloom_nroff=yes
16803    else
16804      man_cv_prog_heirloom_nroff=no
16805    fi
16806 fi
16807
16808
16809 if test "$man_cv_prog_heirloom_nroff" = "yes"
16810 then
16811
16812 $as_echo "#define HEIRLOOM_NROFF 1" >>confdefs.h
16813
16814 fi
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $man_cv_prog_heirloom_nroff" >&5
16816 $as_echo "$man_cv_prog_heirloom_nroff" >&6; }
16817
16818         fi
16819         if test -n "$nroff_device"
16820         then
16821                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that nroff works with argument$nroff_device" >&5
16822 $as_echo_n "checking that nroff works with argument$nroff_device... " >&6; }
16823                 # We cannot cache this result as it can change between runs
16824                 # of configure.
16825                 if $nroff $nroff_device </dev/null >/dev/null 2>&1 3>&1
16826                 then
16827                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16828 $as_echo "yes" >&6; }
16829                 else
16830                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16831 $as_echo "no" >&6; }
16832                         as_fn_error $? "nroff does not work with argument$nroff_device" "$LINENO" 5
16833                 fi
16834         fi
16835         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate nroff macro" >&5
16836 $as_echo_n "checking for appropriate nroff macro... " >&6; }
16837         if ${man_cv_prog_nroff_macro+:} false; then :
16838   $as_echo_n "(cached) " >&6
16839 else
16840
16841
16842         for macro in $macros
16843         do
16844                 if $nroff -m$macro $nroff_device </dev/null >/dev/null 2>&1 3>&1
16845                 then
16846                         man_cv_prog_nroff_macro=-m$macro
16847                         break
16848                 fi
16849         done
16850 fi
16851
16852
16853         if test -n "$man_cv_prog_nroff_macro"
16854         then
16855                 if test "$man_cv_prog_heirloom_nroff" = "yes"
16856                 then
16857                         # Heirloom works best with some extra options:
16858                         #   -mg: groff compatibility
16859                         #   -msafe: disable privileged operations
16860                         #   -mpadj: clean up line breaking
16861                         man_cv_prog_nroff_macro="-mg -msafe -mpadj ${man_cv_prog_nroff_macro}"
16862                 fi
16863                 nroff="$nroff ${man_cv_prog_nroff_macro}"
16864                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $man_cv_prog_nroff_macro" >&5
16865 $as_echo "$man_cv_prog_nroff_macro" >&6; }
16866         else
16867                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ambiguous" >&5
16868 $as_echo "ambiguous" >&6; }
16869                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: please edit include/manconfig.h and add nroff definition" >&5
16870 $as_echo "$as_me: WARNING: please edit include/manconfig.h and add nroff definition" >&2;}
16871         fi
16872 else
16873         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find an nroff-like program, formatting of manual page source will not be supported." >&5
16874 $as_echo "$as_me: WARNING: Cannot find an nroff-like program, formatting of manual page source will not be supported." >&2;}
16875         nroff="(nroff not installed)"
16876
16877 $as_echo "#define NROFF_MISSING 1" >>confdefs.h
16878
16879 fi
16880
16881 for ac_prog in groff
16882 do
16883   # Extract the first word of "$ac_prog", so it can be a program name with args.
16884 set dummy $ac_prog; ac_word=$2
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16886 $as_echo_n "checking for $ac_word... " >&6; }
16887 if ${ac_cv_prog_troff+:} false; then :
16888   $as_echo_n "(cached) " >&6
16889 else
16890   if test -n "$troff"; then
16891   ac_cv_prog_troff="$troff" # Let the user override the test.
16892 else
16893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16894 for as_dir in $PATH
16895 do
16896   IFS=$as_save_IFS
16897   test -z "$as_dir" && as_dir=.
16898     for ac_exec_ext in '' $ac_executable_extensions; do
16899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16900     ac_cv_prog_troff="$ac_prog"
16901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16902     break 2
16903   fi
16904 done
16905   done
16906 IFS=$as_save_IFS
16907
16908 fi
16909 fi
16910 troff=$ac_cv_prog_troff
16911 if test -n "$troff"; then
16912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $troff" >&5
16913 $as_echo "$troff" >&6; }
16914 else
16915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16916 $as_echo "no" >&6; }
16917 fi
16918
16919
16920   test -n "$troff" && break
16921 done
16922
16923 if test -n "$troff"
16924 then
16925         troff_is_groff=yes
16926
16927 $as_echo "#define TROFF_IS_GROFF 1" >>confdefs.h
16928
16929         TROFF=groff
16930 else
16931         troff_is_groff=no
16932         for ac_prog in troff gtroff
16933 do
16934   # Extract the first word of "$ac_prog", so it can be a program name with args.
16935 set dummy $ac_prog; ac_word=$2
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16937 $as_echo_n "checking for $ac_word... " >&6; }
16938 if ${ac_cv_prog_troff+:} false; then :
16939   $as_echo_n "(cached) " >&6
16940 else
16941   if test -n "$troff"; then
16942   ac_cv_prog_troff="$troff" # Let the user override the test.
16943 else
16944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16945 for as_dir in $PATH
16946 do
16947   IFS=$as_save_IFS
16948   test -z "$as_dir" && as_dir=.
16949     for ac_exec_ext in '' $ac_executable_extensions; do
16950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16951     ac_cv_prog_troff="$ac_prog"
16952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16953     break 2
16954   fi
16955 done
16956   done
16957 IFS=$as_save_IFS
16958
16959 fi
16960 fi
16961 troff=$ac_cv_prog_troff
16962 if test -n "$troff"; then
16963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $troff" >&5
16964 $as_echo "$troff" >&6; }
16965 else
16966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16967 $as_echo "no" >&6; }
16968 fi
16969
16970
16971   test -n "$troff" && break
16972 done
16973
16974         TROFF=troff
16975 fi
16976
16977 if test -n "$troff"
16978 then
16979
16980 $as_echo "#define HAS_TROFF 1" >>confdefs.h
16981
16982         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate $TROFF options" >&5
16983 $as_echo_n "checking for appropriate $TROFF options... " >&6; }
16984         if ${man_cv_prog_troff_options+:} false; then :
16985   $as_echo_n "(cached) " >&6
16986 else
16987
16988         # Do a quick test to see if -t works [AIX needs this], groff doesn't
16989         # as it indicates pre-process with tbl.
16990         test "$TROFF" = "troff" && $troff -t </dev/null >/dev/null 2>&1 3>&1 \
16991                                 && troff_filter="-t "
16992         for macro in $macros
16993         do
16994                 if $troff $troff_filter -m$macro </dev/null >/dev/null 2>&1 3>&1
16995                 then
16996                         man_cv_prog_troff_options="${troff_filter}-m${macro}"
16997                         break
16998                 fi
16999         done
17000 fi
17001
17002         if test -n "$man_cv_prog_troff_options"
17003         then
17004                 if test "$man_cv_prog_heirloom_nroff" = "yes"
17005                 then
17006                         # Heirloom works best with some extra options:
17007                         #   -mg: groff compatibility
17008                         #   -msafe: disable privileged operations
17009                         #   -mpadj: clean up line breaking
17010                         man_cv_prog_troff_options="-mg -msafe -mpadj ${man_cv_prog_troff_options}"
17011                 fi
17012                 troff="$troff $man_cv_prog_troff_options"
17013                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $man_cv_prog_troff_options" >&5
17014 $as_echo "$man_cv_prog_troff_options" >&6; }
17015         else
17016                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ambiguous" >&5
17017 $as_echo "ambiguous" >&6; }
17018                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: please edit include/manconfig.h and add troff definition" >&5
17019 $as_echo "$as_me: WARNING: please edit include/manconfig.h and add troff definition" >&2;}
17020         fi
17021 else
17022         troff="(troff not installed)"
17023 fi
17024
17025 if test -n "$nroff"
17026 then
17027         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nroff supports warning control" >&5
17028 $as_echo_n "checking whether nroff supports warning control... " >&6; }
17029 if ${man_cv_prog_nroff_warnings+:} false; then :
17030   $as_echo_n "(cached) " >&6
17031 else
17032
17033                 if test "x$troff_is_groff" = xyes && \
17034                    nroff -wmac </dev/null >/dev/null 2>&1
17035                 then
17036                         man_cv_prog_nroff_warnings=yes
17037                 else
17038                         man_cv_prog_nroff_warnings=no
17039                 fi
17040 fi
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $man_cv_prog_nroff_warnings" >&5
17042 $as_echo "$man_cv_prog_nroff_warnings" >&6; }
17043         if test "x$man_cv_prog_nroff_warnings" = xyes; then
17044
17045 $as_echo "#define NROFF_WARNINGS 1" >>confdefs.h
17046
17047         fi
17048 fi
17049
17050 for ac_prog in gpreconv preconv
17051 do
17052   # Extract the first word of "$ac_prog", so it can be a program name with args.
17053 set dummy $ac_prog; ac_word=$2
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17055 $as_echo_n "checking for $ac_word... " >&6; }
17056 if ${ac_cv_prog_preconv+:} false; then :
17057   $as_echo_n "(cached) " >&6
17058 else
17059   if test -n "$preconv"; then
17060   ac_cv_prog_preconv="$preconv" # Let the user override the test.
17061 else
17062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17063 for as_dir in $PATH
17064 do
17065   IFS=$as_save_IFS
17066   test -z "$as_dir" && as_dir=.
17067     for ac_exec_ext in '' $ac_executable_extensions; do
17068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17069     ac_cv_prog_preconv="$ac_prog"
17070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17071     break 2
17072   fi
17073 done
17074   done
17075 IFS=$as_save_IFS
17076
17077 fi
17078 fi
17079 preconv=$ac_cv_prog_preconv
17080 if test -n "$preconv"; then
17081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $preconv" >&5
17082 $as_echo "$preconv" >&6; }
17083 else
17084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17085 $as_echo "no" >&6; }
17086 fi
17087
17088
17089   test -n "$preconv" && break
17090 done
17091
17092
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for groff with Debian multibyte patch or real Unicode support" >&5
17094 $as_echo_n "checking for groff with Debian multibyte patch or real Unicode support... " >&6; }
17095 man_mb_groff=no
17096 # Check whether --enable-mb-groff was given.
17097 if test "${enable_mb_groff+set}" = set; then :
17098   enableval=$enable_mb_groff; if test "$enableval" = "yes"
17099          then
17100                 man_mb_groff=yes
17101          fi
17102 else
17103   if test -n "$preconv"
17104          then
17105                 man_mb_groff=yes
17106          elif test -n "$troff" && test "$troff_is_groff" = "yes"
17107          then
17108                 if $troff -Tnippon </dev/null >/dev/null 2>&1
17109                 then
17110                         man_mb_groff=yes
17111                 fi
17112          fi
17113 fi
17114
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $man_mb_groff" >&5
17116 $as_echo "$man_mb_groff" >&6; }
17117 if test "$man_mb_groff" = "yes"
17118 then
17119
17120 $as_echo "#define MULTIBYTE_GROFF 1" >>confdefs.h
17121
17122 fi
17123
17124
17125 # Check whether --with-eqn was given.
17126 if test "${with_eqn+set}" = set; then :
17127   withval=$with_eqn; if test "$withval" = yes || test "$withval" = no; then :
17128   as_fn_error $? "--with-eqn requires an argument" "$LINENO" 5
17129 else
17130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eqn" >&5
17131 $as_echo_n "checking for eqn... " >&6; }
17132                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17133 $as_echo "$withval" >&6; }
17134                      eqn="$withval"
17135 fi
17136 else
17137   for ac_prog in eqn geqn
17138 do
17139   # Extract the first word of "$ac_prog", so it can be a program name with args.
17140 set dummy $ac_prog; ac_word=$2
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17142 $as_echo_n "checking for $ac_word... " >&6; }
17143 if ${ac_cv_prog_eqn+:} false; then :
17144   $as_echo_n "(cached) " >&6
17145 else
17146   if test -n "$eqn"; then
17147   ac_cv_prog_eqn="$eqn" # Let the user override the test.
17148 else
17149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17150 for as_dir in $PATH
17151 do
17152   IFS=$as_save_IFS
17153   test -z "$as_dir" && as_dir=.
17154     for ac_exec_ext in '' $ac_executable_extensions; do
17155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17156     ac_cv_prog_eqn="$ac_prog"
17157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17158     break 2
17159   fi
17160 done
17161   done
17162 IFS=$as_save_IFS
17163
17164 fi
17165 fi
17166 eqn=$ac_cv_prog_eqn
17167 if test -n "$eqn"; then
17168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $eqn" >&5
17169 $as_echo "$eqn" >&6; }
17170 else
17171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17172 $as_echo "no" >&6; }
17173 fi
17174
17175
17176   test -n "$eqn" && break
17177 done
17178
17179 fi
17180
17181 if test -n "$eqn"; then
17182
17183 $as_echo "#define HAVE_EQN 1" >>confdefs.h
17184
17185 fi
17186
17187 # Check whether --with-neqn was given.
17188 if test "${with_neqn+set}" = set; then :
17189   withval=$with_neqn; if test "$withval" = yes || test "$withval" = no; then :
17190   as_fn_error $? "--with-neqn requires an argument" "$LINENO" 5
17191 else
17192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for neqn" >&5
17193 $as_echo_n "checking for neqn... " >&6; }
17194                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17195 $as_echo "$withval" >&6; }
17196                      neqn="$withval"
17197 fi
17198 else
17199   for ac_prog in neqn gneqn
17200 do
17201   # Extract the first word of "$ac_prog", so it can be a program name with args.
17202 set dummy $ac_prog; ac_word=$2
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17204 $as_echo_n "checking for $ac_word... " >&6; }
17205 if ${ac_cv_prog_neqn+:} false; then :
17206   $as_echo_n "(cached) " >&6
17207 else
17208   if test -n "$neqn"; then
17209   ac_cv_prog_neqn="$neqn" # Let the user override the test.
17210 else
17211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17212 for as_dir in $PATH
17213 do
17214   IFS=$as_save_IFS
17215   test -z "$as_dir" && as_dir=.
17216     for ac_exec_ext in '' $ac_executable_extensions; do
17217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17218     ac_cv_prog_neqn="$ac_prog"
17219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17220     break 2
17221   fi
17222 done
17223   done
17224 IFS=$as_save_IFS
17225
17226 fi
17227 fi
17228 neqn=$ac_cv_prog_neqn
17229 if test -n "$neqn"; then
17230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $neqn" >&5
17231 $as_echo "$neqn" >&6; }
17232 else
17233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17234 $as_echo "no" >&6; }
17235 fi
17236
17237
17238   test -n "$neqn" && break
17239 done
17240
17241 fi
17242
17243 if test -n "$neqn"; then
17244
17245 $as_echo "#define HAVE_NEQN 1" >>confdefs.h
17246
17247 fi
17248 # If we fail to find an neqn, use eqn and try to force it to output for an
17249 # ascii device. As this is only relevant for equations (?), not using latin1
17250 # should be acceptable. -Tlatin1 is ignored by some eqn implementations.
17251 if test -z "$neqn"
17252 then
17253         test -n "$eqn" &&
17254         (test -n "$nroff_device" && neqn="$eqn -T$nroff_device" || neqn="$eqn -Tascii")
17255 fi
17256
17257 # Check whether --with-tbl was given.
17258 if test "${with_tbl+set}" = set; then :
17259   withval=$with_tbl; if test "$withval" = yes || test "$withval" = no; then :
17260   as_fn_error $? "--with-tbl requires an argument" "$LINENO" 5
17261 else
17262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tbl" >&5
17263 $as_echo_n "checking for tbl... " >&6; }
17264                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17265 $as_echo "$withval" >&6; }
17266                      tbl="$withval"
17267 fi
17268 else
17269   for ac_prog in tbl gtbl
17270 do
17271   # Extract the first word of "$ac_prog", so it can be a program name with args.
17272 set dummy $ac_prog; ac_word=$2
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17274 $as_echo_n "checking for $ac_word... " >&6; }
17275 if ${ac_cv_prog_tbl+:} false; then :
17276   $as_echo_n "(cached) " >&6
17277 else
17278   if test -n "$tbl"; then
17279   ac_cv_prog_tbl="$tbl" # Let the user override the test.
17280 else
17281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17282 for as_dir in $PATH
17283 do
17284   IFS=$as_save_IFS
17285   test -z "$as_dir" && as_dir=.
17286     for ac_exec_ext in '' $ac_executable_extensions; do
17287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17288     ac_cv_prog_tbl="$ac_prog"
17289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17290     break 2
17291   fi
17292 done
17293   done
17294 IFS=$as_save_IFS
17295
17296 fi
17297 fi
17298 tbl=$ac_cv_prog_tbl
17299 if test -n "$tbl"; then
17300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tbl" >&5
17301 $as_echo "$tbl" >&6; }
17302 else
17303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17304 $as_echo "no" >&6; }
17305 fi
17306
17307
17308   test -n "$tbl" && break
17309 done
17310
17311 fi
17312
17313 if test -n "$tbl"; then
17314
17315 $as_echo "#define HAVE_TBL 1" >>confdefs.h
17316
17317 fi
17318 TBL_X_FORMAT=
17319 if test -n "$tbl"
17320 then
17321         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tbl supports the 'x' format character" >&5
17322 $as_echo_n "checking whether tbl supports the 'x' format character... " >&6; }
17323 if ${man_cv_tbl_x_format+:} false; then :
17324   $as_echo_n "(cached) " >&6
17325 else
17326
17327                 if (echo .TS; echo ';'; echo lx.; echo SENTINEL; echo .TE) | \
17328                    $tbl 2>/dev/null | grep SENTINEL >/dev/null 2>&1
17329                 then
17330                         man_cv_tbl_x_format=yes
17331                 else
17332                         man_cv_tbl_x_format=no
17333                 fi
17334 fi
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $man_cv_tbl_x_format" >&5
17336 $as_echo "$man_cv_tbl_x_format" >&6; }
17337         if test "x$man_cv_tbl_x_format" = xyes
17338         then
17339                 TBL_X_FORMAT=x
17340         fi
17341 fi
17342
17343
17344 # Check whether --with-col was given.
17345 if test "${with_col+set}" = set; then :
17346   withval=$with_col; if test "$withval" = yes || test "$withval" = no; then :
17347   as_fn_error $? "--with-col requires an argument" "$LINENO" 5
17348 else
17349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for col" >&5
17350 $as_echo_n "checking for col... " >&6; }
17351                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17352 $as_echo "$withval" >&6; }
17353                      col="$withval"
17354 fi
17355 else
17356   for ac_prog in col gcol
17357 do
17358   # Extract the first word of "$ac_prog", so it can be a program name with args.
17359 set dummy $ac_prog; ac_word=$2
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17361 $as_echo_n "checking for $ac_word... " >&6; }
17362 if ${ac_cv_prog_col+:} false; then :
17363   $as_echo_n "(cached) " >&6
17364 else
17365   if test -n "$col"; then
17366   ac_cv_prog_col="$col" # Let the user override the test.
17367 else
17368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17369 for as_dir in $PATH
17370 do
17371   IFS=$as_save_IFS
17372   test -z "$as_dir" && as_dir=.
17373     for ac_exec_ext in '' $ac_executable_extensions; do
17374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17375     ac_cv_prog_col="$ac_prog"
17376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17377     break 2
17378   fi
17379 done
17380   done
17381 IFS=$as_save_IFS
17382
17383 fi
17384 fi
17385 col=$ac_cv_prog_col
17386 if test -n "$col"; then
17387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $col" >&5
17388 $as_echo "$col" >&6; }
17389 else
17390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17391 $as_echo "no" >&6; }
17392 fi
17393
17394
17395   test -n "$col" && break
17396 done
17397
17398 fi
17399
17400 if test -n "$col"; then
17401
17402 $as_echo "#define HAVE_COL 1" >>confdefs.h
17403
17404 fi
17405
17406 # Check whether --with-vgrind was given.
17407 if test "${with_vgrind+set}" = set; then :
17408   withval=$with_vgrind; if test "$withval" = yes || test "$withval" = no; then :
17409   as_fn_error $? "--with-vgrind requires an argument" "$LINENO" 5
17410 else
17411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vgrind" >&5
17412 $as_echo_n "checking for vgrind... " >&6; }
17413                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17414 $as_echo "$withval" >&6; }
17415                      vgrind="$withval"
17416 fi
17417 else
17418   for ac_prog in vgrind gvgrind
17419 do
17420   # Extract the first word of "$ac_prog", so it can be a program name with args.
17421 set dummy $ac_prog; ac_word=$2
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17423 $as_echo_n "checking for $ac_word... " >&6; }
17424 if ${ac_cv_prog_vgrind+:} false; then :
17425   $as_echo_n "(cached) " >&6
17426 else
17427   if test -n "$vgrind"; then
17428   ac_cv_prog_vgrind="$vgrind" # Let the user override the test.
17429 else
17430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17431 for as_dir in $PATH
17432 do
17433   IFS=$as_save_IFS
17434   test -z "$as_dir" && as_dir=.
17435     for ac_exec_ext in '' $ac_executable_extensions; do
17436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17437     ac_cv_prog_vgrind="$ac_prog"
17438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17439     break 2
17440   fi
17441 done
17442   done
17443 IFS=$as_save_IFS
17444
17445 fi
17446 fi
17447 vgrind=$ac_cv_prog_vgrind
17448 if test -n "$vgrind"; then
17449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vgrind" >&5
17450 $as_echo "$vgrind" >&6; }
17451 else
17452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17453 $as_echo "no" >&6; }
17454 fi
17455
17456
17457   test -n "$vgrind" && break
17458 done
17459
17460 fi
17461
17462 if test -n "$vgrind"; then
17463
17464 $as_echo "#define HAVE_VGRIND 1" >>confdefs.h
17465
17466 fi
17467
17468 # Check whether --with-refer was given.
17469 if test "${with_refer+set}" = set; then :
17470   withval=$with_refer; if test "$withval" = yes || test "$withval" = no; then :
17471   as_fn_error $? "--with-refer requires an argument" "$LINENO" 5
17472 else
17473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for refer" >&5
17474 $as_echo_n "checking for refer... " >&6; }
17475                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17476 $as_echo "$withval" >&6; }
17477                      refer="$withval"
17478 fi
17479 else
17480   for ac_prog in refer grefer
17481 do
17482   # Extract the first word of "$ac_prog", so it can be a program name with args.
17483 set dummy $ac_prog; ac_word=$2
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17485 $as_echo_n "checking for $ac_word... " >&6; }
17486 if ${ac_cv_prog_refer+:} false; then :
17487   $as_echo_n "(cached) " >&6
17488 else
17489   if test -n "$refer"; then
17490   ac_cv_prog_refer="$refer" # Let the user override the test.
17491 else
17492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17493 for as_dir in $PATH
17494 do
17495   IFS=$as_save_IFS
17496   test -z "$as_dir" && as_dir=.
17497     for ac_exec_ext in '' $ac_executable_extensions; do
17498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17499     ac_cv_prog_refer="$ac_prog"
17500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17501     break 2
17502   fi
17503 done
17504   done
17505 IFS=$as_save_IFS
17506
17507 fi
17508 fi
17509 refer=$ac_cv_prog_refer
17510 if test -n "$refer"; then
17511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $refer" >&5
17512 $as_echo "$refer" >&6; }
17513 else
17514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17515 $as_echo "no" >&6; }
17516 fi
17517
17518
17519   test -n "$refer" && break
17520 done
17521
17522 fi
17523
17524 if test -n "$refer"; then
17525
17526 $as_echo "#define HAVE_REFER 1" >>confdefs.h
17527
17528 fi
17529
17530 # Check whether --with-grap was given.
17531 if test "${with_grap+set}" = set; then :
17532   withval=$with_grap; if test "$withval" = yes || test "$withval" = no; then :
17533   as_fn_error $? "--with-grap requires an argument" "$LINENO" 5
17534 else
17535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grap" >&5
17536 $as_echo_n "checking for grap... " >&6; }
17537                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17538 $as_echo "$withval" >&6; }
17539                      grap="$withval"
17540 fi
17541 else
17542   for ac_prog in grap
17543 do
17544   # Extract the first word of "$ac_prog", so it can be a program name with args.
17545 set dummy $ac_prog; ac_word=$2
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17547 $as_echo_n "checking for $ac_word... " >&6; }
17548 if ${ac_cv_prog_grap+:} false; then :
17549   $as_echo_n "(cached) " >&6
17550 else
17551   if test -n "$grap"; then
17552   ac_cv_prog_grap="$grap" # Let the user override the test.
17553 else
17554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17555 for as_dir in $PATH
17556 do
17557   IFS=$as_save_IFS
17558   test -z "$as_dir" && as_dir=.
17559     for ac_exec_ext in '' $ac_executable_extensions; do
17560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17561     ac_cv_prog_grap="$ac_prog"
17562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17563     break 2
17564   fi
17565 done
17566   done
17567 IFS=$as_save_IFS
17568
17569 fi
17570 fi
17571 grap=$ac_cv_prog_grap
17572 if test -n "$grap"; then
17573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grap" >&5
17574 $as_echo "$grap" >&6; }
17575 else
17576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17577 $as_echo "no" >&6; }
17578 fi
17579
17580
17581   test -n "$grap" && break
17582 done
17583
17584 fi
17585
17586 if test -n "$grap"; then
17587
17588 $as_echo "#define HAVE_GRAP 1" >>confdefs.h
17589
17590 fi
17591
17592 # Check whether --with-pic was given.
17593 if test "${with_pic+set}" = set; then :
17594   withval=$with_pic; if test "$withval" = yes || test "$withval" = no; then :
17595   as_fn_error $? "--with-pic requires an argument" "$LINENO" 5
17596 else
17597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pic" >&5
17598 $as_echo_n "checking for pic... " >&6; }
17599                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17600 $as_echo "$withval" >&6; }
17601                      pic="$withval"
17602 fi
17603 else
17604   for ac_prog in pic gpic
17605 do
17606   # Extract the first word of "$ac_prog", so it can be a program name with args.
17607 set dummy $ac_prog; ac_word=$2
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17609 $as_echo_n "checking for $ac_word... " >&6; }
17610 if ${ac_cv_prog_pic+:} false; then :
17611   $as_echo_n "(cached) " >&6
17612 else
17613   if test -n "$pic"; then
17614   ac_cv_prog_pic="$pic" # Let the user override the test.
17615 else
17616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17617 for as_dir in $PATH
17618 do
17619   IFS=$as_save_IFS
17620   test -z "$as_dir" && as_dir=.
17621     for ac_exec_ext in '' $ac_executable_extensions; do
17622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17623     ac_cv_prog_pic="$ac_prog"
17624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17625     break 2
17626   fi
17627 done
17628   done
17629 IFS=$as_save_IFS
17630
17631 fi
17632 fi
17633 pic=$ac_cv_prog_pic
17634 if test -n "$pic"; then
17635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pic" >&5
17636 $as_echo "$pic" >&6; }
17637 else
17638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17639 $as_echo "no" >&6; }
17640 fi
17641
17642
17643   test -n "$pic" && break
17644 done
17645
17646 fi
17647
17648 if test -n "$pic"; then
17649
17650 $as_echo "#define HAVE_PIC 1" >>confdefs.h
17651
17652 fi
17653 test -n "$pic" && pic="$pic -S"
17654
17655
17656 # Check whether --with-gzip was given.
17657 if test "${with_gzip+set}" = set; then :
17658   withval=$with_gzip; if test "$withval" = yes || test "$withval" = no; then :
17659   as_fn_error $? "--with-gzip requires an argument" "$LINENO" 5
17660 else
17661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzip" >&5
17662 $as_echo_n "checking for gzip... " >&6; }
17663                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17664 $as_echo "$withval" >&6; }
17665                      gzip="$withval"
17666 fi
17667 else
17668   for ac_prog in gzip
17669 do
17670   # Extract the first word of "$ac_prog", so it can be a program name with args.
17671 set dummy $ac_prog; ac_word=$2
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17673 $as_echo_n "checking for $ac_word... " >&6; }
17674 if ${ac_cv_prog_gzip+:} false; then :
17675   $as_echo_n "(cached) " >&6
17676 else
17677   if test -n "$gzip"; then
17678   ac_cv_prog_gzip="$gzip" # Let the user override the test.
17679 else
17680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17681 for as_dir in $PATH
17682 do
17683   IFS=$as_save_IFS
17684   test -z "$as_dir" && as_dir=.
17685     for ac_exec_ext in '' $ac_executable_extensions; do
17686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17687     ac_cv_prog_gzip="$ac_prog"
17688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17689     break 2
17690   fi
17691 done
17692   done
17693 IFS=$as_save_IFS
17694
17695 fi
17696 fi
17697 gzip=$ac_cv_prog_gzip
17698 if test -n "$gzip"; then
17699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gzip" >&5
17700 $as_echo "$gzip" >&6; }
17701 else
17702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17703 $as_echo "no" >&6; }
17704 fi
17705
17706
17707   test -n "$gzip" && break
17708 done
17709
17710 fi
17711
17712 if test -n "$gzip"; then
17713
17714 $as_echo "#define HAVE_GZIP 1" >>confdefs.h
17715
17716 fi
17717 if test -n "$gzip"
17718 then
17719         gunzip="$gzip -dc"
17720         compressor="$gzip -c7"
17721         compress_ext="gz"
17722 fi
17723
17724 # Check whether --with-compress was given.
17725 if test "${with_compress+set}" = set; then :
17726   withval=$with_compress; if test "$withval" = yes || test "$withval" = no; then :
17727   as_fn_error $? "--with-compress requires an argument" "$LINENO" 5
17728 else
17729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress" >&5
17730 $as_echo_n "checking for compress... " >&6; }
17731                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17732 $as_echo "$withval" >&6; }
17733                      compress="$withval"
17734 fi
17735 else
17736   for ac_prog in compress
17737 do
17738   # Extract the first word of "$ac_prog", so it can be a program name with args.
17739 set dummy $ac_prog; ac_word=$2
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17741 $as_echo_n "checking for $ac_word... " >&6; }
17742 if ${ac_cv_prog_compress+:} false; then :
17743   $as_echo_n "(cached) " >&6
17744 else
17745   if test -n "$compress"; then
17746   ac_cv_prog_compress="$compress" # Let the user override the test.
17747 else
17748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17749 for as_dir in $PATH
17750 do
17751   IFS=$as_save_IFS
17752   test -z "$as_dir" && as_dir=.
17753     for ac_exec_ext in '' $ac_executable_extensions; do
17754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17755     ac_cv_prog_compress="$ac_prog"
17756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17757     break 2
17758   fi
17759 done
17760   done
17761 IFS=$as_save_IFS
17762
17763 fi
17764 fi
17765 compress=$ac_cv_prog_compress
17766 if test -n "$compress"; then
17767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compress" >&5
17768 $as_echo "$compress" >&6; }
17769 else
17770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17771 $as_echo "no" >&6; }
17772 fi
17773
17774
17775   test -n "$compress" && break
17776 done
17777
17778 fi
17779
17780 if test -n "$compress"; then
17781
17782 $as_echo "#define HAVE_COMPRESS 1" >>confdefs.h
17783
17784 fi
17785 if test -n "$compress"
17786 then
17787         uncompress="$compress -dc"
17788         if test -z "$gzip"
17789         then
17790                 compressor="$compress -c"
17791                 compress_ext="Z"
17792         fi
17793 fi
17794
17795 # Check whether --with-bzip2 was given.
17796 if test "${with_bzip2+set}" = set; then :
17797   withval=$with_bzip2; if test "$withval" = yes || test "$withval" = no; then :
17798   as_fn_error $? "--with-bzip2 requires an argument" "$LINENO" 5
17799 else
17800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzip2" >&5
17801 $as_echo_n "checking for bzip2... " >&6; }
17802                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17803 $as_echo "$withval" >&6; }
17804                      bzip2="$withval"
17805 fi
17806 else
17807   for ac_prog in bzip2
17808 do
17809   # Extract the first word of "$ac_prog", so it can be a program name with args.
17810 set dummy $ac_prog; ac_word=$2
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17812 $as_echo_n "checking for $ac_word... " >&6; }
17813 if ${ac_cv_prog_bzip2+:} false; then :
17814   $as_echo_n "(cached) " >&6
17815 else
17816   if test -n "$bzip2"; then
17817   ac_cv_prog_bzip2="$bzip2" # Let the user override the test.
17818 else
17819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17820 for as_dir in $PATH
17821 do
17822   IFS=$as_save_IFS
17823   test -z "$as_dir" && as_dir=.
17824     for ac_exec_ext in '' $ac_executable_extensions; do
17825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17826     ac_cv_prog_bzip2="$ac_prog"
17827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17828     break 2
17829   fi
17830 done
17831   done
17832 IFS=$as_save_IFS
17833
17834 fi
17835 fi
17836 bzip2=$ac_cv_prog_bzip2
17837 if test -n "$bzip2"; then
17838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bzip2" >&5
17839 $as_echo "$bzip2" >&6; }
17840 else
17841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17842 $as_echo "no" >&6; }
17843 fi
17844
17845
17846   test -n "$bzip2" && break
17847 done
17848
17849 fi
17850
17851 if test -n "$bzip2"; then
17852
17853 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
17854
17855 fi
17856 if test -n "$bzip2"
17857 then
17858         bunzip2="$bzip2 -dc"
17859 fi
17860
17861 # Check whether --with-xz was given.
17862 if test "${with_xz+set}" = set; then :
17863   withval=$with_xz; if test "$withval" = yes || test "$withval" = no; then :
17864   as_fn_error $? "--with-xz requires an argument" "$LINENO" 5
17865 else
17866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xz" >&5
17867 $as_echo_n "checking for xz... " >&6; }
17868                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17869 $as_echo "$withval" >&6; }
17870                      xz="$withval"
17871 fi
17872 else
17873   for ac_prog in xz
17874 do
17875   # Extract the first word of "$ac_prog", so it can be a program name with args.
17876 set dummy $ac_prog; ac_word=$2
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17878 $as_echo_n "checking for $ac_word... " >&6; }
17879 if ${ac_cv_prog_xz+:} false; then :
17880   $as_echo_n "(cached) " >&6
17881 else
17882   if test -n "$xz"; then
17883   ac_cv_prog_xz="$xz" # Let the user override the test.
17884 else
17885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17886 for as_dir in $PATH
17887 do
17888   IFS=$as_save_IFS
17889   test -z "$as_dir" && as_dir=.
17890     for ac_exec_ext in '' $ac_executable_extensions; do
17891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17892     ac_cv_prog_xz="$ac_prog"
17893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17894     break 2
17895   fi
17896 done
17897   done
17898 IFS=$as_save_IFS
17899
17900 fi
17901 fi
17902 xz=$ac_cv_prog_xz
17903 if test -n "$xz"; then
17904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xz" >&5
17905 $as_echo "$xz" >&6; }
17906 else
17907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17908 $as_echo "no" >&6; }
17909 fi
17910
17911
17912   test -n "$xz" && break
17913 done
17914
17915 fi
17916
17917 if test -n "$xz"; then
17918
17919 $as_echo "#define HAVE_XZ 1" >>confdefs.h
17920
17921 fi
17922 if test -n "$xz"
17923 then
17924         unxz="$xz -dc"
17925         unlzma=
17926 else
17927
17928 # Check whether --with-lzma was given.
17929 if test "${with_lzma+set}" = set; then :
17930   withval=$with_lzma; if test "$withval" = yes || test "$withval" = no; then :
17931   as_fn_error $? "--with-lzma requires an argument" "$LINENO" 5
17932 else
17933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma" >&5
17934 $as_echo_n "checking for lzma... " >&6; }
17935                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17936 $as_echo "$withval" >&6; }
17937                      lzma="$withval"
17938 fi
17939 else
17940   for ac_prog in lzma
17941 do
17942   # Extract the first word of "$ac_prog", so it can be a program name with args.
17943 set dummy $ac_prog; ac_word=$2
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17945 $as_echo_n "checking for $ac_word... " >&6; }
17946 if ${ac_cv_prog_lzma+:} false; then :
17947   $as_echo_n "(cached) " >&6
17948 else
17949   if test -n "$lzma"; then
17950   ac_cv_prog_lzma="$lzma" # Let the user override the test.
17951 else
17952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17953 for as_dir in $PATH
17954 do
17955   IFS=$as_save_IFS
17956   test -z "$as_dir" && as_dir=.
17957     for ac_exec_ext in '' $ac_executable_extensions; do
17958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17959     ac_cv_prog_lzma="$ac_prog"
17960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17961     break 2
17962   fi
17963 done
17964   done
17965 IFS=$as_save_IFS
17966
17967 fi
17968 fi
17969 lzma=$ac_cv_prog_lzma
17970 if test -n "$lzma"; then
17971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lzma" >&5
17972 $as_echo "$lzma" >&6; }
17973 else
17974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17975 $as_echo "no" >&6; }
17976 fi
17977
17978
17979   test -n "$lzma" && break
17980 done
17981
17982 fi
17983
17984 if test -n "$lzma"; then
17985
17986 $as_echo "#define HAVE_LZMA 1" >>confdefs.h
17987
17988 fi
17989         if test -n "$lzma"
17990         then
17991                 unlzma="$lzma -dc"
17992         fi
17993 fi
17994
17995 # Check whether --with-lzip was given.
17996 if test "${with_lzip+set}" = set; then :
17997   withval=$with_lzip; if test "$withval" = yes || test "$withval" = no; then :
17998   as_fn_error $? "--with-lzip requires an argument" "$LINENO" 5
17999 else
18000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzip" >&5
18001 $as_echo_n "checking for lzip... " >&6; }
18002                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
18003 $as_echo "$withval" >&6; }
18004                      lzip="$withval"
18005 fi
18006 else
18007   for ac_prog in lzip
18008 do
18009   # Extract the first word of "$ac_prog", so it can be a program name with args.
18010 set dummy $ac_prog; ac_word=$2
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18012 $as_echo_n "checking for $ac_word... " >&6; }
18013 if ${ac_cv_prog_lzip+:} false; then :
18014   $as_echo_n "(cached) " >&6
18015 else
18016   if test -n "$lzip"; then
18017   ac_cv_prog_lzip="$lzip" # Let the user override the test.
18018 else
18019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18020 for as_dir in $PATH
18021 do
18022   IFS=$as_save_IFS
18023   test -z "$as_dir" && as_dir=.
18024     for ac_exec_ext in '' $ac_executable_extensions; do
18025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18026     ac_cv_prog_lzip="$ac_prog"
18027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18028     break 2
18029   fi
18030 done
18031   done
18032 IFS=$as_save_IFS
18033
18034 fi
18035 fi
18036 lzip=$ac_cv_prog_lzip
18037 if test -n "$lzip"; then
18038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lzip" >&5
18039 $as_echo "$lzip" >&6; }
18040 else
18041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18042 $as_echo "no" >&6; }
18043 fi
18044
18045
18046   test -n "$lzip" && break
18047 done
18048
18049 fi
18050
18051 if test -n "$lzip"; then
18052
18053 $as_echo "#define HAVE_LZIP 1" >>confdefs.h
18054
18055 fi
18056 if test -n "$lzip"
18057 then
18058         unlzip="$lzip -dc"
18059 fi
18060 if test -n "$gzip" || test -n "$compress" || test -n "$bzip2" || test -n "$xz" || test -n "$lzip" || test -n "$lzma"
18061 then
18062
18063 $as_echo "#define COMP_CAT 1" >>confdefs.h
18064
18065
18066 $as_echo "#define COMP_SRC 1" >>confdefs.h
18067
18068 fi
18069
18070
18071
18072
18073
18074
18075
18076
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
18078 $as_echo_n "checking for gzopen in -lz... " >&6; }
18079 if ${ac_cv_lib_z_gzopen+:} false; then :
18080   $as_echo_n "(cached) " >&6
18081 else
18082   ac_check_lib_save_LIBS=$LIBS
18083 LIBS="-lz  $LIBS"
18084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h.  */
18086
18087 /* Override any GCC internal prototype to avoid an error.
18088    Use char because int might match the return type of a GCC
18089    builtin and then its argument prototype would still apply.  */
18090 #ifdef __cplusplus
18091 extern "C"
18092 #endif
18093 char gzopen ();
18094 int
18095 main ()
18096 {
18097 return gzopen ();
18098   ;
18099   return 0;
18100 }
18101 _ACEOF
18102 if ac_fn_c_try_link "$LINENO"; then :
18103   ac_cv_lib_z_gzopen=yes
18104 else
18105   ac_cv_lib_z_gzopen=no
18106 fi
18107 rm -f core conftest.err conftest.$ac_objext \
18108     conftest$ac_exeext conftest.$ac_ext
18109 LIBS=$ac_check_lib_save_LIBS
18110 fi
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18112 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
18113 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
18114
18115 cat >>confdefs.h <<_ACEOF
18116 #define HAVE_LIBZ 1
18117 _ACEOF
18118
18119    LIBCOMPRESS="-lz $LIBCOMPRESS"
18120 fi
18121
18122
18123
18124
18125 # Check for various header files and associated libraries.
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
18127 $as_echo_n "checking for library containing strerror... " >&6; }
18128 if ${ac_cv_search_strerror+:} false; then :
18129   $as_echo_n "(cached) " >&6
18130 else
18131   ac_func_search_save_LIBS=$LIBS
18132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h.  */
18134
18135 /* Override any GCC internal prototype to avoid an error.
18136    Use char because int might match the return type of a GCC
18137    builtin and then its argument prototype would still apply.  */
18138 #ifdef __cplusplus
18139 extern "C"
18140 #endif
18141 char strerror ();
18142 int
18143 main ()
18144 {
18145 return strerror ();
18146   ;
18147   return 0;
18148 }
18149 _ACEOF
18150 for ac_lib in '' cposix; do
18151   if test -z "$ac_lib"; then
18152     ac_res="none required"
18153   else
18154     ac_res=-l$ac_lib
18155     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18156   fi
18157   if ac_fn_c_try_link "$LINENO"; then :
18158   ac_cv_search_strerror=$ac_res
18159 fi
18160 rm -f core conftest.err conftest.$ac_objext \
18161     conftest$ac_exeext
18162   if ${ac_cv_search_strerror+:} false; then :
18163   break
18164 fi
18165 done
18166 if ${ac_cv_search_strerror+:} false; then :
18167
18168 else
18169   ac_cv_search_strerror=no
18170 fi
18171 rm conftest.$ac_ext
18172 LIBS=$ac_func_search_save_LIBS
18173 fi
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
18175 $as_echo "$ac_cv_search_strerror" >&6; }
18176 ac_res=$ac_cv_search_strerror
18177 if test "$ac_res" != no; then :
18178   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18179
18180 fi
18181
18182 for ac_prog in flex lex
18183 do
18184   # Extract the first word of "$ac_prog", so it can be a program name with args.
18185 set dummy $ac_prog; ac_word=$2
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18187 $as_echo_n "checking for $ac_word... " >&6; }
18188 if ${ac_cv_prog_LEX+:} false; then :
18189   $as_echo_n "(cached) " >&6
18190 else
18191   if test -n "$LEX"; then
18192   ac_cv_prog_LEX="$LEX" # Let the user override the test.
18193 else
18194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18195 for as_dir in $PATH
18196 do
18197   IFS=$as_save_IFS
18198   test -z "$as_dir" && as_dir=.
18199     for ac_exec_ext in '' $ac_executable_extensions; do
18200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18201     ac_cv_prog_LEX="$ac_prog"
18202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18203     break 2
18204   fi
18205 done
18206   done
18207 IFS=$as_save_IFS
18208
18209 fi
18210 fi
18211 LEX=$ac_cv_prog_LEX
18212 if test -n "$LEX"; then
18213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
18214 $as_echo "$LEX" >&6; }
18215 else
18216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18217 $as_echo "no" >&6; }
18218 fi
18219
18220
18221   test -n "$LEX" && break
18222 done
18223 test -n "$LEX" || LEX=":"
18224
18225 if test "x$LEX" != "x:"; then
18226   cat >conftest.l <<_ACEOF
18227 %%
18228 a { ECHO; }
18229 b { REJECT; }
18230 c { yymore (); }
18231 d { yyless (1); }
18232 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
18233     yyless ((input () != 0)); }
18234 f { unput (yytext[0]); }
18235 . { BEGIN INITIAL; }
18236 %%
18237 #ifdef YYTEXT_POINTER
18238 extern char *yytext;
18239 #endif
18240 int
18241 main (void)
18242 {
18243   return ! yylex () + ! yywrap ();
18244 }
18245 _ACEOF
18246 { { ac_try="$LEX conftest.l"
18247 case "(($ac_try" in
18248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249   *) ac_try_echo=$ac_try;;
18250 esac
18251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18252 $as_echo "$ac_try_echo"; } >&5
18253   (eval "$LEX conftest.l") 2>&5
18254   ac_status=$?
18255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18256   test $ac_status = 0; }
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
18258 $as_echo_n "checking lex output file root... " >&6; }
18259 if ${ac_cv_prog_lex_root+:} false; then :
18260   $as_echo_n "(cached) " >&6
18261 else
18262
18263 if test -f lex.yy.c; then
18264   ac_cv_prog_lex_root=lex.yy
18265 elif test -f lexyy.c; then
18266   ac_cv_prog_lex_root=lexyy
18267 else
18268   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
18269 fi
18270 fi
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
18272 $as_echo "$ac_cv_prog_lex_root" >&6; }
18273 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
18274
18275 if test -z "${LEXLIB+set}"; then
18276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
18277 $as_echo_n "checking lex library... " >&6; }
18278 if ${ac_cv_lib_lex+:} false; then :
18279   $as_echo_n "(cached) " >&6
18280 else
18281
18282     ac_save_LIBS=$LIBS
18283     ac_cv_lib_lex='none needed'
18284     for ac_lib in '' -lfl -ll; do
18285       LIBS="$ac_lib $ac_save_LIBS"
18286       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h.  */
18288 `cat $LEX_OUTPUT_ROOT.c`
18289 _ACEOF
18290 if ac_fn_c_try_link "$LINENO"; then :
18291   ac_cv_lib_lex=$ac_lib
18292 fi
18293 rm -f core conftest.err conftest.$ac_objext \
18294     conftest$ac_exeext conftest.$ac_ext
18295       test "$ac_cv_lib_lex" != 'none needed' && break
18296     done
18297     LIBS=$ac_save_LIBS
18298
18299 fi
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
18301 $as_echo "$ac_cv_lib_lex" >&6; }
18302   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
18303 fi
18304
18305
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
18307 $as_echo_n "checking whether yytext is a pointer... " >&6; }
18308 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
18309   $as_echo_n "(cached) " >&6
18310 else
18311   # POSIX says lex can declare yytext either as a pointer or an array; the
18312 # default is implementation-dependent.  Figure out which it is, since
18313 # not all implementations provide the %pointer and %array declarations.
18314 ac_cv_prog_lex_yytext_pointer=no
18315 ac_save_LIBS=$LIBS
18316 LIBS="$LEXLIB $ac_save_LIBS"
18317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18318 /* end confdefs.h.  */
18319
18320   #define YYTEXT_POINTER 1
18321 `cat $LEX_OUTPUT_ROOT.c`
18322 _ACEOF
18323 if ac_fn_c_try_link "$LINENO"; then :
18324   ac_cv_prog_lex_yytext_pointer=yes
18325 fi
18326 rm -f core conftest.err conftest.$ac_objext \
18327     conftest$ac_exeext conftest.$ac_ext
18328 LIBS=$ac_save_LIBS
18329
18330 fi
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
18332 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
18333 if test $ac_cv_prog_lex_yytext_pointer = yes; then
18334
18335 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
18336
18337 fi
18338 rm -f conftest.l $LEX_OUTPUT_ROOT.c
18339
18340 fi
18341
18342
18343
18344
18345
18346           LIBC_FATAL_STDERR_=1
18347   export LIBC_FATAL_STDERR_
18348
18349 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18350 if test "x$ac_cv_type_size_t" = xyes; then :
18351
18352 else
18353
18354 cat >>confdefs.h <<_ACEOF
18355 #define size_t unsigned int
18356 _ACEOF
18357
18358 fi
18359
18360 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18361 # for constant arguments.  Useless!
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18363 $as_echo_n "checking for working alloca.h... " >&6; }
18364 if ${ac_cv_working_alloca_h+:} false; then :
18365   $as_echo_n "(cached) " >&6
18366 else
18367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h.  */
18369 #include <alloca.h>
18370 int
18371 main ()
18372 {
18373 char *p = (char *) alloca (2 * sizeof (int));
18374                           if (p) return 0;
18375   ;
18376   return 0;
18377 }
18378 _ACEOF
18379 if ac_fn_c_try_link "$LINENO"; then :
18380   ac_cv_working_alloca_h=yes
18381 else
18382   ac_cv_working_alloca_h=no
18383 fi
18384 rm -f core conftest.err conftest.$ac_objext \
18385     conftest$ac_exeext conftest.$ac_ext
18386 fi
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18388 $as_echo "$ac_cv_working_alloca_h" >&6; }
18389 if test $ac_cv_working_alloca_h = yes; then
18390
18391 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18392
18393 fi
18394
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18396 $as_echo_n "checking for alloca... " >&6; }
18397 if ${ac_cv_func_alloca_works+:} false; then :
18398   $as_echo_n "(cached) " >&6
18399 else
18400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h.  */
18402 #ifdef __GNUC__
18403 # define alloca __builtin_alloca
18404 #else
18405 # ifdef _MSC_VER
18406 #  include <malloc.h>
18407 #  define alloca _alloca
18408 # else
18409 #  ifdef HAVE_ALLOCA_H
18410 #   include <alloca.h>
18411 #  else
18412 #   ifdef _AIX
18413  #pragma alloca
18414 #   else
18415 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18416 void *alloca (size_t);
18417 #    endif
18418 #   endif
18419 #  endif
18420 # endif
18421 #endif
18422
18423 int
18424 main ()
18425 {
18426 char *p = (char *) alloca (1);
18427                                     if (p) return 0;
18428   ;
18429   return 0;
18430 }
18431 _ACEOF
18432 if ac_fn_c_try_link "$LINENO"; then :
18433   ac_cv_func_alloca_works=yes
18434 else
18435   ac_cv_func_alloca_works=no
18436 fi
18437 rm -f core conftest.err conftest.$ac_objext \
18438     conftest$ac_exeext conftest.$ac_ext
18439 fi
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18441 $as_echo "$ac_cv_func_alloca_works" >&6; }
18442
18443 if test $ac_cv_func_alloca_works = yes; then
18444
18445 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18446
18447 else
18448   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18449 # that cause trouble.  Some versions do not even contain alloca or
18450 # contain a buggy version.  If you still want to use their alloca,
18451 # use ar to extract alloca.o from them instead of compiling alloca.c.
18452
18453
18454
18455
18456
18457 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18458
18459 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18460
18461
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18463 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18464 if ${ac_cv_os_cray+:} false; then :
18465   $as_echo_n "(cached) " >&6
18466 else
18467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18468 /* end confdefs.h.  */
18469 #if defined CRAY && ! defined CRAY2
18470 webecray
18471 #else
18472 wenotbecray
18473 #endif
18474
18475 _ACEOF
18476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18477   $EGREP "webecray" >/dev/null 2>&1; then :
18478   ac_cv_os_cray=yes
18479 else
18480   ac_cv_os_cray=no
18481 fi
18482 rm -f conftest*
18483
18484 fi
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18486 $as_echo "$ac_cv_os_cray" >&6; }
18487 if test $ac_cv_os_cray = yes; then
18488   for ac_func in _getb67 GETB67 getb67; do
18489     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18490 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18491 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18492
18493 cat >>confdefs.h <<_ACEOF
18494 #define CRAY_STACKSEG_END $ac_func
18495 _ACEOF
18496
18497     break
18498 fi
18499
18500   done
18501 fi
18502
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18504 $as_echo_n "checking stack direction for C alloca... " >&6; }
18505 if ${ac_cv_c_stack_direction+:} false; then :
18506   $as_echo_n "(cached) " >&6
18507 else
18508   if test "$cross_compiling" = yes; then :
18509   ac_cv_c_stack_direction=0
18510 else
18511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h.  */
18513 $ac_includes_default
18514 int
18515 find_stack_direction (int *addr, int depth)
18516 {
18517   int dir, dummy = 0;
18518   if (! addr)
18519     addr = &dummy;
18520   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18521   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18522   return dir + dummy;
18523 }
18524
18525 int
18526 main (int argc, char **argv)
18527 {
18528   return find_stack_direction (0, argc + !argv + 20) < 0;
18529 }
18530 _ACEOF
18531 if ac_fn_c_try_run "$LINENO"; then :
18532   ac_cv_c_stack_direction=1
18533 else
18534   ac_cv_c_stack_direction=-1
18535 fi
18536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18537   conftest.$ac_objext conftest.beam conftest.$ac_ext
18538 fi
18539
18540 fi
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18542 $as_echo "$ac_cv_c_stack_direction" >&6; }
18543 cat >>confdefs.h <<_ACEOF
18544 #define STACK_DIRECTION $ac_cv_c_stack_direction
18545 _ACEOF
18546
18547
18548 fi
18549
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18551 $as_echo_n "checking for inline... " >&6; }
18552 if ${ac_cv_c_inline+:} false; then :
18553   $as_echo_n "(cached) " >&6
18554 else
18555   ac_cv_c_inline=no
18556 for ac_kw in inline __inline__ __inline; do
18557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18558 /* end confdefs.h.  */
18559 #ifndef __cplusplus
18560 typedef int foo_t;
18561 static $ac_kw foo_t static_foo () {return 0; }
18562 $ac_kw foo_t foo () {return 0; }
18563 #endif
18564
18565 _ACEOF
18566 if ac_fn_c_try_compile "$LINENO"; then :
18567   ac_cv_c_inline=$ac_kw
18568 fi
18569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18570   test "$ac_cv_c_inline" != no && break
18571 done
18572
18573 fi
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18575 $as_echo "$ac_cv_c_inline" >&6; }
18576
18577 case $ac_cv_c_inline in
18578   inline | yes) ;;
18579   *)
18580     case $ac_cv_c_inline in
18581       no) ac_val=;;
18582       *) ac_val=$ac_cv_c_inline;;
18583     esac
18584     cat >>confdefs.h <<_ACEOF
18585 #ifndef __cplusplus
18586 #define inline $ac_val
18587 #endif
18588 _ACEOF
18589     ;;
18590 esac
18591
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18593 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18594 if ${ac_cv_c_restrict+:} false; then :
18595   $as_echo_n "(cached) " >&6
18596 else
18597   ac_cv_c_restrict=no
18598    # The order here caters to the fact that C++ does not require restrict.
18599    for ac_kw in __restrict __restrict__ _Restrict restrict; do
18600      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18601 /* end confdefs.h.  */
18602 typedef int * int_ptr;
18603         int foo (int_ptr $ac_kw ip) {
18604         return ip[0];
18605        }
18606 int
18607 main ()
18608 {
18609 int s[1];
18610         int * $ac_kw t = s;
18611         t[0] = 0;
18612         return foo(t)
18613   ;
18614   return 0;
18615 }
18616 _ACEOF
18617 if ac_fn_c_try_compile "$LINENO"; then :
18618   ac_cv_c_restrict=$ac_kw
18619 fi
18620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18621      test "$ac_cv_c_restrict" != no && break
18622    done
18623
18624 fi
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18626 $as_echo "$ac_cv_c_restrict" >&6; }
18627
18628  case $ac_cv_c_restrict in
18629    restrict) ;;
18630    no) $as_echo "#define restrict /**/" >>confdefs.h
18631  ;;
18632    *)  cat >>confdefs.h <<_ACEOF
18633 #define restrict $ac_cv_c_restrict
18634 _ACEOF
18635  ;;
18636  esac
18637
18638
18639       ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
18640 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
18641   ac_have_decl=1
18642 else
18643   ac_have_decl=0
18644 fi
18645
18646 cat >>confdefs.h <<_ACEOF
18647 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
18648 _ACEOF
18649
18650
18651
18652       ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
18653 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
18654   ac_have_decl=1
18655 else
18656   ac_have_decl=0
18657 fi
18658
18659 cat >>confdefs.h <<_ACEOF
18660 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
18661 _ACEOF
18662
18663
18664
18665       ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
18666 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
18667   ac_have_decl=1
18668 else
18669   ac_have_decl=0
18670 fi
18671
18672 cat >>confdefs.h <<_ACEOF
18673 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
18674 _ACEOF
18675
18676
18677
18678       ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
18679 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
18680   ac_have_decl=1
18681 else
18682   ac_have_decl=0
18683 fi
18684
18685 cat >>confdefs.h <<_ACEOF
18686 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
18687 _ACEOF
18688
18689
18690
18691       ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
18692 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
18693   ac_have_decl=1
18694 else
18695   ac_have_decl=0
18696 fi
18697
18698 cat >>confdefs.h <<_ACEOF
18699 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
18700 _ACEOF
18701
18702
18703
18704       ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
18705 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
18706   ac_have_decl=1
18707 else
18708   ac_have_decl=0
18709 fi
18710
18711 cat >>confdefs.h <<_ACEOF
18712 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
18713 _ACEOF
18714
18715
18716
18717       ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
18718 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
18719   ac_have_decl=1
18720 else
18721   ac_have_decl=0
18722 fi
18723
18724 cat >>confdefs.h <<_ACEOF
18725 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
18726 _ACEOF
18727
18728
18729
18730       ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
18731 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
18732   ac_have_decl=1
18733 else
18734   ac_have_decl=0
18735 fi
18736
18737 cat >>confdefs.h <<_ACEOF
18738 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
18739 _ACEOF
18740
18741
18742
18743       ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
18744 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
18745   ac_have_decl=1
18746 else
18747   ac_have_decl=0
18748 fi
18749
18750 cat >>confdefs.h <<_ACEOF
18751 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
18752 _ACEOF
18753
18754
18755
18756       ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
18757 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
18758   ac_have_decl=1
18759 else
18760   ac_have_decl=0
18761 fi
18762
18763 cat >>confdefs.h <<_ACEOF
18764 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
18765 _ACEOF
18766
18767
18768
18769       ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
18770 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
18771   ac_have_decl=1
18772 else
18773   ac_have_decl=0
18774 fi
18775
18776 cat >>confdefs.h <<_ACEOF
18777 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
18778 _ACEOF
18779
18780
18781
18782       ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
18783 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
18784   ac_have_decl=1
18785 else
18786   ac_have_decl=0
18787 fi
18788
18789 cat >>confdefs.h <<_ACEOF
18790 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
18791 _ACEOF
18792
18793
18794
18795       ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
18796 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
18797   ac_have_decl=1
18798 else
18799   ac_have_decl=0
18800 fi
18801
18802 cat >>confdefs.h <<_ACEOF
18803 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
18804 _ACEOF
18805
18806
18807
18808
18809
18810
18811   for ac_func in $gl_func_list
18812 do :
18813   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18814 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18815 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18816   cat >>confdefs.h <<_ACEOF
18817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18818 _ACEOF
18819
18820 fi
18821 done
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836   for ac_header in $gl_header_list
18837 do :
18838   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18839 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18840 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18841   cat >>confdefs.h <<_ACEOF
18842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18843 _ACEOF
18844
18845 fi
18846
18847 done
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859   XGETTEXT_EXTRA_OPTIONS=
18860
18861
18862   GNULIB_BTOWC=0;
18863   GNULIB_WCTOB=0;
18864   GNULIB_MBSINIT=0;
18865   GNULIB_MBRTOWC=0;
18866   GNULIB_MBRLEN=0;
18867   GNULIB_MBSRTOWCS=0;
18868   GNULIB_MBSNRTOWCS=0;
18869   GNULIB_WCRTOMB=0;
18870   GNULIB_WCSRTOMBS=0;
18871   GNULIB_WCSNRTOMBS=0;
18872   GNULIB_WCWIDTH=0;
18873   GNULIB_WMEMCHR=0;
18874   GNULIB_WMEMCMP=0;
18875   GNULIB_WMEMCPY=0;
18876   GNULIB_WMEMMOVE=0;
18877   GNULIB_WMEMSET=0;
18878   GNULIB_WCSLEN=0;
18879   GNULIB_WCSNLEN=0;
18880   GNULIB_WCSCPY=0;
18881   GNULIB_WCPCPY=0;
18882   GNULIB_WCSNCPY=0;
18883   GNULIB_WCPNCPY=0;
18884   GNULIB_WCSCAT=0;
18885   GNULIB_WCSNCAT=0;
18886   GNULIB_WCSCMP=0;
18887   GNULIB_WCSNCMP=0;
18888   GNULIB_WCSCASECMP=0;
18889   GNULIB_WCSNCASECMP=0;
18890   GNULIB_WCSCOLL=0;
18891   GNULIB_WCSXFRM=0;
18892   GNULIB_WCSDUP=0;
18893   GNULIB_WCSCHR=0;
18894   GNULIB_WCSRCHR=0;
18895   GNULIB_WCSCSPN=0;
18896   GNULIB_WCSSPN=0;
18897   GNULIB_WCSPBRK=0;
18898   GNULIB_WCSSTR=0;
18899   GNULIB_WCSTOK=0;
18900   GNULIB_WCSWIDTH=0;
18901     HAVE_BTOWC=1;
18902   HAVE_MBSINIT=1;
18903   HAVE_MBRTOWC=1;
18904   HAVE_MBRLEN=1;
18905   HAVE_MBSRTOWCS=1;
18906   HAVE_MBSNRTOWCS=1;
18907   HAVE_WCRTOMB=1;
18908   HAVE_WCSRTOMBS=1;
18909   HAVE_WCSNRTOMBS=1;
18910   HAVE_WMEMCHR=1;
18911   HAVE_WMEMCMP=1;
18912   HAVE_WMEMCPY=1;
18913   HAVE_WMEMMOVE=1;
18914   HAVE_WMEMSET=1;
18915   HAVE_WCSLEN=1;
18916   HAVE_WCSNLEN=1;
18917   HAVE_WCSCPY=1;
18918   HAVE_WCPCPY=1;
18919   HAVE_WCSNCPY=1;
18920   HAVE_WCPNCPY=1;
18921   HAVE_WCSCAT=1;
18922   HAVE_WCSNCAT=1;
18923   HAVE_WCSCMP=1;
18924   HAVE_WCSNCMP=1;
18925   HAVE_WCSCASECMP=1;
18926   HAVE_WCSNCASECMP=1;
18927   HAVE_WCSCOLL=1;
18928   HAVE_WCSXFRM=1;
18929   HAVE_WCSDUP=1;
18930   HAVE_WCSCHR=1;
18931   HAVE_WCSRCHR=1;
18932   HAVE_WCSCSPN=1;
18933   HAVE_WCSSPN=1;
18934   HAVE_WCSPBRK=1;
18935   HAVE_WCSSTR=1;
18936   HAVE_WCSTOK=1;
18937   HAVE_WCSWIDTH=1;
18938   HAVE_DECL_WCTOB=1;
18939   HAVE_DECL_WCWIDTH=1;
18940   REPLACE_MBSTATE_T=0;
18941   REPLACE_BTOWC=0;
18942   REPLACE_WCTOB=0;
18943   REPLACE_MBSINIT=0;
18944   REPLACE_MBRTOWC=0;
18945   REPLACE_MBRLEN=0;
18946   REPLACE_MBSRTOWCS=0;
18947   REPLACE_MBSNRTOWCS=0;
18948   REPLACE_WCRTOMB=0;
18949   REPLACE_WCSRTOMBS=0;
18950   REPLACE_WCSNRTOMBS=0;
18951   REPLACE_WCWIDTH=0;
18952   REPLACE_WCSWIDTH=0;
18953
18954
18955             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
18956 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
18957 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
18958   $as_echo_n "(cached) " >&6
18959 else
18960   gl_cv_header_wchar_h_correct_inline=yes
18961      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18962 /* end confdefs.h.  */
18963
18964        #define wcstod renamed_wcstod
18965 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18966    <wchar.h>.
18967    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18968    included before <wchar.h>.  */
18969 #include <stddef.h>
18970 #include <stdio.h>
18971 #include <time.h>
18972 #include <wchar.h>
18973 extern int zero (void);
18974 int main () { return zero(); }
18975
18976 _ACEOF
18977      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18978   (eval $ac_compile) 2>&5
18979   ac_status=$?
18980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18981   test $ac_status = 0; }; then
18982        mv conftest.$ac_objext conftest1.$ac_objext
18983        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18984 /* end confdefs.h.  */
18985
18986          #define wcstod renamed_wcstod
18987 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18988    <wchar.h>.
18989    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18990    included before <wchar.h>.  */
18991 #include <stddef.h>
18992 #include <stdio.h>
18993 #include <time.h>
18994 #include <wchar.h>
18995 int zero (void) { return 0; }
18996
18997 _ACEOF
18998        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18999   (eval $ac_compile) 2>&5
19000   ac_status=$?
19001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19002   test $ac_status = 0; }; then
19003          mv conftest.$ac_objext conftest2.$ac_objext
19004          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
19005            :
19006          else
19007            gl_cv_header_wchar_h_correct_inline=no
19008          fi
19009        fi
19010      fi
19011      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
19012
19013 fi
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
19015 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
19016   if test $gl_cv_header_wchar_h_correct_inline = no; then
19017     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
19018 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
19019 C99 mode. You have four options:
19020   - Add the flag -fgnu89-inline to CC and reconfigure, or
19021   - Fix your include files, using parts of
19022     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
19023   - Use a gcc version older than 4.3, or
19024   - Don't use the flags -std=c99 or -std=gnu99.
19025 Configuration aborted." "$LINENO" 5
19026   fi
19027
19028
19029
19030
19031
19032
19033
19034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19035 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19036 if ${am_cv_langinfo_codeset+:} false; then :
19037   $as_echo_n "(cached) " >&6
19038 else
19039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19040 /* end confdefs.h.  */
19041 #include <langinfo.h>
19042 int
19043 main ()
19044 {
19045 char* cs = nl_langinfo(CODESET); return !cs;
19046   ;
19047   return 0;
19048 }
19049 _ACEOF
19050 if ac_fn_c_try_link "$LINENO"; then :
19051   am_cv_langinfo_codeset=yes
19052 else
19053   am_cv_langinfo_codeset=no
19054 fi
19055 rm -f core conftest.err conftest.$ac_objext \
19056     conftest$ac_exeext conftest.$ac_ext
19057
19058 fi
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19060 $as_echo "$am_cv_langinfo_codeset" >&6; }
19061   if test $am_cv_langinfo_codeset = yes; then
19062
19063 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19064
19065   fi
19066
19067
19068
19069
19070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
19071 $as_echo_n "checking for a traditional french locale... " >&6; }
19072 if ${gt_cv_locale_fr+:} false; then :
19073   $as_echo_n "(cached) " >&6
19074 else
19075
19076     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h.  */
19078
19079 #include <locale.h>
19080 #include <time.h>
19081 #if HAVE_LANGINFO_CODESET
19082 # include <langinfo.h>
19083 #endif
19084 #include <stdlib.h>
19085 #include <string.h>
19086 struct tm t;
19087 char buf[16];
19088 int main () {
19089   /* Check whether the given locale name is recognized by the system.  */
19090 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
19091   /* On native Windows, setlocale(category, "") looks at the system settings,
19092      not at the environment variables.  Also, when an encoding suffix such
19093      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
19094      category of the locale to "C".  */
19095   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
19096       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
19097     return 1;
19098 #else
19099   if (setlocale (LC_ALL, "") == NULL) return 1;
19100 #endif
19101   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
19102      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
19103      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
19104      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
19105      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
19106      some unit tests fail.
19107      On MirBSD 10, when an unsupported locale is specified, setlocale()
19108      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
19109 #if HAVE_LANGINFO_CODESET
19110   {
19111     const char *cs = nl_langinfo (CODESET);
19112     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
19113         || strcmp (cs, "UTF-8") == 0)
19114       return 1;
19115   }
19116 #endif
19117 #ifdef __CYGWIN__
19118   /* On Cygwin, avoid locale names without encoding suffix, because the
19119      locale_charset() function relies on the encoding suffix.  Note that
19120      LC_ALL is set on the command line.  */
19121   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
19122 #endif
19123   /* Check whether in the abbreviation of the second month, the second
19124      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
19125      one byte long. This excludes the UTF-8 encoding.  */
19126   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
19127   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
19128 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
19129   /* Check whether the decimal separator is a comma.
19130      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
19131      are nl_langinfo(RADIXCHAR) are both ".".  */
19132   if (localeconv () ->decimal_point[0] != ',') return 1;
19133 #endif
19134   return 0;
19135 }
19136
19137 _ACEOF
19138     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19139   (eval $ac_link) 2>&5
19140   ac_status=$?
19141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19142   test $ac_status = 0; } && test -s conftest$ac_exeext; then
19143       case "$host_os" in
19144         # Handle native Windows specially, because there setlocale() interprets
19145         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
19146         # "fr" or "fra" as "French" or "French_France.1252",
19147         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
19148         # "ja" as "Japanese" or "Japanese_Japan.932",
19149         # and similar.
19150         mingw*)
19151           # Test for the native Windows locale name.
19152           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19153             gt_cv_locale_fr=French_France.1252
19154           else
19155             # None found.
19156             gt_cv_locale_fr=none
19157           fi
19158           ;;
19159         *)
19160           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
19161           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
19162           # configure script would override the LC_ALL setting. Likewise for
19163           # LC_CTYPE, which is also set at the beginning of the configure script.
19164           # Test for the usual locale name.
19165           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19166             gt_cv_locale_fr=fr_FR
19167           else
19168             # Test for the locale name with explicit encoding suffix.
19169             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19170               gt_cv_locale_fr=fr_FR.ISO-8859-1
19171             else
19172               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
19173               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19174                 gt_cv_locale_fr=fr_FR.ISO8859-1
19175               else
19176                 # Test for the HP-UX locale name.
19177                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19178                   gt_cv_locale_fr=fr_FR.iso88591
19179                 else
19180                   # Test for the Solaris 7 locale name.
19181                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19182                     gt_cv_locale_fr=fr
19183                   else
19184                     # None found.
19185                     gt_cv_locale_fr=none
19186                   fi
19187                 fi
19188               fi
19189             fi
19190           fi
19191           ;;
19192       esac
19193     fi
19194     rm -fr conftest*
19195
19196 fi
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
19198 $as_echo "$gt_cv_locale_fr" >&6; }
19199   LOCALE_FR=$gt_cv_locale_fr
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
19210 $as_echo_n "checking whether // is distinct from /... " >&6; }
19211 if ${gl_cv_double_slash_root+:} false; then :
19212   $as_echo_n "(cached) " >&6
19213 else
19214    if test x"$cross_compiling" = xyes ; then
19215         # When cross-compiling, there is no way to tell whether // is special
19216         # short of a list of hosts.  However, the only known hosts to date
19217         # that have a distinct // are Apollo DomainOS (too old to port to),
19218         # Cygwin, and z/OS.  If anyone knows of another system for which // has
19219         # special semantics and is distinct from /, please report it to
19220         # <bug-gnulib@gnu.org>.
19221         case $host in
19222           *-cygwin | i370-ibm-openedition)
19223             gl_cv_double_slash_root=yes ;;
19224           *)
19225             # Be optimistic and assume that / and // are the same when we
19226             # don't know.
19227             gl_cv_double_slash_root='unknown, assuming no' ;;
19228         esac
19229       else
19230         set x `ls -di / // 2>/dev/null`
19231         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
19232           gl_cv_double_slash_root=no
19233         else
19234           gl_cv_double_slash_root=yes
19235         fi
19236       fi
19237 fi
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
19239 $as_echo "$gl_cv_double_slash_root" >&6; }
19240   if test "$gl_cv_double_slash_root" = yes; then
19241
19242 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
19243
19244   fi
19245
19246
19247
19248
19249
19250
19251
19252
19253   :
19254
19255
19256
19257
19258
19259      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
19260 $as_echo_n "checking whether realpath works... " >&6; }
19261 if ${gl_cv_func_realpath_works+:} false; then :
19262   $as_echo_n "(cached) " >&6
19263 else
19264
19265     touch conftest.a
19266     mkdir conftest.d
19267     if test "$cross_compiling" = yes; then :
19268   case "$host_os" in
19269                        # Guess yes on glibc systems.
19270         *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
19271                        # If we don't know, assume the worst.
19272         *)             gl_cv_func_realpath_works="guessing no" ;;
19273       esac
19274
19275 else
19276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19277 /* end confdefs.h.  */
19278
19279
19280
19281 #include <stdlib.h>
19282 #if defined __MACH__ && defined __APPLE__
19283 /* Avoid a crash on Mac OS X.  */
19284 #include <mach/mach.h>
19285 #include <mach/mach_error.h>
19286 #include <mach/thread_status.h>
19287 #include <mach/exception.h>
19288 #include <mach/task.h>
19289 #include <pthread.h>
19290 /* The exception port on which our thread listens.  */
19291 static mach_port_t our_exception_port;
19292 /* The main function of the thread listening for exceptions of type
19293    EXC_BAD_ACCESS.  */
19294 static void *
19295 mach_exception_thread (void *arg)
19296 {
19297   /* Buffer for a message to be received.  */
19298   struct {
19299     mach_msg_header_t head;
19300     mach_msg_body_t msgh_body;
19301     char data[1024];
19302   } msg;
19303   mach_msg_return_t retval;
19304   /* Wait for a message on the exception port.  */
19305   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19306                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19307   if (retval != MACH_MSG_SUCCESS)
19308     abort ();
19309   exit (1);
19310 }
19311 static void
19312 nocrash_init (void)
19313 {
19314   mach_port_t self = mach_task_self ();
19315   /* Allocate a port on which the thread shall listen for exceptions.  */
19316   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19317       == KERN_SUCCESS) {
19318     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
19319     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19320                                 MACH_MSG_TYPE_MAKE_SEND)
19321         == KERN_SUCCESS) {
19322       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
19323          for us.  */
19324       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19325       /* Create the thread listening on the exception port.  */
19326       pthread_attr_t attr;
19327       pthread_t thread;
19328       if (pthread_attr_init (&attr) == 0
19329           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19330           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19331         pthread_attr_destroy (&attr);
19332         /* Replace the exception port info for these exceptions with our own.
19333            Note that we replace the exception port for the entire task, not only
19334            for a particular thread.  This has the effect that when our exception
19335            port gets the message, the thread specific exception port has already
19336            been asked, and we don't need to bother about it.
19337            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
19338         task_set_exception_ports (self, mask, our_exception_port,
19339                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19340       }
19341     }
19342   }
19343 }
19344 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19345 /* Avoid a crash on native Windows.  */
19346 #define WIN32_LEAN_AND_MEAN
19347 #include <windows.h>
19348 #include <winerror.h>
19349 static LONG WINAPI
19350 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19351 {
19352   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19353     {
19354     case EXCEPTION_ACCESS_VIOLATION:
19355     case EXCEPTION_IN_PAGE_ERROR:
19356     case EXCEPTION_STACK_OVERFLOW:
19357     case EXCEPTION_GUARD_PAGE:
19358     case EXCEPTION_PRIV_INSTRUCTION:
19359     case EXCEPTION_ILLEGAL_INSTRUCTION:
19360     case EXCEPTION_DATATYPE_MISALIGNMENT:
19361     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19362     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19363       exit (1);
19364     }
19365   return EXCEPTION_CONTINUE_SEARCH;
19366 }
19367 static void
19368 nocrash_init (void)
19369 {
19370   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19371 }
19372 #else
19373 /* Avoid a crash on POSIX systems.  */
19374 #include <signal.h>
19375 /* A POSIX signal handler.  */
19376 static void
19377 exception_handler (int sig)
19378 {
19379   exit (1);
19380 }
19381 static void
19382 nocrash_init (void)
19383 {
19384 #ifdef SIGSEGV
19385   signal (SIGSEGV, exception_handler);
19386 #endif
19387 #ifdef SIGBUS
19388   signal (SIGBUS, exception_handler);
19389 #endif
19390 }
19391 #endif
19392
19393         #include <stdlib.h>
19394         #include <string.h>
19395
19396 int
19397 main ()
19398 {
19399
19400         int result = 0;
19401         {
19402           char *name = realpath ("conftest.a", NULL);
19403           if (!(name && *name == '/'))
19404             result |= 1;
19405         }
19406         {
19407           char *name = realpath ("conftest.b/../conftest.a", NULL);
19408           if (name != NULL)
19409             result |= 2;
19410         }
19411         {
19412           char *name = realpath ("conftest.a/", NULL);
19413           if (name != NULL)
19414             result |= 4;
19415         }
19416         {
19417           char *name1 = realpath (".", NULL);
19418           char *name2 = realpath ("conftest.d//./..", NULL);
19419           if (strcmp (name1, name2) != 0)
19420             result |= 8;
19421         }
19422         return result;
19423
19424   ;
19425   return 0;
19426 }
19427
19428 _ACEOF
19429 if ac_fn_c_try_run "$LINENO"; then :
19430   gl_cv_func_realpath_works=yes
19431 else
19432   gl_cv_func_realpath_works=no
19433 fi
19434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19435   conftest.$ac_objext conftest.beam conftest.$ac_ext
19436 fi
19437
19438     rm -rf conftest.a conftest.d
19439
19440 fi
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
19442 $as_echo "$gl_cv_func_realpath_works" >&6; }
19443   case "$gl_cv_func_realpath_works" in
19444     *yes)
19445
19446 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
19447
19448       ;;
19449   esac
19450
19451
19452   GNULIB__EXIT=0;
19453   GNULIB_ATOLL=0;
19454   GNULIB_CALLOC_POSIX=0;
19455   GNULIB_CANONICALIZE_FILE_NAME=0;
19456   GNULIB_GETLOADAVG=0;
19457   GNULIB_GETSUBOPT=0;
19458   GNULIB_GRANTPT=0;
19459   GNULIB_MALLOC_POSIX=0;
19460   GNULIB_MBTOWC=0;
19461   GNULIB_MKDTEMP=0;
19462   GNULIB_MKOSTEMP=0;
19463   GNULIB_MKOSTEMPS=0;
19464   GNULIB_MKSTEMP=0;
19465   GNULIB_MKSTEMPS=0;
19466   GNULIB_POSIX_OPENPT=0;
19467   GNULIB_PTSNAME=0;
19468   GNULIB_PTSNAME_R=0;
19469   GNULIB_PUTENV=0;
19470   GNULIB_RANDOM=0;
19471   GNULIB_RANDOM_R=0;
19472   GNULIB_REALLOC_POSIX=0;
19473   GNULIB_REALPATH=0;
19474   GNULIB_RPMATCH=0;
19475   GNULIB_SECURE_GETENV=0;
19476   GNULIB_SETENV=0;
19477   GNULIB_STRTOD=0;
19478   GNULIB_STRTOLL=0;
19479   GNULIB_STRTOULL=0;
19480   GNULIB_SYSTEM_POSIX=0;
19481   GNULIB_UNLOCKPT=0;
19482   GNULIB_UNSETENV=0;
19483   GNULIB_WCTOMB=0;
19484     HAVE__EXIT=1;
19485   HAVE_ATOLL=1;
19486   HAVE_CANONICALIZE_FILE_NAME=1;
19487   HAVE_DECL_GETLOADAVG=1;
19488   HAVE_GETSUBOPT=1;
19489   HAVE_GRANTPT=1;
19490   HAVE_MKDTEMP=1;
19491   HAVE_MKOSTEMP=1;
19492   HAVE_MKOSTEMPS=1;
19493   HAVE_MKSTEMP=1;
19494   HAVE_MKSTEMPS=1;
19495   HAVE_POSIX_OPENPT=1;
19496   HAVE_PTSNAME=1;
19497   HAVE_PTSNAME_R=1;
19498   HAVE_RANDOM=1;
19499   HAVE_RANDOM_H=1;
19500   HAVE_RANDOM_R=1;
19501   HAVE_REALPATH=1;
19502   HAVE_RPMATCH=1;
19503   HAVE_SECURE_GETENV=1;
19504   HAVE_SETENV=1;
19505   HAVE_DECL_SETENV=1;
19506   HAVE_STRTOD=1;
19507   HAVE_STRTOLL=1;
19508   HAVE_STRTOULL=1;
19509   HAVE_STRUCT_RANDOM_DATA=1;
19510   HAVE_SYS_LOADAVG_H=0;
19511   HAVE_UNLOCKPT=1;
19512   HAVE_DECL_UNSETENV=1;
19513   REPLACE_CALLOC=0;
19514   REPLACE_CANONICALIZE_FILE_NAME=0;
19515   REPLACE_MALLOC=0;
19516   REPLACE_MBTOWC=0;
19517   REPLACE_MKSTEMP=0;
19518   REPLACE_PTSNAME=0;
19519   REPLACE_PTSNAME_R=0;
19520   REPLACE_PUTENV=0;
19521   REPLACE_RANDOM_R=0;
19522   REPLACE_REALLOC=0;
19523   REPLACE_REALPATH=0;
19524   REPLACE_SETENV=0;
19525   REPLACE_STRTOD=0;
19526   REPLACE_UNSETENV=0;
19527   REPLACE_WCTOMB=0;
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547   :
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562   :
19563
19564
19565
19566
19567
19568
19569
19570   GNULIB_CHDIR=0;
19571   GNULIB_CHOWN=0;
19572   GNULIB_CLOSE=0;
19573   GNULIB_DUP=0;
19574   GNULIB_DUP2=0;
19575   GNULIB_DUP3=0;
19576   GNULIB_ENVIRON=0;
19577   GNULIB_EUIDACCESS=0;
19578   GNULIB_FACCESSAT=0;
19579   GNULIB_FCHDIR=0;
19580   GNULIB_FCHOWNAT=0;
19581   GNULIB_FDATASYNC=0;
19582   GNULIB_FSYNC=0;
19583   GNULIB_FTRUNCATE=0;
19584   GNULIB_GETCWD=0;
19585   GNULIB_GETDOMAINNAME=0;
19586   GNULIB_GETDTABLESIZE=0;
19587   GNULIB_GETGROUPS=0;
19588   GNULIB_GETHOSTNAME=0;
19589   GNULIB_GETLOGIN=0;
19590   GNULIB_GETLOGIN_R=0;
19591   GNULIB_GETPAGESIZE=0;
19592   GNULIB_GETUSERSHELL=0;
19593   GNULIB_GROUP_MEMBER=0;
19594   GNULIB_ISATTY=0;
19595   GNULIB_LCHOWN=0;
19596   GNULIB_LINK=0;
19597   GNULIB_LINKAT=0;
19598   GNULIB_LSEEK=0;
19599   GNULIB_PIPE=0;
19600   GNULIB_PIPE2=0;
19601   GNULIB_PREAD=0;
19602   GNULIB_PWRITE=0;
19603   GNULIB_READ=0;
19604   GNULIB_READLINK=0;
19605   GNULIB_READLINKAT=0;
19606   GNULIB_RMDIR=0;
19607   GNULIB_SETHOSTNAME=0;
19608   GNULIB_SLEEP=0;
19609   GNULIB_SYMLINK=0;
19610   GNULIB_SYMLINKAT=0;
19611   GNULIB_TTYNAME_R=0;
19612   GNULIB_UNISTD_H_NONBLOCKING=0;
19613   GNULIB_UNISTD_H_SIGPIPE=0;
19614   GNULIB_UNLINK=0;
19615   GNULIB_UNLINKAT=0;
19616   GNULIB_USLEEP=0;
19617   GNULIB_WRITE=0;
19618     HAVE_CHOWN=1;
19619   HAVE_DUP2=1;
19620   HAVE_DUP3=1;
19621   HAVE_EUIDACCESS=1;
19622   HAVE_FACCESSAT=1;
19623   HAVE_FCHDIR=1;
19624   HAVE_FCHOWNAT=1;
19625   HAVE_FDATASYNC=1;
19626   HAVE_FSYNC=1;
19627   HAVE_FTRUNCATE=1;
19628   HAVE_GETDTABLESIZE=1;
19629   HAVE_GETGROUPS=1;
19630   HAVE_GETHOSTNAME=1;
19631   HAVE_GETLOGIN=1;
19632   HAVE_GETPAGESIZE=1;
19633   HAVE_GROUP_MEMBER=1;
19634   HAVE_LCHOWN=1;
19635   HAVE_LINK=1;
19636   HAVE_LINKAT=1;
19637   HAVE_PIPE=1;
19638   HAVE_PIPE2=1;
19639   HAVE_PREAD=1;
19640   HAVE_PWRITE=1;
19641   HAVE_READLINK=1;
19642   HAVE_READLINKAT=1;
19643   HAVE_SETHOSTNAME=1;
19644   HAVE_SLEEP=1;
19645   HAVE_SYMLINK=1;
19646   HAVE_SYMLINKAT=1;
19647   HAVE_UNLINKAT=1;
19648   HAVE_USLEEP=1;
19649   HAVE_DECL_ENVIRON=1;
19650   HAVE_DECL_FCHDIR=1;
19651   HAVE_DECL_FDATASYNC=1;
19652   HAVE_DECL_GETDOMAINNAME=1;
19653   HAVE_DECL_GETLOGIN_R=1;
19654   HAVE_DECL_GETPAGESIZE=1;
19655   HAVE_DECL_GETUSERSHELL=1;
19656   HAVE_DECL_SETHOSTNAME=1;
19657   HAVE_DECL_TTYNAME_R=1;
19658   HAVE_OS_H=0;
19659   HAVE_SYS_PARAM_H=0;
19660   REPLACE_CHOWN=0;
19661   REPLACE_CLOSE=0;
19662   REPLACE_DUP=0;
19663   REPLACE_DUP2=0;
19664   REPLACE_FCHOWNAT=0;
19665   REPLACE_FTRUNCATE=0;
19666   REPLACE_GETCWD=0;
19667   REPLACE_GETDOMAINNAME=0;
19668   REPLACE_GETDTABLESIZE=0;
19669   REPLACE_GETLOGIN_R=0;
19670   REPLACE_GETGROUPS=0;
19671   REPLACE_GETPAGESIZE=0;
19672   REPLACE_ISATTY=0;
19673   REPLACE_LCHOWN=0;
19674   REPLACE_LINK=0;
19675   REPLACE_LINKAT=0;
19676   REPLACE_LSEEK=0;
19677   REPLACE_PREAD=0;
19678   REPLACE_PWRITE=0;
19679   REPLACE_READ=0;
19680   REPLACE_READLINK=0;
19681   REPLACE_RMDIR=0;
19682   REPLACE_SLEEP=0;
19683   REPLACE_SYMLINK=0;
19684   REPLACE_TTYNAME_R=0;
19685   REPLACE_UNLINK=0;
19686   REPLACE_UNLINKAT=0;
19687   REPLACE_USLEEP=0;
19688   REPLACE_WRITE=0;
19689   UNISTD_H_HAVE_WINSOCK2_H=0;
19690   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700   :
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717   :
19718
19719
19720
19721
19722
19723   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
19724     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
19725
19726 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
19727
19728   else
19729     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
19730   fi
19731
19732
19733
19734   GNULIB_IOCTL=0;
19735     SYS_IOCTL_H_HAVE_WINSOCK2_H=0;
19736   SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
19737
19738   REPLACE_IOCTL=0;
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751      GNULIB_OPENDIR=0;
19752   GNULIB_READDIR=0;
19753   GNULIB_REWINDDIR=0;
19754   GNULIB_CLOSEDIR=0;
19755   GNULIB_DIRFD=0;
19756   GNULIB_FDOPENDIR=0;
19757   GNULIB_SCANDIR=0;
19758   GNULIB_ALPHASORT=0;
19759     HAVE_OPENDIR=1;
19760   HAVE_READDIR=1;
19761   HAVE_REWINDDIR=1;
19762   HAVE_CLOSEDIR=1;
19763   HAVE_DECL_DIRFD=1;
19764   HAVE_DECL_FDOPENDIR=1;
19765   HAVE_FDOPENDIR=1;
19766   HAVE_SCANDIR=1;
19767   HAVE_ALPHASORT=1;
19768   REPLACE_OPENDIR=0;
19769   REPLACE_CLOSEDIR=0;
19770   REPLACE_DIRFD=0;
19771   REPLACE_FDOPENDIR=0;
19772
19773
19774
19775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
19776 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
19777 if ${gl_cv_have_include_next+:} false; then :
19778   $as_echo_n "(cached) " >&6
19779 else
19780   rm -rf conftestd1a conftestd1b conftestd2
19781      mkdir conftestd1a conftestd1b conftestd2
19782                                                   cat <<EOF > conftestd1a/conftest.h
19783 #define DEFINED_IN_CONFTESTD1
19784 #include_next <conftest.h>
19785 #ifdef DEFINED_IN_CONFTESTD2
19786 int foo;
19787 #else
19788 #error "include_next doesn't work"
19789 #endif
19790 EOF
19791      cat <<EOF > conftestd1b/conftest.h
19792 #define DEFINED_IN_CONFTESTD1
19793 #include <stdio.h>
19794 #include_next <conftest.h>
19795 #ifdef DEFINED_IN_CONFTESTD2
19796 int foo;
19797 #else
19798 #error "include_next doesn't work"
19799 #endif
19800 EOF
19801      cat <<EOF > conftestd2/conftest.h
19802 #ifndef DEFINED_IN_CONFTESTD1
19803 #error "include_next test doesn't work"
19804 #endif
19805 #define DEFINED_IN_CONFTESTD2
19806 EOF
19807      gl_save_CPPFLAGS="$CPPFLAGS"
19808      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
19809      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19810 /* end confdefs.h.  */
19811 #include <conftest.h>
19812 _ACEOF
19813 if ac_fn_c_try_compile "$LINENO"; then :
19814   gl_cv_have_include_next=yes
19815 else
19816   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
19817         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19818 /* end confdefs.h.  */
19819 #include <conftest.h>
19820 _ACEOF
19821 if ac_fn_c_try_compile "$LINENO"; then :
19822   gl_cv_have_include_next=buggy
19823 else
19824   gl_cv_have_include_next=no
19825 fi
19826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19827
19828 fi
19829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19830      CPPFLAGS="$gl_save_CPPFLAGS"
19831      rm -rf conftestd1a conftestd1b conftestd2
19832
19833 fi
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
19835 $as_echo "$gl_cv_have_include_next" >&6; }
19836   PRAGMA_SYSTEM_HEADER=
19837   if test $gl_cv_have_include_next = yes; then
19838     INCLUDE_NEXT=include_next
19839     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
19840     if test -n "$GCC"; then
19841       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
19842     fi
19843   else
19844     if test $gl_cv_have_include_next = buggy; then
19845       INCLUDE_NEXT=include
19846       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
19847     else
19848       INCLUDE_NEXT=include
19849       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
19850     fi
19851   fi
19852
19853
19854
19855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
19856 $as_echo_n "checking whether system header files limit the line length... " >&6; }
19857 if ${gl_cv_pragma_columns+:} false; then :
19858   $as_echo_n "(cached) " >&6
19859 else
19860        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19861 /* end confdefs.h.  */
19862
19863 #ifdef __TANDEM
19864 choke me
19865 #endif
19866
19867 _ACEOF
19868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19869   $EGREP "choke me" >/dev/null 2>&1; then :
19870   gl_cv_pragma_columns=yes
19871 else
19872   gl_cv_pragma_columns=no
19873 fi
19874 rm -f conftest*
19875
19876
19877 fi
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
19879 $as_echo "$gl_cv_pragma_columns" >&6; }
19880   if test $gl_cv_pragma_columns = yes; then
19881     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
19882   else
19883     PRAGMA_COLUMNS=
19884   fi
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901   :
19902
19903
19904
19905
19906
19907
19908
19909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
19910 $as_echo_n "checking if environ is properly declared... " >&6; }
19911   if ${gt_cv_var_environ_declaration+:} false; then :
19912   $as_echo_n "(cached) " >&6
19913 else
19914
19915     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19916 /* end confdefs.h.  */
19917 #if HAVE_UNISTD_H
19918      #include <unistd.h>
19919      #endif
19920      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
19921      #include <stdlib.h>
19922
19923            extern struct { int foo; } environ;
19924 int
19925 main ()
19926 {
19927 environ.foo = 1;
19928   ;
19929   return 0;
19930 }
19931 _ACEOF
19932 if ac_fn_c_try_compile "$LINENO"; then :
19933   gt_cv_var_environ_declaration=no
19934 else
19935   gt_cv_var_environ_declaration=yes
19936 fi
19937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19938 fi
19939
19940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
19941 $as_echo "$gt_cv_var_environ_declaration" >&6; }
19942   if test $gt_cv_var_environ_declaration = yes; then
19943
19944 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
19945
19946   fi
19947
19948
19949   if test $gt_cv_var_environ_declaration != yes; then
19950     HAVE_DECL_ENVIRON=0
19951   fi
19952
19953
19954
19955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
19956 $as_echo_n "checking for complete errno.h... " >&6; }
19957 if ${gl_cv_header_errno_h_complete+:} false; then :
19958   $as_echo_n "(cached) " >&6
19959 else
19960
19961     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19962 /* end confdefs.h.  */
19963
19964 #include <errno.h>
19965 #if !defined ETXTBSY
19966 booboo
19967 #endif
19968 #if !defined ENOMSG
19969 booboo
19970 #endif
19971 #if !defined EIDRM
19972 booboo
19973 #endif
19974 #if !defined ENOLINK
19975 booboo
19976 #endif
19977 #if !defined EPROTO
19978 booboo
19979 #endif
19980 #if !defined EMULTIHOP
19981 booboo
19982 #endif
19983 #if !defined EBADMSG
19984 booboo
19985 #endif
19986 #if !defined EOVERFLOW
19987 booboo
19988 #endif
19989 #if !defined ENOTSUP
19990 booboo
19991 #endif
19992 #if !defined ENETRESET
19993 booboo
19994 #endif
19995 #if !defined ECONNABORTED
19996 booboo
19997 #endif
19998 #if !defined ESTALE
19999 booboo
20000 #endif
20001 #if !defined EDQUOT
20002 booboo
20003 #endif
20004 #if !defined ECANCELED
20005 booboo
20006 #endif
20007 #if !defined EOWNERDEAD
20008 booboo
20009 #endif
20010 #if !defined ENOTRECOVERABLE
20011 booboo
20012 #endif
20013 #if !defined EILSEQ
20014 booboo
20015 #endif
20016
20017 _ACEOF
20018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20019   $EGREP "booboo" >/dev/null 2>&1; then :
20020   gl_cv_header_errno_h_complete=no
20021 else
20022   gl_cv_header_errno_h_complete=yes
20023 fi
20024 rm -f conftest*
20025
20026
20027 fi
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
20029 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
20030   if test $gl_cv_header_errno_h_complete = yes; then
20031     ERRNO_H=''
20032   else
20033
20034
20035
20036
20037
20038
20039
20040
20041      if test $gl_cv_have_include_next = yes; then
20042        gl_cv_next_errno_h='<'errno.h'>'
20043      else
20044        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
20045 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
20046 if ${gl_cv_next_errno_h+:} false; then :
20047   $as_echo_n "(cached) " >&6
20048 else
20049
20050
20051
20052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20053 /* end confdefs.h.  */
20054 #include <errno.h>
20055 _ACEOF
20056                 case "$host_os" in
20057     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20058     *)    gl_absname_cpp="$ac_cpp" ;;
20059   esac
20060
20061   case "$host_os" in
20062     mingw*)
20063                                           gl_dirsep_regex='[/\\]'
20064       ;;
20065     *)
20066       gl_dirsep_regex='\/'
20067       ;;
20068   esac
20069       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20070   gl_header_literal_regex=`echo 'errno.h' \
20071                            | sed -e "$gl_make_literal_regex_sed"`
20072   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20073       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20074       s|^/[^/]|//&|
20075       p
20076       q
20077     }'
20078
20079         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20080   sed -n "$gl_absolute_header_sed"`
20081
20082            gl_header=$gl_cv_absolute_errno_h
20083            gl_cv_next_errno_h='"'$gl_header'"'
20084
20085
20086 fi
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
20088 $as_echo "$gl_cv_next_errno_h" >&6; }
20089      fi
20090      NEXT_ERRNO_H=$gl_cv_next_errno_h
20091
20092      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20093        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20094        gl_next_as_first_directive='<'errno.h'>'
20095      else
20096        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20097        gl_next_as_first_directive=$gl_cv_next_errno_h
20098      fi
20099      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
20100
20101
20102
20103
20104     ERRNO_H='errno.h'
20105   fi
20106
20107    if test -n "$ERRNO_H"; then
20108   GL_GENERATE_ERRNO_H_TRUE=
20109   GL_GENERATE_ERRNO_H_FALSE='#'
20110 else
20111   GL_GENERATE_ERRNO_H_TRUE='#'
20112   GL_GENERATE_ERRNO_H_FALSE=
20113 fi
20114
20115
20116   if test -n "$ERRNO_H"; then
20117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
20118 $as_echo_n "checking for EMULTIHOP value... " >&6; }
20119 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
20120   $as_echo_n "(cached) " >&6
20121 else
20122
20123       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124 /* end confdefs.h.  */
20125
20126 #include <errno.h>
20127 #ifdef EMULTIHOP
20128 yes
20129 #endif
20130
20131 _ACEOF
20132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20133   $EGREP "yes" >/dev/null 2>&1; then :
20134   gl_cv_header_errno_h_EMULTIHOP=yes
20135 else
20136   gl_cv_header_errno_h_EMULTIHOP=no
20137 fi
20138 rm -f conftest*
20139
20140       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
20141         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20142 /* end confdefs.h.  */
20143
20144 #define _XOPEN_SOURCE_EXTENDED 1
20145 #include <errno.h>
20146 #ifdef EMULTIHOP
20147 yes
20148 #endif
20149
20150 _ACEOF
20151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20152   $EGREP "yes" >/dev/null 2>&1; then :
20153   gl_cv_header_errno_h_EMULTIHOP=hidden
20154 fi
20155 rm -f conftest*
20156
20157         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
20158                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
20159 #define _XOPEN_SOURCE_EXTENDED 1
20160 #include <errno.h>
20161 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
20162 #include <stdio.h>
20163 #include <stdlib.h>
20164 "; then :
20165
20166 fi
20167
20168         fi
20169       fi
20170
20171 fi
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
20173 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
20174     case $gl_cv_header_errno_h_EMULTIHOP in
20175       yes | no)
20176         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
20177         ;;
20178       *)
20179         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
20180         ;;
20181     esac
20182
20183
20184   fi
20185
20186
20187   if test -n "$ERRNO_H"; then
20188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
20189 $as_echo_n "checking for ENOLINK value... " >&6; }
20190 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
20191   $as_echo_n "(cached) " >&6
20192 else
20193
20194       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20195 /* end confdefs.h.  */
20196
20197 #include <errno.h>
20198 #ifdef ENOLINK
20199 yes
20200 #endif
20201
20202 _ACEOF
20203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20204   $EGREP "yes" >/dev/null 2>&1; then :
20205   gl_cv_header_errno_h_ENOLINK=yes
20206 else
20207   gl_cv_header_errno_h_ENOLINK=no
20208 fi
20209 rm -f conftest*
20210
20211       if test $gl_cv_header_errno_h_ENOLINK = no; then
20212         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20213 /* end confdefs.h.  */
20214
20215 #define _XOPEN_SOURCE_EXTENDED 1
20216 #include <errno.h>
20217 #ifdef ENOLINK
20218 yes
20219 #endif
20220
20221 _ACEOF
20222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20223   $EGREP "yes" >/dev/null 2>&1; then :
20224   gl_cv_header_errno_h_ENOLINK=hidden
20225 fi
20226 rm -f conftest*
20227
20228         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
20229                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
20230 #define _XOPEN_SOURCE_EXTENDED 1
20231 #include <errno.h>
20232 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
20233 #include <stdio.h>
20234 #include <stdlib.h>
20235 "; then :
20236
20237 fi
20238
20239         fi
20240       fi
20241
20242 fi
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
20244 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
20245     case $gl_cv_header_errno_h_ENOLINK in
20246       yes | no)
20247         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
20248         ;;
20249       *)
20250         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
20251         ;;
20252     esac
20253
20254
20255   fi
20256
20257
20258   if test -n "$ERRNO_H"; then
20259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
20260 $as_echo_n "checking for EOVERFLOW value... " >&6; }
20261 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
20262   $as_echo_n "(cached) " >&6
20263 else
20264
20265       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20266 /* end confdefs.h.  */
20267
20268 #include <errno.h>
20269 #ifdef EOVERFLOW
20270 yes
20271 #endif
20272
20273 _ACEOF
20274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20275   $EGREP "yes" >/dev/null 2>&1; then :
20276   gl_cv_header_errno_h_EOVERFLOW=yes
20277 else
20278   gl_cv_header_errno_h_EOVERFLOW=no
20279 fi
20280 rm -f conftest*
20281
20282       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
20283         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284 /* end confdefs.h.  */
20285
20286 #define _XOPEN_SOURCE_EXTENDED 1
20287 #include <errno.h>
20288 #ifdef EOVERFLOW
20289 yes
20290 #endif
20291
20292 _ACEOF
20293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20294   $EGREP "yes" >/dev/null 2>&1; then :
20295   gl_cv_header_errno_h_EOVERFLOW=hidden
20296 fi
20297 rm -f conftest*
20298
20299         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
20300                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
20301 #define _XOPEN_SOURCE_EXTENDED 1
20302 #include <errno.h>
20303 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
20304 #include <stdio.h>
20305 #include <stdlib.h>
20306 "; then :
20307
20308 fi
20309
20310         fi
20311       fi
20312
20313 fi
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
20315 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
20316     case $gl_cv_header_errno_h_EOVERFLOW in
20317       yes | no)
20318         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
20319         ;;
20320       *)
20321         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
20322         ;;
20323     esac
20324
20325
20326   fi
20327
20328
20329 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
20330 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
20331   ac_have_decl=1
20332 else
20333   ac_have_decl=0
20334 fi
20335
20336 cat >>confdefs.h <<_ACEOF
20337 #define HAVE_DECL_STRERROR_R $ac_have_decl
20338 _ACEOF
20339
20340 for ac_func in strerror_r
20341 do :
20342   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
20343 if test "x$ac_cv_func_strerror_r" = xyes; then :
20344   cat >>confdefs.h <<_ACEOF
20345 #define HAVE_STRERROR_R 1
20346 _ACEOF
20347
20348 fi
20349 done
20350
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
20352 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
20353 if ${ac_cv_func_strerror_r_char_p+:} false; then :
20354   $as_echo_n "(cached) " >&6
20355 else
20356
20357     ac_cv_func_strerror_r_char_p=no
20358     if test $ac_cv_have_decl_strerror_r = yes; then
20359       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20360 /* end confdefs.h.  */
20361 $ac_includes_default
20362 int
20363 main ()
20364 {
20365
20366           char buf[100];
20367           char x = *strerror_r (0, buf, sizeof buf);
20368           char *p = strerror_r (0, buf, sizeof buf);
20369           return !p || x;
20370
20371   ;
20372   return 0;
20373 }
20374 _ACEOF
20375 if ac_fn_c_try_compile "$LINENO"; then :
20376   ac_cv_func_strerror_r_char_p=yes
20377 fi
20378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20379     else
20380       # strerror_r is not declared.  Choose between
20381       # systems that have relatively inaccessible declarations for the
20382       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
20383       # former has a strerror_r that returns char*, while the latter
20384       # has a strerror_r that returns `int'.
20385       # This test should segfault on the DEC system.
20386       if test "$cross_compiling" = yes; then :
20387   :
20388 else
20389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20390 /* end confdefs.h.  */
20391 $ac_includes_default
20392         extern char *strerror_r ();
20393 int
20394 main ()
20395 {
20396 char buf[100];
20397           char x = *strerror_r (0, buf, sizeof buf);
20398           return ! isalpha (x);
20399   ;
20400   return 0;
20401 }
20402 _ACEOF
20403 if ac_fn_c_try_run "$LINENO"; then :
20404   ac_cv_func_strerror_r_char_p=yes
20405 fi
20406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20407   conftest.$ac_objext conftest.beam conftest.$ac_ext
20408 fi
20409
20410     fi
20411
20412 fi
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
20414 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
20415 if test $ac_cv_func_strerror_r_char_p = yes; then
20416
20417 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
20418
20419 fi
20420
20421
20422
20423
20424
20425       ac_fn_c_check_decl "$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
20426 if test "x$ac_cv_have_decl_fchdir" = xyes; then :
20427   ac_have_decl=1
20428 else
20429   ac_have_decl=0
20430 fi
20431
20432 cat >>confdefs.h <<_ACEOF
20433 #define HAVE_DECL_FCHDIR $ac_have_decl
20434 _ACEOF
20435
20436
20437
20438   GNULIB_FCNTL=0;
20439   GNULIB_NONBLOCKING=0;
20440   GNULIB_OPEN=0;
20441   GNULIB_OPENAT=0;
20442     HAVE_FCNTL=1;
20443   HAVE_OPENAT=1;
20444   REPLACE_FCNTL=0;
20445   REPLACE_OPEN=0;
20446   REPLACE_OPENAT=0;
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462   :
20463
20464
20465
20466
20467
20468
20469   :
20470
20471
20472
20473
20474
20475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
20476 $as_echo_n "checking for working fcntl.h... " >&6; }
20477 if ${gl_cv_header_working_fcntl_h+:} false; then :
20478   $as_echo_n "(cached) " >&6
20479 else
20480   if test "$cross_compiling" = yes; then :
20481   gl_cv_header_working_fcntl_h=cross-compiling
20482 else
20483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20484 /* end confdefs.h.  */
20485 #include <sys/types.h>
20486            #include <sys/stat.h>
20487            #if HAVE_UNISTD_H
20488            # include <unistd.h>
20489            #else /* on Windows with MSVC */
20490            # include <io.h>
20491            # include <stdlib.h>
20492            # defined sleep(n) _sleep ((n) * 1000)
20493            #endif
20494            #include <fcntl.h>
20495            #ifndef O_NOATIME
20496             #define O_NOATIME 0
20497            #endif
20498            #ifndef O_NOFOLLOW
20499             #define O_NOFOLLOW 0
20500            #endif
20501            static int const constants[] =
20502             {
20503               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
20504               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
20505             };
20506
20507 int
20508 main ()
20509 {
20510
20511             int result = !constants;
20512             #if HAVE_SYMLINK
20513             {
20514               static char const sym[] = "conftest.sym";
20515               if (symlink ("/dev/null", sym) != 0)
20516                 result |= 2;
20517               else
20518                 {
20519                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
20520                   if (fd >= 0)
20521                     {
20522                       close (fd);
20523                       result |= 4;
20524                     }
20525                 }
20526               if (unlink (sym) != 0 || symlink (".", sym) != 0)
20527                 result |= 2;
20528               else
20529                 {
20530                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
20531                   if (fd >= 0)
20532                     {
20533                       close (fd);
20534                       result |= 4;
20535                     }
20536                 }
20537               unlink (sym);
20538             }
20539             #endif
20540             {
20541               static char const file[] = "confdefs.h";
20542               int fd = open (file, O_RDONLY | O_NOATIME);
20543               if (fd < 0)
20544                 result |= 8;
20545               else
20546                 {
20547                   struct stat st0;
20548                   if (fstat (fd, &st0) != 0)
20549                     result |= 16;
20550                   else
20551                     {
20552                       char c;
20553                       sleep (1);
20554                       if (read (fd, &c, 1) != 1)
20555                         result |= 24;
20556                       else
20557                         {
20558                           if (close (fd) != 0)
20559                             result |= 32;
20560                           else
20561                             {
20562                               struct stat st1;
20563                               if (stat (file, &st1) != 0)
20564                                 result |= 40;
20565                               else
20566                                 if (st0.st_atime != st1.st_atime)
20567                                   result |= 64;
20568                             }
20569                         }
20570                     }
20571                 }
20572             }
20573             return result;
20574   ;
20575   return 0;
20576 }
20577 _ACEOF
20578 if ac_fn_c_try_run "$LINENO"; then :
20579   gl_cv_header_working_fcntl_h=yes
20580 else
20581   case $? in #(
20582         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
20583         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
20584         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
20585          *) gl_cv_header_working_fcntl_h='no';;
20586         esac
20587 fi
20588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20589   conftest.$ac_objext conftest.beam conftest.$ac_ext
20590 fi
20591
20592 fi
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
20594 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
20595
20596   case $gl_cv_header_working_fcntl_h in #(
20597   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
20598   *) ac_val=1;;
20599   esac
20600
20601 cat >>confdefs.h <<_ACEOF
20602 #define HAVE_WORKING_O_NOATIME $ac_val
20603 _ACEOF
20604
20605
20606   case $gl_cv_header_working_fcntl_h in #(
20607   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
20608   *) ac_val=1;;
20609   esac
20610
20611 cat >>confdefs.h <<_ACEOF
20612 #define HAVE_WORKING_O_NOFOLLOW $ac_val
20613 _ACEOF
20614
20615
20616 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20617 if test "x$ac_cv_type_pid_t" = xyes; then :
20618
20619 else
20620
20621 cat >>confdefs.h <<_ACEOF
20622 #define pid_t int
20623 _ACEOF
20624
20625 fi
20626
20627 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20628 if test "x$ac_cv_type_mode_t" = xyes; then :
20629
20630 else
20631
20632 cat >>confdefs.h <<_ACEOF
20633 #define mode_t int
20634 _ACEOF
20635
20636 fi
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649   GNULIB_FLOCK=0;
20650   HAVE_FLOCK=1;
20651
20652
20653
20654
20655
20656
20657
20658
20659    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
20660 $as_echo_n "checking for mbstate_t... " >&6; }
20661 if ${ac_cv_type_mbstate_t+:} false; then :
20662   $as_echo_n "(cached) " >&6
20663 else
20664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20665 /* end confdefs.h.  */
20666 $ac_includes_default
20667 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20668    <wchar.h>.
20669    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20670    included before <wchar.h>.  */
20671 #include <stddef.h>
20672 #include <stdio.h>
20673 #include <time.h>
20674 #include <wchar.h>
20675 int
20676 main ()
20677 {
20678 mbstate_t x; return sizeof x;
20679   ;
20680   return 0;
20681 }
20682 _ACEOF
20683 if ac_fn_c_try_compile "$LINENO"; then :
20684   ac_cv_type_mbstate_t=yes
20685 else
20686   ac_cv_type_mbstate_t=no
20687 fi
20688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20689 fi
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
20691 $as_echo "$ac_cv_type_mbstate_t" >&6; }
20692    if test $ac_cv_type_mbstate_t = yes; then
20693
20694 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
20695
20696    else
20697
20698 $as_echo "#define mbstate_t int" >>confdefs.h
20699
20700    fi
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738      GNULIB_FCHMODAT=0;
20739   GNULIB_FSTAT=0;
20740   GNULIB_FSTATAT=0;
20741   GNULIB_FUTIMENS=0;
20742   GNULIB_LCHMOD=0;
20743   GNULIB_LSTAT=0;
20744   GNULIB_MKDIRAT=0;
20745   GNULIB_MKFIFO=0;
20746   GNULIB_MKFIFOAT=0;
20747   GNULIB_MKNOD=0;
20748   GNULIB_MKNODAT=0;
20749   GNULIB_STAT=0;
20750   GNULIB_UTIMENSAT=0;
20751     HAVE_FCHMODAT=1;
20752   HAVE_FSTATAT=1;
20753   HAVE_FUTIMENS=1;
20754   HAVE_LCHMOD=1;
20755   HAVE_LSTAT=1;
20756   HAVE_MKDIRAT=1;
20757   HAVE_MKFIFO=1;
20758   HAVE_MKFIFOAT=1;
20759   HAVE_MKNOD=1;
20760   HAVE_MKNODAT=1;
20761   HAVE_UTIMENSAT=1;
20762   REPLACE_FSTAT=0;
20763   REPLACE_FSTATAT=0;
20764   REPLACE_FUTIMENS=0;
20765   REPLACE_LSTAT=0;
20766   REPLACE_MKDIR=0;
20767   REPLACE_MKFIFO=0;
20768   REPLACE_MKNOD=0;
20769   REPLACE_STAT=0;
20770   REPLACE_UTIMENSAT=0;
20771
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20773 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20774 if ${ac_cv_header_stat_broken+:} false; then :
20775   $as_echo_n "(cached) " >&6
20776 else
20777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20778 /* end confdefs.h.  */
20779 #include <sys/types.h>
20780 #include <sys/stat.h>
20781
20782 #if defined S_ISBLK && defined S_IFDIR
20783 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20784 #endif
20785
20786 #if defined S_ISBLK && defined S_IFCHR
20787 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20788 #endif
20789
20790 #if defined S_ISLNK && defined S_IFREG
20791 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20792 #endif
20793
20794 #if defined S_ISSOCK && defined S_IFREG
20795 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20796 #endif
20797
20798 _ACEOF
20799 if ac_fn_c_try_compile "$LINENO"; then :
20800   ac_cv_header_stat_broken=no
20801 else
20802   ac_cv_header_stat_broken=yes
20803 fi
20804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20805 fi
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20807 $as_echo "$ac_cv_header_stat_broken" >&6; }
20808 if test $ac_cv_header_stat_broken = yes; then
20809
20810 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20811
20812 fi
20813
20814
20815
20816
20817
20818
20819
20820
20821   case "$host_os" in
20822     mingw*)
20823                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
20824 $as_echo_n "checking for 64-bit off_t... " >&6; }
20825 if ${gl_cv_type_off_t_64+:} false; then :
20826   $as_echo_n "(cached) " >&6
20827 else
20828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20829 /* end confdefs.h.  */
20830 #include <sys/types.h>
20831                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
20832
20833 int
20834 main ()
20835 {
20836
20837   ;
20838   return 0;
20839 }
20840 _ACEOF
20841 if ac_fn_c_try_compile "$LINENO"; then :
20842   gl_cv_type_off_t_64=yes
20843 else
20844   gl_cv_type_off_t_64=no
20845 fi
20846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847
20848 fi
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
20850 $as_echo "$gl_cv_type_off_t_64" >&6; }
20851       if test $gl_cv_type_off_t_64 = no; then
20852         WINDOWS_64_BIT_OFF_T=1
20853       else
20854         WINDOWS_64_BIT_OFF_T=0
20855       fi
20856                   WINDOWS_64_BIT_ST_SIZE=1
20857       ;;
20858     *)
20859                                                       WINDOWS_64_BIT_OFF_T=0
20860       WINDOWS_64_BIT_ST_SIZE=0
20861       ;;
20862   esac
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875   :
20876
20877
20878
20879
20880
20881
20882
20883
20884      if test $gl_cv_have_include_next = yes; then
20885        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20886      else
20887        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20888 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20889 if ${gl_cv_next_sys_stat_h+:} false; then :
20890   $as_echo_n "(cached) " >&6
20891 else
20892
20893              if test $ac_cv_header_sys_stat_h = yes; then
20894
20895
20896
20897
20898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20899 /* end confdefs.h.  */
20900 #include <sys/stat.h>
20901 _ACEOF
20902                 case "$host_os" in
20903     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20904     *)    gl_absname_cpp="$ac_cpp" ;;
20905   esac
20906
20907   case "$host_os" in
20908     mingw*)
20909                                           gl_dirsep_regex='[/\\]'
20910       ;;
20911     *)
20912       gl_dirsep_regex='\/'
20913       ;;
20914   esac
20915       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20916   gl_header_literal_regex=`echo 'sys/stat.h' \
20917                            | sed -e "$gl_make_literal_regex_sed"`
20918   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20919       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20920       s|^/[^/]|//&|
20921       p
20922       q
20923     }'
20924
20925         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20926   sed -n "$gl_absolute_header_sed"`
20927
20928            gl_header=$gl_cv_absolute_sys_stat_h
20929            gl_cv_next_sys_stat_h='"'$gl_header'"'
20930           else
20931                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20932              fi
20933
20934
20935 fi
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20937 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20938      fi
20939      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20940
20941      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20942        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20943        gl_next_as_first_directive='<'sys/stat.h'>'
20944      else
20945        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20946        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20947      fi
20948      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
20961
20962 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
20963
20964   fi
20965
20966       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20967      #include <sys/stat.h>
20968 "
20969 if test "x$ac_cv_type_nlink_t" = xyes; then :
20970
20971 else
20972
20973 $as_echo "#define nlink_t int" >>confdefs.h
20974
20975 fi
20976
20977
20978
20979     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
20980     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
20981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
20982 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
20983 if eval \${$as_gl_Symbol+:} false; then :
20984   $as_echo_n "(cached) " >&6
20985 else
20986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20987 /* end confdefs.h.  */
20988 #include <sys/stat.h>
20989
20990 int
20991 main ()
20992 {
20993 #undef $gl_func
20994   (void) $gl_func;
20995   ;
20996   return 0;
20997 }
20998 _ACEOF
20999 if ac_fn_c_try_compile "$LINENO"; then :
21000   eval "$as_gl_Symbol=yes"
21001 else
21002   eval "$as_gl_Symbol=no"
21003 fi
21004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21005 fi
21006 eval ac_res=\$$as_gl_Symbol
21007                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21008 $as_echo "$ac_res" >&6; }
21009     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21010   cat >>confdefs.h <<_ACEOF
21011 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21012 _ACEOF
21013
21014                      eval ac_cv_have_decl_$gl_func=yes
21015 fi
21016       done
21017
21018
21019
21020       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
21021 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
21022 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
21023   $as_echo_n "(cached) " >&6
21024 else
21025   rm -f conftest.sym conftest.file
21026      echo >conftest.file
21027      if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
21028        if test "$cross_compiling" = yes; then :
21029   case "$host_os" in
21030                     # Guess yes on glibc systems.
21031             *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
21032                     # If we don't know, assume the worst.
21033             *)      gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
21034           esac
21035
21036 else
21037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21038 /* end confdefs.h.  */
21039 $ac_includes_default
21040 int
21041 main ()
21042 {
21043 struct stat sbuf;
21044               /* Linux will dereference the symlink and fail, as required by
21045                  POSIX.  That is better in the sense that it means we will not
21046                  have to compile and use the lstat wrapper.  */
21047               return lstat ("conftest.sym/", &sbuf) == 0;
21048
21049   ;
21050   return 0;
21051 }
21052 _ACEOF
21053 if ac_fn_c_try_run "$LINENO"; then :
21054   gl_cv_func_lstat_dereferences_slashed_symlink=yes
21055 else
21056   gl_cv_func_lstat_dereferences_slashed_symlink=no
21057 fi
21058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21059   conftest.$ac_objext conftest.beam conftest.$ac_ext
21060 fi
21061
21062      else
21063        # If the 'ln -s' command failed, then we probably don't even
21064        # have an lstat function.
21065        gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
21066      fi
21067      rm -f conftest.sym conftest.file
21068
21069 fi
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
21071 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
21072   case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21073     *yes)
21074
21075 cat >>confdefs.h <<_ACEOF
21076 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21077 _ACEOF
21078
21079       ;;
21080   esac
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094   :
21095
21096
21097
21098
21099
21100    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
21101 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
21102 if ${gl_cv_func_getcwd_null+:} false; then :
21103   $as_echo_n "(cached) " >&6
21104 else
21105   if test "$cross_compiling" = yes; then :
21106   case "$host_os" in
21107                      # Guess yes on glibc systems.
21108             *-gnu*)  gl_cv_func_getcwd_null="guessing yes";;
21109                      # Guess yes on Cygwin.
21110             cygwin*) gl_cv_func_getcwd_null="guessing yes";;
21111                      # If we don't know, assume the worst.
21112             *)       gl_cv_func_getcwd_null="guessing no";;
21113           esac
21114
21115 else
21116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21117 /* end confdefs.h.  */
21118
21119 #        if HAVE_UNISTD_H
21120 #         include <unistd.h>
21121 #        else /* on Windows with MSVC */
21122 #         include <direct.h>
21123 #        endif
21124 #        ifndef getcwd
21125          char *getcwd ();
21126 #        endif
21127
21128 int
21129 main ()
21130 {
21131
21132 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
21133 /* mingw cwd does not start with '/', but getcwd does allocate.
21134    However, mingw fails to honor non-zero size.  */
21135 #else
21136            if (chdir ("/") != 0)
21137              return 1;
21138            else
21139              {
21140                char *f = getcwd (NULL, 0);
21141                if (! f)
21142                  return 2;
21143                if (f[0] != '/')
21144                  return 3;
21145                if (f[1] != '\0')
21146                  return 4;
21147                return 0;
21148              }
21149 #endif
21150
21151   ;
21152   return 0;
21153 }
21154 _ACEOF
21155 if ac_fn_c_try_run "$LINENO"; then :
21156   gl_cv_func_getcwd_null=yes
21157 else
21158   gl_cv_func_getcwd_null=no
21159 fi
21160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21161   conftest.$ac_objext conftest.beam conftest.$ac_ext
21162 fi
21163
21164 fi
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
21166 $as_echo "$gl_cv_func_getcwd_null" >&6; }
21167
21168
21169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
21170 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
21171 if ${gl_cv_func_getcwd_posix_signature+:} false; then :
21172   $as_echo_n "(cached) " >&6
21173 else
21174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21175 /* end confdefs.h.  */
21176 #include <unistd.h>
21177 int
21178 main ()
21179 {
21180 extern
21181            #ifdef __cplusplus
21182            "C"
21183            #endif
21184            char *getcwd (char *, size_t);
21185
21186   ;
21187   return 0;
21188 }
21189
21190 _ACEOF
21191 if ac_fn_c_try_compile "$LINENO"; then :
21192   gl_cv_func_getcwd_posix_signature=yes
21193 else
21194   gl_cv_func_getcwd_posix_signature=no
21195 fi
21196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21197
21198 fi
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
21200 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
21201
21202
21203       ac_fn_c_check_decl "$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
21204 if test "x$ac_cv_have_decl_getcwd" = xyes; then :
21205   ac_have_decl=1
21206 else
21207   ac_have_decl=0
21208 fi
21209
21210 cat >>confdefs.h <<_ACEOF
21211 #define HAVE_DECL_GETCWD $ac_have_decl
21212 _ACEOF
21213
21214
21215
21216   GNULIB_DPRINTF=0;
21217   GNULIB_FCLOSE=0;
21218   GNULIB_FDOPEN=0;
21219   GNULIB_FFLUSH=0;
21220   GNULIB_FGETC=0;
21221   GNULIB_FGETS=0;
21222   GNULIB_FOPEN=0;
21223   GNULIB_FPRINTF=0;
21224   GNULIB_FPRINTF_POSIX=0;
21225   GNULIB_FPURGE=0;
21226   GNULIB_FPUTC=0;
21227   GNULIB_FPUTS=0;
21228   GNULIB_FREAD=0;
21229   GNULIB_FREOPEN=0;
21230   GNULIB_FSCANF=0;
21231   GNULIB_FSEEK=0;
21232   GNULIB_FSEEKO=0;
21233   GNULIB_FTELL=0;
21234   GNULIB_FTELLO=0;
21235   GNULIB_FWRITE=0;
21236   GNULIB_GETC=0;
21237   GNULIB_GETCHAR=0;
21238   GNULIB_GETDELIM=0;
21239   GNULIB_GETLINE=0;
21240   GNULIB_OBSTACK_PRINTF=0;
21241   GNULIB_OBSTACK_PRINTF_POSIX=0;
21242   GNULIB_PCLOSE=0;
21243   GNULIB_PERROR=0;
21244   GNULIB_POPEN=0;
21245   GNULIB_PRINTF=0;
21246   GNULIB_PRINTF_POSIX=0;
21247   GNULIB_PUTC=0;
21248   GNULIB_PUTCHAR=0;
21249   GNULIB_PUTS=0;
21250   GNULIB_REMOVE=0;
21251   GNULIB_RENAME=0;
21252   GNULIB_RENAMEAT=0;
21253   GNULIB_SCANF=0;
21254   GNULIB_SNPRINTF=0;
21255   GNULIB_SPRINTF_POSIX=0;
21256   GNULIB_STDIO_H_NONBLOCKING=0;
21257   GNULIB_STDIO_H_SIGPIPE=0;
21258   GNULIB_TMPFILE=0;
21259   GNULIB_VASPRINTF=0;
21260   GNULIB_VFSCANF=0;
21261   GNULIB_VSCANF=0;
21262   GNULIB_VDPRINTF=0;
21263   GNULIB_VFPRINTF=0;
21264   GNULIB_VFPRINTF_POSIX=0;
21265   GNULIB_VPRINTF=0;
21266   GNULIB_VPRINTF_POSIX=0;
21267   GNULIB_VSNPRINTF=0;
21268   GNULIB_VSPRINTF_POSIX=0;
21269     HAVE_DECL_FPURGE=1;
21270   HAVE_DECL_FSEEKO=1;
21271   HAVE_DECL_FTELLO=1;
21272   HAVE_DECL_GETDELIM=1;
21273   HAVE_DECL_GETLINE=1;
21274   HAVE_DECL_OBSTACK_PRINTF=1;
21275   HAVE_DECL_SNPRINTF=1;
21276   HAVE_DECL_VSNPRINTF=1;
21277   HAVE_DPRINTF=1;
21278   HAVE_FSEEKO=1;
21279   HAVE_FTELLO=1;
21280   HAVE_PCLOSE=1;
21281   HAVE_POPEN=1;
21282   HAVE_RENAMEAT=1;
21283   HAVE_VASPRINTF=1;
21284   HAVE_VDPRINTF=1;
21285   REPLACE_DPRINTF=0;
21286   REPLACE_FCLOSE=0;
21287   REPLACE_FDOPEN=0;
21288   REPLACE_FFLUSH=0;
21289   REPLACE_FOPEN=0;
21290   REPLACE_FPRINTF=0;
21291   REPLACE_FPURGE=0;
21292   REPLACE_FREOPEN=0;
21293   REPLACE_FSEEK=0;
21294   REPLACE_FSEEKO=0;
21295   REPLACE_FTELL=0;
21296   REPLACE_FTELLO=0;
21297   REPLACE_GETDELIM=0;
21298   REPLACE_GETLINE=0;
21299   REPLACE_OBSTACK_PRINTF=0;
21300   REPLACE_PERROR=0;
21301   REPLACE_POPEN=0;
21302   REPLACE_PRINTF=0;
21303   REPLACE_REMOVE=0;
21304   REPLACE_RENAME=0;
21305   REPLACE_RENAMEAT=0;
21306   REPLACE_SNPRINTF=0;
21307   REPLACE_SPRINTF=0;
21308   REPLACE_STDIO_READ_FUNCS=0;
21309   REPLACE_STDIO_WRITE_FUNCS=0;
21310   REPLACE_TMPFILE=0;
21311   REPLACE_VASPRINTF=0;
21312   REPLACE_VDPRINTF=0;
21313   REPLACE_VFPRINTF=0;
21314   REPLACE_VPRINTF=0;
21315   REPLACE_VSNPRINTF=0;
21316   REPLACE_VSPRINTF=0;
21317
21318
21319       ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
21320 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
21321   ac_have_decl=1
21322 else
21323   ac_have_decl=0
21324 fi
21325
21326 cat >>confdefs.h <<_ACEOF
21327 #define HAVE_DECL_GETDELIM $ac_have_decl
21328 _ACEOF
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342       ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
21343 if test "x$ac_cv_have_decl_getline" = xyes; then :
21344   ac_have_decl=1
21345 else
21346   ac_have_decl=0
21347 fi
21348
21349 cat >>confdefs.h <<_ACEOF
21350 #define HAVE_DECL_GETLINE $ac_have_decl
21351 _ACEOF
21352
21353
21354
21355       ac_fn_c_check_decl "$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
21356 if test "x$ac_cv_have_decl_getlogin_r" = xyes; then :
21357   ac_have_decl=1
21358 else
21359   ac_have_decl=0
21360 fi
21361
21362 cat >>confdefs.h <<_ACEOF
21363 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
21364 _ACEOF
21365
21366
21367
21368
21369
21370
21371
21372
21373       ac_fn_c_check_decl "$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
21374 if test "x$ac_cv_have_decl_getlogin" = xyes; then :
21375   ac_have_decl=1
21376 else
21377   ac_have_decl=0
21378 fi
21379
21380 cat >>confdefs.h <<_ACEOF
21381 #define HAVE_DECL_GETLOGIN $ac_have_decl
21382 _ACEOF
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400   :
21401
21402
21403
21404
21405
21406
21407
21408
21409      if test $gl_cv_have_include_next = yes; then
21410        gl_cv_next_getopt_h='<'getopt.h'>'
21411      else
21412        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
21413 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
21414 if ${gl_cv_next_getopt_h+:} false; then :
21415   $as_echo_n "(cached) " >&6
21416 else
21417
21418              if test $ac_cv_header_getopt_h = yes; then
21419
21420
21421
21422
21423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21424 /* end confdefs.h.  */
21425 #include <getopt.h>
21426 _ACEOF
21427                 case "$host_os" in
21428     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21429     *)    gl_absname_cpp="$ac_cpp" ;;
21430   esac
21431
21432   case "$host_os" in
21433     mingw*)
21434                                           gl_dirsep_regex='[/\\]'
21435       ;;
21436     *)
21437       gl_dirsep_regex='\/'
21438       ;;
21439   esac
21440       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21441   gl_header_literal_regex=`echo 'getopt.h' \
21442                            | sed -e "$gl_make_literal_regex_sed"`
21443   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21444       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21445       s|^/[^/]|//&|
21446       p
21447       q
21448     }'
21449
21450         gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21451   sed -n "$gl_absolute_header_sed"`
21452
21453            gl_header=$gl_cv_absolute_getopt_h
21454            gl_cv_next_getopt_h='"'$gl_header'"'
21455           else
21456                gl_cv_next_getopt_h='<'getopt.h'>'
21457              fi
21458
21459
21460 fi
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
21462 $as_echo "$gl_cv_next_getopt_h" >&6; }
21463      fi
21464      NEXT_GETOPT_H=$gl_cv_next_getopt_h
21465
21466      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21467        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21468        gl_next_as_first_directive='<'getopt.h'>'
21469      else
21470        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21471        gl_next_as_first_directive=$gl_cv_next_getopt_h
21472      fi
21473      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
21474
21475
21476
21477
21478   if test $ac_cv_header_getopt_h = yes; then
21479     HAVE_GETOPT_H=1
21480   else
21481     HAVE_GETOPT_H=0
21482   fi
21483
21484
21485   gl_replace_getopt=
21486
21487     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21488     for ac_header in getopt.h
21489 do :
21490   ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
21491 if test "x$ac_cv_header_getopt_h" = xyes; then :
21492   cat >>confdefs.h <<_ACEOF
21493 #define HAVE_GETOPT_H 1
21494 _ACEOF
21495
21496 else
21497   gl_replace_getopt=yes
21498 fi
21499
21500 done
21501
21502   fi
21503
21504     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21505     for ac_func in getopt_long_only
21506 do :
21507   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
21508 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
21509   cat >>confdefs.h <<_ACEOF
21510 #define HAVE_GETOPT_LONG_ONLY 1
21511 _ACEOF
21512
21513 else
21514   gl_replace_getopt=yes
21515 fi
21516 done
21517
21518   fi
21519
21520           if test -z "$gl_replace_getopt"; then
21521     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
21522 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
21523 if ${gl_cv_func_getopt_posix+:} false; then :
21524   $as_echo_n "(cached) " >&6
21525 else
21526
21527                                                 if test $cross_compiling = no; then
21528                               if test "$cross_compiling" = yes; then :
21529   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21531 as_fn_error $? "cannot run test program while cross compiling
21532 See \`config.log' for more details" "$LINENO" 5; }
21533 else
21534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21535 /* end confdefs.h.  */
21536
21537 #include <unistd.h>
21538 #include <stdlib.h>
21539 #include <string.h>
21540
21541 int
21542 main ()
21543 {
21544   static char program[] = "program";
21545   static char a[] = "-a";
21546   static char foo[] = "foo";
21547   static char bar[] = "bar";
21548   char *argv[] = { program, a, foo, bar, NULL };
21549   int c;
21550
21551   c = getopt (4, argv, "ab");
21552   if (!(c == 'a'))
21553     return 1;
21554   c = getopt (4, argv, "ab");
21555   if (!(c == -1))
21556     return 2;
21557   if (!(optind == 2))
21558     return 3;
21559   return 0;
21560 }
21561
21562 _ACEOF
21563 if ac_fn_c_try_run "$LINENO"; then :
21564   gl_cv_func_getopt_posix=maybe
21565 else
21566   gl_cv_func_getopt_posix=no
21567 fi
21568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21569   conftest.$ac_objext conftest.beam conftest.$ac_ext
21570 fi
21571
21572           if test $gl_cv_func_getopt_posix = maybe; then
21573                                     if test "$cross_compiling" = yes; then :
21574   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21576 as_fn_error $? "cannot run test program while cross compiling
21577 See \`config.log' for more details" "$LINENO" 5; }
21578 else
21579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21580 /* end confdefs.h.  */
21581
21582 #include <unistd.h>
21583 #include <stdlib.h>
21584 #include <string.h>
21585
21586 int
21587 main ()
21588 {
21589   static char program[] = "program";
21590   static char donald[] = "donald";
21591   static char p[] = "-p";
21592   static char billy[] = "billy";
21593   static char duck[] = "duck";
21594   static char a[] = "-a";
21595   static char bar[] = "bar";
21596   char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
21597   int c;
21598
21599   c = getopt (7, argv, "+abp:q:");
21600   if (!(c == -1))
21601     return 4;
21602   if (!(strcmp (argv[0], "program") == 0))
21603     return 5;
21604   if (!(strcmp (argv[1], "donald") == 0))
21605     return 6;
21606   if (!(strcmp (argv[2], "-p") == 0))
21607     return 7;
21608   if (!(strcmp (argv[3], "billy") == 0))
21609     return 8;
21610   if (!(strcmp (argv[4], "duck") == 0))
21611     return 9;
21612   if (!(strcmp (argv[5], "-a") == 0))
21613     return 10;
21614   if (!(strcmp (argv[6], "bar") == 0))
21615     return 11;
21616   if (!(optind == 1))
21617     return 12;
21618   return 0;
21619 }
21620
21621 _ACEOF
21622 if ac_fn_c_try_run "$LINENO"; then :
21623   gl_cv_func_getopt_posix=maybe
21624 else
21625   gl_cv_func_getopt_posix=no
21626 fi
21627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21628   conftest.$ac_objext conftest.beam conftest.$ac_ext
21629 fi
21630
21631           fi
21632           if test $gl_cv_func_getopt_posix = maybe; then
21633                         if test "$cross_compiling" = yes; then :
21634   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21636 as_fn_error $? "cannot run test program while cross compiling
21637 See \`config.log' for more details" "$LINENO" 5; }
21638 else
21639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21640 /* end confdefs.h.  */
21641
21642 #include <unistd.h>
21643 #include <stdlib.h>
21644 #include <string.h>
21645
21646 int
21647 main ()
21648 {
21649   static char program[] = "program";
21650   static char ab[] = "-ab";
21651   char *argv[3] = { program, ab, NULL };
21652   if (getopt (2, argv, "ab:") != 'a')
21653     return 13;
21654   if (getopt (2, argv, "ab:") != '?')
21655     return 14;
21656   if (optopt != 'b')
21657     return 15;
21658   if (optind != 2)
21659     return 16;
21660   return 0;
21661 }
21662
21663 _ACEOF
21664 if ac_fn_c_try_run "$LINENO"; then :
21665   gl_cv_func_getopt_posix=yes
21666 else
21667   gl_cv_func_getopt_posix=no
21668 fi
21669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21670   conftest.$ac_objext conftest.beam conftest.$ac_ext
21671 fi
21672
21673           fi
21674         else
21675           case "$host_os" in
21676             darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
21677             *)                       gl_cv_func_getopt_posix="guessing yes";;
21678           esac
21679         fi
21680
21681 fi
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
21683 $as_echo "$gl_cv_func_getopt_posix" >&6; }
21684     case "$gl_cv_func_getopt_posix" in
21685       *no) gl_replace_getopt=yes ;;
21686     esac
21687   fi
21688
21689   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
21691 $as_echo_n "checking for working GNU getopt function... " >&6; }
21692 if ${gl_cv_func_getopt_gnu+:} false; then :
21693   $as_echo_n "(cached) " >&6
21694 else
21695   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
21696        # optstring is necessary for programs like m4 that have POSIX-mandated
21697        # semantics for supporting options interspersed with files.
21698        # Also, since getopt_long is a GNU extension, we require optind=0.
21699        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
21700        # so take care to revert to the correct (non-)export state.
21701        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
21702        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
21703          xx) gl_had_POSIXLY_CORRECT=exported ;;
21704          x)  gl_had_POSIXLY_CORRECT=yes      ;;
21705          *)  gl_had_POSIXLY_CORRECT=         ;;
21706        esac
21707        POSIXLY_CORRECT=1
21708        export POSIXLY_CORRECT
21709        if test "$cross_compiling" = yes; then :
21710            gl_cv_func_getopt_gnu="guessing no"
21711
21712 else
21713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21714 /* end confdefs.h.  */
21715 #include <getopt.h>
21716                            #include <stddef.h>
21717                            #include <string.h>
21718
21719 #include <stdlib.h>
21720 #if defined __MACH__ && defined __APPLE__
21721 /* Avoid a crash on Mac OS X.  */
21722 #include <mach/mach.h>
21723 #include <mach/mach_error.h>
21724 #include <mach/thread_status.h>
21725 #include <mach/exception.h>
21726 #include <mach/task.h>
21727 #include <pthread.h>
21728 /* The exception port on which our thread listens.  */
21729 static mach_port_t our_exception_port;
21730 /* The main function of the thread listening for exceptions of type
21731    EXC_BAD_ACCESS.  */
21732 static void *
21733 mach_exception_thread (void *arg)
21734 {
21735   /* Buffer for a message to be received.  */
21736   struct {
21737     mach_msg_header_t head;
21738     mach_msg_body_t msgh_body;
21739     char data[1024];
21740   } msg;
21741   mach_msg_return_t retval;
21742   /* Wait for a message on the exception port.  */
21743   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
21744                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
21745   if (retval != MACH_MSG_SUCCESS)
21746     abort ();
21747   exit (1);
21748 }
21749 static void
21750 nocrash_init (void)
21751 {
21752   mach_port_t self = mach_task_self ();
21753   /* Allocate a port on which the thread shall listen for exceptions.  */
21754   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
21755       == KERN_SUCCESS) {
21756     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
21757     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
21758                                 MACH_MSG_TYPE_MAKE_SEND)
21759         == KERN_SUCCESS) {
21760       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
21761          for us.  */
21762       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
21763       /* Create the thread listening on the exception port.  */
21764       pthread_attr_t attr;
21765       pthread_t thread;
21766       if (pthread_attr_init (&attr) == 0
21767           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
21768           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
21769         pthread_attr_destroy (&attr);
21770         /* Replace the exception port info for these exceptions with our own.
21771            Note that we replace the exception port for the entire task, not only
21772            for a particular thread.  This has the effect that when our exception
21773            port gets the message, the thread specific exception port has already
21774            been asked, and we don't need to bother about it.
21775            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
21776         task_set_exception_ports (self, mask, our_exception_port,
21777                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
21778       }
21779     }
21780   }
21781 }
21782 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
21783 /* Avoid a crash on native Windows.  */
21784 #define WIN32_LEAN_AND_MEAN
21785 #include <windows.h>
21786 #include <winerror.h>
21787 static LONG WINAPI
21788 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
21789 {
21790   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
21791     {
21792     case EXCEPTION_ACCESS_VIOLATION:
21793     case EXCEPTION_IN_PAGE_ERROR:
21794     case EXCEPTION_STACK_OVERFLOW:
21795     case EXCEPTION_GUARD_PAGE:
21796     case EXCEPTION_PRIV_INSTRUCTION:
21797     case EXCEPTION_ILLEGAL_INSTRUCTION:
21798     case EXCEPTION_DATATYPE_MISALIGNMENT:
21799     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
21800     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
21801       exit (1);
21802     }
21803   return EXCEPTION_CONTINUE_SEARCH;
21804 }
21805 static void
21806 nocrash_init (void)
21807 {
21808   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
21809 }
21810 #else
21811 /* Avoid a crash on POSIX systems.  */
21812 #include <signal.h>
21813 /* A POSIX signal handler.  */
21814 static void
21815 exception_handler (int sig)
21816 {
21817   exit (1);
21818 }
21819 static void
21820 nocrash_init (void)
21821 {
21822 #ifdef SIGSEGV
21823   signal (SIGSEGV, exception_handler);
21824 #endif
21825 #ifdef SIGBUS
21826   signal (SIGBUS, exception_handler);
21827 #endif
21828 }
21829 #endif
21830
21831
21832 int
21833 main ()
21834 {
21835
21836              int result = 0;
21837
21838              nocrash_init();
21839
21840              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
21841                 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
21842                 OSF/1 5.1, Solaris 10.  */
21843              {
21844                static char conftest[] = "conftest";
21845                static char plus[] = "-+";
21846                char *argv[3] = { conftest, plus, NULL };
21847                opterr = 0;
21848                if (getopt (2, argv, "+a") != '?')
21849                  result |= 1;
21850              }
21851              /* This code succeeds on glibc 2.8, mingw,
21852                 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
21853                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
21854              {
21855                static char program[] = "program";
21856                static char p[] = "-p";
21857                static char foo[] = "foo";
21858                static char bar[] = "bar";
21859                char *argv[] = { program, p, foo, bar, NULL };
21860
21861                optind = 1;
21862                if (getopt (4, argv, "p::") != 'p')
21863                  result |= 2;
21864                else if (optarg != NULL)
21865                  result |= 4;
21866                else if (getopt (4, argv, "p::") != -1)
21867                  result |= 6;
21868                else if (optind != 2)
21869                  result |= 8;
21870              }
21871              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
21872              {
21873                static char program[] = "program";
21874                static char foo[] = "foo";
21875                static char p[] = "-p";
21876                char *argv[] = { program, foo, p, NULL };
21877                optind = 0;
21878                if (getopt (3, argv, "-p") != 1)
21879                  result |= 16;
21880                else if (getopt (3, argv, "-p") != 'p')
21881                  result |= 16;
21882              }
21883              /* This code fails on glibc 2.11.  */
21884              {
21885                static char program[] = "program";
21886                static char b[] = "-b";
21887                static char a[] = "-a";
21888                char *argv[] = { program, b, a, NULL };
21889                optind = opterr = 0;
21890                if (getopt (3, argv, "+:a:b") != 'b')
21891                  result |= 32;
21892                else if (getopt (3, argv, "+:a:b") != ':')
21893                  result |= 32;
21894              }
21895              /* This code dumps core on glibc 2.14.  */
21896              {
21897                static char program[] = "program";
21898                static char w[] = "-W";
21899                static char dummy[] = "dummy";
21900                char *argv[] = { program, w, dummy, NULL };
21901                optind = opterr = 1;
21902                if (getopt (3, argv, "W;") != 'W')
21903                  result |= 64;
21904              }
21905              return result;
21906
21907   ;
21908   return 0;
21909 }
21910 _ACEOF
21911 if ac_fn_c_try_run "$LINENO"; then :
21912   gl_cv_func_getopt_gnu=yes
21913 else
21914   gl_cv_func_getopt_gnu=no
21915 fi
21916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21917   conftest.$ac_objext conftest.beam conftest.$ac_ext
21918 fi
21919
21920        case $gl_had_POSIXLY_CORRECT in
21921          exported) ;;
21922          yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
21923          *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
21924        esac
21925
21926 fi
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
21928 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
21929     if test "$gl_cv_func_getopt_gnu" != yes; then
21930       gl_replace_getopt=yes
21931     else
21932       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
21933 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
21934 if ${gl_cv_func_getopt_long_gnu+:} false; then :
21935   $as_echo_n "(cached) " >&6
21936 else
21937   if test "$cross_compiling" = yes; then :
21938               case "$host_os" in
21939               openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
21940               *)        gl_cv_func_getopt_long_gnu="guessing yes";;
21941             esac
21942
21943 else
21944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21945 /* end confdefs.h.  */
21946 #include <getopt.h>
21947                 #include <stddef.h>
21948                 #include <string.h>
21949
21950 int
21951 main ()
21952 {
21953 static const struct option long_options[] =
21954                   {
21955                     { "xtremely-",no_argument,       NULL, 1003 },
21956                     { "xtra",     no_argument,       NULL, 1001 },
21957                     { "xtreme",   no_argument,       NULL, 1002 },
21958                     { "xtremely", no_argument,       NULL, 1003 },
21959                     { NULL,       0,                 NULL, 0 }
21960                   };
21961                 /* This code fails on OpenBSD 5.0.  */
21962                 {
21963                   static char program[] = "program";
21964                   static char xtremel[] = "--xtremel";
21965                   char *argv[] = { program, xtremel, NULL };
21966                   int option_index;
21967                   optind = 1; opterr = 0;
21968                   if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
21969                     return 1;
21970                 }
21971                 return 0;
21972
21973   ;
21974   return 0;
21975 }
21976 _ACEOF
21977 if ac_fn_c_try_run "$LINENO"; then :
21978   gl_cv_func_getopt_long_gnu=yes
21979 else
21980   gl_cv_func_getopt_long_gnu=no
21981 fi
21982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21983   conftest.$ac_objext conftest.beam conftest.$ac_ext
21984 fi
21985
21986
21987 fi
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
21989 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
21990       case "$gl_cv_func_getopt_long_gnu" in
21991         *yes) ;;
21992         *) gl_replace_getopt=yes ;;
21993       esac
21994     fi
21995   fi
21996
21997
21998
21999
22000
22001
22002     REPLACE_GETOPT=1
22003
22004   if test $REPLACE_GETOPT = 1; then
22005
22006   GETOPT_H=getopt.h
22007
22008 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22009
22010
22011
22012   fi
22013
22014
22015       ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
22016 if test "x$ac_cv_have_decl_getenv" = xyes; then :
22017   ac_have_decl=1
22018 else
22019   ac_have_decl=0
22020 fi
22021
22022 cat >>confdefs.h <<_ACEOF
22023 #define HAVE_DECL_GETENV $ac_have_decl
22024 _ACEOF
22025
22026
22027 :
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039   GNULIB_GETTIMEOFDAY=0;
22040     HAVE_GETTIMEOFDAY=1;
22041   HAVE_STRUCT_TIMEVAL=1;
22042   HAVE_SYS_TIME_H=1;
22043   REPLACE_GETTIMEOFDAY=0;
22044   REPLACE_STRUCT_TIMEVAL=0;
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055   :
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067   :
22068
22069
22070
22071
22072
22073
22074
22075
22076      if test $gl_cv_have_include_next = yes; then
22077        gl_cv_next_sys_time_h='<'sys/time.h'>'
22078      else
22079        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
22080 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
22081 if ${gl_cv_next_sys_time_h+:} false; then :
22082   $as_echo_n "(cached) " >&6
22083 else
22084
22085              if test $ac_cv_header_sys_time_h = yes; then
22086
22087
22088
22089
22090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22091 /* end confdefs.h.  */
22092 #include <sys/time.h>
22093 _ACEOF
22094                 case "$host_os" in
22095     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22096     *)    gl_absname_cpp="$ac_cpp" ;;
22097   esac
22098
22099   case "$host_os" in
22100     mingw*)
22101                                           gl_dirsep_regex='[/\\]'
22102       ;;
22103     *)
22104       gl_dirsep_regex='\/'
22105       ;;
22106   esac
22107       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22108   gl_header_literal_regex=`echo 'sys/time.h' \
22109                            | sed -e "$gl_make_literal_regex_sed"`
22110   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22111       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22112       s|^/[^/]|//&|
22113       p
22114       q
22115     }'
22116
22117         gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22118   sed -n "$gl_absolute_header_sed"`
22119
22120            gl_header=$gl_cv_absolute_sys_time_h
22121            gl_cv_next_sys_time_h='"'$gl_header'"'
22122           else
22123                gl_cv_next_sys_time_h='<'sys/time.h'>'
22124              fi
22125
22126
22127 fi
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
22129 $as_echo "$gl_cv_next_sys_time_h" >&6; }
22130      fi
22131      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
22132
22133      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22134        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22135        gl_next_as_first_directive='<'sys/time.h'>'
22136      else
22137        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22138        gl_next_as_first_directive=$gl_cv_next_sys_time_h
22139      fi
22140      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
22141
22142
22143
22144
22145
22146   if test $ac_cv_header_sys_time_h != yes; then
22147     HAVE_SYS_TIME_H=0
22148   fi
22149
22150
22151
22152
22153
22154   :
22155
22156
22157
22158
22159
22160   if test $ac_cv_header_sys_socket_h != yes; then
22161                     for ac_header in winsock2.h
22162 do :
22163   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22164 if test "x$ac_cv_header_winsock2_h" = xyes; then :
22165   cat >>confdefs.h <<_ACEOF
22166 #define HAVE_WINSOCK2_H 1
22167 _ACEOF
22168
22169 fi
22170
22171 done
22172
22173   fi
22174   if test "$ac_cv_header_winsock2_h" = yes; then
22175     HAVE_WINSOCK2_H=1
22176     UNISTD_H_HAVE_WINSOCK2_H=1
22177     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22178   else
22179     HAVE_WINSOCK2_H=0
22180   fi
22181
22182
22183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
22184 $as_echo_n "checking for struct timeval... " >&6; }
22185 if ${gl_cv_sys_struct_timeval+:} false; then :
22186   $as_echo_n "(cached) " >&6
22187 else
22188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22189 /* end confdefs.h.  */
22190 #if HAVE_SYS_TIME_H
22191              #include <sys/time.h>
22192             #endif
22193             #include <time.h>
22194             #if HAVE_WINSOCK2_H
22195             # include <winsock2.h>
22196             #endif
22197
22198 int
22199 main ()
22200 {
22201 static struct timeval x; x.tv_sec = x.tv_usec;
22202   ;
22203   return 0;
22204 }
22205 _ACEOF
22206 if ac_fn_c_try_compile "$LINENO"; then :
22207   gl_cv_sys_struct_timeval=yes
22208 else
22209   gl_cv_sys_struct_timeval=no
22210 fi
22211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22212
22213 fi
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
22215 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
22216   if test $gl_cv_sys_struct_timeval != yes; then
22217     HAVE_STRUCT_TIMEVAL=0
22218   else
22219                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
22220 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
22221 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
22222   $as_echo_n "(cached) " >&6
22223 else
22224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22225 /* end confdefs.h.  */
22226 #if HAVE_SYS_TIME_H
22227                #include <sys/time.h>
22228               #endif
22229               #include <time.h>
22230               #if HAVE_WINSOCK2_H
22231               # include <winsock2.h>
22232               #endif
22233
22234 int
22235 main ()
22236 {
22237 static struct timeval x;
22238               typedef int verify_tv_sec_type[
22239                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
22240               ];
22241
22242   ;
22243   return 0;
22244 }
22245 _ACEOF
22246 if ac_fn_c_try_compile "$LINENO"; then :
22247   gl_cv_sys_struct_timeval_tv_sec=yes
22248 else
22249   gl_cv_sys_struct_timeval_tv_sec=no
22250 fi
22251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22252
22253 fi
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
22255 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
22256     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
22257       REPLACE_STRUCT_TIMEVAL=1
22258     fi
22259   fi
22260
22261
22262     for gl_func in gettimeofday; do
22263     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22265 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22266 if eval \${$as_gl_Symbol+:} false; then :
22267   $as_echo_n "(cached) " >&6
22268 else
22269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22270 /* end confdefs.h.  */
22271
22272 #if HAVE_SYS_TIME_H
22273 # include <sys/time.h>
22274 #endif
22275 #include <time.h>
22276
22277 int
22278 main ()
22279 {
22280 #undef $gl_func
22281   (void) $gl_func;
22282   ;
22283   return 0;
22284 }
22285 _ACEOF
22286 if ac_fn_c_try_compile "$LINENO"; then :
22287   eval "$as_gl_Symbol=yes"
22288 else
22289   eval "$as_gl_Symbol=no"
22290 fi
22291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292 fi
22293 eval ac_res=\$$as_gl_Symbol
22294                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22295 $as_echo "$ac_res" >&6; }
22296     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22297   cat >>confdefs.h <<_ACEOF
22298 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22299 _ACEOF
22300
22301                      eval ac_cv_have_decl_$gl_func=yes
22302 fi
22303       done
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380   GNULIB_SOCKET=0;
22381   GNULIB_CONNECT=0;
22382   GNULIB_ACCEPT=0;
22383   GNULIB_BIND=0;
22384   GNULIB_GETPEERNAME=0;
22385   GNULIB_GETSOCKNAME=0;
22386   GNULIB_GETSOCKOPT=0;
22387   GNULIB_LISTEN=0;
22388   GNULIB_RECV=0;
22389   GNULIB_SEND=0;
22390   GNULIB_RECVFROM=0;
22391   GNULIB_SENDTO=0;
22392   GNULIB_SETSOCKOPT=0;
22393   GNULIB_SHUTDOWN=0;
22394   GNULIB_ACCEPT4=0;
22395   HAVE_STRUCT_SOCKADDR_STORAGE=1;
22396   HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
22397
22398   HAVE_SA_FAMILY_T=1;
22399   HAVE_ACCEPT4=1;
22400
22401
22402   :
22403
22404
22405
22406
22407
22408    if test $ac_cv_header_sys_socket_h = no; then
22409                          for ac_header in ws2tcpip.h
22410 do :
22411   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
22412 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
22413   cat >>confdefs.h <<_ACEOF
22414 #define HAVE_WS2TCPIP_H 1
22415 _ACEOF
22416
22417 fi
22418
22419 done
22420
22421    fi
22422
22423
22424
22425
22426
22427         case "$host_os" in
22428     osf*)
22429
22430 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
22431
22432       ;;
22433   esac
22434
22435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
22436 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
22437 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
22438   $as_echo_n "(cached) " >&6
22439 else
22440
22441       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22442 /* end confdefs.h.  */
22443 #include <sys/socket.h>
22444 int
22445 main ()
22446 {
22447
22448   ;
22449   return 0;
22450 }
22451 _ACEOF
22452 if ac_fn_c_try_compile "$LINENO"; then :
22453   gl_cv_header_sys_socket_h_selfcontained=yes
22454 else
22455   gl_cv_header_sys_socket_h_selfcontained=no
22456 fi
22457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22458
22459 fi
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
22461 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
22462   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
22463             for ac_func in shutdown
22464 do :
22465   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
22466 if test "x$ac_cv_func_shutdown" = xyes; then :
22467   cat >>confdefs.h <<_ACEOF
22468 #define HAVE_SHUTDOWN 1
22469 _ACEOF
22470
22471 fi
22472 done
22473
22474     if test $ac_cv_func_shutdown = yes; then
22475       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
22476 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
22477 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
22478   $as_echo_n "(cached) " >&6
22479 else
22480
22481           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22482 /* end confdefs.h.  */
22483 #include <sys/socket.h>
22484 int
22485 main ()
22486 {
22487 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
22488   ;
22489   return 0;
22490 }
22491 _ACEOF
22492 if ac_fn_c_try_compile "$LINENO"; then :
22493   gl_cv_header_sys_socket_h_shut=yes
22494 else
22495   gl_cv_header_sys_socket_h_shut=no
22496 fi
22497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22498
22499 fi
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
22501 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
22502       if test $gl_cv_header_sys_socket_h_shut = no; then
22503         SYS_SOCKET_H='sys/socket.h'
22504       fi
22505     fi
22506   fi
22507   # We need to check for ws2tcpip.h now.
22508
22509
22510
22511
22512
22513
22514
22515
22516   :
22517
22518
22519
22520
22521
22522
22523
22524
22525      if test $gl_cv_have_include_next = yes; then
22526        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
22527      else
22528        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
22529 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
22530 if ${gl_cv_next_sys_socket_h+:} false; then :
22531   $as_echo_n "(cached) " >&6
22532 else
22533
22534              if test $ac_cv_header_sys_socket_h = yes; then
22535
22536
22537
22538
22539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22540 /* end confdefs.h.  */
22541 #include <sys/socket.h>
22542 _ACEOF
22543                 case "$host_os" in
22544     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22545     *)    gl_absname_cpp="$ac_cpp" ;;
22546   esac
22547
22548   case "$host_os" in
22549     mingw*)
22550                                           gl_dirsep_regex='[/\\]'
22551       ;;
22552     *)
22553       gl_dirsep_regex='\/'
22554       ;;
22555   esac
22556       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22557   gl_header_literal_regex=`echo 'sys/socket.h' \
22558                            | sed -e "$gl_make_literal_regex_sed"`
22559   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22560       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22561       s|^/[^/]|//&|
22562       p
22563       q
22564     }'
22565
22566         gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22567   sed -n "$gl_absolute_header_sed"`
22568
22569            gl_header=$gl_cv_absolute_sys_socket_h
22570            gl_cv_next_sys_socket_h='"'$gl_header'"'
22571           else
22572                gl_cv_next_sys_socket_h='<'sys/socket.h'>'
22573              fi
22574
22575
22576 fi
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
22578 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
22579      fi
22580      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
22581
22582      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22583        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22584        gl_next_as_first_directive='<'sys/socket.h'>'
22585      else
22586        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22587        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
22588      fi
22589      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
22590
22591
22592
22593
22594   if test $ac_cv_header_sys_socket_h = yes; then
22595     HAVE_SYS_SOCKET_H=1
22596     HAVE_WS2TCPIP_H=0
22597   else
22598     HAVE_SYS_SOCKET_H=0
22599     if test $ac_cv_header_ws2tcpip_h = yes; then
22600       HAVE_WS2TCPIP_H=1
22601     else
22602       HAVE_WS2TCPIP_H=0
22603     fi
22604   fi
22605
22606
22607
22608   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
22609   /* sys/types.h is not needed according to POSIX, but the
22610      sys/socket.h in i386-unknown-freebsd4.10 and
22611      powerpc-apple-darwin5.5 required it. */
22612 #include <sys/types.h>
22613 #ifdef HAVE_SYS_SOCKET_H
22614 #include <sys/socket.h>
22615 #endif
22616 #ifdef HAVE_WS2TCPIP_H
22617 #include <ws2tcpip.h>
22618 #endif
22619
22620 "
22621 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
22622
22623 cat >>confdefs.h <<_ACEOF
22624 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
22625 _ACEOF
22626
22627
22628 fi
22629 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
22630   /* sys/types.h is not needed according to POSIX, but the
22631      sys/socket.h in i386-unknown-freebsd4.10 and
22632      powerpc-apple-darwin5.5 required it. */
22633 #include <sys/types.h>
22634 #ifdef HAVE_SYS_SOCKET_H
22635 #include <sys/socket.h>
22636 #endif
22637 #ifdef HAVE_WS2TCPIP_H
22638 #include <ws2tcpip.h>
22639 #endif
22640
22641 "
22642 if test "x$ac_cv_type_sa_family_t" = xyes; then :
22643
22644 cat >>confdefs.h <<_ACEOF
22645 #define HAVE_SA_FAMILY_T 1
22646 _ACEOF
22647
22648
22649 fi
22650
22651   if test $ac_cv_type_struct_sockaddr_storage = no; then
22652     HAVE_STRUCT_SOCKADDR_STORAGE=0
22653   fi
22654   if test $ac_cv_type_sa_family_t = no; then
22655     HAVE_SA_FAMILY_T=0
22656   fi
22657   if test $ac_cv_type_struct_sockaddr_storage != no; then
22658     ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
22659        #ifdef HAVE_SYS_SOCKET_H
22660        #include <sys/socket.h>
22661        #endif
22662        #ifdef HAVE_WS2TCPIP_H
22663        #include <ws2tcpip.h>
22664        #endif
22665
22666 "
22667 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
22668
22669 cat >>confdefs.h <<_ACEOF
22670 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
22671 _ACEOF
22672
22673
22674 else
22675   HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
22676 fi
22677
22678   fi
22679   if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
22680      || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
22681     SYS_SOCKET_H='sys/socket.h'
22682   fi
22683
22684
22685
22686
22687   :
22688
22689
22690
22691
22692
22693   if test $ac_cv_header_sys_socket_h != yes; then
22694                     for ac_header in winsock2.h
22695 do :
22696   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22697 if test "x$ac_cv_header_winsock2_h" = xyes; then :
22698   cat >>confdefs.h <<_ACEOF
22699 #define HAVE_WINSOCK2_H 1
22700 _ACEOF
22701
22702 fi
22703
22704 done
22705
22706   fi
22707   if test "$ac_cv_header_winsock2_h" = yes; then
22708     HAVE_WINSOCK2_H=1
22709     UNISTD_H_HAVE_WINSOCK2_H=1
22710     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22711   else
22712     HAVE_WINSOCK2_H=0
22713   fi
22714
22715
22716
22717
22718     for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
22719     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22721 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22722 if eval \${$as_gl_Symbol+:} false; then :
22723   $as_echo_n "(cached) " >&6
22724 else
22725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22726 /* end confdefs.h.  */
22727
22728 /* Some systems require prerequisite headers.  */
22729 #include <sys/types.h>
22730 #include <sys/socket.h>
22731
22732 int
22733 main ()
22734 {
22735 #undef $gl_func
22736   (void) $gl_func;
22737   ;
22738   return 0;
22739 }
22740 _ACEOF
22741 if ac_fn_c_try_compile "$LINENO"; then :
22742   eval "$as_gl_Symbol=yes"
22743 else
22744   eval "$as_gl_Symbol=no"
22745 fi
22746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22747 fi
22748 eval ac_res=\$$as_gl_Symbol
22749                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22750 $as_echo "$ac_res" >&6; }
22751     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22752   cat >>confdefs.h <<_ACEOF
22753 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22754 _ACEOF
22755
22756                      eval ac_cv_have_decl_$gl_func=yes
22757 fi
22758       done
22759
22760
22761
22762   GNULIB_NL_LANGINFO=0;
22763     HAVE_NL_LANGINFO=1;
22764   REPLACE_NL_LANGINFO=0;
22765
22766
22767
22768
22769
22770
22771
22772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
22773 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
22774 if ${ac_cv_gnu_library_2_1+:} false; then :
22775   $as_echo_n "(cached) " >&6
22776 else
22777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22778 /* end confdefs.h.  */
22779
22780 #include <features.h>
22781 #ifdef __GNU_LIBRARY__
22782  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
22783   Lucky GNU user
22784  #endif
22785 #endif
22786 #ifdef __UCLIBC__
22787  Lucky user
22788 #endif
22789
22790 _ACEOF
22791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22792   $EGREP "Lucky" >/dev/null 2>&1; then :
22793   ac_cv_gnu_library_2_1=yes
22794 else
22795   ac_cv_gnu_library_2_1=no
22796 fi
22797 rm -f conftest*
22798
22799
22800
22801 fi
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
22803 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
22804
22805     GLIBC21="$ac_cv_gnu_library_2_1"
22806
22807
22808
22809   GNULIB_LOCALECONV=0;
22810   GNULIB_SETLOCALE=0;
22811   GNULIB_DUPLOCALE=0;
22812     HAVE_DUPLOCALE=1;
22813   REPLACE_LOCALECONV=0;
22814   REPLACE_SETLOCALE=0;
22815   REPLACE_DUPLOCALE=0;
22816   REPLACE_STRUCT_LCONV=0;
22817
22818
22819     REPLACE_NULL=0;
22820   HAVE_WCHAR_T=1;
22821
22822
22823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
22824 $as_echo_n "checking for wchar_t... " >&6; }
22825 if ${gt_cv_c_wchar_t+:} false; then :
22826   $as_echo_n "(cached) " >&6
22827 else
22828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22829 /* end confdefs.h.  */
22830 #include <stddef.h>
22831             wchar_t foo = (wchar_t)'\0';
22832 int
22833 main ()
22834 {
22835
22836   ;
22837   return 0;
22838 }
22839 _ACEOF
22840 if ac_fn_c_try_compile "$LINENO"; then :
22841   gt_cv_c_wchar_t=yes
22842 else
22843   gt_cv_c_wchar_t=no
22844 fi
22845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22846 fi
22847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
22848 $as_echo "$gt_cv_c_wchar_t" >&6; }
22849   if test $gt_cv_c_wchar_t = yes; then
22850
22851 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
22852
22853   fi
22854
22855
22856
22857
22858   STDDEF_H=
22859   if test $gt_cv_c_wchar_t = no; then
22860     HAVE_WCHAR_T=0
22861     STDDEF_H=stddef.h
22862   fi
22863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22864 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22865 if ${gl_cv_decl_null_works+:} false; then :
22866   $as_echo_n "(cached) " >&6
22867 else
22868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22869 /* end confdefs.h.  */
22870 #include <stddef.h>
22871       int test[2 * (sizeof NULL == sizeof (void *)) -1];
22872
22873 int
22874 main ()
22875 {
22876
22877   ;
22878   return 0;
22879 }
22880 _ACEOF
22881 if ac_fn_c_try_compile "$LINENO"; then :
22882   gl_cv_decl_null_works=yes
22883 else
22884   gl_cv_decl_null_works=no
22885 fi
22886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22887 fi
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22889 $as_echo "$gl_cv_decl_null_works" >&6; }
22890   if test $gl_cv_decl_null_works = no; then
22891     REPLACE_NULL=1
22892     STDDEF_H=stddef.h
22893   fi
22894
22895    if test -n "$STDDEF_H"; then
22896   GL_GENERATE_STDDEF_H_TRUE=
22897   GL_GENERATE_STDDEF_H_FALSE='#'
22898 else
22899   GL_GENERATE_STDDEF_H_TRUE='#'
22900   GL_GENERATE_STDDEF_H_FALSE=
22901 fi
22902
22903   if test -n "$STDDEF_H"; then
22904
22905
22906
22907
22908
22909
22910
22911
22912      if test $gl_cv_have_include_next = yes; then
22913        gl_cv_next_stddef_h='<'stddef.h'>'
22914      else
22915        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22916 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22917 if ${gl_cv_next_stddef_h+:} false; then :
22918   $as_echo_n "(cached) " >&6
22919 else
22920
22921
22922
22923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924 /* end confdefs.h.  */
22925 #include <stddef.h>
22926 _ACEOF
22927                 case "$host_os" in
22928     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22929     *)    gl_absname_cpp="$ac_cpp" ;;
22930   esac
22931
22932   case "$host_os" in
22933     mingw*)
22934                                           gl_dirsep_regex='[/\\]'
22935       ;;
22936     *)
22937       gl_dirsep_regex='\/'
22938       ;;
22939   esac
22940       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22941   gl_header_literal_regex=`echo 'stddef.h' \
22942                            | sed -e "$gl_make_literal_regex_sed"`
22943   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22944       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22945       s|^/[^/]|//&|
22946       p
22947       q
22948     }'
22949
22950         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22951   sed -n "$gl_absolute_header_sed"`
22952
22953            gl_header=$gl_cv_absolute_stddef_h
22954            gl_cv_next_stddef_h='"'$gl_header'"'
22955
22956
22957 fi
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22959 $as_echo "$gl_cv_next_stddef_h" >&6; }
22960      fi
22961      NEXT_STDDEF_H=$gl_cv_next_stddef_h
22962
22963      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22964        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22965        gl_next_as_first_directive='<'stddef.h'>'
22966      else
22967        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22968        gl_next_as_first_directive=$gl_cv_next_stddef_h
22969      fi
22970      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22971
22972
22973
22974
22975   fi
22976
22977
22978
22979
22980
22981
22982
22983       if test "X$prefix" = "XNONE"; then
22984     acl_final_prefix="$ac_default_prefix"
22985   else
22986     acl_final_prefix="$prefix"
22987   fi
22988   if test "X$exec_prefix" = "XNONE"; then
22989     acl_final_exec_prefix='${prefix}'
22990   else
22991     acl_final_exec_prefix="$exec_prefix"
22992   fi
22993   acl_save_prefix="$prefix"
22994   prefix="$acl_final_prefix"
22995   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22996   prefix="$acl_save_prefix"
22997
22998
22999
23000 # Check whether --with-gnu-ld was given.
23001 if test "${with_gnu_ld+set}" = set; then :
23002   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
23003 else
23004   with_gnu_ld=no
23005 fi
23006
23007 # Prepare PATH_SEPARATOR.
23008 # The user is always right.
23009 if test "${PATH_SEPARATOR+set}" != set; then
23010   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
23011   # contains only /bin. Note that ksh looks also at the FPATH variable,
23012   # so we have to set that as well for the test.
23013   PATH_SEPARATOR=:
23014   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
23015     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
23016            || PATH_SEPARATOR=';'
23017        }
23018 fi
23019
23020 ac_prog=ld
23021 if test "$GCC" = yes; then
23022   # Check if gcc -print-prog-name=ld gives a path.
23023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
23024 $as_echo_n "checking for ld used by $CC... " >&6; }
23025   case $host in
23026   *-*-mingw*)
23027     # gcc leaves a trailing carriage return which upsets mingw
23028     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
23029   *)
23030     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
23031   esac
23032   case $ac_prog in
23033     # Accept absolute paths.
23034     [\\/]* | ?:[\\/]*)
23035       re_direlt='/[^/][^/]*/\.\./'
23036       # Canonicalize the pathname of ld
23037       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
23038       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
23039         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
23040       done
23041       test -z "$LD" && LD="$ac_prog"
23042       ;;
23043   "")
23044     # If it fails, then pretend we aren't using GCC.
23045     ac_prog=ld
23046     ;;
23047   *)
23048     # If it is relative, then search for the first ld in PATH.
23049     with_gnu_ld=unknown
23050     ;;
23051   esac
23052 elif test "$with_gnu_ld" = yes; then
23053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
23054 $as_echo_n "checking for GNU ld... " >&6; }
23055 else
23056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
23057 $as_echo_n "checking for non-GNU ld... " >&6; }
23058 fi
23059 if ${acl_cv_path_LD+:} false; then :
23060   $as_echo_n "(cached) " >&6
23061 else
23062   if test -z "$LD"; then
23063   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
23064   for ac_dir in $PATH; do
23065     IFS="$acl_save_ifs"
23066     test -z "$ac_dir" && ac_dir=.
23067     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
23068       acl_cv_path_LD="$ac_dir/$ac_prog"
23069       # Check to see if the program is GNU ld.  I'd rather use --version,
23070       # but apparently some variants of GNU ld only accept -v.
23071       # Break only if it was the GNU/non-GNU ld that we prefer.
23072       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
23073       *GNU* | *'with BFD'*)
23074         test "$with_gnu_ld" != no && break
23075         ;;
23076       *)
23077         test "$with_gnu_ld" != yes && break
23078         ;;
23079       esac
23080     fi
23081   done
23082   IFS="$acl_save_ifs"
23083 else
23084   acl_cv_path_LD="$LD" # Let the user override the test with a path.
23085 fi
23086 fi
23087
23088 LD="$acl_cv_path_LD"
23089 if test -n "$LD"; then
23090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
23091 $as_echo "$LD" >&6; }
23092 else
23093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23094 $as_echo "no" >&6; }
23095 fi
23096 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
23098 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
23099 if ${acl_cv_prog_gnu_ld+:} false; then :
23100   $as_echo_n "(cached) " >&6
23101 else
23102   # I'd rather use --version here, but apparently some GNU lds only accept -v.
23103 case `$LD -v 2>&1 </dev/null` in
23104 *GNU* | *'with BFD'*)
23105   acl_cv_prog_gnu_ld=yes
23106   ;;
23107 *)
23108   acl_cv_prog_gnu_ld=no
23109   ;;
23110 esac
23111 fi
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
23113 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
23114 with_gnu_ld=$acl_cv_prog_gnu_ld
23115
23116
23117
23118
23119                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
23120 $as_echo_n "checking for shared library run path origin... " >&6; }
23121 if ${acl_cv_rpath+:} false; then :
23122   $as_echo_n "(cached) " >&6
23123 else
23124
23125     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
23126     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
23127     . ./conftest.sh
23128     rm -f ./conftest.sh
23129     acl_cv_rpath=done
23130
23131 fi
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
23133 $as_echo "$acl_cv_rpath" >&6; }
23134   wl="$acl_cv_wl"
23135   acl_libext="$acl_cv_libext"
23136   acl_shlibext="$acl_cv_shlibext"
23137   acl_libname_spec="$acl_cv_libname_spec"
23138   acl_library_names_spec="$acl_cv_library_names_spec"
23139   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
23140   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
23141   acl_hardcode_direct="$acl_cv_hardcode_direct"
23142   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
23143     # Check whether --enable-rpath was given.
23144 if test "${enable_rpath+set}" = set; then :
23145   enableval=$enable_rpath; :
23146 else
23147   enable_rpath=yes
23148 fi
23149
23150
23151
23152
23153   acl_libdirstem=lib
23154   acl_libdirstem2=
23155   case "$host_os" in
23156     solaris*)
23157                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
23158 $as_echo_n "checking for 64-bit host... " >&6; }
23159 if ${gl_cv_solaris_64bit+:} false; then :
23160   $as_echo_n "(cached) " >&6
23161 else
23162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23163 /* end confdefs.h.  */
23164
23165 #ifdef _LP64
23166 sixtyfour bits
23167 #endif
23168
23169 _ACEOF
23170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23171   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
23172   gl_cv_solaris_64bit=yes
23173 else
23174   gl_cv_solaris_64bit=no
23175 fi
23176 rm -f conftest*
23177
23178
23179 fi
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
23181 $as_echo "$gl_cv_solaris_64bit" >&6; }
23182       if test $gl_cv_solaris_64bit = yes; then
23183         acl_libdirstem=lib/64
23184         case "$host_cpu" in
23185           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
23186           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
23187         esac
23188       fi
23189       ;;
23190     *)
23191       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
23192       if test -n "$searchpath"; then
23193         acl_save_IFS="${IFS=    }"; IFS=":"
23194         for searchdir in $searchpath; do
23195           if test -d "$searchdir"; then
23196             case "$searchdir" in
23197               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
23198               */../ | */.. )
23199                 # Better ignore directories of this form. They are misleading.
23200                 ;;
23201               *) searchdir=`cd "$searchdir" && pwd`
23202                  case "$searchdir" in
23203                    */lib64 ) acl_libdirstem=lib64 ;;
23204                  esac ;;
23205             esac
23206           fi
23207         done
23208         IFS="$acl_save_IFS"
23209       fi
23210       ;;
23211   esac
23212   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
23213
23214
23215
23216   gl_threads_api=none
23217   LIBTHREAD=
23218   LTLIBTHREAD=
23219   LIBMULTITHREAD=
23220   LTLIBMULTITHREAD=
23221   if test "$gl_use_threads" != no; then
23222         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
23223 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
23224 if ${gl_cv_have_weak+:} false; then :
23225   $as_echo_n "(cached) " >&6
23226 else
23227   gl_cv_have_weak=no
23228               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23229 /* end confdefs.h.  */
23230 extern void xyzzy ();
23231 #pragma weak xyzzy
23232 int
23233 main ()
23234 {
23235 xyzzy();
23236   ;
23237   return 0;
23238 }
23239 _ACEOF
23240 if ac_fn_c_try_link "$LINENO"; then :
23241   gl_cv_have_weak=maybe
23242 fi
23243 rm -f core conftest.err conftest.$ac_objext \
23244     conftest$ac_exeext conftest.$ac_ext
23245        if test $gl_cv_have_weak = maybe; then
23246                            if test "$cross_compiling" = yes; then :
23247                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23248 /* end confdefs.h.  */
23249 #ifdef __ELF__
23250                Extensible Linking Format
23251                #endif
23252
23253 _ACEOF
23254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23255   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
23256   gl_cv_have_weak="guessing yes"
23257 else
23258   gl_cv_have_weak="guessing no"
23259 fi
23260 rm -f conftest*
23261
23262
23263 else
23264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23265 /* end confdefs.h.  */
23266
23267 #include <stdio.h>
23268 #pragma weak fputs
23269 int main ()
23270 {
23271   return (fputs == NULL);
23272 }
23273 _ACEOF
23274 if ac_fn_c_try_run "$LINENO"; then :
23275   gl_cv_have_weak=yes
23276 else
23277   gl_cv_have_weak=no
23278 fi
23279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23280   conftest.$ac_objext conftest.beam conftest.$ac_ext
23281 fi
23282
23283        fi
23284
23285 fi
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
23287 $as_echo "$gl_cv_have_weak" >&6; }
23288     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
23289       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
23290       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
23291       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
23292 if test "x$ac_cv_header_pthread_h" = xyes; then :
23293   gl_have_pthread_h=yes
23294 else
23295   gl_have_pthread_h=no
23296 fi
23297
23298
23299       if test "$gl_have_pthread_h" = yes; then
23300         # Other possible tests:
23301         #   -lpthreads (FSU threads, PCthreads)
23302         #   -lgthreads
23303         gl_have_pthread=
23304         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
23305         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
23306         # the second one only in libpthread, and lock.c needs it.
23307         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23308 /* end confdefs.h.  */
23309 #include <pthread.h>
23310 int
23311 main ()
23312 {
23313 pthread_mutex_lock((pthread_mutex_t*)0);
23314                pthread_mutexattr_init((pthread_mutexattr_t*)0);
23315   ;
23316   return 0;
23317 }
23318 _ACEOF
23319 if ac_fn_c_try_link "$LINENO"; then :
23320   gl_have_pthread=yes
23321 fi
23322 rm -f core conftest.err conftest.$ac_objext \
23323     conftest$ac_exeext conftest.$ac_ext
23324         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
23325         # since it is defined as a macro on OSF/1.)
23326         if test -n "$gl_have_pthread"; then
23327           # The program links fine without libpthread. But it may actually
23328           # need to link with libpthread in order to create multiple threads.
23329           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
23330 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
23331 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
23332   $as_echo_n "(cached) " >&6
23333 else
23334   ac_check_lib_save_LIBS=$LIBS
23335 LIBS="-lpthread  $LIBS"
23336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23337 /* end confdefs.h.  */
23338
23339 /* Override any GCC internal prototype to avoid an error.
23340    Use char because int might match the return type of a GCC
23341    builtin and then its argument prototype would still apply.  */
23342 #ifdef __cplusplus
23343 extern "C"
23344 #endif
23345 char pthread_kill ();
23346 int
23347 main ()
23348 {
23349 return pthread_kill ();
23350   ;
23351   return 0;
23352 }
23353 _ACEOF
23354 if ac_fn_c_try_link "$LINENO"; then :
23355   ac_cv_lib_pthread_pthread_kill=yes
23356 else
23357   ac_cv_lib_pthread_pthread_kill=no
23358 fi
23359 rm -f core conftest.err conftest.$ac_objext \
23360     conftest$ac_exeext conftest.$ac_ext
23361 LIBS=$ac_check_lib_save_LIBS
23362 fi
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
23364 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
23365 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
23366   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
23367              # On Solaris and HP-UX, most pthread functions exist also in libc.
23368              # Therefore pthread_in_use() needs to actually try to create a
23369              # thread: pthread_create from libc will fail, whereas
23370              # pthread_create will actually create a thread.
23371              case "$host_os" in
23372                solaris* | hpux*)
23373
23374 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
23375
23376              esac
23377
23378 fi
23379
23380         else
23381           # Some library is needed. Try libpthread and libc_r.
23382           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
23383 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
23384 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
23385   $as_echo_n "(cached) " >&6
23386 else
23387   ac_check_lib_save_LIBS=$LIBS
23388 LIBS="-lpthread  $LIBS"
23389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23390 /* end confdefs.h.  */
23391
23392 /* Override any GCC internal prototype to avoid an error.
23393    Use char because int might match the return type of a GCC
23394    builtin and then its argument prototype would still apply.  */
23395 #ifdef __cplusplus
23396 extern "C"
23397 #endif
23398 char pthread_kill ();
23399 int
23400 main ()
23401 {
23402 return pthread_kill ();
23403   ;
23404   return 0;
23405 }
23406 _ACEOF
23407 if ac_fn_c_try_link "$LINENO"; then :
23408   ac_cv_lib_pthread_pthread_kill=yes
23409 else
23410   ac_cv_lib_pthread_pthread_kill=no
23411 fi
23412 rm -f core conftest.err conftest.$ac_objext \
23413     conftest$ac_exeext conftest.$ac_ext
23414 LIBS=$ac_check_lib_save_LIBS
23415 fi
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
23417 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
23418 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
23419   gl_have_pthread=yes
23420              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
23421              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
23422 fi
23423
23424           if test -z "$gl_have_pthread"; then
23425             # For FreeBSD 4.
23426             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
23427 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
23428 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
23429   $as_echo_n "(cached) " >&6
23430 else
23431   ac_check_lib_save_LIBS=$LIBS
23432 LIBS="-lc_r  $LIBS"
23433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23434 /* end confdefs.h.  */
23435
23436 /* Override any GCC internal prototype to avoid an error.
23437    Use char because int might match the return type of a GCC
23438    builtin and then its argument prototype would still apply.  */
23439 #ifdef __cplusplus
23440 extern "C"
23441 #endif
23442 char pthread_kill ();
23443 int
23444 main ()
23445 {
23446 return pthread_kill ();
23447   ;
23448   return 0;
23449 }
23450 _ACEOF
23451 if ac_fn_c_try_link "$LINENO"; then :
23452   ac_cv_lib_c_r_pthread_kill=yes
23453 else
23454   ac_cv_lib_c_r_pthread_kill=no
23455 fi
23456 rm -f core conftest.err conftest.$ac_objext \
23457     conftest$ac_exeext conftest.$ac_ext
23458 LIBS=$ac_check_lib_save_LIBS
23459 fi
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
23461 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
23462 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
23463   gl_have_pthread=yes
23464                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
23465                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
23466 fi
23467
23468           fi
23469         fi
23470         if test -n "$gl_have_pthread"; then
23471           gl_threads_api=posix
23472
23473 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
23474
23475           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
23476             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
23477
23478 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
23479
23480               LIBTHREAD=
23481               LTLIBTHREAD=
23482             fi
23483           fi
23484         fi
23485       fi
23486     fi
23487     if test -z "$gl_have_pthread"; then
23488       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
23489         gl_have_solaristhread=
23490         gl_save_LIBS="$LIBS"
23491         LIBS="$LIBS -lthread"
23492         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23493 /* end confdefs.h.  */
23494
23495 #include <thread.h>
23496 #include <synch.h>
23497
23498 int
23499 main ()
23500 {
23501 thr_self();
23502   ;
23503   return 0;
23504 }
23505 _ACEOF
23506 if ac_fn_c_try_link "$LINENO"; then :
23507   gl_have_solaristhread=yes
23508 fi
23509 rm -f core conftest.err conftest.$ac_objext \
23510     conftest$ac_exeext conftest.$ac_ext
23511         LIBS="$gl_save_LIBS"
23512         if test -n "$gl_have_solaristhread"; then
23513           gl_threads_api=solaris
23514           LIBTHREAD=-lthread
23515           LTLIBTHREAD=-lthread
23516           LIBMULTITHREAD="$LIBTHREAD"
23517           LTLIBMULTITHREAD="$LTLIBTHREAD"
23518
23519 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
23520
23521           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
23522
23523 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
23524
23525             LIBTHREAD=
23526             LTLIBTHREAD=
23527           fi
23528         fi
23529       fi
23530     fi
23531     if test "$gl_use_threads" = pth; then
23532       gl_save_CPPFLAGS="$CPPFLAGS"
23533
23534
23535
23536
23537
23538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
23539 $as_echo_n "checking how to link with libpth... " >&6; }
23540 if ${ac_cv_libpth_libs+:} false; then :
23541   $as_echo_n "(cached) " >&6
23542 else
23543
23544
23545
23546
23547
23548
23549
23550
23551     use_additional=yes
23552
23553   acl_save_prefix="$prefix"
23554   prefix="$acl_final_prefix"
23555   acl_save_exec_prefix="$exec_prefix"
23556   exec_prefix="$acl_final_exec_prefix"
23557
23558     eval additional_includedir=\"$includedir\"
23559     eval additional_libdir=\"$libdir\"
23560
23561   exec_prefix="$acl_save_exec_prefix"
23562   prefix="$acl_save_prefix"
23563
23564
23565 # Check whether --with-libpth-prefix was given.
23566 if test "${with_libpth_prefix+set}" = set; then :
23567   withval=$with_libpth_prefix;
23568     if test "X$withval" = "Xno"; then
23569       use_additional=no
23570     else
23571       if test "X$withval" = "X"; then
23572
23573   acl_save_prefix="$prefix"
23574   prefix="$acl_final_prefix"
23575   acl_save_exec_prefix="$exec_prefix"
23576   exec_prefix="$acl_final_exec_prefix"
23577
23578           eval additional_includedir=\"$includedir\"
23579           eval additional_libdir=\"$libdir\"
23580
23581   exec_prefix="$acl_save_exec_prefix"
23582   prefix="$acl_save_prefix"
23583
23584       else
23585         additional_includedir="$withval/include"
23586         additional_libdir="$withval/$acl_libdirstem"
23587         if test "$acl_libdirstem2" != "$acl_libdirstem" \
23588            && ! test -d "$withval/$acl_libdirstem"; then
23589           additional_libdir="$withval/$acl_libdirstem2"
23590         fi
23591       fi
23592     fi
23593
23594 fi
23595
23596       LIBPTH=
23597   LTLIBPTH=
23598   INCPTH=
23599   LIBPTH_PREFIX=
23600       HAVE_LIBPTH=
23601   rpathdirs=
23602   ltrpathdirs=
23603   names_already_handled=
23604   names_next_round='pth '
23605   while test -n "$names_next_round"; do
23606     names_this_round="$names_next_round"
23607     names_next_round=
23608     for name in $names_this_round; do
23609       already_handled=
23610       for n in $names_already_handled; do
23611         if test "$n" = "$name"; then
23612           already_handled=yes
23613           break
23614         fi
23615       done
23616       if test -z "$already_handled"; then
23617         names_already_handled="$names_already_handled $name"
23618                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
23619         eval value=\"\$HAVE_LIB$uppername\"
23620         if test -n "$value"; then
23621           if test "$value" = yes; then
23622             eval value=\"\$LIB$uppername\"
23623             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
23624             eval value=\"\$LTLIB$uppername\"
23625             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
23626           else
23627                                     :
23628           fi
23629         else
23630                               found_dir=
23631           found_la=
23632           found_so=
23633           found_a=
23634           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
23635           if test -n "$acl_shlibext"; then
23636             shrext=".$acl_shlibext"             # typically: shrext=.so
23637           else
23638             shrext=
23639           fi
23640           if test $use_additional = yes; then
23641             dir="$additional_libdir"
23642                                     if test -n "$acl_shlibext"; then
23643               if test -f "$dir/$libname$shrext"; then
23644                 found_dir="$dir"
23645                 found_so="$dir/$libname$shrext"
23646               else
23647                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23648                   ver=`(cd "$dir" && \
23649                         for f in "$libname$shrext".*; do echo "$f"; done \
23650                         | sed -e "s,^$libname$shrext\\\\.,," \
23651                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23652                         | sed 1q ) 2>/dev/null`
23653                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23654                     found_dir="$dir"
23655                     found_so="$dir/$libname$shrext.$ver"
23656                   fi
23657                 else
23658                   eval library_names=\"$acl_library_names_spec\"
23659                   for f in $library_names; do
23660                     if test -f "$dir/$f"; then
23661                       found_dir="$dir"
23662                       found_so="$dir/$f"
23663                       break
23664                     fi
23665                   done
23666                 fi
23667               fi
23668             fi
23669                         if test "X$found_dir" = "X"; then
23670               if test -f "$dir/$libname.$acl_libext"; then
23671                 found_dir="$dir"
23672                 found_a="$dir/$libname.$acl_libext"
23673               fi
23674             fi
23675             if test "X$found_dir" != "X"; then
23676               if test -f "$dir/$libname.la"; then
23677                 found_la="$dir/$libname.la"
23678               fi
23679             fi
23680           fi
23681           if test "X$found_dir" = "X"; then
23682             for x in $LDFLAGS $LTLIBPTH; do
23683
23684   acl_save_prefix="$prefix"
23685   prefix="$acl_final_prefix"
23686   acl_save_exec_prefix="$exec_prefix"
23687   exec_prefix="$acl_final_exec_prefix"
23688   eval x=\"$x\"
23689   exec_prefix="$acl_save_exec_prefix"
23690   prefix="$acl_save_prefix"
23691
23692               case "$x" in
23693                 -L*)
23694                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23695                                     if test -n "$acl_shlibext"; then
23696                     if test -f "$dir/$libname$shrext"; then
23697                       found_dir="$dir"
23698                       found_so="$dir/$libname$shrext"
23699                     else
23700                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23701                         ver=`(cd "$dir" && \
23702                               for f in "$libname$shrext".*; do echo "$f"; done \
23703                               | sed -e "s,^$libname$shrext\\\\.,," \
23704                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23705                               | sed 1q ) 2>/dev/null`
23706                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23707                           found_dir="$dir"
23708                           found_so="$dir/$libname$shrext.$ver"
23709                         fi
23710                       else
23711                         eval library_names=\"$acl_library_names_spec\"
23712                         for f in $library_names; do
23713                           if test -f "$dir/$f"; then
23714                             found_dir="$dir"
23715                             found_so="$dir/$f"
23716                             break
23717                           fi
23718                         done
23719                       fi
23720                     fi
23721                   fi
23722                                     if test "X$found_dir" = "X"; then
23723                     if test -f "$dir/$libname.$acl_libext"; then
23724                       found_dir="$dir"
23725                       found_a="$dir/$libname.$acl_libext"
23726                     fi
23727                   fi
23728                   if test "X$found_dir" != "X"; then
23729                     if test -f "$dir/$libname.la"; then
23730                       found_la="$dir/$libname.la"
23731                     fi
23732                   fi
23733                   ;;
23734               esac
23735               if test "X$found_dir" != "X"; then
23736                 break
23737               fi
23738             done
23739           fi
23740           if test "X$found_dir" != "X"; then
23741                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
23742             if test "X$found_so" != "X"; then
23743                                                         if test "$enable_rpath" = no \
23744                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
23745                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
23746                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
23747               else
23748                                                                                 haveit=
23749                 for x in $ltrpathdirs; do
23750                   if test "X$x" = "X$found_dir"; then
23751                     haveit=yes
23752                     break
23753                   fi
23754                 done
23755                 if test -z "$haveit"; then
23756                   ltrpathdirs="$ltrpathdirs $found_dir"
23757                 fi
23758                                 if test "$acl_hardcode_direct" = yes; then
23759                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
23760                 else
23761                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
23762                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
23763                                                             haveit=
23764                     for x in $rpathdirs; do
23765                       if test "X$x" = "X$found_dir"; then
23766                         haveit=yes
23767                         break
23768                       fi
23769                     done
23770                     if test -z "$haveit"; then
23771                       rpathdirs="$rpathdirs $found_dir"
23772                     fi
23773                   else
23774                                                                                 haveit=
23775                     for x in $LDFLAGS $LIBPTH; do
23776
23777   acl_save_prefix="$prefix"
23778   prefix="$acl_final_prefix"
23779   acl_save_exec_prefix="$exec_prefix"
23780   exec_prefix="$acl_final_exec_prefix"
23781   eval x=\"$x\"
23782   exec_prefix="$acl_save_exec_prefix"
23783   prefix="$acl_save_prefix"
23784
23785                       if test "X$x" = "X-L$found_dir"; then
23786                         haveit=yes
23787                         break
23788                       fi
23789                     done
23790                     if test -z "$haveit"; then
23791                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
23792                     fi
23793                     if test "$acl_hardcode_minus_L" != no; then
23794                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
23795                     else
23796                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
23797                     fi
23798                   fi
23799                 fi
23800               fi
23801             else
23802               if test "X$found_a" != "X"; then
23803                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
23804               else
23805                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
23806               fi
23807             fi
23808                         additional_includedir=
23809             case "$found_dir" in
23810               */$acl_libdirstem | */$acl_libdirstem/)
23811                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23812                 if test "$name" = 'pth'; then
23813                   LIBPTH_PREFIX="$basedir"
23814                 fi
23815                 additional_includedir="$basedir/include"
23816                 ;;
23817               */$acl_libdirstem2 | */$acl_libdirstem2/)
23818                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
23819                 if test "$name" = 'pth'; then
23820                   LIBPTH_PREFIX="$basedir"
23821                 fi
23822                 additional_includedir="$basedir/include"
23823                 ;;
23824             esac
23825             if test "X$additional_includedir" != "X"; then
23826                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23827                 haveit=
23828                 if test "X$additional_includedir" = "X/usr/local/include"; then
23829                   if test -n "$GCC"; then
23830                     case $host_os in
23831                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23832                     esac
23833                   fi
23834                 fi
23835                 if test -z "$haveit"; then
23836                   for x in $CPPFLAGS $INCPTH; do
23837
23838   acl_save_prefix="$prefix"
23839   prefix="$acl_final_prefix"
23840   acl_save_exec_prefix="$exec_prefix"
23841   exec_prefix="$acl_final_exec_prefix"
23842   eval x=\"$x\"
23843   exec_prefix="$acl_save_exec_prefix"
23844   prefix="$acl_save_prefix"
23845
23846                     if test "X$x" = "X-I$additional_includedir"; then
23847                       haveit=yes
23848                       break
23849                     fi
23850                   done
23851                   if test -z "$haveit"; then
23852                     if test -d "$additional_includedir"; then
23853                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
23854                     fi
23855                   fi
23856                 fi
23857               fi
23858             fi
23859                         if test -n "$found_la"; then
23860                                                         save_libdir="$libdir"
23861               case "$found_la" in
23862                 */* | *\\*) . "$found_la" ;;
23863                 *) . "./$found_la" ;;
23864               esac
23865               libdir="$save_libdir"
23866                             for dep in $dependency_libs; do
23867                 case "$dep" in
23868                   -L*)
23869                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23870                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
23871                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
23872                       haveit=
23873                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
23874                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
23875                         if test -n "$GCC"; then
23876                           case $host_os in
23877                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23878                           esac
23879                         fi
23880                       fi
23881                       if test -z "$haveit"; then
23882                         haveit=
23883                         for x in $LDFLAGS $LIBPTH; do
23884
23885   acl_save_prefix="$prefix"
23886   prefix="$acl_final_prefix"
23887   acl_save_exec_prefix="$exec_prefix"
23888   exec_prefix="$acl_final_exec_prefix"
23889   eval x=\"$x\"
23890   exec_prefix="$acl_save_exec_prefix"
23891   prefix="$acl_save_prefix"
23892
23893                           if test "X$x" = "X-L$additional_libdir"; then
23894                             haveit=yes
23895                             break
23896                           fi
23897                         done
23898                         if test -z "$haveit"; then
23899                           if test -d "$additional_libdir"; then
23900                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
23901                           fi
23902                         fi
23903                         haveit=
23904                         for x in $LDFLAGS $LTLIBPTH; do
23905
23906   acl_save_prefix="$prefix"
23907   prefix="$acl_final_prefix"
23908   acl_save_exec_prefix="$exec_prefix"
23909   exec_prefix="$acl_final_exec_prefix"
23910   eval x=\"$x\"
23911   exec_prefix="$acl_save_exec_prefix"
23912   prefix="$acl_save_prefix"
23913
23914                           if test "X$x" = "X-L$additional_libdir"; then
23915                             haveit=yes
23916                             break
23917                           fi
23918                         done
23919                         if test -z "$haveit"; then
23920                           if test -d "$additional_libdir"; then
23921                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
23922                           fi
23923                         fi
23924                       fi
23925                     fi
23926                     ;;
23927                   -R*)
23928                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23929                     if test "$enable_rpath" != no; then
23930                                                                   haveit=
23931                       for x in $rpathdirs; do
23932                         if test "X$x" = "X$dir"; then
23933                           haveit=yes
23934                           break
23935                         fi
23936                       done
23937                       if test -z "$haveit"; then
23938                         rpathdirs="$rpathdirs $dir"
23939                       fi
23940                                                                   haveit=
23941                       for x in $ltrpathdirs; do
23942                         if test "X$x" = "X$dir"; then
23943                           haveit=yes
23944                           break
23945                         fi
23946                       done
23947                       if test -z "$haveit"; then
23948                         ltrpathdirs="$ltrpathdirs $dir"
23949                       fi
23950                     fi
23951                     ;;
23952                   -l*)
23953                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23954                     ;;
23955                   *.la)
23956                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23957                     ;;
23958                   *)
23959                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
23960                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
23961                     ;;
23962                 esac
23963               done
23964             fi
23965           else
23966                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
23967             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
23968           fi
23969         fi
23970       fi
23971     done
23972   done
23973   if test "X$rpathdirs" != "X"; then
23974     if test -n "$acl_hardcode_libdir_separator"; then
23975                         alldirs=
23976       for found_dir in $rpathdirs; do
23977         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
23978       done
23979             acl_save_libdir="$libdir"
23980       libdir="$alldirs"
23981       eval flag=\"$acl_hardcode_libdir_flag_spec\"
23982       libdir="$acl_save_libdir"
23983       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
23984     else
23985             for found_dir in $rpathdirs; do
23986         acl_save_libdir="$libdir"
23987         libdir="$found_dir"
23988         eval flag=\"$acl_hardcode_libdir_flag_spec\"
23989         libdir="$acl_save_libdir"
23990         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
23991       done
23992     fi
23993   fi
23994   if test "X$ltrpathdirs" != "X"; then
23995             for found_dir in $ltrpathdirs; do
23996       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
23997     done
23998   fi
23999
24000
24001
24002
24003
24004
24005     ac_cv_libpth_libs="$LIBPTH"
24006     ac_cv_libpth_ltlibs="$LTLIBPTH"
24007     ac_cv_libpth_cppflags="$INCPTH"
24008     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
24009
24010 fi
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
24012 $as_echo "$ac_cv_libpth_libs" >&6; }
24013   LIBPTH="$ac_cv_libpth_libs"
24014   LTLIBPTH="$ac_cv_libpth_ltlibs"
24015   INCPTH="$ac_cv_libpth_cppflags"
24016   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
24017
24018   for element in $INCPTH; do
24019     haveit=
24020     for x in $CPPFLAGS; do
24021
24022   acl_save_prefix="$prefix"
24023   prefix="$acl_final_prefix"
24024   acl_save_exec_prefix="$exec_prefix"
24025   exec_prefix="$acl_final_exec_prefix"
24026   eval x=\"$x\"
24027   exec_prefix="$acl_save_exec_prefix"
24028   prefix="$acl_save_prefix"
24029
24030       if test "X$x" = "X$element"; then
24031         haveit=yes
24032         break
24033       fi
24034     done
24035     if test -z "$haveit"; then
24036       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24037     fi
24038   done
24039
24040
24041
24042
24043       HAVE_LIBPTH=yes
24044
24045
24046
24047       gl_have_pth=
24048       gl_save_LIBS="$LIBS"
24049       LIBS="$LIBS $LIBPTH"
24050       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24051 /* end confdefs.h.  */
24052 #include <pth.h>
24053 int
24054 main ()
24055 {
24056 pth_self();
24057   ;
24058   return 0;
24059 }
24060 _ACEOF
24061 if ac_fn_c_try_link "$LINENO"; then :
24062   gl_have_pth=yes
24063 fi
24064 rm -f core conftest.err conftest.$ac_objext \
24065     conftest$ac_exeext conftest.$ac_ext
24066       LIBS="$gl_save_LIBS"
24067       if test -n "$gl_have_pth"; then
24068         gl_threads_api=pth
24069         LIBTHREAD="$LIBPTH"
24070         LTLIBTHREAD="$LTLIBPTH"
24071         LIBMULTITHREAD="$LIBTHREAD"
24072         LTLIBMULTITHREAD="$LTLIBTHREAD"
24073
24074 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
24075
24076         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
24077           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
24078
24079 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
24080
24081             LIBTHREAD=
24082             LTLIBTHREAD=
24083           fi
24084         fi
24085       else
24086         CPPFLAGS="$gl_save_CPPFLAGS"
24087       fi
24088     fi
24089     if test -z "$gl_have_pthread"; then
24090       case "$gl_use_threads" in
24091         yes | windows | win32) # The 'win32' is for backward compatibility.
24092           if { case "$host_os" in
24093                  mingw*) true;;
24094                  *) false;;
24095                esac
24096              }; then
24097             gl_threads_api=windows
24098
24099 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
24100
24101           fi
24102           ;;
24103       esac
24104     fi
24105   fi
24106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
24107 $as_echo_n "checking for multithread API to use... " >&6; }
24108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
24109 $as_echo "$gl_threads_api" >&6; }
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
24126 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
24127 if ${gl_cv_func_malloc_posix+:} false; then :
24128   $as_echo_n "(cached) " >&6
24129 else
24130
24131                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24132 /* end confdefs.h.  */
24133
24134 int
24135 main ()
24136 {
24137 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
24138              choke me
24139              #endif
24140
24141   ;
24142   return 0;
24143 }
24144 _ACEOF
24145 if ac_fn_c_try_compile "$LINENO"; then :
24146   gl_cv_func_malloc_posix=yes
24147 else
24148   gl_cv_func_malloc_posix=no
24149 fi
24150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24151
24152 fi
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
24154 $as_echo "$gl_cv_func_malloc_posix" >&6; }
24155
24156
24157
24158       for ac_header in stdlib.h
24159 do :
24160   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
24161 if test "x$ac_cv_header_stdlib_h" = xyes; then :
24162   cat >>confdefs.h <<_ACEOF
24163 #define HAVE_STDLIB_H 1
24164 _ACEOF
24165
24166 fi
24167
24168 done
24169
24170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
24171 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
24172 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
24173   $as_echo_n "(cached) " >&6
24174 else
24175   if test "$cross_compiling" = yes; then :
24176   case "$host_os" in
24177           # Guess yes on platforms where we know the result.
24178           *-gnu* | freebsd* | netbsd* | openbsd* \
24179           | hpux* | solaris* | cygwin* | mingw*)
24180             ac_cv_func_malloc_0_nonnull=yes ;;
24181           # If we don't know, assume the worst.
24182           *) ac_cv_func_malloc_0_nonnull=no ;;
24183         esac
24184
24185 else
24186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24187 /* end confdefs.h.  */
24188 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
24189             # include <stdlib.h>
24190             #else
24191             char *malloc ();
24192             #endif
24193
24194 int
24195 main ()
24196 {
24197 return ! malloc (0);
24198   ;
24199   return 0;
24200 }
24201
24202 _ACEOF
24203 if ac_fn_c_try_run "$LINENO"; then :
24204   ac_cv_func_malloc_0_nonnull=yes
24205 else
24206   ac_cv_func_malloc_0_nonnull=no
24207 fi
24208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24209   conftest.$ac_objext conftest.beam conftest.$ac_ext
24210 fi
24211
24212
24213 fi
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
24215 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
24216   if test $ac_cv_func_malloc_0_nonnull = yes; then :
24217   gl_cv_func_malloc_0_nonnull=1
24218 else
24219   gl_cv_func_malloc_0_nonnull=0
24220 fi
24221
24222
24223 cat >>confdefs.h <<_ACEOF
24224 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
24225 _ACEOF
24226
24227
24228
24229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
24230 $as_echo_n "checking for unsigned long long int... " >&6; }
24231 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
24232   $as_echo_n "(cached) " >&6
24233 else
24234   ac_cv_type_unsigned_long_long_int=yes
24235      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
24236        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24237 /* end confdefs.h.  */
24238
24239   /* For now, do not test the preprocessor; as of 2007 there are too many
24240          implementations with broken preprocessors.  Perhaps this can
24241          be revisited in 2012.  In the meantime, code should not expect
24242          #if to work with literals wider than 32 bits.  */
24243       /* Test literals.  */
24244       long long int ll = 9223372036854775807ll;
24245       long long int nll = -9223372036854775807LL;
24246       unsigned long long int ull = 18446744073709551615ULL;
24247       /* Test constant expressions.   */
24248       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
24249                      ? 1 : -1)];
24250       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
24251                      ? 1 : -1)];
24252       int i = 63;
24253 int
24254 main ()
24255 {
24256 /* Test availability of runtime routines for shift and division.  */
24257       long long int llmax = 9223372036854775807ll;
24258       unsigned long long int ullmax = 18446744073709551615ull;
24259       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
24260               | (llmax / ll) | (llmax % ll)
24261               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
24262               | (ullmax / ull) | (ullmax % ull));
24263   ;
24264   return 0;
24265 }
24266
24267 _ACEOF
24268 if ac_fn_c_try_link "$LINENO"; then :
24269
24270 else
24271   ac_cv_type_unsigned_long_long_int=no
24272 fi
24273 rm -f core conftest.err conftest.$ac_objext \
24274     conftest$ac_exeext conftest.$ac_ext
24275      fi
24276 fi
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
24278 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
24279   if test $ac_cv_type_unsigned_long_long_int = yes; then
24280
24281 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
24282
24283   fi
24284
24285
24286
24287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
24288 $as_echo_n "checking for long long int... " >&6; }
24289 if ${ac_cv_type_long_long_int+:} false; then :
24290   $as_echo_n "(cached) " >&6
24291 else
24292   ac_cv_type_long_long_int=yes
24293       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
24294         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
24295         if test $ac_cv_type_long_long_int = yes; then
24296                                         if test "$cross_compiling" = yes; then :
24297   :
24298 else
24299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24300 /* end confdefs.h.  */
24301 #include <limits.h>
24302                  #ifndef LLONG_MAX
24303                  # define HALF \
24304                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
24305                  # define LLONG_MAX (HALF - 1 + HALF)
24306                  #endif
24307 int
24308 main ()
24309 {
24310 long long int n = 1;
24311                  int i;
24312                  for (i = 0; ; i++)
24313                    {
24314                      long long int m = n << i;
24315                      if (m >> i != n)
24316                        return 1;
24317                      if (LLONG_MAX / 2 < m)
24318                        break;
24319                    }
24320                  return 0;
24321   ;
24322   return 0;
24323 }
24324 _ACEOF
24325 if ac_fn_c_try_run "$LINENO"; then :
24326
24327 else
24328   ac_cv_type_long_long_int=no
24329 fi
24330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24331   conftest.$ac_objext conftest.beam conftest.$ac_ext
24332 fi
24333
24334         fi
24335       fi
24336 fi
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
24338 $as_echo "$ac_cv_type_long_long_int" >&6; }
24339   if test $ac_cv_type_long_long_int = yes; then
24340
24341 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
24342
24343   fi
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356
24357
24358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
24359 $as_echo_n "checking for a traditional japanese locale... " >&6; }
24360 if ${gt_cv_locale_ja+:} false; then :
24361   $as_echo_n "(cached) " >&6
24362 else
24363
24364     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24365 /* end confdefs.h.  */
24366
24367 #include <locale.h>
24368 #include <time.h>
24369 #if HAVE_LANGINFO_CODESET
24370 # include <langinfo.h>
24371 #endif
24372 #include <stdlib.h>
24373 #include <string.h>
24374 struct tm t;
24375 char buf[16];
24376 int main ()
24377 {
24378   const char *p;
24379   /* Check whether the given locale name is recognized by the system.  */
24380 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
24381   /* On native Windows, setlocale(category, "") looks at the system settings,
24382      not at the environment variables.  Also, when an encoding suffix such
24383      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
24384      category of the locale to "C".  */
24385   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
24386       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
24387     return 1;
24388 #else
24389   if (setlocale (LC_ALL, "") == NULL) return 1;
24390 #endif
24391   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
24392      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
24393      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
24394      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
24395      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
24396      some unit tests fail.
24397      On MirBSD 10, when an unsupported locale is specified, setlocale()
24398      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
24399 #if HAVE_LANGINFO_CODESET
24400   {
24401     const char *cs = nl_langinfo (CODESET);
24402     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
24403         || strcmp (cs, "UTF-8") == 0)
24404       return 1;
24405   }
24406 #endif
24407 #ifdef __CYGWIN__
24408   /* On Cygwin, avoid locale names without encoding suffix, because the
24409      locale_charset() function relies on the encoding suffix.  Note that
24410      LC_ALL is set on the command line.  */
24411   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
24412 #endif
24413   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
24414      on Cygwin 1.5.x.  */
24415   if (MB_CUR_MAX == 1)
24416     return 1;
24417   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
24418      This excludes the UTF-8 encoding (except on MirBSD).  */
24419   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
24420   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
24421   for (p = buf; *p != '\0'; p++)
24422     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
24423       return 1;
24424   return 0;
24425 }
24426
24427 _ACEOF
24428     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
24429   (eval $ac_link) 2>&5
24430   ac_status=$?
24431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24432   test $ac_status = 0; } && test -s conftest$ac_exeext; then
24433       case "$host_os" in
24434         # Handle native Windows specially, because there setlocale() interprets
24435         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
24436         # "fr" or "fra" as "French" or "French_France.1252",
24437         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
24438         # "ja" as "Japanese" or "Japanese_Japan.932",
24439         # and similar.
24440         mingw*)
24441           # Note that on native Windows, the Japanese locale is
24442           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
24443           # cannot use it here.
24444           gt_cv_locale_ja=none
24445           ;;
24446         *)
24447           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
24448           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
24449           # configure script would override the LC_ALL setting. Likewise for
24450           # LC_CTYPE, which is also set at the beginning of the configure script.
24451           # Test for the AIX locale name.
24452           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24453             gt_cv_locale_ja=ja_JP
24454           else
24455             # Test for the locale name with explicit encoding suffix.
24456             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24457               gt_cv_locale_ja=ja_JP.EUC-JP
24458             else
24459               # Test for the HP-UX, OSF/1, NetBSD locale name.
24460               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24461                 gt_cv_locale_ja=ja_JP.eucJP
24462               else
24463                 # Test for the IRIX, FreeBSD locale name.
24464                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24465                   gt_cv_locale_ja=ja_JP.EUC
24466                 else
24467                   # Test for the Solaris 7 locale name.
24468                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24469                     gt_cv_locale_ja=ja
24470                   else
24471                     # Special test for NetBSD 1.6.
24472                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
24473                       gt_cv_locale_ja=ja_JP.eucJP
24474                     else
24475                       # None found.
24476                       gt_cv_locale_ja=none
24477                     fi
24478                   fi
24479                 fi
24480               fi
24481             fi
24482           fi
24483           ;;
24484       esac
24485     fi
24486     rm -fr conftest*
24487
24488 fi
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
24490 $as_echo "$gt_cv_locale_ja" >&6; }
24491   LOCALE_JA=$gt_cv_locale_ja
24492
24493
24494
24495
24496
24497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
24498 $as_echo_n "checking for a transitional chinese locale... " >&6; }
24499 if ${gt_cv_locale_zh_CN+:} false; then :
24500   $as_echo_n "(cached) " >&6
24501 else
24502
24503     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24504 /* end confdefs.h.  */
24505
24506 #include <locale.h>
24507 #include <stdlib.h>
24508 #include <time.h>
24509 #if HAVE_LANGINFO_CODESET
24510 # include <langinfo.h>
24511 #endif
24512 #include <stdlib.h>
24513 #include <string.h>
24514 struct tm t;
24515 char buf[16];
24516 int main ()
24517 {
24518   const char *p;
24519   /* Check whether the given locale name is recognized by the system.  */
24520 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
24521   /* On native Windows, setlocale(category, "") looks at the system settings,
24522      not at the environment variables.  Also, when an encoding suffix such
24523      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
24524      category of the locale to "C".  */
24525   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
24526       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
24527     return 1;
24528 #else
24529   if (setlocale (LC_ALL, "") == NULL) return 1;
24530 #endif
24531   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
24532      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
24533      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
24534      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
24535      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
24536      some unit tests fail.
24537      On MirBSD 10, when an unsupported locale is specified, setlocale()
24538      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
24539 #if HAVE_LANGINFO_CODESET
24540   {
24541     const char *cs = nl_langinfo (CODESET);
24542     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
24543         || strcmp (cs, "UTF-8") == 0)
24544       return 1;
24545   }
24546 #endif
24547 #ifdef __CYGWIN__
24548   /* On Cygwin, avoid locale names without encoding suffix, because the
24549      locale_charset() function relies on the encoding suffix.  Note that
24550      LC_ALL is set on the command line.  */
24551   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
24552 #endif
24553   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
24554      This excludes the UTF-8 encoding (except on MirBSD).  */
24555   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
24556   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
24557   for (p = buf; *p != '\0'; p++)
24558     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
24559       return 1;
24560   /* Check whether a typical GB18030 multibyte sequence is recognized as a
24561      single wide character.  This excludes the GB2312 and GBK encodings.  */
24562   if (mblen ("\203\062\332\066", 5) != 4)
24563     return 1;
24564   return 0;
24565 }
24566
24567 _ACEOF
24568     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
24569   (eval $ac_link) 2>&5
24570   ac_status=$?
24571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24572   test $ac_status = 0; } && test -s conftest$ac_exeext; then
24573       case "$host_os" in
24574         # Handle native Windows specially, because there setlocale() interprets
24575         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
24576         # "fr" or "fra" as "French" or "French_France.1252",
24577         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
24578         # "ja" as "Japanese" or "Japanese_Japan.932",
24579         # and similar.
24580         mingw*)
24581           # Test for the hypothetical native Windows locale name.
24582           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24583             gt_cv_locale_zh_CN=Chinese_China.54936
24584           else
24585             # None found.
24586             gt_cv_locale_zh_CN=none
24587           fi
24588           ;;
24589         solaris2.8)
24590           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
24591           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
24592           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
24593           gt_cv_locale_zh_CN=none
24594           ;;
24595         *)
24596           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
24597           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
24598           # configure script would override the LC_ALL setting. Likewise for
24599           # LC_CTYPE, which is also set at the beginning of the configure script.
24600           # Test for the locale name without encoding suffix.
24601           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24602             gt_cv_locale_zh_CN=zh_CN
24603           else
24604             # Test for the locale name with explicit encoding suffix.
24605             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24606               gt_cv_locale_zh_CN=zh_CN.GB18030
24607             else
24608               # None found.
24609               gt_cv_locale_zh_CN=none
24610             fi
24611           fi
24612           ;;
24613       esac
24614     else
24615       # If there was a link error, due to mblen(), the system is so old that
24616       # it certainly doesn't have a chinese locale.
24617       gt_cv_locale_zh_CN=none
24618     fi
24619     rm -fr conftest*
24620
24621 fi
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
24623 $as_echo "$gt_cv_locale_zh_CN" >&6; }
24624   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
24625
24626
24627
24628
24629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
24630 $as_echo_n "checking for a french Unicode locale... " >&6; }
24631 if ${gt_cv_locale_fr_utf8+:} false; then :
24632   $as_echo_n "(cached) " >&6
24633 else
24634
24635     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24636 /* end confdefs.h.  */
24637
24638 #include <locale.h>
24639 #include <time.h>
24640 #if HAVE_LANGINFO_CODESET
24641 # include <langinfo.h>
24642 #endif
24643 #include <stdlib.h>
24644 #include <string.h>
24645 struct tm t;
24646 char buf[16];
24647 int main () {
24648   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
24649      imitates locale dependent behaviour by looking at the environment
24650      variables, and all locales use the UTF-8 encoding.  */
24651 #if !(defined __BEOS__ || defined __HAIKU__)
24652   /* Check whether the given locale name is recognized by the system.  */
24653 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
24654   /* On native Windows, setlocale(category, "") looks at the system settings,
24655      not at the environment variables.  Also, when an encoding suffix such
24656      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
24657      category of the locale to "C".  */
24658   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
24659       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
24660     return 1;
24661 # else
24662   if (setlocale (LC_ALL, "") == NULL) return 1;
24663 # endif
24664   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
24665      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
24666      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
24667      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
24668      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
24669      some unit tests fail.  */
24670 # if HAVE_LANGINFO_CODESET
24671   {
24672     const char *cs = nl_langinfo (CODESET);
24673     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
24674       return 1;
24675   }
24676 # endif
24677 # ifdef __CYGWIN__
24678   /* On Cygwin, avoid locale names without encoding suffix, because the
24679      locale_charset() function relies on the encoding suffix.  Note that
24680      LC_ALL is set on the command line.  */
24681   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
24682 # endif
24683   /* Check whether in the abbreviation of the second month, the second
24684      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
24685      two bytes long, with UTF-8 encoding.  */
24686   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
24687   if (strftime (buf, sizeof (buf), "%b", &t) < 4
24688       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
24689     return 1;
24690 #endif
24691 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
24692   /* Check whether the decimal separator is a comma.
24693      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
24694      are nl_langinfo(RADIXCHAR) are both ".".  */
24695   if (localeconv () ->decimal_point[0] != ',') return 1;
24696 #endif
24697   return 0;
24698 }
24699
24700 _ACEOF
24701     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
24702   (eval $ac_link) 2>&5
24703   ac_status=$?
24704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24705   test $ac_status = 0; } && test -s conftest$ac_exeext; then
24706       case "$host_os" in
24707         # Handle native Windows specially, because there setlocale() interprets
24708         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
24709         # "fr" or "fra" as "French" or "French_France.1252",
24710         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
24711         # "ja" as "Japanese" or "Japanese_Japan.932",
24712         # and similar.
24713         mingw*)
24714           # Test for the hypothetical native Windows locale name.
24715           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24716             gt_cv_locale_fr_utf8=French_France.65001
24717           else
24718             # None found.
24719             gt_cv_locale_fr_utf8=none
24720           fi
24721           ;;
24722         *)
24723           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
24724           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
24725           # configure script would override the LC_ALL setting. Likewise for
24726           # LC_CTYPE, which is also set at the beginning of the configure script.
24727           # Test for the usual locale name.
24728           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24729             gt_cv_locale_fr_utf8=fr_FR
24730           else
24731             # Test for the locale name with explicit encoding suffix.
24732             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24733               gt_cv_locale_fr_utf8=fr_FR.UTF-8
24734             else
24735               # Test for the Solaris 7 locale name.
24736               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24737                 gt_cv_locale_fr_utf8=fr.UTF-8
24738               else
24739                 # None found.
24740                 gt_cv_locale_fr_utf8=none
24741               fi
24742             fi
24743           fi
24744           ;;
24745       esac
24746     fi
24747     rm -fr conftest*
24748
24749 fi
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
24751 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
24752   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766   GNULIB_FFSL=0;
24767   GNULIB_FFSLL=0;
24768   GNULIB_MEMCHR=0;
24769   GNULIB_MEMMEM=0;
24770   GNULIB_MEMPCPY=0;
24771   GNULIB_MEMRCHR=0;
24772   GNULIB_RAWMEMCHR=0;
24773   GNULIB_STPCPY=0;
24774   GNULIB_STPNCPY=0;
24775   GNULIB_STRCHRNUL=0;
24776   GNULIB_STRDUP=0;
24777   GNULIB_STRNCAT=0;
24778   GNULIB_STRNDUP=0;
24779   GNULIB_STRNLEN=0;
24780   GNULIB_STRPBRK=0;
24781   GNULIB_STRSEP=0;
24782   GNULIB_STRSTR=0;
24783   GNULIB_STRCASESTR=0;
24784   GNULIB_STRTOK_R=0;
24785   GNULIB_MBSLEN=0;
24786   GNULIB_MBSNLEN=0;
24787   GNULIB_MBSCHR=0;
24788   GNULIB_MBSRCHR=0;
24789   GNULIB_MBSSTR=0;
24790   GNULIB_MBSCASECMP=0;
24791   GNULIB_MBSNCASECMP=0;
24792   GNULIB_MBSPCASECMP=0;
24793   GNULIB_MBSCASESTR=0;
24794   GNULIB_MBSCSPN=0;
24795   GNULIB_MBSPBRK=0;
24796   GNULIB_MBSSPN=0;
24797   GNULIB_MBSSEP=0;
24798   GNULIB_MBSTOK_R=0;
24799   GNULIB_STRERROR=0;
24800   GNULIB_STRERROR_R=0;
24801   GNULIB_STRSIGNAL=0;
24802   GNULIB_STRVERSCMP=0;
24803   HAVE_MBSLEN=0;
24804     HAVE_FFSL=1;
24805   HAVE_FFSLL=1;
24806   HAVE_MEMCHR=1;
24807   HAVE_DECL_MEMMEM=1;
24808   HAVE_MEMPCPY=1;
24809   HAVE_DECL_MEMRCHR=1;
24810   HAVE_RAWMEMCHR=1;
24811   HAVE_STPCPY=1;
24812   HAVE_STPNCPY=1;
24813   HAVE_STRCHRNUL=1;
24814   HAVE_DECL_STRDUP=1;
24815   HAVE_DECL_STRNDUP=1;
24816   HAVE_DECL_STRNLEN=1;
24817   HAVE_STRPBRK=1;
24818   HAVE_STRSEP=1;
24819   HAVE_STRCASESTR=1;
24820   HAVE_DECL_STRTOK_R=1;
24821   HAVE_DECL_STRERROR_R=1;
24822   HAVE_DECL_STRSIGNAL=1;
24823   HAVE_STRVERSCMP=1;
24824   REPLACE_MEMCHR=0;
24825   REPLACE_MEMMEM=0;
24826   REPLACE_STPNCPY=0;
24827   REPLACE_STRDUP=0;
24828   REPLACE_STRSTR=0;
24829   REPLACE_STRCASESTR=0;
24830   REPLACE_STRCHRNUL=0;
24831   REPLACE_STRERROR=0;
24832   REPLACE_STRERROR_R=0;
24833   REPLACE_STRNCAT=0;
24834   REPLACE_STRNDUP=0;
24835   REPLACE_STRNLEN=0;
24836   REPLACE_STRSIGNAL=0;
24837   REPLACE_STRTOK_R=0;
24838   UNDEFINE_STRTOK_R=0;
24839
24840
24841
24842
24843
24844   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
24845   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
24846   # irrelevant for anonymous mappings.
24847   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
24848 if test "x$ac_cv_func_mmap" = xyes; then :
24849   gl_have_mmap=yes
24850 else
24851   gl_have_mmap=no
24852 fi
24853
24854
24855   # Try to allow MAP_ANONYMOUS.
24856   gl_have_mmap_anonymous=no
24857   if test $gl_have_mmap = yes; then
24858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
24859 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
24860     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24861 /* end confdefs.h.  */
24862
24863 #include <sys/mman.h>
24864 #ifdef MAP_ANONYMOUS
24865     I cannot identify this map
24866 #endif
24867
24868 _ACEOF
24869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24870   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
24871   gl_have_mmap_anonymous=yes
24872 fi
24873 rm -f conftest*
24874
24875     if test $gl_have_mmap_anonymous != yes; then
24876       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24877 /* end confdefs.h.  */
24878
24879 #include <sys/mman.h>
24880 #ifdef MAP_ANON
24881     I cannot identify this map
24882 #endif
24883
24884 _ACEOF
24885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24886   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
24887
24888 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
24889
24890          gl_have_mmap_anonymous=yes
24891 fi
24892 rm -f conftest*
24893
24894     fi
24895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
24896 $as_echo "$gl_have_mmap_anonymous" >&6; }
24897     if test $gl_have_mmap_anonymous = yes; then
24898
24899 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
24900
24901     fi
24902   fi
24903
24904
24905   :
24906
24907
24908
24909
24910
24911
24912   :
24913
24914
24915
24916
24917
24918
24919
24920
24921   if test $HAVE_MEMCHR = 1; then
24922     # Detect platform-specific bugs in some versions of glibc:
24923     # memchr should not dereference anything with length 0
24924     #   http://bugzilla.redhat.com/499689
24925     # memchr should not dereference overestimated length after a match
24926     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
24927     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
24928     # Assume that memchr works on platforms that lack mprotect.
24929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
24930 $as_echo_n "checking whether memchr works... " >&6; }
24931 if ${gl_cv_func_memchr_works+:} false; then :
24932   $as_echo_n "(cached) " >&6
24933 else
24934   if test "$cross_compiling" = yes; then :
24935          gl_cv_func_memchr_works="guessing no"
24936 else
24937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24938 /* end confdefs.h.  */
24939
24940 #include <string.h>
24941 #if HAVE_SYS_MMAN_H
24942 # include <fcntl.h>
24943 # include <unistd.h>
24944 # include <sys/types.h>
24945 # include <sys/mman.h>
24946 # ifndef MAP_FILE
24947 #  define MAP_FILE 0
24948 # endif
24949 #endif
24950
24951 int
24952 main ()
24953 {
24954
24955   int result = 0;
24956   char *fence = NULL;
24957 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
24958 # if HAVE_MAP_ANONYMOUS
24959   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
24960   const int fd = -1;
24961 # else /* !HAVE_MAP_ANONYMOUS */
24962   const int flags = MAP_FILE | MAP_PRIVATE;
24963   int fd = open ("/dev/zero", O_RDONLY, 0666);
24964   if (fd >= 0)
24965 # endif
24966     {
24967       int pagesize = getpagesize ();
24968       char *two_pages =
24969         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
24970                        flags, fd, 0);
24971       if (two_pages != (char *)(-1)
24972           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
24973         fence = two_pages + pagesize;
24974     }
24975 #endif
24976   if (fence)
24977     {
24978       if (memchr (fence, 0, 0))
24979         result |= 1;
24980       strcpy (fence - 9, "12345678");
24981       if (memchr (fence - 9, 0, 79) != fence - 1)
24982         result |= 2;
24983       if (memchr (fence - 1, 0, 3) != fence - 1)
24984         result |= 4;
24985     }
24986   return result;
24987
24988   ;
24989   return 0;
24990 }
24991 _ACEOF
24992 if ac_fn_c_try_run "$LINENO"; then :
24993   gl_cv_func_memchr_works=yes
24994 else
24995   gl_cv_func_memchr_works=no
24996 fi
24997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24998   conftest.$ac_objext conftest.beam conftest.$ac_ext
24999 fi
25000
25001 fi
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
25003 $as_echo "$gl_cv_func_memchr_works" >&6; }
25004     if test "$gl_cv_func_memchr_works" != yes; then
25005       REPLACE_MEMCHR=1
25006     fi
25007   fi
25008
25009
25010       ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
25011 if test "x$ac_cv_have_decl_memmem" = xyes; then :
25012   ac_have_decl=1
25013 else
25014   ac_have_decl=0
25015 fi
25016
25017 cat >>confdefs.h <<_ACEOF
25018 #define HAVE_DECL_MEMMEM $ac_have_decl
25019 _ACEOF
25020
25021
25022
25023
25024
25025
25026   for ac_func in memmem
25027 do :
25028   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
25029 if test "x$ac_cv_func_memmem" = xyes; then :
25030   cat >>confdefs.h <<_ACEOF
25031 #define HAVE_MEMMEM 1
25032 _ACEOF
25033
25034 fi
25035 done
25036
25037   if test $ac_cv_func_memmem = yes; then
25038     HAVE_MEMMEM=1
25039   else
25040     HAVE_MEMMEM=0
25041   fi
25042
25043   :
25044
25045
25046
25047
25048
25049   if test $ac_cv_have_decl_memmem = no; then
25050     HAVE_DECL_MEMMEM=0
25051   else
25052             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
25053 $as_echo_n "checking whether memmem works... " >&6; }
25054 if ${gl_cv_func_memmem_works_always+:} false; then :
25055   $as_echo_n "(cached) " >&6
25056 else
25057   if test "$cross_compiling" = yes; then :
25058                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25059 /* end confdefs.h.  */
25060
25061 #ifdef __GNU_LIBRARY__
25062  #include <features.h>
25063  #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
25064                           || __GLIBC_MINOR__ > 12)) \
25065       || (__GLIBC__ > 2)) \
25066      || defined __UCLIBC__
25067   Lucky user
25068  #endif
25069 #elif defined __CYGWIN__
25070  #include <cygwin/version.h>
25071  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
25072   Lucky user
25073  #endif
25074 #else
25075   Lucky user
25076 #endif
25077
25078 _ACEOF
25079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25080   $EGREP "Lucky user" >/dev/null 2>&1; then :
25081   gl_cv_func_memmem_works_always="guessing yes"
25082 else
25083   gl_cv_func_memmem_works_always="guessing no"
25084 fi
25085 rm -f conftest*
25086
25087
25088 else
25089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25090 /* end confdefs.h.  */
25091
25092 #include <string.h> /* for memmem */
25093 #define P "_EF_BF_BD"
25094 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
25095 #define NEEDLE P P P P P
25096
25097 int
25098 main ()
25099 {
25100
25101     int result = 0;
25102     if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
25103       result |= 1;
25104     /* Check for empty needle behavior.  */
25105     {
25106       const char *haystack = "AAA";
25107       if (memmem (haystack, 3, NULL, 0) != haystack)
25108         result |= 2;
25109     }
25110     return result;
25111
25112   ;
25113   return 0;
25114 }
25115 _ACEOF
25116 if ac_fn_c_try_run "$LINENO"; then :
25117   gl_cv_func_memmem_works_always=yes
25118 else
25119   gl_cv_func_memmem_works_always=no
25120 fi
25121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25122   conftest.$ac_objext conftest.beam conftest.$ac_ext
25123 fi
25124
25125
25126 fi
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
25128 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
25129     case "$gl_cv_func_memmem_works_always" in
25130       *yes) ;;
25131       *)
25132         REPLACE_MEMMEM=1
25133         ;;
25134     esac
25135   fi
25136   :
25137
25138
25139       ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
25140 if test "x$ac_cv_have_decl_memrchr" = xyes; then :
25141   ac_have_decl=1
25142 else
25143   ac_have_decl=0
25144 fi
25145
25146 cat >>confdefs.h <<_ACEOF
25147 #define HAVE_DECL_MEMRCHR $ac_have_decl
25148 _ACEOF
25149
25150
25151
25152
25153
25154
25155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
25156 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
25157 if ${gl_cv_minmax_in_limits_h+:} false; then :
25158   $as_echo_n "(cached) " >&6
25159 else
25160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25161 /* end confdefs.h.  */
25162 #include <limits.h>
25163             int x = MIN (42, 17);
25164 int
25165 main ()
25166 {
25167
25168   ;
25169   return 0;
25170 }
25171 _ACEOF
25172 if ac_fn_c_try_compile "$LINENO"; then :
25173   gl_cv_minmax_in_limits_h=yes
25174 else
25175   gl_cv_minmax_in_limits_h=no
25176 fi
25177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25178 fi
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
25180 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
25181   if test $gl_cv_minmax_in_limits_h = yes; then
25182
25183 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
25184
25185   fi
25186
25187
25188
25189
25190
25191
25192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
25193 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
25194 if ${gl_cv_minmax_in_sys_param_h+:} false; then :
25195   $as_echo_n "(cached) " >&6
25196 else
25197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25198 /* end confdefs.h.  */
25199 #include <sys/param.h>
25200             int x = MIN (42, 17);
25201 int
25202 main ()
25203 {
25204
25205   ;
25206   return 0;
25207 }
25208 _ACEOF
25209 if ac_fn_c_try_compile "$LINENO"; then :
25210   gl_cv_minmax_in_sys_param_h=yes
25211 else
25212   gl_cv_minmax_in_sys_param_h=no
25213 fi
25214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25215 fi
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
25217 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
25218   if test $gl_cv_minmax_in_sys_param_h = yes; then
25219
25220 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
25221
25222   fi
25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233     gl_cv_c_multiarch=no
25234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25235 /* end confdefs.h.  */
25236 #ifndef __APPLE_CC__
25237          not a universal capable compiler
25238         #endif
25239         typedef int dummy;
25240
25241 _ACEOF
25242 if ac_fn_c_try_compile "$LINENO"; then :
25243
25244                arch=
25245      prev=
25246      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
25247        if test -n "$prev"; then
25248          case $word in
25249            i?86 | x86_64 | ppc | ppc64)
25250              if test -z "$arch" || test "$arch" = "$word"; then
25251                arch="$word"
25252              else
25253                gl_cv_c_multiarch=yes
25254              fi
25255              ;;
25256          esac
25257          prev=
25258        else
25259          if test "x$word" = "x-arch"; then
25260            prev=arch
25261          fi
25262        fi
25263      done
25264
25265 fi
25266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25267   if test $gl_cv_c_multiarch = yes; then
25268     APPLE_UNIVERSAL_BUILD=1
25269   else
25270     APPLE_UNIVERSAL_BUILD=0
25271   fi
25272
25273
25274
25275   GNULIB_MKTIME=0;
25276   GNULIB_NANOSLEEP=0;
25277   GNULIB_STRPTIME=0;
25278   GNULIB_TIMEGM=0;
25279   GNULIB_TIME_R=0;
25280     HAVE_DECL_LOCALTIME_R=1;
25281   HAVE_NANOSLEEP=1;
25282   HAVE_STRPTIME=1;
25283   HAVE_TIMEGM=1;
25284         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
25285   REPLACE_MKTIME=GNULIB_PORTCHECK;
25286   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
25287   REPLACE_TIMEGM=GNULIB_PORTCHECK;
25288
25289       : ${GNULIB_GETTIMEOFDAY=0};
25290         REPLACE_GMTIME=0;
25291   REPLACE_LOCALTIME=0;
25292
25293
25294   GNULIB_PSELECT=0;
25295   GNULIB_SELECT=0;
25296     HAVE_PSELECT=1;
25297   REPLACE_PSELECT=0;
25298   REPLACE_SELECT=0;
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
25309 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
25310 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
25311   $as_echo_n "(cached) " >&6
25312 else
25313
25314                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25315 /* end confdefs.h.  */
25316 #include <sys/select.h>
25317 int
25318 main ()
25319 {
25320 struct timeval b;
25321   ;
25322   return 0;
25323 }
25324 _ACEOF
25325 if ac_fn_c_try_compile "$LINENO"; then :
25326   gl_cv_header_sys_select_h_selfcontained=yes
25327 else
25328   gl_cv_header_sys_select_h_selfcontained=no
25329 fi
25330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
25332         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25333 /* end confdefs.h.  */
25334 #include <sys/select.h>
25335 int
25336 main ()
25337 {
25338 int memset; int bzero;
25339   ;
25340   return 0;
25341 }
25342
25343 _ACEOF
25344 if ac_fn_c_try_compile "$LINENO"; then :
25345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25346 /* end confdefs.h.  */
25347 #include <sys/select.h>
25348 int
25349 main ()
25350 {
25351
25352                   #undef memset
25353                   #define memset nonexistent_memset
25354                   extern
25355                   #ifdef __cplusplus
25356                   "C"
25357                   #endif
25358                   void *memset (void *, int, unsigned long);
25359                   #undef bzero
25360                   #define bzero nonexistent_bzero
25361                   extern
25362                   #ifdef __cplusplus
25363                   "C"
25364                   #endif
25365                   void bzero (void *, unsigned long);
25366                   fd_set fds;
25367                   FD_ZERO (&fds);
25368
25369   ;
25370   return 0;
25371 }
25372
25373 _ACEOF
25374 if ac_fn_c_try_link "$LINENO"; then :
25375
25376 else
25377   gl_cv_header_sys_select_h_selfcontained=no
25378 fi
25379 rm -f core conftest.err conftest.$ac_objext \
25380     conftest$ac_exeext conftest.$ac_ext
25381
25382 fi
25383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25384       fi
25385
25386 fi
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
25388 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
25389
25390
25391
25392
25393
25394
25395   :
25396
25397
25398
25399
25400
25401
25402
25403
25404      if test $gl_cv_have_include_next = yes; then
25405        gl_cv_next_sys_select_h='<'sys/select.h'>'
25406      else
25407        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
25408 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
25409 if ${gl_cv_next_sys_select_h+:} false; then :
25410   $as_echo_n "(cached) " >&6
25411 else
25412
25413              if test $ac_cv_header_sys_select_h = yes; then
25414
25415
25416
25417
25418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25419 /* end confdefs.h.  */
25420 #include <sys/select.h>
25421 _ACEOF
25422                 case "$host_os" in
25423     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25424     *)    gl_absname_cpp="$ac_cpp" ;;
25425   esac
25426
25427   case "$host_os" in
25428     mingw*)
25429                                           gl_dirsep_regex='[/\\]'
25430       ;;
25431     *)
25432       gl_dirsep_regex='\/'
25433       ;;
25434   esac
25435       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25436   gl_header_literal_regex=`echo 'sys/select.h' \
25437                            | sed -e "$gl_make_literal_regex_sed"`
25438   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25439       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25440       s|^/[^/]|//&|
25441       p
25442       q
25443     }'
25444
25445         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25446   sed -n "$gl_absolute_header_sed"`
25447
25448            gl_header=$gl_cv_absolute_sys_select_h
25449            gl_cv_next_sys_select_h='"'$gl_header'"'
25450           else
25451                gl_cv_next_sys_select_h='<'sys/select.h'>'
25452              fi
25453
25454
25455 fi
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
25457 $as_echo "$gl_cv_next_sys_select_h" >&6; }
25458      fi
25459      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
25460
25461      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25462        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25463        gl_next_as_first_directive='<'sys/select.h'>'
25464      else
25465        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25466        gl_next_as_first_directive=$gl_cv_next_sys_select_h
25467      fi
25468      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
25469
25470
25471
25472
25473   if test $ac_cv_header_sys_select_h = yes; then
25474     HAVE_SYS_SELECT_H=1
25475   else
25476     HAVE_SYS_SELECT_H=0
25477   fi
25478
25479
25480
25481
25482
25483   :
25484
25485
25486
25487
25488
25489   if test $ac_cv_header_sys_socket_h != yes; then
25490                     for ac_header in winsock2.h
25491 do :
25492   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25493 if test "x$ac_cv_header_winsock2_h" = xyes; then :
25494   cat >>confdefs.h <<_ACEOF
25495 #define HAVE_WINSOCK2_H 1
25496 _ACEOF
25497
25498 fi
25499
25500 done
25501
25502   fi
25503   if test "$ac_cv_header_winsock2_h" = yes; then
25504     HAVE_WINSOCK2_H=1
25505     UNISTD_H_HAVE_WINSOCK2_H=1
25506     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
25507   else
25508     HAVE_WINSOCK2_H=0
25509   fi
25510
25511
25512
25513
25514     for gl_func in pselect select; do
25515     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25517 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25518 if eval \${$as_gl_Symbol+:} false; then :
25519   $as_echo_n "(cached) " >&6
25520 else
25521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h.  */
25523
25524 /* Some systems require prerequisite headers.  */
25525 #include <sys/types.h>
25526 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
25527 # include <sys/time.h>
25528 #endif
25529 #include <sys/select.h>
25530
25531 int
25532 main ()
25533 {
25534 #undef $gl_func
25535   (void) $gl_func;
25536   ;
25537   return 0;
25538 }
25539 _ACEOF
25540 if ac_fn_c_try_compile "$LINENO"; then :
25541   eval "$as_gl_Symbol=yes"
25542 else
25543   eval "$as_gl_Symbol=no"
25544 fi
25545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25546 fi
25547 eval ac_res=\$$as_gl_Symbol
25548                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25549 $as_echo "$ac_res" >&6; }
25550     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25551   cat >>confdefs.h <<_ACEOF
25552 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25553 _ACEOF
25554
25555                      eval ac_cv_have_decl_$gl_func=yes
25556 fi
25557       done
25558
25559
25560
25561
25562
25563
25564
25565   :
25566
25567
25568
25569
25570
25571   if test $ac_cv_header_sys_socket_h != yes; then
25572                     for ac_header in winsock2.h
25573 do :
25574   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25575 if test "x$ac_cv_header_winsock2_h" = xyes; then :
25576   cat >>confdefs.h <<_ACEOF
25577 #define HAVE_WINSOCK2_H 1
25578 _ACEOF
25579
25580 fi
25581
25582 done
25583
25584   fi
25585   if test "$ac_cv_header_winsock2_h" = yes; then
25586     HAVE_WINSOCK2_H=1
25587     UNISTD_H_HAVE_WINSOCK2_H=1
25588     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
25589   else
25590     HAVE_WINSOCK2_H=0
25591   fi
25592
25593    LIBSOCKET=
25594   if test $HAVE_WINSOCK2_H = 1; then
25595         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
25596 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
25597 if ${gl_cv_func_wsastartup+:} false; then :
25598   $as_echo_n "(cached) " >&6
25599 else
25600
25601       gl_save_LIBS="$LIBS"
25602       LIBS="$LIBS -lws2_32"
25603       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25604 /* end confdefs.h.  */
25605
25606 #ifdef HAVE_WINSOCK2_H
25607 # include <winsock2.h>
25608 #endif
25609 int
25610 main ()
25611 {
25612
25613           WORD wVersionRequested = MAKEWORD(1, 1);
25614           WSADATA wsaData;
25615           int err = WSAStartup(wVersionRequested, &wsaData);
25616           WSACleanup ();
25617   ;
25618   return 0;
25619 }
25620 _ACEOF
25621 if ac_fn_c_try_link "$LINENO"; then :
25622   gl_cv_func_wsastartup=yes
25623 else
25624   gl_cv_func_wsastartup=no
25625 fi
25626 rm -f core conftest.err conftest.$ac_objext \
25627     conftest$ac_exeext conftest.$ac_ext
25628       LIBS="$gl_save_LIBS"
25629
25630 fi
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
25632 $as_echo "$gl_cv_func_wsastartup" >&6; }
25633     if test "$gl_cv_func_wsastartup" = "yes"; then
25634
25635 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
25636
25637       LIBSOCKET='-lws2_32'
25638     fi
25639   else
25640                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
25641 $as_echo_n "checking for library containing setsockopt... " >&6; }
25642 if ${gl_cv_lib_socket+:} false; then :
25643   $as_echo_n "(cached) " >&6
25644 else
25645
25646       gl_cv_lib_socket=
25647       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25648 /* end confdefs.h.  */
25649 extern
25650 #ifdef __cplusplus
25651 "C"
25652 #endif
25653 char setsockopt();
25654 int
25655 main ()
25656 {
25657 setsockopt();
25658   ;
25659   return 0;
25660 }
25661 _ACEOF
25662 if ac_fn_c_try_link "$LINENO"; then :
25663
25664 else
25665   gl_save_LIBS="$LIBS"
25666          LIBS="$gl_save_LIBS -lsocket"
25667          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25668 /* end confdefs.h.  */
25669 extern
25670 #ifdef __cplusplus
25671 "C"
25672 #endif
25673 char setsockopt();
25674 int
25675 main ()
25676 {
25677 setsockopt();
25678   ;
25679   return 0;
25680 }
25681 _ACEOF
25682 if ac_fn_c_try_link "$LINENO"; then :
25683   gl_cv_lib_socket="-lsocket"
25684 fi
25685 rm -f core conftest.err conftest.$ac_objext \
25686     conftest$ac_exeext conftest.$ac_ext
25687          if test -z "$gl_cv_lib_socket"; then
25688            LIBS="$gl_save_LIBS -lnetwork"
25689            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25690 /* end confdefs.h.  */
25691 extern
25692 #ifdef __cplusplus
25693 "C"
25694 #endif
25695 char setsockopt();
25696 int
25697 main ()
25698 {
25699 setsockopt();
25700   ;
25701   return 0;
25702 }
25703 _ACEOF
25704 if ac_fn_c_try_link "$LINENO"; then :
25705   gl_cv_lib_socket="-lnetwork"
25706 fi
25707 rm -f core conftest.err conftest.$ac_objext \
25708     conftest$ac_exeext conftest.$ac_ext
25709            if test -z "$gl_cv_lib_socket"; then
25710              LIBS="$gl_save_LIBS -lnet"
25711              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25712 /* end confdefs.h.  */
25713 extern
25714 #ifdef __cplusplus
25715 "C"
25716 #endif
25717 char setsockopt();
25718 int
25719 main ()
25720 {
25721 setsockopt();
25722   ;
25723   return 0;
25724 }
25725 _ACEOF
25726 if ac_fn_c_try_link "$LINENO"; then :
25727   gl_cv_lib_socket="-lnet"
25728 fi
25729 rm -f core conftest.err conftest.$ac_objext \
25730     conftest$ac_exeext conftest.$ac_ext
25731            fi
25732          fi
25733          LIBS="$gl_save_LIBS"
25734
25735 fi
25736 rm -f core conftest.err conftest.$ac_objext \
25737     conftest$ac_exeext conftest.$ac_ext
25738       if test -z "$gl_cv_lib_socket"; then
25739         gl_cv_lib_socket="none needed"
25740       fi
25741
25742 fi
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
25744 $as_echo "$gl_cv_lib_socket" >&6; }
25745     if test "$gl_cv_lib_socket" != "none needed"; then
25746       LIBSOCKET="$gl_cv_lib_socket"
25747     fi
25748   fi
25749
25750
25751
25752
25753
25754
25755   :
25756
25757
25758
25759
25760
25761   if test "$ac_cv_header_winsock2_h" = yes; then
25762     REPLACE_SELECT=1
25763   else
25764
25765   :
25766
25767
25768
25769
25770
25771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
25772 $as_echo_n "checking whether select supports a 0 argument... " >&6; }
25773 if ${gl_cv_func_select_supports0+:} false; then :
25774   $as_echo_n "(cached) " >&6
25775 else
25776
25777         if test "$cross_compiling" = yes; then :
25778
25779            case "$host_os" in
25780                        # Guess no on Interix.
25781              interix*) gl_cv_func_select_supports0="guessing no";;
25782                        # Guess yes otherwise.
25783              *)        gl_cv_func_select_supports0="guessing yes";;
25784            esac
25785
25786 else
25787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25788 /* end confdefs.h.  */
25789
25790 #include <sys/types.h>
25791 #include <sys/time.h>
25792 #if HAVE_SYS_SELECT_H
25793 #include <sys/select.h>
25794 #endif
25795 int main ()
25796 {
25797   struct timeval timeout;
25798   timeout.tv_sec = 0;
25799   timeout.tv_usec = 5;
25800   return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
25801 }
25802 _ACEOF
25803 if ac_fn_c_try_run "$LINENO"; then :
25804   gl_cv_func_select_supports0=yes
25805 else
25806   gl_cv_func_select_supports0=no
25807 fi
25808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25809   conftest.$ac_objext conftest.beam conftest.$ac_ext
25810 fi
25811
25812
25813 fi
25814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
25815 $as_echo "$gl_cv_func_select_supports0" >&6; }
25816     case "$gl_cv_func_select_supports0" in
25817       *yes) ;;
25818       *) REPLACE_SELECT=1 ;;
25819     esac
25820
25821         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
25822 $as_echo_n "checking whether select detects invalid fds... " >&6; }
25823 if ${gl_cv_func_select_detects_ebadf+:} false; then :
25824   $as_echo_n "(cached) " >&6
25825 else
25826
25827         if test "$cross_compiling" = yes; then :
25828
25829            case "$host_os" in
25830                     # Guess yes on glibc systems.
25831             *-gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;;
25832                     # If we don't know, assume the worst.
25833             *)      gl_cv_func_select_detects_ebadf="guessing no" ;;
25834            esac
25835
25836 else
25837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25838 /* end confdefs.h.  */
25839
25840 #include <sys/types.h>
25841 #include <sys/time.h>
25842 #if HAVE_SYS_SELECT_H
25843 # include <sys/select.h>
25844 #endif
25845 #include <unistd.h>
25846 #include <errno.h>
25847
25848 int
25849 main ()
25850 {
25851
25852   fd_set set;
25853   dup2(0, 16);
25854   FD_ZERO(&set);
25855   FD_SET(16, &set);
25856   close(16);
25857   struct timeval timeout;
25858   timeout.tv_sec = 0;
25859   timeout.tv_usec = 5;
25860   return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
25861
25862   ;
25863   return 0;
25864 }
25865 _ACEOF
25866 if ac_fn_c_try_run "$LINENO"; then :
25867   gl_cv_func_select_detects_ebadf=yes
25868 else
25869   gl_cv_func_select_detects_ebadf=no
25870 fi
25871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25872   conftest.$ac_objext conftest.beam conftest.$ac_ext
25873 fi
25874
25875
25876 fi
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
25878 $as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
25879     case $gl_cv_func_select_detects_ebadf in
25880       *yes) ;;
25881       *) REPLACE_SELECT=1 ;;
25882     esac
25883   fi
25884
25885     LIB_SELECT="$LIBSOCKET"
25886   if test $REPLACE_SELECT = 1; then
25887     case "$host_os" in
25888       mingw*)
25889                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25890 /* end confdefs.h.  */
25891
25892 #define WIN32_LEAN_AND_MEAN
25893 #include <windows.h>
25894 int
25895 main ()
25896 {
25897   MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
25898   return 0;
25899 }
25900 _ACEOF
25901 if ac_fn_c_try_link "$LINENO"; then :
25902
25903 else
25904   LIB_SELECT="$LIB_SELECT -luser32"
25905 fi
25906 rm -f core conftest.err conftest.$ac_objext \
25907     conftest$ac_exeext conftest.$ac_ext
25908         ;;
25909     esac
25910   fi
25911
25912
25913
25914
25915
25916
25917
25918
25919
25920   case "$host_os" in
25921     mingw*) gl_cv_have_nonblocking=no ;;
25922     *)      gl_cv_have_nonblocking=yes ;;
25923   esac
25924   case "$host_os" in
25925     mingw*) gl_cv_have_open_O_NONBLOCK=no ;;
25926     *)      gl_cv_have_open_O_NONBLOCK=yes ;;
25927   esac
25928
25929
25930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25931 /* end confdefs.h.  */
25932
25933 #ifdef _MSC_VER
25934 MicrosoftCompiler
25935 #endif
25936
25937 _ACEOF
25938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25939   $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
25940   gl_asmext='asm'
25941      gl_c_asm_opt='-c -Fa'
25942
25943 else
25944   gl_asmext='s'
25945      gl_c_asm_opt='-S'
25946
25947 fi
25948 rm -f conftest*
25949
25950
25951
25952
25953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
25954 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
25955 if ${gl_cv_prog_as_underscore+:} false; then :
25956   $as_echo_n "(cached) " >&6
25957 else
25958   cat > conftest.c <<EOF
25959 #ifdef __cplusplus
25960 extern "C" int foo (void);
25961 #endif
25962 int foo(void) { return 0; }
25963 EOF
25964      # Look for the assembly language name in the .s file.
25965      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
25966   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25967   (eval $ac_try) 2>&5
25968   ac_status=$?
25969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25970   test $ac_status = 0; }; } >/dev/null 2>&1
25971      if grep _foo conftest.$gl_asmext >/dev/null ; then
25972        gl_cv_prog_as_underscore=yes
25973      else
25974        gl_cv_prog_as_underscore=no
25975      fi
25976      rm -f conftest*
25977
25978 fi
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
25980 $as_echo "$gl_cv_prog_as_underscore" >&6; }
25981   if test $gl_cv_prog_as_underscore = yes; then
25982     USER_LABEL_PREFIX=_
25983   else
25984     USER_LABEL_PREFIX=
25985   fi
25986
25987 cat >>confdefs.h <<_ACEOF
25988 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
25989 _ACEOF
25990
25991   ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
25992
25993
25994
25995
25996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
25997 $as_echo_n "checking for promoted mode_t type... " >&6; }
25998 if ${gl_cv_promoted_mode_t+:} false; then :
25999   $as_echo_n "(cached) " >&6
26000 else
26001
26002                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26003 /* end confdefs.h.  */
26004 #include <sys/types.h>
26005 int
26006 main ()
26007 {
26008 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
26009   ;
26010   return 0;
26011 }
26012 _ACEOF
26013 if ac_fn_c_try_compile "$LINENO"; then :
26014   gl_cv_promoted_mode_t='int'
26015 else
26016   gl_cv_promoted_mode_t='mode_t'
26017 fi
26018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26019
26020 fi
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
26022 $as_echo "$gl_cv_promoted_mode_t" >&6; }
26023
26024 cat >>confdefs.h <<_ACEOF
26025 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
26026 _ACEOF
26027
26028
26029
26030
26031
26032
26033
26034
26035   GNULIB_PTHREAD_SIGMASK=0;
26036   GNULIB_RAISE=0;
26037   GNULIB_SIGNAL_H_SIGPIPE=0;
26038   GNULIB_SIGPROCMASK=0;
26039   GNULIB_SIGACTION=0;
26040     HAVE_POSIX_SIGNALBLOCKING=1;
26041   HAVE_PTHREAD_SIGMASK=1;
26042   HAVE_RAISE=1;
26043   HAVE_SIGSET_T=1;
26044   HAVE_SIGINFO_T=1;
26045   HAVE_SIGACTION=1;
26046   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
26047
26048   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
26049
26050   HAVE_SIGHANDLER_T=1;
26051   REPLACE_PTHREAD_SIGMASK=0;
26052   REPLACE_RAISE=0;
26053
26054
26055   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
26056       #include <signal.h>
26057       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
26058       #include <sys/types.h>
26059
26060 "
26061 if test "x$ac_cv_type_sigset_t" = xyes; then :
26062
26063 cat >>confdefs.h <<_ACEOF
26064 #define HAVE_SIGSET_T 1
26065 _ACEOF
26066
26067 gl_cv_type_sigset_t=yes
26068 else
26069   gl_cv_type_sigset_t=no
26070 fi
26071
26072   if test $gl_cv_type_sigset_t != yes; then
26073     HAVE_SIGSET_T=0
26074   fi
26075
26076
26077       ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
26078 if test "x$ac_cv_have_decl_alarm" = xyes; then :
26079   ac_have_decl=1
26080 else
26081   ac_have_decl=0
26082 fi
26083
26084 cat >>confdefs.h <<_ACEOF
26085 #define HAVE_DECL_ALARM $ac_have_decl
26086 _ACEOF
26087
26088
26089
26090
26091
26092
26093
26094
26095
26096
26097
26098
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
26100 $as_echo_n "checking for long file names... " >&6; }
26101 if ${ac_cv_sys_long_file_names+:} false; then :
26102   $as_echo_n "(cached) " >&6
26103 else
26104   ac_cv_sys_long_file_names=yes
26105 # Test for long file names in all the places we know might matter:
26106 #      .                the current directory, where building will happen
26107 #      $prefix/lib      where we will be installing things
26108 #      $exec_prefix/lib likewise
26109 #      $TMPDIR          if set, where it might want to write temporary files
26110 #      /tmp             where it might want to write temporary files
26111 #      /var/tmp         likewise
26112 #      /usr/tmp         likewise
26113 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
26114   # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
26115   # in the usual case where exec_prefix is '${prefix}'.
26116   case $ac_dir in #(
26117     . | /* | ?:[\\/]*) ;; #(
26118     *) continue;;
26119   esac
26120   test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
26121   ac_xdir=$ac_dir/cf$$
26122   (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
26123   ac_tf1=$ac_xdir/conftest9012345
26124   ac_tf2=$ac_xdir/conftest9012346
26125   touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
26126     ac_cv_sys_long_file_names=no
26127   rm -f -r "$ac_xdir" 2>/dev/null
26128   test $ac_cv_sys_long_file_names = no && break
26129 done
26130 fi
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
26132 $as_echo "$ac_cv_sys_long_file_names" >&6; }
26133 if test $ac_cv_sys_long_file_names = yes; then
26134
26135 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
26136
26137 fi
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150       ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
26151 if test "x$ac_cv_have_decl_setenv" = xyes; then :
26152   ac_have_decl=1
26153 else
26154   ac_have_decl=0
26155 fi
26156
26157 cat >>confdefs.h <<_ACEOF
26158 #define HAVE_DECL_SETENV $ac_have_decl
26159 _ACEOF
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170   :
26171
26172
26173
26174
26175
26176   if test $ac_cv_have_decl_setenv = no; then
26177     HAVE_DECL_SETENV=0
26178   fi
26179
26180   :
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190   :
26191
26192
26193
26194
26195
26196   for ac_header in search.h
26197 do :
26198   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
26199 if test "x$ac_cv_header_search_h" = xyes; then :
26200   cat >>confdefs.h <<_ACEOF
26201 #define HAVE_SEARCH_H 1
26202 _ACEOF
26203
26204 fi
26205
26206 done
26207
26208   for ac_func in tsearch
26209 do :
26210   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
26211 if test "x$ac_cv_func_tsearch" = xyes; then :
26212   cat >>confdefs.h <<_ACEOF
26213 #define HAVE_TSEARCH 1
26214 _ACEOF
26215
26216 fi
26217 done
26218
26219
26220
26221
26222
26223
26224
26225
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26227 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26228 if ${ac_cv_type_uid_t+:} false; then :
26229   $as_echo_n "(cached) " >&6
26230 else
26231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26232 /* end confdefs.h.  */
26233 #include <sys/types.h>
26234
26235 _ACEOF
26236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26237   $EGREP "uid_t" >/dev/null 2>&1; then :
26238   ac_cv_type_uid_t=yes
26239 else
26240   ac_cv_type_uid_t=no
26241 fi
26242 rm -f conftest*
26243
26244 fi
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26246 $as_echo "$ac_cv_type_uid_t" >&6; }
26247 if test $ac_cv_type_uid_t = no; then
26248
26249 $as_echo "#define uid_t int" >>confdefs.h
26250
26251
26252 $as_echo "#define gid_t int" >>confdefs.h
26253
26254 fi
26255
26256
26257
26258
26259
26260
26261
26262
26263
26264
26265
26266
26267
26268
26269
26270
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
26272 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
26273 if ${ac_cv_header_stdbool_h+:} false; then :
26274   $as_echo_n "(cached) " >&6
26275 else
26276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26277 /* end confdefs.h.  */
26278
26279              #include <stdbool.h>
26280              #ifndef bool
26281               "error: bool is not defined"
26282              #endif
26283              #ifndef false
26284               "error: false is not defined"
26285              #endif
26286              #if false
26287               "error: false is not 0"
26288              #endif
26289              #ifndef true
26290               "error: true is not defined"
26291              #endif
26292              #if true != 1
26293               "error: true is not 1"
26294              #endif
26295              #ifndef __bool_true_false_are_defined
26296               "error: __bool_true_false_are_defined is not defined"
26297              #endif
26298
26299              struct s { _Bool s: 1; _Bool t; } s;
26300
26301              char a[true == 1 ? 1 : -1];
26302              char b[false == 0 ? 1 : -1];
26303              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
26304              char d[(bool) 0.5 == true ? 1 : -1];
26305              /* See body of main program for 'e'.  */
26306              char f[(_Bool) 0.0 == false ? 1 : -1];
26307              char g[true];
26308              char h[sizeof (_Bool)];
26309              char i[sizeof s.t];
26310              enum { j = false, k = true, l = false * true, m = true * 256 };
26311              /* The following fails for
26312                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
26313              _Bool n[m];
26314              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
26315              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
26316              /* Catch a bug in an HP-UX C compiler.  See
26317                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
26318                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
26319               */
26320              _Bool q = true;
26321              _Bool *pq = &q;
26322
26323 int
26324 main ()
26325 {
26326
26327              bool e = &s;
26328              *pq |= q;
26329              *pq |= ! q;
26330              /* Refer to every declared value, to avoid compiler optimizations.  */
26331              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
26332                      + !m + !n + !o + !p + !q + !pq);
26333
26334   ;
26335   return 0;
26336 }
26337 _ACEOF
26338 if ac_fn_c_try_compile "$LINENO"; then :
26339   ac_cv_header_stdbool_h=yes
26340 else
26341   ac_cv_header_stdbool_h=no
26342 fi
26343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26344 fi
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
26346 $as_echo "$ac_cv_header_stdbool_h" >&6; }
26347    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
26348 if test "x$ac_cv_type__Bool" = xyes; then :
26349
26350 cat >>confdefs.h <<_ACEOF
26351 #define HAVE__BOOL 1
26352 _ACEOF
26353
26354
26355 fi
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371   if test $ac_cv_type_long_long_int = yes; then
26372     HAVE_LONG_LONG_INT=1
26373   else
26374     HAVE_LONG_LONG_INT=0
26375   fi
26376
26377
26378   if test $ac_cv_type_unsigned_long_long_int = yes; then
26379     HAVE_UNSIGNED_LONG_LONG_INT=1
26380   else
26381     HAVE_UNSIGNED_LONG_LONG_INT=0
26382   fi
26383
26384
26385
26386   :
26387
26388
26389
26390
26391
26392   if test $ac_cv_header_wchar_h = yes; then
26393     HAVE_WCHAR_H=1
26394   else
26395     HAVE_WCHAR_H=0
26396   fi
26397
26398
26399       if test $ac_cv_header_inttypes_h = yes; then
26400     HAVE_INTTYPES_H=1
26401   else
26402     HAVE_INTTYPES_H=0
26403   fi
26404
26405
26406       if test $ac_cv_header_sys_types_h = yes; then
26407     HAVE_SYS_TYPES_H=1
26408   else
26409     HAVE_SYS_TYPES_H=0
26410   fi
26411
26412
26413
26414
26415
26416
26417
26418
26419   :
26420
26421
26422
26423
26424
26425
26426
26427
26428      if test $gl_cv_have_include_next = yes; then
26429        gl_cv_next_stdint_h='<'stdint.h'>'
26430      else
26431        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
26432 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
26433 if ${gl_cv_next_stdint_h+:} false; then :
26434   $as_echo_n "(cached) " >&6
26435 else
26436
26437              if test $ac_cv_header_stdint_h = yes; then
26438
26439
26440
26441
26442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26443 /* end confdefs.h.  */
26444 #include <stdint.h>
26445 _ACEOF
26446                 case "$host_os" in
26447     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26448     *)    gl_absname_cpp="$ac_cpp" ;;
26449   esac
26450
26451   case "$host_os" in
26452     mingw*)
26453                                           gl_dirsep_regex='[/\\]'
26454       ;;
26455     *)
26456       gl_dirsep_regex='\/'
26457       ;;
26458   esac
26459       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26460   gl_header_literal_regex=`echo 'stdint.h' \
26461                            | sed -e "$gl_make_literal_regex_sed"`
26462   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26463       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26464       s|^/[^/]|//&|
26465       p
26466       q
26467     }'
26468
26469         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26470   sed -n "$gl_absolute_header_sed"`
26471
26472            gl_header=$gl_cv_absolute_stdint_h
26473            gl_cv_next_stdint_h='"'$gl_header'"'
26474           else
26475                gl_cv_next_stdint_h='<'stdint.h'>'
26476              fi
26477
26478
26479 fi
26480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
26481 $as_echo "$gl_cv_next_stdint_h" >&6; }
26482      fi
26483      NEXT_STDINT_H=$gl_cv_next_stdint_h
26484
26485      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26486        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26487        gl_next_as_first_directive='<'stdint.h'>'
26488      else
26489        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26490        gl_next_as_first_directive=$gl_cv_next_stdint_h
26491      fi
26492      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
26493
26494
26495
26496
26497   if test $ac_cv_header_stdint_h = yes; then
26498     HAVE_STDINT_H=1
26499   else
26500     HAVE_STDINT_H=0
26501   fi
26502
26503
26504     if test $ac_cv_header_stdint_h = yes; then
26505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
26506 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
26507 if ${gl_cv_header_working_stdint_h+:} false; then :
26508   $as_echo_n "(cached) " >&6
26509 else
26510   gl_cv_header_working_stdint_h=no
26511        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26512 /* end confdefs.h.  */
26513
26514
26515 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
26516 #include <stdint.h>
26517 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
26518 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
26519 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
26520 #endif
26521
26522
26523   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26524      included before <wchar.h>.  */
26525   #include <stddef.h>
26526   #include <signal.h>
26527   #if HAVE_WCHAR_H
26528   # include <stdio.h>
26529   # include <time.h>
26530   # include <wchar.h>
26531   #endif
26532
26533
26534 #ifdef INT8_MAX
26535 int8_t a1 = INT8_MAX;
26536 int8_t a1min = INT8_MIN;
26537 #endif
26538 #ifdef INT16_MAX
26539 int16_t a2 = INT16_MAX;
26540 int16_t a2min = INT16_MIN;
26541 #endif
26542 #ifdef INT32_MAX
26543 int32_t a3 = INT32_MAX;
26544 int32_t a3min = INT32_MIN;
26545 #endif
26546 #ifdef INT64_MAX
26547 int64_t a4 = INT64_MAX;
26548 int64_t a4min = INT64_MIN;
26549 #endif
26550 #ifdef UINT8_MAX
26551 uint8_t b1 = UINT8_MAX;
26552 #else
26553 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
26554 #endif
26555 #ifdef UINT16_MAX
26556 uint16_t b2 = UINT16_MAX;
26557 #endif
26558 #ifdef UINT32_MAX
26559 uint32_t b3 = UINT32_MAX;
26560 #endif
26561 #ifdef UINT64_MAX
26562 uint64_t b4 = UINT64_MAX;
26563 #endif
26564 int_least8_t c1 = INT8_C (0x7f);
26565 int_least8_t c1max = INT_LEAST8_MAX;
26566 int_least8_t c1min = INT_LEAST8_MIN;
26567 int_least16_t c2 = INT16_C (0x7fff);
26568 int_least16_t c2max = INT_LEAST16_MAX;
26569 int_least16_t c2min = INT_LEAST16_MIN;
26570 int_least32_t c3 = INT32_C (0x7fffffff);
26571 int_least32_t c3max = INT_LEAST32_MAX;
26572 int_least32_t c3min = INT_LEAST32_MIN;
26573 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
26574 int_least64_t c4max = INT_LEAST64_MAX;
26575 int_least64_t c4min = INT_LEAST64_MIN;
26576 uint_least8_t d1 = UINT8_C (0xff);
26577 uint_least8_t d1max = UINT_LEAST8_MAX;
26578 uint_least16_t d2 = UINT16_C (0xffff);
26579 uint_least16_t d2max = UINT_LEAST16_MAX;
26580 uint_least32_t d3 = UINT32_C (0xffffffff);
26581 uint_least32_t d3max = UINT_LEAST32_MAX;
26582 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
26583 uint_least64_t d4max = UINT_LEAST64_MAX;
26584 int_fast8_t e1 = INT_FAST8_MAX;
26585 int_fast8_t e1min = INT_FAST8_MIN;
26586 int_fast16_t e2 = INT_FAST16_MAX;
26587 int_fast16_t e2min = INT_FAST16_MIN;
26588 int_fast32_t e3 = INT_FAST32_MAX;
26589 int_fast32_t e3min = INT_FAST32_MIN;
26590 int_fast64_t e4 = INT_FAST64_MAX;
26591 int_fast64_t e4min = INT_FAST64_MIN;
26592 uint_fast8_t f1 = UINT_FAST8_MAX;
26593 uint_fast16_t f2 = UINT_FAST16_MAX;
26594 uint_fast32_t f3 = UINT_FAST32_MAX;
26595 uint_fast64_t f4 = UINT_FAST64_MAX;
26596 #ifdef INTPTR_MAX
26597 intptr_t g = INTPTR_MAX;
26598 intptr_t gmin = INTPTR_MIN;
26599 #endif
26600 #ifdef UINTPTR_MAX
26601 uintptr_t h = UINTPTR_MAX;
26602 #endif
26603 intmax_t i = INTMAX_MAX;
26604 uintmax_t j = UINTMAX_MAX;
26605
26606 #include <limits.h> /* for CHAR_BIT */
26607 #define TYPE_MINIMUM(t) \
26608   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
26609 #define TYPE_MAXIMUM(t) \
26610   ((t) ((t) 0 < (t) -1 \
26611         ? (t) -1 \
26612         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
26613 struct s {
26614   int check_PTRDIFF:
26615       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
26616       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
26617       ? 1 : -1;
26618   /* Detect bug in FreeBSD 6.0 / ia64.  */
26619   int check_SIG_ATOMIC:
26620       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
26621       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
26622       ? 1 : -1;
26623   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
26624   int check_WCHAR:
26625       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
26626       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
26627       ? 1 : -1;
26628   /* Detect bug in mingw.  */
26629   int check_WINT:
26630       WINT_MIN == TYPE_MINIMUM (wint_t)
26631       && WINT_MAX == TYPE_MAXIMUM (wint_t)
26632       ? 1 : -1;
26633
26634   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
26635   int check_UINT8_C:
26636         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
26637   int check_UINT16_C:
26638         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
26639
26640   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
26641 #ifdef UINT8_MAX
26642   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
26643 #endif
26644 #ifdef UINT16_MAX
26645   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
26646 #endif
26647 #ifdef UINT32_MAX
26648   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
26649 #endif
26650 #ifdef UINT64_MAX
26651   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
26652 #endif
26653   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
26654   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
26655   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
26656   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
26657   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
26658   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
26659   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
26660   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
26661   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
26662   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
26663   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
26664 };
26665
26666 int
26667 main ()
26668 {
26669
26670   ;
26671   return 0;
26672 }
26673 _ACEOF
26674 if ac_fn_c_try_compile "$LINENO"; then :
26675                                                     if test "$cross_compiling" = yes; then :
26676                  gl_cv_header_working_stdint_h=yes
26677
26678 else
26679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26680 /* end confdefs.h.  */
26681
26682
26683 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
26684 #include <stdint.h>
26685
26686
26687   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26688      included before <wchar.h>.  */
26689   #include <stddef.h>
26690   #include <signal.h>
26691   #if HAVE_WCHAR_H
26692   # include <stdio.h>
26693   # include <time.h>
26694   # include <wchar.h>
26695   #endif
26696
26697
26698 #include <stdio.h>
26699 #include <string.h>
26700 #define MVAL(macro) MVAL1(macro)
26701 #define MVAL1(expression) #expression
26702 static const char *macro_values[] =
26703   {
26704 #ifdef INT8_MAX
26705     MVAL (INT8_MAX),
26706 #endif
26707 #ifdef INT16_MAX
26708     MVAL (INT16_MAX),
26709 #endif
26710 #ifdef INT32_MAX
26711     MVAL (INT32_MAX),
26712 #endif
26713 #ifdef INT64_MAX
26714     MVAL (INT64_MAX),
26715 #endif
26716 #ifdef UINT8_MAX
26717     MVAL (UINT8_MAX),
26718 #endif
26719 #ifdef UINT16_MAX
26720     MVAL (UINT16_MAX),
26721 #endif
26722 #ifdef UINT32_MAX
26723     MVAL (UINT32_MAX),
26724 #endif
26725 #ifdef UINT64_MAX
26726     MVAL (UINT64_MAX),
26727 #endif
26728     NULL
26729   };
26730
26731 int
26732 main ()
26733 {
26734
26735   const char **mv;
26736   for (mv = macro_values; *mv != NULL; mv++)
26737     {
26738       const char *value = *mv;
26739       /* Test whether it looks like a cast expression.  */
26740       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
26741           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
26742           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
26743           || strncmp (value, "((int)"/*)*/, 6) == 0
26744           || strncmp (value, "((signed short)"/*)*/, 15) == 0
26745           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
26746         return mv - macro_values + 1;
26747     }
26748   return 0;
26749
26750   ;
26751   return 0;
26752 }
26753 _ACEOF
26754 if ac_fn_c_try_run "$LINENO"; then :
26755   gl_cv_header_working_stdint_h=yes
26756 fi
26757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26758   conftest.$ac_objext conftest.beam conftest.$ac_ext
26759 fi
26760
26761
26762 fi
26763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26764
26765 fi
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
26767 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
26768   fi
26769   if test "$gl_cv_header_working_stdint_h" = yes; then
26770     STDINT_H=
26771   else
26772             for ac_header in sys/inttypes.h sys/bitypes.h
26773 do :
26774   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26775 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26776 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26777   cat >>confdefs.h <<_ACEOF
26778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26779 _ACEOF
26780
26781 fi
26782
26783 done
26784
26785     if test $ac_cv_header_sys_inttypes_h = yes; then
26786       HAVE_SYS_INTTYPES_H=1
26787     else
26788       HAVE_SYS_INTTYPES_H=0
26789     fi
26790
26791     if test $ac_cv_header_sys_bitypes_h = yes; then
26792       HAVE_SYS_BITYPES_H=1
26793     else
26794       HAVE_SYS_BITYPES_H=0
26795     fi
26796
26797
26798
26799
26800   if test $APPLE_UNIVERSAL_BUILD = 0; then
26801
26802
26803   for gltype in ptrdiff_t size_t ; do
26804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
26805 $as_echo_n "checking for bit size of $gltype... " >&6; }
26806 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
26807   $as_echo_n "(cached) " >&6
26808 else
26809   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
26810   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26811      included before <wchar.h>.  */
26812   #include <stddef.h>
26813   #include <signal.h>
26814   #if HAVE_WCHAR_H
26815   # include <stdio.h>
26816   # include <time.h>
26817   # include <wchar.h>
26818   #endif
26819
26820 #include <limits.h>"; then :
26821
26822 else
26823   result=unknown
26824 fi
26825
26826        eval gl_cv_bitsizeof_${gltype}=\$result
26827
26828 fi
26829 eval ac_res=\$gl_cv_bitsizeof_${gltype}
26830                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26831 $as_echo "$ac_res" >&6; }
26832     eval result=\$gl_cv_bitsizeof_${gltype}
26833     if test $result = unknown; then
26834                                                 result=0
26835     fi
26836     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
26837     cat >>confdefs.h <<_ACEOF
26838 #define BITSIZEOF_${GLTYPE} $result
26839 _ACEOF
26840
26841     eval BITSIZEOF_${GLTYPE}=\$result
26842   done
26843
26844
26845   fi
26846
26847
26848   for gltype in sig_atomic_t wchar_t wint_t ; do
26849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
26850 $as_echo_n "checking for bit size of $gltype... " >&6; }
26851 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
26852   $as_echo_n "(cached) " >&6
26853 else
26854   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
26855   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26856      included before <wchar.h>.  */
26857   #include <stddef.h>
26858   #include <signal.h>
26859   #if HAVE_WCHAR_H
26860   # include <stdio.h>
26861   # include <time.h>
26862   # include <wchar.h>
26863   #endif
26864
26865 #include <limits.h>"; then :
26866
26867 else
26868   result=unknown
26869 fi
26870
26871        eval gl_cv_bitsizeof_${gltype}=\$result
26872
26873 fi
26874 eval ac_res=\$gl_cv_bitsizeof_${gltype}
26875                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26876 $as_echo "$ac_res" >&6; }
26877     eval result=\$gl_cv_bitsizeof_${gltype}
26878     if test $result = unknown; then
26879                                                 result=0
26880     fi
26881     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
26882     cat >>confdefs.h <<_ACEOF
26883 #define BITSIZEOF_${GLTYPE} $result
26884 _ACEOF
26885
26886     eval BITSIZEOF_${GLTYPE}=\$result
26887   done
26888
26889
26890
26891
26892   for gltype in sig_atomic_t wchar_t wint_t ; do
26893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
26894 $as_echo_n "checking whether $gltype is signed... " >&6; }
26895 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
26896   $as_echo_n "(cached) " >&6
26897 else
26898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26899 /* end confdefs.h.  */
26900
26901   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26902      included before <wchar.h>.  */
26903   #include <stddef.h>
26904   #include <signal.h>
26905   #if HAVE_WCHAR_H
26906   # include <stdio.h>
26907   # include <time.h>
26908   # include <wchar.h>
26909   #endif
26910
26911             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
26912 int
26913 main ()
26914 {
26915
26916   ;
26917   return 0;
26918 }
26919 _ACEOF
26920 if ac_fn_c_try_compile "$LINENO"; then :
26921   result=yes
26922 else
26923   result=no
26924 fi
26925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26926        eval gl_cv_type_${gltype}_signed=\$result
26927
26928 fi
26929 eval ac_res=\$gl_cv_type_${gltype}_signed
26930                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26931 $as_echo "$ac_res" >&6; }
26932     eval result=\$gl_cv_type_${gltype}_signed
26933     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
26934     if test "$result" = yes; then
26935       cat >>confdefs.h <<_ACEOF
26936 #define HAVE_SIGNED_${GLTYPE} 1
26937 _ACEOF
26938
26939       eval HAVE_SIGNED_${GLTYPE}=1
26940     else
26941       eval HAVE_SIGNED_${GLTYPE}=0
26942     fi
26943   done
26944
26945
26946   gl_cv_type_ptrdiff_t_signed=yes
26947   gl_cv_type_size_t_signed=no
26948   if test $APPLE_UNIVERSAL_BUILD = 0; then
26949
26950
26951   for gltype in ptrdiff_t size_t ; do
26952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
26953 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
26954 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
26955   $as_echo_n "(cached) " >&6
26956 else
26957   eval gl_cv_type_${gltype}_suffix=no
26958        eval result=\$gl_cv_type_${gltype}_signed
26959        if test "$result" = yes; then
26960          glsufu=
26961        else
26962          glsufu=u
26963        fi
26964        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
26965          case $glsuf in
26966            '')  gltype1='int';;
26967            l)   gltype1='long int';;
26968            ll)  gltype1='long long int';;
26969            i64) gltype1='__int64';;
26970            u)   gltype1='unsigned int';;
26971            ul)  gltype1='unsigned long int';;
26972            ull) gltype1='unsigned long long int';;
26973            ui64)gltype1='unsigned __int64';;
26974          esac
26975          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26976 /* end confdefs.h.  */
26977
26978   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26979      included before <wchar.h>.  */
26980   #include <stddef.h>
26981   #include <signal.h>
26982   #if HAVE_WCHAR_H
26983   # include <stdio.h>
26984   # include <time.h>
26985   # include <wchar.h>
26986   #endif
26987
26988               extern $gltype foo;
26989               extern $gltype1 foo;
26990 int
26991 main ()
26992 {
26993
26994   ;
26995   return 0;
26996 }
26997 _ACEOF
26998 if ac_fn_c_try_compile "$LINENO"; then :
26999   eval gl_cv_type_${gltype}_suffix=\$glsuf
27000 fi
27001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27002          eval result=\$gl_cv_type_${gltype}_suffix
27003          test "$result" != no && break
27004        done
27005 fi
27006 eval ac_res=\$gl_cv_type_${gltype}_suffix
27007                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27008 $as_echo "$ac_res" >&6; }
27009     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27010     eval result=\$gl_cv_type_${gltype}_suffix
27011     test "$result" = no && result=
27012     eval ${GLTYPE}_SUFFIX=\$result
27013     cat >>confdefs.h <<_ACEOF
27014 #define ${GLTYPE}_SUFFIX $result
27015 _ACEOF
27016
27017   done
27018
27019
27020   fi
27021
27022
27023   for gltype in sig_atomic_t wchar_t wint_t ; do
27024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
27025 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
27026 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
27027   $as_echo_n "(cached) " >&6
27028 else
27029   eval gl_cv_type_${gltype}_suffix=no
27030        eval result=\$gl_cv_type_${gltype}_signed
27031        if test "$result" = yes; then
27032          glsufu=
27033        else
27034          glsufu=u
27035        fi
27036        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
27037          case $glsuf in
27038            '')  gltype1='int';;
27039            l)   gltype1='long int';;
27040            ll)  gltype1='long long int';;
27041            i64) gltype1='__int64';;
27042            u)   gltype1='unsigned int';;
27043            ul)  gltype1='unsigned long int';;
27044            ull) gltype1='unsigned long long int';;
27045            ui64)gltype1='unsigned __int64';;
27046          esac
27047          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27048 /* end confdefs.h.  */
27049
27050   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27051      included before <wchar.h>.  */
27052   #include <stddef.h>
27053   #include <signal.h>
27054   #if HAVE_WCHAR_H
27055   # include <stdio.h>
27056   # include <time.h>
27057   # include <wchar.h>
27058   #endif
27059
27060               extern $gltype foo;
27061               extern $gltype1 foo;
27062 int
27063 main ()
27064 {
27065
27066   ;
27067   return 0;
27068 }
27069 _ACEOF
27070 if ac_fn_c_try_compile "$LINENO"; then :
27071   eval gl_cv_type_${gltype}_suffix=\$glsuf
27072 fi
27073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27074          eval result=\$gl_cv_type_${gltype}_suffix
27075          test "$result" != no && break
27076        done
27077 fi
27078 eval ac_res=\$gl_cv_type_${gltype}_suffix
27079                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27080 $as_echo "$ac_res" >&6; }
27081     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27082     eval result=\$gl_cv_type_${gltype}_suffix
27083     test "$result" = no && result=
27084     eval ${GLTYPE}_SUFFIX=\$result
27085     cat >>confdefs.h <<_ACEOF
27086 #define ${GLTYPE}_SUFFIX $result
27087 _ACEOF
27088
27089   done
27090
27091
27092
27093           if test $BITSIZEOF_WINT_T -lt 32; then
27094     BITSIZEOF_WINT_T=32
27095   fi
27096
27097     STDINT_H=stdint.h
27098   fi
27099
27100    if test -n "$STDINT_H"; then
27101   GL_GENERATE_STDINT_H_TRUE=
27102   GL_GENERATE_STDINT_H_FALSE='#'
27103 else
27104   GL_GENERATE_STDINT_H_TRUE='#'
27105   GL_GENERATE_STDINT_H_FALSE=
27106 fi
27107
27108
27109
27110   GNULIB_FFS=0;
27111     HAVE_FFS=1;
27112   HAVE_STRCASECMP=1;
27113   HAVE_DECL_STRNCASECMP=1;
27114
27115
27116
27117
27118
27119
27120
27121   for ac_func in strcasestr
27122 do :
27123   ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
27124 if test "x$ac_cv_func_strcasestr" = xyes; then :
27125   cat >>confdefs.h <<_ACEOF
27126 #define HAVE_STRCASESTR 1
27127 _ACEOF
27128
27129 fi
27130 done
27131
27132   if test $ac_cv_func_strcasestr = no; then
27133     HAVE_STRCASESTR=0
27134   else
27135     if test "$gl_cv_func_memchr_works" != yes; then
27136       REPLACE_STRCASESTR=1
27137     else
27138             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works" >&5
27139 $as_echo_n "checking whether strcasestr works... " >&6; }
27140 if ${gl_cv_func_strcasestr_works_always+:} false; then :
27141   $as_echo_n "(cached) " >&6
27142 else
27143   if test "$cross_compiling" = yes; then :
27144                                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27145 /* end confdefs.h.  */
27146
27147 #ifdef __GNU_LIBRARY__
27148  #include <features.h>
27149  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
27150      || defined __UCLIBC__
27151   Lucky user
27152  #endif
27153 #elif defined __CYGWIN__
27154  #include <cygwin/version.h>
27155  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
27156   Lucky user
27157  #endif
27158 #else
27159   Lucky user
27160 #endif
27161
27162 _ACEOF
27163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27164   $EGREP "Lucky user" >/dev/null 2>&1; then :
27165   gl_cv_func_strcasestr_works_always="guessing yes"
27166 else
27167   gl_cv_func_strcasestr_works_always="guessing no"
27168 fi
27169 rm -f conftest*
27170
27171
27172 else
27173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27174 /* end confdefs.h.  */
27175
27176 #include <string.h> /* for strcasestr */
27177 #define P "_EF_BF_BD"
27178 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
27179 #define NEEDLE P P P P P
27180
27181 int
27182 main ()
27183 {
27184 return !!strcasestr (HAYSTACK, NEEDLE);
27185
27186   ;
27187   return 0;
27188 }
27189 _ACEOF
27190 if ac_fn_c_try_run "$LINENO"; then :
27191   gl_cv_func_strcasestr_works_always=yes
27192 else
27193   gl_cv_func_strcasestr_works_always=no
27194 fi
27195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27196   conftest.$ac_objext conftest.beam conftest.$ac_ext
27197 fi
27198
27199
27200 fi
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_works_always" >&5
27202 $as_echo "$gl_cv_func_strcasestr_works_always" >&6; }
27203       case "$gl_cv_func_strcasestr_works_always" in
27204         *yes) ;;
27205         *)
27206           REPLACE_STRCASESTR=1
27207           ;;
27208       esac
27209     fi
27210   fi
27211
27212
27213
27214
27215
27216
27217
27218       ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
27219 if test "x$ac_cv_have_decl_strdup" = xyes; then :
27220   ac_have_decl=1
27221 else
27222   ac_have_decl=0
27223 fi
27224
27225 cat >>confdefs.h <<_ACEOF
27226 #define HAVE_DECL_STRDUP $ac_have_decl
27227 _ACEOF
27228
27229
27230
27231      REPLACE_STRERROR_0=0
27232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
27233 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
27234 if ${gl_cv_func_strerror_0_works+:} false; then :
27235   $as_echo_n "(cached) " >&6
27236 else
27237   if test "$cross_compiling" = yes; then :
27238   case "$host_os" in
27239                  # Guess yes on glibc systems.
27240          *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
27241                  # If we don't know, assume the worst.
27242          *)      gl_cv_func_strerror_0_works="guessing no" ;;
27243        esac
27244
27245 else
27246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27247 /* end confdefs.h.  */
27248 #include <string.h>
27249            #include <errno.h>
27250
27251 int
27252 main ()
27253 {
27254 int result = 0;
27255            char *str;
27256            errno = 0;
27257            str = strerror (0);
27258            if (!*str) result |= 1;
27259            if (errno) result |= 2;
27260            if (strstr (str, "nknown") || strstr (str, "ndefined"))
27261              result |= 4;
27262            return result;
27263   ;
27264   return 0;
27265 }
27266 _ACEOF
27267 if ac_fn_c_try_run "$LINENO"; then :
27268   gl_cv_func_strerror_0_works=yes
27269 else
27270   gl_cv_func_strerror_0_works=no
27271 fi
27272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27273   conftest.$ac_objext conftest.beam conftest.$ac_ext
27274 fi
27275
27276
27277 fi
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
27279 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
27280   case "$gl_cv_func_strerror_0_works" in
27281     *yes) ;;
27282     *)
27283       REPLACE_STRERROR_0=1
27284
27285 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
27286
27287       ;;
27288   esac
27289
27290
27291
27292
27293
27294
27295
27296
27297
27298
27299
27300
27301      if test $gl_cv_have_include_next = yes; then
27302        gl_cv_next_string_h='<'string.h'>'
27303      else
27304        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
27305 $as_echo_n "checking absolute name of <string.h>... " >&6; }
27306 if ${gl_cv_next_string_h+:} false; then :
27307   $as_echo_n "(cached) " >&6
27308 else
27309
27310
27311
27312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27313 /* end confdefs.h.  */
27314 #include <string.h>
27315 _ACEOF
27316                 case "$host_os" in
27317     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27318     *)    gl_absname_cpp="$ac_cpp" ;;
27319   esac
27320
27321   case "$host_os" in
27322     mingw*)
27323                                           gl_dirsep_regex='[/\\]'
27324       ;;
27325     *)
27326       gl_dirsep_regex='\/'
27327       ;;
27328   esac
27329       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27330   gl_header_literal_regex=`echo 'string.h' \
27331                            | sed -e "$gl_make_literal_regex_sed"`
27332   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27333       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27334       s|^/[^/]|//&|
27335       p
27336       q
27337     }'
27338
27339         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27340   sed -n "$gl_absolute_header_sed"`
27341
27342            gl_header=$gl_cv_absolute_string_h
27343            gl_cv_next_string_h='"'$gl_header'"'
27344
27345
27346 fi
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
27348 $as_echo "$gl_cv_next_string_h" >&6; }
27349      fi
27350      NEXT_STRING_H=$gl_cv_next_string_h
27351
27352      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27353        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27354        gl_next_as_first_directive='<'string.h'>'
27355      else
27356        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27357        gl_next_as_first_directive=$gl_cv_next_string_h
27358      fi
27359      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
27360
27361
27362
27363
27364
27365
27366     for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul      strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r      strerror_r strsignal strverscmp; do
27367     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27368     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27369 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27370 if eval \${$as_gl_Symbol+:} false; then :
27371   $as_echo_n "(cached) " >&6
27372 else
27373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27374 /* end confdefs.h.  */
27375 #include <string.h>
27376
27377 int
27378 main ()
27379 {
27380 #undef $gl_func
27381   (void) $gl_func;
27382   ;
27383   return 0;
27384 }
27385 _ACEOF
27386 if ac_fn_c_try_compile "$LINENO"; then :
27387   eval "$as_gl_Symbol=yes"
27388 else
27389   eval "$as_gl_Symbol=no"
27390 fi
27391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27392 fi
27393 eval ac_res=\$$as_gl_Symbol
27394                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27395 $as_echo "$ac_res" >&6; }
27396     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27397   cat >>confdefs.h <<_ACEOF
27398 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27399 _ACEOF
27400
27401                      eval ac_cv_have_decl_$gl_func=yes
27402 fi
27403       done
27404
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414
27415
27416
27417
27418
27419
27420   :
27421
27422
27423
27424
27425
27426
27427
27428
27429      if test $gl_cv_have_include_next = yes; then
27430        gl_cv_next_strings_h='<'strings.h'>'
27431      else
27432        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
27433 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
27434 if ${gl_cv_next_strings_h+:} false; then :
27435   $as_echo_n "(cached) " >&6
27436 else
27437
27438              if test $ac_cv_header_strings_h = yes; then
27439
27440
27441
27442
27443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27444 /* end confdefs.h.  */
27445 #include <strings.h>
27446 _ACEOF
27447                 case "$host_os" in
27448     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27449     *)    gl_absname_cpp="$ac_cpp" ;;
27450   esac
27451
27452   case "$host_os" in
27453     mingw*)
27454                                           gl_dirsep_regex='[/\\]'
27455       ;;
27456     *)
27457       gl_dirsep_regex='\/'
27458       ;;
27459   esac
27460       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27461   gl_header_literal_regex=`echo 'strings.h' \
27462                            | sed -e "$gl_make_literal_regex_sed"`
27463   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27464       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27465       s|^/[^/]|//&|
27466       p
27467       q
27468     }'
27469
27470         gl_cv_absolute_strings_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27471   sed -n "$gl_absolute_header_sed"`
27472
27473            gl_header=$gl_cv_absolute_strings_h
27474            gl_cv_next_strings_h='"'$gl_header'"'
27475           else
27476                gl_cv_next_strings_h='<'strings.h'>'
27477              fi
27478
27479
27480 fi
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
27482 $as_echo "$gl_cv_next_strings_h" >&6; }
27483      fi
27484      NEXT_STRINGS_H=$gl_cv_next_strings_h
27485
27486      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27487        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27488        gl_next_as_first_directive='<'strings.h'>'
27489      else
27490        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27491        gl_next_as_first_directive=$gl_cv_next_strings_h
27492      fi
27493      NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
27494
27495
27496
27497
27498   if test $ac_cv_header_strings_h = yes; then
27499     HAVE_STRINGS_H=1
27500   else
27501     HAVE_STRINGS_H=0
27502   fi
27503
27504
27505
27506     for gl_func in ffs strcasecmp strncasecmp; do
27507     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27509 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27510 if eval \${$as_gl_Symbol+:} false; then :
27511   $as_echo_n "(cached) " >&6
27512 else
27513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27514 /* end confdefs.h.  */
27515
27516     /* Minix 3.1.8 has a bug: <sys/types.h> must be included before
27517        <strings.h>.  */
27518     #include <sys/types.h>
27519     #include <strings.h>
27520
27521 int
27522 main ()
27523 {
27524 #undef $gl_func
27525   (void) $gl_func;
27526   ;
27527   return 0;
27528 }
27529 _ACEOF
27530 if ac_fn_c_try_compile "$LINENO"; then :
27531   eval "$as_gl_Symbol=yes"
27532 else
27533   eval "$as_gl_Symbol=no"
27534 fi
27535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27536 fi
27537 eval ac_res=\$$as_gl_Symbol
27538                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27539 $as_echo "$ac_res" >&6; }
27540     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27541   cat >>confdefs.h <<_ACEOF
27542 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27543 _ACEOF
27544
27545                      eval ac_cv_have_decl_$gl_func=yes
27546 fi
27547       done
27548
27549
27550
27551       ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
27552 if test "x$ac_cv_have_decl_strndup" = xyes; then :
27553   ac_have_decl=1
27554 else
27555   ac_have_decl=0
27556 fi
27557
27558 cat >>confdefs.h <<_ACEOF
27559 #define HAVE_DECL_STRNDUP $ac_have_decl
27560 _ACEOF
27561
27562
27563
27564
27565
27566
27567
27568
27569       ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
27570 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
27571   ac_have_decl=1
27572 else
27573   ac_have_decl=0
27574 fi
27575
27576 cat >>confdefs.h <<_ACEOF
27577 #define HAVE_DECL_STRNLEN $ac_have_decl
27578 _ACEOF
27579
27580
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590
27591
27592
27593
27594
27595
27596
27597
27598
27599
27600
27601
27602
27603
27604
27605
27606
27607
27608
27609      if test $gl_cv_have_include_next = yes; then
27610        gl_cv_next_sys_types_h='<'sys/types.h'>'
27611      else
27612        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
27613 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
27614 if ${gl_cv_next_sys_types_h+:} false; then :
27615   $as_echo_n "(cached) " >&6
27616 else
27617
27618
27619
27620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27621 /* end confdefs.h.  */
27622 #include <sys/types.h>
27623 _ACEOF
27624                 case "$host_os" in
27625     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27626     *)    gl_absname_cpp="$ac_cpp" ;;
27627   esac
27628
27629   case "$host_os" in
27630     mingw*)
27631                                           gl_dirsep_regex='[/\\]'
27632       ;;
27633     *)
27634       gl_dirsep_regex='\/'
27635       ;;
27636   esac
27637       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27638   gl_header_literal_regex=`echo 'sys/types.h' \
27639                            | sed -e "$gl_make_literal_regex_sed"`
27640   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27641       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27642       s|^/[^/]|//&|
27643       p
27644       q
27645     }'
27646
27647         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27648   sed -n "$gl_absolute_header_sed"`
27649
27650            gl_header=$gl_cv_absolute_sys_types_h
27651            gl_cv_next_sys_types_h='"'$gl_header'"'
27652
27653
27654 fi
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
27656 $as_echo "$gl_cv_next_sys_types_h" >&6; }
27657      fi
27658      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
27659
27660      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27661        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27662        gl_next_as_first_directive='<'sys/types.h'>'
27663      else
27664        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27665        gl_next_as_first_directive=$gl_cv_next_sys_types_h
27666      fi
27667      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687
27688
27689
27690
27691
27692
27693   :
27694
27695
27696
27697
27698
27699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
27700 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
27701 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
27702   $as_echo_n "(cached) " >&6
27703 else
27704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27705 /* end confdefs.h.  */
27706 #include <time.h>
27707
27708 int
27709 main ()
27710 {
27711 static struct timespec x; x.tv_sec = x.tv_nsec;
27712   ;
27713   return 0;
27714 }
27715 _ACEOF
27716 if ac_fn_c_try_compile "$LINENO"; then :
27717   gl_cv_sys_struct_timespec_in_time_h=yes
27718 else
27719   gl_cv_sys_struct_timespec_in_time_h=no
27720 fi
27721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27722 fi
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
27724 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
27725
27726   TIME_H_DEFINES_STRUCT_TIMESPEC=0
27727   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
27728   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
27729   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
27730     TIME_H_DEFINES_STRUCT_TIMESPEC=1
27731   else
27732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
27733 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
27734 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
27735   $as_echo_n "(cached) " >&6
27736 else
27737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27738 /* end confdefs.h.  */
27739 #include <sys/time.h>
27740
27741 int
27742 main ()
27743 {
27744 static struct timespec x; x.tv_sec = x.tv_nsec;
27745   ;
27746   return 0;
27747 }
27748 _ACEOF
27749 if ac_fn_c_try_compile "$LINENO"; then :
27750   gl_cv_sys_struct_timespec_in_sys_time_h=yes
27751 else
27752   gl_cv_sys_struct_timespec_in_sys_time_h=no
27753 fi
27754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27755 fi
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
27757 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
27758     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
27759       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
27760     else
27761       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
27762 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
27763 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
27764   $as_echo_n "(cached) " >&6
27765 else
27766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27767 /* end confdefs.h.  */
27768 #include <pthread.h>
27769
27770 int
27771 main ()
27772 {
27773 static struct timespec x; x.tv_sec = x.tv_nsec;
27774   ;
27775   return 0;
27776 }
27777 _ACEOF
27778 if ac_fn_c_try_compile "$LINENO"; then :
27779   gl_cv_sys_struct_timespec_in_pthread_h=yes
27780 else
27781   gl_cv_sys_struct_timespec_in_pthread_h=no
27782 fi
27783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27784 fi
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
27786 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
27787       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
27788         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
27789       fi
27790     fi
27791   fi
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807      if test $gl_cv_have_include_next = yes; then
27808        gl_cv_next_time_h='<'time.h'>'
27809      else
27810        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
27811 $as_echo_n "checking absolute name of <time.h>... " >&6; }
27812 if ${gl_cv_next_time_h+:} false; then :
27813   $as_echo_n "(cached) " >&6
27814 else
27815
27816
27817
27818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27819 /* end confdefs.h.  */
27820 #include <time.h>
27821 _ACEOF
27822                 case "$host_os" in
27823     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27824     *)    gl_absname_cpp="$ac_cpp" ;;
27825   esac
27826
27827   case "$host_os" in
27828     mingw*)
27829                                           gl_dirsep_regex='[/\\]'
27830       ;;
27831     *)
27832       gl_dirsep_regex='\/'
27833       ;;
27834   esac
27835       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27836   gl_header_literal_regex=`echo 'time.h' \
27837                            | sed -e "$gl_make_literal_regex_sed"`
27838   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27839       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27840       s|^/[^/]|//&|
27841       p
27842       q
27843     }'
27844
27845         gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27846   sed -n "$gl_absolute_header_sed"`
27847
27848            gl_header=$gl_cv_absolute_time_h
27849            gl_cv_next_time_h='"'$gl_header'"'
27850
27851
27852 fi
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
27854 $as_echo "$gl_cv_next_time_h" >&6; }
27855      fi
27856      NEXT_TIME_H=$gl_cv_next_time_h
27857
27858      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27859        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27860        gl_next_as_first_directive='<'time.h'>'
27861      else
27862        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27863        gl_next_as_first_directive=$gl_cv_next_time_h
27864      fi
27865      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
27866
27867
27868
27869
27870
27871
27872
27873
27874
27875
27876
27877
27878       ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
27879 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
27880   ac_have_decl=1
27881 else
27882   ac_have_decl=0
27883 fi
27884
27885 cat >>confdefs.h <<_ACEOF
27886 #define HAVE_DECL_UNSETENV $ac_have_decl
27887 _ACEOF
27888
27889
27890
27891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
27892 $as_echo_n "checking whether the utimes function works... " >&6; }
27893 if ${gl_cv_func_working_utimes+:} false; then :
27894   $as_echo_n "(cached) " >&6
27895 else
27896
27897   if test "$cross_compiling" = yes; then :
27898   gl_cv_func_working_utimes=no
27899 else
27900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27901 /* end confdefs.h.  */
27902
27903 #include <sys/types.h>
27904 #include <sys/stat.h>
27905 #include <fcntl.h>
27906 #include <sys/time.h>
27907 #include <time.h>
27908 #include <unistd.h>
27909 #include <stdlib.h>
27910 #include <stdio.h>
27911 #include <utime.h>
27912
27913 static int
27914 inorder (time_t a, time_t b, time_t c)
27915 {
27916   return a <= b && b <= c;
27917 }
27918
27919 int
27920 main ()
27921 {
27922   int result = 0;
27923   char const *file = "conftest.utimes";
27924   static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
27925
27926   /* Test whether utimes() essentially works.  */
27927   {
27928     struct stat sbuf;
27929     FILE *f = fopen (file, "w");
27930     if (f == NULL)
27931       result |= 1;
27932     else if (fclose (f) != 0)
27933       result |= 1;
27934     else if (utimes (file, timeval) != 0)
27935       result |= 2;
27936     else if (lstat (file, &sbuf) != 0)
27937       result |= 1;
27938     else if (!(sbuf.st_atime == timeval[0].tv_sec
27939                && sbuf.st_mtime == timeval[1].tv_sec))
27940       result |= 4;
27941     if (unlink (file) != 0)
27942       result |= 1;
27943   }
27944
27945   /* Test whether utimes() with a NULL argument sets the file's timestamp
27946      to the current time.  Use 'fstat' as well as 'time' to
27947      determine the "current" time, to accommodate NFS file systems
27948      if there is a time skew between the host and the NFS server.  */
27949   {
27950     int fd = open (file, O_WRONLY|O_CREAT, 0644);
27951     if (fd < 0)
27952       result |= 1;
27953     else
27954       {
27955         time_t t0, t2;
27956         struct stat st0, st1, st2;
27957         if (time (&t0) == (time_t) -1)
27958           result |= 1;
27959         else if (fstat (fd, &st0) != 0)
27960           result |= 1;
27961         else if (utimes (file, timeval) != 0)
27962           result |= 2;
27963         else if (utimes (file, NULL) != 0)
27964           result |= 8;
27965         else if (fstat (fd, &st1) != 0)
27966           result |= 1;
27967         else if (write (fd, "\n", 1) != 1)
27968           result |= 1;
27969         else if (fstat (fd, &st2) != 0)
27970           result |= 1;
27971         else if (time (&t2) == (time_t) -1)
27972           result |= 1;
27973         else
27974           {
27975             int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
27976             int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
27977             if (! (st1.st_atime == st1.st_mtime))
27978               result |= 16;
27979             if (! (m_ok_POSIX || m_ok_NFS))
27980               result |= 32;
27981           }
27982         if (close (fd) != 0)
27983           result |= 1;
27984       }
27985     if (unlink (file) != 0)
27986       result |= 1;
27987   }
27988
27989   /* Test whether utimes() with a NULL argument works on read-only files.  */
27990   {
27991     int fd = open (file, O_WRONLY|O_CREAT, 0444);
27992     if (fd < 0)
27993       result |= 1;
27994     else if (close (fd) != 0)
27995       result |= 1;
27996     else if (utimes (file, NULL) != 0)
27997       result |= 64;
27998     if (unlink (file) != 0)
27999       result |= 1;
28000   }
28001
28002   return result;
28003 }
28004
28005 _ACEOF
28006 if ac_fn_c_try_run "$LINENO"; then :
28007   gl_cv_func_working_utimes=yes
28008 else
28009   gl_cv_func_working_utimes=no
28010 fi
28011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28012   conftest.$ac_objext conftest.beam conftest.$ac_ext
28013 fi
28014
28015 fi
28016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
28017 $as_echo "$gl_cv_func_working_utimes" >&6; }
28018
28019   if test $gl_cv_func_working_utimes = yes; then
28020
28021 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
28022
28023   fi
28024
28025
28026
28027
28028
28029
28030
28031
28032   :
28033
28034
28035
28036
28037
28038
28039
28040
28041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
28042 $as_echo_n "checking for struct utimbuf... " >&6; }
28043 if ${gl_cv_sys_struct_utimbuf+:} false; then :
28044   $as_echo_n "(cached) " >&6
28045 else
28046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28047 /* end confdefs.h.  */
28048 #if HAVE_SYS_TIME_H
28049              #include <sys/time.h>
28050             #endif
28051             #include <time.h>
28052             #ifdef HAVE_UTIME_H
28053              #include <utime.h>
28054             #endif
28055
28056 int
28057 main ()
28058 {
28059 static struct utimbuf x; x.actime = x.modtime;
28060   ;
28061   return 0;
28062 }
28063 _ACEOF
28064 if ac_fn_c_try_compile "$LINENO"; then :
28065   gl_cv_sys_struct_utimbuf=yes
28066 else
28067   gl_cv_sys_struct_utimbuf=no
28068 fi
28069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28070 fi
28071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
28072 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
28073
28074   if test $gl_cv_sys_struct_utimbuf = yes; then
28075
28076 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
28077
28078   fi
28079
28080
28081
28082
28083
28084
28085
28086
28087
28088
28089
28090
28091
28092
28093
28094
28095
28096
28097
28098
28099
28100
28101
28102
28103
28104
28105
28106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
28107 $as_echo_n "checking for wint_t... " >&6; }
28108 if ${gt_cv_c_wint_t+:} false; then :
28109   $as_echo_n "(cached) " >&6
28110 else
28111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28112 /* end confdefs.h.  */
28113
28114 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28115    <wchar.h>.
28116    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
28117    before <wchar.h>.  */
28118 #include <stddef.h>
28119 #include <stdio.h>
28120 #include <time.h>
28121 #include <wchar.h>
28122             wint_t foo = (wchar_t)'\0';
28123 int
28124 main ()
28125 {
28126
28127   ;
28128   return 0;
28129 }
28130 _ACEOF
28131 if ac_fn_c_try_compile "$LINENO"; then :
28132   gt_cv_c_wint_t=yes
28133 else
28134   gt_cv_c_wint_t=no
28135 fi
28136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28137 fi
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
28139 $as_echo "$gt_cv_c_wint_t" >&6; }
28140   if test $gt_cv_c_wint_t = yes; then
28141
28142 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
28143
28144   fi
28145
28146
28147
28148   :
28149
28150
28151
28152
28153
28154   if test $ac_cv_header_features_h = yes; then
28155     HAVE_FEATURES_H=1
28156   else
28157     HAVE_FEATURES_H=0
28158   fi
28159
28160
28161
28162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
28163 $as_echo_n "checking for inttypes.h... " >&6; }
28164 if ${gl_cv_header_inttypes_h+:} false; then :
28165   $as_echo_n "(cached) " >&6
28166 else
28167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28168 /* end confdefs.h.  */
28169
28170 #include <sys/types.h>
28171 #include <inttypes.h>
28172
28173 int
28174 main ()
28175 {
28176 uintmax_t i = (uintmax_t) -1; return !i;
28177   ;
28178   return 0;
28179 }
28180 _ACEOF
28181 if ac_fn_c_try_compile "$LINENO"; then :
28182   gl_cv_header_inttypes_h=yes
28183 else
28184   gl_cv_header_inttypes_h=no
28185 fi
28186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28187 fi
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
28189 $as_echo "$gl_cv_header_inttypes_h" >&6; }
28190   if test $gl_cv_header_inttypes_h = yes; then
28191
28192 cat >>confdefs.h <<_ACEOF
28193 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
28194 _ACEOF
28195
28196   fi
28197
28198
28199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
28200 $as_echo_n "checking for stdint.h... " >&6; }
28201 if ${gl_cv_header_stdint_h+:} false; then :
28202   $as_echo_n "(cached) " >&6
28203 else
28204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28205 /* end confdefs.h.  */
28206 #include <sys/types.h>
28207             #include <stdint.h>
28208 int
28209 main ()
28210 {
28211 uintmax_t i = (uintmax_t) -1; return !i;
28212   ;
28213   return 0;
28214 }
28215 _ACEOF
28216 if ac_fn_c_try_compile "$LINENO"; then :
28217   gl_cv_header_stdint_h=yes
28218 else
28219   gl_cv_header_stdint_h=no
28220 fi
28221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28222 fi
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
28224 $as_echo "$gl_cv_header_stdint_h" >&6; }
28225   if test $gl_cv_header_stdint_h = yes; then
28226
28227 cat >>confdefs.h <<_ACEOF
28228 #define HAVE_STDINT_H_WITH_UINTMAX 1
28229 _ACEOF
28230
28231   fi
28232
28233
28234
28235
28236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
28237 $as_echo_n "checking for intmax_t... " >&6; }
28238 if ${gt_cv_c_intmax_t+:} false; then :
28239   $as_echo_n "(cached) " >&6
28240 else
28241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28242 /* end confdefs.h.  */
28243
28244 #include <stddef.h>
28245 #include <stdlib.h>
28246 #if HAVE_STDINT_H_WITH_UINTMAX
28247 #include <stdint.h>
28248 #endif
28249 #if HAVE_INTTYPES_H_WITH_UINTMAX
28250 #include <inttypes.h>
28251 #endif
28252
28253 int
28254 main ()
28255 {
28256 intmax_t x = -1; return !x;
28257   ;
28258   return 0;
28259 }
28260 _ACEOF
28261 if ac_fn_c_try_compile "$LINENO"; then :
28262   gt_cv_c_intmax_t=yes
28263 else
28264   gt_cv_c_intmax_t=no
28265 fi
28266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28267 fi
28268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
28269 $as_echo "$gt_cv_c_intmax_t" >&6; }
28270   if test $gt_cv_c_intmax_t = yes; then
28271
28272 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
28273
28274   else
28275
28276     test $ac_cv_type_long_long_int = yes \
28277       && ac_type='long long' \
28278       || ac_type='long'
28279
28280 cat >>confdefs.h <<_ACEOF
28281 #define intmax_t $ac_type
28282 _ACEOF
28283
28284   fi
28285
28286
28287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
28288 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
28289 if ${gl_cv_cc_double_expbit0+:} false; then :
28290   $as_echo_n "(cached) " >&6
28291 else
28292
28293       if test "$cross_compiling" = yes; then :
28294
28295                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28296 /* end confdefs.h.  */
28297
28298 #if defined arm || defined __arm || defined __arm__
28299   mixed_endianness
28300 #endif
28301
28302 _ACEOF
28303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28304   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
28305   gl_cv_cc_double_expbit0="unknown"
28306 else
28307
28308                                                          :
28309 if ${ac_cv_c_bigendian+:} false; then :
28310   $as_echo_n "(cached) " >&6
28311 else
28312   ac_cv_c_bigendian=unknown
28313     # See if we're dealing with a universal compiler.
28314     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28315 /* end confdefs.h.  */
28316 #ifndef __APPLE_CC__
28317                not a universal capable compiler
28318              #endif
28319              typedef int dummy;
28320
28321 _ACEOF
28322 if ac_fn_c_try_compile "$LINENO"; then :
28323
28324         # Check for potential -arch flags.  It is not universal unless
28325         # there are at least two -arch flags with different values.
28326         ac_arch=
28327         ac_prev=
28328         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28329          if test -n "$ac_prev"; then
28330            case $ac_word in
28331              i?86 | x86_64 | ppc | ppc64)
28332                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
28333                  ac_arch=$ac_word
28334                else
28335                  ac_cv_c_bigendian=universal
28336                  break
28337                fi
28338                ;;
28339            esac
28340            ac_prev=
28341          elif test "x$ac_word" = "x-arch"; then
28342            ac_prev=arch
28343          fi
28344        done
28345 fi
28346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28347     if test $ac_cv_c_bigendian = unknown; then
28348       # See if sys/param.h defines the BYTE_ORDER macro.
28349       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28350 /* end confdefs.h.  */
28351 #include <sys/types.h>
28352              #include <sys/param.h>
28353
28354 int
28355 main ()
28356 {
28357 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28358                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28359                      && LITTLE_ENDIAN)
28360               bogus endian macros
28361              #endif
28362
28363   ;
28364   return 0;
28365 }
28366 _ACEOF
28367 if ac_fn_c_try_compile "$LINENO"; then :
28368   # It does; now see whether it defined to BIG_ENDIAN or not.
28369          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28370 /* end confdefs.h.  */
28371 #include <sys/types.h>
28372                 #include <sys/param.h>
28373
28374 int
28375 main ()
28376 {
28377 #if BYTE_ORDER != BIG_ENDIAN
28378                  not big endian
28379                 #endif
28380
28381   ;
28382   return 0;
28383 }
28384 _ACEOF
28385 if ac_fn_c_try_compile "$LINENO"; then :
28386   ac_cv_c_bigendian=yes
28387 else
28388   ac_cv_c_bigendian=no
28389 fi
28390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28391 fi
28392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28393     fi
28394     if test $ac_cv_c_bigendian = unknown; then
28395       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28396       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28397 /* end confdefs.h.  */
28398 #include <limits.h>
28399
28400 int
28401 main ()
28402 {
28403 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28404               bogus endian macros
28405              #endif
28406
28407   ;
28408   return 0;
28409 }
28410 _ACEOF
28411 if ac_fn_c_try_compile "$LINENO"; then :
28412   # It does; now see whether it defined to _BIG_ENDIAN or not.
28413          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28414 /* end confdefs.h.  */
28415 #include <limits.h>
28416
28417 int
28418 main ()
28419 {
28420 #ifndef _BIG_ENDIAN
28421                  not big endian
28422                 #endif
28423
28424   ;
28425   return 0;
28426 }
28427 _ACEOF
28428 if ac_fn_c_try_compile "$LINENO"; then :
28429   ac_cv_c_bigendian=yes
28430 else
28431   ac_cv_c_bigendian=no
28432 fi
28433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28434 fi
28435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28436     fi
28437     if test $ac_cv_c_bigendian = unknown; then
28438       # Compile a test program.
28439       if test "$cross_compiling" = yes; then :
28440   # Try to guess by grepping values from an object file.
28441          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28442 /* end confdefs.h.  */
28443 short int ascii_mm[] =
28444                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28445                 short int ascii_ii[] =
28446                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28447                 int use_ascii (int i) {
28448                   return ascii_mm[i] + ascii_ii[i];
28449                 }
28450                 short int ebcdic_ii[] =
28451                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28452                 short int ebcdic_mm[] =
28453                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28454                 int use_ebcdic (int i) {
28455                   return ebcdic_mm[i] + ebcdic_ii[i];
28456                 }
28457                 extern int foo;
28458
28459 int
28460 main ()
28461 {
28462 return use_ascii (foo) == use_ebcdic (foo);
28463   ;
28464   return 0;
28465 }
28466 _ACEOF
28467 if ac_fn_c_try_compile "$LINENO"; then :
28468   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28469               ac_cv_c_bigendian=yes
28470             fi
28471             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28472               if test "$ac_cv_c_bigendian" = unknown; then
28473                 ac_cv_c_bigendian=no
28474               else
28475                 # finding both strings is unlikely to happen, but who knows?
28476                 ac_cv_c_bigendian=unknown
28477               fi
28478             fi
28479 fi
28480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28481 else
28482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28483 /* end confdefs.h.  */
28484 $ac_includes_default
28485 int
28486 main ()
28487 {
28488
28489              /* Are we little or big endian?  From Harbison&Steele.  */
28490              union
28491              {
28492                long int l;
28493                char c[sizeof (long int)];
28494              } u;
28495              u.l = 1;
28496              return u.c[sizeof (long int) - 1] == 1;
28497
28498   ;
28499   return 0;
28500 }
28501 _ACEOF
28502 if ac_fn_c_try_run "$LINENO"; then :
28503   ac_cv_c_bigendian=no
28504 else
28505   ac_cv_c_bigendian=yes
28506 fi
28507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28508   conftest.$ac_objext conftest.beam conftest.$ac_ext
28509 fi
28510
28511     fi
28512 fi
28513 :
28514  case $ac_cv_c_bigendian in #(
28515    yes)
28516      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
28517    no)
28518      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
28519    universal)
28520
28521 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
28522
28523      ;; #(
28524    *)
28525      gl_cv_cc_double_expbit0="unknown" ;;
28526  esac
28527
28528
28529 fi
28530 rm -f conftest*
28531
28532
28533 else
28534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28535 /* end confdefs.h.  */
28536
28537 #include <float.h>
28538 #include <stddef.h>
28539 #include <stdio.h>
28540 #include <string.h>
28541 #define NWORDS \
28542   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
28543 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
28544 static unsigned int ored_words[NWORDS];
28545 static unsigned int anded_words[NWORDS];
28546 static void add_to_ored_words (double x)
28547 {
28548   memory_double m;
28549   size_t i;
28550   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
28551   memset (&m, 0, sizeof (memory_double));
28552   m.value = x;
28553   for (i = 0; i < NWORDS; i++)
28554     {
28555       ored_words[i] |= m.word[i];
28556       anded_words[i] &= m.word[i];
28557     }
28558 }
28559 int main ()
28560 {
28561   size_t j;
28562   FILE *fp = fopen ("conftest.out", "w");
28563   if (fp == NULL)
28564     return 1;
28565   for (j = 0; j < NWORDS; j++)
28566     anded_words[j] = ~ (unsigned int) 0;
28567   add_to_ored_words (0.25);
28568   add_to_ored_words (0.5);
28569   add_to_ored_words (1.0);
28570   add_to_ored_words (2.0);
28571   add_to_ored_words (4.0);
28572   /* Remove bits that are common (e.g. if representation of the first mantissa
28573      bit is explicit).  */
28574   for (j = 0; j < NWORDS; j++)
28575     ored_words[j] &= ~anded_words[j];
28576   /* Now find the nonzero word.  */
28577   for (j = 0; j < NWORDS; j++)
28578     if (ored_words[j] != 0)
28579       break;
28580   if (j < NWORDS)
28581     {
28582       size_t i;
28583       for (i = j + 1; i < NWORDS; i++)
28584         if (ored_words[i] != 0)
28585           {
28586             fprintf (fp, "unknown");
28587             return (fclose (fp) != 0);
28588           }
28589       for (i = 0; ; i++)
28590         if ((ored_words[j] >> i) & 1)
28591           {
28592             fprintf (fp, "word %d bit %d", (int) j, (int) i);
28593             return (fclose (fp) != 0);
28594           }
28595     }
28596   fprintf (fp, "unknown");
28597   return (fclose (fp) != 0);
28598 }
28599
28600 _ACEOF
28601 if ac_fn_c_try_run "$LINENO"; then :
28602   gl_cv_cc_double_expbit0=`cat conftest.out`
28603 else
28604   gl_cv_cc_double_expbit0="unknown"
28605 fi
28606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28607   conftest.$ac_objext conftest.beam conftest.$ac_ext
28608 fi
28609
28610       rm -f conftest.out
28611
28612 fi
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
28614 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
28615   case "$gl_cv_cc_double_expbit0" in
28616     word*bit*)
28617       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
28618       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
28619
28620 cat >>confdefs.h <<_ACEOF
28621 #define DBL_EXPBIT0_WORD $word
28622 _ACEOF
28623
28624
28625 cat >>confdefs.h <<_ACEOF
28626 #define DBL_EXPBIT0_BIT $bit
28627 _ACEOF
28628
28629       ;;
28630   esac
28631
28632
28633
28634
28635
28636
28637
28638
28639   :
28640
28641
28642
28643
28644
28645
28646
28647
28648
28649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
28650 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
28651 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
28652   $as_echo_n "(cached) " >&6
28653 else
28654
28655       if test "$cross_compiling" = yes; then :
28656
28657          case "$host_os" in
28658                                  # Guess yes on glibc systems.
28659            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
28660                                  # Guess yes on FreeBSD >= 5.
28661            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
28662            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
28663                                  # Guess yes on Mac OS X >= 10.3.
28664            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
28665            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
28666                                  # Guess yes on OpenBSD >= 3.9.
28667            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
28668                                  gl_cv_func_snprintf_retval_c99="guessing no";;
28669            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
28670                                  # Guess yes on Solaris >= 2.10.
28671            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
28672            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
28673                                  # Guess yes on AIX >= 4.
28674            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
28675            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
28676                                  # Guess yes on NetBSD >= 3.
28677            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
28678                                  gl_cv_func_snprintf_retval_c99="guessing no";;
28679            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
28680                                  # Guess yes on BeOS.
28681            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
28682                                  # If we don't know, assume the worst.
28683            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
28684          esac
28685
28686 else
28687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28688 /* end confdefs.h.  */
28689
28690 #include <stdio.h>
28691 #include <string.h>
28692 #if HAVE_SNPRINTF
28693 # define my_snprintf snprintf
28694 #else
28695 # include <stdarg.h>
28696 static int my_snprintf (char *buf, int size, const char *format, ...)
28697 {
28698   va_list args;
28699   int ret;
28700   va_start (args, format);
28701   ret = vsnprintf (buf, size, format, args);
28702   va_end (args);
28703   return ret;
28704 }
28705 #endif
28706 static char buf[100];
28707 int main ()
28708 {
28709   strcpy (buf, "ABCDEF");
28710   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
28711     return 1;
28712   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
28713     return 2;
28714   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
28715     return 3;
28716   return 0;
28717 }
28718 _ACEOF
28719 if ac_fn_c_try_run "$LINENO"; then :
28720   gl_cv_func_snprintf_retval_c99=yes
28721 else
28722   gl_cv_func_snprintf_retval_c99=no
28723 fi
28724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28725   conftest.$ac_objext conftest.beam conftest.$ac_ext
28726 fi
28727
28728
28729 fi
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
28731 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
28732
28733
28734
28735
28736
28737
28738   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
28739 do :
28740   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28741 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28742 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28743   cat >>confdefs.h <<_ACEOF
28744 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28745 _ACEOF
28746
28747 fi
28748 done
28749
28750       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
28751 "
28752 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
28753   ac_have_decl=1
28754 else
28755   ac_have_decl=0
28756 fi
28757
28758 cat >>confdefs.h <<_ACEOF
28759 #define HAVE_DECL__SNPRINTF $ac_have_decl
28760 _ACEOF
28761
28762
28763
28764   case "$gl_cv_func_snprintf_retval_c99" in
28765     *yes)
28766
28767 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
28768
28769       ;;
28770   esac
28771
28772
28773       ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
28774 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
28775   ac_have_decl=1
28776 else
28777   ac_have_decl=0
28778 fi
28779
28780 cat >>confdefs.h <<_ACEOF
28781 #define HAVE_DECL_VSNPRINTF $ac_have_decl
28782 _ACEOF
28783
28784
28785
28786
28787
28788
28789
28790
28791   GNULIB_ISWBLANK=0;
28792   GNULIB_WCTYPE=0;
28793   GNULIB_ISWCTYPE=0;
28794   GNULIB_WCTRANS=0;
28795   GNULIB_TOWCTRANS=0;
28796     HAVE_ISWBLANK=1;
28797   HAVE_WCTYPE_T=1;
28798   HAVE_WCTRANS_T=1;
28799   REPLACE_ISWBLANK=0;
28800
28801
28802
28803
28804
28805
28806
28807    if true; then
28808   GL_COND_LIBTOOL_TRUE=
28809   GL_COND_LIBTOOL_FALSE='#'
28810 else
28811   GL_COND_LIBTOOL_TRUE='#'
28812   GL_COND_LIBTOOL_FALSE=
28813 fi
28814
28815   gl_cond_libtool=true
28816   gl_m4_base='gnulib/m4'
28817
28818
28819
28820
28821
28822
28823
28824
28825
28826   gl_source_base='gnulib/lib'
28827 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
28828
28829
28830
28831   if test $ac_cv_func_alloca_works = no; then
28832     :
28833   fi
28834
28835   # Define an additional variable used in the Makefile substitution.
28836   if test $ac_cv_working_alloca_h = yes; then
28837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
28838 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
28839 if ${gl_cv_rpl_alloca+:} false; then :
28840   $as_echo_n "(cached) " >&6
28841 else
28842
28843       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28844 /* end confdefs.h.  */
28845
28846 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
28847         Need own alloca
28848 #endif
28849
28850 _ACEOF
28851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28852   $EGREP "Need own alloca" >/dev/null 2>&1; then :
28853   gl_cv_rpl_alloca=yes
28854 else
28855   gl_cv_rpl_alloca=no
28856 fi
28857 rm -f conftest*
28858
28859
28860 fi
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
28862 $as_echo "$gl_cv_rpl_alloca" >&6; }
28863     if test $gl_cv_rpl_alloca = yes; then
28864
28865 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28866
28867       ALLOCA_H=alloca.h
28868     else
28869                   ALLOCA_H=
28870     fi
28871   else
28872     ALLOCA_H=alloca.h
28873   fi
28874
28875    if test -n "$ALLOCA_H"; then
28876   GL_GENERATE_ALLOCA_H_TRUE=
28877   GL_GENERATE_ALLOCA_H_FALSE='#'
28878 else
28879   GL_GENERATE_ALLOCA_H_TRUE='#'
28880   GL_GENERATE_ALLOCA_H_FALSE=
28881 fi
28882
28883
28884
28885
28886
28887
28888
28889   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
28890 "
28891 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
28892   ac_have_decl=1
28893 else
28894   ac_have_decl=0
28895 fi
28896
28897 cat >>confdefs.h <<_ACEOF
28898 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
28899 _ACEOF
28900 if test $ac_have_decl = 1; then :
28901
28902 else
28903
28904 $as_echo "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
28905
28906 fi
28907
28908   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
28909 "
28910 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
28911   ac_have_decl=1
28912 else
28913   ac_have_decl=0
28914 fi
28915
28916 cat >>confdefs.h <<_ACEOF
28917 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
28918 _ACEOF
28919 if test $ac_have_decl = 1; then :
28920
28921 else
28922
28923 $as_echo "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
28924
28925 fi
28926
28927
28928   # Check if program_invocation_name and program_invocation_short_name
28929   # are defined elsewhere. It is improbable that only one of them will
28930   # be defined and other not, I prefer to stay on the safe side and to
28931   # test each one separately.
28932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
28933 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
28934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28935 /* end confdefs.h.  */
28936 #include <argp.h>
28937 int
28938 main ()
28939 {
28940 program_invocation_name = "test";
28941   ;
28942   return 0;
28943 }
28944 _ACEOF
28945 if ac_fn_c_try_link "$LINENO"; then :
28946
28947 $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
28948
28949                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28950 $as_echo "yes" >&6; }
28951 else
28952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28953 $as_echo "no" >&6; }
28954 fi
28955 rm -f core conftest.err conftest.$ac_objext \
28956     conftest$ac_exeext conftest.$ac_ext
28957
28958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
28959 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
28960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28961 /* end confdefs.h.  */
28962 #include <argp.h>
28963 int
28964 main ()
28965 {
28966 program_invocation_short_name = "test";
28967   ;
28968   return 0;
28969 }
28970 _ACEOF
28971 if ac_fn_c_try_link "$LINENO"; then :
28972
28973 $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
28974
28975                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28976 $as_echo "yes" >&6; }
28977 else
28978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28979 $as_echo "no" >&6; }
28980 fi
28981 rm -f core conftest.err conftest.$ac_objext \
28982     conftest$ac_exeext conftest.$ac_ext
28983
28984
28985   :
28986
28987
28988
28989
28990
28991
28992   :
28993
28994
28995
28996
28997
28998
28999   :
29000
29001
29002
29003
29004
29005
29006   :
29007
29008
29009
29010
29011
29012
29013   :
29014
29015
29016
29017
29018
29019
29020   :
29021
29022
29023
29024
29025
29026
29027   :
29028
29029
29030
29031
29032
29033
29034   :
29035
29036
29037
29038
29039
29040
29041   :
29042
29043
29044
29045
29046
29047
29048   :
29049
29050
29051
29052
29053
29054
29055   :
29056
29057
29058
29059
29060
29061
29062   :
29063
29064
29065
29066
29067
29068
29069   :
29070
29071
29072
29073
29074
29075
29076   :
29077
29078
29079
29080
29081
29082
29083
29084
29085
29086   :
29087
29088
29089
29090
29091
29092
29093
29094
29095
29096
29097
29098   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
29099
29100
29101
29102   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
29103
29104
29105
29106
29107
29108
29109
29110
29111
29112   gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
29113
29114
29115
29116
29117
29118
29119
29120   :
29121
29122
29123
29124
29125
29126   if test $ac_cv_func_btowc = no; then
29127     HAVE_BTOWC=0
29128   else
29129
29130
29131
29132
29133         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
29134 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
29135 if ${gl_cv_func_btowc_nul+:} false; then :
29136   $as_echo_n "(cached) " >&6
29137 else
29138
29139         if test "$cross_compiling" = yes; then :
29140
29141            case "$host_os" in
29142                       # Guess no on Cygwin.
29143              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
29144                       # Guess yes otherwise.
29145              *)       gl_cv_func_btowc_nul="guessing yes" ;;
29146            esac
29147
29148 else
29149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29150 /* end confdefs.h.  */
29151
29152 #include <string.h>
29153 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29154    <wchar.h>.
29155    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29156    included before <wchar.h>.  */
29157 #include <stddef.h>
29158 #include <stdio.h>
29159 #include <time.h>
29160 #include <wchar.h>
29161 int main ()
29162 {
29163   if (btowc ('\0') != 0)
29164     return 1;
29165   return 0;
29166 }
29167 _ACEOF
29168 if ac_fn_c_try_run "$LINENO"; then :
29169   gl_cv_func_btowc_nul=yes
29170 else
29171   gl_cv_func_btowc_nul=no
29172 fi
29173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29174   conftest.$ac_objext conftest.beam conftest.$ac_ext
29175 fi
29176
29177
29178 fi
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
29180 $as_echo "$gl_cv_func_btowc_nul" >&6; }
29181
29182         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
29183 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
29184 if ${gl_cv_func_btowc_eof+:} false; then :
29185   $as_echo_n "(cached) " >&6
29186 else
29187
29188                         case "$host_os" in
29189                  # Guess no on IRIX.
29190           irix*) gl_cv_func_btowc_eof="guessing no" ;;
29191                  # Guess yes otherwise.
29192           *)     gl_cv_func_btowc_eof="guessing yes" ;;
29193         esac
29194         if test $LOCALE_FR != none; then
29195           if test "$cross_compiling" = yes; then :
29196   :
29197 else
29198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29199 /* end confdefs.h.  */
29200
29201 #include <locale.h>
29202 #include <string.h>
29203 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29204    <wchar.h>.
29205    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29206    included before <wchar.h>.  */
29207 #include <stddef.h>
29208 #include <stdio.h>
29209 #include <time.h>
29210 #include <wchar.h>
29211 int main ()
29212 {
29213   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
29214     {
29215       if (btowc (EOF) != WEOF)
29216         return 1;
29217     }
29218   return 0;
29219 }
29220 _ACEOF
29221 if ac_fn_c_try_run "$LINENO"; then :
29222   gl_cv_func_btowc_eof=yes
29223 else
29224   gl_cv_func_btowc_eof=no
29225 fi
29226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29227   conftest.$ac_objext conftest.beam conftest.$ac_ext
29228 fi
29229
29230         fi
29231
29232 fi
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
29234 $as_echo "$gl_cv_func_btowc_eof" >&6; }
29235
29236     case "$gl_cv_func_btowc_nul" in
29237       *yes) ;;
29238       *) REPLACE_BTOWC=1 ;;
29239     esac
29240     case "$gl_cv_func_btowc_eof" in
29241       *yes) ;;
29242       *) REPLACE_BTOWC=1 ;;
29243     esac
29244   fi
29245
29246   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
29247
29248
29249
29250
29251
29252
29253
29254
29255   gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
29256
29257
29258   :
29259
29260   fi
29261
29262
29263
29264
29265
29266           GNULIB_BTOWC=1
29267
29268
29269
29270
29271
29272 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
29273
29274
29275
29276
29277
29278
29279   :
29280
29281
29282
29283
29284
29285
29286
29287   if test $ac_cv_func_canonicalize_file_name = no; then
29288     HAVE_CANONICALIZE_FILE_NAME=0
29289   else
29290     case "$gl_cv_func_realpath_works" in
29291       *yes) ;;
29292       *)    REPLACE_CANONICALIZE_FILE_NAME=1 ;;
29293     esac
29294   fi
29295
29296
29297
29298 cat >>confdefs.h <<_ACEOF
29299 #define GNULIB_CANONICALIZE 1
29300 _ACEOF
29301
29302
29303
29304
29305 $as_echo "#define GNULIB_TEST_CANONICALIZE 1" >>confdefs.h
29306
29307
29308
29309
29310
29311
29312
29313           GNULIB_CANONICALIZE_FILE_NAME=1
29314
29315
29316
29317
29318
29319 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
29320
29321
29322
29323
29324
29325
29326   if test $ac_cv_func_canonicalize_file_name = no; then
29327     HAVE_CANONICALIZE_FILE_NAME=0
29328     if test $ac_cv_func_realpath = no; then
29329       HAVE_REALPATH=0
29330     else
29331       case "$gl_cv_func_realpath_works" in
29332         *yes) ;;
29333         *)    REPLACE_REALPATH=1 ;;
29334       esac
29335     fi
29336   else
29337     case "$gl_cv_func_realpath_works" in
29338       *yes)
29339         ;;
29340       *)
29341         REPLACE_CANONICALIZE_FILE_NAME=1
29342         REPLACE_REALPATH=1
29343         ;;
29344     esac
29345   fi
29346
29347   if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
29348
29349
29350
29351
29352
29353
29354
29355
29356   gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
29357
29358   fi
29359
29360
29361 cat >>confdefs.h <<_ACEOF
29362 #define GNULIB_CANONICALIZE_LGPL 1
29363 _ACEOF
29364
29365
29366
29367
29368
29369
29370
29371           GNULIB_CANONICALIZE_FILE_NAME=1
29372
29373
29374
29375
29376
29377 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
29378
29379
29380
29381
29382
29383
29384
29385
29386           GNULIB_REALPATH=1
29387
29388
29389
29390
29391
29392 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
29393
29394
29395
29396
29397
29398
29399
29400
29401           GNULIB_CHDIR=1
29402
29403
29404
29405
29406
29407 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
29408
29409
29410
29411
29412
29413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
29414 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
29415 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false; then :
29416   $as_echo_n "(cached) " >&6
29417 else
29418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29419 /* end confdefs.h.  */
29420
29421 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
29422 #if HAVE_UNISTD_H
29423 # include <unistd.h>
29424 #endif
29425 #include <limits.h>
29426 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
29427 # include <sys/param.h>
29428 #endif
29429 #if !defined PATH_MAX && defined MAXPATHLEN
29430 # define PATH_MAX MAXPATHLEN
29431 #endif
29432 #ifdef __hpux
29433 # undef PATH_MAX
29434 # define PATH_MAX 1024
29435 #endif
29436 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
29437 # undef PATH_MAX
29438 # define PATH_MAX 260
29439 #endif
29440
29441 #ifdef PATH_MAX
29442 have_arbitrary_file_name_length_limit
29443 #endif
29444 _ACEOF
29445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29446   $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then :
29447   gl_cv_have_arbitrary_file_name_length_limit=yes
29448 else
29449   gl_cv_have_arbitrary_file_name_length_limit=no
29450 fi
29451 rm -f conftest*
29452
29453 fi
29454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
29455 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
29456
29457   if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
29458
29459
29460
29461
29462
29463
29464
29465
29466   gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
29467
29468     :
29469   fi
29470
29471
29472
29473   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
29474   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
29475
29476   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
29477   # programs in the package would end up linked with that potentially-shared
29478   # library, inducing unnecessary run-time overhead.
29479   LIB_CLOCK_GETTIME=
29480
29481   gl_saved_libs=$LIBS
29482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
29483 $as_echo_n "checking for library containing clock_gettime... " >&6; }
29484 if ${ac_cv_search_clock_gettime+:} false; then :
29485   $as_echo_n "(cached) " >&6
29486 else
29487   ac_func_search_save_LIBS=$LIBS
29488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29489 /* end confdefs.h.  */
29490
29491 /* Override any GCC internal prototype to avoid an error.
29492    Use char because int might match the return type of a GCC
29493    builtin and then its argument prototype would still apply.  */
29494 #ifdef __cplusplus
29495 extern "C"
29496 #endif
29497 char clock_gettime ();
29498 int
29499 main ()
29500 {
29501 return clock_gettime ();
29502   ;
29503   return 0;
29504 }
29505 _ACEOF
29506 for ac_lib in '' rt posix4; do
29507   if test -z "$ac_lib"; then
29508     ac_res="none required"
29509   else
29510     ac_res=-l$ac_lib
29511     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29512   fi
29513   if ac_fn_c_try_link "$LINENO"; then :
29514   ac_cv_search_clock_gettime=$ac_res
29515 fi
29516 rm -f core conftest.err conftest.$ac_objext \
29517     conftest$ac_exeext
29518   if ${ac_cv_search_clock_gettime+:} false; then :
29519   break
29520 fi
29521 done
29522 if ${ac_cv_search_clock_gettime+:} false; then :
29523
29524 else
29525   ac_cv_search_clock_gettime=no
29526 fi
29527 rm conftest.$ac_ext
29528 LIBS=$ac_func_search_save_LIBS
29529 fi
29530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
29531 $as_echo "$ac_cv_search_clock_gettime" >&6; }
29532 ac_res=$ac_cv_search_clock_gettime
29533 if test "$ac_res" != no; then :
29534   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29535   test "$ac_cv_search_clock_gettime" = "none required" ||
29536                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
29537 fi
29538
29539     for ac_func in clock_gettime clock_settime
29540 do :
29541   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29542 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29543 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29544   cat >>confdefs.h <<_ACEOF
29545 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29546 _ACEOF
29547
29548 fi
29549 done
29550
29551   LIBS=$gl_saved_libs
29552
29553
29554
29555 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
29556
29557
29558
29559
29560
29561   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
29562     REPLACE_CLOSE=1
29563   fi
29564
29565
29566
29567
29568
29569   :
29570
29571
29572
29573
29574
29575   if test $ac_cv_header_sys_socket_h != yes; then
29576                     for ac_header in winsock2.h
29577 do :
29578   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
29579 if test "x$ac_cv_header_winsock2_h" = xyes; then :
29580   cat >>confdefs.h <<_ACEOF
29581 #define HAVE_WINSOCK2_H 1
29582 _ACEOF
29583
29584 fi
29585
29586 done
29587
29588   fi
29589   if test "$ac_cv_header_winsock2_h" = yes; then
29590     HAVE_WINSOCK2_H=1
29591     UNISTD_H_HAVE_WINSOCK2_H=1
29592     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
29593   else
29594     HAVE_WINSOCK2_H=0
29595   fi
29596
29597
29598     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
29599                         REPLACE_CLOSE=1
29600     fi
29601
29602
29603     if test $REPLACE_CLOSE = 0; then
29604
29605
29606
29607   :
29608
29609
29610
29611
29612
29613   if test $ac_cv_func_fchdir = no; then
29614     HAVE_FCHDIR=0
29615   fi
29616
29617       if test $HAVE_FCHDIR = 0; then
29618         REPLACE_CLOSE=1
29619       fi
29620     fi
29621
29622
29623   if test $REPLACE_CLOSE = 1; then
29624
29625
29626
29627
29628
29629
29630
29631
29632   gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
29633
29634   fi
29635
29636
29637
29638
29639
29640           GNULIB_CLOSE=1
29641
29642
29643
29644
29645
29646 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
29647
29648
29649
29650
29651
29652
29653   for ac_func in closedir
29654 do :
29655   ac_fn_c_check_func "$LINENO" "closedir" "ac_cv_func_closedir"
29656 if test "x$ac_cv_func_closedir" = xyes; then :
29657   cat >>confdefs.h <<_ACEOF
29658 #define HAVE_CLOSEDIR 1
29659 _ACEOF
29660
29661 fi
29662 done
29663
29664   if test $ac_cv_func_closedir = no; then
29665     HAVE_CLOSEDIR=0
29666   fi
29667
29668
29669
29670
29671   :
29672
29673
29674
29675
29676
29677   if test $ac_cv_func_fchdir = no; then
29678     HAVE_FCHDIR=0
29679   fi
29680
29681     if test $HAVE_FCHDIR = 0; then
29682       if test $HAVE_CLOSEDIR = 1; then
29683         REPLACE_CLOSEDIR=1
29684       fi
29685     fi
29686
29687
29688   if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
29689
29690
29691
29692
29693
29694
29695
29696
29697   gl_LIBOBJS="$gl_LIBOBJS closedir.$ac_objext"
29698
29699   fi
29700
29701
29702
29703
29704
29705           GNULIB_CLOSEDIR=1
29706
29707
29708
29709
29710
29711 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
29712
29713
29714
29715
29716           if test "x$datarootdir" = x; then
29717     datarootdir='${datadir}'
29718
29719   fi
29720     if test "x$docdir" = x; then
29721     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
29722
29723   fi
29724     if test "x$htmldir" = x; then
29725     htmldir='${docdir}'
29726
29727   fi
29728   if test "x$dvidir" = x; then
29729     dvidir='${docdir}'
29730
29731   fi
29732   if test "x$pdfdir" = x; then
29733     pdfdir='${docdir}'
29734
29735   fi
29736   if test "x$psdir" = x; then
29737     psdir='${docdir}'
29738
29739   fi
29740   if test "x$lispdir" = x; then
29741     lispdir='${datarootdir}/emacs/site-lisp'
29742
29743   fi
29744   if test "x$localedir" = x; then
29745     localedir='${datarootdir}/locale'
29746
29747   fi
29748     if test "x$runstatedir" = x; then
29749     runstatedir='${localstatedir}/run'
29750
29751   fi
29752
29753       pkglibexecdir='${libexecdir}/${PACKAGE}'
29754
29755
29756       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
29757 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
29758 if ${gl_cv_struct_dirent_d_ino+:} false; then :
29759   $as_echo_n "(cached) " >&6
29760 else
29761   if test "$cross_compiling" = yes; then :
29762   case "$host_os" in
29763                            # Guess yes on glibc systems with Linux kernel.
29764               linux*-gnu*) gl_cv_struct_dirent_d_ino="guessing yes" ;;
29765                            # If we don't know, assume the worst.
29766               *)           gl_cv_struct_dirent_d_ino="guessing no" ;;
29767             esac
29768
29769 else
29770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29771 /* end confdefs.h.  */
29772 #include <sys/types.h>
29773              #include <sys/stat.h>
29774              #include <dirent.h>
29775
29776 int
29777 main ()
29778 {
29779 DIR *dp = opendir (".");
29780              struct dirent *e;
29781              struct stat st;
29782              if (! dp)
29783                return 1;
29784              e = readdir (dp);
29785              if (! e)
29786                return 2;
29787              if (lstat (e->d_name, &st) != 0)
29788                return 3;
29789              if (e->d_ino != st.st_ino)
29790                return 4;
29791              return 0;
29792
29793   ;
29794   return 0;
29795 }
29796 _ACEOF
29797 if ac_fn_c_try_run "$LINENO"; then :
29798   gl_cv_struct_dirent_d_ino=yes
29799 else
29800   gl_cv_struct_dirent_d_ino=no
29801 fi
29802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29803   conftest.$ac_objext conftest.beam conftest.$ac_ext
29804 fi
29805
29806 fi
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
29808 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
29809    case "$gl_cv_struct_dirent_d_ino" in
29810      *yes)
29811
29812 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
29813
29814        ;;
29815    esac
29816
29817
29818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
29819 $as_echo_n "checking for d_type member in directory struct... " >&6; }
29820 if ${gl_cv_struct_dirent_d_type+:} false; then :
29821   $as_echo_n "(cached) " >&6
29822 else
29823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29824 /* end confdefs.h.  */
29825
29826 #include <sys/types.h>
29827 #include <dirent.h>
29828
29829 int
29830 main ()
29831 {
29832 struct dirent dp; dp.d_type = 0;
29833   ;
29834   return 0;
29835 }
29836 _ACEOF
29837 if ac_fn_c_try_link "$LINENO"; then :
29838   gl_cv_struct_dirent_d_type=yes
29839 else
29840   gl_cv_struct_dirent_d_type=no
29841 fi
29842 rm -f core conftest.err conftest.$ac_objext \
29843     conftest$ac_exeext conftest.$ac_ext
29844
29845
29846 fi
29847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
29848 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
29849    if test $gl_cv_struct_dirent_d_type = yes; then
29850
29851 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
29852
29853    fi
29854
29855
29856
29857
29858
29859
29860
29861
29862
29863
29864
29865   :
29866
29867
29868
29869
29870
29871
29872
29873
29874      if test $gl_cv_have_include_next = yes; then
29875        gl_cv_next_dirent_h='<'dirent.h'>'
29876      else
29877        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
29878 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
29879 if ${gl_cv_next_dirent_h+:} false; then :
29880   $as_echo_n "(cached) " >&6
29881 else
29882
29883              if test $ac_cv_header_dirent_h = yes; then
29884
29885
29886
29887
29888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29889 /* end confdefs.h.  */
29890 #include <dirent.h>
29891 _ACEOF
29892                 case "$host_os" in
29893     aix*) gl_absname_cpp="$ac_cpp -C" ;;
29894     *)    gl_absname_cpp="$ac_cpp" ;;
29895   esac
29896
29897   case "$host_os" in
29898     mingw*)
29899                                           gl_dirsep_regex='[/\\]'
29900       ;;
29901     *)
29902       gl_dirsep_regex='\/'
29903       ;;
29904   esac
29905       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29906   gl_header_literal_regex=`echo 'dirent.h' \
29907                            | sed -e "$gl_make_literal_regex_sed"`
29908   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29909       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29910       s|^/[^/]|//&|
29911       p
29912       q
29913     }'
29914
29915         gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29916   sed -n "$gl_absolute_header_sed"`
29917
29918            gl_header=$gl_cv_absolute_dirent_h
29919            gl_cv_next_dirent_h='"'$gl_header'"'
29920           else
29921                gl_cv_next_dirent_h='<'dirent.h'>'
29922              fi
29923
29924
29925 fi
29926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
29927 $as_echo "$gl_cv_next_dirent_h" >&6; }
29928      fi
29929      NEXT_DIRENT_H=$gl_cv_next_dirent_h
29930
29931      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29932        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29933        gl_next_as_first_directive='<'dirent.h'>'
29934      else
29935        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29936        gl_next_as_first_directive=$gl_cv_next_dirent_h
29937      fi
29938      NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
29939
29940
29941
29942
29943   if test $ac_cv_header_dirent_h = yes; then
29944     HAVE_DIRENT_H=1
29945   else
29946     HAVE_DIRENT_H=0
29947   fi
29948
29949
29950
29951     for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
29952     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29954 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29955 if eval \${$as_gl_Symbol+:} false; then :
29956   $as_echo_n "(cached) " >&6
29957 else
29958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29959 /* end confdefs.h.  */
29960 #include <dirent.h>
29961
29962 int
29963 main ()
29964 {
29965 #undef $gl_func
29966   (void) $gl_func;
29967   ;
29968   return 0;
29969 }
29970 _ACEOF
29971 if ac_fn_c_try_compile "$LINENO"; then :
29972   eval "$as_gl_Symbol=yes"
29973 else
29974   eval "$as_gl_Symbol=no"
29975 fi
29976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29977 fi
29978 eval ac_res=\$$as_gl_Symbol
29979                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29980 $as_echo "$ac_res" >&6; }
29981     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29982   cat >>confdefs.h <<_ACEOF
29983 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29984 _ACEOF
29985
29986                      eval ac_cv_have_decl_$gl_func=yes
29987 fi
29988       done
29989
29990
29991
29992
29993
29994
29995
29996   for ac_func in dirfd
29997 do :
29998   ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
29999 if test "x$ac_cv_func_dirfd" = xyes; then :
30000   cat >>confdefs.h <<_ACEOF
30001 #define HAVE_DIRFD 1
30002 _ACEOF
30003
30004 fi
30005 done
30006
30007   ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
30008       #include <dirent.h>
30009 "
30010 if test "x$ac_cv_have_decl_dirfd" = xyes; then :
30011   ac_have_decl=1
30012 else
30013   ac_have_decl=0
30014 fi
30015
30016 cat >>confdefs.h <<_ACEOF
30017 #define HAVE_DECL_DIRFD $ac_have_decl
30018 _ACEOF
30019
30020   if test $ac_cv_have_decl_dirfd = no; then
30021     HAVE_DECL_DIRFD=0
30022   fi
30023
30024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
30025 $as_echo_n "checking whether dirfd is a macro... " >&6; }
30026 if ${gl_cv_func_dirfd_macro+:} false; then :
30027   $as_echo_n "(cached) " >&6
30028 else
30029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30030 /* end confdefs.h.  */
30031
30032 #include <sys/types.h>
30033 #include <dirent.h>
30034 #ifdef dirfd
30035  dirent_header_defines_dirfd
30036 #endif
30037 _ACEOF
30038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30039   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
30040   gl_cv_func_dirfd_macro=yes
30041 else
30042   gl_cv_func_dirfd_macro=no
30043 fi
30044 rm -f conftest*
30045
30046 fi
30047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
30048 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
30049
30050   # Use the replacement only if we have no function or macro with that name.
30051   if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
30052     if test $ac_cv_have_decl_dirfd = yes; then
30053       # If the system declares dirfd already, let's declare rpl_dirfd instead.
30054       REPLACE_DIRFD=1
30055     fi
30056   fi
30057
30058   if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
30059
30060
30061
30062
30063
30064
30065
30066
30067   gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
30068
30069
30070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
30071 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
30072 if ${gl_cv_sys_dir_fd_member_name+:} false; then :
30073   $as_echo_n "(cached) " >&6
30074 else
30075
30076       dirfd_save_CFLAGS=$CFLAGS
30077       for ac_expr in d_fd dd_fd; do
30078
30079         CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
30080         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30081 /* end confdefs.h.  */
30082
30083            #include <sys/types.h>
30084            #include <dirent.h>
30085 int
30086 main ()
30087 {
30088 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
30089   ;
30090   return 0;
30091 }
30092 _ACEOF
30093 if ac_fn_c_try_compile "$LINENO"; then :
30094   dir_fd_found=yes
30095
30096 fi
30097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30098         CFLAGS=$dirfd_save_CFLAGS
30099         test "$dir_fd_found" = yes && break
30100       done
30101       test "$dir_fd_found" = yes || ac_expr=no_such_member
30102
30103       gl_cv_sys_dir_fd_member_name=$ac_expr
30104
30105
30106 fi
30107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
30108 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
30109   if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
30110
30111 cat >>confdefs.h <<_ACEOF
30112 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
30113 _ACEOF
30114
30115   fi
30116
30117
30118   fi
30119
30120
30121
30122
30123
30124           GNULIB_DIRFD=1
30125
30126
30127
30128
30129
30130 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
30131
30132
30133
30134
30135
30136
30137
30138
30139 cat >>confdefs.h <<_ACEOF
30140 #define GNULIB_DIRNAME 1
30141 _ACEOF
30142
30143
30144
30145
30146
30147
30148
30149
30150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
30151 $as_echo_n "checking whether // is distinct from /... " >&6; }
30152 if ${gl_cv_double_slash_root+:} false; then :
30153   $as_echo_n "(cached) " >&6
30154 else
30155    if test x"$cross_compiling" = xyes ; then
30156         # When cross-compiling, there is no way to tell whether // is special
30157         # short of a list of hosts.  However, the only known hosts to date
30158         # that have a distinct // are Apollo DomainOS (too old to port to),
30159         # Cygwin, and z/OS.  If anyone knows of another system for which // has
30160         # special semantics and is distinct from /, please report it to
30161         # <bug-gnulib@gnu.org>.
30162         case $host in
30163           *-cygwin | i370-ibm-openedition)
30164             gl_cv_double_slash_root=yes ;;
30165           *)
30166             # Be optimistic and assume that / and // are the same when we
30167             # don't know.
30168             gl_cv_double_slash_root='unknown, assuming no' ;;
30169         esac
30170       else
30171         set x `ls -di / // 2>/dev/null`
30172         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
30173           gl_cv_double_slash_root=no
30174         else
30175           gl_cv_double_slash_root=yes
30176         fi
30177       fi
30178 fi
30179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
30180 $as_echo "$gl_cv_double_slash_root" >&6; }
30181   if test "$gl_cv_double_slash_root" = yes; then
30182
30183 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
30184
30185   fi
30186
30187
30188
30189
30190   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
30191     REPLACE_DUP=1
30192   fi
30193
30194
30195
30196
30197   :
30198
30199
30200
30201
30202
30203   if test $ac_cv_func_fchdir = no; then
30204     HAVE_FCHDIR=0
30205   fi
30206
30207     if test $HAVE_FCHDIR = 0; then
30208       REPLACE_DUP=1
30209     fi
30210
30211
30212   if test $REPLACE_DUP = 1; then
30213
30214
30215
30216
30217
30218
30219
30220
30221   gl_LIBOBJS="$gl_LIBOBJS dup.$ac_objext"
30222
30223     :
30224   fi
30225
30226
30227
30228
30229
30230           GNULIB_DUP=1
30231
30232
30233
30234
30235
30236 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
30237
30238
30239
30240
30241
30242
30243
30244
30245 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
30246
30247
30248   if test $HAVE_DUP2 = 1; then
30249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
30250 $as_echo_n "checking whether dup2 works... " >&6; }
30251 if ${gl_cv_func_dup2_works+:} false; then :
30252   $as_echo_n "(cached) " >&6
30253 else
30254   if test "$cross_compiling" = yes; then :
30255   case "$host_os" in
30256            mingw*) # on this platform, dup2 always returns 0 for success
30257              gl_cv_func_dup2_works="guessing no" ;;
30258            cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
30259              gl_cv_func_dup2_works="guessing no" ;;
30260            linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
30261                    # closed fd may yield -EBADF instead of -1 / errno=EBADF.
30262              gl_cv_func_dup2_works="guessing no" ;;
30263            freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
30264              gl_cv_func_dup2_works="guessing no" ;;
30265            haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
30266              gl_cv_func_dup2_works="guessing no" ;;
30267            *) gl_cv_func_dup2_works="guessing yes" ;;
30268          esac
30269 else
30270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30271 /* end confdefs.h.  */
30272
30273          #include <unistd.h>
30274 #include <fcntl.h>
30275 #include <errno.h>
30276 int
30277 main ()
30278 {
30279 int result = 0;
30280 #ifdef FD_CLOEXEC
30281             if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
30282               result |= 1;
30283 #endif
30284             if (dup2 (1, 1) == 0)
30285               result |= 2;
30286 #ifdef FD_CLOEXEC
30287             if (fcntl (1, F_GETFD) != FD_CLOEXEC)
30288               result |= 4;
30289 #endif
30290             close (0);
30291             if (dup2 (0, 0) != -1)
30292               result |= 8;
30293             /* Many gnulib modules require POSIX conformance of EBADF.  */
30294             if (dup2 (2, 1000000) == -1 && errno != EBADF)
30295               result |= 16;
30296             /* Flush out some cygwin core dumps.  */
30297             if (dup2 (2, -1) != -1 || errno != EBADF)
30298               result |= 32;
30299             dup2 (2, 255);
30300             dup2 (2, 256);
30301             return result;
30302
30303   ;
30304   return 0;
30305 }
30306
30307 _ACEOF
30308 if ac_fn_c_try_run "$LINENO"; then :
30309   gl_cv_func_dup2_works=yes
30310 else
30311   gl_cv_func_dup2_works=no
30312 fi
30313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30314   conftest.$ac_objext conftest.beam conftest.$ac_ext
30315 fi
30316
30317
30318 fi
30319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
30320 $as_echo "$gl_cv_func_dup2_works" >&6; }
30321     case "$gl_cv_func_dup2_works" in
30322       *yes) ;;
30323       *)
30324         REPLACE_DUP2=1
30325         for ac_func in setdtablesize
30326 do :
30327   ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
30328 if test "x$ac_cv_func_setdtablesize" = xyes; then :
30329   cat >>confdefs.h <<_ACEOF
30330 #define HAVE_SETDTABLESIZE 1
30331 _ACEOF
30332
30333 fi
30334 done
30335
30336         ;;
30337     esac
30338   fi
30339
30340
30341
30342
30343   :
30344
30345
30346
30347
30348
30349   if test $ac_cv_func_fchdir = no; then
30350     HAVE_FCHDIR=0
30351   fi
30352
30353     if test $HAVE_FCHDIR = 0; then
30354       if test $HAVE_DUP2 = 1; then
30355         REPLACE_DUP2=1
30356       fi
30357     fi
30358
30359
30360   if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
30361
30362
30363
30364
30365
30366
30367
30368
30369   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
30370
30371
30372   fi
30373
30374
30375
30376
30377
30378           GNULIB_DUP2=1
30379
30380
30381
30382
30383
30384 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
30385
30386
30387
30388
30389
30390
30391
30392
30393
30394           GNULIB_ENVIRON=1
30395
30396
30397
30398
30399
30400 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
30401
30402
30403
30404
30405
30406       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
30407 $as_echo_n "checking for error_at_line... " >&6; }
30408 if ${ac_cv_lib_error_at_line+:} false; then :
30409   $as_echo_n "(cached) " >&6
30410 else
30411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30412 /* end confdefs.h.  */
30413 #include <error.h>
30414 int
30415 main ()
30416 {
30417 error_at_line (0, 0, "", 0, "an error occurred");
30418   ;
30419   return 0;
30420 }
30421 _ACEOF
30422 if ac_fn_c_try_link "$LINENO"; then :
30423   ac_cv_lib_error_at_line=yes
30424 else
30425   ac_cv_lib_error_at_line=no
30426 fi
30427 rm -f core conftest.err conftest.$ac_objext \
30428     conftest$ac_exeext conftest.$ac_ext
30429 fi
30430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
30431 $as_echo "$ac_cv_lib_error_at_line" >&6; }
30432
30433   if test $ac_cv_lib_error_at_line = no; then
30434
30435
30436
30437
30438
30439
30440
30441
30442   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
30443
30444
30445
30446   :
30447
30448   fi
30449
30450
30451   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
30452
30453
30454
30455   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
30456
30457
30458
30459
30460
30461
30462
30463   :
30464
30465
30466
30467
30468
30469   if test $ac_cv_have_decl_fchdir = no; then
30470     HAVE_DECL_FCHDIR=0
30471   fi
30472
30473
30474   if test $HAVE_FCHDIR = 0; then
30475
30476
30477
30478
30479
30480
30481
30482
30483   gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
30484
30485     :
30486
30487 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
30488
30489                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
30490 $as_echo_n "checking whether open can visit directories... " >&6; }
30491 if ${gl_cv_func_open_directory_works+:} false; then :
30492   $as_echo_n "(cached) " >&6
30493 else
30494   if test "$cross_compiling" = yes; then :
30495   case "$host_os" in
30496                    # Guess yes on glibc systems.
30497            *-gnu*) gl_cv_func_open_directory_works="guessing yes" ;;
30498                    # If we don't know, assume the worst.
30499            *)      gl_cv_func_open_directory_works="guessing no" ;;
30500          esac
30501
30502 else
30503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30504 /* end confdefs.h.  */
30505 #include <fcntl.h>
30506
30507 int
30508 main ()
30509 {
30510 return open(".", O_RDONLY) < 0;
30511   ;
30512   return 0;
30513 }
30514 _ACEOF
30515 if ac_fn_c_try_run "$LINENO"; then :
30516   gl_cv_func_open_directory_works=yes
30517 else
30518   gl_cv_func_open_directory_works=no
30519 fi
30520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30521   conftest.$ac_objext conftest.beam conftest.$ac_ext
30522 fi
30523
30524 fi
30525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
30526 $as_echo "$gl_cv_func_open_directory_works" >&6; }
30527     case "$gl_cv_func_open_directory_works" in
30528       *yes) ;;
30529       *)
30530
30531 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
30532
30533         ;;
30534     esac
30535   fi
30536
30537
30538
30539
30540
30541
30542           GNULIB_FCHDIR=1
30543
30544
30545
30546
30547
30548 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
30549
30550
30551
30552
30553
30554
30555
30556
30557   :
30558
30559
30560
30561
30562
30563   if test $ac_cv_func_fcntl = no; then
30564
30565
30566
30567   :
30568
30569
30570
30571
30572
30573   if test $ac_cv_func_fcntl = no; then
30574     HAVE_FCNTL=0
30575   else
30576     REPLACE_FCNTL=1
30577   fi
30578
30579   else
30580             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
30581 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
30582 if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
30583   $as_echo_n "(cached) " >&6
30584 else
30585   if test "$cross_compiling" = yes; then :
30586   # Guess that it works on glibc systems
30587           case $host_os in #((
30588             *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
30589             *)      gl_cv_func_fcntl_f_dupfd_works="guessing no";;
30590           esac
30591 else
30592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30593 /* end confdefs.h.  */
30594
30595 #include <fcntl.h>
30596 #include <errno.h>
30597
30598 int
30599 main ()
30600 {
30601 int result = 0;
30602       if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
30603       if (errno != EINVAL) result |= 2;
30604       return result;
30605
30606   ;
30607   return 0;
30608 }
30609 _ACEOF
30610 if ac_fn_c_try_run "$LINENO"; then :
30611   gl_cv_func_fcntl_f_dupfd_works=yes
30612 else
30613   gl_cv_func_fcntl_f_dupfd_works=no
30614 fi
30615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30616   conftest.$ac_objext conftest.beam conftest.$ac_ext
30617 fi
30618
30619 fi
30620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
30621 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
30622     case $gl_cv_func_fcntl_f_dupfd_works in
30623       *yes) ;;
30624       *)
30625
30626
30627   :
30628
30629
30630
30631
30632
30633   if test $ac_cv_func_fcntl = no; then
30634     HAVE_FCNTL=0
30635   else
30636     REPLACE_FCNTL=1
30637   fi
30638
30639
30640 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
30641  ;;
30642     esac
30643
30644         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
30645 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
30646 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
30647   $as_echo_n "(cached) " >&6
30648 else
30649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30650 /* end confdefs.h.  */
30651
30652 #include <fcntl.h>
30653 #ifndef F_DUPFD_CLOEXEC
30654 choke me
30655 #endif
30656
30657 int
30658 main ()
30659 {
30660
30661   ;
30662   return 0;
30663 }
30664 _ACEOF
30665 if ac_fn_c_try_compile "$LINENO"; then :
30666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30667 /* end confdefs.h.  */
30668
30669 #ifdef __linux__
30670 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
30671    it to support the semantics on older kernels that failed with EINVAL.  */
30672 choke me
30673 #endif
30674
30675 int
30676 main ()
30677 {
30678
30679   ;
30680   return 0;
30681 }
30682 _ACEOF
30683 if ac_fn_c_try_compile "$LINENO"; then :
30684   gl_cv_func_fcntl_f_dupfd_cloexec=yes
30685 else
30686   gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
30687 fi
30688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30689 else
30690   gl_cv_func_fcntl_f_dupfd_cloexec=no
30691 fi
30692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30693 fi
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
30695 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
30696     if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
30697
30698
30699
30700   :
30701
30702
30703
30704
30705
30706   if test $ac_cv_func_fcntl = no; then
30707     HAVE_FCNTL=0
30708   else
30709     REPLACE_FCNTL=1
30710   fi
30711
30712           fi
30713   fi
30714
30715
30716
30717
30718   :
30719
30720
30721
30722
30723
30724   if test $ac_cv_func_fchdir = no; then
30725     HAVE_FCHDIR=0
30726   fi
30727
30728     if test $HAVE_FCHDIR = 0; then
30729
30730
30731
30732   :
30733
30734
30735
30736
30737
30738   if test $ac_cv_func_fcntl = no; then
30739     HAVE_FCNTL=0
30740   else
30741     REPLACE_FCNTL=1
30742   fi
30743
30744     fi
30745
30746
30747   if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
30748
30749
30750
30751
30752
30753
30754
30755
30756   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
30757
30758   fi
30759
30760
30761
30762
30763
30764           GNULIB_FCNTL=1
30765
30766
30767
30768
30769
30770 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
30771
30772
30773
30774
30775
30776
30777
30778
30779
30780
30781
30782
30783
30784
30785      if test $gl_cv_have_include_next = yes; then
30786        gl_cv_next_fcntl_h='<'fcntl.h'>'
30787      else
30788        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
30789 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
30790 if ${gl_cv_next_fcntl_h+:} false; then :
30791   $as_echo_n "(cached) " >&6
30792 else
30793
30794
30795
30796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30797 /* end confdefs.h.  */
30798 #include <fcntl.h>
30799 _ACEOF
30800                 case "$host_os" in
30801     aix*) gl_absname_cpp="$ac_cpp -C" ;;
30802     *)    gl_absname_cpp="$ac_cpp" ;;
30803   esac
30804
30805   case "$host_os" in
30806     mingw*)
30807                                           gl_dirsep_regex='[/\\]'
30808       ;;
30809     *)
30810       gl_dirsep_regex='\/'
30811       ;;
30812   esac
30813       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30814   gl_header_literal_regex=`echo 'fcntl.h' \
30815                            | sed -e "$gl_make_literal_regex_sed"`
30816   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30817       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30818       s|^/[^/]|//&|
30819       p
30820       q
30821     }'
30822
30823         gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30824   sed -n "$gl_absolute_header_sed"`
30825
30826            gl_header=$gl_cv_absolute_fcntl_h
30827            gl_cv_next_fcntl_h='"'$gl_header'"'
30828
30829
30830 fi
30831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
30832 $as_echo "$gl_cv_next_fcntl_h" >&6; }
30833      fi
30834      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
30835
30836      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30837        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30838        gl_next_as_first_directive='<'fcntl.h'>'
30839      else
30840        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30841        gl_next_as_first_directive=$gl_cv_next_fcntl_h
30842      fi
30843      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
30844
30845
30846
30847
30848
30849
30850
30851
30852
30853
30854     for gl_func in fcntl openat; do
30855     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
30857 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30858 if eval \${$as_gl_Symbol+:} false; then :
30859   $as_echo_n "(cached) " >&6
30860 else
30861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30862 /* end confdefs.h.  */
30863 #include <fcntl.h>
30864
30865 int
30866 main ()
30867 {
30868 #undef $gl_func
30869   (void) $gl_func;
30870   ;
30871   return 0;
30872 }
30873 _ACEOF
30874 if ac_fn_c_try_compile "$LINENO"; then :
30875   eval "$as_gl_Symbol=yes"
30876 else
30877   eval "$as_gl_Symbol=no"
30878 fi
30879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30880 fi
30881 eval ac_res=\$$as_gl_Symbol
30882                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30883 $as_echo "$ac_res" >&6; }
30884     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30885   cat >>confdefs.h <<_ACEOF
30886 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30887 _ACEOF
30888
30889                      eval ac_cv_have_decl_$gl_func=yes
30890 fi
30891       done
30892
30893
30894
30895
30896
30897
30898
30899     ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
30900 #include <dirent.h>
30901
30902 "
30903 if test "x$ac_cv_have_decl_fdopendir" = xyes; then :
30904   ac_have_decl=1
30905 else
30906   ac_have_decl=0
30907 fi
30908
30909 cat >>confdefs.h <<_ACEOF
30910 #define HAVE_DECL_FDOPENDIR $ac_have_decl
30911 _ACEOF
30912 if test $ac_have_decl = 1; then :
30913
30914 else
30915   HAVE_DECL_FDOPENDIR=0
30916 fi
30917
30918
30919   :
30920
30921
30922
30923
30924
30925   if test $ac_cv_func_fdopendir = no; then
30926     HAVE_FDOPENDIR=0
30927   else
30928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
30929 $as_echo_n "checking whether fdopendir works... " >&6; }
30930 if ${gl_cv_func_fdopendir_works+:} false; then :
30931   $as_echo_n "(cached) " >&6
30932 else
30933   if test "$cross_compiling" = yes; then :
30934   case "$host_os" in
30935                     # Guess yes on glibc systems.
30936             *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
30937                     # If we don't know, assume the worst.
30938             *)      gl_cv_func_fdopendir_works="guessing no" ;;
30939           esac
30940
30941 else
30942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30943 /* end confdefs.h.  */
30944
30945 #include <dirent.h>
30946 #include <fcntl.h>
30947 #include <unistd.h>
30948 #if !HAVE_DECL_FDOPENDIR
30949 extern
30950 # ifdef __cplusplus
30951 "C"
30952 # endif
30953 DIR *fdopendir (int);
30954 #endif
30955
30956 int
30957 main ()
30958 {
30959 int result = 0;
30960      int fd = open ("conftest.c", O_RDONLY);
30961      if (fd < 0) result |= 1;
30962      if (fdopendir (fd)) result |= 2;
30963      if (close (fd)) result |= 4;
30964      return result;
30965   ;
30966   return 0;
30967 }
30968 _ACEOF
30969 if ac_fn_c_try_run "$LINENO"; then :
30970   gl_cv_func_fdopendir_works=yes
30971 else
30972   gl_cv_func_fdopendir_works=no
30973 fi
30974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30975   conftest.$ac_objext conftest.beam conftest.$ac_ext
30976 fi
30977
30978 fi
30979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
30980 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
30981     case "$gl_cv_func_fdopendir_works" in
30982       *yes) ;;
30983       *)
30984         REPLACE_FDOPENDIR=1
30985         ;;
30986     esac
30987   fi
30988
30989   if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
30990
30991
30992
30993
30994
30995
30996
30997
30998   gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
30999
31000   fi
31001
31002
31003
31004
31005
31006           GNULIB_FDOPENDIR=1
31007
31008
31009
31010
31011
31012 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
31013
31014
31015
31016
31017
31018 cat >>confdefs.h <<_ACEOF
31019 #define GNULIB_FDOPENDIR 1
31020 _ACEOF
31021
31022
31023
31024
31025   :
31026
31027
31028
31029
31030
31031
31032
31033
31034
31035   FLOAT_H=
31036   REPLACE_FLOAT_LDBL=0
31037   case "$host_os" in
31038     aix* | beos* | openbsd* | mirbsd* | irix*)
31039       FLOAT_H=float.h
31040       ;;
31041     freebsd*)
31042       case "$host_cpu" in
31043         i[34567]86 )
31044           FLOAT_H=float.h
31045           ;;
31046         x86_64 )
31047           # On x86_64 systems, the C compiler may still be generating
31048           # 32-bit code.
31049           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31050 /* end confdefs.h.  */
31051 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
31052              yes
31053              #endif
31054 _ACEOF
31055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31056   $EGREP "yes" >/dev/null 2>&1; then :
31057
31058 else
31059   FLOAT_H=float.h
31060 fi
31061 rm -f conftest*
31062
31063           ;;
31064       esac
31065       ;;
31066     linux*)
31067       case "$host_cpu" in
31068         powerpc*)
31069           FLOAT_H=float.h
31070           ;;
31071       esac
31072       ;;
31073   esac
31074   case "$host_os" in
31075     aix* | freebsd* | linux*)
31076       if test -n "$FLOAT_H"; then
31077         REPLACE_FLOAT_LDBL=1
31078       fi
31079       ;;
31080   esac
31081
31082     REPLACE_ITOLD=0
31083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
31084 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
31085 if ${gl_cv_func_itold_works+:} false; then :
31086   $as_echo_n "(cached) " >&6
31087 else
31088
31089       if test "$cross_compiling" = yes; then :
31090   case "$host" in
31091            sparc*-*-linux*)
31092              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31093 /* end confdefs.h.  */
31094 #if defined __LP64__ || defined __arch64__
31095                 yes
31096                 #endif
31097 _ACEOF
31098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31099   $EGREP "yes" >/dev/null 2>&1; then :
31100   gl_cv_func_itold_works="guessing no"
31101 else
31102   gl_cv_func_itold_works="guessing yes"
31103 fi
31104 rm -f conftest*
31105
31106              ;;
31107            *) gl_cv_func_itold_works="guessing yes" ;;
31108          esac
31109
31110 else
31111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31112 /* end confdefs.h.  */
31113
31114 int i = -1;
31115 volatile long double ld;
31116 int main ()
31117 {
31118   ld += i * 1.0L;
31119   if (ld > 0)
31120     return 1;
31121   return 0;
31122 }
31123 _ACEOF
31124 if ac_fn_c_try_run "$LINENO"; then :
31125   gl_cv_func_itold_works=yes
31126 else
31127   gl_cv_func_itold_works=no
31128 fi
31129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31130   conftest.$ac_objext conftest.beam conftest.$ac_ext
31131 fi
31132
31133
31134 fi
31135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
31136 $as_echo "$gl_cv_func_itold_works" >&6; }
31137   case "$gl_cv_func_itold_works" in
31138     *no)
31139       REPLACE_ITOLD=1
31140                   FLOAT_H=float.h
31141       ;;
31142   esac
31143
31144   if test -n "$FLOAT_H"; then
31145
31146
31147
31148
31149
31150
31151
31152
31153      if test $gl_cv_have_include_next = yes; then
31154        gl_cv_next_float_h='<'float.h'>'
31155      else
31156        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
31157 $as_echo_n "checking absolute name of <float.h>... " >&6; }
31158 if ${gl_cv_next_float_h+:} false; then :
31159   $as_echo_n "(cached) " >&6
31160 else
31161
31162
31163
31164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31165 /* end confdefs.h.  */
31166 #include <float.h>
31167 _ACEOF
31168                 case "$host_os" in
31169     aix*) gl_absname_cpp="$ac_cpp -C" ;;
31170     *)    gl_absname_cpp="$ac_cpp" ;;
31171   esac
31172
31173   case "$host_os" in
31174     mingw*)
31175                                           gl_dirsep_regex='[/\\]'
31176       ;;
31177     *)
31178       gl_dirsep_regex='\/'
31179       ;;
31180   esac
31181       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31182   gl_header_literal_regex=`echo 'float.h' \
31183                            | sed -e "$gl_make_literal_regex_sed"`
31184   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31185       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31186       s|^/[^/]|//&|
31187       p
31188       q
31189     }'
31190
31191         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31192   sed -n "$gl_absolute_header_sed"`
31193
31194            gl_header=$gl_cv_absolute_float_h
31195            gl_cv_next_float_h='"'$gl_header'"'
31196
31197
31198 fi
31199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
31200 $as_echo "$gl_cv_next_float_h" >&6; }
31201      fi
31202      NEXT_FLOAT_H=$gl_cv_next_float_h
31203
31204      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31205        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31206        gl_next_as_first_directive='<'float.h'>'
31207      else
31208        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31209        gl_next_as_first_directive=$gl_cv_next_float_h
31210      fi
31211      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
31212
31213
31214
31215
31216   fi
31217
31218    if test -n "$FLOAT_H"; then
31219   GL_GENERATE_FLOAT_H_TRUE=
31220   GL_GENERATE_FLOAT_H_FALSE='#'
31221 else
31222   GL_GENERATE_FLOAT_H_TRUE='#'
31223   GL_GENERATE_FLOAT_H_FALSE=
31224 fi
31225
31226
31227
31228   if test $REPLACE_FLOAT_LDBL = 1; then
31229
31230
31231
31232
31233
31234
31235
31236
31237   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
31238
31239   fi
31240   if test $REPLACE_ITOLD = 1; then
31241
31242
31243
31244
31245
31246
31247
31248
31249   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
31250
31251   fi
31252
31253
31254
31255   :
31256
31257
31258
31259
31260
31261   if test $ac_cv_func_flock = no; then
31262     HAVE_FLOCK=0
31263   fi
31264
31265   if test $HAVE_FLOCK = 0; then
31266
31267
31268
31269
31270
31271
31272
31273
31274   gl_LIBOBJS="$gl_LIBOBJS flock.$ac_objext"
31275
31276
31277
31278   :
31279
31280
31281
31282
31283
31284
31285   :
31286
31287
31288
31289
31290
31291
31292     ac_fn_c_check_member "$LINENO" "struct flock" "l_type" "ac_cv_member_struct_flock_l_type" "#include <fcntl.h>
31293 "
31294 if test "x$ac_cv_member_struct_flock_l_type" = xyes; then :
31295
31296 cat >>confdefs.h <<_ACEOF
31297 #define HAVE_STRUCT_FLOCK_L_TYPE 1
31298 _ACEOF
31299
31300
31301 fi
31302
31303
31304   fi
31305
31306
31307
31308
31309
31310           GNULIB_FLOCK=1
31311
31312
31313
31314
31315
31316
31317
31318
31319
31320   FNMATCH_H=
31321   gl_fnmatch_required_lowercase=`
31322     echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
31323   `
31324   gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
31325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
31326 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
31327 if eval \${$gl_fnmatch_cache_var+:} false; then :
31328   $as_echo_n "(cached) " >&6
31329 else
31330                            if test $gl_fnmatch_required = GNU; then
31331        gl_fnmatch_gnu_start=
31332        gl_fnmatch_gnu_end=
31333      else
31334        gl_fnmatch_gnu_start='#if 0'
31335        gl_fnmatch_gnu_end='#endif'
31336      fi
31337      if test "$cross_compiling" = yes; then :
31338   eval "$gl_fnmatch_cache_var=\"guessing no\""
31339 else
31340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31341 /* end confdefs.h.  */
31342 #include <fnmatch.h>
31343             static int
31344             y (char const *pattern, char const *string, int flags)
31345             {
31346               return fnmatch (pattern, string, flags) == 0;
31347             }
31348             static int
31349             n (char const *pattern, char const *string, int flags)
31350             {
31351               return fnmatch (pattern, string, flags) == FNM_NOMATCH;
31352             }
31353
31354 int
31355 main ()
31356 {
31357 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
31358             char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
31359             static char const A_1[] = { 'A' - 1, 0 };
31360             static char const A01[] = { 'A' + 1, 0 };
31361             static char const a_1[] = { 'a' - 1, 0 };
31362             static char const a01[] = { 'a' + 1, 0 };
31363             static char const bs_1[] = { '\\\\' - 1, 0 };
31364             static char const bs01[] = { '\\\\' + 1, 0 };
31365             int result = 0;
31366             if (!n ("a*", "", 0))
31367               return 1;
31368             if (!y ("a*", "abc", 0))
31369               return 1;
31370             if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
31371               return 1;
31372             if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
31373               return 2;
31374             if (!y ("a\\\\bc", "abc", 0))
31375               return 3;
31376             if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
31377               return 3;
31378             if (!y ("*x", ".x", 0))
31379               return 4;
31380             if (!n ("*x", ".x", FNM_PERIOD))
31381               return 4;
31382             if (!y (Apat, "\\\\", 0))
31383               return 5;
31384             if (!y (Apat, "A", 0))
31385               return 5;
31386             if (!y (apat, "\\\\", 0))
31387               return 5;
31388             if (!y (apat, "a", 0))
31389               return 5;
31390             if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
31391               return 5;
31392             if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
31393               return 5;
31394             if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
31395               return 5;
31396             if (!(y (apat, a01, 0) == ('a' < '\\\\')))
31397               return 5;
31398             if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
31399               return 5;
31400             if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
31401               return 5;
31402             if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
31403               return 5;
31404             if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
31405               return 5;
31406             $gl_fnmatch_gnu_start
31407             if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
31408               result |= 8;
31409             if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
31410               result |= 16;
31411             if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
31412               result |= 32;
31413             if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
31414               result |= 64;
31415             if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
31416               result |= 64;
31417             if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
31418               result |= 64;
31419             $gl_fnmatch_gnu_end
31420             return result;
31421
31422   ;
31423   return 0;
31424 }
31425 _ACEOF
31426 if ac_fn_c_try_run "$LINENO"; then :
31427   eval "$gl_fnmatch_cache_var=yes"
31428 else
31429   eval "$gl_fnmatch_cache_var=no"
31430 fi
31431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31432   conftest.$ac_objext conftest.beam conftest.$ac_ext
31433 fi
31434
31435
31436 fi
31437 eval ac_res=\$$gl_fnmatch_cache_var
31438                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31439 $as_echo "$ac_res" >&6; }
31440   eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
31441   if test "$gl_fnmatch_result" = yes; then
31442             rm -f "$gl_source_base/fnmatch.h"
31443   else
31444     FNMATCH_H=fnmatch.h
31445   fi
31446
31447    if test -n "$FNMATCH_H"; then
31448   GL_GENERATE_FNMATCH_H_TRUE=
31449   GL_GENERATE_FNMATCH_H_FALSE='#'
31450 else
31451   GL_GENERATE_FNMATCH_H_TRUE='#'
31452   GL_GENERATE_FNMATCH_H_FALSE=
31453 fi
31454
31455
31456   if test -n "$FNMATCH_H"; then
31457
31458
31459
31460
31461
31462
31463
31464
31465   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
31466
31467
31468
31469 cat >>confdefs.h <<_ACEOF
31470 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
31471 _ACEOF
31472
31473
31474   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
31475 "
31476 if test "x$ac_cv_have_decl_isblank" = xyes; then :
31477   ac_have_decl=1
31478 else
31479   ac_have_decl=0
31480 fi
31481
31482 cat >>confdefs.h <<_ACEOF
31483 #define HAVE_DECL_ISBLANK $ac_have_decl
31484 _ACEOF
31485
31486
31487   :
31488
31489
31490
31491
31492
31493
31494
31495
31496
31497
31498
31499
31500
31501
31502
31503
31504
31505
31506
31507
31508
31509
31510
31511
31512
31513
31514
31515   :
31516
31517
31518
31519
31520
31521
31522   fi
31523
31524
31525
31526
31527
31528   if test -n "$FNMATCH_H"; then
31529
31530
31531
31532
31533
31534
31535
31536
31537   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
31538
31539
31540
31541 cat >>confdefs.h <<_ACEOF
31542 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
31543 _ACEOF
31544
31545
31546   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
31547 "
31548 if test "x$ac_cv_have_decl_isblank" = xyes; then :
31549   ac_have_decl=1
31550 else
31551   ac_have_decl=0
31552 fi
31553
31554 cat >>confdefs.h <<_ACEOF
31555 #define HAVE_DECL_ISBLANK $ac_have_decl
31556 _ACEOF
31557
31558
31559   :
31560
31561
31562
31563
31564
31565
31566
31567
31568
31569
31570
31571
31572
31573
31574
31575
31576
31577
31578
31579
31580
31581
31582
31583
31584
31585
31586
31587   :
31588
31589
31590
31591
31592
31593
31594   fi
31595
31596
31597
31598
31599   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
31600     REPLACE_FSTAT=1
31601   fi
31602
31603
31604   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
31605     REPLACE_FSTAT=1
31606   fi
31607
31608
31609
31610
31611
31612   :
31613
31614
31615
31616
31617
31618   if test $ac_cv_func_fchdir = no; then
31619     HAVE_FCHDIR=0
31620   fi
31621
31622     if test $HAVE_FCHDIR = 0; then
31623       case "$gl_cv_func_open_directory_works" in
31624         *yes) ;;
31625         *)
31626           REPLACE_FSTAT=1
31627           ;;
31628       esac
31629     fi
31630
31631
31632   if test $REPLACE_FSTAT = 1; then
31633
31634
31635
31636
31637
31638
31639
31640
31641   gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
31642
31643     :
31644   fi
31645
31646
31647
31648
31649
31650           GNULIB_FSTAT=1
31651
31652
31653
31654
31655
31656 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
31657
31658
31659
31660
31661
31662
31663
31664
31665   :
31666
31667
31668
31669
31670
31671
31672   if test $ac_cv_func_fstatat = no; then
31673     HAVE_FSTATAT=0
31674   else
31675             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
31676 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
31677 if ${gl_cv_func_fstatat_zero_flag+:} false; then :
31678   $as_echo_n "(cached) " >&6
31679 else
31680   if test "$cross_compiling" = yes; then :
31681   case "$host_os" in
31682             aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
31683             *)    gl_cv_func_fstatat_zero_flag="guessing yes";;
31684           esac
31685
31686 else
31687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31688 /* end confdefs.h.  */
31689
31690               #include <fcntl.h>
31691               #include <sys/stat.h>
31692               int
31693               main (void)
31694               {
31695                 struct stat a;
31696                 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
31697               }
31698
31699 _ACEOF
31700 if ac_fn_c_try_run "$LINENO"; then :
31701   gl_cv_func_fstatat_zero_flag=yes
31702 else
31703   gl_cv_func_fstatat_zero_flag=no
31704 fi
31705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31706   conftest.$ac_objext conftest.beam conftest.$ac_ext
31707 fi
31708
31709
31710 fi
31711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
31712 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
31713
31714     case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
31715     *yes+*yes) ;;
31716     *) REPLACE_FSTATAT=1
31717        case $gl_cv_func_fstatat_zero_flag in
31718        *yes)
31719
31720 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
31721
31722          ;;
31723        esac
31724        ;;
31725     esac
31726   fi
31727
31728   if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
31729
31730
31731
31732
31733
31734
31735
31736
31737   gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
31738
31739   fi
31740
31741
31742
31743
31744
31745           GNULIB_FSTATAT=1
31746
31747
31748
31749
31750
31751 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
31752
31753
31754
31755
31756
31757
31758
31759   :
31760
31761
31762
31763
31764
31765   if test $ac_cv_func_futimens = no; then
31766     HAVE_FUTIMENS=0
31767   else
31768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimens works" >&5
31769 $as_echo_n "checking whether futimens works... " >&6; }
31770 if ${gl_cv_func_futimens_works+:} false; then :
31771   $as_echo_n "(cached) " >&6
31772 else
31773   if test "$cross_compiling" = yes; then :
31774   gl_cv_func_futimens_works="guessing no"
31775 else
31776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31777 /* end confdefs.h.  */
31778
31779 #include <fcntl.h>
31780 #include <sys/stat.h>
31781 #include <unistd.h>
31782 #include <errno.h>
31783
31784 int
31785 main ()
31786 {
31787 struct timespec ts[2] = { { 1, UTIME_OMIT }, { 1, UTIME_NOW } };
31788       int fd = creat ("conftest.file", 0600);
31789       struct stat st;
31790       if (fd < 0) return 1;
31791       errno = 0;
31792       if (futimens (AT_FDCWD, NULL) == 0) return 2;
31793       if (errno != EBADF) return 3;
31794       if (futimens (fd, ts)) return 4;
31795       sleep (1);
31796       ts[0].tv_nsec = UTIME_NOW;
31797       ts[1].tv_nsec = UTIME_OMIT;
31798       if (futimens (fd, ts)) return 5;
31799       if (fstat (fd, &st)) return 6;
31800       if (st.st_ctime < st.st_atime) return 7;
31801
31802   ;
31803   return 0;
31804 }
31805 _ACEOF
31806 if ac_fn_c_try_run "$LINENO"; then :
31807            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31808 /* end confdefs.h.  */
31809
31810 #ifdef __linux__
31811 /* The Linux kernel added futimens in 2.6.22, but has bugs with UTIME_OMIT
31812    in several file systems as recently as 2.6.32.  Always replace futimens
31813    to support older kernels.  */
31814 choke me
31815 #endif
31816
31817 int
31818 main ()
31819 {
31820
31821   ;
31822   return 0;
31823 }
31824 _ACEOF
31825 if ac_fn_c_try_compile "$LINENO"; then :
31826   gl_cv_func_futimens_works=yes
31827 else
31828   gl_cv_func_futimens_works="needs runtime check"
31829 fi
31830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31831 else
31832   gl_cv_func_futimens_works=no
31833 fi
31834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31835   conftest.$ac_objext conftest.beam conftest.$ac_ext
31836 fi
31837
31838       rm -f conftest.file
31839 fi
31840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimens_works" >&5
31841 $as_echo "$gl_cv_func_futimens_works" >&6; }
31842     if test "$gl_cv_func_futimens_works" != yes; then
31843       REPLACE_FUTIMENS=1
31844     fi
31845   fi
31846
31847   if test $HAVE_FUTIMENS = 0 || test $REPLACE_FUTIMENS = 1; then
31848
31849
31850
31851
31852
31853
31854
31855
31856   gl_LIBOBJS="$gl_LIBOBJS futimens.$ac_objext"
31857
31858   fi
31859
31860
31861
31862
31863
31864           GNULIB_FUTIMENS=1
31865
31866
31867
31868
31869
31870 $as_echo "#define GNULIB_TEST_FUTIMENS 1" >>confdefs.h
31871
31872
31873
31874
31875
31876
31877
31878
31879   gl_abort_bug=no
31880   case "$host_os" in
31881     mingw*)
31882       gl_cv_func_getcwd_path_max=yes
31883       ;;
31884     *)
31885
31886
31887   :
31888
31889
31890
31891
31892
31893
31894
31895   :
31896
31897
31898
31899
31900
31901
31902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
31903 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
31904 if ${gl_cv_func_getcwd_path_max+:} false; then :
31905   $as_echo_n "(cached) " >&6
31906 else
31907   # Arrange for deletion of the temporary directory this test creates.
31908      ac_clean_files="$ac_clean_files confdir3"
31909           if test "$cross_compiling" = yes; then :
31910   case "$host_os" in
31911        aix*) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
31912        *) gl_cv_func_getcwd_path_max=no;;
31913      esac
31914 else
31915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31916 /* end confdefs.h.  */
31917
31918 #include <errno.h>
31919 #include <stdlib.h>
31920 #if HAVE_UNISTD_H
31921 # include <unistd.h>
31922 #else
31923 # include <direct.h>
31924 #endif
31925 #include <string.h>
31926 #include <limits.h>
31927 #include <sys/stat.h>
31928 #include <sys/types.h>
31929 #include <fcntl.h>
31930
31931
31932 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
31933 #if HAVE_UNISTD_H
31934 # include <unistd.h>
31935 #endif
31936 #include <limits.h>
31937 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
31938 # include <sys/param.h>
31939 #endif
31940 #if !defined PATH_MAX && defined MAXPATHLEN
31941 # define PATH_MAX MAXPATHLEN
31942 #endif
31943 #ifdef __hpux
31944 # undef PATH_MAX
31945 # define PATH_MAX 1024
31946 #endif
31947 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
31948 # undef PATH_MAX
31949 # define PATH_MAX 260
31950 #endif
31951
31952
31953 #ifndef AT_FDCWD
31954 # define AT_FDCWD 0
31955 #endif
31956 #ifdef ENAMETOOLONG
31957 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
31958 #else
31959 # define is_ENAMETOOLONG(x) 0
31960 #endif
31961
31962 /* Use the getcwd function, not any macro.  */
31963 #undef getcwd
31964
31965 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
31966 #undef mkdir
31967
31968 #ifndef S_IRWXU
31969 # define S_IRWXU 0700
31970 #endif
31971
31972 /* The length of this name must be 8.  */
31973 #define DIR_NAME "confdir3"
31974 #define DIR_NAME_LEN 8
31975 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
31976
31977 /* The length of "../".  */
31978 #define DOTDOTSLASH_LEN 3
31979
31980 /* Leftover bytes in the buffer, to work around library or OS bugs.  */
31981 #define BUF_SLOP 20
31982
31983 int
31984 main ()
31985 {
31986 #ifndef PATH_MAX
31987   /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
31988      at least not on a local file system.  And if we were to start worrying
31989      about remote file systems, we'd have to enable the wrapper function
31990      all of the time, just to be safe.  That's not worth the cost.  */
31991   exit (0);
31992 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
31993         - DIR_NAME_SIZE - BUF_SLOP) \
31994        <= PATH_MAX)
31995   /* FIXME: Assuming there's a system for which this is true,
31996      this should be done in a compile test.  */
31997   exit (0);
31998 #else
31999   char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
32000            + DIR_NAME_SIZE + BUF_SLOP];
32001   char *cwd = getcwd (buf, PATH_MAX);
32002   size_t initial_cwd_len;
32003   size_t cwd_len;
32004   int fail = 0;
32005   size_t n_chdirs = 0;
32006
32007   if (cwd == NULL)
32008     exit (10);
32009
32010   cwd_len = initial_cwd_len = strlen (cwd);
32011
32012   while (1)
32013     {
32014       size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
32015       char *c = NULL;
32016
32017       cwd_len += DIR_NAME_SIZE;
32018       /* If mkdir or chdir fails, it could be that this system cannot create
32019          any file with an absolute name longer than PATH_MAX, such as cygwin.
32020          If so, leave fail as 0, because the current working directory can't
32021          be too long for getcwd if it can't even be created.  For other
32022          errors, be pessimistic and consider that as a failure, too.  */
32023       if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
32024         {
32025           if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
32026             fail = 20;
32027           break;
32028         }
32029
32030       if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
32031         {
32032           c = getcwd (buf, PATH_MAX);
32033           if (!c && errno == ENOENT)
32034             {
32035               fail = 11;
32036               break;
32037             }
32038           if (c)
32039             {
32040               fail = 31;
32041               break;
32042             }
32043           if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
32044             {
32045               fail = 21;
32046               break;
32047             }
32048         }
32049
32050       if (dotdot_max <= cwd_len - initial_cwd_len)
32051         {
32052           if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
32053             break;
32054           c = getcwd (buf, cwd_len + 1);
32055           if (!c)
32056             {
32057               if (! (errno == ERANGE || errno == ENOENT
32058                      || is_ENAMETOOLONG (errno)))
32059                 {
32060                   fail = 22;
32061                   break;
32062                 }
32063               if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
32064                 {
32065                   fail = 12;
32066                   break;
32067                 }
32068             }
32069         }
32070
32071       if (c && strlen (c) != cwd_len)
32072         {
32073           fail = 23;
32074           break;
32075         }
32076       ++n_chdirs;
32077     }
32078
32079   /* Leaving behind such a deep directory is not polite.
32080      So clean up here, right away, even though the driving
32081      shell script would also clean up.  */
32082   {
32083     size_t i;
32084
32085     /* Try rmdir first, in case the chdir failed.  */
32086     rmdir (DIR_NAME);
32087     for (i = 0; i <= n_chdirs; i++)
32088       {
32089         if (chdir ("..") < 0)
32090           break;
32091         if (rmdir (DIR_NAME) != 0)
32092           break;
32093       }
32094   }
32095
32096   exit (fail);
32097 #endif
32098 }
32099
32100 _ACEOF
32101 if ac_fn_c_try_run "$LINENO"; then :
32102   gl_cv_func_getcwd_path_max=yes
32103 else
32104   case $? in
32105      10|11|12) gl_cv_func_getcwd_path_max='no, but it is partly working';;
32106      31) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
32107      *) gl_cv_func_getcwd_path_max=no;;
32108      esac
32109 fi
32110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32111   conftest.$ac_objext conftest.beam conftest.$ac_ext
32112 fi
32113
32114
32115 fi
32116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
32117 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
32118
32119       case "$gl_cv_func_getcwd_null" in
32120         *yes)
32121
32122
32123   :
32124
32125
32126
32127
32128
32129
32130   :
32131
32132
32133
32134
32135
32136
32137   for ac_func in getpagesize
32138 do :
32139   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
32140 if test "x$ac_cv_func_getpagesize" = xyes; then :
32141   cat >>confdefs.h <<_ACEOF
32142 #define HAVE_GETPAGESIZE 1
32143 _ACEOF
32144
32145 fi
32146 done
32147
32148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
32149 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
32150 if ${gl_cv_func_getcwd_abort_bug+:} false; then :
32151   $as_echo_n "(cached) " >&6
32152 else
32153   # Remove any remnants of a previous test.
32154      rm -rf confdir-14B---
32155      # Arrange for deletion of the temporary directory this test creates.
32156      ac_clean_files="$ac_clean_files confdir-14B---"
32157           if test "$cross_compiling" = yes; then :
32158   gl_cv_func_getcwd_abort_bug=yes
32159 else
32160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32161 /* end confdefs.h.  */
32162
32163 #include <errno.h>
32164 #include <stdlib.h>
32165 #if HAVE_UNISTD_H
32166 # include <unistd.h>
32167 #else /* on Windows with MSVC */
32168 # include <direct.h>
32169 #endif
32170 #include <string.h>
32171 #include <sys/stat.h>
32172
32173
32174 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
32175 #if HAVE_UNISTD_H
32176 # include <unistd.h>
32177 #endif
32178 #include <limits.h>
32179 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
32180 # include <sys/param.h>
32181 #endif
32182 #if !defined PATH_MAX && defined MAXPATHLEN
32183 # define PATH_MAX MAXPATHLEN
32184 #endif
32185 #ifdef __hpux
32186 # undef PATH_MAX
32187 # define PATH_MAX 1024
32188 #endif
32189 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
32190 # undef PATH_MAX
32191 # define PATH_MAX 260
32192 #endif
32193
32194
32195 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
32196 #undef mkdir
32197
32198 #ifndef S_IRWXU
32199 # define S_IRWXU 0700
32200 #endif
32201
32202 /* FIXME: skip the run-test altogether on systems without getpagesize.  */
32203 #if ! HAVE_GETPAGESIZE
32204 # define getpagesize() 0
32205 #endif
32206
32207 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
32208    the 16kB pagesize on ia64 linux.  Those conditions make the code below
32209    trigger a bug in glibc's getcwd implementation before 2.4.90-10.  */
32210 #define TARGET_LEN (5 * 1024)
32211
32212 int
32213 main ()
32214 {
32215   char *cwd;
32216   size_t initial_cwd_len;
32217   int fail = 0;
32218
32219   /* The bug is triggered when PATH_MAX < getpagesize (), so skip
32220      this relatively expensive and invasive test if that's not true.  */
32221 #ifdef PATH_MAX
32222   int bug_possible = PATH_MAX < getpagesize ();
32223 #else
32224   int bug_possible = 0;
32225 #endif
32226   if (! bug_possible)
32227     return 0;
32228
32229   cwd = getcwd (NULL, 0);
32230   if (cwd == NULL)
32231     return 2;
32232
32233   initial_cwd_len = strlen (cwd);
32234   free (cwd);
32235
32236   if (1)
32237     {
32238       static char const dir_name[] = "confdir-14B---";
32239       size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
32240                               / sizeof dir_name);
32241       size_t d;
32242       for (d = 0; d < desired_depth; d++)
32243         {
32244           if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
32245             {
32246               if (! (errno == ERANGE || errno == ENAMETOOLONG
32247                      || errno == ENOENT))
32248                 fail = 3; /* Unable to construct deep hierarchy.  */
32249               break;
32250             }
32251         }
32252
32253       /* If libc has the bug in question, this invocation of getcwd
32254          results in a failed assertion.  */
32255       cwd = getcwd (NULL, 0);
32256       if (cwd == NULL)
32257         fail = 4; /* getcwd didn't assert, but it failed for a long name
32258                      where the answer could have been learned.  */
32259       free (cwd);
32260
32261       /* Call rmdir first, in case the above chdir failed.  */
32262       rmdir (dir_name);
32263       while (0 < d--)
32264         {
32265           if (chdir ("..") < 0)
32266             {
32267               fail = 5;
32268               break;
32269             }
32270           rmdir (dir_name);
32271         }
32272     }
32273
32274   return fail;
32275 }
32276
32277 _ACEOF
32278 if ac_fn_c_try_run "$LINENO"; then :
32279   gl_cv_func_getcwd_abort_bug=no
32280 else
32281                                 ret=$?
32282      if test $ret -ge 128 || test $ret = 4; then
32283        gl_cv_func_getcwd_abort_bug=yes
32284      else
32285        gl_cv_func_getcwd_abort_bug=no
32286      fi
32287 fi
32288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32289   conftest.$ac_objext conftest.beam conftest.$ac_ext
32290 fi
32291
32292
32293 fi
32294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
32295 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
32296   if test $gl_cv_func_getcwd_abort_bug = yes; then :
32297   gl_abort_bug=yes
32298 fi
32299
32300           ;;
32301       esac
32302       ;;
32303   esac
32304       case "$gl_cv_func_getcwd_path_max" in
32305     "no"|"no, it has the AIX bug") ;;
32306     *)
32307
32308 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
32309
32310       ;;
32311   esac
32312   case "$gl_cv_func_getcwd_path_max" in
32313     "no, but it is partly working")
32314
32315 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
32316
32317       ;;
32318   esac
32319
32320   if { case "$gl_cv_func_getcwd_null" in *yes) false;; *) true;; esac; } \
32321      || test $gl_cv_func_getcwd_posix_signature != yes \
32322      || test "$gl_cv_func_getcwd_path_max" != yes \
32323      || test $gl_abort_bug = yes; then
32324     REPLACE_GETCWD=1
32325   fi
32326
32327   if test $REPLACE_GETCWD = 1; then
32328
32329
32330
32331
32332
32333
32334
32335
32336   gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
32337
32338
32339
32340
32341   :
32342
32343   fi
32344
32345
32346 cat >>confdefs.h <<_ACEOF
32347 #define GNULIB_GETCWD 1
32348 _ACEOF
32349
32350
32351
32352
32353
32354
32355
32356           GNULIB_GETCWD=1
32357
32358
32359
32360
32361
32362 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
32363
32364
32365
32366
32367
32368
32369
32370
32371   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
32372   *yes,yes) ;;
32373   *)
32374         REPLACE_GETCWD=1
32375     ;;
32376   esac
32377
32378   if test $REPLACE_GETCWD = 1; then
32379
32380
32381
32382
32383
32384
32385
32386
32387   gl_LIBOBJS="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
32388
32389   fi
32390
32391
32392
32393
32394
32395           GNULIB_GETCWD=1
32396
32397
32398
32399
32400
32401 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
32402
32403
32404
32405
32406
32407
32408
32409
32410
32411   :
32412
32413
32414
32415
32416
32417
32418
32419   :
32420
32421
32422
32423
32424
32425   if test $ac_cv_func_getdelim = yes; then
32426     HAVE_GETDELIM=1
32427         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
32428 $as_echo_n "checking for working getdelim function... " >&6; }
32429 if ${gl_cv_func_working_getdelim+:} false; then :
32430   $as_echo_n "(cached) " >&6
32431 else
32432   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
32433     if test "$cross_compiling" = yes; then :
32434         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32435 /* end confdefs.h.  */
32436
32437 #include <features.h>
32438 #ifdef __GNU_LIBRARY__
32439  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
32440   Lucky GNU user
32441  #endif
32442 #endif
32443
32444 _ACEOF
32445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32446   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
32447   gl_cv_func_working_getdelim="guessing yes"
32448 else
32449   gl_cv_func_working_getdelim="guessing no"
32450 fi
32451 rm -f conftest*
32452
32453
32454 else
32455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32456 /* end confdefs.h.  */
32457
32458 #    include <stdio.h>
32459 #    include <stdlib.h>
32460 #    include <string.h>
32461     int main ()
32462     {
32463       FILE *in = fopen ("./conftest.data", "r");
32464       if (!in)
32465         return 1;
32466       {
32467         /* Test result for a NULL buffer and a zero size.
32468            Based on a test program from Karl Heuer.  */
32469         char *line = NULL;
32470         size_t siz = 0;
32471         int len = getdelim (&line, &siz, '\n', in);
32472         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
32473           return 2;
32474       }
32475       {
32476         /* Test result for a NULL buffer and a non-zero size.
32477            This crashes on FreeBSD 8.0.  */
32478         char *line = NULL;
32479         size_t siz = (size_t)(~0) / 4;
32480         if (getdelim (&line, &siz, '\n', in) == -1)
32481           return 3;
32482       }
32483       return 0;
32484     }
32485
32486 _ACEOF
32487 if ac_fn_c_try_run "$LINENO"; then :
32488   gl_cv_func_working_getdelim=yes
32489 else
32490   gl_cv_func_working_getdelim=no
32491 fi
32492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32493   conftest.$ac_objext conftest.beam conftest.$ac_ext
32494 fi
32495
32496 fi
32497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
32498 $as_echo "$gl_cv_func_working_getdelim" >&6; }
32499     case "$gl_cv_func_working_getdelim" in
32500       *no)
32501         REPLACE_GETDELIM=1
32502         ;;
32503     esac
32504   else
32505     HAVE_GETDELIM=0
32506   fi
32507
32508   if test $ac_cv_have_decl_getdelim = no; then
32509     HAVE_DECL_GETDELIM=0
32510   fi
32511
32512   if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
32513
32514
32515
32516
32517
32518
32519
32520
32521   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
32522
32523
32524   for ac_func in flockfile funlockfile
32525 do :
32526   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32527 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32528 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
32529   cat >>confdefs.h <<_ACEOF
32530 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32531 _ACEOF
32532
32533 fi
32534 done
32535
32536   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
32537 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
32538   ac_have_decl=1
32539 else
32540   ac_have_decl=0
32541 fi
32542
32543 cat >>confdefs.h <<_ACEOF
32544 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
32545 _ACEOF
32546
32547
32548   fi
32549
32550
32551
32552
32553
32554           GNULIB_GETDELIM=1
32555
32556
32557
32558
32559
32560 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
32561
32562
32563
32564
32565
32566
32567
32568   :
32569
32570
32571
32572
32573
32574   if test $ac_cv_func_getdtablesize = yes; then
32575     # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
32576     # up to an unchangeable hard limit; all other platforms correctly
32577     # require setrlimit before getdtablesize() can report a larger value.
32578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
32579 $as_echo_n "checking whether getdtablesize works... " >&6; }
32580 if ${gl_cv_func_getdtablesize_works+:} false; then :
32581   $as_echo_n "(cached) " >&6
32582 else
32583   if test "$cross_compiling" = yes; then :
32584   case "$host_os" in
32585           cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
32586             gl_cv_func_getdtablesize_works="guessing no" ;;
32587           *) gl_cv_func_getdtablesize_works="guessing yes" ;;
32588          esac
32589 else
32590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32591 /* end confdefs.h.  */
32592
32593         #include <unistd.h>
32594 int
32595 main ()
32596 {
32597 int size = getdtablesize();
32598            if (dup2 (0, getdtablesize()) != -1)
32599              return 1;
32600            if (size != getdtablesize())
32601              return 2;
32602
32603   ;
32604   return 0;
32605 }
32606 _ACEOF
32607 if ac_fn_c_try_run "$LINENO"; then :
32608   gl_cv_func_getdtablesize_works=yes
32609 else
32610   gl_cv_func_getdtablesize_works=no
32611 fi
32612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32613   conftest.$ac_objext conftest.beam conftest.$ac_ext
32614 fi
32615
32616
32617 fi
32618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
32619 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
32620     case "$gl_cv_func_getdtablesize_works" in
32621       *yes) ;;
32622       *) REPLACE_GETDTABLESIZE=1 ;;
32623     esac
32624   else
32625     HAVE_GETDTABLESIZE=0
32626   fi
32627
32628   if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
32629
32630
32631
32632
32633
32634
32635
32636
32637   gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
32638
32639     :
32640   fi
32641
32642
32643
32644
32645
32646           GNULIB_GETDTABLESIZE=1
32647
32648
32649
32650
32651
32652 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
32653
32654
32655
32656
32657
32658
32659
32660
32661
32662   :
32663
32664
32665
32666
32667
32668
32669   gl_getline_needs_run_time_check=no
32670   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
32671 if test "x$ac_cv_func_getline" = xyes; then :
32672                    gl_getline_needs_run_time_check=yes
32673 else
32674   am_cv_func_working_getline=no
32675 fi
32676
32677   if test $gl_getline_needs_run_time_check = yes; then
32678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
32679 $as_echo_n "checking for working getline function... " >&6; }
32680 if ${am_cv_func_working_getline+:} false; then :
32681   $as_echo_n "(cached) " >&6
32682 else
32683   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
32684     if test "$cross_compiling" = yes; then :
32685         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32686 /* end confdefs.h.  */
32687
32688 #include <features.h>
32689 #ifdef __GNU_LIBRARY__
32690  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
32691   Lucky GNU user
32692  #endif
32693 #endif
32694
32695 _ACEOF
32696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32697   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
32698   am_cv_func_working_getline="guessing yes"
32699 else
32700   am_cv_func_working_getline="guessing no"
32701 fi
32702 rm -f conftest*
32703
32704
32705 else
32706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32707 /* end confdefs.h.  */
32708
32709 #    include <stdio.h>
32710 #    include <stdlib.h>
32711 #    include <string.h>
32712     int main ()
32713     {
32714       FILE *in = fopen ("./conftest.data", "r");
32715       if (!in)
32716         return 1;
32717       {
32718         /* Test result for a NULL buffer and a zero size.
32719            Based on a test program from Karl Heuer.  */
32720         char *line = NULL;
32721         size_t siz = 0;
32722         int len = getline (&line, &siz, in);
32723         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
32724           return 2;
32725       }
32726       {
32727         /* Test result for a NULL buffer and a non-zero size.
32728            This crashes on FreeBSD 8.0.  */
32729         char *line = NULL;
32730         size_t siz = (size_t)(~0) / 4;
32731         if (getline (&line, &siz, in) == -1)
32732           return 3;
32733       }
32734       return 0;
32735     }
32736
32737 _ACEOF
32738 if ac_fn_c_try_run "$LINENO"; then :
32739   am_cv_func_working_getline=yes
32740 else
32741   am_cv_func_working_getline=no
32742 fi
32743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32744   conftest.$ac_objext conftest.beam conftest.$ac_ext
32745 fi
32746
32747 fi
32748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
32749 $as_echo "$am_cv_func_working_getline" >&6; }
32750   fi
32751
32752   if test $ac_cv_have_decl_getline = no; then
32753     HAVE_DECL_GETLINE=0
32754   fi
32755
32756   case "$am_cv_func_working_getline" in
32757     *no)
32758                         REPLACE_GETLINE=1
32759       ;;
32760   esac
32761
32762   if test $REPLACE_GETLINE = 1; then
32763
32764
32765
32766
32767
32768
32769
32770
32771   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
32772
32773
32774   :
32775
32776   fi
32777
32778
32779
32780
32781
32782           GNULIB_GETLINE=1
32783
32784
32785
32786
32787
32788 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
32789
32790
32791
32792
32793
32794
32795
32796
32797
32798   :
32799
32800
32801
32802
32803
32804   if test $ac_cv_have_decl_getlogin_r = no; then
32805     HAVE_DECL_GETLOGIN_R=0
32806   fi
32807
32808
32809   :
32810
32811
32812
32813
32814
32815   if test $ac_cv_func_getlogin_r = no; then
32816     HAVE_GETLOGIN_R=0
32817   else
32818     HAVE_GETLOGIN_R=1
32819
32820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
32821 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
32822 if ${gl_cv_func_getlogin_r_works+:} false; then :
32823   $as_echo_n "(cached) " >&6
32824 else
32825
32826                 case "$host_os" in
32827                 # Guess no on OSF/1.
32828           osf*) gl_cv_func_getlogin_r_works="guessing no" ;;
32829                 # Guess yes otherwise.
32830           *)    gl_cv_func_getlogin_r_works="guessing yes" ;;
32831         esac
32832         if test "$cross_compiling" = yes; then :
32833   :
32834 else
32835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32836 /* end confdefs.h.  */
32837
32838 #include <stddef.h>
32839 #include <unistd.h>
32840 #if !HAVE_DECL_GETLOGIN_R
32841 extern
32842 # ifdef __cplusplus
32843 "C"
32844 # endif
32845 int getlogin_r (char *, size_t);
32846 #endif
32847 int
32848 main (void)
32849 {
32850   int result = 0;
32851   char buf[100];
32852
32853   if (getlogin_r (buf, 0) == 0)
32854     result |= 16;
32855   if (getlogin_r (buf, 1) == 0)
32856     result |= 17;
32857   return result;
32858 }
32859 _ACEOF
32860 if ac_fn_c_try_run "$LINENO"; then :
32861   gl_cv_func_getlogin_r_works=yes
32862 else
32863   case $? in
32864              16 | 17) gl_cv_func_getlogin_r_works=no ;;
32865            esac
32866
32867 fi
32868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32869   conftest.$ac_objext conftest.beam conftest.$ac_ext
32870 fi
32871
32872
32873 fi
32874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
32875 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
32876     case "$gl_cv_func_getlogin_r_works" in
32877       *yes) ;;
32878       *) REPLACE_GETLOGIN_R=1 ;;
32879     esac
32880   fi
32881
32882   if test $HAVE_GETLOGIN_R = 0 || test $REPLACE_GETLOGIN_R = 1; then
32883
32884
32885
32886
32887
32888
32889
32890
32891   gl_LIBOBJS="$gl_LIBOBJS getlogin_r.$ac_objext"
32892
32893
32894
32895   :
32896
32897
32898
32899
32900
32901
32902   fi
32903
32904
32905
32906
32907
32908           GNULIB_GETLOGIN_R=1
32909
32910
32911
32912
32913
32914 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
32915
32916
32917
32918
32919
32920
32921
32922
32923   if test $REPLACE_GETOPT = 1; then
32924
32925
32926
32927
32928
32929
32930
32931
32932   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
32933
32934
32935
32936
32937
32938
32939
32940
32941
32942   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
32943
32944
32945
32946   :
32947
32948
32949
32950
32951
32952
32953         GNULIB_GL_UNISTD_H_GETOPT=1
32954   fi
32955
32956
32957
32958 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
32959
32960
32961
32962
32963
32964
32965
32966     REPLACE_GETOPT=1
32967
32968   if test $REPLACE_GETOPT = 1; then
32969
32970   GETOPT_H=getopt.h
32971
32972 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
32973
32974
32975
32976   fi
32977
32978   if test $REPLACE_GETOPT = 1; then
32979
32980
32981
32982
32983
32984
32985
32986
32987   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
32988
32989
32990
32991
32992
32993
32994
32995
32996
32997   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
32998
32999
33000
33001   :
33002
33003
33004
33005
33006
33007
33008         GNULIB_GL_UNISTD_H_GETOPT=1
33009   fi
33010
33011
33012
33013
33014
33015
33016
33017
33018   :
33019
33020
33021
33022
33023
33024
33025
33026
33027
33028
33029
33030
33031
33032
33033   :
33034
33035
33036
33037
33038
33039
33040   gl_gettimeofday_timezone=void
33041   if test $ac_cv_func_gettimeofday != yes; then
33042     HAVE_GETTIMEOFDAY=0
33043   else
33044
33045
33046
33047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
33048 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
33049 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
33050   $as_echo_n "(cached) " >&6
33051 else
33052   if test "$cross_compiling" = yes; then :
33053   # When cross-compiling:
33054       case "$host_os" in
33055                 # Guess all is fine on glibc systems.
33056         *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
33057                 # If we don't know, assume the worst.
33058         *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
33059       esac
33060
33061 else
33062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33063 /* end confdefs.h.  */
33064 #include <string.h>
33065           #include <sys/time.h>
33066           #include <time.h>
33067           #include <stdlib.h>
33068
33069 int
33070 main ()
33071 {
33072
33073           time_t t = 0;
33074           struct tm *lt;
33075           struct tm saved_lt;
33076           struct timeval tv;
33077           lt = localtime (&t);
33078           saved_lt = *lt;
33079           gettimeofday (&tv, NULL);
33080           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
33081
33082   ;
33083   return 0;
33084 }
33085 _ACEOF
33086 if ac_fn_c_try_run "$LINENO"; then :
33087   gl_cv_func_gettimeofday_clobber=no
33088 else
33089   gl_cv_func_gettimeofday_clobber=yes
33090 fi
33091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33092   conftest.$ac_objext conftest.beam conftest.$ac_ext
33093 fi
33094
33095 fi
33096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
33097 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
33098
33099  case "$gl_cv_func_gettimeofday_clobber" in
33100    *yes)
33101      REPLACE_GETTIMEOFDAY=1
33102
33103   REPLACE_GMTIME=1
33104   REPLACE_LOCALTIME=1
33105
33106
33107 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
33108
33109      ;;
33110  esac
33111
33112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
33113 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
33114 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
33115   $as_echo_n "(cached) " >&6
33116 else
33117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33118 /* end confdefs.h.  */
33119 #include <sys/time.h>
33120               struct timeval c;
33121               int gettimeofday (struct timeval *restrict, void *restrict);
33122
33123 int
33124 main ()
33125 {
33126 /* glibc uses struct timezone * rather than the POSIX void *
33127                  if _GNU_SOURCE is defined.  However, since the only portable
33128                  use of gettimeofday uses NULL as the second parameter, and
33129                  since the glibc definition is actually more typesafe, it is
33130                  not worth wrapping this to get a compliant signature.  */
33131               int (*f) (struct timeval *restrict, void *restrict)
33132                 = gettimeofday;
33133               int x = f (&c, 0);
33134               return !(x | c.tv_sec | c.tv_usec);
33135
33136   ;
33137   return 0;
33138 }
33139 _ACEOF
33140 if ac_fn_c_try_compile "$LINENO"; then :
33141   gl_cv_func_gettimeofday_posix_signature=yes
33142 else
33143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33144 /* end confdefs.h.  */
33145 #include <sys/time.h>
33146 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
33147
33148 int
33149 main ()
33150 {
33151
33152   ;
33153   return 0;
33154 }
33155 _ACEOF
33156 if ac_fn_c_try_compile "$LINENO"; then :
33157   gl_cv_func_gettimeofday_posix_signature=almost
33158 else
33159   gl_cv_func_gettimeofday_posix_signature=no
33160 fi
33161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33162 fi
33163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33164 fi
33165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
33166 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
33167     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
33168       gl_gettimeofday_timezone='struct timezone'
33169     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
33170       REPLACE_GETTIMEOFDAY=1
33171     fi
33172         if test $REPLACE_STRUCT_TIMEVAL = 1; then
33173       REPLACE_GETTIMEOFDAY=1
33174     fi
33175
33176   fi
33177
33178 cat >>confdefs.h <<_ACEOF
33179 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
33180 _ACEOF
33181
33182
33183   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
33184
33185
33186
33187
33188
33189
33190
33191
33192   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
33193
33194
33195   for ac_header in sys/timeb.h
33196 do :
33197   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
33198 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
33199   cat >>confdefs.h <<_ACEOF
33200 #define HAVE_SYS_TIMEB_H 1
33201 _ACEOF
33202
33203 fi
33204
33205 done
33206
33207   for ac_func in _ftime
33208 do :
33209   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
33210 if test "x$ac_cv_func__ftime" = xyes; then :
33211   cat >>confdefs.h <<_ACEOF
33212 #define HAVE__FTIME 1
33213 _ACEOF
33214
33215 fi
33216 done
33217
33218
33219   fi
33220
33221
33222
33223
33224
33225           GNULIB_GETTIMEOFDAY=1
33226
33227
33228
33229
33230
33231 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
33232
33233
33234
33235    GLOB_H=
33236   for ac_header in glob.h
33237 do :
33238   ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
33239 if test "x$ac_cv_header_glob_h" = xyes; then :
33240   cat >>confdefs.h <<_ACEOF
33241 #define HAVE_GLOB_H 1
33242 _ACEOF
33243
33244 else
33245   GLOB_H=glob.h
33246 fi
33247
33248 done
33249
33250
33251   if test -z "$GLOB_H"; then
33252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
33253 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
33254 if ${gl_cv_gnu_glob_interface_version_1+:} false; then :
33255   $as_echo_n "(cached) " >&6
33256 else
33257        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33258 /* end confdefs.h.  */
33259 #include <gnu-versions.h>
33260 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
33261 _ACEOF
33262 if ac_fn_c_try_compile "$LINENO"; then :
33263   gl_cv_gnu_glob_interface_version_1=yes
33264 else
33265   gl_cv_gnu_glob_interface_version_1=no
33266 fi
33267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33268 fi
33269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
33270 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
33271
33272     if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
33273       GLOB_H=glob.h
33274     fi
33275   fi
33276
33277   if test -z "$GLOB_H"; then
33278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
33279 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
33280 if ${gl_cv_glob_lists_symlinks+:} false; then :
33281   $as_echo_n "(cached) " >&6
33282 else
33283        if ln -s conf-doesntexist conf$$-globtest 2>/dev/null; then
33284         gl_cv_glob_lists_symlinks=maybe
33285       else
33286         # If we can't make a symlink, then we cannot test this issue.  Be
33287         # pessimistic about this.
33288         gl_cv_glob_lists_symlinks=no
33289       fi
33290
33291       if test $gl_cv_glob_lists_symlinks = maybe; then
33292         if test "$cross_compiling" = yes; then :
33293   gl_cv_glob_lists_symlinks=no
33294 else
33295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33296 /* end confdefs.h.  */
33297
33298 #include <stddef.h>
33299 #include <glob.h>
33300 int
33301 main ()
33302 {
33303 glob_t found;
33304 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
33305   ;
33306   return 0;
33307 }
33308 _ACEOF
33309 if ac_fn_c_try_run "$LINENO"; then :
33310   gl_cv_glob_lists_symlinks=yes
33311 else
33312   gl_cv_glob_lists_symlinks=no
33313 fi
33314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33315   conftest.$ac_objext conftest.beam conftest.$ac_ext
33316 fi
33317
33318       fi
33319 fi
33320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
33321 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
33322
33323     if test $gl_cv_glob_lists_symlinks = no; then
33324       GLOB_H=glob.h
33325     fi
33326   fi
33327
33328   rm -f conf$$-globtest
33329
33330
33331    if test -n "$GLOB_H"; then
33332   GL_GENERATE_GLOB_H_TRUE=
33333   GL_GENERATE_GLOB_H_FALSE='#'
33334 else
33335   GL_GENERATE_GLOB_H_TRUE='#'
33336   GL_GENERATE_GLOB_H_FALSE=
33337 fi
33338
33339
33340   if test -n "$GLOB_H"; then
33341
33342
33343
33344
33345
33346
33347
33348
33349   gl_LIBOBJS="$gl_LIBOBJS glob.$ac_objext"
33350
33351
33352
33353   :
33354
33355
33356
33357
33358
33359
33360
33361   if test $ac_cv_header_sys_cdefs_h = yes; then
33362     HAVE_SYS_CDEFS_H=1
33363   else
33364     HAVE_SYS_CDEFS_H=0
33365   fi
33366
33367
33368   :
33369
33370
33371
33372
33373
33374
33375
33376
33377
33378
33379
33380   fi
33381
33382
33383
33384
33385   :
33386
33387
33388
33389
33390
33391
33392
33393
33394
33395
33396
33397
33398
33399
33400
33401
33402
33403
33404
33405
33406
33407   :
33408
33409
33410
33411
33412
33413
33414
33415
33416
33417
33418
33419
33420
33421
33422
33423
33424
33425
33426
33427
33428
33429
33430
33431
33432
33433   :
33434
33435
33436
33437
33438
33439
33440
33441
33442
33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
33454
33455   :
33456
33457
33458
33459
33460
33461
33462
33463
33464
33465
33466
33467
33468
33469
33470
33471
33472
33473
33474
33475
33476
33477
33478
33479
33480   HAVE_IOCTL=1
33481   if test "$ac_cv_header_winsock2_h" = yes; then
33482                 HAVE_IOCTL=0
33483   else
33484     for ac_func in ioctl
33485 do :
33486   ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
33487 if test "x$ac_cv_func_ioctl" = xyes; then :
33488   cat >>confdefs.h <<_ACEOF
33489 #define HAVE_IOCTL 1
33490 _ACEOF
33491
33492 fi
33493 done
33494
33495                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl with POSIX signature" >&5
33496 $as_echo_n "checking for ioctl with POSIX signature... " >&6; }
33497 if ${gl_cv_func_ioctl_posix_signature+:} false; then :
33498   $as_echo_n "(cached) " >&6
33499 else
33500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33501 /* end confdefs.h.  */
33502 #include <sys/ioctl.h>
33503 int
33504 main ()
33505 {
33506 extern
33507               #ifdef __cplusplus
33508               "C"
33509               #endif
33510               int ioctl (int, int, ...);
33511
33512   ;
33513   return 0;
33514 }
33515
33516 _ACEOF
33517 if ac_fn_c_try_compile "$LINENO"; then :
33518   gl_cv_func_ioctl_posix_signature=yes
33519 else
33520   gl_cv_func_ioctl_posix_signature=no
33521 fi
33522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33523
33524 fi
33525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ioctl_posix_signature" >&5
33526 $as_echo "$gl_cv_func_ioctl_posix_signature" >&6; }
33527     if test $gl_cv_func_ioctl_posix_signature != yes; then
33528       REPLACE_IOCTL=1
33529     fi
33530   fi
33531
33532   if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then
33533
33534
33535
33536
33537
33538
33539
33540
33541   gl_LIBOBJS="$gl_LIBOBJS ioctl.$ac_objext"
33542
33543   fi
33544
33545
33546
33547
33548
33549           GNULIB_IOCTL=1
33550
33551
33552
33553
33554
33555 $as_echo "#define GNULIB_TEST_IOCTL 1" >>confdefs.h
33556
33557
33558
33559
33560
33561
33562
33563
33564
33565
33566
33567
33568
33569
33570   :
33571
33572
33573
33574
33575
33576
33577
33578
33579      if test $gl_cv_have_include_next = yes; then
33580        gl_cv_next_langinfo_h='<'langinfo.h'>'
33581      else
33582        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
33583 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
33584 if ${gl_cv_next_langinfo_h+:} false; then :
33585   $as_echo_n "(cached) " >&6
33586 else
33587
33588              if test $ac_cv_header_langinfo_h = yes; then
33589
33590
33591
33592
33593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33594 /* end confdefs.h.  */
33595 #include <langinfo.h>
33596 _ACEOF
33597                 case "$host_os" in
33598     aix*) gl_absname_cpp="$ac_cpp -C" ;;
33599     *)    gl_absname_cpp="$ac_cpp" ;;
33600   esac
33601
33602   case "$host_os" in
33603     mingw*)
33604                                           gl_dirsep_regex='[/\\]'
33605       ;;
33606     *)
33607       gl_dirsep_regex='\/'
33608       ;;
33609   esac
33610       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33611   gl_header_literal_regex=`echo 'langinfo.h' \
33612                            | sed -e "$gl_make_literal_regex_sed"`
33613   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33614       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33615       s|^/[^/]|//&|
33616       p
33617       q
33618     }'
33619
33620         gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33621   sed -n "$gl_absolute_header_sed"`
33622
33623            gl_header=$gl_cv_absolute_langinfo_h
33624            gl_cv_next_langinfo_h='"'$gl_header'"'
33625           else
33626                gl_cv_next_langinfo_h='<'langinfo.h'>'
33627              fi
33628
33629
33630 fi
33631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
33632 $as_echo "$gl_cv_next_langinfo_h" >&6; }
33633      fi
33634      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
33635
33636      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33637        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33638        gl_next_as_first_directive='<'langinfo.h'>'
33639      else
33640        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33641        gl_next_as_first_directive=$gl_cv_next_langinfo_h
33642      fi
33643      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
33644
33645
33646
33647
33648
33649     HAVE_LANGINFO_CODESET=0
33650   HAVE_LANGINFO_T_FMT_AMPM=0
33651   HAVE_LANGINFO_ERA=0
33652   HAVE_LANGINFO_YESEXPR=0
33653
33654   :
33655
33656
33657
33658
33659
33660   if test $ac_cv_header_langinfo_h = yes; then
33661     HAVE_LANGINFO_H=1
33662             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
33663 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
33664 if ${gl_cv_header_langinfo_codeset+:} false; then :
33665   $as_echo_n "(cached) " >&6
33666 else
33667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33668 /* end confdefs.h.  */
33669 #include <langinfo.h>
33670 int a = CODESET;
33671
33672 int
33673 main ()
33674 {
33675
33676   ;
33677   return 0;
33678 }
33679 _ACEOF
33680 if ac_fn_c_try_compile "$LINENO"; then :
33681   gl_cv_header_langinfo_codeset=yes
33682 else
33683   gl_cv_header_langinfo_codeset=no
33684 fi
33685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33686
33687 fi
33688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
33689 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
33690     if test $gl_cv_header_langinfo_codeset = yes; then
33691       HAVE_LANGINFO_CODESET=1
33692     fi
33693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
33694 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
33695 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
33696   $as_echo_n "(cached) " >&6
33697 else
33698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33699 /* end confdefs.h.  */
33700 #include <langinfo.h>
33701 int a = T_FMT_AMPM;
33702
33703 int
33704 main ()
33705 {
33706
33707   ;
33708   return 0;
33709 }
33710 _ACEOF
33711 if ac_fn_c_try_compile "$LINENO"; then :
33712   gl_cv_header_langinfo_t_fmt_ampm=yes
33713 else
33714   gl_cv_header_langinfo_t_fmt_ampm=no
33715 fi
33716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33717
33718 fi
33719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
33720 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
33721     if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
33722       HAVE_LANGINFO_T_FMT_AMPM=1
33723     fi
33724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
33725 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
33726 if ${gl_cv_header_langinfo_era+:} false; then :
33727   $as_echo_n "(cached) " >&6
33728 else
33729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33730 /* end confdefs.h.  */
33731 #include <langinfo.h>
33732 int a = ERA;
33733
33734 int
33735 main ()
33736 {
33737
33738   ;
33739   return 0;
33740 }
33741 _ACEOF
33742 if ac_fn_c_try_compile "$LINENO"; then :
33743   gl_cv_header_langinfo_era=yes
33744 else
33745   gl_cv_header_langinfo_era=no
33746 fi
33747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33748
33749 fi
33750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
33751 $as_echo "$gl_cv_header_langinfo_era" >&6; }
33752     if test $gl_cv_header_langinfo_era = yes; then
33753       HAVE_LANGINFO_ERA=1
33754     fi
33755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
33756 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
33757 if ${gl_cv_header_langinfo_yesexpr+:} false; then :
33758   $as_echo_n "(cached) " >&6
33759 else
33760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33761 /* end confdefs.h.  */
33762 #include <langinfo.h>
33763 int a = YESEXPR;
33764
33765 int
33766 main ()
33767 {
33768
33769   ;
33770   return 0;
33771 }
33772 _ACEOF
33773 if ac_fn_c_try_compile "$LINENO"; then :
33774   gl_cv_header_langinfo_yesexpr=yes
33775 else
33776   gl_cv_header_langinfo_yesexpr=no
33777 fi
33778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33779
33780 fi
33781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
33782 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
33783     if test $gl_cv_header_langinfo_yesexpr = yes; then
33784       HAVE_LANGINFO_YESEXPR=1
33785     fi
33786   else
33787     HAVE_LANGINFO_H=0
33788   fi
33789
33790
33791
33792
33793
33794
33795
33796     for gl_func in nl_langinfo; do
33797     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
33799 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33800 if eval \${$as_gl_Symbol+:} false; then :
33801   $as_echo_n "(cached) " >&6
33802 else
33803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33804 /* end confdefs.h.  */
33805 #include <langinfo.h>
33806
33807 int
33808 main ()
33809 {
33810 #undef $gl_func
33811   (void) $gl_func;
33812   ;
33813   return 0;
33814 }
33815 _ACEOF
33816 if ac_fn_c_try_compile "$LINENO"; then :
33817   eval "$as_gl_Symbol=yes"
33818 else
33819   eval "$as_gl_Symbol=no"
33820 fi
33821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33822 fi
33823 eval ac_res=\$$as_gl_Symbol
33824                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33825 $as_echo "$ac_res" >&6; }
33826     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
33827   cat >>confdefs.h <<_ACEOF
33828 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33829 _ACEOF
33830
33831                      eval ac_cv_have_decl_$gl_func=yes
33832 fi
33833       done
33834
33835
33836
33837
33838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
33839 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
33840 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
33841   $as_echo_n "(cached) " >&6
33842 else
33843   gl_cv_prog_c_ignore_unused_libraries=none
33844      gl_saved_ldflags=$LDFLAGS
33845      gl_saved_libs=$LIBS
33846      # Link with -lm to detect binutils 2.16 bug with --as-needed; see
33847      # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
33848      LIBS="$LIBS -lm"
33849      # Use long option sequences like '-z ignore' to test for the feature,
33850      # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
33851      # GCC + binutils likes '-Wl,--as-needed'.
33852      # GCC + Solaris ld likes '-Wl,-z,ignore'.
33853      # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
33854      # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
33855      # native cc issues annoying warnings and then ignores it,
33856      # which would cause us to incorrectly conclude that it worked.
33857      for gl_flags in  '-Wl,--as-needed' \
33858   '-Wl,-z,ignore' \
33859   '-z ignore'
33860
33861      do
33862        LDFLAGS="$gl_flags $LDFLAGS"
33863        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33864 /* end confdefs.h.  */
33865
33866 int
33867 main ()
33868 {
33869
33870   ;
33871   return 0;
33872 }
33873 _ACEOF
33874 if ac_fn_c_try_link "$LINENO"; then :
33875   gl_cv_prog_c_ignore_unused_libraries=$gl_flags
33876 fi
33877 rm -f core conftest.err conftest.$ac_objext \
33878     conftest$ac_exeext conftest.$ac_ext
33879        LDFLAGS=$gl_saved_ldflags
33880        test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
33881          break
33882      done
33883      LIBS=$gl_saved_libs
33884
33885 fi
33886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
33887 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
33888   IGNORE_UNUSED_LIBRARIES_CFLAGS=
33889   if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
33890     IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
33891   fi
33892
33893
33894
33895
33896
33897
33898   :
33899
33900
33901
33902
33903
33904
33905
33906
33907
33908   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
33909
33910
33911
33912
33913
33914
33915
33916
33917
33918   case "$host_os" in
33919     solaris*)
33920
33921 $as_echo "#define _LCONV_C99 1" >>confdefs.h
33922
33923       ;;
33924   esac
33925
33926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
33927 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
33928 if ${gl_cv_header_locale_h_posix2001+:} false; then :
33929   $as_echo_n "(cached) " >&6
33930 else
33931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33932 /* end confdefs.h.  */
33933 #include <locale.h>
33934             int x = LC_MESSAGES;
33935             int y = sizeof (((struct lconv *) 0)->decimal_point);
33936 int
33937 main ()
33938 {
33939
33940   ;
33941   return 0;
33942 }
33943 _ACEOF
33944 if ac_fn_c_try_compile "$LINENO"; then :
33945   gl_cv_header_locale_h_posix2001=yes
33946 else
33947   gl_cv_header_locale_h_posix2001=no
33948 fi
33949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33950 fi
33951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
33952 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
33953
33954
33955   :
33956
33957
33958
33959
33960
33961   if test $ac_cv_header_xlocale_h = yes; then
33962     HAVE_XLOCALE_H=1
33963                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
33964 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
33965 if ${gl_cv_header_locale_has_locale_t+:} false; then :
33966   $as_echo_n "(cached) " >&6
33967 else
33968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33969 /* end confdefs.h.  */
33970 #include <locale.h>
33971               locale_t x;
33972 int
33973 main ()
33974 {
33975
33976   ;
33977   return 0;
33978 }
33979 _ACEOF
33980 if ac_fn_c_try_compile "$LINENO"; then :
33981   gl_cv_header_locale_has_locale_t=yes
33982 else
33983   gl_cv_header_locale_has_locale_t=no
33984 fi
33985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33986
33987 fi
33988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
33989 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
33990     if test $gl_cv_header_locale_has_locale_t = yes; then
33991       gl_cv_header_locale_h_needs_xlocale_h=no
33992     else
33993       gl_cv_header_locale_h_needs_xlocale_h=yes
33994     fi
33995   else
33996     HAVE_XLOCALE_H=0
33997     gl_cv_header_locale_h_needs_xlocale_h=no
33998   fi
33999
34000
34001           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
34002 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
34003 if ${gl_cv_sys_struct_lconv_ok+:} false; then :
34004   $as_echo_n "(cached) " >&6
34005 else
34006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34007 /* end confdefs.h.  */
34008 #include <locale.h>
34009             struct lconv l;
34010             int x = sizeof (l.decimal_point);
34011             int y = sizeof (l.int_p_cs_precedes);
34012 int
34013 main ()
34014 {
34015
34016   ;
34017   return 0;
34018 }
34019 _ACEOF
34020 if ac_fn_c_try_compile "$LINENO"; then :
34021   gl_cv_sys_struct_lconv_ok=yes
34022 else
34023   gl_cv_sys_struct_lconv_ok=no
34024 fi
34025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34026
34027 fi
34028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
34029 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
34030   if test $gl_cv_sys_struct_lconv_ok = no; then
34031     REPLACE_STRUCT_LCONV=1
34032   fi
34033
34034
34035
34036
34037
34038
34039
34040
34041
34042      if test $gl_cv_have_include_next = yes; then
34043        gl_cv_next_locale_h='<'locale.h'>'
34044      else
34045        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
34046 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
34047 if ${gl_cv_next_locale_h+:} false; then :
34048   $as_echo_n "(cached) " >&6
34049 else
34050
34051
34052
34053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34054 /* end confdefs.h.  */
34055 #include <locale.h>
34056 _ACEOF
34057                 case "$host_os" in
34058     aix*) gl_absname_cpp="$ac_cpp -C" ;;
34059     *)    gl_absname_cpp="$ac_cpp" ;;
34060   esac
34061
34062   case "$host_os" in
34063     mingw*)
34064                                           gl_dirsep_regex='[/\\]'
34065       ;;
34066     *)
34067       gl_dirsep_regex='\/'
34068       ;;
34069   esac
34070       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34071   gl_header_literal_regex=`echo 'locale.h' \
34072                            | sed -e "$gl_make_literal_regex_sed"`
34073   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34074       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34075       s|^/[^/]|//&|
34076       p
34077       q
34078     }'
34079
34080         gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34081   sed -n "$gl_absolute_header_sed"`
34082
34083            gl_header=$gl_cv_absolute_locale_h
34084            gl_cv_next_locale_h='"'$gl_header'"'
34085
34086
34087 fi
34088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
34089 $as_echo "$gl_cv_next_locale_h" >&6; }
34090      fi
34091      NEXT_LOCALE_H=$gl_cv_next_locale_h
34092
34093      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34094        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34095        gl_next_as_first_directive='<'locale.h'>'
34096      else
34097        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34098        gl_next_as_first_directive=$gl_cv_next_locale_h
34099      fi
34100      NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
34101
34102
34103
34104
34105
34106
34107     for gl_func in setlocale duplocale; do
34108     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
34109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
34110 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
34111 if eval \${$as_gl_Symbol+:} false; then :
34112   $as_echo_n "(cached) " >&6
34113 else
34114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34115 /* end confdefs.h.  */
34116 #include <locale.h>
34117 /* Some systems provide declarations in a non-standard header.  */
34118 #if HAVE_XLOCALE_H
34119 # include <xlocale.h>
34120 #endif
34121
34122 int
34123 main ()
34124 {
34125 #undef $gl_func
34126   (void) $gl_func;
34127   ;
34128   return 0;
34129 }
34130 _ACEOF
34131 if ac_fn_c_try_compile "$LINENO"; then :
34132   eval "$as_gl_Symbol=yes"
34133 else
34134   eval "$as_gl_Symbol=no"
34135 fi
34136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34137 fi
34138 eval ac_res=\$$as_gl_Symbol
34139                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34140 $as_echo "$ac_res" >&6; }
34141     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
34142   cat >>confdefs.h <<_ACEOF
34143 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
34144 _ACEOF
34145
34146                      eval ac_cv_have_decl_$gl_func=yes
34147 fi
34148       done
34149
34150
34151
34152
34153
34154
34155   if test $REPLACE_STRUCT_LCONV = 1; then
34156     REPLACE_LOCALECONV=1
34157   fi
34158
34159   if test $REPLACE_LOCALECONV = 1; then
34160
34161
34162
34163
34164
34165
34166
34167
34168   gl_LIBOBJS="$gl_LIBOBJS localeconv.$ac_objext"
34169
34170
34171   ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
34172 "
34173 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
34174
34175 cat >>confdefs.h <<_ACEOF
34176 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
34177 _ACEOF
34178
34179
34180 fi
34181
34182
34183   fi
34184
34185
34186
34187
34188
34189           GNULIB_LOCALECONV=1
34190
34191
34192
34193
34194
34195 $as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h
34196
34197
34198
34199
34200
34201   if test "$gl_threads_api" = posix; then
34202     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
34203     # pthread_rwlock_* functions.
34204     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
34205 "
34206 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
34207
34208 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
34209
34210 fi
34211
34212     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
34213     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34214 /* end confdefs.h.  */
34215
34216       #include <pthread.h>
34217 int
34218 main ()
34219 {
34220
34221 #if __FreeBSD__ == 4
34222 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
34223 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
34224        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
34225 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
34226 #else
34227 int x = (int)PTHREAD_MUTEX_RECURSIVE;
34228 return !x;
34229 #endif
34230
34231   ;
34232   return 0;
34233 }
34234 _ACEOF
34235 if ac_fn_c_try_compile "$LINENO"; then :
34236
34237 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
34238
34239 fi
34240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34241   fi
34242   :
34243
34244
34245
34246 cat >>confdefs.h <<_ACEOF
34247 #define GNULIB_LOCK 1
34248 _ACEOF
34249
34250
34251
34252
34253
34254   :
34255
34256
34257
34258
34259
34260   if test $ac_cv_func_lstat = yes; then
34261
34262     case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
34263       *no)
34264         REPLACE_LSTAT=1
34265         ;;
34266     esac
34267   else
34268     HAVE_LSTAT=0
34269   fi
34270
34271   if test $REPLACE_LSTAT = 1; then
34272
34273
34274
34275
34276
34277
34278
34279
34280   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
34281
34282     :
34283   fi
34284
34285
34286
34287
34288
34289           GNULIB_LSTAT=1
34290
34291
34292
34293
34294
34295 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
34296
34297
34298
34299
34300
34301
34302       for ac_header in stdlib.h
34303 do :
34304   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
34305 if test "x$ac_cv_header_stdlib_h" = xyes; then :
34306   cat >>confdefs.h <<_ACEOF
34307 #define HAVE_STDLIB_H 1
34308 _ACEOF
34309
34310 fi
34311
34312 done
34313
34314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
34315 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
34316 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
34317   $as_echo_n "(cached) " >&6
34318 else
34319   if test "$cross_compiling" = yes; then :
34320   case "$host_os" in
34321           # Guess yes on platforms where we know the result.
34322           *-gnu* | freebsd* | netbsd* | openbsd* \
34323           | hpux* | solaris* | cygwin* | mingw*)
34324             ac_cv_func_malloc_0_nonnull=yes ;;
34325           # If we don't know, assume the worst.
34326           *) ac_cv_func_malloc_0_nonnull=no ;;
34327         esac
34328
34329 else
34330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34331 /* end confdefs.h.  */
34332 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
34333             # include <stdlib.h>
34334             #else
34335             char *malloc ();
34336             #endif
34337
34338 int
34339 main ()
34340 {
34341 return ! malloc (0);
34342   ;
34343   return 0;
34344 }
34345
34346 _ACEOF
34347 if ac_fn_c_try_run "$LINENO"; then :
34348   ac_cv_func_malloc_0_nonnull=yes
34349 else
34350   ac_cv_func_malloc_0_nonnull=no
34351 fi
34352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34353   conftest.$ac_objext conftest.beam conftest.$ac_ext
34354 fi
34355
34356
34357 fi
34358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
34359 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
34360   if test $ac_cv_func_malloc_0_nonnull = yes; then :
34361
34362 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
34363
34364 else
34365   $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
34366
34367      REPLACE_MALLOC=1
34368
34369 fi
34370
34371
34372   if test $REPLACE_MALLOC = 1; then
34373
34374
34375
34376
34377
34378
34379
34380
34381   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
34382
34383   fi
34384
34385
34386 cat >>confdefs.h <<_ACEOF
34387 #define GNULIB_MALLOC_GNU 1
34388 _ACEOF
34389
34390
34391
34392
34393
34394   if test $gl_cv_func_malloc_posix = yes; then
34395
34396 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
34397
34398   else
34399     REPLACE_MALLOC=1
34400   fi
34401
34402   if test $REPLACE_MALLOC = 1; then
34403
34404
34405
34406
34407
34408
34409
34410
34411   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
34412
34413   fi
34414
34415
34416
34417
34418
34419           GNULIB_MALLOC_POSIX=1
34420
34421
34422
34423
34424
34425 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
34426
34427
34428
34429
34430
34431
34432
34433
34434
34435
34436
34437
34438
34439
34440
34441
34442   :
34443
34444
34445
34446
34447
34448
34449   :
34450
34451
34452
34453
34454
34455   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
34456
34457
34458
34459      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
34460 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
34461 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
34462   $as_echo_n "(cached) " >&6
34463 else
34464
34465                   case "$host_os" in
34466                      # Guess no on AIX and OSF/1.
34467         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
34468                      # Guess yes otherwise.
34469         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
34470       esac
34471       if test $LOCALE_JA != none; then
34472         if test "$cross_compiling" = yes; then :
34473   :
34474 else
34475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34476 /* end confdefs.h.  */
34477
34478 #include <locale.h>
34479 #include <string.h>
34480 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34481    <wchar.h>.
34482    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34483    included before <wchar.h>.  */
34484 #include <stddef.h>
34485 #include <stdio.h>
34486 #include <time.h>
34487 #include <wchar.h>
34488 int main ()
34489 {
34490   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
34491     {
34492       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
34493       mbstate_t state;
34494       wchar_t wc;
34495
34496       memset (&state, '\0', sizeof (mbstate_t));
34497       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
34498         if (mbsinit (&state))
34499           return 1;
34500     }
34501   return 0;
34502 }
34503 _ACEOF
34504 if ac_fn_c_try_run "$LINENO"; then :
34505   gl_cv_func_mbrtowc_incomplete_state=yes
34506 else
34507   gl_cv_func_mbrtowc_incomplete_state=no
34508 fi
34509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34510   conftest.$ac_objext conftest.beam conftest.$ac_ext
34511 fi
34512
34513       fi
34514
34515 fi
34516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
34517 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
34518
34519
34520
34521
34522      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
34523 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
34524 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
34525   $as_echo_n "(cached) " >&6
34526 else
34527
34528                   case "$host_os" in
34529                     # Guess no on Solaris 8.
34530         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
34531                     # Guess yes otherwise.
34532         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
34533       esac
34534       if test $LOCALE_ZH_CN != none; then
34535         if test "$cross_compiling" = yes; then :
34536   :
34537 else
34538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34539 /* end confdefs.h.  */
34540
34541 #include <locale.h>
34542 #include <stdlib.h>
34543 #include <string.h>
34544 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34545    <wchar.h>.
34546    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34547    included before <wchar.h>.  */
34548 #include <stddef.h>
34549 #include <stdio.h>
34550 #include <time.h>
34551 #include <wchar.h>
34552 int main ()
34553 {
34554   /* This fails on Solaris 8:
34555      mbrtowc returns 2, and sets wc to 0x00F0.
34556      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
34557   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
34558     {
34559       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
34560       mbstate_t state;
34561       wchar_t wc;
34562
34563       memset (&state, '\0', sizeof (mbstate_t));
34564       if (mbrtowc (&wc, input + 3, 6, &state) != 4
34565           && mbtowc (&wc, input + 3, 6) == 4)
34566         return 1;
34567     }
34568   return 0;
34569 }
34570 _ACEOF
34571 if ac_fn_c_try_run "$LINENO"; then :
34572   gl_cv_func_mbrtowc_sanitycheck=yes
34573 else
34574   gl_cv_func_mbrtowc_sanitycheck=no
34575 fi
34576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34577   conftest.$ac_objext conftest.beam conftest.$ac_ext
34578 fi
34579
34580       fi
34581
34582 fi
34583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
34584 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
34585
34586     REPLACE_MBSTATE_T=0
34587     case "$gl_cv_func_mbrtowc_incomplete_state" in
34588       *yes) ;;
34589       *) REPLACE_MBSTATE_T=1 ;;
34590     esac
34591     case "$gl_cv_func_mbrtowc_sanitycheck" in
34592       *yes) ;;
34593       *) REPLACE_MBSTATE_T=1 ;;
34594     esac
34595   else
34596     REPLACE_MBSTATE_T=1
34597   fi
34598
34599
34600
34601   :
34602
34603
34604
34605
34606
34607   if test $ac_cv_func_mbrtowc = no; then
34608     HAVE_MBRTOWC=0
34609     ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
34610 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34611    <wchar.h>.
34612    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34613    included before <wchar.h>.  */
34614 #include <stddef.h>
34615 #include <stdio.h>
34616 #include <time.h>
34617 #include <wchar.h>
34618
34619 "
34620 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
34621   ac_have_decl=1
34622 else
34623   ac_have_decl=0
34624 fi
34625
34626 cat >>confdefs.h <<_ACEOF
34627 #define HAVE_DECL_MBRTOWC $ac_have_decl
34628 _ACEOF
34629
34630     if test $ac_cv_have_decl_mbrtowc = yes; then
34631                         REPLACE_MBRTOWC=1
34632     fi
34633   else
34634     if test $REPLACE_MBSTATE_T = 1; then
34635       REPLACE_MBRTOWC=1
34636     else
34637
34638
34639
34640      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
34641 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
34642 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
34643   $as_echo_n "(cached) " >&6
34644 else
34645
34646                   case "$host_os" in
34647                   # Guess no on Solaris.
34648         solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
34649                   # Guess yes otherwise.
34650         *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
34651       esac
34652       if test $LOCALE_FR_UTF8 != none; then
34653         if test "$cross_compiling" = yes; then :
34654   :
34655 else
34656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34657 /* end confdefs.h.  */
34658
34659 #include <locale.h>
34660 #include <stdlib.h>
34661 #include <string.h>
34662 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34663    <wchar.h>.
34664    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34665    included before <wchar.h>.  */
34666 #include <stddef.h>
34667 #include <stdio.h>
34668 #include <time.h>
34669 #include <wchar.h>
34670 int main ()
34671 {
34672   int result = 0;
34673
34674   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
34675     {
34676       char input[] = "\303\237er";
34677       mbstate_t state;
34678       wchar_t wc;
34679       size_t ret;
34680
34681       memset (&state, '\0', sizeof (mbstate_t));
34682       wc = (wchar_t) 0xBADFACE;
34683       ret = mbrtowc (&wc, input, 5, &state);
34684       if (ret != 2)
34685         result |= 1;
34686       if (!mbsinit (&state))
34687         result |= 2;
34688
34689       memset (&state, '\0', sizeof (mbstate_t));
34690       ret = mbrtowc (NULL, input, 5, &state);
34691       if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
34692         result |= 4;
34693       if (!mbsinit (&state))
34694         result |= 8;
34695     }
34696   return result;
34697 }
34698 _ACEOF
34699 if ac_fn_c_try_run "$LINENO"; then :
34700   gl_cv_func_mbrtowc_null_arg1=yes
34701 else
34702   gl_cv_func_mbrtowc_null_arg1=no
34703 fi
34704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34705   conftest.$ac_objext conftest.beam conftest.$ac_ext
34706 fi
34707
34708       fi
34709
34710 fi
34711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
34712 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
34713
34714
34715
34716
34717      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
34718 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
34719 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
34720   $as_echo_n "(cached) " >&6
34721 else
34722
34723                   case "$host_os" in
34724               # Guess no on OSF/1.
34725         osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
34726               # Guess yes otherwise.
34727         *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
34728       esac
34729       if test $LOCALE_FR_UTF8 != none; then
34730         if test "$cross_compiling" = yes; then :
34731   :
34732 else
34733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34734 /* end confdefs.h.  */
34735
34736 #include <locale.h>
34737 #include <string.h>
34738 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34739    <wchar.h>.
34740    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34741    included before <wchar.h>.  */
34742 #include <stddef.h>
34743 #include <stdio.h>
34744 #include <time.h>
34745 #include <wchar.h>
34746 int main ()
34747 {
34748   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
34749     {
34750       mbstate_t state;
34751       wchar_t wc;
34752       int ret;
34753
34754       memset (&state, '\0', sizeof (mbstate_t));
34755       wc = (wchar_t) 0xBADFACE;
34756       mbrtowc (&wc, NULL, 5, &state);
34757       /* Check that wc was not modified.  */
34758       if (wc != (wchar_t) 0xBADFACE)
34759         return 1;
34760     }
34761   return 0;
34762 }
34763 _ACEOF
34764 if ac_fn_c_try_run "$LINENO"; then :
34765   gl_cv_func_mbrtowc_null_arg2=yes
34766 else
34767   gl_cv_func_mbrtowc_null_arg2=no
34768 fi
34769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34770   conftest.$ac_objext conftest.beam conftest.$ac_ext
34771 fi
34772
34773       fi
34774
34775 fi
34776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
34777 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
34778
34779
34780
34781
34782
34783
34784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
34785 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
34786 if ${gl_cv_func_mbrtowc_retval+:} false; then :
34787   $as_echo_n "(cached) " >&6
34788 else
34789
34790                   case "$host_os" in
34791                                    # Guess no on HP-UX, Solaris, native Windows.
34792         hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
34793                                    # Guess yes otherwise.
34794         *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
34795       esac
34796       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
34797          || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
34798         if test "$cross_compiling" = yes; then :
34799   :
34800 else
34801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34802 /* end confdefs.h.  */
34803
34804 #include <locale.h>
34805 #include <string.h>
34806 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34807    <wchar.h>.
34808    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34809    included before <wchar.h>.  */
34810 #include <stddef.h>
34811 #include <stdio.h>
34812 #include <time.h>
34813 #include <wchar.h>
34814 int main ()
34815 {
34816   int result = 0;
34817   int found_some_locale = 0;
34818   /* This fails on Solaris.  */
34819   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
34820     {
34821       char input[] = "B\303\274\303\237er"; /* "Büßer" */
34822       mbstate_t state;
34823       wchar_t wc;
34824
34825       memset (&state, '\0', sizeof (mbstate_t));
34826       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
34827         {
34828           input[1] = '\0';
34829           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
34830             result |= 1;
34831         }
34832       found_some_locale = 1;
34833     }
34834   /* This fails on HP-UX 11.11.  */
34835   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
34836     {
34837       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
34838       mbstate_t state;
34839       wchar_t wc;
34840
34841       memset (&state, '\0', sizeof (mbstate_t));
34842       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
34843         {
34844           input[1] = '\0';
34845           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
34846             result |= 2;
34847         }
34848       found_some_locale = 1;
34849     }
34850   /* This fails on native Windows.  */
34851   if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
34852     {
34853       char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
34854       mbstate_t state;
34855       wchar_t wc;
34856
34857       memset (&state, '\0', sizeof (mbstate_t));
34858       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
34859         {
34860           input[3] = '\0';
34861           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
34862             result |= 4;
34863         }
34864       found_some_locale = 1;
34865     }
34866   if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
34867     {
34868       char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
34869       mbstate_t state;
34870       wchar_t wc;
34871
34872       memset (&state, '\0', sizeof (mbstate_t));
34873       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
34874         {
34875           input[3] = '\0';
34876           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
34877             result |= 8;
34878         }
34879       found_some_locale = 1;
34880     }
34881   if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
34882     {
34883       char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
34884       mbstate_t state;
34885       wchar_t wc;
34886
34887       memset (&state, '\0', sizeof (mbstate_t));
34888       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
34889         {
34890           input[3] = '\0';
34891           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
34892             result |= 16;
34893         }
34894       found_some_locale = 1;
34895     }
34896   return (found_some_locale ? result : 77);
34897 }
34898 _ACEOF
34899 if ac_fn_c_try_run "$LINENO"; then :
34900   gl_cv_func_mbrtowc_retval=yes
34901 else
34902   if test $? != 77; then
34903              gl_cv_func_mbrtowc_retval=no
34904            fi
34905
34906 fi
34907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34908   conftest.$ac_objext conftest.beam conftest.$ac_ext
34909 fi
34910
34911       fi
34912
34913 fi
34914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
34915 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
34916
34917
34918
34919
34920      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
34921 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
34922 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
34923   $as_echo_n "(cached) " >&6
34924 else
34925
34926                   case "$host_os" in
34927                        # Guess no on Solaris 8 and 9.
34928         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
34929                        # Guess yes otherwise.
34930         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
34931       esac
34932       if test $LOCALE_ZH_CN != none; then
34933         if test "$cross_compiling" = yes; then :
34934   :
34935 else
34936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34937 /* end confdefs.h.  */
34938
34939 #include <locale.h>
34940 #include <string.h>
34941 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34942    <wchar.h>.
34943    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34944    included before <wchar.h>.  */
34945 #include <stddef.h>
34946 #include <stdio.h>
34947 #include <time.h>
34948 #include <wchar.h>
34949 int main ()
34950 {
34951   /* This fails on Solaris 8 and 9.  */
34952   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
34953     {
34954       mbstate_t state;
34955       wchar_t wc;
34956
34957       memset (&state, '\0', sizeof (mbstate_t));
34958       if (mbrtowc (&wc, "", 1, &state) != 0)
34959         return 1;
34960     }
34961   return 0;
34962 }
34963 _ACEOF
34964 if ac_fn_c_try_run "$LINENO"; then :
34965   gl_cv_func_mbrtowc_nul_retval=yes
34966 else
34967   gl_cv_func_mbrtowc_nul_retval=no
34968 fi
34969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34970   conftest.$ac_objext conftest.beam conftest.$ac_ext
34971 fi
34972
34973       fi
34974
34975 fi
34976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
34977 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
34978
34979       case "$gl_cv_func_mbrtowc_null_arg1" in
34980         *yes) ;;
34981         *)
34982 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
34983
34984            REPLACE_MBRTOWC=1
34985            ;;
34986       esac
34987       case "$gl_cv_func_mbrtowc_null_arg2" in
34988         *yes) ;;
34989         *)
34990 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
34991
34992            REPLACE_MBRTOWC=1
34993            ;;
34994       esac
34995       case "$gl_cv_func_mbrtowc_retval" in
34996         *yes) ;;
34997         *)
34998 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
34999
35000            REPLACE_MBRTOWC=1
35001            ;;
35002       esac
35003       case "$gl_cv_func_mbrtowc_nul_retval" in
35004         *yes) ;;
35005         *)
35006 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
35007
35008            REPLACE_MBRTOWC=1
35009            ;;
35010       esac
35011     fi
35012   fi
35013
35014   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
35015
35016
35017
35018
35019
35020
35021
35022
35023   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
35024
35025
35026   :
35027
35028   fi
35029
35030
35031
35032
35033
35034           GNULIB_MBRTOWC=1
35035
35036
35037
35038
35039
35040 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
35041
35042
35043
35044
35045
35046
35047
35048
35049
35050
35051
35052
35053
35054   :
35055
35056
35057
35058
35059
35060
35061   :
35062
35063
35064
35065
35066
35067   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
35068
35069
35070
35071      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
35072 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
35073 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
35074   $as_echo_n "(cached) " >&6
35075 else
35076
35077                   case "$host_os" in
35078                      # Guess no on AIX and OSF/1.
35079         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
35080                      # Guess yes otherwise.
35081         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
35082       esac
35083       if test $LOCALE_JA != none; then
35084         if test "$cross_compiling" = yes; then :
35085   :
35086 else
35087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35088 /* end confdefs.h.  */
35089
35090 #include <locale.h>
35091 #include <string.h>
35092 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35093    <wchar.h>.
35094    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35095    included before <wchar.h>.  */
35096 #include <stddef.h>
35097 #include <stdio.h>
35098 #include <time.h>
35099 #include <wchar.h>
35100 int main ()
35101 {
35102   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
35103     {
35104       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
35105       mbstate_t state;
35106       wchar_t wc;
35107
35108       memset (&state, '\0', sizeof (mbstate_t));
35109       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
35110         if (mbsinit (&state))
35111           return 1;
35112     }
35113   return 0;
35114 }
35115 _ACEOF
35116 if ac_fn_c_try_run "$LINENO"; then :
35117   gl_cv_func_mbrtowc_incomplete_state=yes
35118 else
35119   gl_cv_func_mbrtowc_incomplete_state=no
35120 fi
35121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35122   conftest.$ac_objext conftest.beam conftest.$ac_ext
35123 fi
35124
35125       fi
35126
35127 fi
35128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
35129 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
35130
35131
35132
35133
35134      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
35135 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
35136 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
35137   $as_echo_n "(cached) " >&6
35138 else
35139
35140                   case "$host_os" in
35141                     # Guess no on Solaris 8.
35142         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
35143                     # Guess yes otherwise.
35144         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
35145       esac
35146       if test $LOCALE_ZH_CN != none; then
35147         if test "$cross_compiling" = yes; then :
35148   :
35149 else
35150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35151 /* end confdefs.h.  */
35152
35153 #include <locale.h>
35154 #include <stdlib.h>
35155 #include <string.h>
35156 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35157    <wchar.h>.
35158    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35159    included before <wchar.h>.  */
35160 #include <stddef.h>
35161 #include <stdio.h>
35162 #include <time.h>
35163 #include <wchar.h>
35164 int main ()
35165 {
35166   /* This fails on Solaris 8:
35167      mbrtowc returns 2, and sets wc to 0x00F0.
35168      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
35169   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
35170     {
35171       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
35172       mbstate_t state;
35173       wchar_t wc;
35174
35175       memset (&state, '\0', sizeof (mbstate_t));
35176       if (mbrtowc (&wc, input + 3, 6, &state) != 4
35177           && mbtowc (&wc, input + 3, 6) == 4)
35178         return 1;
35179     }
35180   return 0;
35181 }
35182 _ACEOF
35183 if ac_fn_c_try_run "$LINENO"; then :
35184   gl_cv_func_mbrtowc_sanitycheck=yes
35185 else
35186   gl_cv_func_mbrtowc_sanitycheck=no
35187 fi
35188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35189   conftest.$ac_objext conftest.beam conftest.$ac_ext
35190 fi
35191
35192       fi
35193
35194 fi
35195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
35196 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
35197
35198     REPLACE_MBSTATE_T=0
35199     case "$gl_cv_func_mbrtowc_incomplete_state" in
35200       *yes) ;;
35201       *) REPLACE_MBSTATE_T=1 ;;
35202     esac
35203     case "$gl_cv_func_mbrtowc_sanitycheck" in
35204       *yes) ;;
35205       *) REPLACE_MBSTATE_T=1 ;;
35206     esac
35207   else
35208     REPLACE_MBSTATE_T=1
35209   fi
35210
35211
35212
35213   :
35214
35215
35216
35217
35218
35219   if test $ac_cv_func_mbsinit = no; then
35220     HAVE_MBSINIT=0
35221     ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
35222 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35223    <wchar.h>.
35224    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35225    included before <wchar.h>.  */
35226 #include <stddef.h>
35227 #include <stdio.h>
35228 #include <time.h>
35229 #include <wchar.h>
35230
35231 "
35232 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
35233   ac_have_decl=1
35234 else
35235   ac_have_decl=0
35236 fi
35237
35238 cat >>confdefs.h <<_ACEOF
35239 #define HAVE_DECL_MBSINIT $ac_have_decl
35240 _ACEOF
35241
35242     if test $ac_cv_have_decl_mbsinit = yes; then
35243                         REPLACE_MBSINIT=1
35244     fi
35245   else
35246     if test $REPLACE_MBSTATE_T = 1; then
35247       REPLACE_MBSINIT=1
35248     else
35249                         case "$host_os" in
35250         mingw*) REPLACE_MBSINIT=1 ;;
35251       esac
35252     fi
35253   fi
35254
35255   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
35256
35257
35258
35259
35260
35261
35262
35263
35264   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
35265
35266
35267   :
35268
35269   fi
35270
35271
35272
35273
35274
35275           GNULIB_MBSINIT=1
35276
35277
35278
35279
35280
35281 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
35282
35283
35284
35285
35286
35287
35288
35289
35290
35291
35292
35293
35294   :
35295
35296
35297
35298
35299
35300
35301   :
35302
35303
35304
35305
35306
35307   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
35308
35309
35310
35311      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
35312 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
35313 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
35314   $as_echo_n "(cached) " >&6
35315 else
35316
35317                   case "$host_os" in
35318                      # Guess no on AIX and OSF/1.
35319         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
35320                      # Guess yes otherwise.
35321         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
35322       esac
35323       if test $LOCALE_JA != none; then
35324         if test "$cross_compiling" = yes; then :
35325   :
35326 else
35327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35328 /* end confdefs.h.  */
35329
35330 #include <locale.h>
35331 #include <string.h>
35332 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35333    <wchar.h>.
35334    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35335    included before <wchar.h>.  */
35336 #include <stddef.h>
35337 #include <stdio.h>
35338 #include <time.h>
35339 #include <wchar.h>
35340 int main ()
35341 {
35342   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
35343     {
35344       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
35345       mbstate_t state;
35346       wchar_t wc;
35347
35348       memset (&state, '\0', sizeof (mbstate_t));
35349       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
35350         if (mbsinit (&state))
35351           return 1;
35352     }
35353   return 0;
35354 }
35355 _ACEOF
35356 if ac_fn_c_try_run "$LINENO"; then :
35357   gl_cv_func_mbrtowc_incomplete_state=yes
35358 else
35359   gl_cv_func_mbrtowc_incomplete_state=no
35360 fi
35361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35362   conftest.$ac_objext conftest.beam conftest.$ac_ext
35363 fi
35364
35365       fi
35366
35367 fi
35368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
35369 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
35370
35371
35372
35373
35374      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
35375 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
35376 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
35377   $as_echo_n "(cached) " >&6
35378 else
35379
35380                   case "$host_os" in
35381                     # Guess no on Solaris 8.
35382         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
35383                     # Guess yes otherwise.
35384         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
35385       esac
35386       if test $LOCALE_ZH_CN != none; then
35387         if test "$cross_compiling" = yes; then :
35388   :
35389 else
35390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35391 /* end confdefs.h.  */
35392
35393 #include <locale.h>
35394 #include <stdlib.h>
35395 #include <string.h>
35396 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35397    <wchar.h>.
35398    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35399    included before <wchar.h>.  */
35400 #include <stddef.h>
35401 #include <stdio.h>
35402 #include <time.h>
35403 #include <wchar.h>
35404 int main ()
35405 {
35406   /* This fails on Solaris 8:
35407      mbrtowc returns 2, and sets wc to 0x00F0.
35408      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
35409   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
35410     {
35411       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
35412       mbstate_t state;
35413       wchar_t wc;
35414
35415       memset (&state, '\0', sizeof (mbstate_t));
35416       if (mbrtowc (&wc, input + 3, 6, &state) != 4
35417           && mbtowc (&wc, input + 3, 6) == 4)
35418         return 1;
35419     }
35420   return 0;
35421 }
35422 _ACEOF
35423 if ac_fn_c_try_run "$LINENO"; then :
35424   gl_cv_func_mbrtowc_sanitycheck=yes
35425 else
35426   gl_cv_func_mbrtowc_sanitycheck=no
35427 fi
35428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35429   conftest.$ac_objext conftest.beam conftest.$ac_ext
35430 fi
35431
35432       fi
35433
35434 fi
35435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
35436 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
35437
35438     REPLACE_MBSTATE_T=0
35439     case "$gl_cv_func_mbrtowc_incomplete_state" in
35440       *yes) ;;
35441       *) REPLACE_MBSTATE_T=1 ;;
35442     esac
35443     case "$gl_cv_func_mbrtowc_sanitycheck" in
35444       *yes) ;;
35445       *) REPLACE_MBSTATE_T=1 ;;
35446     esac
35447   else
35448     REPLACE_MBSTATE_T=1
35449   fi
35450
35451
35452
35453   :
35454
35455
35456
35457
35458
35459   if test $ac_cv_func_mbsrtowcs = no; then
35460     HAVE_MBSRTOWCS=0
35461     ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
35462 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35463    <wchar.h>.
35464    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35465    included before <wchar.h>.  */
35466 #include <stddef.h>
35467 #include <stdio.h>
35468 #include <time.h>
35469 #include <wchar.h>
35470
35471 "
35472 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes; then :
35473   ac_have_decl=1
35474 else
35475   ac_have_decl=0
35476 fi
35477
35478 cat >>confdefs.h <<_ACEOF
35479 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
35480 _ACEOF
35481
35482     if test $ac_cv_have_decl_mbsrtowcs = yes; then
35483                         REPLACE_MBSRTOWCS=1
35484     fi
35485   else
35486     if test $REPLACE_MBSTATE_T = 1; then
35487       REPLACE_MBSRTOWCS=1
35488     else
35489
35490
35491
35492
35493
35494
35495      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
35496 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
35497 if ${gl_cv_func_mbsrtowcs_works+:} false; then :
35498   $as_echo_n "(cached) " >&6
35499 else
35500
35501                   case "$host_os" in
35502                                    # Guess no on HP-UX, Solaris, mingw.
35503         hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
35504                                    # Guess yes otherwise.
35505         *)                         gl_cv_func_mbsrtowcs_works="guessing yes" ;;
35506       esac
35507       if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
35508         if test "$cross_compiling" = yes; then :
35509   :
35510 else
35511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35512 /* end confdefs.h.  */
35513
35514 #include <locale.h>
35515 #include <string.h>
35516 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35517    <wchar.h>.
35518    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35519    included before <wchar.h>.  */
35520 #include <stddef.h>
35521 #include <stdio.h>
35522 #include <time.h>
35523 #include <wchar.h>
35524 int main ()
35525 {
35526   int result = 0;
35527   /* Test whether the function supports a NULL destination argument.
35528      This fails on native Windows.  */
35529   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
35530     {
35531       const char input[] = "\337er";
35532       const char *src = input;
35533       mbstate_t state;
35534
35535       memset (&state, '\0', sizeof (mbstate_t));
35536       if (mbsrtowcs (NULL, &src, 1, &state) != 3
35537           || src != input)
35538         result |= 1;
35539     }
35540   /* Test whether the function works when started with a conversion state
35541      in non-initial state.  This fails on HP-UX 11.11 and Solaris 10.  */
35542   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
35543     {
35544       const char input[] = "B\303\274\303\237er";
35545       mbstate_t state;
35546
35547       memset (&state, '\0', sizeof (mbstate_t));
35548       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
35549         if (!mbsinit (&state))
35550           {
35551             const char *src = input + 2;
35552             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
35553               result |= 2;
35554           }
35555     }
35556   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
35557     {
35558       const char input[] = "<\306\374\313\334\270\354>";
35559       mbstate_t state;
35560
35561       memset (&state, '\0', sizeof (mbstate_t));
35562       if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
35563         if (!mbsinit (&state))
35564           {
35565             const char *src = input + 4;
35566             if (mbsrtowcs (NULL, &src, 10, &state) != 3)
35567               result |= 4;
35568           }
35569     }
35570   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
35571     {
35572       const char input[] = "B\250\271\201\060\211\070er";
35573       mbstate_t state;
35574
35575       memset (&state, '\0', sizeof (mbstate_t));
35576       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
35577         if (!mbsinit (&state))
35578           {
35579             const char *src = input + 2;
35580             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
35581               result |= 8;
35582           }
35583     }
35584   return result;
35585 }
35586 _ACEOF
35587 if ac_fn_c_try_run "$LINENO"; then :
35588   gl_cv_func_mbsrtowcs_works=yes
35589 else
35590   gl_cv_func_mbsrtowcs_works=no
35591 fi
35592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35593   conftest.$ac_objext conftest.beam conftest.$ac_ext
35594 fi
35595
35596       fi
35597
35598 fi
35599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
35600 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
35601
35602       case "$gl_cv_func_mbsrtowcs_works" in
35603         *yes) ;;
35604         *) REPLACE_MBSRTOWCS=1 ;;
35605       esac
35606     fi
35607   fi
35608
35609   if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
35610
35611
35612
35613
35614
35615
35616
35617
35618   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
35619
35620
35621
35622
35623
35624
35625
35626
35627
35628   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
35629
35630
35631   :
35632
35633   fi
35634
35635
35636
35637
35638
35639           GNULIB_MBSRTOWCS=1
35640
35641
35642
35643
35644
35645 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
35646
35647
35648
35649
35650
35651
35652   if false; then
35653     REPLACE_MBTOWC=1
35654   fi
35655
35656   if test $REPLACE_MBTOWC = 1; then
35657
35658
35659
35660
35661
35662
35663
35664
35665   gl_LIBOBJS="$gl_LIBOBJS mbtowc.$ac_objext"
35666
35667
35668   :
35669
35670   fi
35671
35672
35673
35674
35675
35676           GNULIB_MBTOWC=1
35677
35678
35679
35680
35681
35682 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
35683
35684
35685
35686
35687   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
35688
35689
35690
35691
35692
35693
35694
35695
35696   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
35697
35698
35699   for ac_header in bp-sym.h
35700 do :
35701   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
35702 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
35703   cat >>confdefs.h <<_ACEOF
35704 #define HAVE_BP_SYM_H 1
35705 _ACEOF
35706
35707 fi
35708
35709 done
35710
35711
35712   fi
35713
35714
35715
35716
35717
35718           GNULIB_MEMCHR=1
35719
35720
35721
35722
35723
35724 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
35725
35726
35727
35728
35729
35730   if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
35731     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
35732 $as_echo_n "checking whether memmem works in linear time... " >&6; }
35733 if ${gl_cv_func_memmem_works_fast+:} false; then :
35734   $as_echo_n "(cached) " >&6
35735 else
35736   if test "$cross_compiling" = yes; then :
35737                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35738 /* end confdefs.h.  */
35739
35740 #include <features.h>
35741 #ifdef __GNU_LIBRARY__
35742  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
35743      && !defined __UCLIBC__
35744   Lucky user
35745  #endif
35746 #endif
35747 #ifdef __CYGWIN__
35748  #include <cygwin/version.h>
35749  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
35750   Lucky user
35751  #endif
35752 #endif
35753
35754 _ACEOF
35755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35756   $EGREP "Lucky user" >/dev/null 2>&1; then :
35757   gl_cv_func_memmem_works_fast="guessing yes"
35758 else
35759   gl_cv_func_memmem_works_fast="guessing no"
35760 fi
35761 rm -f conftest*
35762
35763
35764 else
35765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35766 /* end confdefs.h.  */
35767
35768 #include <signal.h> /* for signal */
35769 #include <string.h> /* for memmem */
35770 #include <stdlib.h> /* for malloc */
35771 #include <unistd.h> /* for alarm */
35772 static void quit (int sig) { exit (sig + 128); }
35773
35774 int
35775 main ()
35776 {
35777
35778     int result = 0;
35779     size_t m = 1000000;
35780     char *haystack = (char *) malloc (2 * m + 1);
35781     char *needle = (char *) malloc (m + 1);
35782     /* Failure to compile this test due to missing alarm is okay,
35783        since all such platforms (mingw) also lack memmem.  */
35784     signal (SIGALRM, quit);
35785     alarm (5);
35786     /* Check for quadratic performance.  */
35787     if (haystack && needle)
35788       {
35789         memset (haystack, 'A', 2 * m);
35790         haystack[2 * m] = 'B';
35791         memset (needle, 'A', m);
35792         needle[m] = 'B';
35793         if (!memmem (haystack, 2 * m + 1, needle, m + 1))
35794           result |= 1;
35795       }
35796     return result;
35797
35798   ;
35799   return 0;
35800 }
35801 _ACEOF
35802 if ac_fn_c_try_run "$LINENO"; then :
35803   gl_cv_func_memmem_works_fast=yes
35804 else
35805   gl_cv_func_memmem_works_fast=no
35806 fi
35807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35808   conftest.$ac_objext conftest.beam conftest.$ac_ext
35809 fi
35810
35811
35812 fi
35813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
35814 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
35815     case "$gl_cv_func_memmem_works_fast" in
35816       *yes) ;;
35817       *)
35818         REPLACE_MEMMEM=1
35819         ;;
35820     esac
35821   fi
35822
35823   if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
35824
35825
35826
35827
35828
35829
35830
35831
35832   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
35833
35834   fi
35835
35836
35837
35838
35839   for ac_func in memmem
35840 do :
35841   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
35842 if test "x$ac_cv_func_memmem" = xyes; then :
35843   cat >>confdefs.h <<_ACEOF
35844 #define HAVE_MEMMEM 1
35845 _ACEOF
35846
35847 fi
35848 done
35849
35850   if test $ac_cv_func_memmem = yes; then
35851     HAVE_MEMMEM=1
35852   else
35853     HAVE_MEMMEM=0
35854   fi
35855
35856   :
35857
35858
35859
35860
35861
35862   if test $ac_cv_have_decl_memmem = no; then
35863     HAVE_DECL_MEMMEM=0
35864   else
35865             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
35866 $as_echo_n "checking whether memmem works... " >&6; }
35867 if ${gl_cv_func_memmem_works_always+:} false; then :
35868   $as_echo_n "(cached) " >&6
35869 else
35870   if test "$cross_compiling" = yes; then :
35871                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35872 /* end confdefs.h.  */
35873
35874 #ifdef __GNU_LIBRARY__
35875  #include <features.h>
35876  #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
35877                           || __GLIBC_MINOR__ > 12)) \
35878       || (__GLIBC__ > 2)) \
35879      || defined __UCLIBC__
35880   Lucky user
35881  #endif
35882 #elif defined __CYGWIN__
35883  #include <cygwin/version.h>
35884  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
35885   Lucky user
35886  #endif
35887 #else
35888   Lucky user
35889 #endif
35890
35891 _ACEOF
35892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35893   $EGREP "Lucky user" >/dev/null 2>&1; then :
35894   gl_cv_func_memmem_works_always="guessing yes"
35895 else
35896   gl_cv_func_memmem_works_always="guessing no"
35897 fi
35898 rm -f conftest*
35899
35900
35901 else
35902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35903 /* end confdefs.h.  */
35904
35905 #include <string.h> /* for memmem */
35906 #define P "_EF_BF_BD"
35907 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
35908 #define NEEDLE P P P P P
35909
35910 int
35911 main ()
35912 {
35913
35914     int result = 0;
35915     if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
35916       result |= 1;
35917     /* Check for empty needle behavior.  */
35918     {
35919       const char *haystack = "AAA";
35920       if (memmem (haystack, 3, NULL, 0) != haystack)
35921         result |= 2;
35922     }
35923     return result;
35924
35925   ;
35926   return 0;
35927 }
35928 _ACEOF
35929 if ac_fn_c_try_run "$LINENO"; then :
35930   gl_cv_func_memmem_works_always=yes
35931 else
35932   gl_cv_func_memmem_works_always=no
35933 fi
35934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35935   conftest.$ac_objext conftest.beam conftest.$ac_ext
35936 fi
35937
35938
35939 fi
35940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
35941 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
35942     case "$gl_cv_func_memmem_works_always" in
35943       *yes) ;;
35944       *)
35945         REPLACE_MEMMEM=1
35946         ;;
35947     esac
35948   fi
35949   :
35950
35951   if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
35952
35953
35954
35955
35956
35957
35958
35959
35960   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
35961
35962   fi
35963
35964
35965
35966
35967
35968           GNULIB_MEMMEM=1
35969
35970
35971
35972
35973
35974 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
35975
35976
35977
35978
35979
35980
35981
35982
35983
35984   for ac_func in mempcpy
35985 do :
35986   ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
35987 if test "x$ac_cv_func_mempcpy" = xyes; then :
35988   cat >>confdefs.h <<_ACEOF
35989 #define HAVE_MEMPCPY 1
35990 _ACEOF
35991
35992 fi
35993 done
35994
35995   if test $ac_cv_func_mempcpy = no; then
35996     HAVE_MEMPCPY=0
35997   fi
35998
35999   if test $HAVE_MEMPCPY = 0; then
36000
36001
36002
36003
36004
36005
36006
36007
36008   gl_LIBOBJS="$gl_LIBOBJS mempcpy.$ac_objext"
36009
36010
36011   :
36012
36013   fi
36014
36015
36016
36017
36018
36019           GNULIB_MEMPCPY=1
36020
36021
36022
36023
36024
36025 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
36026
36027
36028
36029
36030
36031
36032
36033
36034   :
36035
36036
36037
36038
36039
36040   if test $ac_cv_have_decl_memrchr = no; then
36041     HAVE_DECL_MEMRCHR=0
36042   fi
36043
36044   for ac_func in memrchr
36045 do :
36046   ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
36047 if test "x$ac_cv_func_memrchr" = xyes; then :
36048   cat >>confdefs.h <<_ACEOF
36049 #define HAVE_MEMRCHR 1
36050 _ACEOF
36051
36052 fi
36053 done
36054
36055
36056   if test $ac_cv_func_memrchr = no; then
36057
36058
36059
36060
36061
36062
36063
36064
36065   gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
36066
36067     :
36068   fi
36069
36070
36071
36072
36073
36074           GNULIB_MEMRCHR=1
36075
36076
36077
36078
36079
36080 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
36081
36082
36083
36084
36085
36086
36087
36088
36089   for ac_func in mkdtemp
36090 do :
36091   ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
36092 if test "x$ac_cv_func_mkdtemp" = xyes; then :
36093   cat >>confdefs.h <<_ACEOF
36094 #define HAVE_MKDTEMP 1
36095 _ACEOF
36096
36097 fi
36098 done
36099
36100   if test $ac_cv_func_mkdtemp = no; then
36101     HAVE_MKDTEMP=0
36102   fi
36103
36104   if test $HAVE_MKDTEMP = 0; then
36105
36106
36107
36108
36109
36110
36111
36112
36113   gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
36114
36115     :
36116
36117   fi
36118
36119
36120
36121
36122
36123           GNULIB_MKDTEMP=1
36124
36125
36126
36127
36128
36129 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
36130
36131
36132
36133
36134
36135
36136
36137   :
36138
36139
36140
36141
36142
36143   if test $ac_cv_func_mkstemp = yes; then
36144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5
36145 $as_echo_n "checking for working mkstemp... " >&6; }
36146 if ${gl_cv_func_working_mkstemp+:} false; then :
36147   $as_echo_n "(cached) " >&6
36148 else
36149
36150         mkdir conftest.mkstemp
36151         if test "$cross_compiling" = yes; then :
36152   case "$host_os" in
36153                      # Guess yes on glibc systems.
36154              *-gnu*) gl_cv_func_working_mkstemp="guessing yes" ;;
36155                      # If we don't know, assume the worst.
36156              *)      gl_cv_func_working_mkstemp="guessing no" ;;
36157            esac
36158
36159 else
36160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36161 /* end confdefs.h.  */
36162 $ac_includes_default
36163 int
36164 main ()
36165 {
36166 int result = 0;
36167               int i;
36168               off_t large = (off_t) 4294967295u;
36169               if (large < 0)
36170                 large = 2147483647;
36171               umask (0);
36172               for (i = 0; i < 70; i++)
36173                 {
36174                   char templ[] = "conftest.mkstemp/coXXXXXX";
36175                   int (*mkstemp_function) (char *) = mkstemp;
36176                   int fd = mkstemp_function (templ);
36177                   if (fd < 0)
36178                     result |= 1;
36179                   else
36180                     {
36181                       struct stat st;
36182                       if (lseek (fd, large, SEEK_SET) != large)
36183                         result |= 2;
36184                       if (fstat (fd, &st) < 0)
36185                         result |= 4;
36186                       else if (st.st_mode & 0077)
36187                         result |= 8;
36188                       if (close (fd))
36189                         result |= 16;
36190                     }
36191                 }
36192               return result;
36193   ;
36194   return 0;
36195 }
36196 _ACEOF
36197 if ac_fn_c_try_run "$LINENO"; then :
36198   gl_cv_func_working_mkstemp=yes
36199 else
36200   gl_cv_func_working_mkstemp=no
36201 fi
36202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36203   conftest.$ac_objext conftest.beam conftest.$ac_ext
36204 fi
36205
36206         rm -rf conftest.mkstemp
36207
36208 fi
36209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5
36210 $as_echo "$gl_cv_func_working_mkstemp" >&6; }
36211     case "$gl_cv_func_working_mkstemp" in
36212       *yes) ;;
36213       *)
36214         REPLACE_MKSTEMP=1
36215         ;;
36216     esac
36217   else
36218     HAVE_MKSTEMP=0
36219   fi
36220
36221   if test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1; then
36222
36223
36224
36225
36226
36227
36228
36229
36230   gl_LIBOBJS="$gl_LIBOBJS mkstemp.$ac_objext"
36231
36232
36233
36234   fi
36235
36236
36237
36238
36239
36240           GNULIB_MKSTEMP=1
36241
36242
36243
36244
36245
36246 $as_echo "#define GNULIB_TEST_MKSTEMP 1" >>confdefs.h
36247
36248
36249
36250
36251
36252   :
36253
36254
36255
36256
36257
36258   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
36259     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
36260
36261 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
36262
36263   else
36264     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
36265   fi
36266
36267
36268   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
36269
36270
36271
36272
36273
36274
36275
36276
36277   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
36278
36279   fi
36280
36281
36282
36283   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
36284
36285
36286
36287
36288
36289
36290
36291
36292   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
36293
36294   fi
36295
36296
36297
36298
36299
36300
36301
36302   :
36303
36304
36305
36306
36307
36308
36309
36310  nanosleep_save_libs=$LIBS
36311
36312  # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
36313  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
36314  LIB_NANOSLEEP=
36315
36316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
36317 $as_echo_n "checking for library containing nanosleep... " >&6; }
36318 if ${ac_cv_search_nanosleep+:} false; then :
36319   $as_echo_n "(cached) " >&6
36320 else
36321   ac_func_search_save_LIBS=$LIBS
36322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36323 /* end confdefs.h.  */
36324
36325 /* Override any GCC internal prototype to avoid an error.
36326    Use char because int might match the return type of a GCC
36327    builtin and then its argument prototype would still apply.  */
36328 #ifdef __cplusplus
36329 extern "C"
36330 #endif
36331 char nanosleep ();
36332 int
36333 main ()
36334 {
36335 return nanosleep ();
36336   ;
36337   return 0;
36338 }
36339 _ACEOF
36340 for ac_lib in '' rt posix4; do
36341   if test -z "$ac_lib"; then
36342     ac_res="none required"
36343   else
36344     ac_res=-l$ac_lib
36345     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36346   fi
36347   if ac_fn_c_try_link "$LINENO"; then :
36348   ac_cv_search_nanosleep=$ac_res
36349 fi
36350 rm -f core conftest.err conftest.$ac_objext \
36351     conftest$ac_exeext
36352   if ${ac_cv_search_nanosleep+:} false; then :
36353   break
36354 fi
36355 done
36356 if ${ac_cv_search_nanosleep+:} false; then :
36357
36358 else
36359   ac_cv_search_nanosleep=no
36360 fi
36361 rm conftest.$ac_ext
36362 LIBS=$ac_func_search_save_LIBS
36363 fi
36364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
36365 $as_echo "$ac_cv_search_nanosleep" >&6; }
36366 ac_res=$ac_cv_search_nanosleep
36367 if test "$ac_res" != no; then :
36368   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36369   test "$ac_cv_search_nanosleep" = "none required" ||
36370                  LIB_NANOSLEEP=$ac_cv_search_nanosleep
36371 fi
36372
36373  if test "x$ac_cv_search_nanosleep" != xno; then
36374
36375
36376    if test $APPLE_UNIVERSAL_BUILD = 1; then
36377      # A universal build on Apple Mac OS X platforms.
36378      # The test result would be 'no (mishandles large arguments)' in 64-bit
36379      # mode but 'yes' in 32-bit mode. But we need a configuration result that
36380      # is valid in both modes.
36381      gl_cv_func_nanosleep='no (mishandles large arguments)'
36382    fi
36383
36384    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nanosleep" >&5
36385 $as_echo_n "checking for working nanosleep... " >&6; }
36386 if ${gl_cv_func_nanosleep+:} false; then :
36387   $as_echo_n "(cached) " >&6
36388 else
36389
36390      if test "$cross_compiling" = yes; then :
36391   case "$host_os" in           linux*) # Guess it halfway works when the kernel is Linux.
36392             gl_cv_func_nanosleep='guessing no (mishandles large arguments)' ;;
36393           *)      # If we don't know, assume the worst.
36394             gl_cv_func_nanosleep='guessing no' ;;
36395         esac
36396
36397 else
36398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36399 /* end confdefs.h.  */
36400
36401           #include <errno.h>
36402           #include <limits.h>
36403           #include <signal.h>
36404           #if HAVE_SYS_TIME_H
36405            #include <sys/time.h>
36406           #endif
36407           #include <time.h>
36408           #include <unistd.h>
36409           #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
36410           #define TYPE_MAXIMUM(t) \
36411             ((t) (! TYPE_SIGNED (t) \
36412                   ? (t) -1 \
36413                   : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
36414
36415           static void
36416           check_for_SIGALRM (int sig)
36417           {
36418             if (sig != SIGALRM)
36419               _exit (1);
36420           }
36421
36422           int
36423           main ()
36424           {
36425             static struct timespec ts_sleep;
36426             static struct timespec ts_remaining;
36427             static struct sigaction act;
36428             /* Test for major problems first.  */
36429             if (! nanosleep)
36430               return 2;
36431             act.sa_handler = check_for_SIGALRM;
36432             sigemptyset (&act.sa_mask);
36433             sigaction (SIGALRM, &act, NULL);
36434             ts_sleep.tv_sec = 0;
36435             ts_sleep.tv_nsec = 1;
36436             alarm (1);
36437             if (nanosleep (&ts_sleep, NULL) != 0)
36438               return 3;
36439             /* Test for a minor problem: the handling of large arguments.  */
36440             ts_sleep.tv_sec = TYPE_MAXIMUM (time_t);
36441             ts_sleep.tv_nsec = 999999999;
36442             alarm (1);
36443             if (nanosleep (&ts_sleep, &ts_remaining) != -1)
36444               return 4;
36445             if (errno != EINTR)
36446               return 5;
36447             if (ts_remaining.tv_sec <= TYPE_MAXIMUM (time_t) - 10)
36448               return 6;
36449             return 0;
36450           }
36451 _ACEOF
36452 if ac_fn_c_try_run "$LINENO"; then :
36453   gl_cv_func_nanosleep=yes
36454 else
36455   case $? in         4|5|6) gl_cv_func_nanosleep='no (mishandles large arguments)';;         *)   gl_cv_func_nanosleep=no;;
36456         esac
36457 fi
36458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36459   conftest.$ac_objext conftest.beam conftest.$ac_ext
36460 fi
36461
36462
36463 fi
36464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nanosleep" >&5
36465 $as_echo "$gl_cv_func_nanosleep" >&6; }
36466    case "$gl_cv_func_nanosleep" in
36467      *yes)
36468        REPLACE_NANOSLEEP=0
36469        ;;
36470      *)
36471        REPLACE_NANOSLEEP=1
36472        case "$gl_cv_func_nanosleep" in
36473          *"mishandles large arguments"*)
36474
36475 $as_echo "#define HAVE_BUG_BIG_NANOSLEEP 1" >>confdefs.h
36476
36477            ;;
36478          *)
36479            # The replacement uses select(). Add $LIBSOCKET to $LIB_NANOSLEEP.
36480            for ac_lib in $LIBSOCKET; do
36481              case " $LIB_NANOSLEEP " in
36482                *" $ac_lib "*) ;;
36483                *) LIB_NANOSLEEP="$LIB_NANOSLEEP $ac_lib";;
36484              esac
36485            done
36486            ;;
36487        esac
36488        ;;
36489    esac
36490  else
36491    HAVE_NANOSLEEP=0
36492  fi
36493  LIBS=$nanosleep_save_libs
36494
36495   if test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1; then
36496
36497
36498
36499
36500
36501
36502
36503
36504   gl_LIBOBJS="$gl_LIBOBJS nanosleep.$ac_objext"
36505
36506
36507
36508   :
36509
36510
36511
36512
36513
36514   :
36515
36516   fi
36517
36518
36519
36520
36521
36522           GNULIB_NANOSLEEP=1
36523
36524
36525
36526
36527
36528 $as_echo "#define GNULIB_TEST_NANOSLEEP 1" >>confdefs.h
36529
36530
36531
36532
36533
36534
36535
36536   :
36537
36538
36539
36540
36541
36542      if test $ac_cv_func_nl_langinfo = yes; then
36543     # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
36544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5
36545 $as_echo_n "checking whether YESEXPR works... " >&6; }
36546 if ${gl_cv_func_nl_langinfo_yesexpr_works+:} false; then :
36547   $as_echo_n "(cached) " >&6
36548 else
36549   if test "$cross_compiling" = yes; then :
36550
36551          case "$host_os" in
36552                    # Guess no on irix systems.
36553            irix*)  gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
36554                    # Guess yes elsewhere.
36555            *)      gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
36556          esac
36557
36558 else
36559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36560 /* end confdefs.h.  */
36561 #include <langinfo.h>
36562
36563 int
36564 main ()
36565 {
36566 return !*nl_langinfo(YESEXPR);
36567
36568   ;
36569   return 0;
36570 }
36571 _ACEOF
36572 if ac_fn_c_try_run "$LINENO"; then :
36573   gl_cv_func_nl_langinfo_yesexpr_works=yes
36574 else
36575   gl_cv_func_nl_langinfo_yesexpr_works=no
36576 fi
36577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36578   conftest.$ac_objext conftest.beam conftest.$ac_ext
36579 fi
36580
36581
36582 fi
36583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
36584 $as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
36585     case $gl_cv_func_nl_langinfo_yesexpr_works in
36586       *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
36587       *)    FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
36588     esac
36589
36590 cat >>confdefs.h <<_ACEOF
36591 #define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS
36592 _ACEOF
36593
36594     if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1 \
36595         && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
36596       :
36597     else
36598       REPLACE_NL_LANGINFO=1
36599
36600 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
36601
36602     fi
36603   else
36604     HAVE_NL_LANGINFO=0
36605   fi
36606
36607   if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
36608
36609
36610
36611
36612
36613
36614
36615
36616   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
36617
36618   fi
36619
36620
36621
36622
36623
36624           GNULIB_NL_LANGINFO=1
36625
36626
36627
36628
36629
36630 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
36631
36632
36633
36634
36635
36636
36637
36638
36639
36640
36641
36642           GNULIB_NONBLOCKING=1
36643
36644
36645
36646
36647
36648 $as_echo "#define GNULIB_TEST_NONBLOCKING 1" >>confdefs.h
36649
36650
36651
36652
36653
36654 cat >>confdefs.h <<_ACEOF
36655 #define GNULIB_NONBLOCKING 1
36656 _ACEOF
36657
36658
36659
36660
36661   GNULIB_STDIO_H_NONBLOCKING=1
36662
36663   GNULIB_UNISTD_H_NONBLOCKING=1
36664
36665
36666   case "$host_os" in
36667     mingw* | pw*)
36668       REPLACE_OPEN=1
36669       ;;
36670     *)
36671
36672   :
36673
36674
36675
36676
36677
36678       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
36679 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
36680 if ${gl_cv_func_open_slash+:} false; then :
36681   $as_echo_n "(cached) " >&6
36682 else
36683   # Assume that if we have lstat, we can also check symlinks.
36684           if test $ac_cv_func_lstat = yes; then
36685             touch conftest.tmp
36686             ln -s conftest.tmp conftest.lnk
36687           fi
36688           if test "$cross_compiling" = yes; then :
36689
36690              case "$host_os" in
36691                freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
36692                  gl_cv_func_open_slash="guessing no" ;;
36693                *)
36694                  gl_cv_func_open_slash="guessing yes" ;;
36695              esac
36696
36697 else
36698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36699 /* end confdefs.h.  */
36700
36701 #include <fcntl.h>
36702 #if HAVE_UNISTD_H
36703 # include <unistd.h>
36704 #endif
36705 int main ()
36706 {
36707   int result = 0;
36708 #if HAVE_LSTAT
36709   if (open ("conftest.lnk/", O_RDONLY) != -1)
36710     result |= 1;
36711 #endif
36712   if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
36713     result |= 2;
36714   return result;
36715 }
36716 _ACEOF
36717 if ac_fn_c_try_run "$LINENO"; then :
36718   gl_cv_func_open_slash=yes
36719 else
36720   gl_cv_func_open_slash=no
36721 fi
36722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36723   conftest.$ac_objext conftest.beam conftest.$ac_ext
36724 fi
36725
36726           rm -f conftest.sl conftest.tmp conftest.lnk
36727
36728 fi
36729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
36730 $as_echo "$gl_cv_func_open_slash" >&6; }
36731       case "$gl_cv_func_open_slash" in
36732         *no)
36733
36734 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
36735
36736           REPLACE_OPEN=1
36737           ;;
36738       esac
36739       ;;
36740   esac
36741
36742     if test $REPLACE_OPEN = 0; then
36743
36744
36745
36746   :
36747
36748
36749
36750
36751
36752   if test $ac_cv_func_fchdir = no; then
36753     HAVE_FCHDIR=0
36754   fi
36755
36756       if test $HAVE_FCHDIR = 0; then
36757         REPLACE_OPEN=1
36758       fi
36759     fi
36760
36761
36762     if test $REPLACE_OPEN = 0; then
36763
36764
36765
36766       if test $gl_cv_have_open_O_NONBLOCK != yes; then
36767         REPLACE_OPEN=1
36768       fi
36769     fi
36770
36771
36772   if test $REPLACE_OPEN = 1; then
36773
36774
36775
36776
36777
36778
36779
36780
36781   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
36782
36783
36784
36785   :
36786
36787   fi
36788
36789
36790
36791
36792
36793           GNULIB_OPEN=1
36794
36795
36796
36797
36798
36799 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
36800
36801
36802
36803
36804
36805
36806
36807   :
36808
36809
36810
36811
36812
36813
36814   case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
36815   yes+*yes)
36816     ;;
36817   yes+*)
36818     # Solaris 9 has *at functions, but uniformly mishandles trailing
36819     # slash in all of them.
36820     REPLACE_OPENAT=1
36821     ;;
36822   *)
36823     HAVE_OPENAT=0
36824     ;;
36825   esac
36826
36827   if test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1; then
36828
36829
36830
36831
36832
36833
36834
36835
36836   gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
36837
36838
36839
36840   :
36841
36842   fi
36843
36844
36845 cat >>confdefs.h <<_ACEOF
36846 #define GNULIB_OPENAT 1
36847 _ACEOF
36848
36849
36850
36851
36852
36853
36854           GNULIB_OPENAT=1
36855
36856
36857
36858
36859
36860 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
36861
36862
36863
36864
36865
36866
36867   for ac_func in opendir
36868 do :
36869   ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
36870 if test "x$ac_cv_func_opendir" = xyes; then :
36871   cat >>confdefs.h <<_ACEOF
36872 #define HAVE_OPENDIR 1
36873 _ACEOF
36874
36875 fi
36876 done
36877
36878   if test $ac_cv_func_opendir = no; then
36879     HAVE_OPENDIR=0
36880   fi
36881
36882
36883
36884
36885   :
36886
36887
36888
36889
36890
36891   if test $ac_cv_func_fchdir = no; then
36892     HAVE_FCHDIR=0
36893   fi
36894
36895     if test $HAVE_FCHDIR = 0; then
36896       if test $HAVE_OPENDIR = 1; then
36897         REPLACE_OPENDIR=1
36898       fi
36899     fi
36900
36901
36902   if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
36903
36904
36905
36906
36907
36908
36909
36910
36911   gl_LIBOBJS="$gl_LIBOBJS opendir.$ac_objext"
36912
36913   fi
36914
36915
36916
36917
36918
36919           GNULIB_OPENDIR=1
36920
36921
36922
36923
36924
36925 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
36926
36927
36928
36929
36930
36931   :
36932
36933
36934
36935
36936
36937
36938
36939
36940
36941
36942   for ac_func in raise
36943 do :
36944   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
36945 if test "x$ac_cv_func_raise" = xyes; then :
36946   cat >>confdefs.h <<_ACEOF
36947 #define HAVE_RAISE 1
36948 _ACEOF
36949
36950 fi
36951 done
36952
36953   if test $ac_cv_func_raise = no; then
36954     HAVE_RAISE=0
36955   else
36956     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
36957       REPLACE_RAISE=1
36958     fi
36959
36960
36961
36962
36963   if test $gl_cv_type_sigset_t = yes; then
36964     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
36965 if test "x$ac_cv_func_sigprocmask" = xyes; then :
36966   gl_cv_func_sigprocmask=1
36967 fi
36968
36969   fi
36970   if test -z "$gl_cv_func_sigprocmask"; then
36971     HAVE_POSIX_SIGNALBLOCKING=0
36972   fi
36973
36974       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
36975         :
36976       fi
36977
36978   fi
36979
36980   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
36981
36982
36983
36984
36985
36986
36987
36988
36989   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
36990
36991     :
36992   fi
36993
36994
36995
36996
36997
36998           GNULIB_RAISE=1
36999
37000
37001
37002
37003
37004 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
37005
37006
37007
37008
37009
37010
37011
37012   for ac_func in rawmemchr
37013 do :
37014   ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
37015 if test "x$ac_cv_func_rawmemchr" = xyes; then :
37016   cat >>confdefs.h <<_ACEOF
37017 #define HAVE_RAWMEMCHR 1
37018 _ACEOF
37019
37020 fi
37021 done
37022
37023   if test $ac_cv_func_rawmemchr = no; then
37024     HAVE_RAWMEMCHR=0
37025   fi
37026
37027   if test $HAVE_RAWMEMCHR = 0; then
37028
37029
37030
37031
37032
37033
37034
37035
37036   gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
37037
37038     :
37039   fi
37040
37041
37042
37043
37044
37045           GNULIB_RAWMEMCHR=1
37046
37047
37048
37049
37050
37051 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
37052
37053
37054
37055
37056
37057
37058   for ac_func in readdir
37059 do :
37060   ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir"
37061 if test "x$ac_cv_func_readdir" = xyes; then :
37062   cat >>confdefs.h <<_ACEOF
37063 #define HAVE_READDIR 1
37064 _ACEOF
37065
37066 fi
37067 done
37068
37069   if test $ac_cv_func_readdir = no; then
37070     HAVE_READDIR=0
37071   fi
37072
37073   if test $HAVE_READDIR = 0; then
37074
37075
37076
37077
37078
37079
37080
37081
37082   gl_LIBOBJS="$gl_LIBOBJS readdir.$ac_objext"
37083
37084   fi
37085
37086
37087
37088
37089
37090           GNULIB_READDIR=1
37091
37092
37093
37094
37095
37096 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
37097
37098
37099
37100
37101
37102
37103   :
37104
37105
37106
37107
37108
37109   if test $ac_cv_func_readlink = no; then
37110     HAVE_READLINK=0
37111   else
37112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
37113 $as_echo_n "checking whether readlink signature is correct... " >&6; }
37114 if ${gl_cv_decl_readlink_works+:} false; then :
37115   $as_echo_n "(cached) " >&6
37116 else
37117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37118 /* end confdefs.h.  */
37119 #include <unistd.h>
37120       /* Cause compilation failure if original declaration has wrong type.  */
37121       ssize_t readlink (const char *, char *, size_t);
37122 int
37123 main ()
37124 {
37125
37126   ;
37127   return 0;
37128 }
37129 _ACEOF
37130 if ac_fn_c_try_compile "$LINENO"; then :
37131   gl_cv_decl_readlink_works=yes
37132 else
37133   gl_cv_decl_readlink_works=no
37134 fi
37135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37136 fi
37137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
37138 $as_echo "$gl_cv_decl_readlink_works" >&6; }
37139             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
37140 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
37141 if ${gl_cv_func_readlink_works+:} false; then :
37142   $as_echo_n "(cached) " >&6
37143 else
37144   # We have readlink, so assume ln -s works.
37145        ln -s conftest.no-such conftest.link
37146        ln -s conftest.link conftest.lnk2
37147        if test "$cross_compiling" = yes; then :
37148   case "$host_os" in
37149                     # Guess yes on glibc systems.
37150             *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
37151                     # If we don't know, assume the worst.
37152             *)      gl_cv_func_readlink_works="guessing no" ;;
37153           esac
37154
37155 else
37156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37157 /* end confdefs.h.  */
37158 #include <unistd.h>
37159
37160 int
37161 main ()
37162 {
37163 char buf[20];
37164       return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
37165   ;
37166   return 0;
37167 }
37168 _ACEOF
37169 if ac_fn_c_try_run "$LINENO"; then :
37170   gl_cv_func_readlink_works=yes
37171 else
37172   gl_cv_func_readlink_works=no
37173 fi
37174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37175   conftest.$ac_objext conftest.beam conftest.$ac_ext
37176 fi
37177
37178       rm -f conftest.link conftest.lnk2
37179 fi
37180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
37181 $as_echo "$gl_cv_func_readlink_works" >&6; }
37182     case "$gl_cv_func_readlink_works" in
37183       *yes)
37184         if test "$gl_cv_decl_readlink_works" != yes; then
37185           REPLACE_READLINK=1
37186         fi
37187         ;;
37188       *)
37189
37190 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
37191
37192         REPLACE_READLINK=1
37193         ;;
37194     esac
37195   fi
37196
37197   if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
37198
37199
37200
37201
37202
37203
37204
37205
37206   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
37207
37208
37209   :
37210
37211   fi
37212
37213
37214
37215
37216
37217           GNULIB_READLINK=1
37218
37219
37220
37221
37222
37223 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
37224
37225
37226
37227
37228
37229
37230   if test $gl_cv_func_malloc_posix = yes; then
37231
37232 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
37233
37234   else
37235     REPLACE_REALLOC=1
37236   fi
37237
37238   if test $REPLACE_REALLOC = 1; then
37239
37240
37241
37242
37243
37244
37245
37246
37247   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
37248
37249   fi
37250
37251
37252
37253
37254
37255           GNULIB_REALLOC_POSIX=1
37256
37257
37258
37259
37260
37261 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
37262
37263
37264
37265
37266
37267 # Check whether --with-included-regex was given.
37268 if test "${with_included_regex+set}" = set; then :
37269   withval=$with_included_regex;
37270 fi
37271
37272
37273   case $with_included_regex in #(
37274   yes|no) ac_use_included_regex=$with_included_regex
37275         ;;
37276   '')
37277     # If the system regex support is good enough that it passes the
37278     # following run test, then default to *not* using the included regex.c.
37279     # If cross compiling, assume the test would fail and use the included
37280     # regex.c.
37281
37282   :
37283
37284
37285
37286
37287
37288
37289   :
37290
37291
37292
37293
37294
37295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
37296 $as_echo_n "checking for working re_compile_pattern... " >&6; }
37297 if ${gl_cv_func_re_compile_pattern_working+:} false; then :
37298   $as_echo_n "(cached) " >&6
37299 else
37300   if test "$cross_compiling" = yes; then :
37301          gl_cv_func_re_compile_pattern_working=no
37302 else
37303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37304 /* end confdefs.h.  */
37305 #include <regex.h>
37306
37307             #include <locale.h>
37308             #include <limits.h>
37309             #include <string.h>
37310
37311             #if defined M_CHECK_ACTION || HAVE_DECL_ALARM
37312             # include <signal.h>
37313             # include <unistd.h>
37314             #endif
37315
37316             #if HAVE_MALLOC_H
37317             # include <malloc.h>
37318             #endif
37319
37320             #ifdef M_CHECK_ACTION
37321             /* Exit with distinguishable exit code.  */
37322             static void sigabrt_no_core (int sig) { raise (SIGTERM); }
37323             #endif
37324
37325 int
37326 main ()
37327 {
37328 int result = 0;
37329             static struct re_pattern_buffer regex;
37330             unsigned char folded_chars[UCHAR_MAX + 1];
37331             int i;
37332             const char *s;
37333             struct re_registers regs;
37334
37335             /* Some builds of glibc go into an infinite loop on this
37336                test.  Use alarm to force death, and mallopt to avoid
37337                malloc recursion in diagnosing the corrupted heap. */
37338 #if HAVE_DECL_ALARM
37339             signal (SIGALRM, SIG_DFL);
37340             alarm (2);
37341 #endif
37342 #ifdef M_CHECK_ACTION
37343             signal (SIGABRT, sigabrt_no_core);
37344             mallopt (M_CHECK_ACTION, 2);
37345 #endif
37346
37347             if (setlocale (LC_ALL, "en_US.UTF-8"))
37348               {
37349                 {
37350                   /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
37351                      This test needs valgrind to catch the bug on Debian
37352                      GNU/Linux 3.1 x86, but it might catch the bug better
37353                      on other platforms and it shouldn't hurt to try the
37354                      test here.  */
37355                   static char const pat[] = "insert into";
37356                   static char const data[] =
37357                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
37358                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
37359                                  | RE_ICASE);
37360                   memset (&regex, 0, sizeof regex);
37361                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
37362                   if (s)
37363                     result |= 1;
37364                   else if (re_search (&regex, data, sizeof data - 1,
37365                                       0, sizeof data - 1, &regs)
37366                            != -1)
37367                     result |= 1;
37368                 }
37369
37370                 {
37371                   /* This test is from glibc bug 15078.
37372                      The test case is from Andreas Schwab in
37373                      <http://www.sourceware.org/ml/libc-alpha/2013-01/msg00967.html>.
37374                      */
37375                   static char const pat[] = "[^x]x";
37376                   static char const data[] =
37377                     /* <U1000><U103B><U103D><U1014><U103A><U102F><U1015><U103A> */
37378                     "\xe1\x80\x80"
37379                     "\xe1\x80\xbb"
37380                     "\xe1\x80\xbd"
37381                     "\xe1\x80\x94"
37382                     "\xe1\x80\xba"
37383                     "\xe1\x80\xaf"
37384                     "\xe1\x80\x95"
37385                     "\xe1\x80\xba"
37386                     "x";
37387                   re_set_syntax (0);
37388                   memset (&regex, 0, sizeof regex);
37389                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
37390                   if (s)
37391                     result |= 1;
37392                   else
37393                     {
37394                       i = re_search (&regex, data, sizeof data - 1,
37395                                      0, sizeof data - 1, 0);
37396                       if (i != 0 && i != 21)
37397                         result |= 1;
37398                     }
37399                 }
37400
37401                 if (! setlocale (LC_ALL, "C"))
37402                   return 1;
37403               }
37404
37405             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
37406             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
37407             memset (&regex, 0, sizeof regex);
37408             s = re_compile_pattern ("a[^x]b", 6, &regex);
37409             if (s)
37410               result |= 2;
37411             /* This should fail, but succeeds for glibc-2.5.  */
37412             else if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
37413               result |= 2;
37414
37415             /* This regular expression is from Spencer ere test number 75
37416                in grep-2.3.  */
37417             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
37418             memset (&regex, 0, sizeof regex);
37419             for (i = 0; i <= UCHAR_MAX; i++)
37420               folded_chars[i] = i;
37421             regex.translate = folded_chars;
37422             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
37423             /* This should fail with _Invalid character class name_ error.  */
37424             if (!s)
37425               result |= 4;
37426
37427             /* Ensure that [b-a] is diagnosed as invalid, when
37428                using RE_NO_EMPTY_RANGES. */
37429             re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
37430             memset (&regex, 0, sizeof regex);
37431             s = re_compile_pattern ("a[b-a]", 6, &regex);
37432             if (s == 0)
37433               result |= 8;
37434
37435             /* This should succeed, but does not for glibc-2.1.3.  */
37436             memset (&regex, 0, sizeof regex);
37437             s = re_compile_pattern ("{1", 2, &regex);
37438             if (s)
37439               result |= 8;
37440
37441             /* The following example is derived from a problem report
37442                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
37443             memset (&regex, 0, sizeof regex);
37444             s = re_compile_pattern ("[an\371]*n", 7, &regex);
37445             if (s)
37446               result |= 8;
37447             /* This should match, but does not for glibc-2.2.1.  */
37448             else if (re_match (&regex, "an", 2, 0, &regs) != 2)
37449               result |= 8;
37450
37451             memset (&regex, 0, sizeof regex);
37452             s = re_compile_pattern ("x", 1, &regex);
37453             if (s)
37454               result |= 8;
37455             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
37456             else if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
37457               result |= 8;
37458
37459             /* The version of regex.c in older versions of gnulib
37460                ignored RE_ICASE.  Detect that problem too.  */
37461             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
37462             memset (&regex, 0, sizeof regex);
37463             s = re_compile_pattern ("x", 1, &regex);
37464             if (s)
37465               result |= 16;
37466             else if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
37467               result |= 16;
37468
37469             /* Catch a bug reported by Vin Shelton in
37470                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
37471                */
37472             re_set_syntax (RE_SYNTAX_POSIX_BASIC
37473                            & ~RE_CONTEXT_INVALID_DUP
37474                            & ~RE_NO_EMPTY_RANGES);
37475             memset (&regex, 0, sizeof regex);
37476             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
37477             if (s)
37478               result |= 32;
37479
37480             /* REG_STARTEND was added to glibc on 2004-01-15.
37481                Reject older versions.  */
37482             if (! REG_STARTEND)
37483               result |= 64;
37484
37485 #if 0
37486             /* It would be nice to reject hosts whose regoff_t values are too
37487                narrow (including glibc on hosts with 64-bit ptrdiff_t and
37488                32-bit int), but we should wait until glibc implements this
37489                feature.  Otherwise, support for equivalence classes and
37490                multibyte collation symbols would always be broken except
37491                when compiling --without-included-regex.   */
37492             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
37493                 || sizeof (regoff_t) < sizeof (ssize_t))
37494               result |= 64;
37495 #endif
37496
37497             return result;
37498
37499   ;
37500   return 0;
37501 }
37502 _ACEOF
37503 if ac_fn_c_try_run "$LINENO"; then :
37504   gl_cv_func_re_compile_pattern_working=yes
37505 else
37506   gl_cv_func_re_compile_pattern_working=no
37507 fi
37508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37509   conftest.$ac_objext conftest.beam conftest.$ac_ext
37510 fi
37511
37512 fi
37513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
37514 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
37515     case $gl_cv_func_re_compile_pattern_working in #(
37516     yes) ac_use_included_regex=no;; #(
37517     no) ac_use_included_regex=yes;;
37518     esac
37519     ;;
37520   *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
37521     ;;
37522   esac
37523
37524   if test $ac_use_included_regex = yes; then
37525
37526 $as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
37527
37528
37529 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
37530
37531
37532 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
37533
37534
37535 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
37536
37537
37538 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
37539
37540
37541 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
37542
37543
37544 $as_echo "#define re_search rpl_re_search" >>confdefs.h
37545
37546
37547 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
37548
37549
37550 $as_echo "#define re_match rpl_re_match" >>confdefs.h
37551
37552
37553 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
37554
37555
37556 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
37557
37558
37559 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
37560
37561
37562 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
37563
37564
37565 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
37566
37567
37568 $as_echo "#define regexec rpl_regexec" >>confdefs.h
37569
37570
37571 $as_echo "#define regerror rpl_regerror" >>confdefs.h
37572
37573
37574 $as_echo "#define regfree rpl_regfree" >>confdefs.h
37575
37576   fi
37577
37578   if test $ac_use_included_regex = yes; then
37579
37580
37581
37582
37583
37584
37585
37586
37587   gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
37588
37589
37590
37591
37592
37593
37594
37595
37596   for ac_header in libintl.h
37597 do :
37598   ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
37599 if test "x$ac_cv_header_libintl_h" = xyes; then :
37600   cat >>confdefs.h <<_ACEOF
37601 #define HAVE_LIBINTL_H 1
37602 _ACEOF
37603
37604 fi
37605
37606 done
37607
37608
37609   :
37610
37611
37612
37613
37614
37615
37616
37617
37618   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
37619 "
37620 if test "x$ac_cv_have_decl_isblank" = xyes; then :
37621   ac_have_decl=1
37622 else
37623   ac_have_decl=0
37624 fi
37625
37626 cat >>confdefs.h <<_ACEOF
37627 #define HAVE_DECL_ISBLANK $ac_have_decl
37628 _ACEOF
37629
37630
37631   fi
37632
37633
37634
37635
37636   :
37637
37638
37639
37640
37641
37642
37643                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
37644 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
37645 if ${gl_cv_func_rename_slash_dst_works+:} false; then :
37646   $as_echo_n "(cached) " >&6
37647 else
37648   rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
37649     touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
37650       as_fn_error $? "cannot create temporary files" "$LINENO" 5
37651     # Assume that if we have lstat, we can also check symlinks.
37652     if test $ac_cv_func_lstat = yes; then
37653       ln -s conftest.f conftest.lnk
37654     fi
37655     if test "$cross_compiling" = yes; then :
37656         case "$host_os" in
37657                  # Guess yes on glibc systems.
37658          *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
37659                  # If we don't know, assume the worst.
37660          *)      gl_cv_func_rename_slash_dst_works="guessing no" ;;
37661        esac
37662
37663 else
37664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37665 /* end confdefs.h.  */
37666
37667 #        include <stdio.h>
37668 #        include <stdlib.h>
37669
37670 int
37671 main ()
37672 {
37673 int result = 0;
37674            if (rename ("conftest.f1", "conftest.f2/") == 0)
37675              result |= 1;
37676            if (rename ("conftest.d1", "conftest.d2/") != 0)
37677              result |= 2;
37678 #if HAVE_LSTAT
37679            if (rename ("conftest.f", "conftest.lnk/") == 0)
37680              result |= 4;
37681 #endif
37682            return result;
37683
37684   ;
37685   return 0;
37686 }
37687 _ACEOF
37688 if ac_fn_c_try_run "$LINENO"; then :
37689   gl_cv_func_rename_slash_dst_works=yes
37690 else
37691   gl_cv_func_rename_slash_dst_works=no
37692 fi
37693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37694   conftest.$ac_objext conftest.beam conftest.$ac_ext
37695 fi
37696
37697     rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
37698
37699 fi
37700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
37701 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
37702   case "$gl_cv_func_rename_slash_dst_works" in
37703     *yes) ;;
37704     *)
37705       REPLACE_RENAME=1
37706
37707 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
37708
37709       ;;
37710   esac
37711
37712             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
37713 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
37714 if ${gl_cv_func_rename_slash_src_works+:} false; then :
37715   $as_echo_n "(cached) " >&6
37716 else
37717   rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
37718     touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
37719       as_fn_error $? "cannot create temporary files" "$LINENO" 5
37720     # Assume that if we have lstat, we can also check symlinks.
37721     if test $ac_cv_func_lstat = yes; then
37722       ln -s conftest.f conftest.lnk
37723     fi
37724     if test "$cross_compiling" = yes; then :
37725         case "$host_os" in
37726                  # Guess yes on glibc systems.
37727          *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
37728                  # If we don't know, assume the worst.
37729          *)      gl_cv_func_rename_slash_src_works="guessing no" ;;
37730        esac
37731
37732 else
37733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37734 /* end confdefs.h.  */
37735
37736 #        include <stdio.h>
37737 #        include <stdlib.h>
37738
37739 int
37740 main ()
37741 {
37742 int result = 0;
37743            if (rename ("conftest.f1/", "conftest.d3") == 0)
37744              result |= 1;
37745            if (rename ("conftest.d1/", "conftest.d2") != 0)
37746              result |= 2;
37747 #if HAVE_LSTAT
37748            if (rename ("conftest.lnk/", "conftest.f") == 0)
37749              result |= 4;
37750 #endif
37751            return result;
37752
37753   ;
37754   return 0;
37755 }
37756 _ACEOF
37757 if ac_fn_c_try_run "$LINENO"; then :
37758   gl_cv_func_rename_slash_src_works=yes
37759 else
37760   gl_cv_func_rename_slash_src_works=no
37761 fi
37762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37763   conftest.$ac_objext conftest.beam conftest.$ac_ext
37764 fi
37765
37766     rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
37767
37768 fi
37769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
37770 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
37771   case "$gl_cv_func_rename_slash_src_works" in
37772     *yes) ;;
37773     *)
37774       REPLACE_RENAME=1
37775
37776 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
37777
37778       ;;
37779   esac
37780
37781
37782   :
37783
37784
37785
37786
37787
37788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
37789 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
37790 if ${gl_cv_func_rename_link_works+:} false; then :
37791   $as_echo_n "(cached) " >&6
37792 else
37793   if test $ac_cv_func_link = yes; then
37794        rm -rf conftest.f conftest.f1
37795        if touch conftest.f && ln conftest.f conftest.f1 &&
37796            set x `ls -i conftest.f conftest.f1` && test "" = ""; then
37797          if test "$cross_compiling" = yes; then :
37798              case "$host_os" in
37799                       # Guess yes on glibc systems.
37800               *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
37801                       # If we don't know, assume the worst.
37802               *)      gl_cv_func_rename_link_works="guessing no" ;;
37803             esac
37804
37805 else
37806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37807 /* end confdefs.h.  */
37808
37809 #             include <stdio.h>
37810 #             include <stdlib.h>
37811 #             include <unistd.h>
37812
37813 int
37814 main ()
37815 {
37816 int result = 0;
37817                 if (rename ("conftest.f", "conftest.f1"))
37818                   result |= 1;
37819                 if (unlink ("conftest.f1"))
37820                   result |= 2;
37821                 if (rename ("conftest.f", "conftest.f"))
37822                   result |= 4;
37823                 if (rename ("conftest.f1", "conftest.f1") == 0)
37824                   result |= 8;
37825                 return result;
37826
37827   ;
37828   return 0;
37829 }
37830 _ACEOF
37831 if ac_fn_c_try_run "$LINENO"; then :
37832   gl_cv_func_rename_link_works=yes
37833 else
37834   gl_cv_func_rename_link_works=no
37835 fi
37836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37837   conftest.$ac_objext conftest.beam conftest.$ac_ext
37838 fi
37839
37840        else
37841          gl_cv_func_rename_link_works="guessing no"
37842        fi
37843        rm -rf conftest.f conftest.f1
37844      else
37845        gl_cv_func_rename_link_works=yes
37846      fi
37847
37848 fi
37849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
37850 $as_echo "$gl_cv_func_rename_link_works" >&6; }
37851   case "$gl_cv_func_rename_link_works" in
37852     *yes) ;;
37853     *)
37854       REPLACE_RENAME=1
37855
37856 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
37857
37858       ;;
37859   esac
37860
37861           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
37862 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
37863 if ${gl_cv_func_rename_dest_works+:} false; then :
37864   $as_echo_n "(cached) " >&6
37865 else
37866   rm -rf conftest.f conftest.d1 conftest.d2
37867     touch conftest.f && mkdir conftest.d1 conftest.d2 ||
37868       as_fn_error $? "cannot create temporary files" "$LINENO" 5
37869     if test "$cross_compiling" = yes; then :
37870         case "$host_os" in
37871                  # Guess yes on glibc systems.
37872          *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
37873                  # If we don't know, assume the worst.
37874          *)      gl_cv_func_rename_dest_works="guessing no" ;;
37875        esac
37876
37877 else
37878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37879 /* end confdefs.h.  */
37880
37881 #        include <stdio.h>
37882 #        include <stdlib.h>
37883
37884 int
37885 main ()
37886 {
37887 int result = 0;
37888            if (rename ("conftest.d1", "conftest.d2") != 0)
37889              result |= 1;
37890            if (rename ("conftest.d2", "conftest.f") == 0)
37891              result |= 2;
37892            return result;
37893
37894   ;
37895   return 0;
37896 }
37897 _ACEOF
37898 if ac_fn_c_try_run "$LINENO"; then :
37899   gl_cv_func_rename_dest_works=yes
37900 else
37901   gl_cv_func_rename_dest_works=no
37902 fi
37903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37904   conftest.$ac_objext conftest.beam conftest.$ac_ext
37905 fi
37906
37907     rm -rf conftest.f conftest.d1 conftest.d2
37908
37909 fi
37910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
37911 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
37912   case "$gl_cv_func_rename_dest_works" in
37913     *yes) ;;
37914     *)
37915       REPLACE_RENAME=1
37916
37917 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
37918
37919       ;;
37920   esac
37921
37922   if test $REPLACE_RENAME = 1; then
37923
37924
37925
37926
37927
37928
37929
37930
37931   gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
37932
37933   fi
37934
37935
37936
37937
37938
37939           GNULIB_RENAME=1
37940
37941
37942
37943
37944
37945 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
37946
37947
37948
37949
37950
37951
37952   for ac_func in rewinddir
37953 do :
37954   ac_fn_c_check_func "$LINENO" "rewinddir" "ac_cv_func_rewinddir"
37955 if test "x$ac_cv_func_rewinddir" = xyes; then :
37956   cat >>confdefs.h <<_ACEOF
37957 #define HAVE_REWINDDIR 1
37958 _ACEOF
37959
37960 fi
37961 done
37962
37963   if test $ac_cv_func_rewinddir = no; then
37964     HAVE_REWINDDIR=0
37965   fi
37966
37967   if test $HAVE_REWINDDIR = 0; then
37968
37969
37970
37971
37972
37973
37974
37975
37976   gl_LIBOBJS="$gl_LIBOBJS rewinddir.$ac_objext"
37977
37978   fi
37979
37980
37981
37982
37983
37984           GNULIB_REWINDDIR=1
37985
37986
37987
37988
37989
37990 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
37991
37992
37993
37994
37995
37996
37997   :
37998
37999
38000
38001
38002
38003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
38004 $as_echo_n "checking whether rmdir works... " >&6; }
38005 if ${gl_cv_func_rmdir_works+:} false; then :
38006   $as_echo_n "(cached) " >&6
38007 else
38008   mkdir conftest.dir
38009      touch conftest.file
38010      if test "$cross_compiling" = yes; then :
38011   case "$host_os" in
38012                   # Guess yes on glibc systems.
38013           *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
38014                   # If we don't know, assume the worst.
38015           *)      gl_cv_func_rmdir_works="guessing no" ;;
38016         esac
38017
38018 else
38019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38020 /* end confdefs.h.  */
38021 #include <stdio.h>
38022            #include <errno.h>
38023            #if HAVE_UNISTD_H
38024            # include <unistd.h>
38025            #else /* on Windows with MSVC */
38026            # include <direct.h>
38027            #endif
38028
38029 int
38030 main ()
38031 {
38032 int result = 0;
38033       if (!rmdir ("conftest.file/"))
38034         result |= 1;
38035       else if (errno != ENOTDIR)
38036         result |= 2;
38037       if (!rmdir ("conftest.dir/./"))
38038         result |= 4;
38039       return result;
38040
38041   ;
38042   return 0;
38043 }
38044 _ACEOF
38045 if ac_fn_c_try_run "$LINENO"; then :
38046   gl_cv_func_rmdir_works=yes
38047 else
38048   gl_cv_func_rmdir_works=no
38049 fi
38050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38051   conftest.$ac_objext conftest.beam conftest.$ac_ext
38052 fi
38053
38054      rm -rf conftest.dir conftest.file
38055 fi
38056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
38057 $as_echo "$gl_cv_func_rmdir_works" >&6; }
38058   case "$gl_cv_func_rmdir_works" in
38059     *yes) ;;
38060     *)
38061       REPLACE_RMDIR=1
38062       ;;
38063   esac
38064
38065   if test $REPLACE_RMDIR = 1; then
38066
38067
38068
38069
38070
38071
38072
38073
38074   gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
38075
38076   fi
38077
38078
38079
38080
38081
38082           GNULIB_RMDIR=1
38083
38084
38085
38086
38087
38088 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
38089
38090
38091
38092
38093
38094
38095   :
38096
38097
38098
38099
38100
38101
38102
38103
38104   :
38105
38106
38107
38108
38109
38110
38111
38112
38113
38114
38115
38116   :
38117
38118
38119
38120
38121
38122   if test $ac_cv_func_secure_getenv = no; then
38123     HAVE_SECURE_GETENV=0
38124   fi
38125
38126   if test $HAVE_SECURE_GETENV = 0; then
38127
38128
38129
38130
38131
38132
38133
38134
38135   gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
38136
38137
38138   for ac_func in __secure_getenv
38139 do :
38140   ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
38141 if test "x$ac_cv_func___secure_getenv" = xyes; then :
38142   cat >>confdefs.h <<_ACEOF
38143 #define HAVE___SECURE_GETENV 1
38144 _ACEOF
38145
38146 fi
38147 done
38148
38149   if test $ac_cv_func___secure_getenv = no; then
38150     for ac_func in issetugid
38151 do :
38152   ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
38153 if test "x$ac_cv_func_issetugid" = xyes; then :
38154   cat >>confdefs.h <<_ACEOF
38155 #define HAVE_ISSETUGID 1
38156 _ACEOF
38157
38158 fi
38159 done
38160
38161   fi
38162
38163   fi
38164
38165
38166
38167
38168
38169           GNULIB_SECURE_GETENV=1
38170
38171
38172
38173
38174
38175 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
38176
38177
38178
38179
38180
38181
38182   if test "$ac_cv_header_winsock2_h" = yes; then
38183     REPLACE_SELECT=1
38184   else
38185
38186   :
38187
38188
38189
38190
38191
38192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
38193 $as_echo_n "checking whether select supports a 0 argument... " >&6; }
38194 if ${gl_cv_func_select_supports0+:} false; then :
38195   $as_echo_n "(cached) " >&6
38196 else
38197
38198         if test "$cross_compiling" = yes; then :
38199
38200            case "$host_os" in
38201                        # Guess no on Interix.
38202              interix*) gl_cv_func_select_supports0="guessing no";;
38203                        # Guess yes otherwise.
38204              *)        gl_cv_func_select_supports0="guessing yes";;
38205            esac
38206
38207 else
38208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38209 /* end confdefs.h.  */
38210
38211 #include <sys/types.h>
38212 #include <sys/time.h>
38213 #if HAVE_SYS_SELECT_H
38214 #include <sys/select.h>
38215 #endif
38216 int main ()
38217 {
38218   struct timeval timeout;
38219   timeout.tv_sec = 0;
38220   timeout.tv_usec = 5;
38221   return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
38222 }
38223 _ACEOF
38224 if ac_fn_c_try_run "$LINENO"; then :
38225   gl_cv_func_select_supports0=yes
38226 else
38227   gl_cv_func_select_supports0=no
38228 fi
38229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38230   conftest.$ac_objext conftest.beam conftest.$ac_ext
38231 fi
38232
38233
38234 fi
38235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
38236 $as_echo "$gl_cv_func_select_supports0" >&6; }
38237     case "$gl_cv_func_select_supports0" in
38238       *yes) ;;
38239       *) REPLACE_SELECT=1 ;;
38240     esac
38241
38242         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
38243 $as_echo_n "checking whether select detects invalid fds... " >&6; }
38244 if ${gl_cv_func_select_detects_ebadf+:} false; then :
38245   $as_echo_n "(cached) " >&6
38246 else
38247
38248         if test "$cross_compiling" = yes; then :
38249
38250            case "$host_os" in
38251                     # Guess yes on glibc systems.
38252             *-gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;;
38253                     # If we don't know, assume the worst.
38254             *)      gl_cv_func_select_detects_ebadf="guessing no" ;;
38255            esac
38256
38257 else
38258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38259 /* end confdefs.h.  */
38260
38261 #include <sys/types.h>
38262 #include <sys/time.h>
38263 #if HAVE_SYS_SELECT_H
38264 # include <sys/select.h>
38265 #endif
38266 #include <unistd.h>
38267 #include <errno.h>
38268
38269 int
38270 main ()
38271 {
38272
38273   fd_set set;
38274   dup2(0, 16);
38275   FD_ZERO(&set);
38276   FD_SET(16, &set);
38277   close(16);
38278   struct timeval timeout;
38279   timeout.tv_sec = 0;
38280   timeout.tv_usec = 5;
38281   return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
38282
38283   ;
38284   return 0;
38285 }
38286 _ACEOF
38287 if ac_fn_c_try_run "$LINENO"; then :
38288   gl_cv_func_select_detects_ebadf=yes
38289 else
38290   gl_cv_func_select_detects_ebadf=no
38291 fi
38292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38293   conftest.$ac_objext conftest.beam conftest.$ac_ext
38294 fi
38295
38296
38297 fi
38298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
38299 $as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
38300     case $gl_cv_func_select_detects_ebadf in
38301       *yes) ;;
38302       *) REPLACE_SELECT=1 ;;
38303     esac
38304   fi
38305
38306     LIB_SELECT="$LIBSOCKET"
38307   if test $REPLACE_SELECT = 1; then
38308     case "$host_os" in
38309       mingw*)
38310                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38311 /* end confdefs.h.  */
38312
38313 #define WIN32_LEAN_AND_MEAN
38314 #include <windows.h>
38315 int
38316 main ()
38317 {
38318   MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
38319   return 0;
38320 }
38321 _ACEOF
38322 if ac_fn_c_try_link "$LINENO"; then :
38323
38324 else
38325   LIB_SELECT="$LIB_SELECT -luser32"
38326 fi
38327 rm -f core conftest.err conftest.$ac_objext \
38328     conftest$ac_exeext conftest.$ac_ext
38329         ;;
38330     esac
38331   fi
38332
38333
38334   if test $REPLACE_SELECT = 1; then
38335
38336
38337
38338
38339
38340
38341
38342
38343   gl_LIBOBJS="$gl_LIBOBJS select.$ac_objext"
38344
38345   fi
38346
38347
38348
38349
38350
38351           GNULIB_SELECT=1
38352
38353
38354
38355
38356
38357 $as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h
38358
38359
38360
38361
38362
38363      if test $ac_cv_func_setenv = no; then
38364     HAVE_SETENV=0
38365   else
38366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
38367 $as_echo_n "checking whether setenv validates arguments... " >&6; }
38368 if ${gl_cv_func_setenv_works+:} false; then :
38369   $as_echo_n "(cached) " >&6
38370 else
38371   if test "$cross_compiling" = yes; then :
38372   case "$host_os" in
38373                  # Guess yes on glibc systems.
38374          *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
38375                  # If we don't know, assume the worst.
38376          *)      gl_cv_func_setenv_works="guessing no" ;;
38377        esac
38378
38379 else
38380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38381 /* end confdefs.h.  */
38382
38383        #include <stdlib.h>
38384        #include <errno.h>
38385        #include <string.h>
38386
38387 int
38388 main ()
38389 {
38390
38391        int result = 0;
38392        {
38393          if (setenv ("", "", 0) != -1)
38394            result |= 1;
38395          else if (errno != EINVAL)
38396            result |= 2;
38397        }
38398        {
38399          if (setenv ("a", "=", 1) != 0)
38400            result |= 4;
38401          else if (strcmp (getenv ("a"), "=") != 0)
38402            result |= 8;
38403        }
38404        return result;
38405
38406   ;
38407   return 0;
38408 }
38409 _ACEOF
38410 if ac_fn_c_try_run "$LINENO"; then :
38411   gl_cv_func_setenv_works=yes
38412 else
38413   gl_cv_func_setenv_works=no
38414 fi
38415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38416   conftest.$ac_objext conftest.beam conftest.$ac_ext
38417 fi
38418
38419 fi
38420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
38421 $as_echo "$gl_cv_func_setenv_works" >&6; }
38422     case "$gl_cv_func_setenv_works" in
38423       *yes) ;;
38424       *)
38425         REPLACE_SETENV=1
38426         ;;
38427     esac
38428   fi
38429
38430   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
38431
38432
38433
38434
38435
38436
38437
38438
38439   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
38440
38441   fi
38442
38443
38444
38445
38446
38447           GNULIB_SETENV=1
38448
38449
38450
38451
38452
38453 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
38454
38455
38456
38457
38458
38459
38460   :
38461
38462
38463
38464
38465
38466   if test $ac_cv_func_sigaction = yes; then
38467     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
38468 "
38469 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
38470
38471 cat >>confdefs.h <<_ACEOF
38472 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
38473 _ACEOF
38474
38475
38476 fi
38477
38478     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
38479       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
38480     fi
38481   else
38482     HAVE_SIGACTION=0
38483   fi
38484
38485   if test $HAVE_SIGACTION = 0; then
38486
38487
38488
38489
38490
38491
38492
38493
38494   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
38495
38496
38497
38498
38499
38500
38501
38502   :
38503
38504
38505
38506
38507
38508
38509
38510
38511   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
38512 #include <signal.h>
38513
38514 "
38515 if test "x$ac_cv_type_siginfo_t" = xyes; then :
38516
38517 cat >>confdefs.h <<_ACEOF
38518 #define HAVE_SIGINFO_T 1
38519 _ACEOF
38520
38521
38522 fi
38523
38524   if test $ac_cv_type_siginfo_t = no; then
38525     HAVE_SIGINFO_T=0
38526   fi
38527
38528   fi
38529
38530
38531
38532
38533
38534           GNULIB_SIGACTION=1
38535
38536
38537
38538
38539
38540 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
38541
38542
38543
38544
38545
38546
38547
38548
38549
38550
38551
38552
38553
38554
38555      if test $gl_cv_have_include_next = yes; then
38556        gl_cv_next_signal_h='<'signal.h'>'
38557      else
38558        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
38559 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
38560 if ${gl_cv_next_signal_h+:} false; then :
38561   $as_echo_n "(cached) " >&6
38562 else
38563
38564
38565
38566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38567 /* end confdefs.h.  */
38568 #include <signal.h>
38569 _ACEOF
38570                 case "$host_os" in
38571     aix*) gl_absname_cpp="$ac_cpp -C" ;;
38572     *)    gl_absname_cpp="$ac_cpp" ;;
38573   esac
38574
38575   case "$host_os" in
38576     mingw*)
38577                                           gl_dirsep_regex='[/\\]'
38578       ;;
38579     *)
38580       gl_dirsep_regex='\/'
38581       ;;
38582   esac
38583       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
38584   gl_header_literal_regex=`echo 'signal.h' \
38585                            | sed -e "$gl_make_literal_regex_sed"`
38586   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
38587       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
38588       s|^/[^/]|//&|
38589       p
38590       q
38591     }'
38592
38593         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38594   sed -n "$gl_absolute_header_sed"`
38595
38596            gl_header=$gl_cv_absolute_signal_h
38597            gl_cv_next_signal_h='"'$gl_header'"'
38598
38599
38600 fi
38601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
38602 $as_echo "$gl_cv_next_signal_h" >&6; }
38603      fi
38604      NEXT_SIGNAL_H=$gl_cv_next_signal_h
38605
38606      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38607        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38608        gl_next_as_first_directive='<'signal.h'>'
38609      else
38610        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38611        gl_next_as_first_directive=$gl_cv_next_signal_h
38612      fi
38613      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
38614
38615
38616
38617
38618
38619 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
38620 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
38621   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
38622 #include <signal.h>
38623
38624 "
38625 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
38626
38627 else
38628   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
38629 fi
38630
38631
38632
38633
38634
38635
38636
38637   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
38638 #include <signal.h>
38639
38640 "
38641 if test "x$ac_cv_type_sighandler_t" = xyes; then :
38642
38643 else
38644   HAVE_SIGHANDLER_T=0
38645 fi
38646
38647
38648
38649     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
38650     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
38651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
38652 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
38653 if eval \${$as_gl_Symbol+:} false; then :
38654   $as_echo_n "(cached) " >&6
38655 else
38656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38657 /* end confdefs.h.  */
38658 #include <signal.h>
38659
38660 int
38661 main ()
38662 {
38663 #undef $gl_func
38664   (void) $gl_func;
38665   ;
38666   return 0;
38667 }
38668 _ACEOF
38669 if ac_fn_c_try_compile "$LINENO"; then :
38670   eval "$as_gl_Symbol=yes"
38671 else
38672   eval "$as_gl_Symbol=no"
38673 fi
38674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38675 fi
38676 eval ac_res=\$$as_gl_Symbol
38677                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
38678 $as_echo "$ac_res" >&6; }
38679     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
38680   cat >>confdefs.h <<_ACEOF
38681 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
38682 _ACEOF
38683
38684                      eval ac_cv_have_decl_$gl_func=yes
38685 fi
38686       done
38687
38688
38689
38690
38691
38692   if test $gl_cv_type_sigset_t = yes; then
38693     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
38694 if test "x$ac_cv_func_sigprocmask" = xyes; then :
38695   gl_cv_func_sigprocmask=1
38696 fi
38697
38698   fi
38699   if test -z "$gl_cv_func_sigprocmask"; then
38700     HAVE_POSIX_SIGNALBLOCKING=0
38701   fi
38702
38703   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
38704
38705
38706
38707
38708
38709
38710
38711
38712   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
38713
38714     :
38715   fi
38716
38717
38718
38719
38720
38721           GNULIB_SIGPROCMASK=1
38722
38723
38724
38725
38726
38727 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
38728
38729
38730
38731
38732   for ac_header in stdint.h
38733 do :
38734   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
38735 if test "x$ac_cv_header_stdint_h" = xyes; then :
38736   cat >>confdefs.h <<_ACEOF
38737 #define HAVE_STDINT_H 1
38738 _ACEOF
38739
38740 fi
38741
38742 done
38743
38744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
38745 $as_echo_n "checking for SIZE_MAX... " >&6; }
38746 if ${gl_cv_size_max+:} false; then :
38747   $as_echo_n "(cached) " >&6
38748 else
38749
38750     gl_cv_size_max=
38751     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38752 /* end confdefs.h.  */
38753
38754 #include <limits.h>
38755 #if HAVE_STDINT_H
38756 #include <stdint.h>
38757 #endif
38758 #ifdef SIZE_MAX
38759 Found it
38760 #endif
38761
38762 _ACEOF
38763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38764   $EGREP "Found it" >/dev/null 2>&1; then :
38765   gl_cv_size_max=yes
38766 fi
38767 rm -f conftest*
38768
38769     if test -z "$gl_cv_size_max"; then
38770                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
38771 #include <limits.h>"; then :
38772
38773 else
38774   size_t_bits_minus_1=
38775 fi
38776
38777       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
38778
38779 else
38780   fits_in_uint=
38781 fi
38782
38783       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
38784         if test $fits_in_uint = 1; then
38785                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38786 /* end confdefs.h.  */
38787 #include <stddef.h>
38788                  extern size_t foo;
38789                  extern unsigned long foo;
38790
38791 int
38792 main ()
38793 {
38794
38795   ;
38796   return 0;
38797 }
38798 _ACEOF
38799 if ac_fn_c_try_compile "$LINENO"; then :
38800   fits_in_uint=0
38801 fi
38802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38803         fi
38804                                 if test $fits_in_uint = 1; then
38805           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
38806         else
38807           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
38808         fi
38809       else
38810                 gl_cv_size_max='((size_t)~(size_t)0)'
38811       fi
38812     fi
38813
38814 fi
38815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
38816 $as_echo "$gl_cv_size_max" >&6; }
38817   if test "$gl_cv_size_max" != yes; then
38818
38819 cat >>confdefs.h <<_ACEOF
38820 #define SIZE_MAX $gl_cv_size_max
38821 _ACEOF
38822
38823   fi
38824
38825
38826
38827
38828                ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
38829 "
38830 if test "x$ac_cv_have_decl_sleep" = xyes; then :
38831   ac_have_decl=1
38832 else
38833   ac_have_decl=0
38834 fi
38835
38836 cat >>confdefs.h <<_ACEOF
38837 #define HAVE_DECL_SLEEP $ac_have_decl
38838 _ACEOF
38839
38840
38841   :
38842
38843
38844
38845
38846
38847   if test $ac_cv_have_decl_sleep != yes; then
38848     HAVE_SLEEP=0
38849   else
38850         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
38851 $as_echo_n "checking for working sleep... " >&6; }
38852 if ${gl_cv_func_sleep_works+:} false; then :
38853   $as_echo_n "(cached) " >&6
38854 else
38855   if test "$cross_compiling" = yes; then :
38856   case "$host_os" in
38857                  # Guess yes on glibc systems.
38858          *-gnu*) gl_cv_func_sleep_works="guessing yes" ;;
38859                  # If we don't know, assume the worst.
38860          *)      gl_cv_func_sleep_works="guessing no" ;;
38861        esac
38862
38863 else
38864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38865 /* end confdefs.h.  */
38866
38867 #include <errno.h>
38868 #include <unistd.h>
38869 #include <signal.h>
38870 static void
38871 handle_alarm (int sig)
38872 {
38873   if (sig != SIGALRM)
38874     _exit (2);
38875 }
38876
38877 int
38878 main ()
38879 {
38880
38881     /* Failure to compile this test due to missing alarm is okay,
38882        since all such platforms (mingw) also lack sleep.  */
38883     unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days.  */
38884     unsigned int remaining;
38885     signal (SIGALRM, handle_alarm);
38886     alarm (1);
38887     remaining = sleep (pentecost);
38888     if (remaining > pentecost)
38889       return 3;
38890     if (remaining <= pentecost - 10)
38891       return 4;
38892     return 0;
38893
38894   ;
38895   return 0;
38896 }
38897 _ACEOF
38898 if ac_fn_c_try_run "$LINENO"; then :
38899   gl_cv_func_sleep_works=yes
38900 else
38901   gl_cv_func_sleep_works=no
38902 fi
38903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38904   conftest.$ac_objext conftest.beam conftest.$ac_ext
38905 fi
38906
38907 fi
38908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
38909 $as_echo "$gl_cv_func_sleep_works" >&6; }
38910     case "$gl_cv_func_sleep_works" in
38911       *yes) ;;
38912       *)
38913         REPLACE_SLEEP=1
38914         ;;
38915     esac
38916   fi
38917
38918   if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
38919
38920
38921
38922
38923
38924
38925
38926
38927   gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
38928
38929   fi
38930
38931
38932
38933
38934
38935           GNULIB_SLEEP=1
38936
38937
38938
38939
38940
38941 $as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
38942
38943
38944
38945
38946
38947
38948
38949
38950   :
38951
38952
38953
38954
38955
38956   if test $ac_cv_header_sys_socket_h != yes; then
38957                     for ac_header in winsock2.h
38958 do :
38959   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
38960 if test "x$ac_cv_header_winsock2_h" = xyes; then :
38961   cat >>confdefs.h <<_ACEOF
38962 #define HAVE_WINSOCK2_H 1
38963 _ACEOF
38964
38965 fi
38966
38967 done
38968
38969   fi
38970   if test "$ac_cv_header_winsock2_h" = yes; then
38971     HAVE_WINSOCK2_H=1
38972     UNISTD_H_HAVE_WINSOCK2_H=1
38973     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
38974   else
38975     HAVE_WINSOCK2_H=0
38976   fi
38977
38978    LIBSOCKET=
38979   if test $HAVE_WINSOCK2_H = 1; then
38980         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
38981 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
38982 if ${gl_cv_func_wsastartup+:} false; then :
38983   $as_echo_n "(cached) " >&6
38984 else
38985
38986       gl_save_LIBS="$LIBS"
38987       LIBS="$LIBS -lws2_32"
38988       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38989 /* end confdefs.h.  */
38990
38991 #ifdef HAVE_WINSOCK2_H
38992 # include <winsock2.h>
38993 #endif
38994 int
38995 main ()
38996 {
38997
38998           WORD wVersionRequested = MAKEWORD(1, 1);
38999           WSADATA wsaData;
39000           int err = WSAStartup(wVersionRequested, &wsaData);
39001           WSACleanup ();
39002   ;
39003   return 0;
39004 }
39005 _ACEOF
39006 if ac_fn_c_try_link "$LINENO"; then :
39007   gl_cv_func_wsastartup=yes
39008 else
39009   gl_cv_func_wsastartup=no
39010 fi
39011 rm -f core conftest.err conftest.$ac_objext \
39012     conftest$ac_exeext conftest.$ac_ext
39013       LIBS="$gl_save_LIBS"
39014
39015 fi
39016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
39017 $as_echo "$gl_cv_func_wsastartup" >&6; }
39018     if test "$gl_cv_func_wsastartup" = "yes"; then
39019
39020 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
39021
39022       LIBSOCKET='-lws2_32'
39023     fi
39024   else
39025                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
39026 $as_echo_n "checking for library containing setsockopt... " >&6; }
39027 if ${gl_cv_lib_socket+:} false; then :
39028   $as_echo_n "(cached) " >&6
39029 else
39030
39031       gl_cv_lib_socket=
39032       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39033 /* end confdefs.h.  */
39034 extern
39035 #ifdef __cplusplus
39036 "C"
39037 #endif
39038 char setsockopt();
39039 int
39040 main ()
39041 {
39042 setsockopt();
39043   ;
39044   return 0;
39045 }
39046 _ACEOF
39047 if ac_fn_c_try_link "$LINENO"; then :
39048
39049 else
39050   gl_save_LIBS="$LIBS"
39051          LIBS="$gl_save_LIBS -lsocket"
39052          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39053 /* end confdefs.h.  */
39054 extern
39055 #ifdef __cplusplus
39056 "C"
39057 #endif
39058 char setsockopt();
39059 int
39060 main ()
39061 {
39062 setsockopt();
39063   ;
39064   return 0;
39065 }
39066 _ACEOF
39067 if ac_fn_c_try_link "$LINENO"; then :
39068   gl_cv_lib_socket="-lsocket"
39069 fi
39070 rm -f core conftest.err conftest.$ac_objext \
39071     conftest$ac_exeext conftest.$ac_ext
39072          if test -z "$gl_cv_lib_socket"; then
39073            LIBS="$gl_save_LIBS -lnetwork"
39074            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39075 /* end confdefs.h.  */
39076 extern
39077 #ifdef __cplusplus
39078 "C"
39079 #endif
39080 char setsockopt();
39081 int
39082 main ()
39083 {
39084 setsockopt();
39085   ;
39086   return 0;
39087 }
39088 _ACEOF
39089 if ac_fn_c_try_link "$LINENO"; then :
39090   gl_cv_lib_socket="-lnetwork"
39091 fi
39092 rm -f core conftest.err conftest.$ac_objext \
39093     conftest$ac_exeext conftest.$ac_ext
39094            if test -z "$gl_cv_lib_socket"; then
39095              LIBS="$gl_save_LIBS -lnet"
39096              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39097 /* end confdefs.h.  */
39098 extern
39099 #ifdef __cplusplus
39100 "C"
39101 #endif
39102 char setsockopt();
39103 int
39104 main ()
39105 {
39106 setsockopt();
39107   ;
39108   return 0;
39109 }
39110 _ACEOF
39111 if ac_fn_c_try_link "$LINENO"; then :
39112   gl_cv_lib_socket="-lnet"
39113 fi
39114 rm -f core conftest.err conftest.$ac_objext \
39115     conftest$ac_exeext conftest.$ac_ext
39116            fi
39117          fi
39118          LIBS="$gl_save_LIBS"
39119
39120 fi
39121 rm -f core conftest.err conftest.$ac_objext \
39122     conftest$ac_exeext conftest.$ac_ext
39123       if test -z "$gl_cv_lib_socket"; then
39124         gl_cv_lib_socket="none needed"
39125       fi
39126
39127 fi
39128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
39129 $as_echo "$gl_cv_lib_socket" >&6; }
39130     if test "$gl_cv_lib_socket" != "none needed"; then
39131       LIBSOCKET="$gl_cv_lib_socket"
39132     fi
39133   fi
39134
39135
39136
39137
39138
39139
39140   :
39141
39142
39143      ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
39144 /* <sys/types.h> is not needed according to POSIX, but the
39145    <sys/socket.h> in i386-unknown-freebsd4.10 and
39146    powerpc-apple-darwin5.5 required it. */
39147 #include <sys/types.h>
39148 #if HAVE_SYS_SOCKET_H
39149 # include <sys/socket.h>
39150 #elif HAVE_WS2TCPIP_H
39151 # include <ws2tcpip.h>
39152 #endif
39153
39154 "
39155 if test "x$ac_cv_type_socklen_t" = xyes; then :
39156
39157 else
39158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
39159 $as_echo_n "checking for socklen_t equivalent... " >&6; }
39160       if ${gl_cv_socklen_t_equiv+:} false; then :
39161   $as_echo_n "(cached) " >&6
39162 else
39163   # Systems have either "struct sockaddr *" or
39164          # "void *" as the second argument to getpeername
39165          gl_cv_socklen_t_equiv=
39166          for arg2 in "struct sockaddr" void; do
39167            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
39168              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39169 /* end confdefs.h.  */
39170 #include <sys/types.h>
39171                    #include <sys/socket.h>
39172
39173                    int getpeername (int, $arg2 *, $t *);
39174 int
39175 main ()
39176 {
39177 $t len;
39178                   getpeername (0, 0, &len);
39179   ;
39180   return 0;
39181 }
39182 _ACEOF
39183 if ac_fn_c_try_compile "$LINENO"; then :
39184   gl_cv_socklen_t_equiv="$t"
39185 fi
39186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39187              test "$gl_cv_socklen_t_equiv" != "" && break
39188            done
39189            test "$gl_cv_socklen_t_equiv" != "" && break
39190          done
39191
39192 fi
39193
39194       if test "$gl_cv_socklen_t_equiv" = ""; then
39195         as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
39196       fi
39197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
39198 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
39199
39200 cat >>confdefs.h <<_ACEOF
39201 #define socklen_t $gl_cv_socklen_t_equiv
39202 _ACEOF
39203
39204 fi
39205
39206
39207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
39208 $as_echo_n "checking for ssize_t... " >&6; }
39209 if ${gt_cv_ssize_t+:} false; then :
39210   $as_echo_n "(cached) " >&6
39211 else
39212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39213 /* end confdefs.h.  */
39214 #include <sys/types.h>
39215 int
39216 main ()
39217 {
39218 int x = sizeof (ssize_t *) + sizeof (ssize_t);
39219             return !x;
39220   ;
39221   return 0;
39222 }
39223 _ACEOF
39224 if ac_fn_c_try_compile "$LINENO"; then :
39225   gt_cv_ssize_t=yes
39226 else
39227   gt_cv_ssize_t=no
39228 fi
39229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39230 fi
39231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
39232 $as_echo "$gt_cv_ssize_t" >&6; }
39233   if test $gt_cv_ssize_t = no; then
39234
39235 $as_echo "#define ssize_t int" >>confdefs.h
39236
39237   fi
39238
39239
39240
39241
39242   :
39243
39244
39245
39246
39247
39248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
39249 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
39250 if ${gl_cv_func_stat_dir_slash+:} false; then :
39251   $as_echo_n "(cached) " >&6
39252 else
39253   if test "$cross_compiling" = yes; then :
39254   case $host_os in
39255             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
39256             *) gl_cv_func_stat_dir_slash="guessing yes";;
39257           esac
39258 else
39259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39260 /* end confdefs.h.  */
39261 #include <sys/stat.h>
39262
39263 int
39264 main ()
39265 {
39266 struct stat st; return stat (".", &st) != stat ("./", &st);
39267   ;
39268   return 0;
39269 }
39270 _ACEOF
39271 if ac_fn_c_try_run "$LINENO"; then :
39272   gl_cv_func_stat_dir_slash=yes
39273 else
39274   gl_cv_func_stat_dir_slash=no
39275 fi
39276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39277   conftest.$ac_objext conftest.beam conftest.$ac_ext
39278 fi
39279
39280 fi
39281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
39282 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
39283         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
39284 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
39285 if ${gl_cv_func_stat_file_slash+:} false; then :
39286   $as_echo_n "(cached) " >&6
39287 else
39288   touch conftest.tmp
39289        # Assume that if we have lstat, we can also check symlinks.
39290        if test $ac_cv_func_lstat = yes; then
39291          ln -s conftest.tmp conftest.lnk
39292        fi
39293        if test "$cross_compiling" = yes; then :
39294   case "$host_os" in
39295                     # Guess yes on glibc systems.
39296             *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
39297                     # If we don't know, assume the worst.
39298             *)      gl_cv_func_stat_file_slash="guessing no" ;;
39299           esac
39300
39301 else
39302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39303 /* end confdefs.h.  */
39304 #include <sys/stat.h>
39305
39306 int
39307 main ()
39308 {
39309 int result = 0;
39310       struct stat st;
39311       if (!stat ("conftest.tmp/", &st))
39312         result |= 1;
39313 #if HAVE_LSTAT
39314       if (!stat ("conftest.lnk/", &st))
39315         result |= 2;
39316 #endif
39317       return result;
39318
39319   ;
39320   return 0;
39321 }
39322 _ACEOF
39323 if ac_fn_c_try_run "$LINENO"; then :
39324   gl_cv_func_stat_file_slash=yes
39325 else
39326   gl_cv_func_stat_file_slash=no
39327 fi
39328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39329   conftest.$ac_objext conftest.beam conftest.$ac_ext
39330 fi
39331
39332        rm -f conftest.tmp conftest.lnk
39333 fi
39334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
39335 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
39336   case $gl_cv_func_stat_dir_slash in
39337     *no) REPLACE_STAT=1
39338
39339 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
39340 ;;
39341   esac
39342   case $gl_cv_func_stat_file_slash in
39343     *no) REPLACE_STAT=1
39344
39345 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
39346 ;;
39347   esac
39348
39349   if test $REPLACE_STAT = 1; then
39350
39351
39352
39353
39354
39355
39356
39357
39358   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
39359
39360     :
39361   fi
39362
39363
39364
39365
39366
39367           GNULIB_STAT=1
39368
39369
39370
39371
39372
39373 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
39374
39375
39376
39377
39378
39379
39380   :
39381
39382
39383
39384
39385
39386
39387   ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
39388      #include <sys/stat.h>
39389 "
39390 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
39391
39392 cat >>confdefs.h <<_ACEOF
39393 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
39394 _ACEOF
39395
39396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
39397 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
39398 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
39399   $as_echo_n "(cached) " >&6
39400 else
39401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39402 /* end confdefs.h.  */
39403
39404             #include <sys/types.h>
39405             #include <sys/stat.h>
39406             #if HAVE_SYS_TIME_H
39407             # include <sys/time.h>
39408             #endif
39409             #include <time.h>
39410             struct timespec ts;
39411             struct stat st;
39412
39413 int
39414 main ()
39415 {
39416
39417             st.st_atim = ts;
39418
39419   ;
39420   return 0;
39421 }
39422 _ACEOF
39423 if ac_fn_c_try_compile "$LINENO"; then :
39424   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
39425 else
39426   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
39427 fi
39428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39429 fi
39430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
39431 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
39432      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
39433
39434 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
39435
39436      fi
39437 else
39438   ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
39439         #include <sys/stat.h>
39440 "
39441 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
39442
39443 cat >>confdefs.h <<_ACEOF
39444 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
39445 _ACEOF
39446
39447
39448 else
39449   ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
39450            #include <sys/stat.h>
39451 "
39452 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
39453
39454 cat >>confdefs.h <<_ACEOF
39455 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
39456 _ACEOF
39457
39458
39459 else
39460   ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
39461               #include <sys/stat.h>
39462 "
39463 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
39464
39465 cat >>confdefs.h <<_ACEOF
39466 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
39467 _ACEOF
39468
39469
39470 fi
39471
39472 fi
39473
39474 fi
39475
39476 fi
39477
39478
39479
39480
39481
39482   :
39483
39484
39485
39486
39487
39488   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
39489      #include <sys/stat.h>
39490 "
39491 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
39492
39493 cat >>confdefs.h <<_ACEOF
39494 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
39495 _ACEOF
39496
39497
39498 else
39499   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
39500         #include <sys/stat.h>
39501 "
39502 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
39503
39504 cat >>confdefs.h <<_ACEOF
39505 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
39506 _ACEOF
39507
39508
39509 else
39510   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
39511           #include <sys/stat.h>
39512 "
39513 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
39514
39515 cat >>confdefs.h <<_ACEOF
39516 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
39517 _ACEOF
39518
39519
39520 fi
39521
39522 fi
39523
39524 fi
39525
39526
39527
39528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
39529 $as_echo_n "checking for working stdalign.h... " >&6; }
39530 if ${gl_cv_header_working_stdalign_h+:} false; then :
39531   $as_echo_n "(cached) " >&6
39532 else
39533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39534 /* end confdefs.h.  */
39535 #include <stdalign.h>
39536             #include <stddef.h>
39537
39538             /* Test that alignof yields a result consistent with offsetof.
39539                This catches GCC bug 52023
39540                <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
39541             #ifdef __cplusplus
39542                template <class t> struct alignof_helper { char a; t b; };
39543             # define ao(type) offsetof (alignof_helper<type>, b)
39544             #else
39545             # define ao(type) offsetof (struct { char a; type b; }, b)
39546             #endif
39547             char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
39548             char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
39549             char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
39550
39551             /* Test _Alignas only on platforms where gnulib can help.  */
39552             #if \
39553                 ((defined __cplusplus && 201103 <= __cplusplus) \
39554                  || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
39555                  || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
39556               struct alignas_test { char c; char alignas (8) alignas_8; };
39557               char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
39558                                 ? 1 : -1];
39559             #endif
39560
39561 int
39562 main ()
39563 {
39564
39565   ;
39566   return 0;
39567 }
39568 _ACEOF
39569 if ac_fn_c_try_compile "$LINENO"; then :
39570   gl_cv_header_working_stdalign_h=yes
39571 else
39572   gl_cv_header_working_stdalign_h=no
39573 fi
39574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39575 fi
39576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
39577 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
39578
39579   if test $gl_cv_header_working_stdalign_h = yes; then
39580     STDALIGN_H=''
39581   else
39582     STDALIGN_H='stdalign.h'
39583   fi
39584
39585
39586    if test -n "$STDALIGN_H"; then
39587   GL_GENERATE_STDALIGN_H_TRUE=
39588   GL_GENERATE_STDALIGN_H_FALSE='#'
39589 else
39590   GL_GENERATE_STDALIGN_H_TRUE='#'
39591   GL_GENERATE_STDALIGN_H_FALSE=
39592 fi
39593
39594
39595
39596   STDARG_H=''
39597   NEXT_STDARG_H='<stdarg.h>'
39598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
39599 $as_echo_n "checking for va_copy... " >&6; }
39600   if ${gl_cv_func_va_copy+:} false; then :
39601   $as_echo_n "(cached) " >&6
39602 else
39603
39604     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39605 /* end confdefs.h.  */
39606 #include <stdarg.h>
39607 int
39608 main ()
39609 {
39610
39611 #ifndef va_copy
39612 void (*func) (va_list, va_list) = va_copy;
39613 #endif
39614
39615   ;
39616   return 0;
39617 }
39618 _ACEOF
39619 if ac_fn_c_try_compile "$LINENO"; then :
39620   gl_cv_func_va_copy=yes
39621 else
39622   gl_cv_func_va_copy=no
39623 fi
39624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39625 fi
39626
39627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
39628 $as_echo "$gl_cv_func_va_copy" >&6; }
39629   if test $gl_cv_func_va_copy = no; then
39630                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39631 /* end confdefs.h.  */
39632 #if defined _AIX && !defined __GNUC__
39633         AIX vaccine
39634        #endif
39635
39636 _ACEOF
39637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39638   $EGREP "vaccine" >/dev/null 2>&1; then :
39639   gl_aixcc=yes
39640 else
39641   gl_aixcc=no
39642 fi
39643 rm -f conftest*
39644
39645     if test $gl_aixcc = yes; then
39646             STDARG_H=stdarg.h
39647
39648
39649
39650
39651
39652
39653
39654
39655      if test $gl_cv_have_include_next = yes; then
39656        gl_cv_next_stdarg_h='<'stdarg.h'>'
39657      else
39658        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
39659 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
39660 if ${gl_cv_next_stdarg_h+:} false; then :
39661   $as_echo_n "(cached) " >&6
39662 else
39663
39664
39665
39666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39667 /* end confdefs.h.  */
39668 #include <stdarg.h>
39669 _ACEOF
39670                 case "$host_os" in
39671     aix*) gl_absname_cpp="$ac_cpp -C" ;;
39672     *)    gl_absname_cpp="$ac_cpp" ;;
39673   esac
39674
39675   case "$host_os" in
39676     mingw*)
39677                                           gl_dirsep_regex='[/\\]'
39678       ;;
39679     *)
39680       gl_dirsep_regex='\/'
39681       ;;
39682   esac
39683       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
39684   gl_header_literal_regex=`echo 'stdarg.h' \
39685                            | sed -e "$gl_make_literal_regex_sed"`
39686   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
39687       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
39688       s|^/[^/]|//&|
39689       p
39690       q
39691     }'
39692
39693         gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39694   sed -n "$gl_absolute_header_sed"`
39695
39696            gl_header=$gl_cv_absolute_stdarg_h
39697            gl_cv_next_stdarg_h='"'$gl_header'"'
39698
39699
39700 fi
39701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
39702 $as_echo "$gl_cv_next_stdarg_h" >&6; }
39703      fi
39704      NEXT_STDARG_H=$gl_cv_next_stdarg_h
39705
39706      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39707        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39708        gl_next_as_first_directive='<'stdarg.h'>'
39709      else
39710        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39711        gl_next_as_first_directive=$gl_cv_next_stdarg_h
39712      fi
39713      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
39714
39715
39716
39717
39718             if test "$gl_cv_next_stdarg_h" = '""'; then
39719         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
39720         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
39721       fi
39722     else
39723
39724   saved_as_echo_n="$as_echo_n"
39725   as_echo_n=':'
39726   if ${gl_cv_func___va_copy+:} false; then :
39727   $as_echo_n "(cached) " >&6
39728 else
39729
39730         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39731 /* end confdefs.h.  */
39732 #include <stdarg.h>
39733 int
39734 main ()
39735 {
39736
39737 #ifndef __va_copy
39738 error, bail out
39739 #endif
39740
39741   ;
39742   return 0;
39743 }
39744 _ACEOF
39745 if ac_fn_c_try_compile "$LINENO"; then :
39746   gl_cv_func___va_copy=yes
39747 else
39748   gl_cv_func___va_copy=no
39749 fi
39750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39751 fi
39752
39753   as_echo_n="$saved_as_echo_n"
39754
39755       if test $gl_cv_func___va_copy = yes; then
39756
39757 $as_echo "#define va_copy __va_copy" >>confdefs.h
39758
39759       else
39760
39761
39762 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
39763
39764       fi
39765     fi
39766   fi
39767
39768    if test -n "$STDARG_H"; then
39769   GL_GENERATE_STDARG_H_TRUE=
39770   GL_GENERATE_STDARG_H_FALSE='#'
39771 else
39772   GL_GENERATE_STDARG_H_TRUE='#'
39773   GL_GENERATE_STDARG_H_FALSE=
39774 fi
39775
39776
39777
39778
39779
39780
39781   # Define two additional variables used in the Makefile substitution.
39782
39783   if test "$ac_cv_header_stdbool_h" = yes; then
39784     STDBOOL_H=''
39785   else
39786     STDBOOL_H='stdbool.h'
39787   fi
39788
39789    if test -n "$STDBOOL_H"; then
39790   GL_GENERATE_STDBOOL_H_TRUE=
39791   GL_GENERATE_STDBOOL_H_FALSE='#'
39792 else
39793   GL_GENERATE_STDBOOL_H_TRUE='#'
39794   GL_GENERATE_STDBOOL_H_FALSE=
39795 fi
39796
39797
39798   if test "$ac_cv_type__Bool" = yes; then
39799     HAVE__BOOL=1
39800   else
39801     HAVE__BOOL=0
39802   fi
39803
39804
39805
39806
39807
39808   STDDEF_H=
39809   if test $gt_cv_c_wchar_t = no; then
39810     HAVE_WCHAR_T=0
39811     STDDEF_H=stddef.h
39812   fi
39813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
39814 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
39815 if ${gl_cv_decl_null_works+:} false; then :
39816   $as_echo_n "(cached) " >&6
39817 else
39818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39819 /* end confdefs.h.  */
39820 #include <stddef.h>
39821       int test[2 * (sizeof NULL == sizeof (void *)) -1];
39822
39823 int
39824 main ()
39825 {
39826
39827   ;
39828   return 0;
39829 }
39830 _ACEOF
39831 if ac_fn_c_try_compile "$LINENO"; then :
39832   gl_cv_decl_null_works=yes
39833 else
39834   gl_cv_decl_null_works=no
39835 fi
39836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39837 fi
39838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
39839 $as_echo "$gl_cv_decl_null_works" >&6; }
39840   if test $gl_cv_decl_null_works = no; then
39841     REPLACE_NULL=1
39842     STDDEF_H=stddef.h
39843   fi
39844
39845    if test -n "$STDDEF_H"; then
39846   GL_GENERATE_STDDEF_H_TRUE=
39847   GL_GENERATE_STDDEF_H_FALSE='#'
39848 else
39849   GL_GENERATE_STDDEF_H_TRUE='#'
39850   GL_GENERATE_STDDEF_H_FALSE=
39851 fi
39852
39853   if test -n "$STDDEF_H"; then
39854
39855
39856
39857
39858
39859
39860
39861
39862      if test $gl_cv_have_include_next = yes; then
39863        gl_cv_next_stddef_h='<'stddef.h'>'
39864      else
39865        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
39866 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
39867 if ${gl_cv_next_stddef_h+:} false; then :
39868   $as_echo_n "(cached) " >&6
39869 else
39870
39871
39872
39873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39874 /* end confdefs.h.  */
39875 #include <stddef.h>
39876 _ACEOF
39877                 case "$host_os" in
39878     aix*) gl_absname_cpp="$ac_cpp -C" ;;
39879     *)    gl_absname_cpp="$ac_cpp" ;;
39880   esac
39881
39882   case "$host_os" in
39883     mingw*)
39884                                           gl_dirsep_regex='[/\\]'
39885       ;;
39886     *)
39887       gl_dirsep_regex='\/'
39888       ;;
39889   esac
39890       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
39891   gl_header_literal_regex=`echo 'stddef.h' \
39892                            | sed -e "$gl_make_literal_regex_sed"`
39893   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
39894       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
39895       s|^/[^/]|//&|
39896       p
39897       q
39898     }'
39899
39900         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39901   sed -n "$gl_absolute_header_sed"`
39902
39903            gl_header=$gl_cv_absolute_stddef_h
39904            gl_cv_next_stddef_h='"'$gl_header'"'
39905
39906
39907 fi
39908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
39909 $as_echo "$gl_cv_next_stddef_h" >&6; }
39910      fi
39911      NEXT_STDDEF_H=$gl_cv_next_stddef_h
39912
39913      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39914        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39915        gl_next_as_first_directive='<'stddef.h'>'
39916      else
39917        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39918        gl_next_as_first_directive=$gl_cv_next_stddef_h
39919      fi
39920      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
39921
39922
39923
39924
39925   fi
39926
39927
39928
39929
39930
39931
39932
39933
39934
39935
39936
39937
39938      if test $gl_cv_have_include_next = yes; then
39939        gl_cv_next_stdio_h='<'stdio.h'>'
39940      else
39941        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
39942 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
39943 if ${gl_cv_next_stdio_h+:} false; then :
39944   $as_echo_n "(cached) " >&6
39945 else
39946
39947
39948
39949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39950 /* end confdefs.h.  */
39951 #include <stdio.h>
39952 _ACEOF
39953                 case "$host_os" in
39954     aix*) gl_absname_cpp="$ac_cpp -C" ;;
39955     *)    gl_absname_cpp="$ac_cpp" ;;
39956   esac
39957
39958   case "$host_os" in
39959     mingw*)
39960                                           gl_dirsep_regex='[/\\]'
39961       ;;
39962     *)
39963       gl_dirsep_regex='\/'
39964       ;;
39965   esac
39966       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
39967   gl_header_literal_regex=`echo 'stdio.h' \
39968                            | sed -e "$gl_make_literal_regex_sed"`
39969   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
39970       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
39971       s|^/[^/]|//&|
39972       p
39973       q
39974     }'
39975
39976         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39977   sed -n "$gl_absolute_header_sed"`
39978
39979            gl_header=$gl_cv_absolute_stdio_h
39980            gl_cv_next_stdio_h='"'$gl_header'"'
39981
39982
39983 fi
39984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
39985 $as_echo "$gl_cv_next_stdio_h" >&6; }
39986      fi
39987      NEXT_STDIO_H=$gl_cv_next_stdio_h
39988
39989      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39990        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39991        gl_next_as_first_directive='<'stdio.h'>'
39992      else
39993        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39994        gl_next_as_first_directive=$gl_cv_next_stdio_h
39995      fi
39996      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
39997
39998
39999
40000
40001
40002       GNULIB_FSCANF=1
40003
40004
40005 cat >>confdefs.h <<_ACEOF
40006 #define GNULIB_FSCANF 1
40007 _ACEOF
40008
40009
40010   GNULIB_SCANF=1
40011
40012
40013 cat >>confdefs.h <<_ACEOF
40014 #define GNULIB_SCANF 1
40015 _ACEOF
40016
40017
40018   GNULIB_FGETC=1
40019   GNULIB_GETC=1
40020   GNULIB_GETCHAR=1
40021   GNULIB_FGETS=1
40022   GNULIB_FREAD=1
40023
40024
40025
40026
40027     if test $gl_cv_have_nonblocking != yes; then
40028       REPLACE_STDIO_READ_FUNCS=1
40029
40030
40031
40032
40033
40034
40035
40036
40037   gl_LIBOBJS="$gl_LIBOBJS stdio-read.$ac_objext"
40038
40039     fi
40040
40041
40042       GNULIB_FPRINTF=1
40043   GNULIB_PRINTF=1
40044   GNULIB_VFPRINTF=1
40045   GNULIB_VPRINTF=1
40046   GNULIB_FPUTC=1
40047   GNULIB_PUTC=1
40048   GNULIB_PUTCHAR=1
40049   GNULIB_FPUTS=1
40050   GNULIB_PUTS=1
40051   GNULIB_FWRITE=1
40052
40053
40054
40055
40056
40057     if test $gl_cv_have_nonblocking != yes; then
40058       REPLACE_STDIO_WRITE_FUNCS=1
40059
40060
40061
40062
40063
40064
40065
40066
40067   gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext"
40068
40069     fi
40070
40071
40072
40073     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
40074     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
40075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
40076 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
40077 if eval \${$as_gl_Symbol+:} false; then :
40078   $as_echo_n "(cached) " >&6
40079 else
40080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40081 /* end confdefs.h.  */
40082 #include <stdio.h>
40083
40084 int
40085 main ()
40086 {
40087 #undef $gl_func
40088   (void) $gl_func;
40089   ;
40090   return 0;
40091 }
40092 _ACEOF
40093 if ac_fn_c_try_compile "$LINENO"; then :
40094   eval "$as_gl_Symbol=yes"
40095 else
40096   eval "$as_gl_Symbol=no"
40097 fi
40098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40099 fi
40100 eval ac_res=\$$as_gl_Symbol
40101                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
40102 $as_echo "$ac_res" >&6; }
40103     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
40104   cat >>confdefs.h <<_ACEOF
40105 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
40106 _ACEOF
40107
40108                      eval ac_cv_have_decl_$gl_func=yes
40109 fi
40110       done
40111
40112
40113
40114
40115
40116
40117
40118
40119
40120
40121
40122
40123      if test $gl_cv_have_include_next = yes; then
40124        gl_cv_next_stdlib_h='<'stdlib.h'>'
40125      else
40126        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
40127 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
40128 if ${gl_cv_next_stdlib_h+:} false; then :
40129   $as_echo_n "(cached) " >&6
40130 else
40131
40132
40133
40134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40135 /* end confdefs.h.  */
40136 #include <stdlib.h>
40137 _ACEOF
40138                 case "$host_os" in
40139     aix*) gl_absname_cpp="$ac_cpp -C" ;;
40140     *)    gl_absname_cpp="$ac_cpp" ;;
40141   esac
40142
40143   case "$host_os" in
40144     mingw*)
40145                                           gl_dirsep_regex='[/\\]'
40146       ;;
40147     *)
40148       gl_dirsep_regex='\/'
40149       ;;
40150   esac
40151       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
40152   gl_header_literal_regex=`echo 'stdlib.h' \
40153                            | sed -e "$gl_make_literal_regex_sed"`
40154   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
40155       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
40156       s|^/[^/]|//&|
40157       p
40158       q
40159     }'
40160
40161         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
40162   sed -n "$gl_absolute_header_sed"`
40163
40164            gl_header=$gl_cv_absolute_stdlib_h
40165            gl_cv_next_stdlib_h='"'$gl_header'"'
40166
40167
40168 fi
40169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
40170 $as_echo "$gl_cv_next_stdlib_h" >&6; }
40171      fi
40172      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
40173
40174      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
40175        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
40176        gl_next_as_first_directive='<'stdlib.h'>'
40177      else
40178        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
40179        gl_next_as_first_directive=$gl_cv_next_stdlib_h
40180      fi
40181      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
40182
40183
40184
40185
40186
40187
40188     for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt     initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps     posix_openpt ptsname ptsname_r random random_r realpath rpmatch     secure_getenv setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
40189     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
40190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
40191 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
40192 if eval \${$as_gl_Symbol+:} false; then :
40193   $as_echo_n "(cached) " >&6
40194 else
40195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40196 /* end confdefs.h.  */
40197 #include <stdlib.h>
40198 #if HAVE_SYS_LOADAVG_H
40199 # include <sys/loadavg.h>
40200 #endif
40201 #if HAVE_RANDOM_H
40202 # include <random.h>
40203 #endif
40204
40205 int
40206 main ()
40207 {
40208 #undef $gl_func
40209   (void) $gl_func;
40210   ;
40211   return 0;
40212 }
40213 _ACEOF
40214 if ac_fn_c_try_compile "$LINENO"; then :
40215   eval "$as_gl_Symbol=yes"
40216 else
40217   eval "$as_gl_Symbol=no"
40218 fi
40219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40220 fi
40221 eval ac_res=\$$as_gl_Symbol
40222                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
40223 $as_echo "$ac_res" >&6; }
40224     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
40225   cat >>confdefs.h <<_ACEOF
40226 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
40227 _ACEOF
40228
40229                      eval ac_cv_have_decl_$gl_func=yes
40230 fi
40231       done
40232
40233
40234
40235
40236
40237   for ac_func in strcasecmp
40238 do :
40239   ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
40240 if test "x$ac_cv_func_strcasecmp" = xyes; then :
40241   cat >>confdefs.h <<_ACEOF
40242 #define HAVE_STRCASECMP 1
40243 _ACEOF
40244
40245 fi
40246 done
40247
40248   if test $ac_cv_func_strcasecmp = no; then
40249     HAVE_STRCASECMP=0
40250   fi
40251
40252
40253
40254   for ac_func in strncasecmp
40255 do :
40256   ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
40257 if test "x$ac_cv_func_strncasecmp" = xyes; then :
40258   cat >>confdefs.h <<_ACEOF
40259 #define HAVE_STRNCASECMP 1
40260 _ACEOF
40261
40262 fi
40263 done
40264
40265   if test $ac_cv_func_strncasecmp = yes; then
40266     HAVE_STRNCASECMP=1
40267   else
40268     HAVE_STRNCASECMP=0
40269   fi
40270   ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
40271 if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
40272   ac_have_decl=1
40273 else
40274   ac_have_decl=0
40275 fi
40276
40277 cat >>confdefs.h <<_ACEOF
40278 #define HAVE_DECL_STRNCASECMP $ac_have_decl
40279 _ACEOF
40280
40281   if test $ac_cv_have_decl_strncasecmp = no; then
40282     HAVE_DECL_STRNCASECMP=0
40283   fi
40284
40285
40286   if test $HAVE_STRCASECMP = 0; then
40287
40288
40289
40290
40291
40292
40293
40294
40295   gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext"
40296
40297
40298   :
40299
40300   fi
40301   if test $HAVE_STRNCASECMP = 0; then
40302
40303
40304
40305
40306
40307
40308
40309
40310   gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext"
40311
40312
40313   :
40314
40315   fi
40316
40317
40318   if test $HAVE_STRCASESTR = 1 && test $REPLACE_STRCASESTR = 0; then
40319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works in linear time" >&5
40320 $as_echo_n "checking whether strcasestr works in linear time... " >&6; }
40321 if ${gl_cv_func_strcasestr_linear+:} false; then :
40322   $as_echo_n "(cached) " >&6
40323 else
40324   if test "$cross_compiling" = yes; then :
40325                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40326 /* end confdefs.h.  */
40327
40328 #include <features.h>
40329 #ifdef __GNU_LIBRARY__
40330  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
40331      && !defined __UCLIBC__
40332   Lucky user
40333  #endif
40334 #endif
40335 #ifdef __CYGWIN__
40336  #include <cygwin/version.h>
40337  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
40338   Lucky user
40339  #endif
40340 #endif
40341
40342 _ACEOF
40343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40344   $EGREP "Lucky user" >/dev/null 2>&1; then :
40345   gl_cv_func_strcasestr_linear="guessing yes"
40346 else
40347   gl_cv_func_strcasestr_linear="guessing no"
40348 fi
40349 rm -f conftest*
40350
40351
40352 else
40353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40354 /* end confdefs.h.  */
40355
40356 #include <signal.h> /* for signal */
40357 #include <string.h> /* for strcasestr */
40358 #include <stdlib.h> /* for malloc */
40359 #include <unistd.h> /* for alarm */
40360 static void quit (int sig) { exit (sig + 128); }
40361
40362 int
40363 main ()
40364 {
40365
40366     int result = 0;
40367     size_t m = 1000000;
40368     char *haystack = (char *) malloc (2 * m + 2);
40369     char *needle = (char *) malloc (m + 2);
40370     /* Failure to compile this test due to missing alarm is okay,
40371        since all such platforms (mingw) also lack strcasestr.  */
40372     signal (SIGALRM, quit);
40373     alarm (5);
40374     /* Check for quadratic performance.  */
40375     if (haystack && needle)
40376       {
40377         memset (haystack, 'A', 2 * m);
40378         haystack[2 * m] = 'B';
40379         haystack[2 * m + 1] = 0;
40380         memset (needle, 'A', m);
40381         needle[m] = 'B';
40382         needle[m + 1] = 0;
40383         if (!strcasestr (haystack, needle))
40384           result |= 1;
40385       }
40386     return result;
40387
40388   ;
40389   return 0;
40390 }
40391 _ACEOF
40392 if ac_fn_c_try_run "$LINENO"; then :
40393   gl_cv_func_strcasestr_linear=yes
40394 else
40395   gl_cv_func_strcasestr_linear=no
40396 fi
40397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40398   conftest.$ac_objext conftest.beam conftest.$ac_ext
40399 fi
40400
40401
40402 fi
40403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_linear" >&5
40404 $as_echo "$gl_cv_func_strcasestr_linear" >&6; }
40405     case "$gl_cv_func_strcasestr_linear" in
40406       *yes) ;;
40407       *)
40408         REPLACE_STRCASESTR=1
40409         ;;
40410     esac
40411   fi
40412
40413   if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
40414
40415
40416
40417
40418
40419
40420
40421
40422   gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
40423
40424
40425   :
40426
40427   fi
40428
40429
40430
40431
40432
40433
40434   for ac_func in strcasestr
40435 do :
40436   ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
40437 if test "x$ac_cv_func_strcasestr" = xyes; then :
40438   cat >>confdefs.h <<_ACEOF
40439 #define HAVE_STRCASESTR 1
40440 _ACEOF
40441
40442 fi
40443 done
40444
40445   if test $ac_cv_func_strcasestr = no; then
40446     HAVE_STRCASESTR=0
40447   else
40448     if test "$gl_cv_func_memchr_works" != yes; then
40449       REPLACE_STRCASESTR=1
40450     else
40451             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works" >&5
40452 $as_echo_n "checking whether strcasestr works... " >&6; }
40453 if ${gl_cv_func_strcasestr_works_always+:} false; then :
40454   $as_echo_n "(cached) " >&6
40455 else
40456   if test "$cross_compiling" = yes; then :
40457                                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40458 /* end confdefs.h.  */
40459
40460 #ifdef __GNU_LIBRARY__
40461  #include <features.h>
40462  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
40463      || defined __UCLIBC__
40464   Lucky user
40465  #endif
40466 #elif defined __CYGWIN__
40467  #include <cygwin/version.h>
40468  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
40469   Lucky user
40470  #endif
40471 #else
40472   Lucky user
40473 #endif
40474
40475 _ACEOF
40476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40477   $EGREP "Lucky user" >/dev/null 2>&1; then :
40478   gl_cv_func_strcasestr_works_always="guessing yes"
40479 else
40480   gl_cv_func_strcasestr_works_always="guessing no"
40481 fi
40482 rm -f conftest*
40483
40484
40485 else
40486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40487 /* end confdefs.h.  */
40488
40489 #include <string.h> /* for strcasestr */
40490 #define P "_EF_BF_BD"
40491 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
40492 #define NEEDLE P P P P P
40493
40494 int
40495 main ()
40496 {
40497 return !!strcasestr (HAYSTACK, NEEDLE);
40498
40499   ;
40500   return 0;
40501 }
40502 _ACEOF
40503 if ac_fn_c_try_run "$LINENO"; then :
40504   gl_cv_func_strcasestr_works_always=yes
40505 else
40506   gl_cv_func_strcasestr_works_always=no
40507 fi
40508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40509   conftest.$ac_objext conftest.beam conftest.$ac_ext
40510 fi
40511
40512
40513 fi
40514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_works_always" >&5
40515 $as_echo "$gl_cv_func_strcasestr_works_always" >&6; }
40516       case "$gl_cv_func_strcasestr_works_always" in
40517         *yes) ;;
40518         *)
40519           REPLACE_STRCASESTR=1
40520           ;;
40521       esac
40522     fi
40523   fi
40524
40525   if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
40526
40527
40528
40529
40530
40531
40532
40533
40534   gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
40535
40536
40537   :
40538
40539   fi
40540
40541
40542
40543
40544
40545           GNULIB_STRCASESTR=1
40546
40547
40548
40549
40550
40551 $as_echo "#define GNULIB_TEST_STRCASESTR 1" >>confdefs.h
40552
40553
40554
40555
40556
40557
40558
40559   for ac_func in strchrnul
40560 do :
40561   ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
40562 if test "x$ac_cv_func_strchrnul" = xyes; then :
40563   cat >>confdefs.h <<_ACEOF
40564 #define HAVE_STRCHRNUL 1
40565 _ACEOF
40566
40567 fi
40568 done
40569
40570   if test $ac_cv_func_strchrnul = no; then
40571     HAVE_STRCHRNUL=0
40572   else
40573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
40574 $as_echo_n "checking whether strchrnul works... " >&6; }
40575 if ${gl_cv_func_strchrnul_works+:} false; then :
40576   $as_echo_n "(cached) " >&6
40577 else
40578   if test "$cross_compiling" = yes; then :
40579            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40580 /* end confdefs.h.  */
40581
40582 #if defined __CYGWIN__
40583  #include <cygwin/version.h>
40584  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
40585   Lucky user
40586  #endif
40587 #else
40588   Lucky user
40589 #endif
40590
40591 _ACEOF
40592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40593   $EGREP "Lucky user" >/dev/null 2>&1; then :
40594   gl_cv_func_strchrnul_works="guessing yes"
40595 else
40596   gl_cv_func_strchrnul_works="guessing no"
40597 fi
40598 rm -f conftest*
40599
40600
40601 else
40602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40603 /* end confdefs.h.  */
40604
40605 #include <string.h> /* for strchrnul */
40606
40607 int
40608 main ()
40609 {
40610 const char *buf = "a";
40611       return strchrnul (buf, 'b') != buf + 1;
40612
40613   ;
40614   return 0;
40615 }
40616 _ACEOF
40617 if ac_fn_c_try_run "$LINENO"; then :
40618   gl_cv_func_strchrnul_works=yes
40619 else
40620   gl_cv_func_strchrnul_works=no
40621 fi
40622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40623   conftest.$ac_objext conftest.beam conftest.$ac_ext
40624 fi
40625
40626
40627 fi
40628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
40629 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
40630     case "$gl_cv_func_strchrnul_works" in
40631       *yes) ;;
40632       *) REPLACE_STRCHRNUL=1 ;;
40633     esac
40634   fi
40635
40636   if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
40637
40638
40639
40640
40641
40642
40643
40644
40645   gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
40646
40647     :
40648   fi
40649
40650
40651
40652
40653
40654           GNULIB_STRCHRNUL=1
40655
40656
40657
40658
40659
40660 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
40661
40662
40663
40664
40665
40666
40667
40668   :
40669
40670
40671
40672
40673
40674   if test $ac_cv_func_strdup = yes; then
40675     if test $gl_cv_func_malloc_posix != yes; then
40676       REPLACE_STRDUP=1
40677     fi
40678   fi
40679
40680   :
40681
40682
40683
40684
40685
40686   if test $ac_cv_have_decl_strdup = no; then
40687     HAVE_DECL_STRDUP=0
40688   fi
40689
40690   if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
40691
40692
40693
40694
40695
40696
40697
40698
40699   gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
40700
40701     :
40702   fi
40703
40704
40705
40706
40707
40708           GNULIB_STRDUP=1
40709
40710
40711
40712
40713
40714 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
40715
40716
40717
40718
40719
40720
40721
40722
40723   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
40724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
40725 $as_echo_n "checking for working strerror function... " >&6; }
40726 if ${gl_cv_func_working_strerror+:} false; then :
40727   $as_echo_n "(cached) " >&6
40728 else
40729   if test "$cross_compiling" = yes; then :
40730   case "$host_os" in
40731                    # Guess yes on glibc systems.
40732            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
40733                    # If we don't know, assume the worst.
40734            *)      gl_cv_func_working_strerror="guessing no" ;;
40735          esac
40736
40737 else
40738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40739 /* end confdefs.h.  */
40740 #include <string.h>
40741
40742 int
40743 main ()
40744 {
40745 if (!*strerror (-2)) return 1;
40746   ;
40747   return 0;
40748 }
40749 _ACEOF
40750 if ac_fn_c_try_run "$LINENO"; then :
40751   gl_cv_func_working_strerror=yes
40752 else
40753   gl_cv_func_working_strerror=no
40754 fi
40755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40756   conftest.$ac_objext conftest.beam conftest.$ac_ext
40757 fi
40758
40759
40760 fi
40761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
40762 $as_echo "$gl_cv_func_working_strerror" >&6; }
40763     case "$gl_cv_func_working_strerror" in
40764       *yes) ;;
40765       *)
40766                         REPLACE_STRERROR=1
40767         ;;
40768     esac
40769
40770   else
40771             REPLACE_STRERROR=1
40772   fi
40773
40774   if test $REPLACE_STRERROR = 1; then
40775
40776
40777
40778
40779
40780
40781
40782
40783   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
40784
40785   fi
40786
40787
40788 cat >>confdefs.h <<_ACEOF
40789 #define GNULIB_STRERROR 1
40790 _ACEOF
40791
40792
40793
40794
40795
40796
40797
40798           GNULIB_STRERROR=1
40799
40800
40801
40802
40803
40804 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
40805
40806
40807
40808
40809
40810   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
40811
40812
40813
40814
40815
40816
40817
40818
40819   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
40820
40821
40822
40823
40824
40825   :
40826
40827
40828
40829
40830
40831   if test $ac_cv_header_sys_socket_h != yes; then
40832                     for ac_header in winsock2.h
40833 do :
40834   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
40835 if test "x$ac_cv_header_winsock2_h" = xyes; then :
40836   cat >>confdefs.h <<_ACEOF
40837 #define HAVE_WINSOCK2_H 1
40838 _ACEOF
40839
40840 fi
40841
40842 done
40843
40844   fi
40845   if test "$ac_cv_header_winsock2_h" = yes; then
40846     HAVE_WINSOCK2_H=1
40847     UNISTD_H_HAVE_WINSOCK2_H=1
40848     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
40849   else
40850     HAVE_WINSOCK2_H=0
40851   fi
40852
40853
40854   fi
40855
40856
40857
40858
40859
40860
40861
40862
40863
40864
40865
40866   :
40867
40868
40869
40870
40871
40872
40873   :
40874
40875
40876
40877
40878
40879   if test $ac_cv_have_decl_strndup = no; then
40880     HAVE_DECL_STRNDUP=0
40881   fi
40882
40883   if test $ac_cv_func_strndup = yes; then
40884     HAVE_STRNDUP=1
40885     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
40886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
40887 $as_echo_n "checking for working strndup... " >&6; }
40888 if ${gl_cv_func_strndup_works+:} false; then :
40889   $as_echo_n "(cached) " >&6
40890 else
40891   if test "$cross_compiling" = yes; then :
40892
40893           case $host_os in
40894             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
40895             *)               gl_cv_func_strndup_works="guessing yes";;
40896           esac
40897
40898 else
40899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40900 /* end confdefs.h.  */
40901
40902          #include <string.h>
40903                            #include <stdlib.h>
40904 int
40905 main ()
40906 {
40907
40908 #if !HAVE_DECL_STRNDUP
40909   extern
40910   #ifdef __cplusplus
40911   "C"
40912   #endif
40913   char *strndup (const char *, size_t);
40914 #endif
40915   char *s;
40916   s = strndup ("some longer string", 15);
40917   free (s);
40918   s = strndup ("shorter string", 13);
40919   return s[13] != '\0';
40920   ;
40921   return 0;
40922 }
40923 _ACEOF
40924 if ac_fn_c_try_run "$LINENO"; then :
40925   gl_cv_func_strndup_works=yes
40926 else
40927   gl_cv_func_strndup_works=no
40928 fi
40929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40930   conftest.$ac_objext conftest.beam conftest.$ac_ext
40931 fi
40932
40933 fi
40934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
40935 $as_echo "$gl_cv_func_strndup_works" >&6; }
40936     case $gl_cv_func_strndup_works in
40937       *no) REPLACE_STRNDUP=1 ;;
40938     esac
40939   else
40940     HAVE_STRNDUP=0
40941   fi
40942
40943   if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
40944
40945
40946
40947
40948
40949
40950
40951
40952   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
40953
40954   fi
40955
40956
40957
40958
40959
40960           GNULIB_STRNDUP=1
40961
40962
40963
40964
40965
40966 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
40967
40968
40969
40970
40971
40972
40973
40974
40975
40976   :
40977
40978
40979
40980
40981
40982   if test $ac_cv_have_decl_strnlen = no; then
40983     HAVE_DECL_STRNLEN=0
40984   else
40985
40986          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
40987 $as_echo_n "checking for working strnlen... " >&6; }
40988 if ${ac_cv_func_strnlen_working+:} false; then :
40989   $as_echo_n "(cached) " >&6
40990 else
40991   if test "$cross_compiling" = yes; then :
40992   # Guess no on AIX systems, yes otherwise.
40993                 case "$host_os" in
40994                   aix*) ac_cv_func_strnlen_working=no;;
40995                   *)    ac_cv_func_strnlen_working=yes;;
40996                 esac
40997 else
40998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40999 /* end confdefs.h.  */
41000 $ac_includes_default
41001 int
41002 main ()
41003 {
41004
41005 #define S "foobar"
41006 #define S_LEN (sizeof S - 1)
41007
41008   /* At least one implementation is buggy: that of AIX 4.3 would
41009      give strnlen (S, 1) == 3.  */
41010
41011   int i;
41012   for (i = 0; i < S_LEN + 1; ++i)
41013     {
41014       int expected = i <= S_LEN ? i : S_LEN;
41015       if (strnlen (S, i) != expected)
41016         return 1;
41017     }
41018   return 0;
41019
41020   ;
41021   return 0;
41022 }
41023 _ACEOF
41024 if ac_fn_c_try_run "$LINENO"; then :
41025   ac_cv_func_strnlen_working=yes
41026 else
41027   ac_cv_func_strnlen_working=no
41028 fi
41029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41030   conftest.$ac_objext conftest.beam conftest.$ac_ext
41031 fi
41032
41033 fi
41034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
41035 $as_echo "$ac_cv_func_strnlen_working" >&6; }
41036 test $ac_cv_func_strnlen_working = no && :
41037
41038
41039     if test $ac_cv_func_strnlen_working = no; then
41040       REPLACE_STRNLEN=1
41041     fi
41042   fi
41043
41044   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
41045
41046
41047
41048
41049
41050
41051
41052
41053   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
41054
41055     :
41056   fi
41057
41058
41059
41060
41061
41062           GNULIB_STRNLEN=1
41063
41064
41065
41066
41067
41068 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
41069
41070
41071
41072
41073
41074
41075
41076
41077
41078   for ac_func in strsep
41079 do :
41080   ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
41081 if test "x$ac_cv_func_strsep" = xyes; then :
41082   cat >>confdefs.h <<_ACEOF
41083 #define HAVE_STRSEP 1
41084 _ACEOF
41085
41086 fi
41087 done
41088
41089   if test $ac_cv_func_strsep = no; then
41090     HAVE_STRSEP=0
41091   fi
41092
41093   if test $HAVE_STRSEP = 0; then
41094
41095
41096
41097
41098
41099
41100
41101
41102   gl_LIBOBJS="$gl_LIBOBJS strsep.$ac_objext"
41103
41104     :
41105   fi
41106
41107
41108
41109
41110
41111           GNULIB_STRSEP=1
41112
41113
41114
41115
41116
41117 $as_echo "#define GNULIB_TEST_STRSEP 1" >>confdefs.h
41118
41119
41120
41121
41122
41123
41124
41125
41126
41127
41128
41129
41130   :
41131
41132
41133
41134
41135
41136
41137
41138
41139      if test $gl_cv_have_include_next = yes; then
41140        gl_cv_next_sys_file_h='<'sys/file.h'>'
41141      else
41142        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/file.h>" >&5
41143 $as_echo_n "checking absolute name of <sys/file.h>... " >&6; }
41144 if ${gl_cv_next_sys_file_h+:} false; then :
41145   $as_echo_n "(cached) " >&6
41146 else
41147
41148              if test $ac_cv_header_sys_file_h = yes; then
41149
41150
41151
41152
41153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41154 /* end confdefs.h.  */
41155 #include <sys/file.h>
41156 _ACEOF
41157                 case "$host_os" in
41158     aix*) gl_absname_cpp="$ac_cpp -C" ;;
41159     *)    gl_absname_cpp="$ac_cpp" ;;
41160   esac
41161
41162   case "$host_os" in
41163     mingw*)
41164                                           gl_dirsep_regex='[/\\]'
41165       ;;
41166     *)
41167       gl_dirsep_regex='\/'
41168       ;;
41169   esac
41170       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
41171   gl_header_literal_regex=`echo 'sys/file.h' \
41172                            | sed -e "$gl_make_literal_regex_sed"`
41173   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
41174       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
41175       s|^/[^/]|//&|
41176       p
41177       q
41178     }'
41179
41180         gl_cv_absolute_sys_file_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41181   sed -n "$gl_absolute_header_sed"`
41182
41183            gl_header=$gl_cv_absolute_sys_file_h
41184            gl_cv_next_sys_file_h='"'$gl_header'"'
41185           else
41186                gl_cv_next_sys_file_h='<'sys/file.h'>'
41187              fi
41188
41189
41190 fi
41191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_file_h" >&5
41192 $as_echo "$gl_cv_next_sys_file_h" >&6; }
41193      fi
41194      NEXT_SYS_FILE_H=$gl_cv_next_sys_file_h
41195
41196      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41197        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41198        gl_next_as_first_directive='<'sys/file.h'>'
41199      else
41200        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41201        gl_next_as_first_directive=$gl_cv_next_sys_file_h
41202      fi
41203      NEXT_AS_FIRST_DIRECTIVE_SYS_FILE_H=$gl_next_as_first_directive
41204
41205
41206
41207
41208
41209   if test $ac_cv_header_sys_file_h = yes; then
41210     HAVE_SYS_FILE_H=1
41211   else
41212     HAVE_SYS_FILE_H=0
41213   fi
41214
41215
41216
41217     for gl_func in flock; do
41218     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
41219     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
41220 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
41221 if eval \${$as_gl_Symbol+:} false; then :
41222   $as_echo_n "(cached) " >&6
41223 else
41224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41225 /* end confdefs.h.  */
41226 #include <sys/file.h>
41227
41228 int
41229 main ()
41230 {
41231 #undef $gl_func
41232   (void) $gl_func;
41233   ;
41234   return 0;
41235 }
41236 _ACEOF
41237 if ac_fn_c_try_compile "$LINENO"; then :
41238   eval "$as_gl_Symbol=yes"
41239 else
41240   eval "$as_gl_Symbol=no"
41241 fi
41242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41243 fi
41244 eval ac_res=\$$as_gl_Symbol
41245                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
41246 $as_echo "$ac_res" >&6; }
41247     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
41248   cat >>confdefs.h <<_ACEOF
41249 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
41250 _ACEOF
41251
41252                      eval ac_cv_have_decl_$gl_func=yes
41253 fi
41254       done
41255
41256
41257
41258
41259
41260
41261
41262   :
41263
41264
41265
41266
41267
41268   if test $ac_cv_header_sys_ioctl_h = yes; then
41269     HAVE_SYS_IOCTL_H=1
41270             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/ioctl.h> declares ioctl" >&5
41271 $as_echo_n "checking whether <sys/ioctl.h> declares ioctl... " >&6; }
41272 if ${gl_cv_decl_ioctl_in_sys_ioctl_h+:} false; then :
41273   $as_echo_n "(cached) " >&6
41274 else
41275          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41276 /* end confdefs.h.  */
41277 #include <sys/ioctl.h>
41278
41279 int
41280 main ()
41281 {
41282 (void) ioctl;
41283   ;
41284   return 0;
41285 }
41286 _ACEOF
41287 if ac_fn_c_try_compile "$LINENO"; then :
41288   gl_cv_decl_ioctl_in_sys_ioctl_h=yes
41289 else
41290   gl_cv_decl_ioctl_in_sys_ioctl_h=no
41291 fi
41292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41293
41294 fi
41295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_ioctl_in_sys_ioctl_h" >&5
41296 $as_echo "$gl_cv_decl_ioctl_in_sys_ioctl_h" >&6; }
41297   else
41298     HAVE_SYS_IOCTL_H=0
41299   fi
41300
41301
41302
41303
41304
41305
41306
41307   :
41308
41309
41310
41311
41312
41313
41314
41315
41316      if test $gl_cv_have_include_next = yes; then
41317        gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
41318      else
41319        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/ioctl.h>" >&5
41320 $as_echo_n "checking absolute name of <sys/ioctl.h>... " >&6; }
41321 if ${gl_cv_next_sys_ioctl_h+:} false; then :
41322   $as_echo_n "(cached) " >&6
41323 else
41324
41325              if test $ac_cv_header_sys_ioctl_h = yes; then
41326
41327
41328
41329
41330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41331 /* end confdefs.h.  */
41332 #include <sys/ioctl.h>
41333 _ACEOF
41334                 case "$host_os" in
41335     aix*) gl_absname_cpp="$ac_cpp -C" ;;
41336     *)    gl_absname_cpp="$ac_cpp" ;;
41337   esac
41338
41339   case "$host_os" in
41340     mingw*)
41341                                           gl_dirsep_regex='[/\\]'
41342       ;;
41343     *)
41344       gl_dirsep_regex='\/'
41345       ;;
41346   esac
41347       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
41348   gl_header_literal_regex=`echo 'sys/ioctl.h' \
41349                            | sed -e "$gl_make_literal_regex_sed"`
41350   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
41351       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
41352       s|^/[^/]|//&|
41353       p
41354       q
41355     }'
41356
41357         gl_cv_absolute_sys_ioctl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41358   sed -n "$gl_absolute_header_sed"`
41359
41360            gl_header=$gl_cv_absolute_sys_ioctl_h
41361            gl_cv_next_sys_ioctl_h='"'$gl_header'"'
41362           else
41363                gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
41364              fi
41365
41366
41367 fi
41368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_ioctl_h" >&5
41369 $as_echo "$gl_cv_next_sys_ioctl_h" >&6; }
41370      fi
41371      NEXT_SYS_IOCTL_H=$gl_cv_next_sys_ioctl_h
41372
41373      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41374        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41375        gl_next_as_first_directive='<'sys/ioctl.h'>'
41376      else
41377        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41378        gl_next_as_first_directive=$gl_cv_next_sys_ioctl_h
41379      fi
41380      NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H=$gl_next_as_first_directive
41381
41382
41383
41384
41385
41386
41387     for gl_func in ioctl; do
41388     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
41389     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
41390 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
41391 if eval \${$as_gl_Symbol+:} false; then :
41392   $as_echo_n "(cached) " >&6
41393 else
41394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41395 /* end confdefs.h.  */
41396 #include <sys/ioctl.h>
41397 /* Some platforms declare ioctl in the wrong header.  */
41398 #if !(defined __GLIBC__ && !defined __UCLIBC__)
41399 # include <unistd.h>
41400 #endif
41401
41402 int
41403 main ()
41404 {
41405 #undef $gl_func
41406   (void) $gl_func;
41407   ;
41408   return 0;
41409 }
41410 _ACEOF
41411 if ac_fn_c_try_compile "$LINENO"; then :
41412   eval "$as_gl_Symbol=yes"
41413 else
41414   eval "$as_gl_Symbol=no"
41415 fi
41416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41417 fi
41418 eval ac_res=\$$as_gl_Symbol
41419                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
41420 $as_echo "$ac_res" >&6; }
41421     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
41422   cat >>confdefs.h <<_ACEOF
41423 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
41424 _ACEOF
41425
41426                      eval ac_cv_have_decl_$gl_func=yes
41427 fi
41428       done
41429
41430
41431
41432
41433
41434
41435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
41436 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
41437 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
41438   $as_echo_n "(cached) " >&6
41439 else
41440
41441                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41442 /* end confdefs.h.  */
41443 #include <sys/select.h>
41444 int
41445 main ()
41446 {
41447 struct timeval b;
41448   ;
41449   return 0;
41450 }
41451 _ACEOF
41452 if ac_fn_c_try_compile "$LINENO"; then :
41453   gl_cv_header_sys_select_h_selfcontained=yes
41454 else
41455   gl_cv_header_sys_select_h_selfcontained=no
41456 fi
41457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41458                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
41459         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41460 /* end confdefs.h.  */
41461 #include <sys/select.h>
41462 int
41463 main ()
41464 {
41465 int memset; int bzero;
41466   ;
41467   return 0;
41468 }
41469
41470 _ACEOF
41471 if ac_fn_c_try_compile "$LINENO"; then :
41472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41473 /* end confdefs.h.  */
41474 #include <sys/select.h>
41475 int
41476 main ()
41477 {
41478
41479                   #undef memset
41480                   #define memset nonexistent_memset
41481                   extern
41482                   #ifdef __cplusplus
41483                   "C"
41484                   #endif
41485                   void *memset (void *, int, unsigned long);
41486                   #undef bzero
41487                   #define bzero nonexistent_bzero
41488                   extern
41489                   #ifdef __cplusplus
41490                   "C"
41491                   #endif
41492                   void bzero (void *, unsigned long);
41493                   fd_set fds;
41494                   FD_ZERO (&fds);
41495
41496   ;
41497   return 0;
41498 }
41499
41500 _ACEOF
41501 if ac_fn_c_try_link "$LINENO"; then :
41502
41503 else
41504   gl_cv_header_sys_select_h_selfcontained=no
41505 fi
41506 rm -f core conftest.err conftest.$ac_objext \
41507     conftest$ac_exeext conftest.$ac_ext
41508
41509 fi
41510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41511       fi
41512
41513 fi
41514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
41515 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
41516
41517
41518
41519
41520
41521
41522   :
41523
41524
41525
41526
41527
41528
41529
41530
41531      if test $gl_cv_have_include_next = yes; then
41532        gl_cv_next_sys_select_h='<'sys/select.h'>'
41533      else
41534        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
41535 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
41536 if ${gl_cv_next_sys_select_h+:} false; then :
41537   $as_echo_n "(cached) " >&6
41538 else
41539
41540              if test $ac_cv_header_sys_select_h = yes; then
41541
41542
41543
41544
41545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41546 /* end confdefs.h.  */
41547 #include <sys/select.h>
41548 _ACEOF
41549                 case "$host_os" in
41550     aix*) gl_absname_cpp="$ac_cpp -C" ;;
41551     *)    gl_absname_cpp="$ac_cpp" ;;
41552   esac
41553
41554   case "$host_os" in
41555     mingw*)
41556                                           gl_dirsep_regex='[/\\]'
41557       ;;
41558     *)
41559       gl_dirsep_regex='\/'
41560       ;;
41561   esac
41562       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
41563   gl_header_literal_regex=`echo 'sys/select.h' \
41564                            | sed -e "$gl_make_literal_regex_sed"`
41565   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
41566       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
41567       s|^/[^/]|//&|
41568       p
41569       q
41570     }'
41571
41572         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41573   sed -n "$gl_absolute_header_sed"`
41574
41575            gl_header=$gl_cv_absolute_sys_select_h
41576            gl_cv_next_sys_select_h='"'$gl_header'"'
41577           else
41578                gl_cv_next_sys_select_h='<'sys/select.h'>'
41579              fi
41580
41581
41582 fi
41583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
41584 $as_echo "$gl_cv_next_sys_select_h" >&6; }
41585      fi
41586      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
41587
41588      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41589        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41590        gl_next_as_first_directive='<'sys/select.h'>'
41591      else
41592        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41593        gl_next_as_first_directive=$gl_cv_next_sys_select_h
41594      fi
41595      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
41596
41597
41598
41599
41600   if test $ac_cv_header_sys_select_h = yes; then
41601     HAVE_SYS_SELECT_H=1
41602   else
41603     HAVE_SYS_SELECT_H=0
41604   fi
41605
41606
41607
41608
41609
41610   :
41611
41612
41613
41614
41615
41616   if test $ac_cv_header_sys_socket_h != yes; then
41617                     for ac_header in winsock2.h
41618 do :
41619   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
41620 if test "x$ac_cv_header_winsock2_h" = xyes; then :
41621   cat >>confdefs.h <<_ACEOF
41622 #define HAVE_WINSOCK2_H 1
41623 _ACEOF
41624
41625 fi
41626
41627 done
41628
41629   fi
41630   if test "$ac_cv_header_winsock2_h" = yes; then
41631     HAVE_WINSOCK2_H=1
41632     UNISTD_H_HAVE_WINSOCK2_H=1
41633     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
41634   else
41635     HAVE_WINSOCK2_H=0
41636   fi
41637
41638
41639
41640
41641     for gl_func in pselect select; do
41642     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
41643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
41644 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
41645 if eval \${$as_gl_Symbol+:} false; then :
41646   $as_echo_n "(cached) " >&6
41647 else
41648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41649 /* end confdefs.h.  */
41650
41651 /* Some systems require prerequisite headers.  */
41652 #include <sys/types.h>
41653 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
41654 # include <sys/time.h>
41655 #endif
41656 #include <sys/select.h>
41657
41658 int
41659 main ()
41660 {
41661 #undef $gl_func
41662   (void) $gl_func;
41663   ;
41664   return 0;
41665 }
41666 _ACEOF
41667 if ac_fn_c_try_compile "$LINENO"; then :
41668   eval "$as_gl_Symbol=yes"
41669 else
41670   eval "$as_gl_Symbol=no"
41671 fi
41672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41673 fi
41674 eval ac_res=\$$as_gl_Symbol
41675                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
41676 $as_echo "$ac_res" >&6; }
41677     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
41678   cat >>confdefs.h <<_ACEOF
41679 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
41680 _ACEOF
41681
41682                      eval ac_cv_have_decl_$gl_func=yes
41683 fi
41684       done
41685
41686
41687
41688
41689
41690
41691
41692         case "$host_os" in
41693     osf*)
41694
41695 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
41696
41697       ;;
41698   esac
41699
41700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
41701 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
41702 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
41703   $as_echo_n "(cached) " >&6
41704 else
41705
41706       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41707 /* end confdefs.h.  */
41708 #include <sys/socket.h>
41709 int
41710 main ()
41711 {
41712
41713   ;
41714   return 0;
41715 }
41716 _ACEOF
41717 if ac_fn_c_try_compile "$LINENO"; then :
41718   gl_cv_header_sys_socket_h_selfcontained=yes
41719 else
41720   gl_cv_header_sys_socket_h_selfcontained=no
41721 fi
41722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41723
41724 fi
41725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
41726 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
41727   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
41728             for ac_func in shutdown
41729 do :
41730   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
41731 if test "x$ac_cv_func_shutdown" = xyes; then :
41732   cat >>confdefs.h <<_ACEOF
41733 #define HAVE_SHUTDOWN 1
41734 _ACEOF
41735
41736 fi
41737 done
41738
41739     if test $ac_cv_func_shutdown = yes; then
41740       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
41741 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
41742 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
41743   $as_echo_n "(cached) " >&6
41744 else
41745
41746           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41747 /* end confdefs.h.  */
41748 #include <sys/socket.h>
41749 int
41750 main ()
41751 {
41752 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
41753   ;
41754   return 0;
41755 }
41756 _ACEOF
41757 if ac_fn_c_try_compile "$LINENO"; then :
41758   gl_cv_header_sys_socket_h_shut=yes
41759 else
41760   gl_cv_header_sys_socket_h_shut=no
41761 fi
41762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41763
41764 fi
41765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
41766 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
41767       if test $gl_cv_header_sys_socket_h_shut = no; then
41768         SYS_SOCKET_H='sys/socket.h'
41769       fi
41770     fi
41771   fi
41772   # We need to check for ws2tcpip.h now.
41773
41774
41775
41776
41777
41778
41779
41780
41781   :
41782
41783
41784
41785
41786
41787
41788
41789
41790      if test $gl_cv_have_include_next = yes; then
41791        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
41792      else
41793        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
41794 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
41795 if ${gl_cv_next_sys_socket_h+:} false; then :
41796   $as_echo_n "(cached) " >&6
41797 else
41798
41799              if test $ac_cv_header_sys_socket_h = yes; then
41800
41801
41802
41803
41804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41805 /* end confdefs.h.  */
41806 #include <sys/socket.h>
41807 _ACEOF
41808                 case "$host_os" in
41809     aix*) gl_absname_cpp="$ac_cpp -C" ;;
41810     *)    gl_absname_cpp="$ac_cpp" ;;
41811   esac
41812
41813   case "$host_os" in
41814     mingw*)
41815                                           gl_dirsep_regex='[/\\]'
41816       ;;
41817     *)
41818       gl_dirsep_regex='\/'
41819       ;;
41820   esac
41821       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
41822   gl_header_literal_regex=`echo 'sys/socket.h' \
41823                            | sed -e "$gl_make_literal_regex_sed"`
41824   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
41825       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
41826       s|^/[^/]|//&|
41827       p
41828       q
41829     }'
41830
41831         gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41832   sed -n "$gl_absolute_header_sed"`
41833
41834            gl_header=$gl_cv_absolute_sys_socket_h
41835            gl_cv_next_sys_socket_h='"'$gl_header'"'
41836           else
41837                gl_cv_next_sys_socket_h='<'sys/socket.h'>'
41838              fi
41839
41840
41841 fi
41842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
41843 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
41844      fi
41845      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
41846
41847      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41848        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41849        gl_next_as_first_directive='<'sys/socket.h'>'
41850      else
41851        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41852        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
41853      fi
41854      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
41855
41856
41857
41858
41859   if test $ac_cv_header_sys_socket_h = yes; then
41860     HAVE_SYS_SOCKET_H=1
41861     HAVE_WS2TCPIP_H=0
41862   else
41863     HAVE_SYS_SOCKET_H=0
41864     if test $ac_cv_header_ws2tcpip_h = yes; then
41865       HAVE_WS2TCPIP_H=1
41866     else
41867       HAVE_WS2TCPIP_H=0
41868     fi
41869   fi
41870
41871
41872
41873   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
41874   /* sys/types.h is not needed according to POSIX, but the
41875      sys/socket.h in i386-unknown-freebsd4.10 and
41876      powerpc-apple-darwin5.5 required it. */
41877 #include <sys/types.h>
41878 #ifdef HAVE_SYS_SOCKET_H
41879 #include <sys/socket.h>
41880 #endif
41881 #ifdef HAVE_WS2TCPIP_H
41882 #include <ws2tcpip.h>
41883 #endif
41884
41885 "
41886 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
41887
41888 cat >>confdefs.h <<_ACEOF
41889 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
41890 _ACEOF
41891
41892
41893 fi
41894 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
41895   /* sys/types.h is not needed according to POSIX, but the
41896      sys/socket.h in i386-unknown-freebsd4.10 and
41897      powerpc-apple-darwin5.5 required it. */
41898 #include <sys/types.h>
41899 #ifdef HAVE_SYS_SOCKET_H
41900 #include <sys/socket.h>
41901 #endif
41902 #ifdef HAVE_WS2TCPIP_H
41903 #include <ws2tcpip.h>
41904 #endif
41905
41906 "
41907 if test "x$ac_cv_type_sa_family_t" = xyes; then :
41908
41909 cat >>confdefs.h <<_ACEOF
41910 #define HAVE_SA_FAMILY_T 1
41911 _ACEOF
41912
41913
41914 fi
41915
41916   if test $ac_cv_type_struct_sockaddr_storage = no; then
41917     HAVE_STRUCT_SOCKADDR_STORAGE=0
41918   fi
41919   if test $ac_cv_type_sa_family_t = no; then
41920     HAVE_SA_FAMILY_T=0
41921   fi
41922   if test $ac_cv_type_struct_sockaddr_storage != no; then
41923     ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
41924        #ifdef HAVE_SYS_SOCKET_H
41925        #include <sys/socket.h>
41926        #endif
41927        #ifdef HAVE_WS2TCPIP_H
41928        #include <ws2tcpip.h>
41929        #endif
41930
41931 "
41932 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
41933
41934 cat >>confdefs.h <<_ACEOF
41935 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
41936 _ACEOF
41937
41938
41939 else
41940   HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
41941 fi
41942
41943   fi
41944   if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
41945      || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
41946     SYS_SOCKET_H='sys/socket.h'
41947   fi
41948
41949
41950
41951
41952   :
41953
41954
41955
41956
41957
41958   if test $ac_cv_header_sys_socket_h != yes; then
41959                     for ac_header in winsock2.h
41960 do :
41961   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
41962 if test "x$ac_cv_header_winsock2_h" = xyes; then :
41963   cat >>confdefs.h <<_ACEOF
41964 #define HAVE_WINSOCK2_H 1
41965 _ACEOF
41966
41967 fi
41968
41969 done
41970
41971   fi
41972   if test "$ac_cv_header_winsock2_h" = yes; then
41973     HAVE_WINSOCK2_H=1
41974     UNISTD_H_HAVE_WINSOCK2_H=1
41975     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
41976   else
41977     HAVE_WINSOCK2_H=0
41978   fi
41979
41980
41981
41982
41983     for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
41984     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
41985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
41986 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
41987 if eval \${$as_gl_Symbol+:} false; then :
41988   $as_echo_n "(cached) " >&6
41989 else
41990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41991 /* end confdefs.h.  */
41992
41993 /* Some systems require prerequisite headers.  */
41994 #include <sys/types.h>
41995 #include <sys/socket.h>
41996
41997 int
41998 main ()
41999 {
42000 #undef $gl_func
42001   (void) $gl_func;
42002   ;
42003   return 0;
42004 }
42005 _ACEOF
42006 if ac_fn_c_try_compile "$LINENO"; then :
42007   eval "$as_gl_Symbol=yes"
42008 else
42009   eval "$as_gl_Symbol=no"
42010 fi
42011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42012 fi
42013 eval ac_res=\$$as_gl_Symbol
42014                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
42015 $as_echo "$ac_res" >&6; }
42016     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
42017   cat >>confdefs.h <<_ACEOF
42018 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
42019 _ACEOF
42020
42021                      eval ac_cv_have_decl_$gl_func=yes
42022 fi
42023       done
42024
42025
42026
42027
42028
42029
42030
42031
42032
42033
42034
42035
42036
42037
42038   :
42039
42040
42041
42042
42043
42044
42045
42046
42047      if test $gl_cv_have_include_next = yes; then
42048        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
42049      else
42050        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
42051 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
42052 if ${gl_cv_next_sys_stat_h+:} false; then :
42053   $as_echo_n "(cached) " >&6
42054 else
42055
42056              if test $ac_cv_header_sys_stat_h = yes; then
42057
42058
42059
42060
42061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42062 /* end confdefs.h.  */
42063 #include <sys/stat.h>
42064 _ACEOF
42065                 case "$host_os" in
42066     aix*) gl_absname_cpp="$ac_cpp -C" ;;
42067     *)    gl_absname_cpp="$ac_cpp" ;;
42068   esac
42069
42070   case "$host_os" in
42071     mingw*)
42072                                           gl_dirsep_regex='[/\\]'
42073       ;;
42074     *)
42075       gl_dirsep_regex='\/'
42076       ;;
42077   esac
42078       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
42079   gl_header_literal_regex=`echo 'sys/stat.h' \
42080                            | sed -e "$gl_make_literal_regex_sed"`
42081   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
42082       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
42083       s|^/[^/]|//&|
42084       p
42085       q
42086     }'
42087
42088         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
42089   sed -n "$gl_absolute_header_sed"`
42090
42091            gl_header=$gl_cv_absolute_sys_stat_h
42092            gl_cv_next_sys_stat_h='"'$gl_header'"'
42093           else
42094                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
42095              fi
42096
42097
42098 fi
42099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
42100 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
42101      fi
42102      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
42103
42104      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
42105        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
42106        gl_next_as_first_directive='<'sys/stat.h'>'
42107      else
42108        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
42109        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
42110      fi
42111      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
42112
42113
42114
42115
42116
42117
42118
42119
42120
42121
42122
42123   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
42124
42125 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
42126
42127   fi
42128
42129       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
42130      #include <sys/stat.h>
42131 "
42132 if test "x$ac_cv_type_nlink_t" = xyes; then :
42133
42134 else
42135
42136 $as_echo "#define nlink_t int" >>confdefs.h
42137
42138 fi
42139
42140
42141
42142     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
42143     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
42144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
42145 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
42146 if eval \${$as_gl_Symbol+:} false; then :
42147   $as_echo_n "(cached) " >&6
42148 else
42149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42150 /* end confdefs.h.  */
42151 #include <sys/stat.h>
42152
42153 int
42154 main ()
42155 {
42156 #undef $gl_func
42157   (void) $gl_func;
42158   ;
42159   return 0;
42160 }
42161 _ACEOF
42162 if ac_fn_c_try_compile "$LINENO"; then :
42163   eval "$as_gl_Symbol=yes"
42164 else
42165   eval "$as_gl_Symbol=no"
42166 fi
42167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42168 fi
42169 eval ac_res=\$$as_gl_Symbol
42170                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
42171 $as_echo "$ac_res" >&6; }
42172     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
42173   cat >>confdefs.h <<_ACEOF
42174 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
42175 _ACEOF
42176
42177                      eval ac_cv_have_decl_$gl_func=yes
42178 fi
42179       done
42180
42181
42182
42183
42184
42185
42186
42187
42188
42189
42190
42191
42192
42193
42194
42195
42196
42197   :
42198
42199
42200
42201
42202
42203
42204
42205
42206      if test $gl_cv_have_include_next = yes; then
42207        gl_cv_next_sys_uio_h='<'sys/uio.h'>'
42208      else
42209        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
42210 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
42211 if ${gl_cv_next_sys_uio_h+:} false; then :
42212   $as_echo_n "(cached) " >&6
42213 else
42214
42215              if test $ac_cv_header_sys_uio_h = yes; then
42216
42217
42218
42219
42220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42221 /* end confdefs.h.  */
42222 #include <sys/uio.h>
42223 _ACEOF
42224                 case "$host_os" in
42225     aix*) gl_absname_cpp="$ac_cpp -C" ;;
42226     *)    gl_absname_cpp="$ac_cpp" ;;
42227   esac
42228
42229   case "$host_os" in
42230     mingw*)
42231                                           gl_dirsep_regex='[/\\]'
42232       ;;
42233     *)
42234       gl_dirsep_regex='\/'
42235       ;;
42236   esac
42237       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
42238   gl_header_literal_regex=`echo 'sys/uio.h' \
42239                            | sed -e "$gl_make_literal_regex_sed"`
42240   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
42241       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
42242       s|^/[^/]|//&|
42243       p
42244       q
42245     }'
42246
42247         gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
42248   sed -n "$gl_absolute_header_sed"`
42249
42250            gl_header=$gl_cv_absolute_sys_uio_h
42251            gl_cv_next_sys_uio_h='"'$gl_header'"'
42252           else
42253                gl_cv_next_sys_uio_h='<'sys/uio.h'>'
42254              fi
42255
42256
42257 fi
42258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
42259 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
42260      fi
42261      NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
42262
42263      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
42264        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
42265        gl_next_as_first_directive='<'sys/uio.h'>'
42266      else
42267        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
42268        gl_next_as_first_directive=$gl_cv_next_sys_uio_h
42269      fi
42270      NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
42271
42272
42273
42274
42275   if test $ac_cv_header_sys_uio_h = yes; then
42276     HAVE_SYS_UIO_H=1
42277   else
42278     HAVE_SYS_UIO_H=0
42279   fi
42280
42281
42282
42283
42284
42285   :
42286
42287
42288
42289
42290
42291   if test $ac_cv_header_sysexits_h = yes; then
42292     HAVE_SYSEXITS_H=1
42293
42294
42295
42296
42297
42298
42299   :
42300
42301
42302
42303
42304
42305
42306
42307
42308      if test $gl_cv_have_include_next = yes; then
42309        gl_cv_next_sysexits_h='<'sysexits.h'>'
42310      else
42311        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
42312 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
42313 if ${gl_cv_next_sysexits_h+:} false; then :
42314   $as_echo_n "(cached) " >&6
42315 else
42316
42317              if test $ac_cv_header_sysexits_h = yes; then
42318
42319
42320
42321
42322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42323 /* end confdefs.h.  */
42324 #include <sysexits.h>
42325 _ACEOF
42326                 case "$host_os" in
42327     aix*) gl_absname_cpp="$ac_cpp -C" ;;
42328     *)    gl_absname_cpp="$ac_cpp" ;;
42329   esac
42330
42331   case "$host_os" in
42332     mingw*)
42333                                           gl_dirsep_regex='[/\\]'
42334       ;;
42335     *)
42336       gl_dirsep_regex='\/'
42337       ;;
42338   esac
42339       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
42340   gl_header_literal_regex=`echo 'sysexits.h' \
42341                            | sed -e "$gl_make_literal_regex_sed"`
42342   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
42343       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
42344       s|^/[^/]|//&|
42345       p
42346       q
42347     }'
42348
42349         gl_cv_absolute_sysexits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
42350   sed -n "$gl_absolute_header_sed"`
42351
42352            gl_header=$gl_cv_absolute_sysexits_h
42353            gl_cv_next_sysexits_h='"'$gl_header'"'
42354           else
42355                gl_cv_next_sysexits_h='<'sysexits.h'>'
42356              fi
42357
42358
42359 fi
42360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
42361 $as_echo "$gl_cv_next_sysexits_h" >&6; }
42362      fi
42363      NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
42364
42365      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
42366        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
42367        gl_next_as_first_directive='<'sysexits.h'>'
42368      else
42369        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
42370        gl_next_as_first_directive=$gl_cv_next_sysexits_h
42371      fi
42372      NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
42373
42374
42375
42376
42377     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42378 /* end confdefs.h.  */
42379 #include <sysexits.h>
42380 int
42381 main ()
42382 {
42383 switch (0)
42384           {
42385           case EX_OK:
42386           case EX_USAGE:
42387           case EX_DATAERR:
42388           case EX_NOINPUT:
42389           case EX_NOUSER:
42390           case EX_NOHOST:
42391           case EX_UNAVAILABLE:
42392           case EX_SOFTWARE:
42393           case EX_OSERR:
42394           case EX_OSFILE:
42395           case EX_CANTCREAT:
42396           case EX_IOERR:
42397           case EX_TEMPFAIL:
42398           case EX_PROTOCOL:
42399           case EX_NOPERM:
42400           case EX_CONFIG:
42401             break;
42402           }
42403
42404   ;
42405   return 0;
42406 }
42407 _ACEOF
42408 if ac_fn_c_try_compile "$LINENO"; then :
42409   SYSEXITS_H=
42410 else
42411   SYSEXITS_H=sysexits.h
42412 fi
42413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42414   else
42415     HAVE_SYSEXITS_H=0
42416     SYSEXITS_H=sysexits.h
42417   fi
42418
42419
42420    if test -n "$SYSEXITS_H"; then
42421   GL_GENERATE_SYSEXITS_H_TRUE=
42422   GL_GENERATE_SYSEXITS_H_FALSE='#'
42423 else
42424   GL_GENERATE_SYSEXITS_H_TRUE='#'
42425   GL_GENERATE_SYSEXITS_H_FALSE=
42426 fi
42427
42428
42429
42430
42431   :
42432
42433
42434
42435
42436
42437
42438
42439
42440
42441   :
42442
42443
42444
42445
42446
42447
42448
42449
42450
42451   :
42452
42453
42454
42455
42456
42457
42458
42459
42460      if test $gl_cv_have_include_next = yes; then
42461        gl_cv_next_unistd_h='<'unistd.h'>'
42462      else
42463        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
42464 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
42465 if ${gl_cv_next_unistd_h+:} false; then :
42466   $as_echo_n "(cached) " >&6
42467 else
42468
42469              if test $ac_cv_header_unistd_h = yes; then
42470
42471
42472
42473
42474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42475 /* end confdefs.h.  */
42476 #include <unistd.h>
42477 _ACEOF
42478                 case "$host_os" in
42479     aix*) gl_absname_cpp="$ac_cpp -C" ;;
42480     *)    gl_absname_cpp="$ac_cpp" ;;
42481   esac
42482
42483   case "$host_os" in
42484     mingw*)
42485                                           gl_dirsep_regex='[/\\]'
42486       ;;
42487     *)
42488       gl_dirsep_regex='\/'
42489       ;;
42490   esac
42491       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
42492   gl_header_literal_regex=`echo 'unistd.h' \
42493                            | sed -e "$gl_make_literal_regex_sed"`
42494   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
42495       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
42496       s|^/[^/]|//&|
42497       p
42498       q
42499     }'
42500
42501         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
42502   sed -n "$gl_absolute_header_sed"`
42503
42504            gl_header=$gl_cv_absolute_unistd_h
42505            gl_cv_next_unistd_h='"'$gl_header'"'
42506           else
42507                gl_cv_next_unistd_h='<'unistd.h'>'
42508              fi
42509
42510
42511 fi
42512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
42513 $as_echo "$gl_cv_next_unistd_h" >&6; }
42514      fi
42515      NEXT_UNISTD_H=$gl_cv_next_unistd_h
42516
42517      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
42518        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
42519        gl_next_as_first_directive='<'unistd.h'>'
42520      else
42521        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
42522        gl_next_as_first_directive=$gl_cv_next_unistd_h
42523      fi
42524      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
42525
42526
42527
42528
42529   if test $ac_cv_header_unistd_h = yes; then
42530     HAVE_UNISTD_H=1
42531   else
42532     HAVE_UNISTD_H=0
42533   fi
42534
42535
42536
42537
42538
42539
42540
42541     for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat     fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize     getusershell setusershell endusershell     group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite     readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r     unlink unlinkat usleep; do
42542     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
42543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
42544 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
42545 if eval \${$as_gl_Symbol+:} false; then :
42546   $as_echo_n "(cached) " >&6
42547 else
42548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42549 /* end confdefs.h.  */
42550
42551 #if HAVE_UNISTD_H
42552 # include <unistd.h>
42553 #endif
42554 /* Some systems declare various items in the wrong headers.  */
42555 #if !(defined __GLIBC__ && !defined __UCLIBC__)
42556 # include <fcntl.h>
42557 # include <stdio.h>
42558 # include <stdlib.h>
42559 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
42560 #  include <io.h>
42561 # endif
42562 #endif
42563
42564 int
42565 main ()
42566 {
42567 #undef $gl_func
42568   (void) $gl_func;
42569   ;
42570   return 0;
42571 }
42572 _ACEOF
42573 if ac_fn_c_try_compile "$LINENO"; then :
42574   eval "$as_gl_Symbol=yes"
42575 else
42576   eval "$as_gl_Symbol=no"
42577 fi
42578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42579 fi
42580 eval ac_res=\$$as_gl_Symbol
42581                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
42582 $as_echo "$ac_res" >&6; }
42583     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
42584   cat >>confdefs.h <<_ACEOF
42585 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
42586 _ACEOF
42587
42588                      eval ac_cv_have_decl_$gl_func=yes
42589 fi
42590       done
42591
42592
42593
42594
42595   :
42596
42597
42598
42599
42600
42601
42602
42603
42604
42605   :
42606
42607
42608
42609
42610
42611   if test $ac_cv_have_decl_unsetenv = no; then
42612     HAVE_DECL_UNSETENV=0
42613   fi
42614   for ac_func in unsetenv
42615 do :
42616   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
42617 if test "x$ac_cv_func_unsetenv" = xyes; then :
42618   cat >>confdefs.h <<_ACEOF
42619 #define HAVE_UNSETENV 1
42620 _ACEOF
42621
42622 fi
42623 done
42624
42625   if test $ac_cv_func_unsetenv = no; then
42626     HAVE_UNSETENV=0
42627   else
42628     HAVE_UNSETENV=1
42629         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
42630 $as_echo_n "checking for unsetenv() return type... " >&6; }
42631 if ${gt_cv_func_unsetenv_ret+:} false; then :
42632   $as_echo_n "(cached) " >&6
42633 else
42634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42635 /* end confdefs.h.  */
42636
42637 #undef _BSD
42638 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
42639 #include <stdlib.h>
42640 extern
42641 #ifdef __cplusplus
42642 "C"
42643 #endif
42644 int unsetenv (const char *name);
42645
42646 int
42647 main ()
42648 {
42649
42650   ;
42651   return 0;
42652 }
42653 _ACEOF
42654 if ac_fn_c_try_compile "$LINENO"; then :
42655   gt_cv_func_unsetenv_ret='int'
42656 else
42657   gt_cv_func_unsetenv_ret='void'
42658 fi
42659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42660 fi
42661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
42662 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
42663     if test $gt_cv_func_unsetenv_ret = 'void'; then
42664
42665 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
42666
42667       REPLACE_UNSETENV=1
42668     fi
42669
42670                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
42671 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
42672 if ${gl_cv_func_unsetenv_works+:} false; then :
42673   $as_echo_n "(cached) " >&6
42674 else
42675   if test "$cross_compiling" = yes; then :
42676   case "$host_os" in
42677                  # Guess yes on glibc systems.
42678          *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
42679                  # If we don't know, assume the worst.
42680          *)      gl_cv_func_unsetenv_works="guessing no" ;;
42681        esac
42682
42683 else
42684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42685 /* end confdefs.h.  */
42686
42687        #include <stdlib.h>
42688        #include <errno.h>
42689        extern char **environ;
42690
42691 int
42692 main ()
42693 {
42694
42695        char entry1[] = "a=1";
42696        char entry2[] = "b=2";
42697        char *env[] = { entry1, entry2, NULL };
42698        if (putenv ((char *) "a=1")) return 1;
42699        if (putenv (entry2)) return 2;
42700        entry2[0] = 'a';
42701        unsetenv ("a");
42702        if (getenv ("a")) return 3;
42703        if (!unsetenv ("") || errno != EINVAL) return 4;
42704        entry2[0] = 'b';
42705        environ = env;
42706        if (!getenv ("a")) return 5;
42707        entry2[0] = 'a';
42708        unsetenv ("a");
42709        if (getenv ("a")) return 6;
42710
42711   ;
42712   return 0;
42713 }
42714 _ACEOF
42715 if ac_fn_c_try_run "$LINENO"; then :
42716   gl_cv_func_unsetenv_works=yes
42717 else
42718   gl_cv_func_unsetenv_works=no
42719 fi
42720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42721   conftest.$ac_objext conftest.beam conftest.$ac_ext
42722 fi
42723
42724 fi
42725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
42726 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
42727     case "$gl_cv_func_unsetenv_works" in
42728       *yes) ;;
42729       *)
42730         REPLACE_UNSETENV=1
42731         ;;
42732     esac
42733   fi
42734
42735   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
42736
42737
42738
42739
42740
42741
42742
42743
42744   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
42745
42746
42747
42748
42749   :
42750
42751
42752
42753
42754
42755
42756   fi
42757
42758
42759
42760
42761
42762           GNULIB_UNSETENV=1
42763
42764
42765
42766
42767
42768 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
42769
42770
42771
42772
42773
42774
42775
42776
42777   :
42778
42779
42780
42781
42782
42783
42784
42785
42786
42787
42788
42789
42790
42791
42792
42793
42794
42795
42796   if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
42797                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
42798 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
42799 if ${gl_cv_func_futimesat_works+:} false; then :
42800   $as_echo_n "(cached) " >&6
42801 else
42802   touch conftest.file
42803        if test "$cross_compiling" = yes; then :
42804   case "$host_os" in
42805                    # Guess yes on glibc systems.
42806            *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
42807                    # If we don't know, assume the worst.
42808            *)      gl_cv_func_futimesat_works="guessing no" ;;
42809          esac
42810
42811 else
42812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42813 /* end confdefs.h.  */
42814
42815 #include <stddef.h>
42816 #include <sys/times.h>
42817 #include <fcntl.h>
42818
42819 int
42820 main ()
42821 {
42822     int fd = open ("conftest.file", O_RDWR);
42823           if (fd < 0) return 1;
42824           if (futimesat (fd, NULL, NULL)) return 2;
42825
42826   ;
42827   return 0;
42828 }
42829 _ACEOF
42830 if ac_fn_c_try_run "$LINENO"; then :
42831   gl_cv_func_futimesat_works=yes
42832 else
42833   gl_cv_func_futimesat_works=no
42834 fi
42835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42836   conftest.$ac_objext conftest.beam conftest.$ac_ext
42837 fi
42838
42839       rm -f conftest.file
42840 fi
42841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
42842 $as_echo "$gl_cv_func_futimesat_works" >&6; }
42843     case "$gl_cv_func_futimesat_works" in
42844       *yes) ;;
42845       *)
42846
42847 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
42848
42849         ;;
42850     esac
42851   fi
42852
42853
42854
42855   :
42856
42857
42858
42859
42860
42861   if test $ac_cv_func_vasnprintf = no; then
42862
42863
42864   :
42865
42866
42867
42868
42869
42870
42871
42872
42873
42874
42875
42876
42877
42878   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
42879
42880
42881
42882
42883
42884
42885
42886
42887
42888   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
42889
42890
42891
42892
42893
42894
42895
42896
42897
42898   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
42899
42900
42901
42902
42903
42904
42905
42906
42907
42908   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
42909
42910   if test $ac_cv_func_vasnprintf = yes; then
42911
42912 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
42913
42914   fi
42915
42916
42917
42918
42919
42920
42921
42922
42923
42924
42925
42926   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
42927 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
42928
42929 else
42930
42931 $as_echo "#define ptrdiff_t long" >>confdefs.h
42932
42933
42934 fi
42935
42936
42937
42938
42939
42940
42941
42942   fi
42943
42944
42945   for ac_func in vasprintf
42946 do :
42947   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
42948 if test "x$ac_cv_func_vasprintf" = xyes; then :
42949   cat >>confdefs.h <<_ACEOF
42950 #define HAVE_VASPRINTF 1
42951 _ACEOF
42952
42953 fi
42954 done
42955
42956   if test $ac_cv_func_vasprintf = no; then
42957
42958
42959
42960
42961
42962
42963
42964
42965
42966   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
42967
42968
42969
42970
42971
42972
42973
42974
42975
42976   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
42977
42978
42979   if test $ac_cv_func_vasprintf = yes; then
42980     REPLACE_VASPRINTF=1
42981   else
42982     HAVE_VASPRINTF=0
42983   fi
42984
42985
42986
42987
42988
42989
42990
42991
42992   fi
42993
42994
42995
42996
42997
42998
42999           GNULIB_VASPRINTF=1
43000
43001
43002
43003
43004
43005 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
43006
43007
43008
43009
43010
43011   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
43012
43013
43014
43015   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
43016
43017
43018
43019   gl_cv_func_vsnprintf_usable=no
43020   for ac_func in vsnprintf
43021 do :
43022   ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
43023 if test "x$ac_cv_func_vsnprintf" = xyes; then :
43024   cat >>confdefs.h <<_ACEOF
43025 #define HAVE_VSNPRINTF 1
43026 _ACEOF
43027
43028 fi
43029 done
43030
43031   if test $ac_cv_func_vsnprintf = yes; then
43032
43033
43034
43035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
43036 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
43037 if ${gl_cv_func_snprintf_size1+:} false; then :
43038   $as_echo_n "(cached) " >&6
43039 else
43040
43041       if test "$cross_compiling" = yes; then :
43042   gl_cv_func_snprintf_size1="guessing yes"
43043 else
43044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43045 /* end confdefs.h.  */
43046
43047 #include <stdio.h>
43048 #if HAVE_SNPRINTF
43049 # define my_snprintf snprintf
43050 #else
43051 # include <stdarg.h>
43052 static int my_snprintf (char *buf, int size, const char *format, ...)
43053 {
43054   va_list args;
43055   int ret;
43056   va_start (args, format);
43057   ret = vsnprintf (buf, size, format, args);
43058   va_end (args);
43059   return ret;
43060 }
43061 #endif
43062 int main()
43063 {
43064   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
43065   my_snprintf (buf, 1, "%d", 12345);
43066   return buf[1] != 'E';
43067 }
43068 _ACEOF
43069 if ac_fn_c_try_run "$LINENO"; then :
43070   gl_cv_func_snprintf_size1=yes
43071 else
43072   gl_cv_func_snprintf_size1=no
43073 fi
43074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43075   conftest.$ac_objext conftest.beam conftest.$ac_ext
43076 fi
43077
43078
43079 fi
43080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
43081 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
43082
43083     case "$gl_cv_func_snprintf_size1" in
43084       *yes)
43085
43086         case "$gl_cv_func_snprintf_retval_c99" in
43087           *yes)
43088
43089
43090      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
43091 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
43092 if ${gl_cv_func_printf_positions+:} false; then :
43093   $as_echo_n "(cached) " >&6
43094 else
43095
43096       if test "$cross_compiling" = yes; then :
43097
43098          case "$host_os" in
43099            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
43100                          gl_cv_func_printf_positions="guessing no";;
43101            beos*)        gl_cv_func_printf_positions="guessing no";;
43102            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
43103            *)            gl_cv_func_printf_positions="guessing yes";;
43104          esac
43105
43106 else
43107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43108 /* end confdefs.h.  */
43109
43110 #include <stdio.h>
43111 #include <string.h>
43112 /* The string "%2$d %1$d", with dollar characters protected from the shell's
43113    dollar expansion (possibly an autoconf bug).  */
43114 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
43115 static char buf[100];
43116 int main ()
43117 {
43118   sprintf (buf, format, 33, 55);
43119   return (strcmp (buf, "55 33") != 0);
43120 }
43121 _ACEOF
43122 if ac_fn_c_try_run "$LINENO"; then :
43123   gl_cv_func_printf_positions=yes
43124 else
43125   gl_cv_func_printf_positions=no
43126 fi
43127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43128   conftest.$ac_objext conftest.beam conftest.$ac_ext
43129 fi
43130
43131
43132 fi
43133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
43134 $as_echo "$gl_cv_func_printf_positions" >&6; }
43135
43136             case "$gl_cv_func_printf_positions" in
43137               *yes)
43138                 gl_cv_func_vsnprintf_usable=yes
43139                 ;;
43140             esac
43141             ;;
43142         esac
43143         ;;
43144     esac
43145   fi
43146   if test $gl_cv_func_vsnprintf_usable = no; then
43147
43148
43149
43150
43151
43152
43153
43154
43155
43156
43157   gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
43158
43159   if test $ac_cv_func_vsnprintf = yes; then
43160     REPLACE_VSNPRINTF=1
43161   fi
43162   :
43163
43164   fi
43165
43166   :
43167
43168
43169
43170
43171
43172   if test $ac_cv_have_decl_vsnprintf = no; then
43173     HAVE_DECL_VSNPRINTF=0
43174   fi
43175
43176
43177
43178
43179
43180
43181           GNULIB_VSNPRINTF=1
43182
43183
43184
43185
43186
43187 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
43188
43189
43190
43191
43192
43193
43194
43195
43196
43197
43198
43199
43200   :
43201
43202
43203
43204
43205
43206
43207
43208
43209      if test $gl_cv_have_include_next = yes; then
43210        gl_cv_next_wchar_h='<'wchar.h'>'
43211      else
43212        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
43213 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
43214 if ${gl_cv_next_wchar_h+:} false; then :
43215   $as_echo_n "(cached) " >&6
43216 else
43217
43218              if test $ac_cv_header_wchar_h = yes; then
43219
43220
43221
43222
43223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43224 /* end confdefs.h.  */
43225 #include <wchar.h>
43226 _ACEOF
43227                 case "$host_os" in
43228     aix*) gl_absname_cpp="$ac_cpp -C" ;;
43229     *)    gl_absname_cpp="$ac_cpp" ;;
43230   esac
43231
43232   case "$host_os" in
43233     mingw*)
43234                                           gl_dirsep_regex='[/\\]'
43235       ;;
43236     *)
43237       gl_dirsep_regex='\/'
43238       ;;
43239   esac
43240       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
43241   gl_header_literal_regex=`echo 'wchar.h' \
43242                            | sed -e "$gl_make_literal_regex_sed"`
43243   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
43244       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
43245       s|^/[^/]|//&|
43246       p
43247       q
43248     }'
43249
43250         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43251   sed -n "$gl_absolute_header_sed"`
43252
43253            gl_header=$gl_cv_absolute_wchar_h
43254            gl_cv_next_wchar_h='"'$gl_header'"'
43255           else
43256                gl_cv_next_wchar_h='<'wchar.h'>'
43257              fi
43258
43259
43260 fi
43261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
43262 $as_echo "$gl_cv_next_wchar_h" >&6; }
43263      fi
43264      NEXT_WCHAR_H=$gl_cv_next_wchar_h
43265
43266      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43267        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43268        gl_next_as_first_directive='<'wchar.h'>'
43269      else
43270        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43271        gl_next_as_first_directive=$gl_cv_next_wchar_h
43272      fi
43273      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
43274
43275
43276
43277
43278   if test $ac_cv_header_wchar_h = yes; then
43279     HAVE_WCHAR_H=1
43280   else
43281     HAVE_WCHAR_H=0
43282   fi
43283
43284
43285
43286
43287
43288   if test $gt_cv_c_wint_t = yes; then
43289     HAVE_WINT_T=1
43290   else
43291     HAVE_WINT_T=0
43292   fi
43293
43294
43295
43296     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb      wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset      wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp      wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr      wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth     ; do
43297     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
43298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
43299 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
43300 if eval \${$as_gl_Symbol+:} false; then :
43301   $as_echo_n "(cached) " >&6
43302 else
43303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43304 /* end confdefs.h.  */
43305
43306 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
43307    <wchar.h>.
43308    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43309    included before <wchar.h>.  */
43310 #if !(defined __GLIBC__ && !defined __UCLIBC__)
43311 # include <stddef.h>
43312 # include <stdio.h>
43313 # include <time.h>
43314 #endif
43315 #include <wchar.h>
43316
43317 int
43318 main ()
43319 {
43320 #undef $gl_func
43321   (void) $gl_func;
43322   ;
43323   return 0;
43324 }
43325 _ACEOF
43326 if ac_fn_c_try_compile "$LINENO"; then :
43327   eval "$as_gl_Symbol=yes"
43328 else
43329   eval "$as_gl_Symbol=no"
43330 fi
43331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43332 fi
43333 eval ac_res=\$$as_gl_Symbol
43334                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
43335 $as_echo "$ac_res" >&6; }
43336     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
43337   cat >>confdefs.h <<_ACEOF
43338 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
43339 _ACEOF
43340
43341                      eval ac_cv_have_decl_$gl_func=yes
43342 fi
43343       done
43344
43345
43346
43347
43348
43349
43350
43351
43352
43353
43354
43355   :
43356
43357
43358
43359
43360
43361
43362   :
43363
43364
43365
43366
43367
43368   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
43369
43370
43371
43372      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
43373 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
43374 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
43375   $as_echo_n "(cached) " >&6
43376 else
43377
43378                   case "$host_os" in
43379                      # Guess no on AIX and OSF/1.
43380         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
43381                      # Guess yes otherwise.
43382         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
43383       esac
43384       if test $LOCALE_JA != none; then
43385         if test "$cross_compiling" = yes; then :
43386   :
43387 else
43388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43389 /* end confdefs.h.  */
43390
43391 #include <locale.h>
43392 #include <string.h>
43393 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
43394    <wchar.h>.
43395    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43396    included before <wchar.h>.  */
43397 #include <stddef.h>
43398 #include <stdio.h>
43399 #include <time.h>
43400 #include <wchar.h>
43401 int main ()
43402 {
43403   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
43404     {
43405       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
43406       mbstate_t state;
43407       wchar_t wc;
43408
43409       memset (&state, '\0', sizeof (mbstate_t));
43410       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
43411         if (mbsinit (&state))
43412           return 1;
43413     }
43414   return 0;
43415 }
43416 _ACEOF
43417 if ac_fn_c_try_run "$LINENO"; then :
43418   gl_cv_func_mbrtowc_incomplete_state=yes
43419 else
43420   gl_cv_func_mbrtowc_incomplete_state=no
43421 fi
43422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43423   conftest.$ac_objext conftest.beam conftest.$ac_ext
43424 fi
43425
43426       fi
43427
43428 fi
43429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
43430 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
43431
43432
43433
43434
43435      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
43436 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
43437 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
43438   $as_echo_n "(cached) " >&6
43439 else
43440
43441                   case "$host_os" in
43442                     # Guess no on Solaris 8.
43443         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
43444                     # Guess yes otherwise.
43445         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
43446       esac
43447       if test $LOCALE_ZH_CN != none; then
43448         if test "$cross_compiling" = yes; then :
43449   :
43450 else
43451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43452 /* end confdefs.h.  */
43453
43454 #include <locale.h>
43455 #include <stdlib.h>
43456 #include <string.h>
43457 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
43458    <wchar.h>.
43459    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43460    included before <wchar.h>.  */
43461 #include <stddef.h>
43462 #include <stdio.h>
43463 #include <time.h>
43464 #include <wchar.h>
43465 int main ()
43466 {
43467   /* This fails on Solaris 8:
43468      mbrtowc returns 2, and sets wc to 0x00F0.
43469      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
43470   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
43471     {
43472       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
43473       mbstate_t state;
43474       wchar_t wc;
43475
43476       memset (&state, '\0', sizeof (mbstate_t));
43477       if (mbrtowc (&wc, input + 3, 6, &state) != 4
43478           && mbtowc (&wc, input + 3, 6) == 4)
43479         return 1;
43480     }
43481   return 0;
43482 }
43483 _ACEOF
43484 if ac_fn_c_try_run "$LINENO"; then :
43485   gl_cv_func_mbrtowc_sanitycheck=yes
43486 else
43487   gl_cv_func_mbrtowc_sanitycheck=no
43488 fi
43489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43490   conftest.$ac_objext conftest.beam conftest.$ac_ext
43491 fi
43492
43493       fi
43494
43495 fi
43496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
43497 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
43498
43499     REPLACE_MBSTATE_T=0
43500     case "$gl_cv_func_mbrtowc_incomplete_state" in
43501       *yes) ;;
43502       *) REPLACE_MBSTATE_T=1 ;;
43503     esac
43504     case "$gl_cv_func_mbrtowc_sanitycheck" in
43505       *yes) ;;
43506       *) REPLACE_MBSTATE_T=1 ;;
43507     esac
43508   else
43509     REPLACE_MBSTATE_T=1
43510   fi
43511
43512
43513
43514   :
43515
43516
43517
43518
43519
43520   if test $ac_cv_func_wcrtomb = no; then
43521     HAVE_WCRTOMB=0
43522     ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
43523 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
43524    <wchar.h>.
43525    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43526    included before <wchar.h>.  */
43527 #include <stddef.h>
43528 #include <stdio.h>
43529 #include <time.h>
43530 #include <wchar.h>
43531
43532 "
43533 if test "x$ac_cv_have_decl_wcrtomb" = xyes; then :
43534   ac_have_decl=1
43535 else
43536   ac_have_decl=0
43537 fi
43538
43539 cat >>confdefs.h <<_ACEOF
43540 #define HAVE_DECL_WCRTOMB $ac_have_decl
43541 _ACEOF
43542
43543     if test $ac_cv_have_decl_wcrtomb = yes; then
43544                         REPLACE_WCRTOMB=1
43545     fi
43546   else
43547     if test $REPLACE_MBSTATE_T = 1; then
43548       REPLACE_WCRTOMB=1
43549     else
43550
43551
43552
43553
43554
43555              { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
43556 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
43557 if ${gl_cv_func_wcrtomb_retval+:} false; then :
43558   $as_echo_n "(cached) " >&6
43559 else
43560
43561                               case "$host_os" in
43562                                      # Guess no on AIX 4, OSF/1 and Solaris.
43563             aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
43564                                      # Guess yes otherwise.
43565             *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
43566           esac
43567           if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
43568             if test "$cross_compiling" = yes; then :
43569   :
43570 else
43571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43572 /* end confdefs.h.  */
43573
43574 #include <locale.h>
43575 #include <string.h>
43576 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
43577    <wchar.h>.
43578    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43579    included before <wchar.h>.  */
43580 #include <stddef.h>
43581 #include <stdio.h>
43582 #include <time.h>
43583 #include <wchar.h>
43584 int main ()
43585 {
43586   int result = 0;
43587   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
43588     {
43589       if (wcrtomb (NULL, 0, NULL) != 1)
43590         result |= 1;
43591     }
43592   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
43593     {
43594       if (wcrtomb (NULL, 0, NULL) != 1)
43595         result |= 2;
43596     }
43597   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
43598     {
43599       if (wcrtomb (NULL, 0, NULL) != 1)
43600         result |= 4;
43601     }
43602   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
43603     {
43604       if (wcrtomb (NULL, 0, NULL) != 1)
43605         result |= 8;
43606     }
43607   return result;
43608 }
43609 _ACEOF
43610 if ac_fn_c_try_run "$LINENO"; then :
43611   gl_cv_func_wcrtomb_retval=yes
43612 else
43613   gl_cv_func_wcrtomb_retval=no
43614 fi
43615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43616   conftest.$ac_objext conftest.beam conftest.$ac_ext
43617 fi
43618
43619           fi
43620
43621 fi
43622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
43623 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
43624       case "$gl_cv_func_wcrtomb_retval" in
43625         *yes) ;;
43626         *) REPLACE_WCRTOMB=1 ;;
43627       esac
43628     fi
43629   fi
43630
43631   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
43632
43633
43634
43635
43636
43637
43638
43639
43640   gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
43641
43642
43643   :
43644
43645   fi
43646
43647
43648
43649
43650
43651           GNULIB_WCRTOMB=1
43652
43653
43654
43655
43656
43657 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
43658
43659
43660
43661
43662
43663
43664
43665
43666   :
43667
43668
43669
43670
43671
43672   if test $ac_cv_func_iswcntrl = yes; then
43673     HAVE_ISWCNTRL=1
43674   else
43675     HAVE_ISWCNTRL=0
43676   fi
43677
43678
43679
43680   if test $gt_cv_c_wint_t = yes; then
43681     HAVE_WINT_T=1
43682   else
43683     HAVE_WINT_T=0
43684   fi
43685
43686
43687
43688
43689
43690
43691
43692
43693   :
43694
43695
43696
43697
43698
43699
43700
43701
43702      if test $gl_cv_have_include_next = yes; then
43703        gl_cv_next_wctype_h='<'wctype.h'>'
43704      else
43705        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
43706 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
43707 if ${gl_cv_next_wctype_h+:} false; then :
43708   $as_echo_n "(cached) " >&6
43709 else
43710
43711              if test $ac_cv_header_wctype_h = yes; then
43712
43713
43714
43715
43716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43717 /* end confdefs.h.  */
43718 #include <wctype.h>
43719 _ACEOF
43720                 case "$host_os" in
43721     aix*) gl_absname_cpp="$ac_cpp -C" ;;
43722     *)    gl_absname_cpp="$ac_cpp" ;;
43723   esac
43724
43725   case "$host_os" in
43726     mingw*)
43727                                           gl_dirsep_regex='[/\\]'
43728       ;;
43729     *)
43730       gl_dirsep_regex='\/'
43731       ;;
43732   esac
43733       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
43734   gl_header_literal_regex=`echo 'wctype.h' \
43735                            | sed -e "$gl_make_literal_regex_sed"`
43736   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
43737       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
43738       s|^/[^/]|//&|
43739       p
43740       q
43741     }'
43742
43743         gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43744   sed -n "$gl_absolute_header_sed"`
43745
43746            gl_header=$gl_cv_absolute_wctype_h
43747            gl_cv_next_wctype_h='"'$gl_header'"'
43748           else
43749                gl_cv_next_wctype_h='<'wctype.h'>'
43750              fi
43751
43752
43753 fi
43754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
43755 $as_echo "$gl_cv_next_wctype_h" >&6; }
43756      fi
43757      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
43758
43759      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43760        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43761        gl_next_as_first_directive='<'wctype.h'>'
43762      else
43763        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43764        gl_next_as_first_directive=$gl_cv_next_wctype_h
43765      fi
43766      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
43767
43768
43769
43770
43771   if test $ac_cv_header_wctype_h = yes; then
43772     if test $ac_cv_func_iswcntrl = yes; then
43773                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
43774 $as_echo_n "checking whether iswcntrl works... " >&6; }
43775 if ${gl_cv_func_iswcntrl_works+:} false; then :
43776   $as_echo_n "(cached) " >&6
43777 else
43778
43779           if test "$cross_compiling" = yes; then :
43780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43781 /* end confdefs.h.  */
43782 #include <stdlib.h>
43783                           #if __GNU_LIBRARY__ == 1
43784                           Linux libc5 i18n is broken.
43785                           #endif
43786 int
43787 main ()
43788 {
43789
43790   ;
43791   return 0;
43792 }
43793 _ACEOF
43794 if ac_fn_c_try_compile "$LINENO"; then :
43795   gl_cv_func_iswcntrl_works="guessing yes"
43796 else
43797   gl_cv_func_iswcntrl_works="guessing no"
43798 fi
43799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43800
43801 else
43802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43803 /* end confdefs.h.  */
43804
43805                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
43806                   included before <wchar.h>.
43807                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
43808                   must be included before <wchar.h>.  */
43809                #include <stddef.h>
43810                #include <stdio.h>
43811                #include <time.h>
43812                #include <wchar.h>
43813                #include <wctype.h>
43814                int main () { return iswprint ('x') == 0; }
43815
43816 _ACEOF
43817 if ac_fn_c_try_run "$LINENO"; then :
43818   gl_cv_func_iswcntrl_works=yes
43819 else
43820   gl_cv_func_iswcntrl_works=no
43821 fi
43822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43823   conftest.$ac_objext conftest.beam conftest.$ac_ext
43824 fi
43825
43826
43827 fi
43828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
43829 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
43830     fi
43831     HAVE_WCTYPE_H=1
43832   else
43833     HAVE_WCTYPE_H=0
43834   fi
43835
43836
43837   case "$gl_cv_func_iswcntrl_works" in
43838     *yes) REPLACE_ISWCNTRL=0 ;;
43839     *)    REPLACE_ISWCNTRL=1 ;;
43840   esac
43841
43842
43843   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
43844         :
43845   fi
43846
43847   if test $REPLACE_ISWCNTRL = 1; then
43848     REPLACE_TOWLOWER=1
43849   else
43850     for ac_func in towlower
43851 do :
43852   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
43853 if test "x$ac_cv_func_towlower" = xyes; then :
43854   cat >>confdefs.h <<_ACEOF
43855 #define HAVE_TOWLOWER 1
43856 _ACEOF
43857
43858 fi
43859 done
43860
43861     if test $ac_cv_func_towlower = yes; then
43862       REPLACE_TOWLOWER=0
43863     else
43864       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
43865              included before <wchar.h>.
43866              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
43867              must be included before <wchar.h>.  */
43868           #include <stddef.h>
43869           #include <stdio.h>
43870           #include <time.h>
43871           #include <wchar.h>
43872           #if HAVE_WCTYPE_H
43873           # include <wctype.h>
43874           #endif
43875
43876 "
43877 if test "x$ac_cv_have_decl_towlower" = xyes; then :
43878   ac_have_decl=1
43879 else
43880   ac_have_decl=0
43881 fi
43882
43883 cat >>confdefs.h <<_ACEOF
43884 #define HAVE_DECL_TOWLOWER $ac_have_decl
43885 _ACEOF
43886
43887       if test $ac_cv_have_decl_towlower = yes; then
43888                                 REPLACE_TOWLOWER=1
43889       else
43890         REPLACE_TOWLOWER=0
43891       fi
43892     fi
43893   fi
43894
43895
43896   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
43897         :
43898   fi
43899
43900           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
43901 $as_echo_n "checking for wctype_t... " >&6; }
43902 if ${gl_cv_type_wctype_t+:} false; then :
43903   $as_echo_n "(cached) " >&6
43904 else
43905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43906 /* end confdefs.h.  */
43907 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
43908                included before <wchar.h>.
43909                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
43910                must be included before <wchar.h>.  */
43911             #include <stddef.h>
43912             #include <stdio.h>
43913             #include <time.h>
43914             #include <wchar.h>
43915             #if HAVE_WCTYPE_H
43916             # include <wctype.h>
43917             #endif
43918             wctype_t a;
43919
43920 int
43921 main ()
43922 {
43923
43924   ;
43925   return 0;
43926 }
43927 _ACEOF
43928 if ac_fn_c_try_compile "$LINENO"; then :
43929   gl_cv_type_wctype_t=yes
43930 else
43931   gl_cv_type_wctype_t=no
43932 fi
43933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43934
43935 fi
43936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
43937 $as_echo "$gl_cv_type_wctype_t" >&6; }
43938   if test $gl_cv_type_wctype_t = no; then
43939     HAVE_WCTYPE_T=0
43940   fi
43941
43942       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
43943 $as_echo_n "checking for wctrans_t... " >&6; }
43944 if ${gl_cv_type_wctrans_t+:} false; then :
43945   $as_echo_n "(cached) " >&6
43946 else
43947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43948 /* end confdefs.h.  */
43949 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
43950                included before <wchar.h>.
43951                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
43952                must be included before <wchar.h>.  */
43953             #include <stddef.h>
43954             #include <stdio.h>
43955             #include <time.h>
43956             #include <wchar.h>
43957             #include <wctype.h>
43958             wctrans_t a;
43959
43960 int
43961 main ()
43962 {
43963
43964   ;
43965   return 0;
43966 }
43967 _ACEOF
43968 if ac_fn_c_try_compile "$LINENO"; then :
43969   gl_cv_type_wctrans_t=yes
43970 else
43971   gl_cv_type_wctrans_t=no
43972 fi
43973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43974
43975 fi
43976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
43977 $as_echo "$gl_cv_type_wctrans_t" >&6; }
43978   if test $gl_cv_type_wctrans_t = no; then
43979     HAVE_WCTRANS_T=0
43980   fi
43981
43982
43983     for gl_func in wctype iswctype wctrans towctrans     ; do
43984     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
43985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
43986 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
43987 if eval \${$as_gl_Symbol+:} false; then :
43988   $as_echo_n "(cached) " >&6
43989 else
43990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43991 /* end confdefs.h.  */
43992
43993 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
43994    <wchar.h>.
43995    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43996    included before <wchar.h>.  */
43997 #if !(defined __GLIBC__ && !defined __UCLIBC__)
43998 # include <stddef.h>
43999 # include <stdio.h>
44000 # include <time.h>
44001 # include <wchar.h>
44002 #endif
44003 #include <wctype.h>
44004
44005 int
44006 main ()
44007 {
44008 #undef $gl_func
44009   (void) $gl_func;
44010   ;
44011   return 0;
44012 }
44013 _ACEOF
44014 if ac_fn_c_try_compile "$LINENO"; then :
44015   eval "$as_gl_Symbol=yes"
44016 else
44017   eval "$as_gl_Symbol=no"
44018 fi
44019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44020 fi
44021 eval ac_res=\$$as_gl_Symbol
44022                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
44023 $as_echo "$ac_res" >&6; }
44024     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
44025   cat >>confdefs.h <<_ACEOF
44026 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
44027 _ACEOF
44028
44029                      eval ac_cv_have_decl_$gl_func=yes
44030 fi
44031       done
44032
44033
44034   :
44035
44036   :
44037
44038
44039
44040   for ac_header in stdint.h
44041 do :
44042   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
44043 if test "x$ac_cv_header_stdint_h" = xyes; then :
44044   cat >>confdefs.h <<_ACEOF
44045 #define HAVE_STDINT_H 1
44046 _ACEOF
44047
44048 fi
44049
44050 done
44051
44052
44053
44054
44055   :
44056
44057
44058   :
44059
44060
44061   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
44062
44063   # End of code from modules
44064
44065
44066
44067
44068
44069
44070
44071
44072
44073   gltests_libdeps=
44074   gltests_ltlibdeps=
44075
44076
44077
44078
44079
44080
44081
44082
44083
44084   gl_source_base='tests'
44085   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
44086
44087   gl_module_indicator_condition=$gltests_WITNESS
44088
44089
44090
44091
44092
44093
44094
44095
44096
44097
44098 for ac_header in fcntl.h sys/file.h linux/fiemap.h
44099 do :
44100   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44101 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44102 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44103   cat >>confdefs.h <<_ACEOF
44104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44105 _ACEOF
44106
44107 fi
44108
44109 done
44110
44111 for ac_func in lchown posix_fadvise
44112 do :
44113   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44114 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
44115 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
44116   cat >>confdefs.h <<_ACEOF
44117 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44118 _ACEOF
44119
44120 fi
44121 done
44122
44123
44124 # Internationalization support.
44125
44126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
44127 $as_echo_n "checking whether NLS is requested... " >&6; }
44128     # Check whether --enable-nls was given.
44129 if test "${enable_nls+set}" = set; then :
44130   enableval=$enable_nls; USE_NLS=$enableval
44131 else
44132   USE_NLS=yes
44133 fi
44134
44135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
44136 $as_echo "$USE_NLS" >&6; }
44137
44138
44139
44140
44141       GETTEXT_MACRO_VERSION=0.18
44142
44143
44144
44145
44146 # Prepare PATH_SEPARATOR.
44147 # The user is always right.
44148 if test "${PATH_SEPARATOR+set}" != set; then
44149   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
44150   # contains only /bin. Note that ksh looks also at the FPATH variable,
44151   # so we have to set that as well for the test.
44152   PATH_SEPARATOR=:
44153   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
44154     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
44155            || PATH_SEPARATOR=';'
44156        }
44157 fi
44158
44159 # Find out how to test for executable files. Don't use a zero-byte file,
44160 # as systems may use methods other than mode bits to determine executability.
44161 cat >conf$$.file <<_ASEOF
44162 #! /bin/sh
44163 exit 0
44164 _ASEOF
44165 chmod +x conf$$.file
44166 if test -x conf$$.file >/dev/null 2>&1; then
44167   ac_executable_p="test -x"
44168 else
44169   ac_executable_p="test -f"
44170 fi
44171 rm -f conf$$.file
44172
44173 # Extract the first word of "msgfmt", so it can be a program name with args.
44174 set dummy msgfmt; ac_word=$2
44175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44176 $as_echo_n "checking for $ac_word... " >&6; }
44177 if ${ac_cv_path_MSGFMT+:} false; then :
44178   $as_echo_n "(cached) " >&6
44179 else
44180   case "$MSGFMT" in
44181   [\\/]* | ?:[\\/]*)
44182     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
44183     ;;
44184   *)
44185     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
44186     for ac_dir in $PATH; do
44187       IFS="$ac_save_IFS"
44188       test -z "$ac_dir" && ac_dir=.
44189       for ac_exec_ext in '' $ac_executable_extensions; do
44190         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
44191           echo "$as_me: trying $ac_dir/$ac_word..." >&5
44192           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
44193      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
44194             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
44195             break 2
44196           fi
44197         fi
44198       done
44199     done
44200     IFS="$ac_save_IFS"
44201   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
44202     ;;
44203 esac
44204 fi
44205 MSGFMT="$ac_cv_path_MSGFMT"
44206 if test "$MSGFMT" != ":"; then
44207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
44208 $as_echo "$MSGFMT" >&6; }
44209 else
44210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44211 $as_echo "no" >&6; }
44212 fi
44213
44214   # Extract the first word of "gmsgfmt", so it can be a program name with args.
44215 set dummy gmsgfmt; ac_word=$2
44216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44217 $as_echo_n "checking for $ac_word... " >&6; }
44218 if ${ac_cv_path_GMSGFMT+:} false; then :
44219   $as_echo_n "(cached) " >&6
44220 else
44221   case $GMSGFMT in
44222   [\\/]* | ?:[\\/]*)
44223   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
44224   ;;
44225   *)
44226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44227 for as_dir in $PATH
44228 do
44229   IFS=$as_save_IFS
44230   test -z "$as_dir" && as_dir=.
44231     for ac_exec_ext in '' $ac_executable_extensions; do
44232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44233     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
44234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44235     break 2
44236   fi
44237 done
44238   done
44239 IFS=$as_save_IFS
44240
44241   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
44242   ;;
44243 esac
44244 fi
44245 GMSGFMT=$ac_cv_path_GMSGFMT
44246 if test -n "$GMSGFMT"; then
44247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
44248 $as_echo "$GMSGFMT" >&6; }
44249 else
44250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44251 $as_echo "no" >&6; }
44252 fi
44253
44254
44255
44256     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
44257     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
44258     *) MSGFMT_015=$MSGFMT ;;
44259   esac
44260
44261   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
44262     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
44263     *) GMSGFMT_015=$GMSGFMT ;;
44264   esac
44265
44266
44267
44268 # Prepare PATH_SEPARATOR.
44269 # The user is always right.
44270 if test "${PATH_SEPARATOR+set}" != set; then
44271   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
44272   # contains only /bin. Note that ksh looks also at the FPATH variable,
44273   # so we have to set that as well for the test.
44274   PATH_SEPARATOR=:
44275   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
44276     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
44277            || PATH_SEPARATOR=';'
44278        }
44279 fi
44280
44281 # Find out how to test for executable files. Don't use a zero-byte file,
44282 # as systems may use methods other than mode bits to determine executability.
44283 cat >conf$$.file <<_ASEOF
44284 #! /bin/sh
44285 exit 0
44286 _ASEOF
44287 chmod +x conf$$.file
44288 if test -x conf$$.file >/dev/null 2>&1; then
44289   ac_executable_p="test -x"
44290 else
44291   ac_executable_p="test -f"
44292 fi
44293 rm -f conf$$.file
44294
44295 # Extract the first word of "xgettext", so it can be a program name with args.
44296 set dummy xgettext; ac_word=$2
44297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44298 $as_echo_n "checking for $ac_word... " >&6; }
44299 if ${ac_cv_path_XGETTEXT+:} false; then :
44300   $as_echo_n "(cached) " >&6
44301 else
44302   case "$XGETTEXT" in
44303   [\\/]* | ?:[\\/]*)
44304     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
44305     ;;
44306   *)
44307     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
44308     for ac_dir in $PATH; do
44309       IFS="$ac_save_IFS"
44310       test -z "$ac_dir" && ac_dir=.
44311       for ac_exec_ext in '' $ac_executable_extensions; do
44312         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
44313           echo "$as_me: trying $ac_dir/$ac_word..." >&5
44314           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
44315      (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
44316             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
44317             break 2
44318           fi
44319         fi
44320       done
44321     done
44322     IFS="$ac_save_IFS"
44323   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
44324     ;;
44325 esac
44326 fi
44327 XGETTEXT="$ac_cv_path_XGETTEXT"
44328 if test "$XGETTEXT" != ":"; then
44329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
44330 $as_echo "$XGETTEXT" >&6; }
44331 else
44332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44333 $as_echo "no" >&6; }
44334 fi
44335
44336     rm -f messages.po
44337
44338     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
44339     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
44340     *) XGETTEXT_015=$XGETTEXT ;;
44341   esac
44342
44343
44344
44345 # Prepare PATH_SEPARATOR.
44346 # The user is always right.
44347 if test "${PATH_SEPARATOR+set}" != set; then
44348   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
44349   # contains only /bin. Note that ksh looks also at the FPATH variable,
44350   # so we have to set that as well for the test.
44351   PATH_SEPARATOR=:
44352   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
44353     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
44354            || PATH_SEPARATOR=';'
44355        }
44356 fi
44357
44358 # Find out how to test for executable files. Don't use a zero-byte file,
44359 # as systems may use methods other than mode bits to determine executability.
44360 cat >conf$$.file <<_ASEOF
44361 #! /bin/sh
44362 exit 0
44363 _ASEOF
44364 chmod +x conf$$.file
44365 if test -x conf$$.file >/dev/null 2>&1; then
44366   ac_executable_p="test -x"
44367 else
44368   ac_executable_p="test -f"
44369 fi
44370 rm -f conf$$.file
44371
44372 # Extract the first word of "msgmerge", so it can be a program name with args.
44373 set dummy msgmerge; ac_word=$2
44374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44375 $as_echo_n "checking for $ac_word... " >&6; }
44376 if ${ac_cv_path_MSGMERGE+:} false; then :
44377   $as_echo_n "(cached) " >&6
44378 else
44379   case "$MSGMERGE" in
44380   [\\/]* | ?:[\\/]*)
44381     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
44382     ;;
44383   *)
44384     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
44385     for ac_dir in $PATH; do
44386       IFS="$ac_save_IFS"
44387       test -z "$ac_dir" && ac_dir=.
44388       for ac_exec_ext in '' $ac_executable_extensions; do
44389         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
44390           echo "$as_me: trying $ac_dir/$ac_word..." >&5
44391           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
44392             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
44393             break 2
44394           fi
44395         fi
44396       done
44397     done
44398     IFS="$ac_save_IFS"
44399   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
44400     ;;
44401 esac
44402 fi
44403 MSGMERGE="$ac_cv_path_MSGMERGE"
44404 if test "$MSGMERGE" != ":"; then
44405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
44406 $as_echo "$MSGMERGE" >&6; }
44407 else
44408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44409 $as_echo "no" >&6; }
44410 fi
44411
44412
44413         test -n "$localedir" || localedir='${datadir}/locale'
44414
44415
44416     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
44417
44418
44419   ac_config_commands="$ac_config_commands po-directories"
44420
44421
44422
44423
44424
44425
44426
44427
44428
44429
44430
44431
44432
44433     use_additional=yes
44434
44435   acl_save_prefix="$prefix"
44436   prefix="$acl_final_prefix"
44437   acl_save_exec_prefix="$exec_prefix"
44438   exec_prefix="$acl_final_exec_prefix"
44439
44440     eval additional_includedir=\"$includedir\"
44441     eval additional_libdir=\"$libdir\"
44442
44443   exec_prefix="$acl_save_exec_prefix"
44444   prefix="$acl_save_prefix"
44445
44446
44447 # Check whether --with-libiconv-prefix was given.
44448 if test "${with_libiconv_prefix+set}" = set; then :
44449   withval=$with_libiconv_prefix;
44450     if test "X$withval" = "Xno"; then
44451       use_additional=no
44452     else
44453       if test "X$withval" = "X"; then
44454
44455   acl_save_prefix="$prefix"
44456   prefix="$acl_final_prefix"
44457   acl_save_exec_prefix="$exec_prefix"
44458   exec_prefix="$acl_final_exec_prefix"
44459
44460           eval additional_includedir=\"$includedir\"
44461           eval additional_libdir=\"$libdir\"
44462
44463   exec_prefix="$acl_save_exec_prefix"
44464   prefix="$acl_save_prefix"
44465
44466       else
44467         additional_includedir="$withval/include"
44468         additional_libdir="$withval/$acl_libdirstem"
44469         if test "$acl_libdirstem2" != "$acl_libdirstem" \
44470            && ! test -d "$withval/$acl_libdirstem"; then
44471           additional_libdir="$withval/$acl_libdirstem2"
44472         fi
44473       fi
44474     fi
44475
44476 fi
44477
44478       LIBICONV=
44479   LTLIBICONV=
44480   INCICONV=
44481   LIBICONV_PREFIX=
44482       HAVE_LIBICONV=
44483   rpathdirs=
44484   ltrpathdirs=
44485   names_already_handled=
44486   names_next_round='iconv '
44487   while test -n "$names_next_round"; do
44488     names_this_round="$names_next_round"
44489     names_next_round=
44490     for name in $names_this_round; do
44491       already_handled=
44492       for n in $names_already_handled; do
44493         if test "$n" = "$name"; then
44494           already_handled=yes
44495           break
44496         fi
44497       done
44498       if test -z "$already_handled"; then
44499         names_already_handled="$names_already_handled $name"
44500                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
44501         eval value=\"\$HAVE_LIB$uppername\"
44502         if test -n "$value"; then
44503           if test "$value" = yes; then
44504             eval value=\"\$LIB$uppername\"
44505             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
44506             eval value=\"\$LTLIB$uppername\"
44507             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
44508           else
44509                                     :
44510           fi
44511         else
44512                               found_dir=
44513           found_la=
44514           found_so=
44515           found_a=
44516           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
44517           if test -n "$acl_shlibext"; then
44518             shrext=".$acl_shlibext"             # typically: shrext=.so
44519           else
44520             shrext=
44521           fi
44522           if test $use_additional = yes; then
44523             dir="$additional_libdir"
44524                                     if test -n "$acl_shlibext"; then
44525               if test -f "$dir/$libname$shrext"; then
44526                 found_dir="$dir"
44527                 found_so="$dir/$libname$shrext"
44528               else
44529                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
44530                   ver=`(cd "$dir" && \
44531                         for f in "$libname$shrext".*; do echo "$f"; done \
44532                         | sed -e "s,^$libname$shrext\\\\.,," \
44533                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
44534                         | sed 1q ) 2>/dev/null`
44535                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
44536                     found_dir="$dir"
44537                     found_so="$dir/$libname$shrext.$ver"
44538                   fi
44539                 else
44540                   eval library_names=\"$acl_library_names_spec\"
44541                   for f in $library_names; do
44542                     if test -f "$dir/$f"; then
44543                       found_dir="$dir"
44544                       found_so="$dir/$f"
44545                       break
44546                     fi
44547                   done
44548                 fi
44549               fi
44550             fi
44551                         if test "X$found_dir" = "X"; then
44552               if test -f "$dir/$libname.$acl_libext"; then
44553                 found_dir="$dir"
44554                 found_a="$dir/$libname.$acl_libext"
44555               fi
44556             fi
44557             if test "X$found_dir" != "X"; then
44558               if test -f "$dir/$libname.la"; then
44559                 found_la="$dir/$libname.la"
44560               fi
44561             fi
44562           fi
44563           if test "X$found_dir" = "X"; then
44564             for x in $LDFLAGS $LTLIBICONV; do
44565
44566   acl_save_prefix="$prefix"
44567   prefix="$acl_final_prefix"
44568   acl_save_exec_prefix="$exec_prefix"
44569   exec_prefix="$acl_final_exec_prefix"
44570   eval x=\"$x\"
44571   exec_prefix="$acl_save_exec_prefix"
44572   prefix="$acl_save_prefix"
44573
44574               case "$x" in
44575                 -L*)
44576                   dir=`echo "X$x" | sed -e 's/^X-L//'`
44577                                     if test -n "$acl_shlibext"; then
44578                     if test -f "$dir/$libname$shrext"; then
44579                       found_dir="$dir"
44580                       found_so="$dir/$libname$shrext"
44581                     else
44582                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
44583                         ver=`(cd "$dir" && \
44584                               for f in "$libname$shrext".*; do echo "$f"; done \
44585                               | sed -e "s,^$libname$shrext\\\\.,," \
44586                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
44587                               | sed 1q ) 2>/dev/null`
44588                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
44589                           found_dir="$dir"
44590                           found_so="$dir/$libname$shrext.$ver"
44591                         fi
44592                       else
44593                         eval library_names=\"$acl_library_names_spec\"
44594                         for f in $library_names; do
44595                           if test -f "$dir/$f"; then
44596                             found_dir="$dir"
44597                             found_so="$dir/$f"
44598                             break
44599                           fi
44600                         done
44601                       fi
44602                     fi
44603                   fi
44604                                     if test "X$found_dir" = "X"; then
44605                     if test -f "$dir/$libname.$acl_libext"; then
44606                       found_dir="$dir"
44607                       found_a="$dir/$libname.$acl_libext"
44608                     fi
44609                   fi
44610                   if test "X$found_dir" != "X"; then
44611                     if test -f "$dir/$libname.la"; then
44612                       found_la="$dir/$libname.la"
44613                     fi
44614                   fi
44615                   ;;
44616               esac
44617               if test "X$found_dir" != "X"; then
44618                 break
44619               fi
44620             done
44621           fi
44622           if test "X$found_dir" != "X"; then
44623                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
44624             if test "X$found_so" != "X"; then
44625                                                         if test "$enable_rpath" = no \
44626                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
44627                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
44628                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
44629               else
44630                                                                                 haveit=
44631                 for x in $ltrpathdirs; do
44632                   if test "X$x" = "X$found_dir"; then
44633                     haveit=yes
44634                     break
44635                   fi
44636                 done
44637                 if test -z "$haveit"; then
44638                   ltrpathdirs="$ltrpathdirs $found_dir"
44639                 fi
44640                                 if test "$acl_hardcode_direct" = yes; then
44641                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
44642                 else
44643                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
44644                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
44645                                                             haveit=
44646                     for x in $rpathdirs; do
44647                       if test "X$x" = "X$found_dir"; then
44648                         haveit=yes
44649                         break
44650                       fi
44651                     done
44652                     if test -z "$haveit"; then
44653                       rpathdirs="$rpathdirs $found_dir"
44654                     fi
44655                   else
44656                                                                                 haveit=
44657                     for x in $LDFLAGS $LIBICONV; do
44658
44659   acl_save_prefix="$prefix"
44660   prefix="$acl_final_prefix"
44661   acl_save_exec_prefix="$exec_prefix"
44662   exec_prefix="$acl_final_exec_prefix"
44663   eval x=\"$x\"
44664   exec_prefix="$acl_save_exec_prefix"
44665   prefix="$acl_save_prefix"
44666
44667                       if test "X$x" = "X-L$found_dir"; then
44668                         haveit=yes
44669                         break
44670                       fi
44671                     done
44672                     if test -z "$haveit"; then
44673                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
44674                     fi
44675                     if test "$acl_hardcode_minus_L" != no; then
44676                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
44677                     else
44678                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
44679                     fi
44680                   fi
44681                 fi
44682               fi
44683             else
44684               if test "X$found_a" != "X"; then
44685                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
44686               else
44687                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
44688               fi
44689             fi
44690                         additional_includedir=
44691             case "$found_dir" in
44692               */$acl_libdirstem | */$acl_libdirstem/)
44693                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
44694                 if test "$name" = 'iconv'; then
44695                   LIBICONV_PREFIX="$basedir"
44696                 fi
44697                 additional_includedir="$basedir/include"
44698                 ;;
44699               */$acl_libdirstem2 | */$acl_libdirstem2/)
44700                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
44701                 if test "$name" = 'iconv'; then
44702                   LIBICONV_PREFIX="$basedir"
44703                 fi
44704                 additional_includedir="$basedir/include"
44705                 ;;
44706             esac
44707             if test "X$additional_includedir" != "X"; then
44708                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
44709                 haveit=
44710                 if test "X$additional_includedir" = "X/usr/local/include"; then
44711                   if test -n "$GCC"; then
44712                     case $host_os in
44713                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
44714                     esac
44715                   fi
44716                 fi
44717                 if test -z "$haveit"; then
44718                   for x in $CPPFLAGS $INCICONV; do
44719
44720   acl_save_prefix="$prefix"
44721   prefix="$acl_final_prefix"
44722   acl_save_exec_prefix="$exec_prefix"
44723   exec_prefix="$acl_final_exec_prefix"
44724   eval x=\"$x\"
44725   exec_prefix="$acl_save_exec_prefix"
44726   prefix="$acl_save_prefix"
44727
44728                     if test "X$x" = "X-I$additional_includedir"; then
44729                       haveit=yes
44730                       break
44731                     fi
44732                   done
44733                   if test -z "$haveit"; then
44734                     if test -d "$additional_includedir"; then
44735                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
44736                     fi
44737                   fi
44738                 fi
44739               fi
44740             fi
44741                         if test -n "$found_la"; then
44742                                                         save_libdir="$libdir"
44743               case "$found_la" in
44744                 */* | *\\*) . "$found_la" ;;
44745                 *) . "./$found_la" ;;
44746               esac
44747               libdir="$save_libdir"
44748                             for dep in $dependency_libs; do
44749                 case "$dep" in
44750                   -L*)
44751                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
44752                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
44753                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
44754                       haveit=
44755                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
44756                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
44757                         if test -n "$GCC"; then
44758                           case $host_os in
44759                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
44760                           esac
44761                         fi
44762                       fi
44763                       if test -z "$haveit"; then
44764                         haveit=
44765                         for x in $LDFLAGS $LIBICONV; do
44766
44767   acl_save_prefix="$prefix"
44768   prefix="$acl_final_prefix"
44769   acl_save_exec_prefix="$exec_prefix"
44770   exec_prefix="$acl_final_exec_prefix"
44771   eval x=\"$x\"
44772   exec_prefix="$acl_save_exec_prefix"
44773   prefix="$acl_save_prefix"
44774
44775                           if test "X$x" = "X-L$additional_libdir"; then
44776                             haveit=yes
44777                             break
44778                           fi
44779                         done
44780                         if test -z "$haveit"; then
44781                           if test -d "$additional_libdir"; then
44782                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
44783                           fi
44784                         fi
44785                         haveit=
44786                         for x in $LDFLAGS $LTLIBICONV; do
44787
44788   acl_save_prefix="$prefix"
44789   prefix="$acl_final_prefix"
44790   acl_save_exec_prefix="$exec_prefix"
44791   exec_prefix="$acl_final_exec_prefix"
44792   eval x=\"$x\"
44793   exec_prefix="$acl_save_exec_prefix"
44794   prefix="$acl_save_prefix"
44795
44796                           if test "X$x" = "X-L$additional_libdir"; then
44797                             haveit=yes
44798                             break
44799                           fi
44800                         done
44801                         if test -z "$haveit"; then
44802                           if test -d "$additional_libdir"; then
44803                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
44804                           fi
44805                         fi
44806                       fi
44807                     fi
44808                     ;;
44809                   -R*)
44810                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
44811                     if test "$enable_rpath" != no; then
44812                                                                   haveit=
44813                       for x in $rpathdirs; do
44814                         if test "X$x" = "X$dir"; then
44815                           haveit=yes
44816                           break
44817                         fi
44818                       done
44819                       if test -z "$haveit"; then
44820                         rpathdirs="$rpathdirs $dir"
44821                       fi
44822                                                                   haveit=
44823                       for x in $ltrpathdirs; do
44824                         if test "X$x" = "X$dir"; then
44825                           haveit=yes
44826                           break
44827                         fi
44828                       done
44829                       if test -z "$haveit"; then
44830                         ltrpathdirs="$ltrpathdirs $dir"
44831                       fi
44832                     fi
44833                     ;;
44834                   -l*)
44835                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
44836                     ;;
44837                   *.la)
44838                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
44839                     ;;
44840                   *)
44841                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
44842                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
44843                     ;;
44844                 esac
44845               done
44846             fi
44847           else
44848                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
44849             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
44850           fi
44851         fi
44852       fi
44853     done
44854   done
44855   if test "X$rpathdirs" != "X"; then
44856     if test -n "$acl_hardcode_libdir_separator"; then
44857                         alldirs=
44858       for found_dir in $rpathdirs; do
44859         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
44860       done
44861             acl_save_libdir="$libdir"
44862       libdir="$alldirs"
44863       eval flag=\"$acl_hardcode_libdir_flag_spec\"
44864       libdir="$acl_save_libdir"
44865       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
44866     else
44867             for found_dir in $rpathdirs; do
44868         acl_save_libdir="$libdir"
44869         libdir="$found_dir"
44870         eval flag=\"$acl_hardcode_libdir_flag_spec\"
44871         libdir="$acl_save_libdir"
44872         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
44873       done
44874     fi
44875   fi
44876   if test "X$ltrpathdirs" != "X"; then
44877             for found_dir in $ltrpathdirs; do
44878       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
44879     done
44880   fi
44881
44882
44883
44884
44885
44886
44887
44888
44889
44890
44891
44892
44893
44894
44895
44896
44897
44898
44899
44900
44901
44902
44903
44904
44905
44906
44907
44908
44909
44910
44911
44912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
44913 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
44914 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
44915   $as_echo_n "(cached) " >&6
44916 else
44917   gt_save_LIBS="$LIBS"
44918      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
44919      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44920 /* end confdefs.h.  */
44921 #include <CoreFoundation/CFPreferences.h>
44922 int
44923 main ()
44924 {
44925 CFPreferencesCopyAppValue(NULL, NULL)
44926   ;
44927   return 0;
44928 }
44929 _ACEOF
44930 if ac_fn_c_try_link "$LINENO"; then :
44931   gt_cv_func_CFPreferencesCopyAppValue=yes
44932 else
44933   gt_cv_func_CFPreferencesCopyAppValue=no
44934 fi
44935 rm -f core conftest.err conftest.$ac_objext \
44936     conftest$ac_exeext conftest.$ac_ext
44937      LIBS="$gt_save_LIBS"
44938 fi
44939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
44940 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
44941   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
44942
44943 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
44944
44945   fi
44946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
44947 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
44948 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
44949   $as_echo_n "(cached) " >&6
44950 else
44951   gt_save_LIBS="$LIBS"
44952      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
44953      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44954 /* end confdefs.h.  */
44955 #include <CoreFoundation/CFLocale.h>
44956 int
44957 main ()
44958 {
44959 CFLocaleCopyCurrent();
44960   ;
44961   return 0;
44962 }
44963 _ACEOF
44964 if ac_fn_c_try_link "$LINENO"; then :
44965   gt_cv_func_CFLocaleCopyCurrent=yes
44966 else
44967   gt_cv_func_CFLocaleCopyCurrent=no
44968 fi
44969 rm -f core conftest.err conftest.$ac_objext \
44970     conftest$ac_exeext conftest.$ac_ext
44971      LIBS="$gt_save_LIBS"
44972 fi
44973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
44974 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
44975   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
44976
44977 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
44978
44979   fi
44980   INTL_MACOSX_LIBS=
44981   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
44982     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
44983   fi
44984
44985
44986
44987
44988
44989
44990   LIBINTL=
44991   LTLIBINTL=
44992   POSUB=
44993
44994     case " $gt_needs " in
44995     *" need-formatstring-macros "*) gt_api_version=3 ;;
44996     *" need-ngettext "*) gt_api_version=2 ;;
44997     *) gt_api_version=1 ;;
44998   esac
44999   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
45000   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
45001
45002     if test "$USE_NLS" = "yes"; then
45003     gt_use_preinstalled_gnugettext=no
45004
45005
45006         if test $gt_api_version -ge 3; then
45007           gt_revision_test_code='
45008 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
45009 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
45010 #endif
45011 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
45012 '
45013         else
45014           gt_revision_test_code=
45015         fi
45016         if test $gt_api_version -ge 2; then
45017           gt_expression_test_code=' + * ngettext ("", "", 0)'
45018         else
45019           gt_expression_test_code=
45020         fi
45021
45022         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
45023 $as_echo_n "checking for GNU gettext in libc... " >&6; }
45024 if eval \${$gt_func_gnugettext_libc+:} false; then :
45025   $as_echo_n "(cached) " >&6
45026 else
45027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45028 /* end confdefs.h.  */
45029
45030 #include <libintl.h>
45031 $gt_revision_test_code
45032 extern int _nl_msg_cat_cntr;
45033 extern int *_nl_domain_bindings;
45034
45035 int
45036 main ()
45037 {
45038
45039 bindtextdomain ("", "");
45040 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
45041
45042   ;
45043   return 0;
45044 }
45045 _ACEOF
45046 if ac_fn_c_try_link "$LINENO"; then :
45047   eval "$gt_func_gnugettext_libc=yes"
45048 else
45049   eval "$gt_func_gnugettext_libc=no"
45050 fi
45051 rm -f core conftest.err conftest.$ac_objext \
45052     conftest$ac_exeext conftest.$ac_ext
45053 fi
45054 eval ac_res=\$$gt_func_gnugettext_libc
45055                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
45056 $as_echo "$ac_res" >&6; }
45057
45058         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
45059
45060
45061
45062
45063
45064           am_save_CPPFLAGS="$CPPFLAGS"
45065
45066   for element in $INCICONV; do
45067     haveit=
45068     for x in $CPPFLAGS; do
45069
45070   acl_save_prefix="$prefix"
45071   prefix="$acl_final_prefix"
45072   acl_save_exec_prefix="$exec_prefix"
45073   exec_prefix="$acl_final_exec_prefix"
45074   eval x=\"$x\"
45075   exec_prefix="$acl_save_exec_prefix"
45076   prefix="$acl_save_prefix"
45077
45078       if test "X$x" = "X$element"; then
45079         haveit=yes
45080         break
45081       fi
45082     done
45083     if test -z "$haveit"; then
45084       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
45085     fi
45086   done
45087
45088
45089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
45090 $as_echo_n "checking for iconv... " >&6; }
45091 if ${am_cv_func_iconv+:} false; then :
45092   $as_echo_n "(cached) " >&6
45093 else
45094
45095     am_cv_func_iconv="no, consider installing GNU libiconv"
45096     am_cv_lib_iconv=no
45097     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45098 /* end confdefs.h.  */
45099
45100 #include <stdlib.h>
45101 #include <iconv.h>
45102
45103 int
45104 main ()
45105 {
45106 iconv_t cd = iconv_open("","");
45107            iconv(cd,NULL,NULL,NULL,NULL);
45108            iconv_close(cd);
45109   ;
45110   return 0;
45111 }
45112 _ACEOF
45113 if ac_fn_c_try_link "$LINENO"; then :
45114   am_cv_func_iconv=yes
45115 fi
45116 rm -f core conftest.err conftest.$ac_objext \
45117     conftest$ac_exeext conftest.$ac_ext
45118     if test "$am_cv_func_iconv" != yes; then
45119       am_save_LIBS="$LIBS"
45120       LIBS="$LIBS $LIBICONV"
45121       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45122 /* end confdefs.h.  */
45123
45124 #include <stdlib.h>
45125 #include <iconv.h>
45126
45127 int
45128 main ()
45129 {
45130 iconv_t cd = iconv_open("","");
45131              iconv(cd,NULL,NULL,NULL,NULL);
45132              iconv_close(cd);
45133   ;
45134   return 0;
45135 }
45136 _ACEOF
45137 if ac_fn_c_try_link "$LINENO"; then :
45138   am_cv_lib_iconv=yes
45139         am_cv_func_iconv=yes
45140 fi
45141 rm -f core conftest.err conftest.$ac_objext \
45142     conftest$ac_exeext conftest.$ac_ext
45143       LIBS="$am_save_LIBS"
45144     fi
45145
45146 fi
45147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
45148 $as_echo "$am_cv_func_iconv" >&6; }
45149   if test "$am_cv_func_iconv" = yes; then
45150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
45151 $as_echo_n "checking for working iconv... " >&6; }
45152 if ${am_cv_func_iconv_works+:} false; then :
45153   $as_echo_n "(cached) " >&6
45154 else
45155
45156                   am_save_LIBS="$LIBS"
45157       if test $am_cv_lib_iconv = yes; then
45158         LIBS="$LIBS $LIBICONV"
45159       fi
45160       if test "$cross_compiling" = yes; then :
45161
45162          case "$host_os" in
45163            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
45164            *)            am_cv_func_iconv_works="guessing yes" ;;
45165          esac
45166
45167 else
45168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45169 /* end confdefs.h.  */
45170
45171 #include <iconv.h>
45172 #include <string.h>
45173 int main ()
45174 {
45175   int result = 0;
45176   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
45177      returns.  */
45178   {
45179     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
45180     if (cd_utf8_to_88591 != (iconv_t)(-1))
45181       {
45182         static const char input[] = "\342\202\254"; /* EURO SIGN */
45183         char buf[10];
45184         const char *inptr = input;
45185         size_t inbytesleft = strlen (input);
45186         char *outptr = buf;
45187         size_t outbytesleft = sizeof (buf);
45188         size_t res = iconv (cd_utf8_to_88591,
45189                             (char **) &inptr, &inbytesleft,
45190                             &outptr, &outbytesleft);
45191         if (res == 0)
45192           result |= 1;
45193         iconv_close (cd_utf8_to_88591);
45194       }
45195   }
45196   /* Test against Solaris 10 bug: Failures are not distinguishable from
45197      successful returns.  */
45198   {
45199     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
45200     if (cd_ascii_to_88591 != (iconv_t)(-1))
45201       {
45202         static const char input[] = "\263";
45203         char buf[10];
45204         const char *inptr = input;
45205         size_t inbytesleft = strlen (input);
45206         char *outptr = buf;
45207         size_t outbytesleft = sizeof (buf);
45208         size_t res = iconv (cd_ascii_to_88591,
45209                             (char **) &inptr, &inbytesleft,
45210                             &outptr, &outbytesleft);
45211         if (res == 0)
45212           result |= 2;
45213         iconv_close (cd_ascii_to_88591);
45214       }
45215   }
45216   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
45217   {
45218     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
45219     if (cd_88591_to_utf8 != (iconv_t)(-1))
45220       {
45221         static const char input[] = "\304";
45222         static char buf[2] = { (char)0xDE, (char)0xAD };
45223         const char *inptr = input;
45224         size_t inbytesleft = 1;
45225         char *outptr = buf;
45226         size_t outbytesleft = 1;
45227         size_t res = iconv (cd_88591_to_utf8,
45228                             (char **) &inptr, &inbytesleft,
45229                             &outptr, &outbytesleft);
45230         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
45231           result |= 4;
45232         iconv_close (cd_88591_to_utf8);
45233       }
45234   }
45235 #if 0 /* This bug could be worked around by the caller.  */
45236   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
45237   {
45238     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
45239     if (cd_88591_to_utf8 != (iconv_t)(-1))
45240       {
45241         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
45242         char buf[50];
45243         const char *inptr = input;
45244         size_t inbytesleft = strlen (input);
45245         char *outptr = buf;
45246         size_t outbytesleft = sizeof (buf);
45247         size_t res = iconv (cd_88591_to_utf8,
45248                             (char **) &inptr, &inbytesleft,
45249                             &outptr, &outbytesleft);
45250         if ((int)res > 0)
45251           result |= 8;
45252         iconv_close (cd_88591_to_utf8);
45253       }
45254   }
45255 #endif
45256   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
45257      provided.  */
45258   if (/* Try standardized names.  */
45259       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
45260       /* Try IRIX, OSF/1 names.  */
45261       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
45262       /* Try AIX names.  */
45263       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
45264       /* Try HP-UX names.  */
45265       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
45266     result |= 16;
45267   return result;
45268 }
45269 _ACEOF
45270 if ac_fn_c_try_run "$LINENO"; then :
45271   am_cv_func_iconv_works=yes
45272 else
45273   am_cv_func_iconv_works=no
45274 fi
45275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45276   conftest.$ac_objext conftest.beam conftest.$ac_ext
45277 fi
45278
45279       LIBS="$am_save_LIBS"
45280
45281 fi
45282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
45283 $as_echo "$am_cv_func_iconv_works" >&6; }
45284     case "$am_cv_func_iconv_works" in
45285       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
45286       *)   am_func_iconv=yes ;;
45287     esac
45288   else
45289     am_func_iconv=no am_cv_lib_iconv=no
45290   fi
45291   if test "$am_func_iconv" = yes; then
45292
45293 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
45294
45295   fi
45296   if test "$am_cv_lib_iconv" = yes; then
45297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
45298 $as_echo_n "checking how to link with libiconv... " >&6; }
45299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
45300 $as_echo "$LIBICONV" >&6; }
45301   else
45302             CPPFLAGS="$am_save_CPPFLAGS"
45303     LIBICONV=
45304     LTLIBICONV=
45305   fi
45306
45307
45308
45309
45310
45311
45312
45313
45314
45315
45316
45317     use_additional=yes
45318
45319   acl_save_prefix="$prefix"
45320   prefix="$acl_final_prefix"
45321   acl_save_exec_prefix="$exec_prefix"
45322   exec_prefix="$acl_final_exec_prefix"
45323
45324     eval additional_includedir=\"$includedir\"
45325     eval additional_libdir=\"$libdir\"
45326
45327   exec_prefix="$acl_save_exec_prefix"
45328   prefix="$acl_save_prefix"
45329
45330
45331 # Check whether --with-libintl-prefix was given.
45332 if test "${with_libintl_prefix+set}" = set; then :
45333   withval=$with_libintl_prefix;
45334     if test "X$withval" = "Xno"; then
45335       use_additional=no
45336     else
45337       if test "X$withval" = "X"; then
45338
45339   acl_save_prefix="$prefix"
45340   prefix="$acl_final_prefix"
45341   acl_save_exec_prefix="$exec_prefix"
45342   exec_prefix="$acl_final_exec_prefix"
45343
45344           eval additional_includedir=\"$includedir\"
45345           eval additional_libdir=\"$libdir\"
45346
45347   exec_prefix="$acl_save_exec_prefix"
45348   prefix="$acl_save_prefix"
45349
45350       else
45351         additional_includedir="$withval/include"
45352         additional_libdir="$withval/$acl_libdirstem"
45353         if test "$acl_libdirstem2" != "$acl_libdirstem" \
45354            && ! test -d "$withval/$acl_libdirstem"; then
45355           additional_libdir="$withval/$acl_libdirstem2"
45356         fi
45357       fi
45358     fi
45359
45360 fi
45361
45362       LIBINTL=
45363   LTLIBINTL=
45364   INCINTL=
45365   LIBINTL_PREFIX=
45366       HAVE_LIBINTL=
45367   rpathdirs=
45368   ltrpathdirs=
45369   names_already_handled=
45370   names_next_round='intl '
45371   while test -n "$names_next_round"; do
45372     names_this_round="$names_next_round"
45373     names_next_round=
45374     for name in $names_this_round; do
45375       already_handled=
45376       for n in $names_already_handled; do
45377         if test "$n" = "$name"; then
45378           already_handled=yes
45379           break
45380         fi
45381       done
45382       if test -z "$already_handled"; then
45383         names_already_handled="$names_already_handled $name"
45384                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
45385         eval value=\"\$HAVE_LIB$uppername\"
45386         if test -n "$value"; then
45387           if test "$value" = yes; then
45388             eval value=\"\$LIB$uppername\"
45389             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
45390             eval value=\"\$LTLIB$uppername\"
45391             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
45392           else
45393                                     :
45394           fi
45395         else
45396                               found_dir=
45397           found_la=
45398           found_so=
45399           found_a=
45400           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
45401           if test -n "$acl_shlibext"; then
45402             shrext=".$acl_shlibext"             # typically: shrext=.so
45403           else
45404             shrext=
45405           fi
45406           if test $use_additional = yes; then
45407             dir="$additional_libdir"
45408                                     if test -n "$acl_shlibext"; then
45409               if test -f "$dir/$libname$shrext"; then
45410                 found_dir="$dir"
45411                 found_so="$dir/$libname$shrext"
45412               else
45413                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
45414                   ver=`(cd "$dir" && \
45415                         for f in "$libname$shrext".*; do echo "$f"; done \
45416                         | sed -e "s,^$libname$shrext\\\\.,," \
45417                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
45418                         | sed 1q ) 2>/dev/null`
45419                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
45420                     found_dir="$dir"
45421                     found_so="$dir/$libname$shrext.$ver"
45422                   fi
45423                 else
45424                   eval library_names=\"$acl_library_names_spec\"
45425                   for f in $library_names; do
45426                     if test -f "$dir/$f"; then
45427                       found_dir="$dir"
45428                       found_so="$dir/$f"
45429                       break
45430                     fi
45431                   done
45432                 fi
45433               fi
45434             fi
45435                         if test "X$found_dir" = "X"; then
45436               if test -f "$dir/$libname.$acl_libext"; then
45437                 found_dir="$dir"
45438                 found_a="$dir/$libname.$acl_libext"
45439               fi
45440             fi
45441             if test "X$found_dir" != "X"; then
45442               if test -f "$dir/$libname.la"; then
45443                 found_la="$dir/$libname.la"
45444               fi
45445             fi
45446           fi
45447           if test "X$found_dir" = "X"; then
45448             for x in $LDFLAGS $LTLIBINTL; do
45449
45450   acl_save_prefix="$prefix"
45451   prefix="$acl_final_prefix"
45452   acl_save_exec_prefix="$exec_prefix"
45453   exec_prefix="$acl_final_exec_prefix"
45454   eval x=\"$x\"
45455   exec_prefix="$acl_save_exec_prefix"
45456   prefix="$acl_save_prefix"
45457
45458               case "$x" in
45459                 -L*)
45460                   dir=`echo "X$x" | sed -e 's/^X-L//'`
45461                                     if test -n "$acl_shlibext"; then
45462                     if test -f "$dir/$libname$shrext"; then
45463                       found_dir="$dir"
45464                       found_so="$dir/$libname$shrext"
45465                     else
45466                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
45467                         ver=`(cd "$dir" && \
45468                               for f in "$libname$shrext".*; do echo "$f"; done \
45469                               | sed -e "s,^$libname$shrext\\\\.,," \
45470                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
45471                               | sed 1q ) 2>/dev/null`
45472                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
45473                           found_dir="$dir"
45474                           found_so="$dir/$libname$shrext.$ver"
45475                         fi
45476                       else
45477                         eval library_names=\"$acl_library_names_spec\"
45478                         for f in $library_names; do
45479                           if test -f "$dir/$f"; then
45480                             found_dir="$dir"
45481                             found_so="$dir/$f"
45482                             break
45483                           fi
45484                         done
45485                       fi
45486                     fi
45487                   fi
45488                                     if test "X$found_dir" = "X"; then
45489                     if test -f "$dir/$libname.$acl_libext"; then
45490                       found_dir="$dir"
45491                       found_a="$dir/$libname.$acl_libext"
45492                     fi
45493                   fi
45494                   if test "X$found_dir" != "X"; then
45495                     if test -f "$dir/$libname.la"; then
45496                       found_la="$dir/$libname.la"
45497                     fi
45498                   fi
45499                   ;;
45500               esac
45501               if test "X$found_dir" != "X"; then
45502                 break
45503               fi
45504             done
45505           fi
45506           if test "X$found_dir" != "X"; then
45507                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
45508             if test "X$found_so" != "X"; then
45509                                                         if test "$enable_rpath" = no \
45510                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
45511                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
45512                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
45513               else
45514                                                                                 haveit=
45515                 for x in $ltrpathdirs; do
45516                   if test "X$x" = "X$found_dir"; then
45517                     haveit=yes
45518                     break
45519                   fi
45520                 done
45521                 if test -z "$haveit"; then
45522                   ltrpathdirs="$ltrpathdirs $found_dir"
45523                 fi
45524                                 if test "$acl_hardcode_direct" = yes; then
45525                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
45526                 else
45527                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
45528                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
45529                                                             haveit=
45530                     for x in $rpathdirs; do
45531                       if test "X$x" = "X$found_dir"; then
45532                         haveit=yes
45533                         break
45534                       fi
45535                     done
45536                     if test -z "$haveit"; then
45537                       rpathdirs="$rpathdirs $found_dir"
45538                     fi
45539                   else
45540                                                                                 haveit=
45541                     for x in $LDFLAGS $LIBINTL; do
45542
45543   acl_save_prefix="$prefix"
45544   prefix="$acl_final_prefix"
45545   acl_save_exec_prefix="$exec_prefix"
45546   exec_prefix="$acl_final_exec_prefix"
45547   eval x=\"$x\"
45548   exec_prefix="$acl_save_exec_prefix"
45549   prefix="$acl_save_prefix"
45550
45551                       if test "X$x" = "X-L$found_dir"; then
45552                         haveit=yes
45553                         break
45554                       fi
45555                     done
45556                     if test -z "$haveit"; then
45557                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
45558                     fi
45559                     if test "$acl_hardcode_minus_L" != no; then
45560                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
45561                     else
45562                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
45563                     fi
45564                   fi
45565                 fi
45566               fi
45567             else
45568               if test "X$found_a" != "X"; then
45569                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
45570               else
45571                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
45572               fi
45573             fi
45574                         additional_includedir=
45575             case "$found_dir" in
45576               */$acl_libdirstem | */$acl_libdirstem/)
45577                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
45578                 if test "$name" = 'intl'; then
45579                   LIBINTL_PREFIX="$basedir"
45580                 fi
45581                 additional_includedir="$basedir/include"
45582                 ;;
45583               */$acl_libdirstem2 | */$acl_libdirstem2/)
45584                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
45585                 if test "$name" = 'intl'; then
45586                   LIBINTL_PREFIX="$basedir"
45587                 fi
45588                 additional_includedir="$basedir/include"
45589                 ;;
45590             esac
45591             if test "X$additional_includedir" != "X"; then
45592                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
45593                 haveit=
45594                 if test "X$additional_includedir" = "X/usr/local/include"; then
45595                   if test -n "$GCC"; then
45596                     case $host_os in
45597                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
45598                     esac
45599                   fi
45600                 fi
45601                 if test -z "$haveit"; then
45602                   for x in $CPPFLAGS $INCINTL; do
45603
45604   acl_save_prefix="$prefix"
45605   prefix="$acl_final_prefix"
45606   acl_save_exec_prefix="$exec_prefix"
45607   exec_prefix="$acl_final_exec_prefix"
45608   eval x=\"$x\"
45609   exec_prefix="$acl_save_exec_prefix"
45610   prefix="$acl_save_prefix"
45611
45612                     if test "X$x" = "X-I$additional_includedir"; then
45613                       haveit=yes
45614                       break
45615                     fi
45616                   done
45617                   if test -z "$haveit"; then
45618                     if test -d "$additional_includedir"; then
45619                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
45620                     fi
45621                   fi
45622                 fi
45623               fi
45624             fi
45625                         if test -n "$found_la"; then
45626                                                         save_libdir="$libdir"
45627               case "$found_la" in
45628                 */* | *\\*) . "$found_la" ;;
45629                 *) . "./$found_la" ;;
45630               esac
45631               libdir="$save_libdir"
45632                             for dep in $dependency_libs; do
45633                 case "$dep" in
45634                   -L*)
45635                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
45636                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
45637                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
45638                       haveit=
45639                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
45640                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
45641                         if test -n "$GCC"; then
45642                           case $host_os in
45643                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
45644                           esac
45645                         fi
45646                       fi
45647                       if test -z "$haveit"; then
45648                         haveit=
45649                         for x in $LDFLAGS $LIBINTL; do
45650
45651   acl_save_prefix="$prefix"
45652   prefix="$acl_final_prefix"
45653   acl_save_exec_prefix="$exec_prefix"
45654   exec_prefix="$acl_final_exec_prefix"
45655   eval x=\"$x\"
45656   exec_prefix="$acl_save_exec_prefix"
45657   prefix="$acl_save_prefix"
45658
45659                           if test "X$x" = "X-L$additional_libdir"; then
45660                             haveit=yes
45661                             break
45662                           fi
45663                         done
45664                         if test -z "$haveit"; then
45665                           if test -d "$additional_libdir"; then
45666                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
45667                           fi
45668                         fi
45669                         haveit=
45670                         for x in $LDFLAGS $LTLIBINTL; do
45671
45672   acl_save_prefix="$prefix"
45673   prefix="$acl_final_prefix"
45674   acl_save_exec_prefix="$exec_prefix"
45675   exec_prefix="$acl_final_exec_prefix"
45676   eval x=\"$x\"
45677   exec_prefix="$acl_save_exec_prefix"
45678   prefix="$acl_save_prefix"
45679
45680                           if test "X$x" = "X-L$additional_libdir"; then
45681                             haveit=yes
45682                             break
45683                           fi
45684                         done
45685                         if test -z "$haveit"; then
45686                           if test -d "$additional_libdir"; then
45687                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
45688                           fi
45689                         fi
45690                       fi
45691                     fi
45692                     ;;
45693                   -R*)
45694                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
45695                     if test "$enable_rpath" != no; then
45696                                                                   haveit=
45697                       for x in $rpathdirs; do
45698                         if test "X$x" = "X$dir"; then
45699                           haveit=yes
45700                           break
45701                         fi
45702                       done
45703                       if test -z "$haveit"; then
45704                         rpathdirs="$rpathdirs $dir"
45705                       fi
45706                                                                   haveit=
45707                       for x in $ltrpathdirs; do
45708                         if test "X$x" = "X$dir"; then
45709                           haveit=yes
45710                           break
45711                         fi
45712                       done
45713                       if test -z "$haveit"; then
45714                         ltrpathdirs="$ltrpathdirs $dir"
45715                       fi
45716                     fi
45717                     ;;
45718                   -l*)
45719                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
45720                     ;;
45721                   *.la)
45722                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
45723                     ;;
45724                   *)
45725                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
45726                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
45727                     ;;
45728                 esac
45729               done
45730             fi
45731           else
45732                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
45733             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
45734           fi
45735         fi
45736       fi
45737     done
45738   done
45739   if test "X$rpathdirs" != "X"; then
45740     if test -n "$acl_hardcode_libdir_separator"; then
45741                         alldirs=
45742       for found_dir in $rpathdirs; do
45743         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
45744       done
45745             acl_save_libdir="$libdir"
45746       libdir="$alldirs"
45747       eval flag=\"$acl_hardcode_libdir_flag_spec\"
45748       libdir="$acl_save_libdir"
45749       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
45750     else
45751             for found_dir in $rpathdirs; do
45752         acl_save_libdir="$libdir"
45753         libdir="$found_dir"
45754         eval flag=\"$acl_hardcode_libdir_flag_spec\"
45755         libdir="$acl_save_libdir"
45756         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
45757       done
45758     fi
45759   fi
45760   if test "X$ltrpathdirs" != "X"; then
45761             for found_dir in $ltrpathdirs; do
45762       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
45763     done
45764   fi
45765
45766
45767
45768
45769
45770
45771           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
45772 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
45773 if eval \${$gt_func_gnugettext_libintl+:} false; then :
45774   $as_echo_n "(cached) " >&6
45775 else
45776   gt_save_CPPFLAGS="$CPPFLAGS"
45777             CPPFLAGS="$CPPFLAGS $INCINTL"
45778             gt_save_LIBS="$LIBS"
45779             LIBS="$LIBS $LIBINTL"
45780                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45781 /* end confdefs.h.  */
45782
45783 #include <libintl.h>
45784 $gt_revision_test_code
45785 extern int _nl_msg_cat_cntr;
45786 extern
45787 #ifdef __cplusplus
45788 "C"
45789 #endif
45790 const char *_nl_expand_alias (const char *);
45791
45792 int
45793 main ()
45794 {
45795
45796 bindtextdomain ("", "");
45797 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
45798
45799   ;
45800   return 0;
45801 }
45802 _ACEOF
45803 if ac_fn_c_try_link "$LINENO"; then :
45804   eval "$gt_func_gnugettext_libintl=yes"
45805 else
45806   eval "$gt_func_gnugettext_libintl=no"
45807 fi
45808 rm -f core conftest.err conftest.$ac_objext \
45809     conftest$ac_exeext conftest.$ac_ext
45810                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
45811               LIBS="$LIBS $LIBICONV"
45812               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45813 /* end confdefs.h.  */
45814
45815 #include <libintl.h>
45816 $gt_revision_test_code
45817 extern int _nl_msg_cat_cntr;
45818 extern
45819 #ifdef __cplusplus
45820 "C"
45821 #endif
45822 const char *_nl_expand_alias (const char *);
45823
45824 int
45825 main ()
45826 {
45827
45828 bindtextdomain ("", "");
45829 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
45830
45831   ;
45832   return 0;
45833 }
45834 _ACEOF
45835 if ac_fn_c_try_link "$LINENO"; then :
45836   LIBINTL="$LIBINTL $LIBICONV"
45837                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
45838                  eval "$gt_func_gnugettext_libintl=yes"
45839
45840 fi
45841 rm -f core conftest.err conftest.$ac_objext \
45842     conftest$ac_exeext conftest.$ac_ext
45843             fi
45844             CPPFLAGS="$gt_save_CPPFLAGS"
45845             LIBS="$gt_save_LIBS"
45846 fi
45847 eval ac_res=\$$gt_func_gnugettext_libintl
45848                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
45849 $as_echo "$ac_res" >&6; }
45850         fi
45851
45852                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
45853            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
45854                 && test "$PACKAGE" != gettext-runtime \
45855                 && test "$PACKAGE" != gettext-tools; }; then
45856           gt_use_preinstalled_gnugettext=yes
45857         else
45858                     LIBINTL=
45859           LTLIBINTL=
45860           INCINTL=
45861         fi
45862
45863
45864
45865     if test -n "$INTL_MACOSX_LIBS"; then
45866       if test "$gt_use_preinstalled_gnugettext" = "yes" \
45867          || test "$nls_cv_use_gnu_gettext" = "yes"; then
45868                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
45869         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
45870       fi
45871     fi
45872
45873     if test "$gt_use_preinstalled_gnugettext" = "yes" \
45874        || test "$nls_cv_use_gnu_gettext" = "yes"; then
45875
45876 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
45877
45878     else
45879       USE_NLS=no
45880     fi
45881   fi
45882
45883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
45884 $as_echo_n "checking whether to use NLS... " >&6; }
45885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
45886 $as_echo "$USE_NLS" >&6; }
45887   if test "$USE_NLS" = "yes"; then
45888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
45889 $as_echo_n "checking where the gettext function comes from... " >&6; }
45890     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
45891       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
45892         gt_source="external libintl"
45893       else
45894         gt_source="libc"
45895       fi
45896     else
45897       gt_source="included intl directory"
45898     fi
45899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
45900 $as_echo "$gt_source" >&6; }
45901   fi
45902
45903   if test "$USE_NLS" = "yes"; then
45904
45905     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
45906       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
45907         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
45908 $as_echo_n "checking how to link with libintl... " >&6; }
45909         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
45910 $as_echo "$LIBINTL" >&6; }
45911
45912   for element in $INCINTL; do
45913     haveit=
45914     for x in $CPPFLAGS; do
45915
45916   acl_save_prefix="$prefix"
45917   prefix="$acl_final_prefix"
45918   acl_save_exec_prefix="$exec_prefix"
45919   exec_prefix="$acl_final_exec_prefix"
45920   eval x=\"$x\"
45921   exec_prefix="$acl_save_exec_prefix"
45922   prefix="$acl_save_prefix"
45923
45924       if test "X$x" = "X$element"; then
45925         haveit=yes
45926         break
45927       fi
45928     done
45929     if test -z "$haveit"; then
45930       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
45931     fi
45932   done
45933
45934       fi
45935
45936
45937 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
45938
45939
45940 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
45941
45942     fi
45943
45944         POSUB=po
45945   fi
45946
45947
45948
45949     INTLLIBS="$LIBINTL"
45950
45951
45952
45953
45954
45955
45956
45957
45958
45959
45960
45961
45962
45963           am_save_CPPFLAGS="$CPPFLAGS"
45964
45965   for element in $INCICONV; do
45966     haveit=
45967     for x in $CPPFLAGS; do
45968
45969   acl_save_prefix="$prefix"
45970   prefix="$acl_final_prefix"
45971   acl_save_exec_prefix="$exec_prefix"
45972   exec_prefix="$acl_final_exec_prefix"
45973   eval x=\"$x\"
45974   exec_prefix="$acl_save_exec_prefix"
45975   prefix="$acl_save_prefix"
45976
45977       if test "X$x" = "X$element"; then
45978         haveit=yes
45979         break
45980       fi
45981     done
45982     if test -z "$haveit"; then
45983       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
45984     fi
45985   done
45986
45987
45988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
45989 $as_echo_n "checking for iconv... " >&6; }
45990 if ${am_cv_func_iconv+:} false; then :
45991   $as_echo_n "(cached) " >&6
45992 else
45993
45994     am_cv_func_iconv="no, consider installing GNU libiconv"
45995     am_cv_lib_iconv=no
45996     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45997 /* end confdefs.h.  */
45998
45999 #include <stdlib.h>
46000 #include <iconv.h>
46001
46002 int
46003 main ()
46004 {
46005 iconv_t cd = iconv_open("","");
46006            iconv(cd,NULL,NULL,NULL,NULL);
46007            iconv_close(cd);
46008   ;
46009   return 0;
46010 }
46011 _ACEOF
46012 if ac_fn_c_try_link "$LINENO"; then :
46013   am_cv_func_iconv=yes
46014 fi
46015 rm -f core conftest.err conftest.$ac_objext \
46016     conftest$ac_exeext conftest.$ac_ext
46017     if test "$am_cv_func_iconv" != yes; then
46018       am_save_LIBS="$LIBS"
46019       LIBS="$LIBS $LIBICONV"
46020       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46021 /* end confdefs.h.  */
46022
46023 #include <stdlib.h>
46024 #include <iconv.h>
46025
46026 int
46027 main ()
46028 {
46029 iconv_t cd = iconv_open("","");
46030              iconv(cd,NULL,NULL,NULL,NULL);
46031              iconv_close(cd);
46032   ;
46033   return 0;
46034 }
46035 _ACEOF
46036 if ac_fn_c_try_link "$LINENO"; then :
46037   am_cv_lib_iconv=yes
46038         am_cv_func_iconv=yes
46039 fi
46040 rm -f core conftest.err conftest.$ac_objext \
46041     conftest$ac_exeext conftest.$ac_ext
46042       LIBS="$am_save_LIBS"
46043     fi
46044
46045 fi
46046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
46047 $as_echo "$am_cv_func_iconv" >&6; }
46048   if test "$am_cv_func_iconv" = yes; then
46049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
46050 $as_echo_n "checking for working iconv... " >&6; }
46051 if ${am_cv_func_iconv_works+:} false; then :
46052   $as_echo_n "(cached) " >&6
46053 else
46054
46055                   am_save_LIBS="$LIBS"
46056       if test $am_cv_lib_iconv = yes; then
46057         LIBS="$LIBS $LIBICONV"
46058       fi
46059       if test "$cross_compiling" = yes; then :
46060
46061          case "$host_os" in
46062            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
46063            *)            am_cv_func_iconv_works="guessing yes" ;;
46064          esac
46065
46066 else
46067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46068 /* end confdefs.h.  */
46069
46070 #include <iconv.h>
46071 #include <string.h>
46072 int main ()
46073 {
46074   int result = 0;
46075   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
46076      returns.  */
46077   {
46078     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
46079     if (cd_utf8_to_88591 != (iconv_t)(-1))
46080       {
46081         static const char input[] = "\342\202\254"; /* EURO SIGN */
46082         char buf[10];
46083         const char *inptr = input;
46084         size_t inbytesleft = strlen (input);
46085         char *outptr = buf;
46086         size_t outbytesleft = sizeof (buf);
46087         size_t res = iconv (cd_utf8_to_88591,
46088                             (char **) &inptr, &inbytesleft,
46089                             &outptr, &outbytesleft);
46090         if (res == 0)
46091           result |= 1;
46092         iconv_close (cd_utf8_to_88591);
46093       }
46094   }
46095   /* Test against Solaris 10 bug: Failures are not distinguishable from
46096      successful returns.  */
46097   {
46098     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
46099     if (cd_ascii_to_88591 != (iconv_t)(-1))
46100       {
46101         static const char input[] = "\263";
46102         char buf[10];
46103         const char *inptr = input;
46104         size_t inbytesleft = strlen (input);
46105         char *outptr = buf;
46106         size_t outbytesleft = sizeof (buf);
46107         size_t res = iconv (cd_ascii_to_88591,
46108                             (char **) &inptr, &inbytesleft,
46109                             &outptr, &outbytesleft);
46110         if (res == 0)
46111           result |= 2;
46112         iconv_close (cd_ascii_to_88591);
46113       }
46114   }
46115   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
46116   {
46117     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
46118     if (cd_88591_to_utf8 != (iconv_t)(-1))
46119       {
46120         static const char input[] = "\304";
46121         static char buf[2] = { (char)0xDE, (char)0xAD };
46122         const char *inptr = input;
46123         size_t inbytesleft = 1;
46124         char *outptr = buf;
46125         size_t outbytesleft = 1;
46126         size_t res = iconv (cd_88591_to_utf8,
46127                             (char **) &inptr, &inbytesleft,
46128                             &outptr, &outbytesleft);
46129         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
46130           result |= 4;
46131         iconv_close (cd_88591_to_utf8);
46132       }
46133   }
46134 #if 0 /* This bug could be worked around by the caller.  */
46135   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
46136   {
46137     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
46138     if (cd_88591_to_utf8 != (iconv_t)(-1))
46139       {
46140         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
46141         char buf[50];
46142         const char *inptr = input;
46143         size_t inbytesleft = strlen (input);
46144         char *outptr = buf;
46145         size_t outbytesleft = sizeof (buf);
46146         size_t res = iconv (cd_88591_to_utf8,
46147                             (char **) &inptr, &inbytesleft,
46148                             &outptr, &outbytesleft);
46149         if ((int)res > 0)
46150           result |= 8;
46151         iconv_close (cd_88591_to_utf8);
46152       }
46153   }
46154 #endif
46155   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
46156      provided.  */
46157   if (/* Try standardized names.  */
46158       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
46159       /* Try IRIX, OSF/1 names.  */
46160       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
46161       /* Try AIX names.  */
46162       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
46163       /* Try HP-UX names.  */
46164       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
46165     result |= 16;
46166   return result;
46167 }
46168 _ACEOF
46169 if ac_fn_c_try_run "$LINENO"; then :
46170   am_cv_func_iconv_works=yes
46171 else
46172   am_cv_func_iconv_works=no
46173 fi
46174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46175   conftest.$ac_objext conftest.beam conftest.$ac_ext
46176 fi
46177
46178       LIBS="$am_save_LIBS"
46179
46180 fi
46181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
46182 $as_echo "$am_cv_func_iconv_works" >&6; }
46183     case "$am_cv_func_iconv_works" in
46184       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
46185       *)   am_func_iconv=yes ;;
46186     esac
46187   else
46188     am_func_iconv=no am_cv_lib_iconv=no
46189   fi
46190   if test "$am_func_iconv" = yes; then
46191
46192 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
46193
46194   fi
46195   if test "$am_cv_lib_iconv" = yes; then
46196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
46197 $as_echo_n "checking how to link with libiconv... " >&6; }
46198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
46199 $as_echo "$LIBICONV" >&6; }
46200   else
46201             CPPFLAGS="$am_save_CPPFLAGS"
46202     LIBICONV=
46203     LTLIBICONV=
46204   fi
46205
46206
46207
46208   if test "$am_cv_func_iconv" = yes; then
46209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
46210 $as_echo_n "checking for iconv declaration... " >&6; }
46211     if ${am_cv_proto_iconv+:} false; then :
46212   $as_echo_n "(cached) " >&6
46213 else
46214
46215       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46216 /* end confdefs.h.  */
46217
46218 #include <stdlib.h>
46219 #include <iconv.h>
46220 extern
46221 #ifdef __cplusplus
46222 "C"
46223 #endif
46224 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
46225 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
46226 #else
46227 size_t iconv();
46228 #endif
46229
46230 int
46231 main ()
46232 {
46233
46234   ;
46235   return 0;
46236 }
46237 _ACEOF
46238 if ac_fn_c_try_compile "$LINENO"; then :
46239   am_cv_proto_iconv_arg1=""
46240 else
46241   am_cv_proto_iconv_arg1="const"
46242 fi
46243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46244       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
46245 fi
46246
46247     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
46248     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
46249          $am_cv_proto_iconv" >&5
46250 $as_echo "
46251          $am_cv_proto_iconv" >&6; }
46252
46253 cat >>confdefs.h <<_ACEOF
46254 #define ICONV_CONST $am_cv_proto_iconv_arg1
46255 _ACEOF
46256
46257
46258   fi
46259
46260 for ac_prog in po4a
46261 do
46262   # Extract the first word of "$ac_prog", so it can be a program name with args.
46263 set dummy $ac_prog; ac_word=$2
46264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
46265 $as_echo_n "checking for $ac_word... " >&6; }
46266 if ${ac_cv_prog_PO4A+:} false; then :
46267   $as_echo_n "(cached) " >&6
46268 else
46269   if test -n "$PO4A"; then
46270   ac_cv_prog_PO4A="$PO4A" # Let the user override the test.
46271 else
46272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46273 for as_dir in $PATH
46274 do
46275   IFS=$as_save_IFS
46276   test -z "$as_dir" && as_dir=.
46277     for ac_exec_ext in '' $ac_executable_extensions; do
46278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46279     ac_cv_prog_PO4A="$ac_prog"
46280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
46281     break 2
46282   fi
46283 done
46284   done
46285 IFS=$as_save_IFS
46286
46287 fi
46288 fi
46289 PO4A=$ac_cv_prog_PO4A
46290 if test -n "$PO4A"; then
46291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PO4A" >&5
46292 $as_echo "$PO4A" >&6; }
46293 else
46294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46295 $as_echo "no" >&6; }
46296 fi
46297
46298
46299   test -n "$PO4A" && break
46300 done
46301
46302
46303   if test -n "$PO4A"; then
46304   PO4A_TRUE=
46305   PO4A_FALSE='#'
46306 else
46307   PO4A_TRUE='#'
46308   PO4A_FALSE=
46309 fi
46310
46311
46312
46313     if test "$USE_NLS" = yes; then
46314     # The LINGUAS file contains the set of available languages.
46315     man_all_linguas=
46316     if test -n "$srcdir/man/LINGUAS"; then
46317       man_all_linguas=`sed -e "/^#/d" -e "s/#.*//" "$srcdir/man/LINGUAS"`
46318     fi
46319     if test -n "$PO4A" && test -n "$srcdir/man/LINGUAS.po4a"; then
46320       man_all_linguas_po4a=`sed -e "/^#/d" -e "s/#.*//" "$srcdir/man/LINGUAS.po4a"`
46321       man_all_linguas="$man_all_linguas $man_all_linguas_po4a"
46322     fi
46323     man_inst_linguas=
46324     for presentlang in $man_all_linguas; do
46325       useit=no
46326       if test -n "$LINGUAS"; then
46327         desiredlanguages="$LINGUAS"
46328       else
46329         desiredlanguages="$man_all_linguas"
46330       fi
46331       for desiredlang in $desiredlanguages; do
46332         # Use the presentlang catalog if desiredlang is
46333         #   a. equal to presentlang, or
46334         #   b. a variant of presentlang (because in this case,
46335         #      presentlang can be used as a fallback for messages
46336         #      which are not translated in the desiredlang catalog).
46337         case "$desiredlang" in
46338           "$presentlang"*) useit=yes;;
46339         esac
46340       done
46341       if test $useit = yes; then
46342         man_inst_linguas="$man_inst_linguas $presentlang"
46343       fi
46344     done
46345     if test -n "$PO4A"; then
46346       MAN_SUBDIRS="po4a $man_inst_linguas"
46347     else
46348       MAN_SUBDIRS="$man_inst_linguas"
46349     fi
46350   else
46351     MAN_SUBDIRS=
46352   fi
46353
46354
46355
46356 # Checks for structures and compiler characteristics.
46357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
46358 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
46359 if ${ac_cv_c_const+:} false; then :
46360   $as_echo_n "(cached) " >&6
46361 else
46362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46363 /* end confdefs.h.  */
46364
46365 int
46366 main ()
46367 {
46368
46369 #ifndef __cplusplus
46370   /* Ultrix mips cc rejects this sort of thing.  */
46371   typedef int charset[2];
46372   const charset cs = { 0, 0 };
46373   /* SunOS 4.1.1 cc rejects this.  */
46374   char const *const *pcpcc;
46375   char **ppc;
46376   /* NEC SVR4.0.2 mips cc rejects this.  */
46377   struct point {int x, y;};
46378   static struct point const zero = {0,0};
46379   /* AIX XL C 1.02.0.0 rejects this.
46380      It does not let you subtract one const X* pointer from another in
46381      an arm of an if-expression whose if-part is not a constant
46382      expression */
46383   const char *g = "string";
46384   pcpcc = &g + (g ? g-g : 0);
46385   /* HPUX 7.0 cc rejects these. */
46386   ++pcpcc;
46387   ppc = (char**) pcpcc;
46388   pcpcc = (char const *const *) ppc;
46389   { /* SCO 3.2v4 cc rejects this sort of thing.  */
46390     char tx;
46391     char *t = &tx;
46392     char const *s = 0 ? (char *) 0 : (char const *) 0;
46393
46394     *t++ = 0;
46395     if (s) return 0;
46396   }
46397   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
46398     int x[] = {25, 17};
46399     const int *foo = &x[0];
46400     ++foo;
46401   }
46402   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
46403     typedef const int *iptr;
46404     iptr p = 0;
46405     ++p;
46406   }
46407   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
46408        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
46409     struct s { int j; const int *ap[3]; } bx;
46410     struct s *b = &bx; b->j = 5;
46411   }
46412   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
46413     const int foo = 10;
46414     if (!foo) return 0;
46415   }
46416   return !cs[0] && !zero.x;
46417 #endif
46418
46419   ;
46420   return 0;
46421 }
46422 _ACEOF
46423 if ac_fn_c_try_compile "$LINENO"; then :
46424   ac_cv_c_const=yes
46425 else
46426   ac_cv_c_const=no
46427 fi
46428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46429 fi
46430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
46431 $as_echo "$ac_cv_c_const" >&6; }
46432 if test $ac_cv_c_const = no; then
46433
46434 $as_echo "#define const /**/" >>confdefs.h
46435
46436 fi
46437
46438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
46439 $as_echo_n "checking for inline... " >&6; }
46440 if ${ac_cv_c_inline+:} false; then :
46441   $as_echo_n "(cached) " >&6
46442 else
46443   ac_cv_c_inline=no
46444 for ac_kw in inline __inline__ __inline; do
46445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46446 /* end confdefs.h.  */
46447 #ifndef __cplusplus
46448 typedef int foo_t;
46449 static $ac_kw foo_t static_foo () {return 0; }
46450 $ac_kw foo_t foo () {return 0; }
46451 #endif
46452
46453 _ACEOF
46454 if ac_fn_c_try_compile "$LINENO"; then :
46455   ac_cv_c_inline=$ac_kw
46456 fi
46457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46458   test "$ac_cv_c_inline" != no && break
46459 done
46460
46461 fi
46462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
46463 $as_echo "$ac_cv_c_inline" >&6; }
46464
46465 case $ac_cv_c_inline in
46466   inline | yes) ;;
46467   *)
46468     case $ac_cv_c_inline in
46469       no) ac_val=;;
46470       *) ac_val=$ac_cv_c_inline;;
46471     esac
46472     cat >>confdefs.h <<_ACEOF
46473 #ifndef __cplusplus
46474 #define inline $ac_val
46475 #endif
46476 _ACEOF
46477     ;;
46478 esac
46479
46480 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
46481 if test "x$ac_cv_type_pid_t" = xyes; then :
46482
46483 else
46484
46485 cat >>confdefs.h <<_ACEOF
46486 #define pid_t int
46487 _ACEOF
46488
46489 fi
46490
46491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
46492 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
46493 if ${ac_cv_type_uid_t+:} false; then :
46494   $as_echo_n "(cached) " >&6
46495 else
46496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46497 /* end confdefs.h.  */
46498 #include <sys/types.h>
46499
46500 _ACEOF
46501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46502   $EGREP "uid_t" >/dev/null 2>&1; then :
46503   ac_cv_type_uid_t=yes
46504 else
46505   ac_cv_type_uid_t=no
46506 fi
46507 rm -f conftest*
46508
46509 fi
46510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
46511 $as_echo "$ac_cv_type_uid_t" >&6; }
46512 if test $ac_cv_type_uid_t = no; then
46513
46514 $as_echo "#define uid_t int" >>confdefs.h
46515
46516
46517 $as_echo "#define gid_t int" >>confdefs.h
46518
46519 fi
46520
46521 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
46522 if test "x$ac_cv_type_size_t" = xyes; then :
46523
46524 else
46525
46526 cat >>confdefs.h <<_ACEOF
46527 #define size_t unsigned int
46528 _ACEOF
46529
46530 fi
46531
46532
46533 # Check for pipeline library.
46534
46535 pkg_failed=no
46536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipeline" >&5
46537 $as_echo_n "checking for libpipeline... " >&6; }
46538
46539 if test -n "$libpipeline_CFLAGS"; then
46540     pkg_cv_libpipeline_CFLAGS="$libpipeline_CFLAGS"
46541  elif test -n "$PKG_CONFIG"; then
46542     if test -n "$PKG_CONFIG" && \
46543     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipeline >= 1.5.0\""; } >&5
46544   ($PKG_CONFIG --exists --print-errors "libpipeline >= 1.5.0") 2>&5
46545   ac_status=$?
46546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46547   test $ac_status = 0; }; then
46548   pkg_cv_libpipeline_CFLAGS=`$PKG_CONFIG --cflags "libpipeline >= 1.5.0" 2>/dev/null`
46549                       test "x$?" != "x0" && pkg_failed=yes
46550 else
46551   pkg_failed=yes
46552 fi
46553  else
46554     pkg_failed=untried
46555 fi
46556 if test -n "$libpipeline_LIBS"; then
46557     pkg_cv_libpipeline_LIBS="$libpipeline_LIBS"
46558  elif test -n "$PKG_CONFIG"; then
46559     if test -n "$PKG_CONFIG" && \
46560     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipeline >= 1.5.0\""; } >&5
46561   ($PKG_CONFIG --exists --print-errors "libpipeline >= 1.5.0") 2>&5
46562   ac_status=$?
46563   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46564   test $ac_status = 0; }; then
46565   pkg_cv_libpipeline_LIBS=`$PKG_CONFIG --libs "libpipeline >= 1.5.0" 2>/dev/null`
46566                       test "x$?" != "x0" && pkg_failed=yes
46567 else
46568   pkg_failed=yes
46569 fi
46570  else
46571     pkg_failed=untried
46572 fi
46573
46574
46575
46576 if test $pkg_failed = yes; then
46577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46578 $as_echo "no" >&6; }
46579
46580 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46581         _pkg_short_errors_supported=yes
46582 else
46583         _pkg_short_errors_supported=no
46584 fi
46585         if test $_pkg_short_errors_supported = yes; then
46586                 libpipeline_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipeline >= 1.5.0" 2>&1`
46587         else
46588                 libpipeline_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipeline >= 1.5.0" 2>&1`
46589         fi
46590         # Put the nasty error message in config.log where it belongs
46591         echo "$libpipeline_PKG_ERRORS" >&5
46592
46593         as_fn_error $? "Package requirements (libpipeline >= 1.5.0) were not met:
46594
46595 $libpipeline_PKG_ERRORS
46596
46597 Consider adjusting the PKG_CONFIG_PATH environment variable if you
46598 installed software in a non-standard prefix.
46599
46600 Alternatively, you may set the environment variables libpipeline_CFLAGS
46601 and libpipeline_LIBS to avoid the need to call pkg-config.
46602 See the pkg-config man page for more details." "$LINENO" 5
46603 elif test $pkg_failed = untried; then
46604         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46605 $as_echo "no" >&6; }
46606         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
46607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
46608 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
46609 is in your PATH or set the PKG_CONFIG environment variable to the full
46610 path to pkg-config.
46611
46612 Alternatively, you may set the environment variables libpipeline_CFLAGS
46613 and libpipeline_LIBS to avoid the need to call pkg-config.
46614 See the pkg-config man page for more details.
46615
46616 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
46617 See \`config.log' for more details" "$LINENO" 5; }
46618 else
46619         libpipeline_CFLAGS=$pkg_cv_libpipeline_CFLAGS
46620         libpipeline_LIBS=$pkg_cv_libpipeline_LIBS
46621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46622 $as_echo "yes" >&6; }
46623
46624 fi
46625
46626 # Find a suitable database interface header and library.
46627 #
46628 # Check for GNU dbm routines.
46629 if test "$db" = "no" || test "$db" = "gdbm"
46630 then
46631   ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
46632 if test "x$ac_cv_header_gdbm_h" = xyes; then :
46633
46634     for lib in gdbm c dbm
46635     do
46636       as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_gdbm_fetch" | $as_tr_sh`
46637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_fetch in -l$lib" >&5
46638 $as_echo_n "checking for gdbm_fetch in -l$lib... " >&6; }
46639 if eval \${$as_ac_Lib+:} false; then :
46640   $as_echo_n "(cached) " >&6
46641 else
46642   ac_check_lib_save_LIBS=$LIBS
46643 LIBS="-l$lib  $LIBS"
46644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46645 /* end confdefs.h.  */
46646
46647 /* Override any GCC internal prototype to avoid an error.
46648    Use char because int might match the return type of a GCC
46649    builtin and then its argument prototype would still apply.  */
46650 #ifdef __cplusplus
46651 extern "C"
46652 #endif
46653 char gdbm_fetch ();
46654 int
46655 main ()
46656 {
46657 return gdbm_fetch ();
46658   ;
46659   return 0;
46660 }
46661 _ACEOF
46662 if ac_fn_c_try_link "$LINENO"; then :
46663   eval "$as_ac_Lib=yes"
46664 else
46665   eval "$as_ac_Lib=no"
46666 fi
46667 rm -f core conftest.err conftest.$ac_objext \
46668     conftest$ac_exeext conftest.$ac_ext
46669 LIBS=$ac_check_lib_save_LIBS
46670 fi
46671 eval ac_res=\$$as_ac_Lib
46672                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46673 $as_echo "$ac_res" >&6; }
46674 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
46675   test "$lib" = "c" || DBLIBS="-l$lib"
46676
46677 $as_echo "#define GDBM 1" >>confdefs.h
46678
46679                     DBTYPE=gdbm
46680
46681                    db=yes
46682 else
46683   db=no
46684 fi
46685
46686       if test "$db" = "yes"
46687       then
46688         man_save_LIBS="$LIBS"
46689         LIBS="$LIBS $DBLIBS"
46690         for ac_func in gdbm_exists
46691 do :
46692   ac_fn_c_check_func "$LINENO" "gdbm_exists" "ac_cv_func_gdbm_exists"
46693 if test "x$ac_cv_func_gdbm_exists" = xyes; then :
46694   cat >>confdefs.h <<_ACEOF
46695 #define HAVE_GDBM_EXISTS 1
46696 _ACEOF
46697
46698 fi
46699 done
46700
46701         LIBS="$man_save_LIBS"
46702         break
46703       fi
46704     done
46705 else
46706   db=no
46707 fi
46708
46709
46710 fi
46711
46712 # Check for Berkeley db routines (first version API).
46713 man_bdb_requested=no
46714 for trydb in db5 db
46715 do
46716   if test "$db" = "$trydb"
46717   then
46718     man_bdb_requested=yes
46719   fi
46720 done
46721 if test "$db" = no || test "$man_bdb_requested" = yes
46722 then
46723   for head in db5/db_185.h db_185.h
46724   do
46725     for ac_header in $head
46726 do :
46727   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46728 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46729 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46730   cat >>confdefs.h <<_ACEOF
46731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46732 _ACEOF
46733  got=yes
46734 else
46735   got=no
46736 fi
46737
46738 done
46739
46740     if test "$got" = "yes"
46741     then
46742       for lib in db5 db-5
46743       do
46744         as_man_tr_bdb=`$as_echo "man_cv_bdb_header_${head}_lib_${lib}" | $as_tr_sh`
46745         man_saved_LIBS="$LIBS"
46746         LIBS="$LIBS -l$lib"
46747         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen from <${head}> in -l${lib}" >&5
46748 $as_echo_n "checking for dbopen from <${head}> in -l${lib}... " >&6; }
46749 if eval \${$as_man_tr_bdb+:} false; then :
46750   $as_echo_n "(cached) " >&6
46751 else
46752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46753 /* end confdefs.h.  */
46754 #include <$head>
46755 int
46756 main ()
46757 {
46758 dbopen("foo", 0, 0, 0, (void *) 0)
46759   ;
46760   return 0;
46761 }
46762 _ACEOF
46763 if ac_fn_c_try_link "$LINENO"; then :
46764   eval "$as_man_tr_bdb=yes"
46765 else
46766   eval "$as_man_tr_bdb=no"
46767 fi
46768 rm -f core conftest.err conftest.$ac_objext \
46769     conftest$ac_exeext conftest.$ac_ext
46770
46771 fi
46772 eval ac_res=\$$as_man_tr_bdb
46773                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46774 $as_echo "$ac_res" >&6; }
46775         if eval test \"x\$"$as_man_tr_bdb"\" = x"yes"; then :
46776
46777
46778 cat >>confdefs.h <<_ACEOF
46779 #define BDB_H <$head>
46780 _ACEOF
46781
46782
46783 cat >>confdefs.h <<_ACEOF
46784 #define BTREE 1
46785 _ACEOF
46786
46787                    DBTYPE=btree
46788
46789                    DBLIBS="-l$lib"
46790                    db=yes
46791 else
46792   db=no
46793 fi
46794         LIBS="$man_saved_LIBS"
46795                 test "$db" = "yes" && break
46796       done
46797     fi
46798     test "$db" = "yes" && break
46799   done
46800 fi
46801 man_bdb_requested=no
46802 for trydb in db4 db
46803 do
46804   if test "$db" = "$trydb"
46805   then
46806     man_bdb_requested=yes
46807   fi
46808 done
46809 if test "$db" = no || test "$man_bdb_requested" = yes
46810 then
46811   for head in db4/db_185.h db_185.h
46812   do
46813     for ac_header in $head
46814 do :
46815   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46816 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46817 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46818   cat >>confdefs.h <<_ACEOF
46819 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46820 _ACEOF
46821  got=yes
46822 else
46823   got=no
46824 fi
46825
46826 done
46827
46828     if test "$got" = "yes"
46829     then
46830       for lib in db4 db-4
46831       do
46832         as_man_tr_bdb=`$as_echo "man_cv_bdb_header_${head}_lib_${lib}" | $as_tr_sh`
46833         man_saved_LIBS="$LIBS"
46834         LIBS="$LIBS -l$lib"
46835         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen from <${head}> in -l${lib}" >&5
46836 $as_echo_n "checking for dbopen from <${head}> in -l${lib}... " >&6; }
46837 if eval \${$as_man_tr_bdb+:} false; then :
46838   $as_echo_n "(cached) " >&6
46839 else
46840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46841 /* end confdefs.h.  */
46842 #include <$head>
46843 int
46844 main ()
46845 {
46846 dbopen("foo", 0, 0, 0, (void *) 0)
46847   ;
46848   return 0;
46849 }
46850 _ACEOF
46851 if ac_fn_c_try_link "$LINENO"; then :
46852   eval "$as_man_tr_bdb=yes"
46853 else
46854   eval "$as_man_tr_bdb=no"
46855 fi
46856 rm -f core conftest.err conftest.$ac_objext \
46857     conftest$ac_exeext conftest.$ac_ext
46858
46859 fi
46860 eval ac_res=\$$as_man_tr_bdb
46861                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46862 $as_echo "$ac_res" >&6; }
46863         if eval test \"x\$"$as_man_tr_bdb"\" = x"yes"; then :
46864
46865
46866 cat >>confdefs.h <<_ACEOF
46867 #define BDB_H <$head>
46868 _ACEOF
46869
46870
46871 cat >>confdefs.h <<_ACEOF
46872 #define BTREE 1
46873 _ACEOF
46874
46875                    DBTYPE=btree
46876
46877                    DBLIBS="-l$lib"
46878                    db=yes
46879 else
46880   db=no
46881 fi
46882         LIBS="$man_saved_LIBS"
46883                 test "$db" = "yes" && break
46884       done
46885     fi
46886     test "$db" = "yes" && break
46887   done
46888 fi
46889 man_bdb_requested=no
46890 for trydb in db3 db
46891 do
46892   if test "$db" = "$trydb"
46893   then
46894     man_bdb_requested=yes
46895   fi
46896 done
46897 if test "$db" = no || test "$man_bdb_requested" = yes
46898 then
46899   for head in db3/db_185.h db_185.h
46900   do
46901     for ac_header in $head
46902 do :
46903   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46904 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46905 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46906   cat >>confdefs.h <<_ACEOF
46907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46908 _ACEOF
46909  got=yes
46910 else
46911   got=no
46912 fi
46913
46914 done
46915
46916     if test "$got" = "yes"
46917     then
46918       for lib in db3
46919       do
46920         as_man_tr_bdb=`$as_echo "man_cv_bdb_header_${head}_lib_${lib}" | $as_tr_sh`
46921         man_saved_LIBS="$LIBS"
46922         LIBS="$LIBS -l$lib"
46923         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen from <${head}> in -l${lib}" >&5
46924 $as_echo_n "checking for dbopen from <${head}> in -l${lib}... " >&6; }
46925 if eval \${$as_man_tr_bdb+:} false; then :
46926   $as_echo_n "(cached) " >&6
46927 else
46928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46929 /* end confdefs.h.  */
46930 #include <$head>
46931 int
46932 main ()
46933 {
46934 dbopen("foo", 0, 0, 0, (void *) 0)
46935   ;
46936   return 0;
46937 }
46938 _ACEOF
46939 if ac_fn_c_try_link "$LINENO"; then :
46940   eval "$as_man_tr_bdb=yes"
46941 else
46942   eval "$as_man_tr_bdb=no"
46943 fi
46944 rm -f core conftest.err conftest.$ac_objext \
46945     conftest$ac_exeext conftest.$ac_ext
46946
46947 fi
46948 eval ac_res=\$$as_man_tr_bdb
46949                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46950 $as_echo "$ac_res" >&6; }
46951         if eval test \"x\$"$as_man_tr_bdb"\" = x"yes"; then :
46952
46953
46954 cat >>confdefs.h <<_ACEOF
46955 #define BDB_H <$head>
46956 _ACEOF
46957
46958
46959 cat >>confdefs.h <<_ACEOF
46960 #define BTREE 1
46961 _ACEOF
46962
46963                    DBTYPE=btree
46964
46965                    DBLIBS="-l$lib"
46966                    db=yes
46967 else
46968   db=no
46969 fi
46970         LIBS="$man_saved_LIBS"
46971                 test "$db" = "yes" && break
46972       done
46973     fi
46974     test "$db" = "yes" && break
46975   done
46976 fi
46977 man_bdb_requested=no
46978 for trydb in db2 db
46979 do
46980   if test "$db" = "$trydb"
46981   then
46982     man_bdb_requested=yes
46983   fi
46984 done
46985 if test "$db" = no || test "$man_bdb_requested" = yes
46986 then
46987   for head in db_185.h db2/db_185.h db2_185.h
46988   do
46989     for ac_header in $head
46990 do :
46991   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46992 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46993 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46994   cat >>confdefs.h <<_ACEOF
46995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46996 _ACEOF
46997  got=yes
46998 else
46999   got=no
47000 fi
47001
47002 done
47003
47004     if test "$got" = "yes"
47005     then
47006       for lib in db2 db
47007       do
47008         as_man_tr_bdb=`$as_echo "man_cv_bdb_header_${head}_lib_${lib}" | $as_tr_sh`
47009         man_saved_LIBS="$LIBS"
47010         LIBS="$LIBS -l$lib"
47011         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen from <${head}> in -l${lib}" >&5
47012 $as_echo_n "checking for dbopen from <${head}> in -l${lib}... " >&6; }
47013 if eval \${$as_man_tr_bdb+:} false; then :
47014   $as_echo_n "(cached) " >&6
47015 else
47016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47017 /* end confdefs.h.  */
47018 #include <$head>
47019 int
47020 main ()
47021 {
47022 dbopen("foo", 0, 0, 0, (void *) 0)
47023   ;
47024   return 0;
47025 }
47026 _ACEOF
47027 if ac_fn_c_try_link "$LINENO"; then :
47028   eval "$as_man_tr_bdb=yes"
47029 else
47030   eval "$as_man_tr_bdb=no"
47031 fi
47032 rm -f core conftest.err conftest.$ac_objext \
47033     conftest$ac_exeext conftest.$ac_ext
47034
47035 fi
47036 eval ac_res=\$$as_man_tr_bdb
47037                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
47038 $as_echo "$ac_res" >&6; }
47039         if eval test \"x\$"$as_man_tr_bdb"\" = x"yes"; then :
47040
47041
47042 cat >>confdefs.h <<_ACEOF
47043 #define BDB_H <$head>
47044 _ACEOF
47045
47046
47047 cat >>confdefs.h <<_ACEOF
47048 #define BTREE 1
47049 _ACEOF
47050
47051                    DBTYPE=btree
47052
47053                    DBLIBS="-l$lib"
47054                    db=yes
47055 else
47056   db=no
47057 fi
47058         LIBS="$man_saved_LIBS"
47059                 test "$db" = "yes" && break
47060       done
47061     fi
47062     test "$db" = "yes" && break
47063   done
47064 fi
47065 man_bdb_requested=no
47066 for trydb in db1 db
47067 do
47068   if test "$db" = "$trydb"
47069   then
47070     man_bdb_requested=yes
47071   fi
47072 done
47073 if test "$db" = no || test "$man_bdb_requested" = yes
47074 then
47075   for head in db/db.h db.h db1/db.h
47076   do
47077     for ac_header in $head
47078 do :
47079   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47080 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
47081 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47082   cat >>confdefs.h <<_ACEOF
47083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47084 _ACEOF
47085  got=yes
47086 else
47087   got=no
47088 fi
47089
47090 done
47091
47092     if test "$got" = "yes"
47093     then
47094       for lib in db db1 c
47095       do
47096         as_man_tr_bdb=`$as_echo "man_cv_bdb_header_${head}_lib_${lib}" | $as_tr_sh`
47097         man_saved_LIBS="$LIBS"
47098         LIBS="$LIBS -l$lib"
47099         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen from <${head}> in -l${lib}" >&5
47100 $as_echo_n "checking for dbopen from <${head}> in -l${lib}... " >&6; }
47101 if eval \${$as_man_tr_bdb+:} false; then :
47102   $as_echo_n "(cached) " >&6
47103 else
47104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47105 /* end confdefs.h.  */
47106 #include <$head>
47107 int
47108 main ()
47109 {
47110 dbopen("foo", 0, 0, 0, (void *) 0)
47111   ;
47112   return 0;
47113 }
47114 _ACEOF
47115 if ac_fn_c_try_link "$LINENO"; then :
47116   eval "$as_man_tr_bdb=yes"
47117 else
47118   eval "$as_man_tr_bdb=no"
47119 fi
47120 rm -f core conftest.err conftest.$ac_objext \
47121     conftest$ac_exeext conftest.$ac_ext
47122
47123 fi
47124 eval ac_res=\$$as_man_tr_bdb
47125                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
47126 $as_echo "$ac_res" >&6; }
47127         if eval test \"x\$"$as_man_tr_bdb"\" = x"yes"; then :
47128
47129
47130 cat >>confdefs.h <<_ACEOF
47131 #define BDB_H <$head>
47132 _ACEOF
47133
47134
47135 cat >>confdefs.h <<_ACEOF
47136 #define BTREE 1
47137 _ACEOF
47138
47139                    DBTYPE=btree
47140
47141                    DBLIBS="-l$lib"
47142                    db=yes
47143 else
47144   db=no
47145 fi
47146         LIBS="$man_saved_LIBS"
47147                 test "$db" = "yes" && break
47148       done
47149     fi
47150     test "$db" = "yes" && break
47151   done
47152 fi
47153
47154
47155 # Check for UNIX ndbm routines.
47156 if test "$db" = "no" || test "$db" = "ndbm"
47157 then
47158   ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
47159 if test "x$ac_cv_header_ndbm_h" = xyes; then :
47160
47161     for lib in ndbm c dbm
47162     do
47163       as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_dbm_fetch" | $as_tr_sh`
47164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_fetch in -l$lib" >&5
47165 $as_echo_n "checking for dbm_fetch in -l$lib... " >&6; }
47166 if eval \${$as_ac_Lib+:} false; then :
47167   $as_echo_n "(cached) " >&6
47168 else
47169   ac_check_lib_save_LIBS=$LIBS
47170 LIBS="-l$lib  $LIBS"
47171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47172 /* end confdefs.h.  */
47173
47174 /* Override any GCC internal prototype to avoid an error.
47175    Use char because int might match the return type of a GCC
47176    builtin and then its argument prototype would still apply.  */
47177 #ifdef __cplusplus
47178 extern "C"
47179 #endif
47180 char dbm_fetch ();
47181 int
47182 main ()
47183 {
47184 return dbm_fetch ();
47185   ;
47186   return 0;
47187 }
47188 _ACEOF
47189 if ac_fn_c_try_link "$LINENO"; then :
47190   eval "$as_ac_Lib=yes"
47191 else
47192   eval "$as_ac_Lib=no"
47193 fi
47194 rm -f core conftest.err conftest.$ac_objext \
47195     conftest$ac_exeext conftest.$ac_ext
47196 LIBS=$ac_check_lib_save_LIBS
47197 fi
47198 eval ac_res=\$$as_ac_Lib
47199                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
47200 $as_echo "$ac_res" >&6; }
47201 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
47202   test "$lib" = "c" || DBLIBS="-l$lib"
47203
47204 $as_echo "#define NDBM 1" >>confdefs.h
47205
47206                     DBTYPE=ndbm
47207
47208                    db=yes
47209 else
47210   db=no
47211 fi
47212
47213       test "$db" = "yes" && break
47214     done
47215 else
47216   db=no
47217 fi
47218
47219
47220   if test "$db" = no
47221   then
47222     ac_fn_c_check_header_mongrel "$LINENO" "gdbm-ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default"
47223 if test "x$ac_cv_header_gdbm_ndbm_h" = xyes; then :
47224
47225       for lib in gdbm_compat c dbm
47226       do
47227         as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_dbm_fetch" | $as_tr_sh`
47228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_fetch in -l$lib" >&5
47229 $as_echo_n "checking for dbm_fetch in -l$lib... " >&6; }
47230 if eval \${$as_ac_Lib+:} false; then :
47231   $as_echo_n "(cached) " >&6
47232 else
47233   ac_check_lib_save_LIBS=$LIBS
47234 LIBS="-l$lib  $LIBS"
47235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47236 /* end confdefs.h.  */
47237
47238 /* Override any GCC internal prototype to avoid an error.
47239    Use char because int might match the return type of a GCC
47240    builtin and then its argument prototype would still apply.  */
47241 #ifdef __cplusplus
47242 extern "C"
47243 #endif
47244 char dbm_fetch ();
47245 int
47246 main ()
47247 {
47248 return dbm_fetch ();
47249   ;
47250   return 0;
47251 }
47252 _ACEOF
47253 if ac_fn_c_try_link "$LINENO"; then :
47254   eval "$as_ac_Lib=yes"
47255 else
47256   eval "$as_ac_Lib=no"
47257 fi
47258 rm -f core conftest.err conftest.$ac_objext \
47259     conftest$ac_exeext conftest.$ac_ext
47260 LIBS=$ac_check_lib_save_LIBS
47261 fi
47262 eval ac_res=\$$as_ac_Lib
47263                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
47264 $as_echo "$ac_res" >&6; }
47265 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
47266   test "$lib" = "c" || DBLIBS="-l$lib"
47267
47268 $as_echo "#define NDBM 1" >>confdefs.h
47269
47270                       DBTYPE=ndbm
47271
47272                      db=yes
47273 else
47274   db=no
47275 fi
47276
47277         test "$db" = "yes" && break
47278       done
47279 else
47280   db=no
47281 fi
47282
47283
47284   fi
47285 fi
47286
47287 if test "$db" != "yes"
47288 then
47289     if test "$db" = "no"
47290     then
47291       as_fn_error $? "Fatal: no supported database library/header found" "$LINENO" 5
47292     else
47293       as_fn_error $? "Fatal: $db: unsupported database library" "$LINENO" 5
47294     fi
47295 fi
47296
47297
47298 # Check for libseccomp library.
47299
47300 # Check whether --with-libseccomp was given.
47301 if test "${with_libseccomp+set}" = set; then :
47302   withval=$with_libseccomp;
47303 else
47304   with_libseccomp=check
47305 fi
47306
47307         if test "x$with_libseccomp" != "xno"; then
47308
47309 pkg_failed=no
47310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp" >&5
47311 $as_echo_n "checking for libseccomp... " >&6; }
47312
47313 if test -n "$libseccomp_CFLAGS"; then
47314     pkg_cv_libseccomp_CFLAGS="$libseccomp_CFLAGS"
47315  elif test -n "$PKG_CONFIG"; then
47316     if test -n "$PKG_CONFIG" && \
47317     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libseccomp\""; } >&5
47318   ($PKG_CONFIG --exists --print-errors "libseccomp") 2>&5
47319   ac_status=$?
47320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47321   test $ac_status = 0; }; then
47322   pkg_cv_libseccomp_CFLAGS=`$PKG_CONFIG --cflags "libseccomp" 2>/dev/null`
47323                       test "x$?" != "x0" && pkg_failed=yes
47324 else
47325   pkg_failed=yes
47326 fi
47327  else
47328     pkg_failed=untried
47329 fi
47330 if test -n "$libseccomp_LIBS"; then
47331     pkg_cv_libseccomp_LIBS="$libseccomp_LIBS"
47332  elif test -n "$PKG_CONFIG"; then
47333     if test -n "$PKG_CONFIG" && \
47334     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libseccomp\""; } >&5
47335   ($PKG_CONFIG --exists --print-errors "libseccomp") 2>&5
47336   ac_status=$?
47337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47338   test $ac_status = 0; }; then
47339   pkg_cv_libseccomp_LIBS=`$PKG_CONFIG --libs "libseccomp" 2>/dev/null`
47340                       test "x$?" != "x0" && pkg_failed=yes
47341 else
47342   pkg_failed=yes
47343 fi
47344  else
47345     pkg_failed=untried
47346 fi
47347
47348
47349
47350 if test $pkg_failed = yes; then
47351         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47352 $as_echo "no" >&6; }
47353
47354 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47355         _pkg_short_errors_supported=yes
47356 else
47357         _pkg_short_errors_supported=no
47358 fi
47359         if test $_pkg_short_errors_supported = yes; then
47360                 libseccomp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libseccomp" 2>&1`
47361         else
47362                 libseccomp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libseccomp" 2>&1`
47363         fi
47364         # Put the nasty error message in config.log where it belongs
47365         echo "$libseccomp_PKG_ERRORS" >&5
47366
47367         if test "x$with_libseccomp" = "xyes"; then
47368                                 as_fn_error $? "--with-libseccomp given but cannot find libseccomp" "$LINENO" 5
47369                          fi
47370 elif test $pkg_failed = untried; then
47371         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47372 $as_echo "no" >&6; }
47373         if test "x$with_libseccomp" = "xyes"; then
47374                                 as_fn_error $? "--with-libseccomp given but cannot find libseccomp" "$LINENO" 5
47375                          fi
47376 else
47377         libseccomp_CFLAGS=$pkg_cv_libseccomp_CFLAGS
47378         libseccomp_LIBS=$pkg_cv_libseccomp_LIBS
47379         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47380 $as_echo "yes" >&6; }
47381
47382 $as_echo "#define HAVE_LIBSECCOMP 1" >>confdefs.h
47383
47384 fi
47385         fi
47386
47387
47388 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
47389 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
47390 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
47391 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
47392 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
47393 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
47394 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
47395 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
47396 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
47397 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
47398 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
47399 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
47400 { $as_echo "$as_me:${as_lineno-$LINENO}: default DBLIBS = \"$DBLIBS\"" >&5
47401 $as_echo "$as_me: default DBLIBS = \"$DBLIBS\"" >&6;}
47402
47403 # Transformed versions of program names for use in Automake variables.
47404 man_transformed=`echo apropos | sed "$program_transform_name"`
47405  TRANS_APROPOS=$man_transformed
47406
47407  TRANS_APROPOS_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47408
47409
47410 man_transformed=`echo catman | sed "$program_transform_name"`
47411  TRANS_CATMAN=$man_transformed
47412
47413  TRANS_CATMAN_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47414
47415
47416 man_transformed=`echo lexgrog | sed "$program_transform_name"`
47417  TRANS_LEXGROG=$man_transformed
47418
47419  TRANS_LEXGROG_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47420
47421
47422 man_transformed=`echo man | sed "$program_transform_name"`
47423  TRANS_MAN=$man_transformed
47424
47425  TRANS_MAN_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47426
47427
47428 man_transformed=`echo manconv | sed "$program_transform_name"`
47429  TRANS_MANCONV=$man_transformed
47430
47431  TRANS_MANCONV_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47432
47433
47434 man_transformed=`echo mandb | sed "$program_transform_name"`
47435  TRANS_MANDB=$man_transformed
47436
47437  TRANS_MANDB_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47438
47439
47440 man_transformed=`echo manpath | sed "$program_transform_name"`
47441  TRANS_MANPATH=$man_transformed
47442
47443  TRANS_MANPATH_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47444
47445
47446 man_transformed=`echo whatis | sed "$program_transform_name"`
47447  TRANS_WHATIS=$man_transformed
47448
47449  TRANS_WHATIS_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47450
47451
47452 man_transformed=`echo zsoelim | sed "$program_transform_name"`
47453  TRANS_ZSOELIM=$man_transformed
47454
47455  TRANS_ZSOELIM_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47456
47457
47458
47459 # If we're cross-compiling, tests won't work.
47460  if test "x$cross_compiling" = xyes; then
47461   CROSS_COMPILING_TRUE=
47462   CROSS_COMPILING_FALSE='#'
47463 else
47464   CROSS_COMPILING_TRUE='#'
47465   CROSS_COMPILING_FALSE=
47466 fi
47467
47468
47469 # Are Gnulib translations available?
47470  if test -f "$srcdir/gnulib/po/POTFILES.in"; then
47471   HAVE_GNULIB_PO_TRUE=
47472   HAVE_GNULIB_PO_FALSE='#'
47473 else
47474   HAVE_GNULIB_PO_TRUE='#'
47475   HAVE_GNULIB_PO_FALSE=
47476 fi
47477
47478
47479 ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile init/Makefile init/systemd/Makefile lib/Makefile src/Makefile src/man_db.conf src/tests/Makefile man/Makefile man/replace.sin man/po4a/Makefile man/da/Makefile man/de/Makefile man/es/Makefile man/fr/Makefile man/id/Makefile man/it/Makefile man/ja/Makefile man/nl/Makefile man/pl/Makefile man/pt_BR/Makefile man/ru/Makefile man/sr/Makefile man/sv/Makefile man/tr/Makefile man/zh_CN/Makefile manual/Makefile libdb/Makefile docs/Makefile tools/Makefile include/comp_src.h include/manconfig.h po/Makefile.in"
47480
47481 if test -f "$srcdir/gnulib/po/Makefile.in.in"; then
47482         ac_config_files="$ac_config_files gnulib/po/Makefile.in"
47483
47484 fi
47485 cat >confcache <<\_ACEOF
47486 # This file is a shell script that caches the results of configure
47487 # tests run on this system so they can be shared between configure
47488 # scripts and configure runs, see configure's option --config-cache.
47489 # It is not useful on other systems.  If it contains results you don't
47490 # want to keep, you may remove or edit it.
47491 #
47492 # config.status only pays attention to the cache file if you give it
47493 # the --recheck option to rerun configure.
47494 #
47495 # `ac_cv_env_foo' variables (set or unset) will be overridden when
47496 # loading this file, other *unset* `ac_cv_foo' will be assigned the
47497 # following values.
47498
47499 _ACEOF
47500
47501 # The following way of writing the cache mishandles newlines in values,
47502 # but we know of no workaround that is simple, portable, and efficient.
47503 # So, we kill variables containing newlines.
47504 # Ultrix sh set writes to stderr and can't be redirected directly,
47505 # and sets the high bit in the cache file unless we assign to the vars.
47506 (
47507   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
47508     eval ac_val=\$$ac_var
47509     case $ac_val in #(
47510     *${as_nl}*)
47511       case $ac_var in #(
47512       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
47513 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
47514       esac
47515       case $ac_var in #(
47516       _ | IFS | as_nl) ;; #(
47517       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
47518       *) { eval $ac_var=; unset $ac_var;} ;;
47519       esac ;;
47520     esac
47521   done
47522
47523   (set) 2>&1 |
47524     case $as_nl`(ac_space=' '; set) 2>&1` in #(
47525     *${as_nl}ac_space=\ *)
47526       # `set' does not quote correctly, so add quotes: double-quote
47527       # substitution turns \\\\ into \\, and sed turns \\ into \.
47528       sed -n \
47529         "s/'/'\\\\''/g;
47530           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47531       ;; #(
47532     *)
47533       # `set' quotes correctly as required by POSIX, so do not add quotes.
47534       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
47535       ;;
47536     esac |
47537     sort
47538 ) |
47539   sed '
47540      /^ac_cv_env_/b end
47541      t clear
47542      :clear
47543      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
47544      t end
47545      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
47546      :end' >>confcache
47547 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
47548   if test -w "$cache_file"; then
47549     if test "x$cache_file" != "x/dev/null"; then
47550       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
47551 $as_echo "$as_me: updating cache $cache_file" >&6;}
47552       if test ! -f "$cache_file" || test -h "$cache_file"; then
47553         cat confcache >"$cache_file"
47554       else
47555         case $cache_file in #(
47556         */* | ?:*)
47557           mv -f confcache "$cache_file"$$ &&
47558           mv -f "$cache_file"$$ "$cache_file" ;; #(
47559         *)
47560           mv -f confcache "$cache_file" ;;
47561         esac
47562       fi
47563     fi
47564   else
47565     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
47566 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
47567   fi
47568 fi
47569 rm -f confcache
47570
47571 test "x$prefix" = xNONE && prefix=$ac_default_prefix
47572 # Let make expand exec_prefix.
47573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
47574
47575 DEFS=-DHAVE_CONFIG_H
47576
47577 ac_libobjs=
47578 ac_ltlibobjs=
47579 U=
47580 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
47581   # 1. Remove the extension, and $U if already installed.
47582   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
47583   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
47584   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
47585   #    will be set to the directory where LIBOBJS objects are built.
47586   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
47587   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
47588 done
47589 LIBOBJS=$ac_libobjs
47590
47591 LTLIBOBJS=$ac_ltlibobjs
47592
47593
47594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
47595 $as_echo_n "checking that generated files are newer than configure... " >&6; }
47596    if test -n "$am_sleep_pid"; then
47597      # Hide warnings about reused PIDs.
47598      wait $am_sleep_pid 2>/dev/null
47599    fi
47600    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
47601 $as_echo "done" >&6; }
47602  if test -n "$EXEEXT"; then
47603   am__EXEEXT_TRUE=
47604   am__EXEEXT_FALSE='#'
47605 else
47606   am__EXEEXT_TRUE='#'
47607   am__EXEEXT_FALSE=
47608 fi
47609
47610 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
47611   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
47612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47613 fi
47614 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
47615   as_fn_error $? "conditional \"AMDEP\" was never defined.
47616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47617 fi
47618 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
47619   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
47620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47621 fi
47622 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
47623   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
47624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47625 fi
47626 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
47627   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
47628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47629 fi
47630 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
47631   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
47632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47633 fi
47634 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
47635   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
47636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47637 fi
47638 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
47639   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
47640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47641 fi
47642 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
47643   as_fn_error $? "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
47644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47645 fi
47646 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
47647   as_fn_error $? "conditional \"GL_GENERATE_GLOB_H\" was never defined.
47648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47649 fi
47650 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
47651   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
47652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47653 fi
47654 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
47655   as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
47656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47657 fi
47658 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
47659   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
47660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47661 fi
47662 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
47663   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
47664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47665 fi
47666 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
47667   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
47668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47669 fi
47670 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
47671   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
47672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47673 fi
47674 if test -z "${GL_GENERATE_SYSEXITS_H_TRUE}" && test -z "${GL_GENERATE_SYSEXITS_H_FALSE}"; then
47675   as_fn_error $? "conditional \"GL_GENERATE_SYSEXITS_H\" was never defined.
47676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47677 fi
47678
47679
47680     gl_libobjs=
47681     gl_ltlibobjs=
47682     if test -n "$gl_LIBOBJS"; then
47683       # Remove the extension.
47684       sed_drop_objext='s/\.o$//;s/\.obj$//'
47685       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
47686         gl_libobjs="$gl_libobjs $i.$ac_objext"
47687         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
47688       done
47689     fi
47690     gl_LIBOBJS=$gl_libobjs
47691
47692     gl_LTLIBOBJS=$gl_ltlibobjs
47693
47694
47695
47696     gltests_libobjs=
47697     gltests_ltlibobjs=
47698     if test -n "$gltests_LIBOBJS"; then
47699       # Remove the extension.
47700       sed_drop_objext='s/\.o$//;s/\.obj$//'
47701       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
47702         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
47703         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
47704       done
47705     fi
47706     gltests_LIBOBJS=$gltests_libobjs
47707
47708     gltests_LTLIBOBJS=$gltests_ltlibobjs
47709
47710
47711 if test -z "${PO4A_TRUE}" && test -z "${PO4A_FALSE}"; then
47712   as_fn_error $? "conditional \"PO4A\" was never defined.
47713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47714 fi
47715 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
47716   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
47717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47718 fi
47719 if test -z "${HAVE_GNULIB_PO_TRUE}" && test -z "${HAVE_GNULIB_PO_FALSE}"; then
47720   as_fn_error $? "conditional \"HAVE_GNULIB_PO\" was never defined.
47721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47722 fi
47723
47724 : "${CONFIG_STATUS=./config.status}"
47725 ac_write_fail=0
47726 ac_clean_files_save=$ac_clean_files
47727 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
47728 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
47729 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
47730 as_write_fail=0
47731 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
47732 #! $SHELL
47733 # Generated by $as_me.
47734 # Run this file to recreate the current configuration.
47735 # Compiler output produced by configure, useful for debugging
47736 # configure, is in config.log if it exists.
47737
47738 debug=false
47739 ac_cs_recheck=false
47740 ac_cs_silent=false
47741
47742 SHELL=\${CONFIG_SHELL-$SHELL}
47743 export SHELL
47744 _ASEOF
47745 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
47746 ## -------------------- ##
47747 ## M4sh Initialization. ##
47748 ## -------------------- ##
47749
47750 # Be more Bourne compatible
47751 DUALCASE=1; export DUALCASE # for MKS sh
47752 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
47753   emulate sh
47754   NULLCMD=:
47755   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47756   # is contrary to our usage.  Disable this feature.
47757   alias -g '${1+"$@"}'='"$@"'
47758   setopt NO_GLOB_SUBST
47759 else
47760   case `(set -o) 2>/dev/null` in #(
47761   *posix*) :
47762     set -o posix ;; #(
47763   *) :
47764      ;;
47765 esac
47766 fi
47767
47768
47769 as_nl='
47770 '
47771 export as_nl
47772 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47773 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47774 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47775 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47776 # Prefer a ksh shell builtin over an external printf program on Solaris,
47777 # but without wasting forks for bash or zsh.
47778 if test -z "$BASH_VERSION$ZSH_VERSION" \
47779     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47780   as_echo='print -r --'
47781   as_echo_n='print -rn --'
47782 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47783   as_echo='printf %s\n'
47784   as_echo_n='printf %s'
47785 else
47786   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
47787     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
47788     as_echo_n='/usr/ucb/echo -n'
47789   else
47790     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
47791     as_echo_n_body='eval
47792       arg=$1;
47793       case $arg in #(
47794       *"$as_nl"*)
47795         expr "X$arg" : "X\\(.*\\)$as_nl";
47796         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
47797       esac;
47798       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
47799     '
47800     export as_echo_n_body
47801     as_echo_n='sh -c $as_echo_n_body as_echo'
47802   fi
47803   export as_echo_body
47804   as_echo='sh -c $as_echo_body as_echo'
47805 fi
47806
47807 # The user is always right.
47808 if test "${PATH_SEPARATOR+set}" != set; then
47809   PATH_SEPARATOR=:
47810   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
47811     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
47812       PATH_SEPARATOR=';'
47813   }
47814 fi
47815
47816
47817 # IFS
47818 # We need space, tab and new line, in precisely that order.  Quoting is
47819 # there to prevent editors from complaining about space-tab.
47820 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
47821 # splitting by setting IFS to empty value.)
47822 IFS=" ""        $as_nl"
47823
47824 # Find who we are.  Look in the path if we contain no directory separator.
47825 as_myself=
47826 case $0 in #((
47827   *[\\/]* ) as_myself=$0 ;;
47828   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47829 for as_dir in $PATH
47830 do
47831   IFS=$as_save_IFS
47832   test -z "$as_dir" && as_dir=.
47833     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
47834   done
47835 IFS=$as_save_IFS
47836
47837      ;;
47838 esac
47839 # We did not find ourselves, most probably we were run as `sh COMMAND'
47840 # in which case we are not to be found in the path.
47841 if test "x$as_myself" = x; then
47842   as_myself=$0
47843 fi
47844 if test ! -f "$as_myself"; then
47845   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
47846   exit 1
47847 fi
47848
47849 # Unset variables that we do not need and which cause bugs (e.g. in
47850 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
47851 # suppresses any "Segmentation fault" message there.  '((' could
47852 # trigger a bug in pdksh 5.2.14.
47853 for as_var in BASH_ENV ENV MAIL MAILPATH
47854 do eval test x\${$as_var+set} = xset \
47855   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
47856 done
47857 PS1='$ '
47858 PS2='> '
47859 PS4='+ '
47860
47861 # NLS nuisances.
47862 LC_ALL=C
47863 export LC_ALL
47864 LANGUAGE=C
47865 export LANGUAGE
47866
47867 # CDPATH.
47868 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
47869
47870
47871 # as_fn_error STATUS ERROR [LINENO LOG_FD]
47872 # ----------------------------------------
47873 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
47874 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
47875 # script with STATUS, using 1 if that was 0.
47876 as_fn_error ()
47877 {
47878   as_status=$1; test $as_status -eq 0 && as_status=1
47879   if test "$4"; then
47880     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
47881     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
47882   fi
47883   $as_echo "$as_me: error: $2" >&2
47884   as_fn_exit $as_status
47885 } # as_fn_error
47886
47887
47888 # as_fn_set_status STATUS
47889 # -----------------------
47890 # Set $? to STATUS, without forking.
47891 as_fn_set_status ()
47892 {
47893   return $1
47894 } # as_fn_set_status
47895
47896 # as_fn_exit STATUS
47897 # -----------------
47898 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
47899 as_fn_exit ()
47900 {
47901   set +e
47902   as_fn_set_status $1
47903   exit $1
47904 } # as_fn_exit
47905
47906 # as_fn_unset VAR
47907 # ---------------
47908 # Portably unset VAR.
47909 as_fn_unset ()
47910 {
47911   { eval $1=; unset $1;}
47912 }
47913 as_unset=as_fn_unset
47914 # as_fn_append VAR VALUE
47915 # ----------------------
47916 # Append the text in VALUE to the end of the definition contained in VAR. Take
47917 # advantage of any shell optimizations that allow amortized linear growth over
47918 # repeated appends, instead of the typical quadratic growth present in naive
47919 # implementations.
47920 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
47921   eval 'as_fn_append ()
47922   {
47923     eval $1+=\$2
47924   }'
47925 else
47926   as_fn_append ()
47927   {
47928     eval $1=\$$1\$2
47929   }
47930 fi # as_fn_append
47931
47932 # as_fn_arith ARG...
47933 # ------------------
47934 # Perform arithmetic evaluation on the ARGs, and store the result in the
47935 # global $as_val. Take advantage of shells that can avoid forks. The arguments
47936 # must be portable across $(()) and expr.
47937 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
47938   eval 'as_fn_arith ()
47939   {
47940     as_val=$(( $* ))
47941   }'
47942 else
47943   as_fn_arith ()
47944   {
47945     as_val=`expr "$@" || test $? -eq 1`
47946   }
47947 fi # as_fn_arith
47948
47949
47950 if expr a : '\(a\)' >/dev/null 2>&1 &&
47951    test "X`expr 00001 : '.*\(...\)'`" = X001; then
47952   as_expr=expr
47953 else
47954   as_expr=false
47955 fi
47956
47957 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
47958   as_basename=basename
47959 else
47960   as_basename=false
47961 fi
47962
47963 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
47964   as_dirname=dirname
47965 else
47966   as_dirname=false
47967 fi
47968
47969 as_me=`$as_basename -- "$0" ||
47970 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
47971          X"$0" : 'X\(//\)$' \| \
47972          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
47973 $as_echo X/"$0" |
47974     sed '/^.*\/\([^/][^/]*\)\/*$/{
47975             s//\1/
47976             q
47977           }
47978           /^X\/\(\/\/\)$/{
47979             s//\1/
47980             q
47981           }
47982           /^X\/\(\/\).*/{
47983             s//\1/
47984             q
47985           }
47986           s/.*/./; q'`
47987
47988 # Avoid depending upon Character Ranges.
47989 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
47990 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
47991 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
47992 as_cr_digits='0123456789'
47993 as_cr_alnum=$as_cr_Letters$as_cr_digits
47994
47995 ECHO_C= ECHO_N= ECHO_T=
47996 case `echo -n x` in #(((((
47997 -n*)
47998   case `echo 'xy\c'` in
47999   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
48000   xy)  ECHO_C='\c';;
48001   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
48002        ECHO_T=' ';;
48003   esac;;
48004 *)
48005   ECHO_N='-n';;
48006 esac
48007
48008 rm -f conf$$ conf$$.exe conf$$.file
48009 if test -d conf$$.dir; then
48010   rm -f conf$$.dir/conf$$.file
48011 else
48012   rm -f conf$$.dir
48013   mkdir conf$$.dir 2>/dev/null
48014 fi
48015 if (echo >conf$$.file) 2>/dev/null; then
48016   if ln -s conf$$.file conf$$ 2>/dev/null; then
48017     as_ln_s='ln -s'
48018     # ... but there are two gotchas:
48019     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
48020     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
48021     # In both cases, we have to default to `cp -pR'.
48022     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
48023       as_ln_s='cp -pR'
48024   elif ln conf$$.file conf$$ 2>/dev/null; then
48025     as_ln_s=ln
48026   else
48027     as_ln_s='cp -pR'
48028   fi
48029 else
48030   as_ln_s='cp -pR'
48031 fi
48032 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
48033 rmdir conf$$.dir 2>/dev/null
48034
48035
48036 # as_fn_mkdir_p
48037 # -------------
48038 # Create "$as_dir" as a directory, including parents if necessary.
48039 as_fn_mkdir_p ()
48040 {
48041
48042   case $as_dir in #(
48043   -*) as_dir=./$as_dir;;
48044   esac
48045   test -d "$as_dir" || eval $as_mkdir_p || {
48046     as_dirs=
48047     while :; do
48048       case $as_dir in #(
48049       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48050       *) as_qdir=$as_dir;;
48051       esac
48052       as_dirs="'$as_qdir' $as_dirs"
48053       as_dir=`$as_dirname -- "$as_dir" ||
48054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48055          X"$as_dir" : 'X\(//\)[^/]' \| \
48056          X"$as_dir" : 'X\(//\)$' \| \
48057          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48058 $as_echo X"$as_dir" |
48059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48060             s//\1/
48061             q
48062           }
48063           /^X\(\/\/\)[^/].*/{
48064             s//\1/
48065             q
48066           }
48067           /^X\(\/\/\)$/{
48068             s//\1/
48069             q
48070           }
48071           /^X\(\/\).*/{
48072             s//\1/
48073             q
48074           }
48075           s/.*/./; q'`
48076       test -d "$as_dir" && break
48077     done
48078     test -z "$as_dirs" || eval "mkdir $as_dirs"
48079   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
48080
48081
48082 } # as_fn_mkdir_p
48083 if mkdir -p . 2>/dev/null; then
48084   as_mkdir_p='mkdir -p "$as_dir"'
48085 else
48086   test -d ./-p && rmdir ./-p
48087   as_mkdir_p=false
48088 fi
48089
48090
48091 # as_fn_executable_p FILE
48092 # -----------------------
48093 # Test if FILE is an executable regular file.
48094 as_fn_executable_p ()
48095 {
48096   test -f "$1" && test -x "$1"
48097 } # as_fn_executable_p
48098 as_test_x='test -x'
48099 as_executable_p=as_fn_executable_p
48100
48101 # Sed expression to map a string onto a valid CPP name.
48102 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
48103
48104 # Sed expression to map a string onto a valid variable name.
48105 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
48106
48107
48108 exec 6>&1
48109 ## ----------------------------------- ##
48110 ## Main body of $CONFIG_STATUS script. ##
48111 ## ----------------------------------- ##
48112 _ASEOF
48113 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
48114
48115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48116 # Save the log message, to keep $0 and so on meaningful, and to
48117 # report actual input values of CONFIG_FILES etc. instead of their
48118 # values after options handling.
48119 ac_log="
48120 This file was extended by man-db $as_me 2.8.3, which was
48121 generated by GNU Autoconf 2.69.  Invocation command line was
48122
48123   CONFIG_FILES    = $CONFIG_FILES
48124   CONFIG_HEADERS  = $CONFIG_HEADERS
48125   CONFIG_LINKS    = $CONFIG_LINKS
48126   CONFIG_COMMANDS = $CONFIG_COMMANDS
48127   $ $0 $@
48128
48129 on `(hostname || uname -n) 2>/dev/null | sed 1q`
48130 "
48131
48132 _ACEOF
48133
48134 case $ac_config_files in *"
48135 "*) set x $ac_config_files; shift; ac_config_files=$*;;
48136 esac
48137
48138 case $ac_config_headers in *"
48139 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
48140 esac
48141
48142
48143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48144 # Files that config.status was made for.
48145 config_files="$ac_config_files"
48146 config_headers="$ac_config_headers"
48147 config_commands="$ac_config_commands"
48148
48149 _ACEOF
48150
48151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48152 ac_cs_usage="\
48153 \`$as_me' instantiates files and other configuration actions
48154 from templates according to the current configuration.  Unless the files
48155 and actions are specified as TAGs, all are instantiated by default.
48156
48157 Usage: $0 [OPTION]... [TAG]...
48158
48159   -h, --help       print this help, then exit
48160   -V, --version    print version number and configuration settings, then exit
48161       --config     print configuration, then exit
48162   -q, --quiet, --silent
48163                    do not print progress messages
48164   -d, --debug      don't remove temporary files
48165       --recheck    update $as_me by reconfiguring in the same conditions
48166       --file=FILE[:TEMPLATE]
48167                    instantiate the configuration file FILE
48168       --header=FILE[:TEMPLATE]
48169                    instantiate the configuration header FILE
48170
48171 Configuration files:
48172 $config_files
48173
48174 Configuration headers:
48175 $config_headers
48176
48177 Configuration commands:
48178 $config_commands
48179
48180 Report bugs to <cjwatson@debian.org>."
48181
48182 _ACEOF
48183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48184 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
48185 ac_cs_version="\\
48186 man-db config.status 2.8.3
48187 configured by $0, generated by GNU Autoconf 2.69,
48188   with options \\"\$ac_cs_config\\"
48189
48190 Copyright (C) 2012 Free Software Foundation, Inc.
48191 This config.status script is free software; the Free Software Foundation
48192 gives unlimited permission to copy, distribute and modify it."
48193
48194 ac_pwd='$ac_pwd'
48195 srcdir='$srcdir'
48196 INSTALL='$INSTALL'
48197 MKDIR_P='$MKDIR_P'
48198 AWK='$AWK'
48199 test -n "\$AWK" || AWK=awk
48200 _ACEOF
48201
48202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48203 # The default lists apply if the user does not specify any file.
48204 ac_need_defaults=:
48205 while test $# != 0
48206 do
48207   case $1 in
48208   --*=?*)
48209     ac_option=`expr "X$1" : 'X\([^=]*\)='`
48210     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
48211     ac_shift=:
48212     ;;
48213   --*=)
48214     ac_option=`expr "X$1" : 'X\([^=]*\)='`
48215     ac_optarg=
48216     ac_shift=:
48217     ;;
48218   *)
48219     ac_option=$1
48220     ac_optarg=$2
48221     ac_shift=shift
48222     ;;
48223   esac
48224
48225   case $ac_option in
48226   # Handling of the options.
48227   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48228     ac_cs_recheck=: ;;
48229   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
48230     $as_echo "$ac_cs_version"; exit ;;
48231   --config | --confi | --conf | --con | --co | --c )
48232     $as_echo "$ac_cs_config"; exit ;;
48233   --debug | --debu | --deb | --de | --d | -d )
48234     debug=: ;;
48235   --file | --fil | --fi | --f )
48236     $ac_shift
48237     case $ac_optarg in
48238     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
48239     '') as_fn_error $? "missing file argument" ;;
48240     esac
48241     as_fn_append CONFIG_FILES " '$ac_optarg'"
48242     ac_need_defaults=false;;
48243   --header | --heade | --head | --hea )
48244     $ac_shift
48245     case $ac_optarg in
48246     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
48247     esac
48248     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
48249     ac_need_defaults=false;;
48250   --he | --h)
48251     # Conflict between --help and --header
48252     as_fn_error $? "ambiguous option: \`$1'
48253 Try \`$0 --help' for more information.";;
48254   --help | --hel | -h )
48255     $as_echo "$ac_cs_usage"; exit ;;
48256   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48257   | -silent | --silent | --silen | --sile | --sil | --si | --s)
48258     ac_cs_silent=: ;;
48259
48260   # This is an error.
48261   -*) as_fn_error $? "unrecognized option: \`$1'
48262 Try \`$0 --help' for more information." ;;
48263
48264   *) as_fn_append ac_config_targets " $1"
48265      ac_need_defaults=false ;;
48266
48267   esac
48268   shift
48269 done
48270
48271 ac_configure_extra_args=
48272
48273 if $ac_cs_silent; then
48274   exec 6>/dev/null
48275   ac_configure_extra_args="$ac_configure_extra_args --silent"
48276 fi
48277
48278 _ACEOF
48279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48280 if \$ac_cs_recheck; then
48281   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48282   shift
48283   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
48284   CONFIG_SHELL='$SHELL'
48285   export CONFIG_SHELL
48286   exec "\$@"
48287 fi
48288
48289 _ACEOF
48290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48291 exec 5>>config.log
48292 {
48293   echo
48294   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48295 ## Running $as_me. ##
48296 _ASBOX
48297   $as_echo "$ac_log"
48298 } >&5
48299
48300 _ACEOF
48301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48302 #
48303 # INIT-COMMANDS
48304 #
48305 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
48306
48307
48308 # The HP-UX ksh and POSIX shell print the target directory to stdout
48309 # if CDPATH is set.
48310 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
48311
48312 sed_quote_subst='$sed_quote_subst'
48313 double_quote_subst='$double_quote_subst'
48314 delay_variable_subst='$delay_variable_subst'
48315 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
48316 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
48317 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
48318 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
48319 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
48320 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
48321 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
48322 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
48323 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
48324 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
48325 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
48326 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
48327 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
48328 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
48329 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
48330 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
48331 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
48332 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
48333 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
48334 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
48335 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
48336 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
48337 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
48338 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
48339 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
48340 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
48341 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
48342 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
48343 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
48344 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
48345 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
48346 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
48347 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
48348 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
48349 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
48350 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
48351 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
48352 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
48353 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
48354 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
48355 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
48356 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
48357 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
48358 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
48359 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
48360 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
48361 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
48362 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
48363 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
48364 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
48365 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
48366 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
48367 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
48368 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
48369 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
48370 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
48371 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
48372 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
48373 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
48374 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
48375 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
48376 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
48377 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
48378 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
48379 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
48380 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
48381 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
48382 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
48383 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
48384 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
48385 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
48386 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
48387 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
48388 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
48389 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
48390 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
48391 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
48392 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
48393 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
48394 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
48395 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
48396 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
48397 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
48398 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
48399 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
48400 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
48401 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
48402 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
48403 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
48404 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
48405 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
48406 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
48407 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
48408 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
48409 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
48410 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
48411 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
48412 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
48413 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
48414 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
48415 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
48416 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
48417 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
48418 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
48419 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
48420 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
48421 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
48422 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
48423 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
48424 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
48425 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
48426 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
48427 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
48428 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
48429 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
48430 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
48431 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
48432 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
48433 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
48434 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
48435 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
48436 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
48437 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
48438 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
48439 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
48440 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
48441 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
48442 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
48443 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
48444 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
48445 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
48446 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
48447 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
48448 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
48449 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
48450
48451 LTCC='$LTCC'
48452 LTCFLAGS='$LTCFLAGS'
48453 compiler='$compiler_DEFAULT'
48454
48455 # A function that is used when there is no print builtin or printf.
48456 func_fallback_echo ()
48457 {
48458   eval 'cat <<_LTECHO_EOF
48459 \$1
48460 _LTECHO_EOF'
48461 }
48462
48463 # Quote evaled strings.
48464 for var in SHELL \
48465 ECHO \
48466 PATH_SEPARATOR \
48467 SED \
48468 GREP \
48469 EGREP \
48470 FGREP \
48471 LD \
48472 NM \
48473 LN_S \
48474 lt_SP2NL \
48475 lt_NL2SP \
48476 reload_flag \
48477 OBJDUMP \
48478 deplibs_check_method \
48479 file_magic_cmd \
48480 file_magic_glob \
48481 want_nocaseglob \
48482 DLLTOOL \
48483 sharedlib_from_linklib_cmd \
48484 AR \
48485 AR_FLAGS \
48486 archiver_list_spec \
48487 STRIP \
48488 RANLIB \
48489 CC \
48490 CFLAGS \
48491 compiler \
48492 lt_cv_sys_global_symbol_pipe \
48493 lt_cv_sys_global_symbol_to_cdecl \
48494 lt_cv_sys_global_symbol_to_import \
48495 lt_cv_sys_global_symbol_to_c_name_address \
48496 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
48497 lt_cv_nm_interface \
48498 nm_file_list_spec \
48499 lt_cv_truncate_bin \
48500 lt_prog_compiler_no_builtin_flag \
48501 lt_prog_compiler_pic \
48502 lt_prog_compiler_wl \
48503 lt_prog_compiler_static \
48504 lt_cv_prog_compiler_c_o \
48505 need_locks \
48506 MANIFEST_TOOL \
48507 DSYMUTIL \
48508 NMEDIT \
48509 LIPO \
48510 OTOOL \
48511 OTOOL64 \
48512 shrext_cmds \
48513 export_dynamic_flag_spec \
48514 whole_archive_flag_spec \
48515 compiler_needs_object \
48516 with_gnu_ld \
48517 allow_undefined_flag \
48518 no_undefined_flag \
48519 hardcode_libdir_flag_spec \
48520 hardcode_libdir_separator \
48521 exclude_expsyms \
48522 include_expsyms \
48523 file_list_spec \
48524 variables_saved_for_relink \
48525 libname_spec \
48526 library_names_spec \
48527 soname_spec \
48528 install_override_mode \
48529 finish_eval \
48530 old_striplib \
48531 striplib; do
48532     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
48533     *[\\\\\\\`\\"\\\$]*)
48534       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
48535       ;;
48536     *)
48537       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
48538       ;;
48539     esac
48540 done
48541
48542 # Double-quote double-evaled strings.
48543 for var in reload_cmds \
48544 old_postinstall_cmds \
48545 old_postuninstall_cmds \
48546 old_archive_cmds \
48547 extract_expsyms_cmds \
48548 old_archive_from_new_cmds \
48549 old_archive_from_expsyms_cmds \
48550 archive_cmds \
48551 archive_expsym_cmds \
48552 module_cmds \
48553 module_expsym_cmds \
48554 export_symbols_cmds \
48555 prelink_cmds \
48556 postlink_cmds \
48557 postinstall_cmds \
48558 postuninstall_cmds \
48559 finish_cmds \
48560 sys_lib_search_path_spec \
48561 configure_time_dlsearch_path \
48562 configure_time_lt_sys_library_path; do
48563     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
48564     *[\\\\\\\`\\"\\\$]*)
48565       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
48566       ;;
48567     *)
48568       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
48569       ;;
48570     esac
48571 done
48572
48573 ac_aux_dir='$ac_aux_dir'
48574
48575 # See if we are running on zsh, and set the options that allow our
48576 # commands through without removal of \ escapes INIT.
48577 if test -n "\${ZSH_VERSION+set}"; then
48578    setopt NO_GLOB_SUBST
48579 fi
48580
48581
48582     PACKAGE='$PACKAGE'
48583     VERSION='$VERSION'
48584     RM='$RM'
48585     ofile='$ofile'
48586
48587
48588
48589 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
48590     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
48591     # from automake < 1.5.
48592     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
48593     # Capture the value of LINGUAS because we need it to compute CATALOGS.
48594     LINGUAS="${LINGUAS-%UNSET%}"
48595
48596
48597 _ACEOF
48598
48599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48600
48601 # Handling of arguments.
48602 for ac_config_target in $ac_config_targets
48603 do
48604   case $ac_config_target in
48605     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
48606     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
48607     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
48608     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
48609     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48610     "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
48611     "init/Makefile") CONFIG_FILES="$CONFIG_FILES init/Makefile" ;;
48612     "init/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES init/systemd/Makefile" ;;
48613     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
48614     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
48615     "src/man_db.conf") CONFIG_FILES="$CONFIG_FILES src/man_db.conf" ;;
48616     "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
48617     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
48618     "man/replace.sin") CONFIG_FILES="$CONFIG_FILES man/replace.sin" ;;
48619     "man/po4a/Makefile") CONFIG_FILES="$CONFIG_FILES man/po4a/Makefile" ;;
48620     "man/da/Makefile") CONFIG_FILES="$CONFIG_FILES man/da/Makefile" ;;
48621     "man/de/Makefile") CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;;
48622     "man/es/Makefile") CONFIG_FILES="$CONFIG_FILES man/es/Makefile" ;;
48623     "man/fr/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;;
48624     "man/id/Makefile") CONFIG_FILES="$CONFIG_FILES man/id/Makefile" ;;
48625     "man/it/Makefile") CONFIG_FILES="$CONFIG_FILES man/it/Makefile" ;;
48626     "man/ja/Makefile") CONFIG_FILES="$CONFIG_FILES man/ja/Makefile" ;;
48627     "man/nl/Makefile") CONFIG_FILES="$CONFIG_FILES man/nl/Makefile" ;;
48628     "man/pl/Makefile") CONFIG_FILES="$CONFIG_FILES man/pl/Makefile" ;;
48629     "man/pt_BR/Makefile") CONFIG_FILES="$CONFIG_FILES man/pt_BR/Makefile" ;;
48630     "man/ru/Makefile") CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;;
48631     "man/sr/Makefile") CONFIG_FILES="$CONFIG_FILES man/sr/Makefile" ;;
48632     "man/sv/Makefile") CONFIG_FILES="$CONFIG_FILES man/sv/Makefile" ;;
48633     "man/tr/Makefile") CONFIG_FILES="$CONFIG_FILES man/tr/Makefile" ;;
48634     "man/zh_CN/Makefile") CONFIG_FILES="$CONFIG_FILES man/zh_CN/Makefile" ;;
48635     "manual/Makefile") CONFIG_FILES="$CONFIG_FILES manual/Makefile" ;;
48636     "libdb/Makefile") CONFIG_FILES="$CONFIG_FILES libdb/Makefile" ;;
48637     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
48638     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
48639     "include/comp_src.h") CONFIG_FILES="$CONFIG_FILES include/comp_src.h" ;;
48640     "include/manconfig.h") CONFIG_FILES="$CONFIG_FILES include/manconfig.h" ;;
48641     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
48642     "gnulib/po/Makefile.in") CONFIG_FILES="$CONFIG_FILES gnulib/po/Makefile.in" ;;
48643
48644   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
48645   esac
48646 done
48647
48648
48649 # If the user did not use the arguments to specify the items to instantiate,
48650 # then the envvar interface is used.  Set only those that are not.
48651 # We use the long form for the default assignment because of an extremely
48652 # bizarre bug on SunOS 4.1.3.
48653 if $ac_need_defaults; then
48654   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48655   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48656   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48657 fi
48658
48659 # Have a temporary directory for convenience.  Make it in the build tree
48660 # simply because there is no reason against having it here, and in addition,
48661 # creating and moving files from /tmp can sometimes cause problems.
48662 # Hook for its removal unless debugging.
48663 # Note that there is a small window in which the directory will not be cleaned:
48664 # after its creation but before its name has been assigned to `$tmp'.
48665 $debug ||
48666 {
48667   tmp= ac_tmp=
48668   trap 'exit_status=$?
48669   : "${ac_tmp:=$tmp}"
48670   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
48671 ' 0
48672   trap 'as_fn_exit 1' 1 2 13 15
48673 }
48674 # Create a (secure) tmp directory for tmp files.
48675
48676 {
48677   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
48678   test -d "$tmp"
48679 }  ||
48680 {
48681   tmp=./conf$$-$RANDOM
48682   (umask 077 && mkdir "$tmp")
48683 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
48684 ac_tmp=$tmp
48685
48686 # Set up the scripts for CONFIG_FILES section.
48687 # No need to generate them if there are no CONFIG_FILES.
48688 # This happens for instance with `./config.status config.h'.
48689 if test -n "$CONFIG_FILES"; then
48690
48691
48692 ac_cr=`echo X | tr X '\015'`
48693 # On cygwin, bash can eat \r inside `` if the user requested igncr.
48694 # But we know of no other shell where ac_cr would be empty at this
48695 # point, so we can use a bashism as a fallback.
48696 if test "x$ac_cr" = x; then
48697   eval ac_cr=\$\'\\r\'
48698 fi
48699 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
48700 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
48701   ac_cs_awk_cr='\\r'
48702 else
48703   ac_cs_awk_cr=$ac_cr
48704 fi
48705
48706 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
48707 _ACEOF
48708
48709
48710 {
48711   echo "cat >conf$$subs.awk <<_ACEOF" &&
48712   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
48713   echo "_ACEOF"
48714 } >conf$$subs.sh ||
48715   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
48716 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
48717 ac_delim='%!_!# '
48718 for ac_last_try in false false false false false :; do
48719   . ./conf$$subs.sh ||
48720     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
48721
48722   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
48723   if test $ac_delim_n = $ac_delim_num; then
48724     break
48725   elif $ac_last_try; then
48726     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
48727   else
48728     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48729   fi
48730 done
48731 rm -f conf$$subs.sh
48732
48733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48734 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
48735 _ACEOF
48736 sed -n '
48737 h
48738 s/^/S["/; s/!.*/"]=/
48739 p
48740 g
48741 s/^[^!]*!//
48742 :repl
48743 t repl
48744 s/'"$ac_delim"'$//
48745 t delim
48746 :nl
48747 h
48748 s/\(.\{148\}\)..*/\1/
48749 t more1
48750 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
48751 p
48752 n
48753 b repl
48754 :more1
48755 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48756 p
48757 g
48758 s/.\{148\}//
48759 t nl
48760 :delim
48761 h
48762 s/\(.\{148\}\)..*/\1/
48763 t more2
48764 s/["\\]/\\&/g; s/^/"/; s/$/"/
48765 p
48766 b
48767 :more2
48768 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48769 p
48770 g
48771 s/.\{148\}//
48772 t delim
48773 ' <conf$$subs.awk | sed '
48774 /^[^""]/{
48775   N
48776   s/\n//
48777 }
48778 ' >>$CONFIG_STATUS || ac_write_fail=1
48779 rm -f conf$$subs.awk
48780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48781 _ACAWK
48782 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
48783   for (key in S) S_is_set[key] = 1
48784   FS = "\a"
48785
48786 }
48787 {
48788   line = $ 0
48789   nfields = split(line, field, "@")
48790   substed = 0
48791   len = length(field[1])
48792   for (i = 2; i < nfields; i++) {
48793     key = field[i]
48794     keylen = length(key)
48795     if (S_is_set[key]) {
48796       value = S[key]
48797       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
48798       len += length(value) + length(field[++i])
48799       substed = 1
48800     } else
48801       len += 1 + keylen
48802   }
48803
48804   print line
48805 }
48806
48807 _ACAWK
48808 _ACEOF
48809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48810 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
48811   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
48812 else
48813   cat
48814 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
48815   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
48816 _ACEOF
48817
48818 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
48819 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
48820 # trailing colons and then remove the whole line if VPATH becomes empty
48821 # (actually we leave an empty line to preserve line numbers).
48822 if test "x$srcdir" = x.; then
48823   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
48824 h
48825 s///
48826 s/^/:/
48827 s/[      ]*$/:/
48828 s/:\$(srcdir):/:/g
48829 s/:\${srcdir}:/:/g
48830 s/:@srcdir@:/:/g
48831 s/^:*//
48832 s/:*$//
48833 x
48834 s/\(=[   ]*\).*/\1/
48835 G
48836 s/\n//
48837 s/^[^=]*=[       ]*$//
48838 }'
48839 fi
48840
48841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48842 fi # test -n "$CONFIG_FILES"
48843
48844 # Set up the scripts for CONFIG_HEADERS section.
48845 # No need to generate them if there are no CONFIG_HEADERS.
48846 # This happens for instance with `./config.status Makefile'.
48847 if test -n "$CONFIG_HEADERS"; then
48848 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
48849 BEGIN {
48850 _ACEOF
48851
48852 # Transform confdefs.h into an awk script `defines.awk', embedded as
48853 # here-document in config.status, that substitutes the proper values into
48854 # config.h.in to produce config.h.
48855
48856 # Create a delimiter string that does not exist in confdefs.h, to ease
48857 # handling of long lines.
48858 ac_delim='%!_!# '
48859 for ac_last_try in false false :; do
48860   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
48861   if test -z "$ac_tt"; then
48862     break
48863   elif $ac_last_try; then
48864     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
48865   else
48866     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48867   fi
48868 done
48869
48870 # For the awk script, D is an array of macro values keyed by name,
48871 # likewise P contains macro parameters if any.  Preserve backslash
48872 # newline sequences.
48873
48874 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
48875 sed -n '
48876 s/.\{148\}/&'"$ac_delim"'/g
48877 t rset
48878 :rset
48879 s/^[     ]*#[    ]*define[       ][      ]*/ /
48880 t def
48881 d
48882 :def
48883 s/\\$//
48884 t bsnl
48885 s/["\\]/\\&/g
48886 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
48887 D["\1"]=" \3"/p
48888 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
48889 d
48890 :bsnl
48891 s/["\\]/\\&/g
48892 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
48893 D["\1"]=" \3\\\\\\n"\\/p
48894 t cont
48895 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
48896 t cont
48897 d
48898 :cont
48899 n
48900 s/.\{148\}/&'"$ac_delim"'/g
48901 t clear
48902 :clear
48903 s/\\$//
48904 t bsnlc
48905 s/["\\]/\\&/g; s/^/"/; s/$/"/p
48906 d
48907 :bsnlc
48908 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
48909 b cont
48910 ' <confdefs.h | sed '
48911 s/'"$ac_delim"'/"\\\
48912 "/g' >>$CONFIG_STATUS || ac_write_fail=1
48913
48914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48915   for (key in D) D_is_set[key] = 1
48916   FS = "\a"
48917 }
48918 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
48919   line = \$ 0
48920   split(line, arg, " ")
48921   if (arg[1] == "#") {
48922     defundef = arg[2]
48923     mac1 = arg[3]
48924   } else {
48925     defundef = substr(arg[1], 2)
48926     mac1 = arg[2]
48927   }
48928   split(mac1, mac2, "(") #)
48929   macro = mac2[1]
48930   prefix = substr(line, 1, index(line, defundef) - 1)
48931   if (D_is_set[macro]) {
48932     # Preserve the white space surrounding the "#".
48933     print prefix "define", macro P[macro] D[macro]
48934     next
48935   } else {
48936     # Replace #undef with comments.  This is necessary, for example,
48937     # in the case of _POSIX_SOURCE, which is predefined and required
48938     # on some systems where configure will not decide to define it.
48939     if (defundef == "undef") {
48940       print "/*", prefix defundef, macro, "*/"
48941       next
48942     }
48943   }
48944 }
48945 { print }
48946 _ACAWK
48947 _ACEOF
48948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48949   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
48950 fi # test -n "$CONFIG_HEADERS"
48951
48952
48953 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
48954 shift
48955 for ac_tag
48956 do
48957   case $ac_tag in
48958   :[FHLC]) ac_mode=$ac_tag; continue;;
48959   esac
48960   case $ac_mode$ac_tag in
48961   :[FHL]*:*);;
48962   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
48963   :[FH]-) ac_tag=-:-;;
48964   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
48965   esac
48966   ac_save_IFS=$IFS
48967   IFS=:
48968   set x $ac_tag
48969   IFS=$ac_save_IFS
48970   shift
48971   ac_file=$1
48972   shift
48973
48974   case $ac_mode in
48975   :L) ac_source=$1;;
48976   :[FH])
48977     ac_file_inputs=
48978     for ac_f
48979     do
48980       case $ac_f in
48981       -) ac_f="$ac_tmp/stdin";;
48982       *) # Look for the file first in the build tree, then in the source tree
48983          # (if the path is not absolute).  The absolute path cannot be DOS-style,
48984          # because $ac_f cannot contain `:'.
48985          test -f "$ac_f" ||
48986            case $ac_f in
48987            [\\/$]*) false;;
48988            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
48989            esac ||
48990            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
48991       esac
48992       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
48993       as_fn_append ac_file_inputs " '$ac_f'"
48994     done
48995
48996     # Let's still pretend it is `configure' which instantiates (i.e., don't
48997     # use $as_me), people would be surprised to read:
48998     #    /* config.h.  Generated by config.status.  */
48999     configure_input='Generated from '`
49000           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
49001         `' by configure.'
49002     if test x"$ac_file" != x-; then
49003       configure_input="$ac_file.  $configure_input"
49004       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
49005 $as_echo "$as_me: creating $ac_file" >&6;}
49006     fi
49007     # Neutralize special characters interpreted by sed in replacement strings.
49008     case $configure_input in #(
49009     *\&* | *\|* | *\\* )
49010        ac_sed_conf_input=`$as_echo "$configure_input" |
49011        sed 's/[\\\\&|]/\\\\&/g'`;; #(
49012     *) ac_sed_conf_input=$configure_input;;
49013     esac
49014
49015     case $ac_tag in
49016     *:-:* | *:-) cat >"$ac_tmp/stdin" \
49017       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
49018     esac
49019     ;;
49020   esac
49021
49022   ac_dir=`$as_dirname -- "$ac_file" ||
49023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49024          X"$ac_file" : 'X\(//\)[^/]' \| \
49025          X"$ac_file" : 'X\(//\)$' \| \
49026          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
49027 $as_echo X"$ac_file" |
49028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49029             s//\1/
49030             q
49031           }
49032           /^X\(\/\/\)[^/].*/{
49033             s//\1/
49034             q
49035           }
49036           /^X\(\/\/\)$/{
49037             s//\1/
49038             q
49039           }
49040           /^X\(\/\).*/{
49041             s//\1/
49042             q
49043           }
49044           s/.*/./; q'`
49045   as_dir="$ac_dir"; as_fn_mkdir_p
49046   ac_builddir=.
49047
49048 case "$ac_dir" in
49049 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
49050 *)
49051   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
49052   # A ".." for each directory in $ac_dir_suffix.
49053   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
49054   case $ac_top_builddir_sub in
49055   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
49056   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
49057   esac ;;
49058 esac
49059 ac_abs_top_builddir=$ac_pwd
49060 ac_abs_builddir=$ac_pwd$ac_dir_suffix
49061 # for backward compatibility:
49062 ac_top_builddir=$ac_top_build_prefix
49063
49064 case $srcdir in
49065   .)  # We are building in place.
49066     ac_srcdir=.
49067     ac_top_srcdir=$ac_top_builddir_sub
49068     ac_abs_top_srcdir=$ac_pwd ;;
49069   [\\/]* | ?:[\\/]* )  # Absolute name.
49070     ac_srcdir=$srcdir$ac_dir_suffix;
49071     ac_top_srcdir=$srcdir
49072     ac_abs_top_srcdir=$srcdir ;;
49073   *) # Relative name.
49074     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
49075     ac_top_srcdir=$ac_top_build_prefix$srcdir
49076     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
49077 esac
49078 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
49079
49080
49081   case $ac_mode in
49082   :F)
49083   #
49084   # CONFIG_FILE
49085   #
49086
49087   case $INSTALL in
49088   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49089   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
49090   esac
49091   ac_MKDIR_P=$MKDIR_P
49092   case $MKDIR_P in
49093   [\\/$]* | ?:[\\/]* ) ;;
49094   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
49095   esac
49096 _ACEOF
49097
49098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49099 # If the template does not know about datarootdir, expand it.
49100 # FIXME: This hack should be removed a few years after 2.60.
49101 ac_datarootdir_hack=; ac_datarootdir_seen=
49102 ac_sed_dataroot='
49103 /datarootdir/ {
49104   p
49105   q
49106 }
49107 /@datadir@/p
49108 /@docdir@/p
49109 /@infodir@/p
49110 /@localedir@/p
49111 /@mandir@/p'
49112 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
49113 *datarootdir*) ac_datarootdir_seen=yes;;
49114 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
49115   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
49116 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
49117 _ACEOF
49118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49119   ac_datarootdir_hack='
49120   s&@datadir@&$datadir&g
49121   s&@docdir@&$docdir&g
49122   s&@infodir@&$infodir&g
49123   s&@localedir@&$localedir&g
49124   s&@mandir@&$mandir&g
49125   s&\\\${datarootdir}&$datarootdir&g' ;;
49126 esac
49127 _ACEOF
49128
49129 # Neutralize VPATH when `$srcdir' = `.'.
49130 # Shell code in configure.ac might set extrasub.
49131 # FIXME: do we really want to maintain this feature?
49132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49133 ac_sed_extra="$ac_vpsub
49134 $extrasub
49135 _ACEOF
49136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49137 :t
49138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49139 s|@configure_input@|$ac_sed_conf_input|;t t
49140 s&@top_builddir@&$ac_top_builddir_sub&;t t
49141 s&@top_build_prefix@&$ac_top_build_prefix&;t t
49142 s&@srcdir@&$ac_srcdir&;t t
49143 s&@abs_srcdir@&$ac_abs_srcdir&;t t
49144 s&@top_srcdir@&$ac_top_srcdir&;t t
49145 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
49146 s&@builddir@&$ac_builddir&;t t
49147 s&@abs_builddir@&$ac_abs_builddir&;t t
49148 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
49149 s&@INSTALL@&$ac_INSTALL&;t t
49150 s&@MKDIR_P@&$ac_MKDIR_P&;t t
49151 $ac_datarootdir_hack
49152 "
49153 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
49154   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
49155
49156 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
49157   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
49158   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
49159       "$ac_tmp/out"`; test -z "$ac_out"; } &&
49160   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
49161 which seems to be undefined.  Please make sure it is defined" >&5
49162 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
49163 which seems to be undefined.  Please make sure it is defined" >&2;}
49164
49165   rm -f "$ac_tmp/stdin"
49166   case $ac_file in
49167   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
49168   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
49169   esac \
49170   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
49171  ;;
49172   :H)
49173   #
49174   # CONFIG_HEADER
49175   #
49176   if test x"$ac_file" != x-; then
49177     {
49178       $as_echo "/* $configure_input  */" \
49179       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
49180     } >"$ac_tmp/config.h" \
49181       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
49182     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
49183       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
49184 $as_echo "$as_me: $ac_file is unchanged" >&6;}
49185     else
49186       rm -f "$ac_file"
49187       mv "$ac_tmp/config.h" "$ac_file" \
49188         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
49189     fi
49190   else
49191     $as_echo "/* $configure_input  */" \
49192       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
49193       || as_fn_error $? "could not create -" "$LINENO" 5
49194   fi
49195 # Compute "$ac_file"'s index in $config_headers.
49196 _am_arg="$ac_file"
49197 _am_stamp_count=1
49198 for _am_header in $config_headers :; do
49199   case $_am_header in
49200     $_am_arg | $_am_arg:* )
49201       break ;;
49202     * )
49203       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
49204   esac
49205 done
49206 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
49207 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49208          X"$_am_arg" : 'X\(//\)[^/]' \| \
49209          X"$_am_arg" : 'X\(//\)$' \| \
49210          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
49211 $as_echo X"$_am_arg" |
49212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49213             s//\1/
49214             q
49215           }
49216           /^X\(\/\/\)[^/].*/{
49217             s//\1/
49218             q
49219           }
49220           /^X\(\/\/\)$/{
49221             s//\1/
49222             q
49223           }
49224           /^X\(\/\).*/{
49225             s//\1/
49226             q
49227           }
49228           s/.*/./; q'`/stamp-h$_am_stamp_count
49229  ;;
49230
49231   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
49232 $as_echo "$as_me: executing $ac_file commands" >&6;}
49233  ;;
49234   esac
49235
49236
49237   case $ac_file$ac_mode in
49238     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
49239   # Older Autoconf quotes --file arguments for eval, but not when files
49240   # are listed without --file.  Let's play safe and only enable the eval
49241   # if we detect the quoting.
49242   case $CONFIG_FILES in
49243   *\'*) eval set x "$CONFIG_FILES" ;;
49244   *)   set x $CONFIG_FILES ;;
49245   esac
49246   shift
49247   for mf
49248   do
49249     # Strip MF so we end up with the name of the file.
49250     mf=`echo "$mf" | sed -e 's/:.*$//'`
49251     # Check whether this is an Automake generated Makefile or not.
49252     # We used to match only the files named 'Makefile.in', but
49253     # some people rename them; so instead we look at the file content.
49254     # Grep'ing the first line is not enough: some people post-process
49255     # each Makefile.in and add a new line on top of each file to say so.
49256     # Grep'ing the whole file is not good either: AIX grep has a line
49257     # limit of 2048, but all sed's we know have understand at least 4000.
49258     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
49259       dirpart=`$as_dirname -- "$mf" ||
49260 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49261          X"$mf" : 'X\(//\)[^/]' \| \
49262          X"$mf" : 'X\(//\)$' \| \
49263          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
49264 $as_echo X"$mf" |
49265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49266             s//\1/
49267             q
49268           }
49269           /^X\(\/\/\)[^/].*/{
49270             s//\1/
49271             q
49272           }
49273           /^X\(\/\/\)$/{
49274             s//\1/
49275             q
49276           }
49277           /^X\(\/\).*/{
49278             s//\1/
49279             q
49280           }
49281           s/.*/./; q'`
49282     else
49283       continue
49284     fi
49285     # Extract the definition of DEPDIR, am__include, and am__quote
49286     # from the Makefile without running 'make'.
49287     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
49288     test -z "$DEPDIR" && continue
49289     am__include=`sed -n 's/^am__include = //p' < "$mf"`
49290     test -z "$am__include" && continue
49291     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
49292     # Find all dependency output files, they are included files with
49293     # $(DEPDIR) in their names.  We invoke sed twice because it is the
49294     # simplest approach to changing $(DEPDIR) to its actual value in the
49295     # expansion.
49296     for file in `sed -n "
49297       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
49298          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
49299       # Make sure the directory exists.
49300       test -f "$dirpart/$file" && continue
49301       fdir=`$as_dirname -- "$file" ||
49302 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49303          X"$file" : 'X\(//\)[^/]' \| \
49304          X"$file" : 'X\(//\)$' \| \
49305          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
49306 $as_echo X"$file" |
49307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49308             s//\1/
49309             q
49310           }
49311           /^X\(\/\/\)[^/].*/{
49312             s//\1/
49313             q
49314           }
49315           /^X\(\/\/\)$/{
49316             s//\1/
49317             q
49318           }
49319           /^X\(\/\).*/{
49320             s//\1/
49321             q
49322           }
49323           s/.*/./; q'`
49324       as_dir=$dirpart/$fdir; as_fn_mkdir_p
49325       # echo "creating $dirpart/$file"
49326       echo '# dummy' > "$dirpart/$file"
49327     done
49328   done
49329 }
49330  ;;
49331     "libtool":C)
49332
49333     # See if we are running on zsh, and set the options that allow our
49334     # commands through without removal of \ escapes.
49335     if test -n "${ZSH_VERSION+set}"; then
49336       setopt NO_GLOB_SUBST
49337     fi
49338
49339     cfgfile=${ofile}T
49340     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
49341     $RM "$cfgfile"
49342
49343     cat <<_LT_EOF >> "$cfgfile"
49344 #! $SHELL
49345 # Generated automatically by $as_me ($PACKAGE) $VERSION
49346 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
49347
49348 # Provide generalized library-building support services.
49349 # Written by Gordon Matzigkeit, 1996
49350
49351 # Copyright (C) 2014 Free Software Foundation, Inc.
49352 # This is free software; see the source for copying conditions.  There is NO
49353 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
49354
49355 # GNU Libtool is free software; you can redistribute it and/or modify
49356 # it under the terms of the GNU General Public License as published by
49357 # the Free Software Foundation; either version 2 of of the License, or
49358 # (at your option) any later version.
49359 #
49360 # As a special exception to the GNU General Public License, if you
49361 # distribute this file as part of a program or library that is built
49362 # using GNU Libtool, you may include this file under the  same
49363 # distribution terms that you use for the rest of that program.
49364 #
49365 # GNU Libtool is distributed in the hope that it will be useful, but
49366 # WITHOUT ANY WARRANTY; without even the implied warranty of
49367 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
49368 # GNU General Public License for more details.
49369 #
49370 # You should have received a copy of the GNU General Public License
49371 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
49372
49373
49374 # The names of the tagged configurations supported by this script.
49375 available_tags=''
49376
49377 # Configured defaults for sys_lib_dlsearch_path munging.
49378 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
49379
49380 # ### BEGIN LIBTOOL CONFIG
49381
49382 # Which release of libtool.m4 was used?
49383 macro_version=$macro_version
49384 macro_revision=$macro_revision
49385
49386 # Whether or not to build static libraries.
49387 build_old_libs=$enable_static
49388
49389 # Whether or not to build shared libraries.
49390 build_libtool_libs=$enable_shared
49391
49392 # What type of objects to build.
49393 pic_mode=$pic_mode
49394
49395 # Whether or not to optimize for fast installation.
49396 fast_install=$enable_fast_install
49397
49398 # Shared archive member basename,for filename based shared library versioning on AIX.
49399 shared_archive_member_spec=$shared_archive_member_spec
49400
49401 # Shell to use when invoking shell scripts.
49402 SHELL=$lt_SHELL
49403
49404 # An echo program that protects backslashes.
49405 ECHO=$lt_ECHO
49406
49407 # The PATH separator for the build system.
49408 PATH_SEPARATOR=$lt_PATH_SEPARATOR
49409
49410 # The host system.
49411 host_alias=$host_alias
49412 host=$host
49413 host_os=$host_os
49414
49415 # The build system.
49416 build_alias=$build_alias
49417 build=$build
49418 build_os=$build_os
49419
49420 # A sed program that does not truncate output.
49421 SED=$lt_SED
49422
49423 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
49424 Xsed="\$SED -e 1s/^X//"
49425
49426 # A grep program that handles long lines.
49427 GREP=$lt_GREP
49428
49429 # An ERE matcher.
49430 EGREP=$lt_EGREP
49431
49432 # A literal string matcher.
49433 FGREP=$lt_FGREP
49434
49435 # A BSD- or MS-compatible name lister.
49436 NM=$lt_NM
49437
49438 # Whether we need soft or hard links.
49439 LN_S=$lt_LN_S
49440
49441 # What is the maximum length of a command?
49442 max_cmd_len=$max_cmd_len
49443
49444 # Object file suffix (normally "o").
49445 objext=$ac_objext
49446
49447 # Executable file suffix (normally "").
49448 exeext=$exeext
49449
49450 # whether the shell understands "unset".
49451 lt_unset=$lt_unset
49452
49453 # turn spaces into newlines.
49454 SP2NL=$lt_lt_SP2NL
49455
49456 # turn newlines into spaces.
49457 NL2SP=$lt_lt_NL2SP
49458
49459 # convert \$build file names to \$host format.
49460 to_host_file_cmd=$lt_cv_to_host_file_cmd
49461
49462 # convert \$build files to toolchain format.
49463 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
49464
49465 # An object symbol dumper.
49466 OBJDUMP=$lt_OBJDUMP
49467
49468 # Method to check whether dependent libraries are shared objects.
49469 deplibs_check_method=$lt_deplibs_check_method
49470
49471 # Command to use when deplibs_check_method = "file_magic".
49472 file_magic_cmd=$lt_file_magic_cmd
49473
49474 # How to find potential files when deplibs_check_method = "file_magic".
49475 file_magic_glob=$lt_file_magic_glob
49476
49477 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
49478 want_nocaseglob=$lt_want_nocaseglob
49479
49480 # DLL creation program.
49481 DLLTOOL=$lt_DLLTOOL
49482
49483 # Command to associate shared and link libraries.
49484 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
49485
49486 # The archiver.
49487 AR=$lt_AR
49488
49489 # Flags to create an archive.
49490 AR_FLAGS=$lt_AR_FLAGS
49491
49492 # How to feed a file listing to the archiver.
49493 archiver_list_spec=$lt_archiver_list_spec
49494
49495 # A symbol stripping program.
49496 STRIP=$lt_STRIP
49497
49498 # Commands used to install an old-style archive.
49499 RANLIB=$lt_RANLIB
49500 old_postinstall_cmds=$lt_old_postinstall_cmds
49501 old_postuninstall_cmds=$lt_old_postuninstall_cmds
49502
49503 # Whether to use a lock for old archive extraction.
49504 lock_old_archive_extraction=$lock_old_archive_extraction
49505
49506 # A C compiler.
49507 LTCC=$lt_CC
49508
49509 # LTCC compiler flags.
49510 LTCFLAGS=$lt_CFLAGS
49511
49512 # Take the output of nm and produce a listing of raw symbols and C names.
49513 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
49514
49515 # Transform the output of nm in a proper C declaration.
49516 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
49517
49518 # Transform the output of nm into a list of symbols to manually relocate.
49519 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
49520
49521 # Transform the output of nm in a C name address pair.
49522 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
49523
49524 # Transform the output of nm in a C name address pair when lib prefix is needed.
49525 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
49526
49527 # The name lister interface.
49528 nm_interface=$lt_lt_cv_nm_interface
49529
49530 # Specify filename containing input files for \$NM.
49531 nm_file_list_spec=$lt_nm_file_list_spec
49532
49533 # The root where to search for dependent libraries,and where our libraries should be installed.
49534 lt_sysroot=$lt_sysroot
49535
49536 # Command to truncate a binary pipe.
49537 lt_truncate_bin=$lt_lt_cv_truncate_bin
49538
49539 # The name of the directory that contains temporary libtool files.
49540 objdir=$objdir
49541
49542 # Used to examine libraries when file_magic_cmd begins with "file".
49543 MAGIC_CMD=$MAGIC_CMD
49544
49545 # Must we lock files when doing compilation?
49546 need_locks=$lt_need_locks
49547
49548 # Manifest tool.
49549 MANIFEST_TOOL=$lt_MANIFEST_TOOL
49550
49551 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
49552 DSYMUTIL=$lt_DSYMUTIL
49553
49554 # Tool to change global to local symbols on Mac OS X.
49555 NMEDIT=$lt_NMEDIT
49556
49557 # Tool to manipulate fat objects and archives on Mac OS X.
49558 LIPO=$lt_LIPO
49559
49560 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
49561 OTOOL=$lt_OTOOL
49562
49563 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
49564 OTOOL64=$lt_OTOOL64
49565
49566 # Old archive suffix (normally "a").
49567 libext=$libext
49568
49569 # Shared library suffix (normally ".so").
49570 shrext_cmds=$lt_shrext_cmds
49571
49572 # The commands to extract the exported symbol list from a shared archive.
49573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
49574
49575 # Variables whose values should be saved in libtool wrapper scripts and
49576 # restored at link time.
49577 variables_saved_for_relink=$lt_variables_saved_for_relink
49578
49579 # Do we need the "lib" prefix for modules?
49580 need_lib_prefix=$need_lib_prefix
49581
49582 # Do we need a version for libraries?
49583 need_version=$need_version
49584
49585 # Library versioning type.
49586 version_type=$version_type
49587
49588 # Shared library runtime path variable.
49589 runpath_var=$runpath_var
49590
49591 # Shared library path variable.
49592 shlibpath_var=$shlibpath_var
49593
49594 # Is shlibpath searched before the hard-coded library search path?
49595 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
49596
49597 # Format of library name prefix.
49598 libname_spec=$lt_libname_spec
49599
49600 # List of archive names.  First name is the real one, the rest are links.
49601 # The last name is the one that the linker finds with -lNAME
49602 library_names_spec=$lt_library_names_spec
49603
49604 # The coded name of the library, if different from the real name.
49605 soname_spec=$lt_soname_spec
49606
49607 # Permission mode override for installation of shared libraries.
49608 install_override_mode=$lt_install_override_mode
49609
49610 # Command to use after installation of a shared archive.
49611 postinstall_cmds=$lt_postinstall_cmds
49612
49613 # Command to use after uninstallation of a shared archive.
49614 postuninstall_cmds=$lt_postuninstall_cmds
49615
49616 # Commands used to finish a libtool library installation in a directory.
49617 finish_cmds=$lt_finish_cmds
49618
49619 # As "finish_cmds", except a single script fragment to be evaled but
49620 # not shown.
49621 finish_eval=$lt_finish_eval
49622
49623 # Whether we should hardcode library paths into libraries.
49624 hardcode_into_libs=$hardcode_into_libs
49625
49626 # Compile-time system search path for libraries.
49627 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
49628
49629 # Detected run-time system search path for libraries.
49630 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
49631
49632 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
49633 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
49634
49635 # Whether dlopen is supported.
49636 dlopen_support=$enable_dlopen
49637
49638 # Whether dlopen of programs is supported.
49639 dlopen_self=$enable_dlopen_self
49640
49641 # Whether dlopen of statically linked programs is supported.
49642 dlopen_self_static=$enable_dlopen_self_static
49643
49644 # Commands to strip libraries.
49645 old_striplib=$lt_old_striplib
49646 striplib=$lt_striplib
49647
49648
49649 # The linker used to build libraries.
49650 LD=$lt_LD
49651
49652 # How to create reloadable object files.
49653 reload_flag=$lt_reload_flag
49654 reload_cmds=$lt_reload_cmds
49655
49656 # Commands used to build an old-style archive.
49657 old_archive_cmds=$lt_old_archive_cmds
49658
49659 # A language specific compiler.
49660 CC=$lt_compiler
49661
49662 # Is the compiler the GNU compiler?
49663 with_gcc=$GCC
49664
49665 # Compiler flag to turn off builtin functions.
49666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
49667
49668 # Additional compiler flags for building library objects.
49669 pic_flag=$lt_lt_prog_compiler_pic
49670
49671 # How to pass a linker flag through the compiler.
49672 wl=$lt_lt_prog_compiler_wl
49673
49674 # Compiler flag to prevent dynamic linking.
49675 link_static_flag=$lt_lt_prog_compiler_static
49676
49677 # Does compiler simultaneously support -c and -o options?
49678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
49679
49680 # Whether or not to add -lc for building shared libraries.
49681 build_libtool_need_lc=$archive_cmds_need_lc
49682
49683 # Whether or not to disallow shared libs when runtime libs are static.
49684 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
49685
49686 # Compiler flag to allow reflexive dlopens.
49687 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
49688
49689 # Compiler flag to generate shared objects directly from archives.
49690 whole_archive_flag_spec=$lt_whole_archive_flag_spec
49691
49692 # Whether the compiler copes with passing no objects directly.
49693 compiler_needs_object=$lt_compiler_needs_object
49694
49695 # Create an old-style archive from a shared archive.
49696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
49697
49698 # Create a temporary old-style archive to link instead of a shared archive.
49699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
49700
49701 # Commands used to build a shared archive.
49702 archive_cmds=$lt_archive_cmds
49703 archive_expsym_cmds=$lt_archive_expsym_cmds
49704
49705 # Commands used to build a loadable module if different from building
49706 # a shared archive.
49707 module_cmds=$lt_module_cmds
49708 module_expsym_cmds=$lt_module_expsym_cmds
49709
49710 # Whether we are building with GNU ld or not.
49711 with_gnu_ld=$lt_with_gnu_ld
49712
49713 # Flag that allows shared libraries with undefined symbols to be built.
49714 allow_undefined_flag=$lt_allow_undefined_flag
49715
49716 # Flag that enforces no undefined symbols.
49717 no_undefined_flag=$lt_no_undefined_flag
49718
49719 # Flag to hardcode \$libdir into a binary during linking.
49720 # This must work even if \$libdir does not exist
49721 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
49722
49723 # Whether we need a single "-rpath" flag with a separated argument.
49724 hardcode_libdir_separator=$lt_hardcode_libdir_separator
49725
49726 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
49727 # DIR into the resulting binary.
49728 hardcode_direct=$hardcode_direct
49729
49730 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
49731 # DIR into the resulting binary and the resulting library dependency is
49732 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
49733 # library is relocated.
49734 hardcode_direct_absolute=$hardcode_direct_absolute
49735
49736 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
49737 # into the resulting binary.
49738 hardcode_minus_L=$hardcode_minus_L
49739
49740 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
49741 # into the resulting binary.
49742 hardcode_shlibpath_var=$hardcode_shlibpath_var
49743
49744 # Set to "yes" if building a shared library automatically hardcodes DIR
49745 # into the library and all subsequent libraries and executables linked
49746 # against it.
49747 hardcode_automatic=$hardcode_automatic
49748
49749 # Set to yes if linker adds runtime paths of dependent libraries
49750 # to runtime path list.
49751 inherit_rpath=$inherit_rpath
49752
49753 # Whether libtool must link a program against all its dependency libraries.
49754 link_all_deplibs=$link_all_deplibs
49755
49756 # Set to "yes" if exported symbols are required.
49757 always_export_symbols=$always_export_symbols
49758
49759 # The commands to list exported symbols.
49760 export_symbols_cmds=$lt_export_symbols_cmds
49761
49762 # Symbols that should not be listed in the preloaded symbols.
49763 exclude_expsyms=$lt_exclude_expsyms
49764
49765 # Symbols that must always be exported.
49766 include_expsyms=$lt_include_expsyms
49767
49768 # Commands necessary for linking programs (against libraries) with templates.
49769 prelink_cmds=$lt_prelink_cmds
49770
49771 # Commands necessary for finishing linking programs.
49772 postlink_cmds=$lt_postlink_cmds
49773
49774 # Specify filename containing input files.
49775 file_list_spec=$lt_file_list_spec
49776
49777 # How to hardcode a shared library path into an executable.
49778 hardcode_action=$hardcode_action
49779
49780 # ### END LIBTOOL CONFIG
49781
49782 _LT_EOF
49783
49784     cat <<'_LT_EOF' >> "$cfgfile"
49785
49786 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
49787
49788 # func_munge_path_list VARIABLE PATH
49789 # -----------------------------------
49790 # VARIABLE is name of variable containing _space_ separated list of
49791 # directories to be munged by the contents of PATH, which is string
49792 # having a format:
49793 # "DIR[:DIR]:"
49794 #       string "DIR[ DIR]" will be prepended to VARIABLE
49795 # ":DIR[:DIR]"
49796 #       string "DIR[ DIR]" will be appended to VARIABLE
49797 # "DIRP[:DIRP]::[DIRA:]DIRA"
49798 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
49799 #       "DIRA[ DIRA]" will be appended to VARIABLE
49800 # "DIR[:DIR]"
49801 #       VARIABLE will be replaced by "DIR[ DIR]"
49802 func_munge_path_list ()
49803 {
49804     case x$2 in
49805     x)
49806         ;;
49807     *:)
49808         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
49809         ;;
49810     x:*)
49811         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
49812         ;;
49813     *::*)
49814         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
49815         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
49816         ;;
49817     *)
49818         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
49819         ;;
49820     esac
49821 }
49822
49823
49824 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
49825 func_cc_basename ()
49826 {
49827     for cc_temp in $*""; do
49828       case $cc_temp in
49829         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
49830         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
49831         \-*) ;;
49832         *) break;;
49833       esac
49834     done
49835     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
49836 }
49837
49838
49839 # ### END FUNCTIONS SHARED WITH CONFIGURE
49840
49841 _LT_EOF
49842
49843   case $host_os in
49844   aix3*)
49845     cat <<\_LT_EOF >> "$cfgfile"
49846 # AIX sometimes has problems with the GCC collect2 program.  For some
49847 # reason, if we set the COLLECT_NAMES environment variable, the problems
49848 # vanish in a puff of smoke.
49849 if test set != "${COLLECT_NAMES+set}"; then
49850   COLLECT_NAMES=
49851   export COLLECT_NAMES
49852 fi
49853 _LT_EOF
49854     ;;
49855   esac
49856
49857
49858 ltmain=$ac_aux_dir/ltmain.sh
49859
49860
49861   # We use sed instead of cat because bash on DJGPP gets confused if
49862   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
49863   # text mode, it properly converts lines to CR/LF.  This bash problem
49864   # is reportedly fixed, but why not run on old versions too?
49865   sed '$q' "$ltmain" >> "$cfgfile" \
49866      || (rm -f "$cfgfile"; exit 1)
49867
49868    mv -f "$cfgfile" "$ofile" ||
49869     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
49870   chmod +x "$ofile"
49871
49872  ;;
49873     "po-directories":C)
49874     for ac_file in $CONFIG_FILES; do
49875       # Support "outfile[:infile[:infile...]]"
49876       case "$ac_file" in
49877         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
49878       esac
49879       # PO directories have a Makefile.in generated from Makefile.in.in.
49880       case "$ac_file" in */Makefile.in)
49881         # Adjust a relative srcdir.
49882         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
49883         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
49884         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
49885         # In autoconf-2.13 it is called $ac_given_srcdir.
49886         # In autoconf-2.50 it is called $srcdir.
49887         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
49888         case "$ac_given_srcdir" in
49889           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
49890           /*) top_srcdir="$ac_given_srcdir" ;;
49891           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
49892         esac
49893         # Treat a directory as a PO directory if and only if it has a
49894         # POTFILES.in file. This allows packages to have multiple PO
49895         # directories under different names or in different locations.
49896         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
49897           rm -f "$ac_dir/POTFILES"
49898           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
49899           gt_tab=`printf '\t'`
49900           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
49901           POMAKEFILEDEPS="POTFILES.in"
49902           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
49903           # on $ac_dir but don't depend on user-specified configuration
49904           # parameters.
49905           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
49906             # The LINGUAS file contains the set of available languages.
49907             if test -n "$OBSOLETE_ALL_LINGUAS"; then
49908               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
49909             fi
49910             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
49911             # Hide the ALL_LINGUAS assignment from automake < 1.5.
49912             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
49913             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
49914           else
49915             # The set of available languages was given in configure.in.
49916             # Hide the ALL_LINGUAS assignment from automake < 1.5.
49917             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
49918           fi
49919           # Compute POFILES
49920           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
49921           # Compute UPDATEPOFILES
49922           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
49923           # Compute DUMMYPOFILES
49924           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
49925           # Compute GMOFILES
49926           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
49927           case "$ac_given_srcdir" in
49928             .) srcdirpre= ;;
49929             *) srcdirpre='$(srcdir)/' ;;
49930           esac
49931           POFILES=
49932           UPDATEPOFILES=
49933           DUMMYPOFILES=
49934           GMOFILES=
49935           for lang in $ALL_LINGUAS; do
49936             POFILES="$POFILES $srcdirpre$lang.po"
49937             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
49938             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
49939             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
49940           done
49941           # CATALOGS depends on both $ac_dir and the user's LINGUAS
49942           # environment variable.
49943           INST_LINGUAS=
49944           if test -n "$ALL_LINGUAS"; then
49945             for presentlang in $ALL_LINGUAS; do
49946               useit=no
49947               if test "%UNSET%" != "$LINGUAS"; then
49948                 desiredlanguages="$LINGUAS"
49949               else
49950                 desiredlanguages="$ALL_LINGUAS"
49951               fi
49952               for desiredlang in $desiredlanguages; do
49953                 # Use the presentlang catalog if desiredlang is
49954                 #   a. equal to presentlang, or
49955                 #   b. a variant of presentlang (because in this case,
49956                 #      presentlang can be used as a fallback for messages
49957                 #      which are not translated in the desiredlang catalog).
49958                 case "$desiredlang" in
49959                   "$presentlang"*) useit=yes;;
49960                 esac
49961               done
49962               if test $useit = yes; then
49963                 INST_LINGUAS="$INST_LINGUAS $presentlang"
49964               fi
49965             done
49966           fi
49967           CATALOGS=
49968           if test -n "$INST_LINGUAS"; then
49969             for lang in $INST_LINGUAS; do
49970               CATALOGS="$CATALOGS $lang.gmo"
49971             done
49972           fi
49973           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
49974           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"
49975           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
49976             if test -f "$f"; then
49977               case "$f" in
49978                 *.orig | *.bak | *~) ;;
49979                 *) cat "$f" >> "$ac_dir/Makefile" ;;
49980               esac
49981             fi
49982           done
49983         fi
49984         ;;
49985       esac
49986     done ;;
49987
49988   esac
49989 done # for ac_tag
49990
49991
49992 as_fn_exit 0
49993 _ACEOF
49994 ac_clean_files=$ac_clean_files_save
49995
49996 test $ac_write_fail = 0 ||
49997   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
49998
49999
50000 # configure is writing to config.log, and then calls config.status.
50001 # config.status does its own redirection, appending to config.log.
50002 # Unfortunately, on DOS this fails, as config.log is still kept open
50003 # by configure, so config.status won't be able to write to it; its
50004 # output is simply discarded.  So we exec the FD to /dev/null,
50005 # effectively closing config.log, so it can be properly (re)opened and
50006 # appended to by config.status.  When coming back to configure, we
50007 # need to make the FD available again.
50008 if test "$no_create" != yes; then
50009   ac_cs_success=:
50010   ac_config_status_args=
50011   test "$silent" = yes &&
50012     ac_config_status_args="$ac_config_status_args --quiet"
50013   exec 5>/dev/null
50014   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50015   exec 5>>config.log
50016   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50017   # would make configure fail if this is the last instruction.
50018   $ac_cs_success || as_fn_exit 1
50019 fi
50020 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
50021   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
50022 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
50023 fi
50024