Revert "Merge branch 'upstream' into tizen"
[platform/upstream/gnutls.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GnuTLS 3.3.5.
4 #
5 # Report bugs to <bugs@gnutls.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 bugs@gnutls.org
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: 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='GnuTLS'
592 PACKAGE_TARNAME='gnutls'
593 PACKAGE_VERSION='3.3.5'
594 PACKAGE_STRING='GnuTLS 3.3.5'
595 PACKAGE_BUGREPORT='bugs@gnutls.org'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 gl_header_list=
635 gt_needs=
636 gl_func_list=
637 ac_subst_vars='ggltests_LTLIBOBJS
638 ggltests_LIBOBJS
639 ggl_LTLIBOBJS
640 ggl_LIBOBJS
641 gltests_LTLIBOBJS
642 gltests_LIBOBJS
643 gl_LTLIBOBJS
644 gl_LIBOBJS
645 CONFIG_INCLUDE
646 am__EXEEXT_FALSE
647 am__EXEEXT_TRUE
648 LTLIBOBJS
649 LIBOBJS
650 YEAR
651 ENABLE_CRYWRAP_FALSE
652 ENABLE_CRYWRAP_TRUE
653 LIBIDN_LIBS
654 LIBIDN_CFLAGS
655 NEEDS_LIBRT_FALSE
656 NEEDS_LIBRT_TRUE
657 LIBGNUTLS_CFLAGS
658 LIBGNUTLS_LIBS
659 HAVE_GUILE_FALSE
660 HAVE_GUILE_TRUE
661 guileextensiondir
662 GUILE_SITE
663 GUILE_LDFLAGS
664 GUILE_CFLAGS
665 GUILE_TOOLS
666 GUILE_CONFIG
667 GUILE
668 guile_snarf
669 GNUTLS_REQUIRES_PRIVATE
670 LIBZ_PREFIX
671 LTLIBZ
672 LIBZ
673 HAVE_LIBZ
674 DEFINE_SSIZE_T
675 LIBOPTS_DIR
676 LIBOPTS_CFLAGS
677 LIBOPTS_LDADD
678 NEED_LIBOPTS_FALSE
679 NEED_LIBOPTS_TRUE
680 INSTALL_LIBOPTS_FALSE
681 INSTALL_LIBOPTS_TRUE
682 POSIX_SHELL
683 ENABLE_TROUSERS_FALSE
684 ENABLE_TROUSERS_TRUE
685 TSS_CFLAGS
686 TSS_LIBS
687 ENABLE_PKCS11_FALSE
688 ENABLE_PKCS11_TRUE
689 P11_KIT_LIBS
690 P11_KIT_CFLAGS
691 ENABLE_DANE_FALSE
692 ENABLE_DANE_TRUE
693 UNBOUND_CFLAGS
694 UNBOUND_LIBS
695 ENABLE_SELF_CHECKS_FALSE
696 ENABLE_SELF_CHECKS_TRUE
697 FIPS140_LIBS
698 LIBDL_PREFIX
699 LTLIBDL
700 LIBDL
701 HAVE_LIBDL
702 ENABLE_FIPS140_FALSE
703 ENABLE_FIPS140_TRUE
704 CXXCPP
705 OTOOL64
706 OTOOL
707 LIPO
708 NMEDIT
709 DSYMUTIL
710 MANIFEST_TOOL
711 DLLTOOL
712 OBJDUMP
713 NM
714 ac_ct_DUMPBIN
715 DUMPBIN
716 LD
717 FGREP
718 LIBTOOL
719 LN_S
720 WERROR_CFLAGS
721 WARN_CFLAGS
722 WSTACK_CFLAGS
723 ggltests_WITNESS
724 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
725 NEXT_SIGNAL_H
726 REPLACE_RAISE
727 REPLACE_PTHREAD_SIGMASK
728 HAVE_SIGHANDLER_T
729 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
730 HAVE_STRUCT_SIGACTION_SA_SIGACTION
731 HAVE_SIGACTION
732 HAVE_SIGINFO_T
733 HAVE_SIGSET_T
734 HAVE_RAISE
735 HAVE_PTHREAD_SIGMASK
736 HAVE_POSIX_SIGNALBLOCKING
737 GNULIB_SIGACTION
738 GNULIB_SIGPROCMASK
739 GNULIB_SIGNAL_H_SIGPIPE
740 GNULIB_RAISE
741 GNULIB_PTHREAD_SIGMASK
742 LIB_SELECT
743 HAVE_SYS_SELECT_H
744 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
745 NEXT_SYS_SELECT_H
746 REPLACE_SELECT
747 REPLACE_PSELECT
748 HAVE_PSELECT
749 GNULIB_SELECT
750 GNULIB_PSELECT
751 INET_PTON_LIB
752 GETADDRINFO_LIB
753 INET_NTOP_LIB
754 SERVENT_LIB
755 HOSTENT_LIB
756 LIB_CLOCK_GETTIME
757 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
758 NEXT_ARPA_INET_H
759 HAVE_ARPA_INET_H
760 REPLACE_INET_PTON
761 REPLACE_INET_NTOP
762 HAVE_DECL_INET_PTON
763 HAVE_DECL_INET_NTOP
764 GNULIB_INET_PTON
765 GNULIB_INET_NTOP
766 LIBTESTS_LIBDEPS
767 abs_aux_dir
768 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
769 NEXT_INTTYPES_H
770 UINT64_MAX_EQ_ULONG_MAX
771 UINT32_MAX_LT_UINTMAX_MAX
772 PRIPTR_PREFIX
773 PRI_MACROS_BROKEN
774 INT64_MAX_EQ_LONG_MAX
775 INT32_MAX_LT_INTMAX_MAX
776 REPLACE_STRTOUMAX
777 REPLACE_STRTOIMAX
778 HAVE_DECL_STRTOUMAX
779 HAVE_DECL_STRTOIMAX
780 HAVE_DECL_IMAXDIV
781 HAVE_DECL_IMAXABS
782 GNULIB_STRTOUMAX
783 GNULIB_STRTOIMAX
784 GNULIB_IMAXDIV
785 GNULIB_IMAXABS
786 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
787 NEXT_FCNTL_H
788 REPLACE_OPENAT
789 REPLACE_OPEN
790 REPLACE_FCNTL
791 HAVE_OPENAT
792 HAVE_FCNTL
793 GNULIB_OPENAT
794 GNULIB_OPEN
795 GNULIB_NONBLOCKING
796 GNULIB_FCNTL
797 gltests_WITNESS
798 HAVE_WINT_T
799 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
800 NEXT_WCHAR_H
801 REPLACE_WCSWIDTH
802 REPLACE_WCWIDTH
803 REPLACE_WCSNRTOMBS
804 REPLACE_WCSRTOMBS
805 REPLACE_WCRTOMB
806 REPLACE_MBSNRTOWCS
807 REPLACE_MBSRTOWCS
808 REPLACE_MBRLEN
809 REPLACE_MBRTOWC
810 REPLACE_MBSINIT
811 REPLACE_WCTOB
812 REPLACE_BTOWC
813 REPLACE_MBSTATE_T
814 HAVE_DECL_WCWIDTH
815 HAVE_DECL_WCTOB
816 HAVE_WCSWIDTH
817 HAVE_WCSTOK
818 HAVE_WCSSTR
819 HAVE_WCSPBRK
820 HAVE_WCSSPN
821 HAVE_WCSCSPN
822 HAVE_WCSRCHR
823 HAVE_WCSCHR
824 HAVE_WCSDUP
825 HAVE_WCSXFRM
826 HAVE_WCSCOLL
827 HAVE_WCSNCASECMP
828 HAVE_WCSCASECMP
829 HAVE_WCSNCMP
830 HAVE_WCSCMP
831 HAVE_WCSNCAT
832 HAVE_WCSCAT
833 HAVE_WCPNCPY
834 HAVE_WCSNCPY
835 HAVE_WCPCPY
836 HAVE_WCSCPY
837 HAVE_WCSNLEN
838 HAVE_WCSLEN
839 HAVE_WMEMSET
840 HAVE_WMEMMOVE
841 HAVE_WMEMCPY
842 HAVE_WMEMCMP
843 HAVE_WMEMCHR
844 HAVE_WCSNRTOMBS
845 HAVE_WCSRTOMBS
846 HAVE_WCRTOMB
847 HAVE_MBSNRTOWCS
848 HAVE_MBSRTOWCS
849 HAVE_MBRLEN
850 HAVE_MBRTOWC
851 HAVE_MBSINIT
852 HAVE_BTOWC
853 GNULIB_WCSWIDTH
854 GNULIB_WCSTOK
855 GNULIB_WCSSTR
856 GNULIB_WCSPBRK
857 GNULIB_WCSSPN
858 GNULIB_WCSCSPN
859 GNULIB_WCSRCHR
860 GNULIB_WCSCHR
861 GNULIB_WCSDUP
862 GNULIB_WCSXFRM
863 GNULIB_WCSCOLL
864 GNULIB_WCSNCASECMP
865 GNULIB_WCSCASECMP
866 GNULIB_WCSNCMP
867 GNULIB_WCSCMP
868 GNULIB_WCSNCAT
869 GNULIB_WCSCAT
870 GNULIB_WCPNCPY
871 GNULIB_WCSNCPY
872 GNULIB_WCPCPY
873 GNULIB_WCSCPY
874 GNULIB_WCSNLEN
875 GNULIB_WCSLEN
876 GNULIB_WMEMSET
877 GNULIB_WMEMMOVE
878 GNULIB_WMEMCPY
879 GNULIB_WMEMCMP
880 GNULIB_WMEMCHR
881 GNULIB_WCWIDTH
882 GNULIB_WCSNRTOMBS
883 GNULIB_WCSRTOMBS
884 GNULIB_WCRTOMB
885 GNULIB_MBSNRTOWCS
886 GNULIB_MBSRTOWCS
887 GNULIB_MBRLEN
888 GNULIB_MBRTOWC
889 GNULIB_MBSINIT
890 GNULIB_WCTOB
891 GNULIB_BTOWC
892 HAVE_FEATURES_H
893 VALGRIND
894 HAVE_UNISTD_H
895 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
896 NEXT_UNISTD_H
897 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
898 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
899 TIME_H_DEFINES_STRUCT_TIMESPEC
900 NEXT_AS_FIRST_DIRECTIVE_TIME_H
901 NEXT_TIME_H
902 REPLACE_LOCALTIME
903 REPLACE_GMTIME
904 REPLACE_TIMEGM
905 REPLACE_NANOSLEEP
906 REPLACE_MKTIME
907 REPLACE_LOCALTIME_R
908 HAVE_TIMEGM
909 HAVE_STRPTIME
910 HAVE_NANOSLEEP
911 HAVE_DECL_LOCALTIME_R
912 GNULIB_TIME_R
913 GNULIB_TIMEGM
914 GNULIB_STRPTIME
915 GNULIB_NANOSLEEP
916 GNULIB_MKTIME
917 HAVE_SYS_UIO_H
918 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
919 NEXT_SYS_UIO_H
920 HAVE_WS2TCPIP_H
921 HAVE_SYS_SOCKET_H
922 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
923 NEXT_SYS_SOCKET_H
924 HAVE_ACCEPT4
925 HAVE_SA_FAMILY_T
926 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
927 HAVE_STRUCT_SOCKADDR_STORAGE
928 GNULIB_ACCEPT4
929 GNULIB_SHUTDOWN
930 GNULIB_SETSOCKOPT
931 GNULIB_SENDTO
932 GNULIB_RECVFROM
933 GNULIB_SEND
934 GNULIB_RECV
935 GNULIB_LISTEN
936 GNULIB_GETSOCKOPT
937 GNULIB_GETSOCKNAME
938 GNULIB_GETPEERNAME
939 GNULIB_BIND
940 GNULIB_ACCEPT
941 GNULIB_CONNECT
942 GNULIB_SOCKET
943 HAVE_STRINGS_H
944 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
945 NEXT_STRINGS_H
946 NEXT_AS_FIRST_DIRECTIVE_STRING_H
947 NEXT_STRING_H
948 HAVE_DECL_STRNCASECMP
949 HAVE_STRCASECMP
950 HAVE_FFS
951 GNULIB_FFS
952 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
953 NEXT_STDLIB_H
954 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
955 NEXT_STDIO_H
956 GL_GENERATE_STDINT_H_FALSE
957 GL_GENERATE_STDINT_H_TRUE
958 STDINT_H
959 WINT_T_SUFFIX
960 WCHAR_T_SUFFIX
961 SIG_ATOMIC_T_SUFFIX
962 SIZE_T_SUFFIX
963 PTRDIFF_T_SUFFIX
964 HAVE_SIGNED_WINT_T
965 HAVE_SIGNED_WCHAR_T
966 HAVE_SIGNED_SIG_ATOMIC_T
967 BITSIZEOF_WINT_T
968 BITSIZEOF_WCHAR_T
969 BITSIZEOF_SIG_ATOMIC_T
970 BITSIZEOF_SIZE_T
971 BITSIZEOF_PTRDIFF_T
972 HAVE_SYS_BITYPES_H
973 HAVE_SYS_INTTYPES_H
974 HAVE_STDINT_H
975 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
976 NEXT_STDINT_H
977 HAVE_SYS_TYPES_H
978 HAVE_INTTYPES_H
979 HAVE_WCHAR_H
980 HAVE_UNSIGNED_LONG_LONG_INT
981 HAVE_LONG_LONG_INT
982 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
983 NEXT_STDDEF_H
984 GL_GENERATE_STDDEF_H_FALSE
985 GL_GENERATE_STDDEF_H_TRUE
986 STDDEF_H
987 HAVE_WCHAR_T
988 REPLACE_NULL
989 HAVE__BOOL
990 GL_GENERATE_STDBOOL_H_FALSE
991 GL_GENERATE_STDBOOL_H_TRUE
992 STDBOOL_H
993 GL_GENERATE_STDALIGN_H_FALSE
994 GL_GENERATE_STDALIGN_H_TRUE
995 STDALIGN_H
996 PMCCABE
997 GL_GENERATE_NETINET_IN_H_FALSE
998 GL_GENERATE_NETINET_IN_H_TRUE
999 NETINET_IN_H
1000 HAVE_NETINET_IN_H
1001 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
1002 NEXT_NETINET_IN_H
1003 HAVE_NETDB_H
1004 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
1005 NEXT_NETDB_H
1006 REPLACE_GAI_STRERROR
1007 HAVE_DECL_GETNAMEINFO
1008 HAVE_DECL_GETADDRINFO
1009 HAVE_DECL_GAI_STRERROR
1010 HAVE_DECL_FREEADDRINFO
1011 HAVE_STRUCT_ADDRINFO
1012 GNULIB_GETADDRINFO
1013 APPLE_UNIVERSAL_BUILD
1014 UNDEFINE_STRTOK_R
1015 REPLACE_STRTOK_R
1016 REPLACE_STRSIGNAL
1017 REPLACE_STRNLEN
1018 REPLACE_STRNDUP
1019 REPLACE_STRNCAT
1020 REPLACE_STRERROR_R
1021 REPLACE_STRERROR
1022 REPLACE_STRCHRNUL
1023 REPLACE_STRCASESTR
1024 REPLACE_STRSTR
1025 REPLACE_STRDUP
1026 REPLACE_STPNCPY
1027 REPLACE_MEMMEM
1028 REPLACE_MEMCHR
1029 HAVE_STRVERSCMP
1030 HAVE_DECL_STRSIGNAL
1031 HAVE_DECL_STRERROR_R
1032 HAVE_DECL_STRTOK_R
1033 HAVE_STRCASESTR
1034 HAVE_STRSEP
1035 HAVE_STRPBRK
1036 HAVE_DECL_STRNLEN
1037 HAVE_DECL_STRNDUP
1038 HAVE_DECL_STRDUP
1039 HAVE_STRCHRNUL
1040 HAVE_STPNCPY
1041 HAVE_STPCPY
1042 HAVE_RAWMEMCHR
1043 HAVE_DECL_MEMRCHR
1044 HAVE_MEMPCPY
1045 HAVE_DECL_MEMMEM
1046 HAVE_MEMCHR
1047 HAVE_FFSLL
1048 HAVE_FFSL
1049 HAVE_MBSLEN
1050 GNULIB_STRVERSCMP
1051 GNULIB_STRSIGNAL
1052 GNULIB_STRERROR_R
1053 GNULIB_STRERROR
1054 GNULIB_MBSTOK_R
1055 GNULIB_MBSSEP
1056 GNULIB_MBSSPN
1057 GNULIB_MBSPBRK
1058 GNULIB_MBSCSPN
1059 GNULIB_MBSCASESTR
1060 GNULIB_MBSPCASECMP
1061 GNULIB_MBSNCASECMP
1062 GNULIB_MBSCASECMP
1063 GNULIB_MBSSTR
1064 GNULIB_MBSRCHR
1065 GNULIB_MBSCHR
1066 GNULIB_MBSNLEN
1067 GNULIB_MBSLEN
1068 GNULIB_STRTOK_R
1069 GNULIB_STRCASESTR
1070 GNULIB_STRSTR
1071 GNULIB_STRSEP
1072 GNULIB_STRPBRK
1073 GNULIB_STRNLEN
1074 GNULIB_STRNDUP
1075 GNULIB_STRNCAT
1076 GNULIB_STRDUP
1077 GNULIB_STRCHRNUL
1078 GNULIB_STPNCPY
1079 GNULIB_STPCPY
1080 GNULIB_RAWMEMCHR
1081 GNULIB_MEMRCHR
1082 GNULIB_MEMPCPY
1083 GNULIB_MEMMEM
1084 GNULIB_MEMCHR
1085 GNULIB_FFSLL
1086 GNULIB_FFSL
1087 REPLACE_WCTOMB
1088 REPLACE_UNSETENV
1089 REPLACE_STRTOD
1090 REPLACE_SETENV
1091 REPLACE_REALPATH
1092 REPLACE_REALLOC
1093 REPLACE_RANDOM_R
1094 REPLACE_PUTENV
1095 REPLACE_PTSNAME_R
1096 REPLACE_PTSNAME
1097 REPLACE_MKSTEMP
1098 REPLACE_MBTOWC
1099 REPLACE_MALLOC
1100 REPLACE_CANONICALIZE_FILE_NAME
1101 REPLACE_CALLOC
1102 HAVE_DECL_UNSETENV
1103 HAVE_UNLOCKPT
1104 HAVE_SYS_LOADAVG_H
1105 HAVE_STRUCT_RANDOM_DATA
1106 HAVE_STRTOULL
1107 HAVE_STRTOLL
1108 HAVE_STRTOD
1109 HAVE_DECL_SETENV
1110 HAVE_SETENV
1111 HAVE_SECURE_GETENV
1112 HAVE_RPMATCH
1113 HAVE_REALPATH
1114 HAVE_RANDOM_R
1115 HAVE_RANDOM_H
1116 HAVE_RANDOM
1117 HAVE_PTSNAME_R
1118 HAVE_PTSNAME
1119 HAVE_POSIX_OPENPT
1120 HAVE_MKSTEMPS
1121 HAVE_MKSTEMP
1122 HAVE_MKOSTEMPS
1123 HAVE_MKOSTEMP
1124 HAVE_MKDTEMP
1125 HAVE_GRANTPT
1126 HAVE_GETSUBOPT
1127 HAVE_DECL_GETLOADAVG
1128 HAVE_CANONICALIZE_FILE_NAME
1129 HAVE_ATOLL
1130 HAVE__EXIT
1131 GNULIB_WCTOMB
1132 GNULIB_UNSETENV
1133 GNULIB_UNLOCKPT
1134 GNULIB_SYSTEM_POSIX
1135 GNULIB_STRTOULL
1136 GNULIB_STRTOLL
1137 GNULIB_STRTOD
1138 GNULIB_SETENV
1139 GNULIB_SECURE_GETENV
1140 GNULIB_RPMATCH
1141 GNULIB_REALPATH
1142 GNULIB_REALLOC_POSIX
1143 GNULIB_RANDOM_R
1144 GNULIB_RANDOM
1145 GNULIB_PUTENV
1146 GNULIB_PTSNAME_R
1147 GNULIB_PTSNAME
1148 GNULIB_POSIX_OPENPT
1149 GNULIB_MKSTEMPS
1150 GNULIB_MKSTEMP
1151 GNULIB_MKOSTEMPS
1152 GNULIB_MKOSTEMP
1153 GNULIB_MKDTEMP
1154 GNULIB_MBTOWC
1155 GNULIB_MALLOC_POSIX
1156 GNULIB_GRANTPT
1157 GNULIB_GETSUBOPT
1158 GNULIB_GETLOADAVG
1159 GNULIB_CANONICALIZE_FILE_NAME
1160 GNULIB_CALLOC_POSIX
1161 GNULIB_ATOLL
1162 GNULIB__EXIT
1163 SED
1164 HAVE_LD_VERSION_SCRIPT_FALSE
1165 HAVE_LD_VERSION_SCRIPT_TRUE
1166 HAVE_LD_OUTPUT_DEF_FALSE
1167 HAVE_LD_OUTPUT_DEF_TRUE
1168 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1169 NEXT_SYS_TIME_H
1170 REPLACE_STRUCT_TIMEVAL
1171 REPLACE_GETTIMEOFDAY
1172 HAVE_SYS_TIME_H
1173 HAVE_STRUCT_TIMEVAL
1174 HAVE_GETTIMEOFDAY
1175 GNULIB_GETTIMEOFDAY
1176 WINDOWS_64_BIT_OFF_T
1177 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
1178 NEXT_SYS_TYPES_H
1179 REPLACE_VSPRINTF
1180 REPLACE_VSNPRINTF
1181 REPLACE_VPRINTF
1182 REPLACE_VFPRINTF
1183 REPLACE_VDPRINTF
1184 REPLACE_VASPRINTF
1185 REPLACE_TMPFILE
1186 REPLACE_STDIO_WRITE_FUNCS
1187 REPLACE_STDIO_READ_FUNCS
1188 REPLACE_SPRINTF
1189 REPLACE_SNPRINTF
1190 REPLACE_RENAMEAT
1191 REPLACE_RENAME
1192 REPLACE_REMOVE
1193 REPLACE_PRINTF
1194 REPLACE_POPEN
1195 REPLACE_PERROR
1196 REPLACE_OBSTACK_PRINTF
1197 REPLACE_GETLINE
1198 REPLACE_GETDELIM
1199 REPLACE_FTELLO
1200 REPLACE_FTELL
1201 REPLACE_FSEEKO
1202 REPLACE_FSEEK
1203 REPLACE_FREOPEN
1204 REPLACE_FPURGE
1205 REPLACE_FPRINTF
1206 REPLACE_FOPEN
1207 REPLACE_FFLUSH
1208 REPLACE_FDOPEN
1209 REPLACE_FCLOSE
1210 REPLACE_DPRINTF
1211 HAVE_VDPRINTF
1212 HAVE_VASPRINTF
1213 HAVE_RENAMEAT
1214 HAVE_POPEN
1215 HAVE_PCLOSE
1216 HAVE_FTELLO
1217 HAVE_FSEEKO
1218 HAVE_DPRINTF
1219 HAVE_DECL_VSNPRINTF
1220 HAVE_DECL_SNPRINTF
1221 HAVE_DECL_OBSTACK_PRINTF
1222 HAVE_DECL_GETLINE
1223 HAVE_DECL_GETDELIM
1224 HAVE_DECL_FTELLO
1225 HAVE_DECL_FSEEKO
1226 HAVE_DECL_FPURGE
1227 GNULIB_VSPRINTF_POSIX
1228 GNULIB_VSNPRINTF
1229 GNULIB_VPRINTF_POSIX
1230 GNULIB_VPRINTF
1231 GNULIB_VFPRINTF_POSIX
1232 GNULIB_VFPRINTF
1233 GNULIB_VDPRINTF
1234 GNULIB_VSCANF
1235 GNULIB_VFSCANF
1236 GNULIB_VASPRINTF
1237 GNULIB_TMPFILE
1238 GNULIB_STDIO_H_SIGPIPE
1239 GNULIB_STDIO_H_NONBLOCKING
1240 GNULIB_SPRINTF_POSIX
1241 GNULIB_SNPRINTF
1242 GNULIB_SCANF
1243 GNULIB_RENAMEAT
1244 GNULIB_RENAME
1245 GNULIB_REMOVE
1246 GNULIB_PUTS
1247 GNULIB_PUTCHAR
1248 GNULIB_PUTC
1249 GNULIB_PRINTF_POSIX
1250 GNULIB_PRINTF
1251 GNULIB_POPEN
1252 GNULIB_PERROR
1253 GNULIB_PCLOSE
1254 GNULIB_OBSTACK_PRINTF_POSIX
1255 GNULIB_OBSTACK_PRINTF
1256 GNULIB_GETLINE
1257 GNULIB_GETDELIM
1258 GNULIB_GETCHAR
1259 GNULIB_GETC
1260 GNULIB_FWRITE
1261 GNULIB_FTELLO
1262 GNULIB_FTELL
1263 GNULIB_FSEEKO
1264 GNULIB_FSEEK
1265 GNULIB_FSCANF
1266 GNULIB_FREOPEN
1267 GNULIB_FREAD
1268 GNULIB_FPUTS
1269 GNULIB_FPUTC
1270 GNULIB_FPURGE
1271 GNULIB_FPRINTF_POSIX
1272 GNULIB_FPRINTF
1273 GNULIB_FOPEN
1274 GNULIB_FGETS
1275 GNULIB_FGETC
1276 GNULIB_FFLUSH
1277 GNULIB_FDOPEN
1278 GNULIB_FCLOSE
1279 GNULIB_DPRINTF
1280 WINDOWS_64_BIT_ST_SIZE
1281 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1282 NEXT_SYS_STAT_H
1283 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1284 REPLACE_UTIMENSAT
1285 REPLACE_STAT
1286 REPLACE_MKNOD
1287 REPLACE_MKFIFO
1288 REPLACE_MKDIR
1289 REPLACE_LSTAT
1290 REPLACE_FUTIMENS
1291 REPLACE_FSTATAT
1292 REPLACE_FSTAT
1293 HAVE_UTIMENSAT
1294 HAVE_MKNODAT
1295 HAVE_MKNOD
1296 HAVE_MKFIFOAT
1297 HAVE_MKFIFO
1298 HAVE_MKDIRAT
1299 HAVE_LSTAT
1300 HAVE_LCHMOD
1301 HAVE_FUTIMENS
1302 HAVE_FSTATAT
1303 HAVE_FCHMODAT
1304 GNULIB_UTIMENSAT
1305 GNULIB_STAT
1306 GNULIB_MKNODAT
1307 GNULIB_MKNOD
1308 GNULIB_MKFIFOAT
1309 GNULIB_MKFIFO
1310 GNULIB_MKDIRAT
1311 GNULIB_LSTAT
1312 GNULIB_LCHMOD
1313 GNULIB_FUTIMENS
1314 GNULIB_FSTATAT
1315 GNULIB_FSTAT
1316 GNULIB_FCHMODAT
1317 REPLACE_ITOLD
1318 GL_GENERATE_FLOAT_H_FALSE
1319 GL_GENERATE_FLOAT_H_TRUE
1320 FLOAT_H
1321 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1322 NEXT_FLOAT_H
1323 EOVERFLOW_VALUE
1324 EOVERFLOW_HIDDEN
1325 ENOLINK_VALUE
1326 ENOLINK_HIDDEN
1327 EMULTIHOP_VALUE
1328 EMULTIHOP_HIDDEN
1329 GL_GENERATE_ERRNO_H_FALSE
1330 GL_GENERATE_ERRNO_H_TRUE
1331 ERRNO_H
1332 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1333 NEXT_ERRNO_H
1334 PRAGMA_COLUMNS
1335 PRAGMA_SYSTEM_HEADER
1336 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1337 INCLUDE_NEXT
1338 GL_GENERATE_BYTESWAP_H_FALSE
1339 GL_GENERATE_BYTESWAP_H_TRUE
1340 BYTESWAP_H
1341 GL_GENERATE_ALLOCA_H_FALSE
1342 GL_GENERATE_ALLOCA_H_TRUE
1343 ALLOCA_H
1344 ALLOCA
1345 LTALLOCA
1346 GL_COND_LIBTOOL_FALSE
1347 GL_COND_LIBTOOL_TRUE
1348 LIBICONV_PREFIX
1349 HAVE_LIBICONV
1350 LIBPTHREAD_PREFIX
1351 LTLIBPTHREAD
1352 LIBPTHREAD
1353 HAVE_LIBPTHREAD
1354 LIBRT_PREFIX
1355 LTLIBRT
1356 LIBRT
1357 HAVE_LIBRT
1358 HAVE_FORK_FALSE
1359 HAVE_FORK_TRUE
1360 POSUB
1361 LTLIBINTL
1362 LIBINTL
1363 INTLLIBS
1364 LTLIBICONV
1365 LIBICONV
1366 INTL_MACOSX_LIBS
1367 XGETTEXT_EXTRA_OPTIONS
1368 MSGMERGE
1369 XGETTEXT_015
1370 XGETTEXT
1371 GMSGFMT_015
1372 MSGFMT_015
1373 GMSGFMT
1374 MSGFMT
1375 GETTEXT_MACRO_VERSION
1376 USE_NLS
1377 GTK_DOC_USE_REBASE_FALSE
1378 GTK_DOC_USE_REBASE_TRUE
1379 GTK_DOC_USE_LIBTOOL_FALSE
1380 GTK_DOC_USE_LIBTOOL_TRUE
1381 GTK_DOC_BUILD_PDF_FALSE
1382 GTK_DOC_BUILD_PDF_TRUE
1383 GTK_DOC_BUILD_HTML_FALSE
1384 GTK_DOC_BUILD_HTML_TRUE
1385 ENABLE_GTK_DOC_FALSE
1386 ENABLE_GTK_DOC_TRUE
1387 HTML_DIR
1388 GTKDOC_MKPDF
1389 GTKDOC_REBASE
1390 GTKDOC_CHECK
1391 ENABLE_TESTS_FALSE
1392 ENABLE_TESTS_TRUE
1393 ENABLE_DOC_FALSE
1394 ENABLE_DOC_TRUE
1395 LIBSOCKET
1396 HAVE_WINSOCK2_H
1397 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1398 UNISTD_H_HAVE_WINSOCK2_H
1399 REPLACE_WRITE
1400 REPLACE_USLEEP
1401 REPLACE_UNLINKAT
1402 REPLACE_UNLINK
1403 REPLACE_TTYNAME_R
1404 REPLACE_SYMLINK
1405 REPLACE_SLEEP
1406 REPLACE_RMDIR
1407 REPLACE_READLINK
1408 REPLACE_READ
1409 REPLACE_PWRITE
1410 REPLACE_PREAD
1411 REPLACE_LSEEK
1412 REPLACE_LINKAT
1413 REPLACE_LINK
1414 REPLACE_LCHOWN
1415 REPLACE_ISATTY
1416 REPLACE_GETPAGESIZE
1417 REPLACE_GETGROUPS
1418 REPLACE_GETLOGIN_R
1419 REPLACE_GETDTABLESIZE
1420 REPLACE_GETDOMAINNAME
1421 REPLACE_GETCWD
1422 REPLACE_FTRUNCATE
1423 REPLACE_FCHOWNAT
1424 REPLACE_DUP2
1425 REPLACE_DUP
1426 REPLACE_CLOSE
1427 REPLACE_CHOWN
1428 HAVE_SYS_PARAM_H
1429 HAVE_OS_H
1430 HAVE_DECL_TTYNAME_R
1431 HAVE_DECL_SETHOSTNAME
1432 HAVE_DECL_GETUSERSHELL
1433 HAVE_DECL_GETPAGESIZE
1434 HAVE_DECL_GETLOGIN_R
1435 HAVE_DECL_GETDOMAINNAME
1436 HAVE_DECL_FDATASYNC
1437 HAVE_DECL_FCHDIR
1438 HAVE_DECL_ENVIRON
1439 HAVE_USLEEP
1440 HAVE_UNLINKAT
1441 HAVE_SYMLINKAT
1442 HAVE_SYMLINK
1443 HAVE_SLEEP
1444 HAVE_SETHOSTNAME
1445 HAVE_READLINKAT
1446 HAVE_READLINK
1447 HAVE_PWRITE
1448 HAVE_PREAD
1449 HAVE_PIPE2
1450 HAVE_PIPE
1451 HAVE_LINKAT
1452 HAVE_LINK
1453 HAVE_LCHOWN
1454 HAVE_GROUP_MEMBER
1455 HAVE_GETPAGESIZE
1456 HAVE_GETLOGIN
1457 HAVE_GETHOSTNAME
1458 HAVE_GETGROUPS
1459 HAVE_GETDTABLESIZE
1460 HAVE_FTRUNCATE
1461 HAVE_FSYNC
1462 HAVE_FDATASYNC
1463 HAVE_FCHOWNAT
1464 HAVE_FCHDIR
1465 HAVE_FACCESSAT
1466 HAVE_EUIDACCESS
1467 HAVE_DUP3
1468 HAVE_DUP2
1469 HAVE_CHOWN
1470 GNULIB_WRITE
1471 GNULIB_USLEEP
1472 GNULIB_UNLINKAT
1473 GNULIB_UNLINK
1474 GNULIB_UNISTD_H_SIGPIPE
1475 GNULIB_UNISTD_H_NONBLOCKING
1476 GNULIB_TTYNAME_R
1477 GNULIB_SYMLINKAT
1478 GNULIB_SYMLINK
1479 GNULIB_SLEEP
1480 GNULIB_SETHOSTNAME
1481 GNULIB_RMDIR
1482 GNULIB_READLINKAT
1483 GNULIB_READLINK
1484 GNULIB_READ
1485 GNULIB_PWRITE
1486 GNULIB_PREAD
1487 GNULIB_PIPE2
1488 GNULIB_PIPE
1489 GNULIB_LSEEK
1490 GNULIB_LINKAT
1491 GNULIB_LINK
1492 GNULIB_LCHOWN
1493 GNULIB_ISATTY
1494 GNULIB_GROUP_MEMBER
1495 GNULIB_GETUSERSHELL
1496 GNULIB_GETPAGESIZE
1497 GNULIB_GETLOGIN_R
1498 GNULIB_GETLOGIN
1499 GNULIB_GETHOSTNAME
1500 GNULIB_GETGROUPS
1501 GNULIB_GETDTABLESIZE
1502 GNULIB_GETDOMAINNAME
1503 GNULIB_GETCWD
1504 GNULIB_FTRUNCATE
1505 GNULIB_FSYNC
1506 GNULIB_FDATASYNC
1507 GNULIB_FCHOWNAT
1508 GNULIB_FCHDIR
1509 GNULIB_FACCESSAT
1510 GNULIB_EUIDACCESS
1511 GNULIB_ENVIRON
1512 GNULIB_DUP3
1513 GNULIB_DUP2
1514 GNULIB_DUP
1515 GNULIB_CLOSE
1516 GNULIB_CHOWN
1517 GNULIB_CHDIR
1518 ENABLE_OPENSSL_FALSE
1519 ENABLE_OPENSSL_TRUE
1520 ENABLE_SESSION_TICKETS_FALSE
1521 ENABLE_SESSION_TICKETS_TRUE
1522 ENABLE_OCSP_FALSE
1523 ENABLE_OCSP_TRUE
1524 ENABLE_OPENPGP_FALSE
1525 ENABLE_OPENPGP_TRUE
1526 ENABLE_ECDHE_FALSE
1527 ENABLE_ECDHE_TRUE
1528 ENABLE_DHE_FALSE
1529 ENABLE_DHE_TRUE
1530 ENABLE_ANON_FALSE
1531 ENABLE_ANON_TRUE
1532 ENABLE_PSK_FALSE
1533 ENABLE_PSK_TRUE
1534 ENABLE_SRP_FALSE
1535 ENABLE_SRP_TRUE
1536 ENABLE_HEARTBEAT_FALSE
1537 ENABLE_HEARTBEAT_TRUE
1538 ENABLE_RSA_EXPORT_FALSE
1539 ENABLE_RSA_EXPORT_TRUE
1540 ENABLE_ALPN_FALSE
1541 ENABLE_ALPN_TRUE
1542 ENABLE_DTLS_SRTP_FALSE
1543 ENABLE_DTLS_SRTP_TRUE
1544 ENABLE_MINITASN1_FALSE
1545 ENABLE_MINITASN1_TRUE
1546 LIBTASN1_LIBS
1547 LIBTASN1_CFLAGS
1548 GMP_LIBS
1549 GMP_CFLAGS
1550 ENABLE_NETTLE_FALSE
1551 ENABLE_NETTLE_TRUE
1552 HOGWEED_LIBS
1553 HOGWEED_CFLAGS
1554 NETTLE_LIBS
1555 NETTLE_CFLAGS
1556 PKG_CONFIG
1557 DLL_VERSION
1558 CRYWRAP_PATCHLEVEL
1559 CXX_LT_AGE
1560 CXX_LT_REVISION
1561 CXX_LT_CURRENT
1562 LT_XSSL_AGE
1563 LT_XSSL_REVISION
1564 LT_XSSL_CURRENT
1565 LT_DANE_AGE
1566 LT_DANE_REVISION
1567 LT_DANE_CURRENT
1568 LT_SSL_AGE
1569 LT_SSL_REVISION
1570 LT_SSL_CURRENT
1571 LT_AGE
1572 LT_REVISION
1573 LT_CURRENT
1574 HAVE_GCC_FALSE
1575 HAVE_GCC_TRUE
1576 HAVE_GCC_GNU89_INLINE_OPTION_FALSE
1577 HAVE_GCC_GNU89_INLINE_OPTION_TRUE
1578 ASM_X86_FALSE
1579 ASM_X86_TRUE
1580 ASM_X86_32_FALSE
1581 ASM_X86_32_TRUE
1582 ASM_X86_64_FALSE
1583 ASM_X86_64_TRUE
1584 ELF_FALSE
1585 ELF_TRUE
1586 MACOSX_FALSE
1587 MACOSX_TRUE
1588 WINDOWS_FALSE
1589 WINDOWS_TRUE
1590 WANT_TEST_SUITE_FALSE
1591 WANT_TEST_SUITE_TRUE
1592 ENABLE_CXX_FALSE
1593 ENABLE_CXX_TRUE
1594 NUMBER_VERSION
1595 PATCH_VERSION
1596 MINOR_VERSION
1597 MAJOR_VERSION
1598 AUTOGEN
1599 YFLAGS
1600 YACC
1601 am__fastdepCXX_FALSE
1602 am__fastdepCXX_TRUE
1603 CXXDEPMODE
1604 ac_ct_CXX
1605 CXXFLAGS
1606 CXX
1607 ac_ct_AR
1608 am__fastdepCCAS_FALSE
1609 am__fastdepCCAS_TRUE
1610 CCASDEPMODE
1611 CCASFLAGS
1612 CCAS
1613 RANLIB
1614 ARFLAGS
1615 AR
1616 EGREP
1617 GREP
1618 CPP
1619 am__fastdepCC_FALSE
1620 am__fastdepCC_TRUE
1621 CCDEPMODE
1622 am__nodep
1623 AMDEPBACKSLASH
1624 AMDEP_FALSE
1625 AMDEP_TRUE
1626 am__quote
1627 am__include
1628 DEPDIR
1629 OBJEXT
1630 EXEEXT
1631 ac_ct_CC
1632 CPPFLAGS
1633 LDFLAGS
1634 CFLAGS
1635 CC
1636 AM_BACKSLASH
1637 AM_DEFAULT_VERBOSITY
1638 AM_DEFAULT_V
1639 AM_V
1640 am__untar
1641 am__tar
1642 AMTAR
1643 am__leading_dot
1644 SET_MAKE
1645 AWK
1646 mkdir_p
1647 MKDIR_P
1648 INSTALL_STRIP_PROGRAM
1649 STRIP
1650 install_sh
1651 MAKEINFO
1652 AUTOHEADER
1653 AUTOMAKE
1654 AUTOCONF
1655 ACLOCAL
1656 VERSION
1657 PACKAGE
1658 CYGPATH_W
1659 am__isrc
1660 INSTALL_DATA
1661 INSTALL_SCRIPT
1662 INSTALL_PROGRAM
1663 host_os
1664 host_vendor
1665 host_cpu
1666 host
1667 build_os
1668 build_vendor
1669 build_cpu
1670 build
1671 target_alias
1672 host_alias
1673 build_alias
1674 LIBS
1675 ECHO_T
1676 ECHO_N
1677 ECHO_C
1678 DEFS
1679 mandir
1680 localedir
1681 libdir
1682 psdir
1683 pdfdir
1684 dvidir
1685 htmldir
1686 infodir
1687 docdir
1688 oldincludedir
1689 includedir
1690 localstatedir
1691 sharedstatedir
1692 sysconfdir
1693 datadir
1694 datarootdir
1695 libexecdir
1696 sbindir
1697 bindir
1698 program_transform_name
1699 prefix
1700 exec_prefix
1701 PACKAGE_URL
1702 PACKAGE_BUGREPORT
1703 PACKAGE_STRING
1704 PACKAGE_VERSION
1705 PACKAGE_TARNAME
1706 PACKAGE_NAME
1707 PATH_SEPARATOR
1708 SHELL'
1709 ac_subst_files=''
1710 ac_user_opts='
1711 enable_option_checking
1712 enable_silent_rules
1713 enable_dependency_tracking
1714 enable_largefile
1715 enable_cxx
1716 enable_hardware_acceleration
1717 with_nettle_mini
1718 with_included_libtasn1
1719 enable_dtls_srtp_support
1720 enable_alpn_support
1721 enable_rsa_export
1722 enable_heartbeat_support
1723 enable_srp_authentication
1724 enable_psk_authentication
1725 enable_anon_authentication
1726 enable_dhe
1727 enable_ecdhe
1728 enable_openpgp_authentication
1729 enable_cryptodev
1730 enable_ocsp
1731 enable_session_tickets
1732 enable_openssl_compatibility
1733 enable_doc
1734 enable_tests
1735 with_html_dir
1736 enable_gtk_doc
1737 enable_gtk_doc_html
1738 enable_gtk_doc_pdf
1739 enable_nls
1740 with_gnu_ld
1741 enable_rpath
1742 with_libiconv_prefix
1743 with_libintl_prefix
1744 with_librt_prefix
1745 with_libpthread_prefix
1746 enable_ld_version_script
1747 enable_valgrind_tests
1748 enable_gcc_warnings
1749 enable_static
1750 enable_shared
1751 with_pic
1752 enable_fast_install
1753 with_sysroot
1754 enable_libtool_lock
1755 enable_self_checks
1756 enable_fips140_mode
1757 with_libdl_prefix
1758 enable_non_suiteb_curves
1759 enable_libdane
1760 with_unbound_root_key_file
1761 with_system_priority_file
1762 with_p11_kit
1763 with_tpm
1764 enable_local_libopts
1765 enable_libopts_install
1766 with_autoopts_config
1767 with_regex_header
1768 with_libregex
1769 with_libregex_cflags
1770 with_libregex_libs
1771 enable_optional_args
1772 with_zlib
1773 with_libz_prefix
1774 with_default_trust_store_pkcs11
1775 with_default_trust_store_file
1776 with_default_crl_file
1777 with_default_blacklist_file
1778 enable_guile
1779 with_guile_site_dir
1780 enable_crywrap
1781 '
1782       ac_precious_vars='build_alias
1783 host_alias
1784 target_alias
1785 CC
1786 CFLAGS
1787 LDFLAGS
1788 LIBS
1789 CPPFLAGS
1790 CPP
1791 CCAS
1792 CCASFLAGS
1793 CXX
1794 CXXFLAGS
1795 CCC
1796 YACC
1797 YFLAGS
1798 PKG_CONFIG
1799 NETTLE_CFLAGS
1800 NETTLE_LIBS
1801 HOGWEED_CFLAGS
1802 HOGWEED_LIBS
1803 GMP_CFLAGS
1804 GMP_LIBS
1805 LIBTASN1_CFLAGS
1806 LIBTASN1_LIBS
1807 CXXCPP
1808 P11_KIT_CFLAGS
1809 P11_KIT_LIBS
1810 LIBIDN_CFLAGS
1811 LIBIDN_LIBS'
1812
1813
1814 # Initialize some variables set by options.
1815 ac_init_help=
1816 ac_init_version=false
1817 ac_unrecognized_opts=
1818 ac_unrecognized_sep=
1819 # The variables have the same names as the options, with
1820 # dashes changed to underlines.
1821 cache_file=/dev/null
1822 exec_prefix=NONE
1823 no_create=
1824 no_recursion=
1825 prefix=NONE
1826 program_prefix=NONE
1827 program_suffix=NONE
1828 program_transform_name=s,x,x,
1829 silent=
1830 site=
1831 srcdir=
1832 verbose=
1833 x_includes=NONE
1834 x_libraries=NONE
1835
1836 # Installation directory options.
1837 # These are left unexpanded so users can "make install exec_prefix=/foo"
1838 # and all the variables that are supposed to be based on exec_prefix
1839 # by default will actually change.
1840 # Use braces instead of parens because sh, perl, etc. also accept them.
1841 # (The list follows the same order as the GNU Coding Standards.)
1842 bindir='${exec_prefix}/bin'
1843 sbindir='${exec_prefix}/sbin'
1844 libexecdir='${exec_prefix}/libexec'
1845 datarootdir='${prefix}/share'
1846 datadir='${datarootdir}'
1847 sysconfdir='${prefix}/etc'
1848 sharedstatedir='${prefix}/com'
1849 localstatedir='${prefix}/var'
1850 includedir='${prefix}/include'
1851 oldincludedir='/usr/include'
1852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1853 infodir='${datarootdir}/info'
1854 htmldir='${docdir}'
1855 dvidir='${docdir}'
1856 pdfdir='${docdir}'
1857 psdir='${docdir}'
1858 libdir='${exec_prefix}/lib'
1859 localedir='${datarootdir}/locale'
1860 mandir='${datarootdir}/man'
1861
1862 ac_prev=
1863 ac_dashdash=
1864 for ac_option
1865 do
1866   # If the previous option needs an argument, assign it.
1867   if test -n "$ac_prev"; then
1868     eval $ac_prev=\$ac_option
1869     ac_prev=
1870     continue
1871   fi
1872
1873   case $ac_option in
1874   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1875   *=)   ac_optarg= ;;
1876   *)    ac_optarg=yes ;;
1877   esac
1878
1879   # Accept the important Cygnus configure options, so we can diagnose typos.
1880
1881   case $ac_dashdash$ac_option in
1882   --)
1883     ac_dashdash=yes ;;
1884
1885   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1886     ac_prev=bindir ;;
1887   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1888     bindir=$ac_optarg ;;
1889
1890   -build | --build | --buil | --bui | --bu)
1891     ac_prev=build_alias ;;
1892   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1893     build_alias=$ac_optarg ;;
1894
1895   -cache-file | --cache-file | --cache-fil | --cache-fi \
1896   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1897     ac_prev=cache_file ;;
1898   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1899   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1900     cache_file=$ac_optarg ;;
1901
1902   --config-cache | -C)
1903     cache_file=config.cache ;;
1904
1905   -datadir | --datadir | --datadi | --datad)
1906     ac_prev=datadir ;;
1907   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1908     datadir=$ac_optarg ;;
1909
1910   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1911   | --dataroo | --dataro | --datar)
1912     ac_prev=datarootdir ;;
1913   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1914   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1915     datarootdir=$ac_optarg ;;
1916
1917   -disable-* | --disable-*)
1918     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1919     # Reject names that are not valid shell variable names.
1920     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1921       as_fn_error $? "invalid feature name: $ac_useropt"
1922     ac_useropt_orig=$ac_useropt
1923     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1924     case $ac_user_opts in
1925       *"
1926 "enable_$ac_useropt"
1927 "*) ;;
1928       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1929          ac_unrecognized_sep=', ';;
1930     esac
1931     eval enable_$ac_useropt=no ;;
1932
1933   -docdir | --docdir | --docdi | --doc | --do)
1934     ac_prev=docdir ;;
1935   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1936     docdir=$ac_optarg ;;
1937
1938   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1939     ac_prev=dvidir ;;
1940   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1941     dvidir=$ac_optarg ;;
1942
1943   -enable-* | --enable-*)
1944     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1945     # Reject names that are not valid shell variable names.
1946     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1947       as_fn_error $? "invalid feature name: $ac_useropt"
1948     ac_useropt_orig=$ac_useropt
1949     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1950     case $ac_user_opts in
1951       *"
1952 "enable_$ac_useropt"
1953 "*) ;;
1954       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1955          ac_unrecognized_sep=', ';;
1956     esac
1957     eval enable_$ac_useropt=\$ac_optarg ;;
1958
1959   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1960   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1961   | --exec | --exe | --ex)
1962     ac_prev=exec_prefix ;;
1963   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1964   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1965   | --exec=* | --exe=* | --ex=*)
1966     exec_prefix=$ac_optarg ;;
1967
1968   -gas | --gas | --ga | --g)
1969     # Obsolete; use --with-gas.
1970     with_gas=yes ;;
1971
1972   -help | --help | --hel | --he | -h)
1973     ac_init_help=long ;;
1974   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1975     ac_init_help=recursive ;;
1976   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1977     ac_init_help=short ;;
1978
1979   -host | --host | --hos | --ho)
1980     ac_prev=host_alias ;;
1981   -host=* | --host=* | --hos=* | --ho=*)
1982     host_alias=$ac_optarg ;;
1983
1984   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1985     ac_prev=htmldir ;;
1986   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1987   | --ht=*)
1988     htmldir=$ac_optarg ;;
1989
1990   -includedir | --includedir | --includedi | --included | --include \
1991   | --includ | --inclu | --incl | --inc)
1992     ac_prev=includedir ;;
1993   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1994   | --includ=* | --inclu=* | --incl=* | --inc=*)
1995     includedir=$ac_optarg ;;
1996
1997   -infodir | --infodir | --infodi | --infod | --info | --inf)
1998     ac_prev=infodir ;;
1999   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2000     infodir=$ac_optarg ;;
2001
2002   -libdir | --libdir | --libdi | --libd)
2003     ac_prev=libdir ;;
2004   -libdir=* | --libdir=* | --libdi=* | --libd=*)
2005     libdir=$ac_optarg ;;
2006
2007   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2008   | --libexe | --libex | --libe)
2009     ac_prev=libexecdir ;;
2010   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2011   | --libexe=* | --libex=* | --libe=*)
2012     libexecdir=$ac_optarg ;;
2013
2014   -localedir | --localedir | --localedi | --localed | --locale)
2015     ac_prev=localedir ;;
2016   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2017     localedir=$ac_optarg ;;
2018
2019   -localstatedir | --localstatedir | --localstatedi | --localstated \
2020   | --localstate | --localstat | --localsta | --localst | --locals)
2021     ac_prev=localstatedir ;;
2022   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2023   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2024     localstatedir=$ac_optarg ;;
2025
2026   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2027     ac_prev=mandir ;;
2028   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2029     mandir=$ac_optarg ;;
2030
2031   -nfp | --nfp | --nf)
2032     # Obsolete; use --without-fp.
2033     with_fp=no ;;
2034
2035   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2036   | --no-cr | --no-c | -n)
2037     no_create=yes ;;
2038
2039   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2040   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2041     no_recursion=yes ;;
2042
2043   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2044   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2045   | --oldin | --oldi | --old | --ol | --o)
2046     ac_prev=oldincludedir ;;
2047   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2048   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2049   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2050     oldincludedir=$ac_optarg ;;
2051
2052   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2053     ac_prev=prefix ;;
2054   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2055     prefix=$ac_optarg ;;
2056
2057   -program-prefix | --program-prefix | --program-prefi | --program-pref \
2058   | --program-pre | --program-pr | --program-p)
2059     ac_prev=program_prefix ;;
2060   -program-prefix=* | --program-prefix=* | --program-prefi=* \
2061   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2062     program_prefix=$ac_optarg ;;
2063
2064   -program-suffix | --program-suffix | --program-suffi | --program-suff \
2065   | --program-suf | --program-su | --program-s)
2066     ac_prev=program_suffix ;;
2067   -program-suffix=* | --program-suffix=* | --program-suffi=* \
2068   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2069     program_suffix=$ac_optarg ;;
2070
2071   -program-transform-name | --program-transform-name \
2072   | --program-transform-nam | --program-transform-na \
2073   | --program-transform-n | --program-transform- \
2074   | --program-transform | --program-transfor \
2075   | --program-transfo | --program-transf \
2076   | --program-trans | --program-tran \
2077   | --progr-tra | --program-tr | --program-t)
2078     ac_prev=program_transform_name ;;
2079   -program-transform-name=* | --program-transform-name=* \
2080   | --program-transform-nam=* | --program-transform-na=* \
2081   | --program-transform-n=* | --program-transform-=* \
2082   | --program-transform=* | --program-transfor=* \
2083   | --program-transfo=* | --program-transf=* \
2084   | --program-trans=* | --program-tran=* \
2085   | --progr-tra=* | --program-tr=* | --program-t=*)
2086     program_transform_name=$ac_optarg ;;
2087
2088   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2089     ac_prev=pdfdir ;;
2090   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2091     pdfdir=$ac_optarg ;;
2092
2093   -psdir | --psdir | --psdi | --psd | --ps)
2094     ac_prev=psdir ;;
2095   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2096     psdir=$ac_optarg ;;
2097
2098   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2099   | -silent | --silent | --silen | --sile | --sil)
2100     silent=yes ;;
2101
2102   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2103     ac_prev=sbindir ;;
2104   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2105   | --sbi=* | --sb=*)
2106     sbindir=$ac_optarg ;;
2107
2108   -sharedstatedir | --sharedstatedir | --sharedstatedi \
2109   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2110   | --sharedst | --shareds | --shared | --share | --shar \
2111   | --sha | --sh)
2112     ac_prev=sharedstatedir ;;
2113   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2114   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2115   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2116   | --sha=* | --sh=*)
2117     sharedstatedir=$ac_optarg ;;
2118
2119   -site | --site | --sit)
2120     ac_prev=site ;;
2121   -site=* | --site=* | --sit=*)
2122     site=$ac_optarg ;;
2123
2124   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2125     ac_prev=srcdir ;;
2126   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2127     srcdir=$ac_optarg ;;
2128
2129   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2130   | --syscon | --sysco | --sysc | --sys | --sy)
2131     ac_prev=sysconfdir ;;
2132   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2133   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2134     sysconfdir=$ac_optarg ;;
2135
2136   -target | --target | --targe | --targ | --tar | --ta | --t)
2137     ac_prev=target_alias ;;
2138   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2139     target_alias=$ac_optarg ;;
2140
2141   -v | -verbose | --verbose | --verbos | --verbo | --verb)
2142     verbose=yes ;;
2143
2144   -version | --version | --versio | --versi | --vers | -V)
2145     ac_init_version=: ;;
2146
2147   -with-* | --with-*)
2148     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2149     # Reject names that are not valid shell variable names.
2150     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2151       as_fn_error $? "invalid package name: $ac_useropt"
2152     ac_useropt_orig=$ac_useropt
2153     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2154     case $ac_user_opts in
2155       *"
2156 "with_$ac_useropt"
2157 "*) ;;
2158       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2159          ac_unrecognized_sep=', ';;
2160     esac
2161     eval with_$ac_useropt=\$ac_optarg ;;
2162
2163   -without-* | --without-*)
2164     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2165     # Reject names that are not valid shell variable names.
2166     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2167       as_fn_error $? "invalid package name: $ac_useropt"
2168     ac_useropt_orig=$ac_useropt
2169     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2170     case $ac_user_opts in
2171       *"
2172 "with_$ac_useropt"
2173 "*) ;;
2174       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2175          ac_unrecognized_sep=', ';;
2176     esac
2177     eval with_$ac_useropt=no ;;
2178
2179   --x)
2180     # Obsolete; use --with-x.
2181     with_x=yes ;;
2182
2183   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2184   | --x-incl | --x-inc | --x-in | --x-i)
2185     ac_prev=x_includes ;;
2186   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2187   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2188     x_includes=$ac_optarg ;;
2189
2190   -x-libraries | --x-libraries | --x-librarie | --x-librari \
2191   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2192     ac_prev=x_libraries ;;
2193   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2194   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2195     x_libraries=$ac_optarg ;;
2196
2197   -*) as_fn_error $? "unrecognized option: \`$ac_option'
2198 Try \`$0 --help' for more information"
2199     ;;
2200
2201   *=*)
2202     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2203     # Reject names that are not valid shell variable names.
2204     case $ac_envvar in #(
2205       '' | [0-9]* | *[!_$as_cr_alnum]* )
2206       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2207     esac
2208     eval $ac_envvar=\$ac_optarg
2209     export $ac_envvar ;;
2210
2211   *)
2212     # FIXME: should be removed in autoconf 3.0.
2213     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2214     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2215       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2216     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2217     ;;
2218
2219   esac
2220 done
2221
2222 if test -n "$ac_prev"; then
2223   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2224   as_fn_error $? "missing argument to $ac_option"
2225 fi
2226
2227 if test -n "$ac_unrecognized_opts"; then
2228   case $enable_option_checking in
2229     no) ;;
2230     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2231     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2232   esac
2233 fi
2234
2235 # Check all directory arguments for consistency.
2236 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2237                 datadir sysconfdir sharedstatedir localstatedir includedir \
2238                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2239                 libdir localedir mandir
2240 do
2241   eval ac_val=\$$ac_var
2242   # Remove trailing slashes.
2243   case $ac_val in
2244     */ )
2245       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2246       eval $ac_var=\$ac_val;;
2247   esac
2248   # Be sure to have absolute directory names.
2249   case $ac_val in
2250     [\\/$]* | ?:[\\/]* )  continue;;
2251     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2252   esac
2253   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2254 done
2255
2256 # There might be people who depend on the old broken behavior: `$host'
2257 # used to hold the argument of --host etc.
2258 # FIXME: To remove some day.
2259 build=$build_alias
2260 host=$host_alias
2261 target=$target_alias
2262
2263 # FIXME: To remove some day.
2264 if test "x$host_alias" != x; then
2265   if test "x$build_alias" = x; then
2266     cross_compiling=maybe
2267   elif test "x$build_alias" != "x$host_alias"; then
2268     cross_compiling=yes
2269   fi
2270 fi
2271
2272 ac_tool_prefix=
2273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2274
2275 test "$silent" = yes && exec 6>/dev/null
2276
2277
2278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2279 ac_ls_di=`ls -di .` &&
2280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2281   as_fn_error $? "working directory cannot be determined"
2282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2283   as_fn_error $? "pwd does not report name of working directory"
2284
2285
2286 # Find the source files, if location was not specified.
2287 if test -z "$srcdir"; then
2288   ac_srcdir_defaulted=yes
2289   # Try the directory containing this script, then the parent directory.
2290   ac_confdir=`$as_dirname -- "$as_myself" ||
2291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2292          X"$as_myself" : 'X\(//\)[^/]' \| \
2293          X"$as_myself" : 'X\(//\)$' \| \
2294          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2295 $as_echo X"$as_myself" |
2296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2297             s//\1/
2298             q
2299           }
2300           /^X\(\/\/\)[^/].*/{
2301             s//\1/
2302             q
2303           }
2304           /^X\(\/\/\)$/{
2305             s//\1/
2306             q
2307           }
2308           /^X\(\/\).*/{
2309             s//\1/
2310             q
2311           }
2312           s/.*/./; q'`
2313   srcdir=$ac_confdir
2314   if test ! -r "$srcdir/$ac_unique_file"; then
2315     srcdir=..
2316   fi
2317 else
2318   ac_srcdir_defaulted=no
2319 fi
2320 if test ! -r "$srcdir/$ac_unique_file"; then
2321   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2322   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2323 fi
2324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2325 ac_abs_confdir=`(
2326         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2327         pwd)`
2328 # When building in place, set srcdir=.
2329 if test "$ac_abs_confdir" = "$ac_pwd"; then
2330   srcdir=.
2331 fi
2332 # Remove unnecessary trailing slashes from srcdir.
2333 # Double slashes in file names in object file debugging info
2334 # mess up M-x gdb in Emacs.
2335 case $srcdir in
2336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2337 esac
2338 for ac_var in $ac_precious_vars; do
2339   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2340   eval ac_env_${ac_var}_value=\$${ac_var}
2341   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2342   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2343 done
2344
2345 #
2346 # Report the --help message.
2347 #
2348 if test "$ac_init_help" = "long"; then
2349   # Omit some internal or obsolete options to make the list less imposing.
2350   # This message is too long to be a string in the A/UX 3.1 sh.
2351   cat <<_ACEOF
2352 \`configure' configures GnuTLS 3.3.5 to adapt to many kinds of systems.
2353
2354 Usage: $0 [OPTION]... [VAR=VALUE]...
2355
2356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2357 VAR=VALUE.  See below for descriptions of some of the useful variables.
2358
2359 Defaults for the options are specified in brackets.
2360
2361 Configuration:
2362   -h, --help              display this help and exit
2363       --help=short        display options specific to this package
2364       --help=recursive    display the short help of all the included packages
2365   -V, --version           display version information and exit
2366   -q, --quiet, --silent   do not print \`checking ...' messages
2367       --cache-file=FILE   cache test results in FILE [disabled]
2368   -C, --config-cache      alias for \`--cache-file=config.cache'
2369   -n, --no-create         do not create output files
2370       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2371
2372 Installation directories:
2373   --prefix=PREFIX         install architecture-independent files in PREFIX
2374                           [$ac_default_prefix]
2375   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2376                           [PREFIX]
2377
2378 By default, \`make install' will install all the files in
2379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2381 for instance \`--prefix=\$HOME'.
2382
2383 For better control, use the options below.
2384
2385 Fine tuning of the installation directories:
2386   --bindir=DIR            user executables [EPREFIX/bin]
2387   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2388   --libexecdir=DIR        program executables [EPREFIX/libexec]
2389   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2390   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2391   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2392   --libdir=DIR            object code libraries [EPREFIX/lib]
2393   --includedir=DIR        C header files [PREFIX/include]
2394   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2395   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2396   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2397   --infodir=DIR           info documentation [DATAROOTDIR/info]
2398   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2399   --mandir=DIR            man documentation [DATAROOTDIR/man]
2400   --docdir=DIR            documentation root [DATAROOTDIR/doc/gnutls]
2401   --htmldir=DIR           html documentation [DOCDIR]
2402   --dvidir=DIR            dvi documentation [DOCDIR]
2403   --pdfdir=DIR            pdf documentation [DOCDIR]
2404   --psdir=DIR             ps documentation [DOCDIR]
2405 _ACEOF
2406
2407   cat <<\_ACEOF
2408
2409 Program names:
2410   --program-prefix=PREFIX            prepend PREFIX to installed program names
2411   --program-suffix=SUFFIX            append SUFFIX to installed program names
2412   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2413
2414 System types:
2415   --build=BUILD     configure for building on BUILD [guessed]
2416   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2417 _ACEOF
2418 fi
2419
2420 if test -n "$ac_init_help"; then
2421   case $ac_init_help in
2422      short | recursive ) echo "Configuration of GnuTLS 3.3.5:";;
2423    esac
2424   cat <<\_ACEOF
2425
2426 Optional Features:
2427   --disable-option-checking  ignore unrecognized --enable/--with options
2428   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2429   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2430   --enable-silent-rules   less verbose build output (undo: "make V=1")
2431   --disable-silent-rules  verbose build output (undo: "make V=0")
2432   --enable-dependency-tracking
2433                           do not reject slow dependency extractors
2434   --disable-dependency-tracking
2435                           speeds up one-time build
2436   --disable-largefile     omit support for large files
2437   --disable-cxx           unconditionally disable the C++ library
2438   --disable-hardware-acceleration
2439                           unconditionally disable hardware acceleration
2440   --disable-dtls-srtp-support
2441                           disable support for the DTLS-SRTP extension
2442   --disable-alpn-support  disable support for the Application Layer Protocol
2443                           Negotiation (ALPN) extension
2444   --disable-rsa-export    disable the RSA-EXPORT support
2445   --disable-heartbeat-support
2446                           disable support for the heartbeat extension
2447   --disable-srp-authentication
2448                           disable the SRP authentication support
2449   --disable-psk-authentication
2450                           disable the PSK authentication support
2451   --disable-anon-authentication
2452                           disable the anonymous authentication support
2453   --disable-dhe           disable the DHE support
2454   --disable-ecdhe         disable the ECDHE support
2455   --disable-openpgp-authentication
2456                           disable the OpenPGP authentication support
2457   --enable-cryptodev      enable cryptodev support
2458   --disable-ocsp          disable OCSP support
2459   --disable-session-tickets
2460                           disable session tickets support
2461   --disable-openssl-compatibility
2462                           disable the OpenSSL compatibility support
2463   --disable-doc           don't generate any documentation
2464   --disable-tests         don't compile or run any tests
2465   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
2466   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
2467   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
2468   --disable-nls           do not use Native Language Support
2469   --disable-rpath         do not hardcode runtime library paths
2470   --enable-ld-version-script
2471                           enable linker version script (default is enabled
2472                           when possible)
2473   --enable-valgrind-tests run self tests under valgrind
2474   --enable-gcc-warnings   turn on lots of GCC warnings (for developers)
2475   --enable-static[=PKGS]  build static libraries [default=no]
2476   --enable-shared[=PKGS]  build shared libraries [default=yes]
2477   --enable-fast-install[=PKGS]
2478                           optimize for fast installation [default=yes]
2479   --disable-libtool-lock  avoid locking (might break parallel builds)
2480   --enable-self-checks    enable self checking functionality
2481   --enable-fips140-mode   enable FIPS140-2 mode (implies self checks)
2482   --disable-non-suiteb-curves
2483                           disable curves not in SuiteB
2484   --disable-libdane       disable the built of libdane
2485   --disable-nls           disable nls support in libopts
2486   --enable-local-libopts  Use the supplied libopts tearoff code
2487   --enable-libopts-install
2488                           Install libopts with client installation
2489   --disable-optional-args not wanting optional option args
2490   --enable-guile          build GNU Guile bindings
2491   --disable-crywrap       unconditionally disable the crywrap TLS proxy
2492                           service
2493
2494 Optional Packages:
2495   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2496   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2497   --with-nettle-mini      Link against a mini-nettle (that includes mini-gmp)
2498   --with-included-libtasn1
2499                           use the included libtasn1
2500   --with-html-dir=PATH    path to installed docs
2501   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2502   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2503   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2504   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2505   --without-libintl-prefix     don't search for libintl in includedir and libdir
2506   --with-librt-prefix[=DIR]  search for librt in DIR/include and DIR/lib
2507   --without-librt-prefix     don't search for librt in includedir and libdir
2508   --with-libpthread-prefix[=DIR]  search for libpthread in DIR/include and DIR/lib
2509   --without-libpthread-prefix     don't search for libpthread in includedir and libdir
2510   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2511                           both]
2512   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2513   --with-sysroot=DIR Search for dependent libraries within DIR
2514                         (or the compiler's sysroot if not specified).
2515   --with-libdl-prefix[=DIR]  search for libdl in DIR/include and DIR/lib
2516   --without-libdl-prefix     don't search for libdl in includedir and libdir
2517   --with-unbound-root-key-file
2518                           specify the unbound root key file
2519   --with-system-priority-file
2520                           specify the system priority file
2521   --without-p11-kit       Build without p11-kit and PKCS#11 support
2522   --without-tpm           Disable TPM (trousers) support.
2523   --with-autoopts-config  specify the config-info script
2524   --with-regex-header     a reg expr header is specified
2525   --with-libregex         libregex installation prefix
2526   --with-libregex-cflags  libregex compile flags
2527   --with-libregex-libs    libregex link command arguments
2528   --without-zlib          disable zlib compression support
2529   --with-libz-prefix[=DIR]  search for libz in DIR/include and DIR/lib
2530   --without-libz-prefix     don't search for libz in includedir and libdir
2531   --with-default-trust-store-pkcs11=URI
2532                           use the given pkcs11 uri as default trust store
2533   --with-default-trust-store-file=FILE
2534                           use the given file default trust store
2535   --with-default-crl-file=FILE
2536                           use the given CRL file as default
2537   --with-default-blacklist-file=FILE
2538                           use the given certificate blacklist file as default
2539   --with-guile-site-dir   use the given directory as the Guile site (use with
2540                           care)
2541
2542 Some influential environment variables:
2543   CC          C compiler command
2544   CFLAGS      C compiler flags
2545   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2546               nonstandard directory <lib dir>
2547   LIBS        libraries to pass to the linker, e.g. -l<library>
2548   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2549               you have headers in a nonstandard directory <include dir>
2550   CPP         C preprocessor
2551   CCAS        assembler compiler command (defaults to CC)
2552   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2553   CXX         C++ compiler command
2554   CXXFLAGS    C++ compiler flags
2555   YACC        The `Yet Another Compiler Compiler' implementation to use.
2556               Defaults to the first program found out of: `bison -y', `byacc',
2557               `yacc'.
2558   YFLAGS      The list of arguments that will be passed by default to $YACC.
2559               This script will default YFLAGS to the empty string to avoid a
2560               default value of `-d' given by some make applications.
2561   PKG_CONFIG  path to pkg-config utility
2562   NETTLE_CFLAGS
2563               C compiler flags for NETTLE, overriding pkg-config
2564   NETTLE_LIBS linker flags for NETTLE, overriding pkg-config
2565   HOGWEED_CFLAGS
2566               C compiler flags for HOGWEED, overriding pkg-config
2567   HOGWEED_LIBS
2568               linker flags for HOGWEED, overriding pkg-config
2569   GMP_CFLAGS  C compiler flags for gmp
2570   GMP_LIBS    linker flags for gmp
2571   LIBTASN1_CFLAGS
2572               C compiler flags for LIBTASN1, overriding pkg-config
2573   LIBTASN1_LIBS
2574               linker flags for LIBTASN1, overriding pkg-config
2575   CXXCPP      C++ preprocessor
2576   P11_KIT_CFLAGS
2577               C compiler flags for P11_KIT, overriding pkg-config
2578   P11_KIT_LIBS
2579               linker flags for P11_KIT, overriding pkg-config
2580   LIBIDN_CFLAGS
2581               C compiler flags for LIBIDN, overriding pkg-config
2582   LIBIDN_LIBS linker flags for LIBIDN, overriding pkg-config
2583
2584 Use these variables to override the choices made by `configure' or to help
2585 it to find libraries and programs with nonstandard names/locations.
2586
2587 Report bugs to <bugs@gnutls.org>.
2588 _ACEOF
2589 ac_status=$?
2590 fi
2591
2592 if test "$ac_init_help" = "recursive"; then
2593   # If there are subdirs, report their specific --help.
2594   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2595     test -d "$ac_dir" ||
2596       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2597       continue
2598     ac_builddir=.
2599
2600 case "$ac_dir" in
2601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2602 *)
2603   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2604   # A ".." for each directory in $ac_dir_suffix.
2605   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2606   case $ac_top_builddir_sub in
2607   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2608   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2609   esac ;;
2610 esac
2611 ac_abs_top_builddir=$ac_pwd
2612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2613 # for backward compatibility:
2614 ac_top_builddir=$ac_top_build_prefix
2615
2616 case $srcdir in
2617   .)  # We are building in place.
2618     ac_srcdir=.
2619     ac_top_srcdir=$ac_top_builddir_sub
2620     ac_abs_top_srcdir=$ac_pwd ;;
2621   [\\/]* | ?:[\\/]* )  # Absolute name.
2622     ac_srcdir=$srcdir$ac_dir_suffix;
2623     ac_top_srcdir=$srcdir
2624     ac_abs_top_srcdir=$srcdir ;;
2625   *) # Relative name.
2626     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2627     ac_top_srcdir=$ac_top_build_prefix$srcdir
2628     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2629 esac
2630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2631
2632     cd "$ac_dir" || { ac_status=$?; continue; }
2633     # Check for guested configure.
2634     if test -f "$ac_srcdir/configure.gnu"; then
2635       echo &&
2636       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2637     elif test -f "$ac_srcdir/configure"; then
2638       echo &&
2639       $SHELL "$ac_srcdir/configure" --help=recursive
2640     else
2641       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2642     fi || ac_status=$?
2643     cd "$ac_pwd" || { ac_status=$?; break; }
2644   done
2645 fi
2646
2647 test -n "$ac_init_help" && exit $ac_status
2648 if $ac_init_version; then
2649   cat <<\_ACEOF
2650 GnuTLS configure 3.3.5
2651 generated by GNU Autoconf 2.69
2652
2653 Copyright (C) 2012 Free Software Foundation, Inc.
2654 This configure script is free software; the Free Software Foundation
2655 gives unlimited permission to copy, distribute and modify it.
2656 _ACEOF
2657   exit
2658 fi
2659
2660 ## ------------------------ ##
2661 ## Autoconf initialization. ##
2662 ## ------------------------ ##
2663
2664 # ac_fn_c_try_compile LINENO
2665 # --------------------------
2666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2667 ac_fn_c_try_compile ()
2668 {
2669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670   rm -f conftest.$ac_objext
2671   if { { ac_try="$ac_compile"
2672 case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2677 $as_echo "$ac_try_echo"; } >&5
2678   (eval "$ac_compile") 2>conftest.err
2679   ac_status=$?
2680   if test -s conftest.err; then
2681     grep -v '^ *+' conftest.err >conftest.er1
2682     cat conftest.er1 >&5
2683     mv -f conftest.er1 conftest.err
2684   fi
2685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2686   test $ac_status = 0; } && {
2687          test -z "$ac_c_werror_flag" ||
2688          test ! -s conftest.err
2689        } && test -s conftest.$ac_objext; then :
2690   ac_retval=0
2691 else
2692   $as_echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2694
2695         ac_retval=1
2696 fi
2697   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2698   as_fn_set_status $ac_retval
2699
2700 } # ac_fn_c_try_compile
2701
2702 # ac_fn_c_try_cpp LINENO
2703 # ----------------------
2704 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2705 ac_fn_c_try_cpp ()
2706 {
2707   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2708   if { { ac_try="$ac_cpp conftest.$ac_ext"
2709 case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2714 $as_echo "$ac_try_echo"; } >&5
2715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2716   ac_status=$?
2717   if test -s conftest.err; then
2718     grep -v '^ *+' conftest.err >conftest.er1
2719     cat conftest.er1 >&5
2720     mv -f conftest.er1 conftest.err
2721   fi
2722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723   test $ac_status = 0; } > conftest.i && {
2724          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2725          test ! -s conftest.err
2726        }; then :
2727   ac_retval=0
2728 else
2729   $as_echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732     ac_retval=1
2733 fi
2734   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2735   as_fn_set_status $ac_retval
2736
2737 } # ac_fn_c_try_cpp
2738
2739 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2740 # -------------------------------------------------------
2741 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2742 # the include files in INCLUDES and setting the cache variable VAR
2743 # accordingly.
2744 ac_fn_c_check_header_mongrel ()
2745 {
2746   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2747   if eval \${$3+:} false; then :
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2749 $as_echo_n "checking for $2... " >&6; }
2750 if eval \${$3+:} false; then :
2751   $as_echo_n "(cached) " >&6
2752 fi
2753 eval ac_res=\$$3
2754                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2755 $as_echo "$ac_res" >&6; }
2756 else
2757   # Is the header compilable?
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2759 $as_echo_n "checking $2 usability... " >&6; }
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h.  */
2762 $4
2763 #include <$2>
2764 _ACEOF
2765 if ac_fn_c_try_compile "$LINENO"; then :
2766   ac_header_compiler=yes
2767 else
2768   ac_header_compiler=no
2769 fi
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2772 $as_echo "$ac_header_compiler" >&6; }
2773
2774 # Is the header present?
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2776 $as_echo_n "checking $2 presence... " >&6; }
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h.  */
2779 #include <$2>
2780 _ACEOF
2781 if ac_fn_c_try_cpp "$LINENO"; then :
2782   ac_header_preproc=yes
2783 else
2784   ac_header_preproc=no
2785 fi
2786 rm -f conftest.err conftest.i conftest.$ac_ext
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2788 $as_echo "$ac_header_preproc" >&6; }
2789
2790 # So?  What about this header?
2791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2792   yes:no: )
2793     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2794 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2795     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2796 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2797     ;;
2798   no:yes:* )
2799     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2800 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2801     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2802 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2803     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2804 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2805     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2806 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2807     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2808 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2809 ( $as_echo "## ------------------------------ ##
2810 ## Report this to bugs@gnutls.org ##
2811 ## ------------------------------ ##"
2812      ) | sed "s/^/$as_me: WARNING:     /" >&2
2813     ;;
2814 esac
2815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2816 $as_echo_n "checking for $2... " >&6; }
2817 if eval \${$3+:} false; then :
2818   $as_echo_n "(cached) " >&6
2819 else
2820   eval "$3=\$ac_header_compiler"
2821 fi
2822 eval ac_res=\$$3
2823                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2824 $as_echo "$ac_res" >&6; }
2825 fi
2826   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2827
2828 } # ac_fn_c_check_header_mongrel
2829
2830 # ac_fn_c_try_run LINENO
2831 # ----------------------
2832 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2833 # that executables *can* be run.
2834 ac_fn_c_try_run ()
2835 {
2836   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2837   if { { ac_try="$ac_link"
2838 case "(($ac_try" in
2839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840   *) ac_try_echo=$ac_try;;
2841 esac
2842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2843 $as_echo "$ac_try_echo"; } >&5
2844   (eval "$ac_link") 2>&5
2845   ac_status=$?
2846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2847   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2848   { { case "(($ac_try" in
2849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850   *) ac_try_echo=$ac_try;;
2851 esac
2852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853 $as_echo "$ac_try_echo"; } >&5
2854   (eval "$ac_try") 2>&5
2855   ac_status=$?
2856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857   test $ac_status = 0; }; }; then :
2858   ac_retval=0
2859 else
2860   $as_echo "$as_me: program exited with status $ac_status" >&5
2861        $as_echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864        ac_retval=$ac_status
2865 fi
2866   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2867   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2868   as_fn_set_status $ac_retval
2869
2870 } # ac_fn_c_try_run
2871
2872 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2873 # -------------------------------------------------------
2874 # Tests whether HEADER exists and can be compiled using the include files in
2875 # INCLUDES, setting the cache variable VAR accordingly.
2876 ac_fn_c_check_header_compile ()
2877 {
2878   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2880 $as_echo_n "checking for $2... " >&6; }
2881 if eval \${$3+:} false; then :
2882   $as_echo_n "(cached) " >&6
2883 else
2884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885 /* end confdefs.h.  */
2886 $4
2887 #include <$2>
2888 _ACEOF
2889 if ac_fn_c_try_compile "$LINENO"; then :
2890   eval "$3=yes"
2891 else
2892   eval "$3=no"
2893 fi
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 fi
2896 eval ac_res=\$$3
2897                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2898 $as_echo "$ac_res" >&6; }
2899   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2900
2901 } # ac_fn_c_check_header_compile
2902
2903 # ac_fn_c_try_link LINENO
2904 # -----------------------
2905 # Try to link conftest.$ac_ext, and return whether this succeeded.
2906 ac_fn_c_try_link ()
2907 {
2908   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2909   rm -f conftest.$ac_objext conftest$ac_exeext
2910   if { { ac_try="$ac_link"
2911 case "(($ac_try" in
2912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913   *) ac_try_echo=$ac_try;;
2914 esac
2915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2916 $as_echo "$ac_try_echo"; } >&5
2917   (eval "$ac_link") 2>conftest.err
2918   ac_status=$?
2919   if test -s conftest.err; then
2920     grep -v '^ *+' conftest.err >conftest.er1
2921     cat conftest.er1 >&5
2922     mv -f conftest.er1 conftest.err
2923   fi
2924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925   test $ac_status = 0; } && {
2926          test -z "$ac_c_werror_flag" ||
2927          test ! -s conftest.err
2928        } && test -s conftest$ac_exeext && {
2929          test "$cross_compiling" = yes ||
2930          test -x conftest$ac_exeext
2931        }; then :
2932   ac_retval=0
2933 else
2934   $as_echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2936
2937         ac_retval=1
2938 fi
2939   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2940   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2941   # interfere with the next link command; also delete a directory that is
2942   # left behind by Apple's compiler.  We do this before executing the actions.
2943   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2944   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2945   as_fn_set_status $ac_retval
2946
2947 } # ac_fn_c_try_link
2948
2949 # ac_fn_cxx_try_compile LINENO
2950 # ----------------------------
2951 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2952 ac_fn_cxx_try_compile ()
2953 {
2954   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2955   rm -f conftest.$ac_objext
2956   if { { ac_try="$ac_compile"
2957 case "(($ac_try" in
2958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959   *) ac_try_echo=$ac_try;;
2960 esac
2961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2962 $as_echo "$ac_try_echo"; } >&5
2963   (eval "$ac_compile") 2>conftest.err
2964   ac_status=$?
2965   if test -s conftest.err; then
2966     grep -v '^ *+' conftest.err >conftest.er1
2967     cat conftest.er1 >&5
2968     mv -f conftest.er1 conftest.err
2969   fi
2970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971   test $ac_status = 0; } && {
2972          test -z "$ac_cxx_werror_flag" ||
2973          test ! -s conftest.err
2974        } && test -s conftest.$ac_objext; then :
2975   ac_retval=0
2976 else
2977   $as_echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979
2980         ac_retval=1
2981 fi
2982   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2983   as_fn_set_status $ac_retval
2984
2985 } # ac_fn_cxx_try_compile
2986
2987 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2988 # --------------------------------------------
2989 # Tries to find the compile-time value of EXPR in a program that includes
2990 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2991 # computed
2992 ac_fn_c_compute_int ()
2993 {
2994   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2995   if test "$cross_compiling" = yes; then
2996     # Depending upon the size, compute the lo and hi bounds.
2997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998 /* end confdefs.h.  */
2999 $4
3000 int
3001 main ()
3002 {
3003 static int test_array [1 - 2 * !(($2) >= 0)];
3004 test_array [0] = 0;
3005 return test_array [0];
3006
3007   ;
3008   return 0;
3009 }
3010 _ACEOF
3011 if ac_fn_c_try_compile "$LINENO"; then :
3012   ac_lo=0 ac_mid=0
3013   while :; do
3014     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015 /* end confdefs.h.  */
3016 $4
3017 int
3018 main ()
3019 {
3020 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3021 test_array [0] = 0;
3022 return test_array [0];
3023
3024   ;
3025   return 0;
3026 }
3027 _ACEOF
3028 if ac_fn_c_try_compile "$LINENO"; then :
3029   ac_hi=$ac_mid; break
3030 else
3031   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3032                         if test $ac_lo -le $ac_mid; then
3033                           ac_lo= ac_hi=
3034                           break
3035                         fi
3036                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3037 fi
3038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3039   done
3040 else
3041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h.  */
3043 $4
3044 int
3045 main ()
3046 {
3047 static int test_array [1 - 2 * !(($2) < 0)];
3048 test_array [0] = 0;
3049 return test_array [0];
3050
3051   ;
3052   return 0;
3053 }
3054 _ACEOF
3055 if ac_fn_c_try_compile "$LINENO"; then :
3056   ac_hi=-1 ac_mid=-1
3057   while :; do
3058     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h.  */
3060 $4
3061 int
3062 main ()
3063 {
3064 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3065 test_array [0] = 0;
3066 return test_array [0];
3067
3068   ;
3069   return 0;
3070 }
3071 _ACEOF
3072 if ac_fn_c_try_compile "$LINENO"; then :
3073   ac_lo=$ac_mid; break
3074 else
3075   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3076                         if test $ac_mid -le $ac_hi; then
3077                           ac_lo= ac_hi=
3078                           break
3079                         fi
3080                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3081 fi
3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083   done
3084 else
3085   ac_lo= ac_hi=
3086 fi
3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 fi
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 # Binary search between lo and hi bounds.
3091 while test "x$ac_lo" != "x$ac_hi"; do
3092   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
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_hi=$ac_mid
3109 else
3110   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3111 fi
3112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3113 done
3114 case $ac_lo in #((
3115 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3116 '') ac_retval=1 ;;
3117 esac
3118   else
3119     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h.  */
3121 $4
3122 static long int longval () { return $2; }
3123 static unsigned long int ulongval () { return $2; }
3124 #include <stdio.h>
3125 #include <stdlib.h>
3126 int
3127 main ()
3128 {
3129
3130   FILE *f = fopen ("conftest.val", "w");
3131   if (! f)
3132     return 1;
3133   if (($2) < 0)
3134     {
3135       long int i = longval ();
3136       if (i != ($2))
3137         return 1;
3138       fprintf (f, "%ld", i);
3139     }
3140   else
3141     {
3142       unsigned long int i = ulongval ();
3143       if (i != ($2))
3144         return 1;
3145       fprintf (f, "%lu", i);
3146     }
3147   /* Do not output a trailing newline, as this causes \r\n confusion
3148      on some platforms.  */
3149   return ferror (f) || fclose (f) != 0;
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 if ac_fn_c_try_run "$LINENO"; then :
3156   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3157 else
3158   ac_retval=1
3159 fi
3160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3161   conftest.$ac_objext conftest.beam conftest.$ac_ext
3162 rm -f conftest.val
3163
3164   fi
3165   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3166   as_fn_set_status $ac_retval
3167
3168 } # ac_fn_c_compute_int
3169
3170 # ac_fn_c_check_func LINENO FUNC VAR
3171 # ----------------------------------
3172 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3173 ac_fn_c_check_func ()
3174 {
3175   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3177 $as_echo_n "checking for $2... " >&6; }
3178 if eval \${$3+:} false; then :
3179   $as_echo_n "(cached) " >&6
3180 else
3181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h.  */
3183 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3185 #define $2 innocuous_$2
3186
3187 /* System header to define __stub macros and hopefully few prototypes,
3188     which can conflict with char $2 (); below.
3189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3190     <limits.h> exists even on freestanding compilers.  */
3191
3192 #ifdef __STDC__
3193 # include <limits.h>
3194 #else
3195 # include <assert.h>
3196 #endif
3197
3198 #undef $2
3199
3200 /* Override any GCC internal prototype to avoid an error.
3201    Use char because int might match the return type of a GCC
3202    builtin and then its argument prototype would still apply.  */
3203 #ifdef __cplusplus
3204 extern "C"
3205 #endif
3206 char $2 ();
3207 /* The GNU C library defines this for functions which it implements
3208     to always fail with ENOSYS.  Some functions are actually named
3209     something starting with __ and the normal name is an alias.  */
3210 #if defined __stub_$2 || defined __stub___$2
3211 choke me
3212 #endif
3213
3214 int
3215 main ()
3216 {
3217 return $2 ();
3218   ;
3219   return 0;
3220 }
3221 _ACEOF
3222 if ac_fn_c_try_link "$LINENO"; then :
3223   eval "$3=yes"
3224 else
3225   eval "$3=no"
3226 fi
3227 rm -f core conftest.err conftest.$ac_objext \
3228     conftest$ac_exeext conftest.$ac_ext
3229 fi
3230 eval ac_res=\$$3
3231                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3232 $as_echo "$ac_res" >&6; }
3233   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3234
3235 } # ac_fn_c_check_func
3236
3237 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3238 # -------------------------------------------
3239 # Tests whether TYPE exists after having included INCLUDES, setting cache
3240 # variable VAR accordingly.
3241 ac_fn_c_check_type ()
3242 {
3243   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3245 $as_echo_n "checking for $2... " >&6; }
3246 if eval \${$3+:} false; then :
3247   $as_echo_n "(cached) " >&6
3248 else
3249   eval "$3=no"
3250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h.  */
3252 $4
3253 int
3254 main ()
3255 {
3256 if (sizeof ($2))
3257          return 0;
3258   ;
3259   return 0;
3260 }
3261 _ACEOF
3262 if ac_fn_c_try_compile "$LINENO"; then :
3263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h.  */
3265 $4
3266 int
3267 main ()
3268 {
3269 if (sizeof (($2)))
3270             return 0;
3271   ;
3272   return 0;
3273 }
3274 _ACEOF
3275 if ac_fn_c_try_compile "$LINENO"; then :
3276
3277 else
3278   eval "$3=yes"
3279 fi
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 fi
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 fi
3284 eval ac_res=\$$3
3285                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3286 $as_echo "$ac_res" >&6; }
3287   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3288
3289 } # ac_fn_c_check_type
3290
3291 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3292 # ---------------------------------------------
3293 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3294 # accordingly.
3295 ac_fn_c_check_decl ()
3296 {
3297   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3298   as_decl_name=`echo $2|sed 's/ *(.*//'`
3299   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3301 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3302 if eval \${$3+:} false; then :
3303   $as_echo_n "(cached) " >&6
3304 else
3305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h.  */
3307 $4
3308 int
3309 main ()
3310 {
3311 #ifndef $as_decl_name
3312 #ifdef __cplusplus
3313   (void) $as_decl_use;
3314 #else
3315   (void) $as_decl_name;
3316 #endif
3317 #endif
3318
3319   ;
3320   return 0;
3321 }
3322 _ACEOF
3323 if ac_fn_c_try_compile "$LINENO"; then :
3324   eval "$3=yes"
3325 else
3326   eval "$3=no"
3327 fi
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 fi
3330 eval ac_res=\$$3
3331                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3332 $as_echo "$ac_res" >&6; }
3333   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3334
3335 } # ac_fn_c_check_decl
3336
3337 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3338 # ----------------------------------------------------
3339 # Tries to find if the field MEMBER exists in type AGGR, after including
3340 # INCLUDES, setting cache variable VAR accordingly.
3341 ac_fn_c_check_member ()
3342 {
3343   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3345 $as_echo_n "checking for $2.$3... " >&6; }
3346 if eval \${$4+:} false; then :
3347   $as_echo_n "(cached) " >&6
3348 else
3349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h.  */
3351 $5
3352 int
3353 main ()
3354 {
3355 static $2 ac_aggr;
3356 if (ac_aggr.$3)
3357 return 0;
3358   ;
3359   return 0;
3360 }
3361 _ACEOF
3362 if ac_fn_c_try_compile "$LINENO"; then :
3363   eval "$4=yes"
3364 else
3365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h.  */
3367 $5
3368 int
3369 main ()
3370 {
3371 static $2 ac_aggr;
3372 if (sizeof ac_aggr.$3)
3373 return 0;
3374   ;
3375   return 0;
3376 }
3377 _ACEOF
3378 if ac_fn_c_try_compile "$LINENO"; then :
3379   eval "$4=yes"
3380 else
3381   eval "$4=no"
3382 fi
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 fi
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 fi
3387 eval ac_res=\$$4
3388                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3389 $as_echo "$ac_res" >&6; }
3390   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3391
3392 } # ac_fn_c_check_member
3393
3394 # ac_fn_cxx_try_cpp LINENO
3395 # ------------------------
3396 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3397 ac_fn_cxx_try_cpp ()
3398 {
3399   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3400   if { { ac_try="$ac_cpp conftest.$ac_ext"
3401 case "(($ac_try" in
3402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403   *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406 $as_echo "$ac_try_echo"; } >&5
3407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3408   ac_status=$?
3409   if test -s conftest.err; then
3410     grep -v '^ *+' conftest.err >conftest.er1
3411     cat conftest.er1 >&5
3412     mv -f conftest.er1 conftest.err
3413   fi
3414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415   test $ac_status = 0; } > conftest.i && {
3416          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3417          test ! -s conftest.err
3418        }; then :
3419   ac_retval=0
3420 else
3421   $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424     ac_retval=1
3425 fi
3426   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3427   as_fn_set_status $ac_retval
3428
3429 } # ac_fn_cxx_try_cpp
3430
3431 # ac_fn_cxx_try_link LINENO
3432 # -------------------------
3433 # Try to link conftest.$ac_ext, and return whether this succeeded.
3434 ac_fn_cxx_try_link ()
3435 {
3436   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3437   rm -f conftest.$ac_objext conftest$ac_exeext
3438   if { { ac_try="$ac_link"
3439 case "(($ac_try" in
3440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441   *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445   (eval "$ac_link") 2>conftest.err
3446   ac_status=$?
3447   if test -s conftest.err; then
3448     grep -v '^ *+' conftest.err >conftest.er1
3449     cat conftest.er1 >&5
3450     mv -f conftest.er1 conftest.err
3451   fi
3452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453   test $ac_status = 0; } && {
3454          test -z "$ac_cxx_werror_flag" ||
3455          test ! -s conftest.err
3456        } && test -s conftest$ac_exeext && {
3457          test "$cross_compiling" = yes ||
3458          test -x conftest$ac_exeext
3459        }; then :
3460   ac_retval=0
3461 else
3462   $as_echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465         ac_retval=1
3466 fi
3467   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3468   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3469   # interfere with the next link command; also delete a directory that is
3470   # left behind by Apple's compiler.  We do this before executing the actions.
3471   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3472   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3473   as_fn_set_status $ac_retval
3474
3475 } # ac_fn_cxx_try_link
3476 cat >config.log <<_ACEOF
3477 This file contains any messages produced by compilers while
3478 running configure, to aid debugging if configure makes a mistake.
3479
3480 It was created by GnuTLS $as_me 3.3.5, which was
3481 generated by GNU Autoconf 2.69.  Invocation command line was
3482
3483   $ $0 $@
3484
3485 _ACEOF
3486 exec 5>>config.log
3487 {
3488 cat <<_ASUNAME
3489 ## --------- ##
3490 ## Platform. ##
3491 ## --------- ##
3492
3493 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3494 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3495 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3496 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3497 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3498
3499 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3500 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3501
3502 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3503 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3504 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3505 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3506 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3507 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3508 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3509
3510 _ASUNAME
3511
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515   IFS=$as_save_IFS
3516   test -z "$as_dir" && as_dir=.
3517     $as_echo "PATH: $as_dir"
3518   done
3519 IFS=$as_save_IFS
3520
3521 } >&5
3522
3523 cat >&5 <<_ACEOF
3524
3525
3526 ## ----------- ##
3527 ## Core tests. ##
3528 ## ----------- ##
3529
3530 _ACEOF
3531
3532
3533 # Keep a trace of the command line.
3534 # Strip out --no-create and --no-recursion so they do not pile up.
3535 # Strip out --silent because we don't want to record it for future runs.
3536 # Also quote any args containing shell meta-characters.
3537 # Make two passes to allow for proper duplicate-argument suppression.
3538 ac_configure_args=
3539 ac_configure_args0=
3540 ac_configure_args1=
3541 ac_must_keep_next=false
3542 for ac_pass in 1 2
3543 do
3544   for ac_arg
3545   do
3546     case $ac_arg in
3547     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3548     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3549     | -silent | --silent | --silen | --sile | --sil)
3550       continue ;;
3551     *\'*)
3552       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3553     esac
3554     case $ac_pass in
3555     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3556     2)
3557       as_fn_append ac_configure_args1 " '$ac_arg'"
3558       if test $ac_must_keep_next = true; then
3559         ac_must_keep_next=false # Got value, back to normal.
3560       else
3561         case $ac_arg in
3562           *=* | --config-cache | -C | -disable-* | --disable-* \
3563           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3564           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3565           | -with-* | --with-* | -without-* | --without-* | --x)
3566             case "$ac_configure_args0 " in
3567               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3568             esac
3569             ;;
3570           -* ) ac_must_keep_next=true ;;
3571         esac
3572       fi
3573       as_fn_append ac_configure_args " '$ac_arg'"
3574       ;;
3575     esac
3576   done
3577 done
3578 { ac_configure_args0=; unset ac_configure_args0;}
3579 { ac_configure_args1=; unset ac_configure_args1;}
3580
3581 # When interrupted or exit'd, cleanup temporary files, and complete
3582 # config.log.  We remove comments because anyway the quotes in there
3583 # would cause problems or look ugly.
3584 # WARNING: Use '\'' to represent an apostrophe within the trap.
3585 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3586 trap 'exit_status=$?
3587   # Save into config.log some information that might help in debugging.
3588   {
3589     echo
3590
3591     $as_echo "## ---------------- ##
3592 ## Cache variables. ##
3593 ## ---------------- ##"
3594     echo
3595     # The following way of writing the cache mishandles newlines in values,
3596 (
3597   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3598     eval ac_val=\$$ac_var
3599     case $ac_val in #(
3600     *${as_nl}*)
3601       case $ac_var in #(
3602       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3603 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3604       esac
3605       case $ac_var in #(
3606       _ | IFS | as_nl) ;; #(
3607       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3608       *) { eval $ac_var=; unset $ac_var;} ;;
3609       esac ;;
3610     esac
3611   done
3612   (set) 2>&1 |
3613     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3614     *${as_nl}ac_space=\ *)
3615       sed -n \
3616         "s/'\''/'\''\\\\'\'''\''/g;
3617           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3618       ;; #(
3619     *)
3620       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3621       ;;
3622     esac |
3623     sort
3624 )
3625     echo
3626
3627     $as_echo "## ----------------- ##
3628 ## Output variables. ##
3629 ## ----------------- ##"
3630     echo
3631     for ac_var in $ac_subst_vars
3632     do
3633       eval ac_val=\$$ac_var
3634       case $ac_val in
3635       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3636       esac
3637       $as_echo "$ac_var='\''$ac_val'\''"
3638     done | sort
3639     echo
3640
3641     if test -n "$ac_subst_files"; then
3642       $as_echo "## ------------------- ##
3643 ## File substitutions. ##
3644 ## ------------------- ##"
3645       echo
3646       for ac_var in $ac_subst_files
3647       do
3648         eval ac_val=\$$ac_var
3649         case $ac_val in
3650         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3651         esac
3652         $as_echo "$ac_var='\''$ac_val'\''"
3653       done | sort
3654       echo
3655     fi
3656
3657     if test -s confdefs.h; then
3658       $as_echo "## ----------- ##
3659 ## confdefs.h. ##
3660 ## ----------- ##"
3661       echo
3662       cat confdefs.h
3663       echo
3664     fi
3665     test "$ac_signal" != 0 &&
3666       $as_echo "$as_me: caught signal $ac_signal"
3667     $as_echo "$as_me: exit $exit_status"
3668   } >&5
3669   rm -f core *.core core.conftest.* &&
3670     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3671     exit $exit_status
3672 ' 0
3673 for ac_signal in 1 2 13 15; do
3674   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3675 done
3676 ac_signal=0
3677
3678 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3679 rm -f -r conftest* confdefs.h
3680
3681 $as_echo "/* confdefs.h */" > confdefs.h
3682
3683 # Predefined preprocessor variables.
3684
3685 cat >>confdefs.h <<_ACEOF
3686 #define PACKAGE_NAME "$PACKAGE_NAME"
3687 _ACEOF
3688
3689 cat >>confdefs.h <<_ACEOF
3690 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3691 _ACEOF
3692
3693 cat >>confdefs.h <<_ACEOF
3694 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3695 _ACEOF
3696
3697 cat >>confdefs.h <<_ACEOF
3698 #define PACKAGE_STRING "$PACKAGE_STRING"
3699 _ACEOF
3700
3701 cat >>confdefs.h <<_ACEOF
3702 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3703 _ACEOF
3704
3705 cat >>confdefs.h <<_ACEOF
3706 #define PACKAGE_URL "$PACKAGE_URL"
3707 _ACEOF
3708
3709
3710 # Let the site file select an alternate cache file if it wants to.
3711 # Prefer an explicitly selected file to automatically selected ones.
3712 ac_site_file1=NONE
3713 ac_site_file2=NONE
3714 if test -n "$CONFIG_SITE"; then
3715   # We do not want a PATH search for config.site.
3716   case $CONFIG_SITE in #((
3717     -*)  ac_site_file1=./$CONFIG_SITE;;
3718     */*) ac_site_file1=$CONFIG_SITE;;
3719     *)   ac_site_file1=./$CONFIG_SITE;;
3720   esac
3721 elif test "x$prefix" != xNONE; then
3722   ac_site_file1=$prefix/share/config.site
3723   ac_site_file2=$prefix/etc/config.site
3724 else
3725   ac_site_file1=$ac_default_prefix/share/config.site
3726   ac_site_file2=$ac_default_prefix/etc/config.site
3727 fi
3728 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3729 do
3730   test "x$ac_site_file" = xNONE && continue
3731   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3732     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3733 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3734     sed 's/^/| /' "$ac_site_file" >&5
3735     . "$ac_site_file" \
3736       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3738 as_fn_error $? "failed to load site script $ac_site_file
3739 See \`config.log' for more details" "$LINENO" 5; }
3740   fi
3741 done
3742
3743 if test -r "$cache_file"; then
3744   # Some versions of bash will fail to source /dev/null (special files
3745   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3746   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3747     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3748 $as_echo "$as_me: loading cache $cache_file" >&6;}
3749     case $cache_file in
3750       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3751       *)                      . "./$cache_file";;
3752     esac
3753   fi
3754 else
3755   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3756 $as_echo "$as_me: creating cache $cache_file" >&6;}
3757   >$cache_file
3758 fi
3759
3760 gl_header_list="$gl_header_list sys/socket.h"
3761 gt_needs="$gt_needs "
3762 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3763 gl_header_list="$gl_header_list sys/stat.h"
3764 gl_func_list="$gl_func_list getdelim"
3765 gl_header_list="$gl_header_list sys/time.h"
3766 gl_func_list="$gl_func_list gettimeofday"
3767 gl_header_list="$gl_header_list unistd.h"
3768 gl_header_list="$gl_header_list sys/mman.h"
3769 gl_func_list="$gl_func_list mprotect"
3770 gl_header_list="$gl_header_list netdb.h"
3771 gl_header_list="$gl_header_list netinet/in.h"
3772 gl_func_list="$gl_func_list snprintf"
3773 gl_header_list="$gl_header_list wchar.h"
3774 gl_header_list="$gl_header_list stdint.h"
3775 gl_header_list="$gl_header_list strings.h"
3776 gl_func_list="$gl_func_list strndup"
3777 gl_header_list="$gl_header_list sys/uio.h"
3778 gl_func_list="$gl_func_list localtime_r"
3779 gl_func_list="$gl_func_list vasnprintf"
3780 gl_header_list="$gl_header_list features.h"
3781 gl_header_list="$gl_header_list inttypes.h"
3782 gl_func_list="$gl_func_list shutdown"
3783 gl_header_list="$gl_header_list arpa/inet.h"
3784 gl_header_list="$gl_header_list stdio_ext.h"
3785 gl_header_list="$gl_header_list termios.h"
3786 gl_func_list="$gl_func_list __fsetlocking"
3787 gl_func_list="$gl_func_list tcgetattr"
3788 gl_func_list="$gl_func_list tcsetattr"
3789 gl_func_list="$gl_func_list nanotime"
3790 gl_header_list="$gl_header_list sys/select.h"
3791 gl_func_list="$gl_func_list setenv"
3792 gl_func_list="$gl_func_list strdup"
3793 # Check that the precious variables saved in the cache have kept the same
3794 # value.
3795 ac_cache_corrupted=false
3796 for ac_var in $ac_precious_vars; do
3797   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3798   eval ac_new_set=\$ac_env_${ac_var}_set
3799   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3800   eval ac_new_val=\$ac_env_${ac_var}_value
3801   case $ac_old_set,$ac_new_set in
3802     set,)
3803       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3804 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3805       ac_cache_corrupted=: ;;
3806     ,set)
3807       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3808 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3809       ac_cache_corrupted=: ;;
3810     ,);;
3811     *)
3812       if test "x$ac_old_val" != "x$ac_new_val"; then
3813         # differences in whitespace do not lead to failure.
3814         ac_old_val_w=`echo x $ac_old_val`
3815         ac_new_val_w=`echo x $ac_new_val`
3816         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3817           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3818 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3819           ac_cache_corrupted=:
3820         else
3821           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3822 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3823           eval $ac_var=\$ac_old_val
3824         fi
3825         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3826 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3827         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3828 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3829       fi;;
3830   esac
3831   # Pass precious variables to config.status.
3832   if test "$ac_new_set" = set; then
3833     case $ac_new_val in
3834     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3835     *) ac_arg=$ac_var=$ac_new_val ;;
3836     esac
3837     case " $ac_configure_args " in
3838       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3839       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3840     esac
3841   fi
3842 done
3843 if $ac_cache_corrupted; then
3844   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3846   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3847 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3848   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3849 fi
3850 ## -------------------- ##
3851 ## Main body of script. ##
3852 ## -------------------- ##
3853
3854 ac_ext=c
3855 ac_cpp='$CPP $CPPFLAGS'
3856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859
3860
3861 ac_aux_dir=
3862 for ac_dir in build-aux "$srcdir"/build-aux; do
3863   if test -f "$ac_dir/install-sh"; then
3864     ac_aux_dir=$ac_dir
3865     ac_install_sh="$ac_aux_dir/install-sh -c"
3866     break
3867   elif test -f "$ac_dir/install.sh"; then
3868     ac_aux_dir=$ac_dir
3869     ac_install_sh="$ac_aux_dir/install.sh -c"
3870     break
3871   elif test -f "$ac_dir/shtool"; then
3872     ac_aux_dir=$ac_dir
3873     ac_install_sh="$ac_aux_dir/shtool install -c"
3874     break
3875   fi
3876 done
3877 if test -z "$ac_aux_dir"; then
3878   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3879 fi
3880
3881 # These three variables are undocumented and unsupported,
3882 # and are intended to be withdrawn in a future Autoconf release.
3883 # They can cause serious problems if a builder's source tree is in a directory
3884 # whose full name contains unusual characters.
3885 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3886 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3887 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3888
3889
3890
3891 # Make sure we can run config.sub.
3892 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3893   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3894
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3896 $as_echo_n "checking build system type... " >&6; }
3897 if ${ac_cv_build+:} false; then :
3898   $as_echo_n "(cached) " >&6
3899 else
3900   ac_build_alias=$build_alias
3901 test "x$ac_build_alias" = x &&
3902   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3903 test "x$ac_build_alias" = x &&
3904   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3905 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3906   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3907
3908 fi
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3910 $as_echo "$ac_cv_build" >&6; }
3911 case $ac_cv_build in
3912 *-*-*) ;;
3913 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3914 esac
3915 build=$ac_cv_build
3916 ac_save_IFS=$IFS; IFS='-'
3917 set x $ac_cv_build
3918 shift
3919 build_cpu=$1
3920 build_vendor=$2
3921 shift; shift
3922 # Remember, the first character of IFS is used to create $*,
3923 # except with old shells:
3924 build_os=$*
3925 IFS=$ac_save_IFS
3926 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3927
3928
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3930 $as_echo_n "checking host system type... " >&6; }
3931 if ${ac_cv_host+:} false; then :
3932   $as_echo_n "(cached) " >&6
3933 else
3934   if test "x$host_alias" = x; then
3935   ac_cv_host=$ac_cv_build
3936 else
3937   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3938     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3939 fi
3940
3941 fi
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3943 $as_echo "$ac_cv_host" >&6; }
3944 case $ac_cv_host in
3945 *-*-*) ;;
3946 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3947 esac
3948 host=$ac_cv_host
3949 ac_save_IFS=$IFS; IFS='-'
3950 set x $ac_cv_host
3951 shift
3952 host_cpu=$1
3953 host_vendor=$2
3954 shift; shift
3955 # Remember, the first character of IFS is used to create $*,
3956 # except with old shells:
3957 host_os=$*
3958 IFS=$ac_save_IFS
3959 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3960
3961
3962
3963 am__api_version='1.14'
3964
3965 # Find a good install program.  We prefer a C program (faster),
3966 # so one script is as good as another.  But avoid the broken or
3967 # incompatible versions:
3968 # SysV /etc/install, /usr/sbin/install
3969 # SunOS /usr/etc/install
3970 # IRIX /sbin/install
3971 # AIX /bin/install
3972 # AmigaOS /C/install, which installs bootblocks on floppy discs
3973 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3974 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3975 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3976 # OS/2's system install, which has a completely different semantic
3977 # ./install, which can be erroneously created by make from ./install.sh.
3978 # Reject install programs that cannot install multiple files.
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3980 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3981 if test -z "$INSTALL"; then
3982 if ${ac_cv_path_install+:} false; then :
3983   $as_echo_n "(cached) " >&6
3984 else
3985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988   IFS=$as_save_IFS
3989   test -z "$as_dir" && as_dir=.
3990     # Account for people who put trailing slashes in PATH elements.
3991 case $as_dir/ in #((
3992   ./ | .// | /[cC]/* | \
3993   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3994   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3995   /usr/ucb/* ) ;;
3996   *)
3997     # OSF1 and SCO ODT 3.0 have their own names for install.
3998     # Don't use installbsd from OSF since it installs stuff as root
3999     # by default.
4000     for ac_prog in ginstall scoinst install; do
4001       for ac_exec_ext in '' $ac_executable_extensions; do
4002         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4003           if test $ac_prog = install &&
4004             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4005             # AIX install.  It has an incompatible calling convention.
4006             :
4007           elif test $ac_prog = install &&
4008             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4009             # program-specific install script used by HP pwplus--don't use.
4010             :
4011           else
4012             rm -rf conftest.one conftest.two conftest.dir
4013             echo one > conftest.one
4014             echo two > conftest.two
4015             mkdir conftest.dir
4016             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4017               test -s conftest.one && test -s conftest.two &&
4018               test -s conftest.dir/conftest.one &&
4019               test -s conftest.dir/conftest.two
4020             then
4021               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4022               break 3
4023             fi
4024           fi
4025         fi
4026       done
4027     done
4028     ;;
4029 esac
4030
4031   done
4032 IFS=$as_save_IFS
4033
4034 rm -rf conftest.one conftest.two conftest.dir
4035
4036 fi
4037   if test "${ac_cv_path_install+set}" = set; then
4038     INSTALL=$ac_cv_path_install
4039   else
4040     # As a last resort, use the slow shell script.  Don't cache a
4041     # value for INSTALL within a source directory, because that will
4042     # break other packages using the cache if that directory is
4043     # removed, or if the value is a relative name.
4044     INSTALL=$ac_install_sh
4045   fi
4046 fi
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4048 $as_echo "$INSTALL" >&6; }
4049
4050 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4051 # It thinks the first close brace ends the variable substitution.
4052 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4053
4054 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4055
4056 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4057
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4059 $as_echo_n "checking whether build environment is sane... " >&6; }
4060 # Reject unsafe characters in $srcdir or the absolute working directory
4061 # name.  Accept space and tab only in the latter.
4062 am_lf='
4063 '
4064 case `pwd` in
4065   *[\\\"\#\$\&\'\`$am_lf]*)
4066     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4067 esac
4068 case $srcdir in
4069   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4070     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4071 esac
4072
4073 # Do 'set' in a subshell so we don't clobber the current shell's
4074 # arguments.  Must try -L first in case configure is actually a
4075 # symlink; some systems play weird games with the mod time of symlinks
4076 # (eg FreeBSD returns the mod time of the symlink's containing
4077 # directory).
4078 if (
4079    am_has_slept=no
4080    for am_try in 1 2; do
4081      echo "timestamp, slept: $am_has_slept" > conftest.file
4082      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4083      if test "$*" = "X"; then
4084         # -L didn't work.
4085         set X `ls -t "$srcdir/configure" conftest.file`
4086      fi
4087      if test "$*" != "X $srcdir/configure conftest.file" \
4088         && test "$*" != "X conftest.file $srcdir/configure"; then
4089
4090         # If neither matched, then we have a broken ls.  This can happen
4091         # if, for instance, CONFIG_SHELL is bash and it inherits a
4092         # broken ls alias from the environment.  This has actually
4093         # happened.  Such a system could not be considered "sane".
4094         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4095   alias in your environment" "$LINENO" 5
4096      fi
4097      if test "$2" = conftest.file || test $am_try -eq 2; then
4098        break
4099      fi
4100      # Just in case.
4101      sleep 1
4102      am_has_slept=yes
4103    done
4104    test "$2" = conftest.file
4105    )
4106 then
4107    # Ok.
4108    :
4109 else
4110    as_fn_error $? "newly created file is older than distributed files!
4111 Check your system clock" "$LINENO" 5
4112 fi
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4114 $as_echo "yes" >&6; }
4115 # If we didn't sleep, we still need to ensure time stamps of config.status and
4116 # generated files are strictly newer.
4117 am_sleep_pid=
4118 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4119   ( sleep 1 ) &
4120   am_sleep_pid=$!
4121 fi
4122
4123 rm -f conftest.file
4124
4125 test "$program_prefix" != NONE &&
4126   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4127 # Use a double $ so make ignores it.
4128 test "$program_suffix" != NONE &&
4129   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4130 # Double any \ or $.
4131 # By default was `s,x,x', remove it if useless.
4132 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4133 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4134
4135 # expand $ac_aux_dir to an absolute path
4136 am_aux_dir=`cd $ac_aux_dir && pwd`
4137
4138 if test x"${MISSING+set}" != xset; then
4139   case $am_aux_dir in
4140   *\ * | *\     *)
4141     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4142   *)
4143     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4144   esac
4145 fi
4146 # Use eval to expand $SHELL
4147 if eval "$MISSING --is-lightweight"; then
4148   am_missing_run="$MISSING "
4149 else
4150   am_missing_run=
4151   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4152 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4153 fi
4154
4155 if test x"${install_sh}" != xset; then
4156   case $am_aux_dir in
4157   *\ * | *\     *)
4158     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4159   *)
4160     install_sh="\${SHELL} $am_aux_dir/install-sh"
4161   esac
4162 fi
4163
4164 # Installed binaries are usually stripped using 'strip' when the user
4165 # run "make install-strip".  However 'strip' might not be the right
4166 # tool to use in cross-compilation environments, therefore Automake
4167 # will honor the 'STRIP' environment variable to overrule this program.
4168 if test "$cross_compiling" != no; then
4169   if test -n "$ac_tool_prefix"; then
4170   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4171 set dummy ${ac_tool_prefix}strip; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_STRIP+:} false; then :
4175   $as_echo_n "(cached) " >&6
4176 else
4177   if test -n "$STRIP"; then
4178   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183   IFS=$as_save_IFS
4184   test -z "$as_dir" && as_dir=.
4185     for ac_exec_ext in '' $ac_executable_extensions; do
4186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189     break 2
4190   fi
4191 done
4192   done
4193 IFS=$as_save_IFS
4194
4195 fi
4196 fi
4197 STRIP=$ac_cv_prog_STRIP
4198 if test -n "$STRIP"; then
4199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4200 $as_echo "$STRIP" >&6; }
4201 else
4202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4204 fi
4205
4206
4207 fi
4208 if test -z "$ac_cv_prog_STRIP"; then
4209   ac_ct_STRIP=$STRIP
4210   # Extract the first word of "strip", so it can be a program name with args.
4211 set dummy strip; ac_word=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4215   $as_echo_n "(cached) " >&6
4216 else
4217   if test -n "$ac_ct_STRIP"; then
4218   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4219 else
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4222 do
4223   IFS=$as_save_IFS
4224   test -z "$as_dir" && as_dir=.
4225     for ac_exec_ext in '' $ac_executable_extensions; do
4226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227     ac_cv_prog_ac_ct_STRIP="strip"
4228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229     break 2
4230   fi
4231 done
4232   done
4233 IFS=$as_save_IFS
4234
4235 fi
4236 fi
4237 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4238 if test -n "$ac_ct_STRIP"; then
4239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4240 $as_echo "$ac_ct_STRIP" >&6; }
4241 else
4242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4244 fi
4245
4246   if test "x$ac_ct_STRIP" = x; then
4247     STRIP=":"
4248   else
4249     case $cross_compiling:$ac_tool_warned in
4250 yes:)
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4253 ac_tool_warned=yes ;;
4254 esac
4255     STRIP=$ac_ct_STRIP
4256   fi
4257 else
4258   STRIP="$ac_cv_prog_STRIP"
4259 fi
4260
4261 fi
4262 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4263
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4265 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4266 if test -z "$MKDIR_P"; then
4267   if ${ac_cv_path_mkdir+:} false; then :
4268   $as_echo_n "(cached) " >&6
4269 else
4270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4272 do
4273   IFS=$as_save_IFS
4274   test -z "$as_dir" && as_dir=.
4275     for ac_prog in mkdir gmkdir; do
4276          for ac_exec_ext in '' $ac_executable_extensions; do
4277            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4278            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4279              'mkdir (GNU coreutils) '* | \
4280              'mkdir (coreutils) '* | \
4281              'mkdir (fileutils) '4.1*)
4282                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4283                break 3;;
4284            esac
4285          done
4286        done
4287   done
4288 IFS=$as_save_IFS
4289
4290 fi
4291
4292   test -d ./--version && rmdir ./--version
4293   if test "${ac_cv_path_mkdir+set}" = set; then
4294     MKDIR_P="$ac_cv_path_mkdir -p"
4295   else
4296     # As a last resort, use the slow shell script.  Don't cache a
4297     # value for MKDIR_P within a source directory, because that will
4298     # break other packages using the cache if that directory is
4299     # removed, or if the value is a relative name.
4300     MKDIR_P="$ac_install_sh -d"
4301   fi
4302 fi
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4304 $as_echo "$MKDIR_P" >&6; }
4305
4306 for ac_prog in gawk mawk nawk awk
4307 do
4308   # Extract the first word of "$ac_prog", so it can be a program name with args.
4309 set dummy $ac_prog; ac_word=$2
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if ${ac_cv_prog_AWK+:} false; then :
4313   $as_echo_n "(cached) " >&6
4314 else
4315   if test -n "$AWK"; then
4316   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4320 do
4321   IFS=$as_save_IFS
4322   test -z "$as_dir" && as_dir=.
4323     for ac_exec_ext in '' $ac_executable_extensions; do
4324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325     ac_cv_prog_AWK="$ac_prog"
4326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327     break 2
4328   fi
4329 done
4330   done
4331 IFS=$as_save_IFS
4332
4333 fi
4334 fi
4335 AWK=$ac_cv_prog_AWK
4336 if test -n "$AWK"; then
4337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4338 $as_echo "$AWK" >&6; }
4339 else
4340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4342 fi
4343
4344
4345   test -n "$AWK" && break
4346 done
4347
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4349 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4350 set x ${MAKE-make}
4351 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4352 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4353   $as_echo_n "(cached) " >&6
4354 else
4355   cat >conftest.make <<\_ACEOF
4356 SHELL = /bin/sh
4357 all:
4358         @echo '@@@%%%=$(MAKE)=@@@%%%'
4359 _ACEOF
4360 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4361 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4362   *@@@%%%=?*=@@@%%%*)
4363     eval ac_cv_prog_make_${ac_make}_set=yes;;
4364   *)
4365     eval ac_cv_prog_make_${ac_make}_set=no;;
4366 esac
4367 rm -f conftest.make
4368 fi
4369 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4371 $as_echo "yes" >&6; }
4372   SET_MAKE=
4373 else
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4376   SET_MAKE="MAKE=${MAKE-make}"
4377 fi
4378
4379 rm -rf .tst 2>/dev/null
4380 mkdir .tst 2>/dev/null
4381 if test -d .tst; then
4382   am__leading_dot=.
4383 else
4384   am__leading_dot=_
4385 fi
4386 rmdir .tst 2>/dev/null
4387
4388 # Check whether --enable-silent-rules was given.
4389 if test "${enable_silent_rules+set}" = set; then :
4390   enableval=$enable_silent_rules;
4391 fi
4392
4393 case $enable_silent_rules in # (((
4394   yes) AM_DEFAULT_VERBOSITY=0;;
4395    no) AM_DEFAULT_VERBOSITY=1;;
4396     *) AM_DEFAULT_VERBOSITY=1;;
4397 esac
4398 am_make=${MAKE-make}
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4400 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4401 if ${am_cv_make_support_nested_variables+:} false; then :
4402   $as_echo_n "(cached) " >&6
4403 else
4404   if $as_echo 'TRUE=$(BAR$(V))
4405 BAR0=false
4406 BAR1=true
4407 V=1
4408 am__doit:
4409         @$(TRUE)
4410 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4411   am_cv_make_support_nested_variables=yes
4412 else
4413   am_cv_make_support_nested_variables=no
4414 fi
4415 fi
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4417 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4418 if test $am_cv_make_support_nested_variables = yes; then
4419     AM_V='$(V)'
4420   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4421 else
4422   AM_V=$AM_DEFAULT_VERBOSITY
4423   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4424 fi
4425 AM_BACKSLASH='\'
4426
4427 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4428   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4429   # is not polluted with repeated "-I."
4430   am__isrc=' -I$(srcdir)'
4431   # test to see if srcdir already configured
4432   if test -f $srcdir/config.status; then
4433     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4434   fi
4435 fi
4436
4437 # test whether we have cygpath
4438 if test -z "$CYGPATH_W"; then
4439   if (cygpath --version) >/dev/null 2>/dev/null; then
4440     CYGPATH_W='cygpath -w'
4441   else
4442     CYGPATH_W=echo
4443   fi
4444 fi
4445
4446
4447 # Define the identity of the package.
4448  PACKAGE='gnutls'
4449  VERSION='3.3.5'
4450
4451
4452 cat >>confdefs.h <<_ACEOF
4453 #define PACKAGE "$PACKAGE"
4454 _ACEOF
4455
4456
4457 cat >>confdefs.h <<_ACEOF
4458 #define VERSION "$VERSION"
4459 _ACEOF
4460
4461 # Some tools Automake needs.
4462
4463 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4464
4465
4466 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4467
4468
4469 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4470
4471
4472 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4473
4474
4475 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4476
4477 # For better backward compatibility.  To be removed once Automake 1.9.x
4478 # dies out for good.  For more background, see:
4479 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4480 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4481 mkdir_p='$(MKDIR_P)'
4482
4483 # We need awk for the "check" target.  The system "awk" is bad on
4484 # some platforms.
4485 # Always define AMTAR for backward compatibility.  Yes, it's still used
4486 # in the wild :-(  We should find a proper way to deprecate it ...
4487 AMTAR='$${TAR-tar}'
4488
4489
4490 # We'll loop over all known methods to create a tar archive until one works.
4491 _am_tools='gnutar  pax cpio none'
4492
4493 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4494
4495
4496
4497
4498
4499
4500 # POSIX will say in a future version that running "rm -f" with no argument
4501 # is OK; and we want to be able to make that assumption in our Makefile
4502 # recipes.  So use an aggressive probe to check that the usage we want is
4503 # actually supported "in the wild" to an acceptable degree.
4504 # See automake bug#10828.
4505 # To make any issue more visible, cause the running configure to be aborted
4506 # by default if the 'rm' program in use doesn't match our expectations; the
4507 # user can still override this though.
4508 if rm -f && rm -fr && rm -rf; then : OK; else
4509   cat >&2 <<'END'
4510 Oops!
4511
4512 Your 'rm' program seems unable to run without file operands specified
4513 on the command line, even when the '-f' option is present.  This is contrary
4514 to the behaviour of most rm programs out there, and not conforming with
4515 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4516
4517 Please tell bug-automake@gnu.org about your system, including the value
4518 of your $PATH and any error possibly output before this message.  This
4519 can help us improve future automake versions.
4520
4521 END
4522   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4523     echo 'Configuration will proceed anyway, since you have set the' >&2
4524     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4525     echo >&2
4526   else
4527     cat >&2 <<'END'
4528 Aborting the configuration process, to ensure you take notice of the issue.
4529
4530 You can download and install GNU coreutils to get an 'rm' implementation
4531 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4532
4533 If you want to complete the configuration process using your problematic
4534 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4535 to "yes", and re-run configure.
4536
4537 END
4538     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4539   fi
4540 fi
4541
4542 # Check whether --enable-silent-rules was given.
4543 if test "${enable_silent_rules+set}" = set; then :
4544   enableval=$enable_silent_rules;
4545 fi
4546
4547 case $enable_silent_rules in # (((
4548   yes) AM_DEFAULT_VERBOSITY=0;;
4549    no) AM_DEFAULT_VERBOSITY=1;;
4550     *) AM_DEFAULT_VERBOSITY=0;;
4551 esac
4552 am_make=${MAKE-make}
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4554 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4555 if ${am_cv_make_support_nested_variables+:} false; then :
4556   $as_echo_n "(cached) " >&6
4557 else
4558   if $as_echo 'TRUE=$(BAR$(V))
4559 BAR0=false
4560 BAR1=true
4561 V=1
4562 am__doit:
4563         @$(TRUE)
4564 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4565   am_cv_make_support_nested_variables=yes
4566 else
4567   am_cv_make_support_nested_variables=no
4568 fi
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4571 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4572 if test $am_cv_make_support_nested_variables = yes; then
4573     AM_V='$(V)'
4574   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4575 else
4576   AM_V=$AM_DEFAULT_VERBOSITY
4577   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4578 fi
4579 AM_BACKSLASH='\'
4580
4581 ac_config_headers="$ac_config_headers config.h"
4582
4583
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
4585 *** Checking for compilation programs...
4586 " >&5
4587 $as_echo "***
4588 *** Checking for compilation programs...
4589 " >&6; }
4590
4591 ac_ext=c
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596 if test -n "$ac_tool_prefix"; then
4597   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4598 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if ${ac_cv_prog_CC+:} false; then :
4602   $as_echo_n "(cached) " >&6
4603 else
4604   if test -n "$CC"; then
4605   ac_cv_prog_CC="$CC" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610   IFS=$as_save_IFS
4611   test -z "$as_dir" && as_dir=.
4612     for ac_exec_ext in '' $ac_executable_extensions; do
4613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616     break 2
4617   fi
4618 done
4619   done
4620 IFS=$as_save_IFS
4621
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 "$ac_cv_prog_CC"; then
4636   ac_ct_CC=$CC
4637   # Extract the first word of "gcc", so it can be a program name with args.
4638 set dummy gcc; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4642   $as_echo_n "(cached) " >&6
4643 else
4644   if test -n "$ac_ct_CC"; then
4645   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650   IFS=$as_save_IFS
4651   test -z "$as_dir" && as_dir=.
4652     for ac_exec_ext in '' $ac_executable_extensions; do
4653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654     ac_cv_prog_ac_ct_CC="gcc"
4655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656     break 2
4657   fi
4658 done
4659   done
4660 IFS=$as_save_IFS
4661
4662 fi
4663 fi
4664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4665 if test -n "$ac_ct_CC"; then
4666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4667 $as_echo "$ac_ct_CC" >&6; }
4668 else
4669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4671 fi
4672
4673   if test "x$ac_ct_CC" = x; then
4674     CC=""
4675   else
4676     case $cross_compiling:$ac_tool_warned in
4677 yes:)
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680 ac_tool_warned=yes ;;
4681 esac
4682     CC=$ac_ct_CC
4683   fi
4684 else
4685   CC="$ac_cv_prog_CC"
4686 fi
4687
4688 if test -z "$CC"; then
4689           if test -n "$ac_tool_prefix"; then
4690     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4691 set dummy ${ac_tool_prefix}cc; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if ${ac_cv_prog_CC+:} false; then :
4695   $as_echo_n "(cached) " >&6
4696 else
4697   if test -n "$CC"; then
4698   ac_cv_prog_CC="$CC" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703   IFS=$as_save_IFS
4704   test -z "$as_dir" && as_dir=.
4705     for ac_exec_ext in '' $ac_executable_extensions; do
4706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707     ac_cv_prog_CC="${ac_tool_prefix}cc"
4708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709     break 2
4710   fi
4711 done
4712   done
4713 IFS=$as_save_IFS
4714
4715 fi
4716 fi
4717 CC=$ac_cv_prog_CC
4718 if test -n "$CC"; then
4719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4720 $as_echo "$CC" >&6; }
4721 else
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4724 fi
4725
4726
4727   fi
4728 fi
4729 if test -z "$CC"; then
4730   # Extract the first word of "cc", so it can be a program name with args.
4731 set dummy cc; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if ${ac_cv_prog_CC+:} false; then :
4735   $as_echo_n "(cached) " >&6
4736 else
4737   if test -n "$CC"; then
4738   ac_cv_prog_CC="$CC" # Let the user override the test.
4739 else
4740   ac_prog_rejected=no
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744   IFS=$as_save_IFS
4745   test -z "$as_dir" && as_dir=.
4746     for ac_exec_ext in '' $ac_executable_extensions; do
4747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4749        ac_prog_rejected=yes
4750        continue
4751      fi
4752     ac_cv_prog_CC="cc"
4753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754     break 2
4755   fi
4756 done
4757   done
4758 IFS=$as_save_IFS
4759
4760 if test $ac_prog_rejected = yes; then
4761   # We found a bogon in the path, so make sure we never use it.
4762   set dummy $ac_cv_prog_CC
4763   shift
4764   if test $# != 0; then
4765     # We chose a different compiler from the bogus one.
4766     # However, it has the same basename, so the bogon will be chosen
4767     # first if we set CC to just the basename; use the full file name.
4768     shift
4769     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4770   fi
4771 fi
4772 fi
4773 fi
4774 CC=$ac_cv_prog_CC
4775 if test -n "$CC"; then
4776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4777 $as_echo "$CC" >&6; }
4778 else
4779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4781 fi
4782
4783
4784 fi
4785 if test -z "$CC"; then
4786   if test -n "$ac_tool_prefix"; then
4787   for ac_prog in cl.exe
4788   do
4789     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792 $as_echo_n "checking for $ac_word... " >&6; }
4793 if ${ac_cv_prog_CC+:} false; then :
4794   $as_echo_n "(cached) " >&6
4795 else
4796   if test -n "$CC"; then
4797   ac_cv_prog_CC="$CC" # Let the user override the test.
4798 else
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4801 do
4802   IFS=$as_save_IFS
4803   test -z "$as_dir" && as_dir=.
4804     for ac_exec_ext in '' $ac_executable_extensions; do
4805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4806     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4808     break 2
4809   fi
4810 done
4811   done
4812 IFS=$as_save_IFS
4813
4814 fi
4815 fi
4816 CC=$ac_cv_prog_CC
4817 if test -n "$CC"; then
4818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4819 $as_echo "$CC" >&6; }
4820 else
4821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4823 fi
4824
4825
4826     test -n "$CC" && break
4827   done
4828 fi
4829 if test -z "$CC"; then
4830   ac_ct_CC=$CC
4831   for ac_prog in cl.exe
4832 do
4833   # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4838   $as_echo_n "(cached) " >&6
4839 else
4840   if test -n "$ac_ct_CC"; then
4841   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4845 do
4846   IFS=$as_save_IFS
4847   test -z "$as_dir" && as_dir=.
4848     for ac_exec_ext in '' $ac_executable_extensions; do
4849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850     ac_cv_prog_ac_ct_CC="$ac_prog"
4851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852     break 2
4853   fi
4854 done
4855   done
4856 IFS=$as_save_IFS
4857
4858 fi
4859 fi
4860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4861 if test -n "$ac_ct_CC"; then
4862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4863 $as_echo "$ac_ct_CC" >&6; }
4864 else
4865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4867 fi
4868
4869
4870   test -n "$ac_ct_CC" && break
4871 done
4872
4873   if test "x$ac_ct_CC" = x; then
4874     CC=""
4875   else
4876     case $cross_compiling:$ac_tool_warned in
4877 yes:)
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4880 ac_tool_warned=yes ;;
4881 esac
4882     CC=$ac_ct_CC
4883   fi
4884 fi
4885
4886 fi
4887
4888
4889 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4891 as_fn_error $? "no acceptable C compiler found in \$PATH
4892 See \`config.log' for more details" "$LINENO" 5; }
4893
4894 # Provide some information about the compiler.
4895 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4896 set X $ac_compile
4897 ac_compiler=$2
4898 for ac_option in --version -v -V -qversion; do
4899   { { ac_try="$ac_compiler $ac_option >&5"
4900 case "(($ac_try" in
4901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902   *) ac_try_echo=$ac_try;;
4903 esac
4904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4905 $as_echo "$ac_try_echo"; } >&5
4906   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4907   ac_status=$?
4908   if test -s conftest.err; then
4909     sed '10a\
4910 ... rest of stderr output deleted ...
4911          10q' conftest.err >conftest.er1
4912     cat conftest.er1 >&5
4913   fi
4914   rm -f conftest.er1 conftest.err
4915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4916   test $ac_status = 0; }
4917 done
4918
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h.  */
4921
4922 int
4923 main ()
4924 {
4925
4926   ;
4927   return 0;
4928 }
4929 _ACEOF
4930 ac_clean_files_save=$ac_clean_files
4931 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4932 # Try to create an executable without -o first, disregard a.out.
4933 # It will help us diagnose broken compilers, and finding out an intuition
4934 # of exeext.
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4936 $as_echo_n "checking whether the C compiler works... " >&6; }
4937 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4938
4939 # The possible output files:
4940 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4941
4942 ac_rmfiles=
4943 for ac_file in $ac_files
4944 do
4945   case $ac_file in
4946     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4947     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4948   esac
4949 done
4950 rm -f $ac_rmfiles
4951
4952 if { { ac_try="$ac_link_default"
4953 case "(($ac_try" in
4954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955   *) ac_try_echo=$ac_try;;
4956 esac
4957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4958 $as_echo "$ac_try_echo"; } >&5
4959   (eval "$ac_link_default") 2>&5
4960   ac_status=$?
4961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4962   test $ac_status = 0; }; then :
4963   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4964 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4965 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4966 # so that the user can short-circuit this test for compilers unknown to
4967 # Autoconf.
4968 for ac_file in $ac_files ''
4969 do
4970   test -f "$ac_file" || continue
4971   case $ac_file in
4972     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4973         ;;
4974     [ab].out )
4975         # We found the default executable, but exeext='' is most
4976         # certainly right.
4977         break;;
4978     *.* )
4979         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4980         then :; else
4981            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4982         fi
4983         # We set ac_cv_exeext here because the later test for it is not
4984         # safe: cross compilers may not add the suffix if given an `-o'
4985         # argument, so we may need to know it at that point already.
4986         # Even if this section looks crufty: it has the advantage of
4987         # actually working.
4988         break;;
4989     * )
4990         break;;
4991   esac
4992 done
4993 test "$ac_cv_exeext" = no && ac_cv_exeext=
4994
4995 else
4996   ac_file=''
4997 fi
4998 if test -z "$ac_file"; then :
4999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5001 $as_echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5003
5004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5006 as_fn_error 77 "C compiler cannot create executables
5007 See \`config.log' for more details" "$LINENO" 5; }
5008 else
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5010 $as_echo "yes" >&6; }
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5013 $as_echo_n "checking for C compiler default output file name... " >&6; }
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5015 $as_echo "$ac_file" >&6; }
5016 ac_exeext=$ac_cv_exeext
5017
5018 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5019 ac_clean_files=$ac_clean_files_save
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5021 $as_echo_n "checking for suffix of executables... " >&6; }
5022 if { { ac_try="$ac_link"
5023 case "(($ac_try" in
5024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025   *) ac_try_echo=$ac_try;;
5026 esac
5027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5028 $as_echo "$ac_try_echo"; } >&5
5029   (eval "$ac_link") 2>&5
5030   ac_status=$?
5031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5032   test $ac_status = 0; }; then :
5033   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5034 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5035 # work properly (i.e., refer to `conftest.exe'), while it won't with
5036 # `rm'.
5037 for ac_file in conftest.exe conftest conftest.*; do
5038   test -f "$ac_file" || continue
5039   case $ac_file in
5040     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5041     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5042           break;;
5043     * ) break;;
5044   esac
5045 done
5046 else
5047   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5049 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5050 See \`config.log' for more details" "$LINENO" 5; }
5051 fi
5052 rm -f conftest conftest$ac_cv_exeext
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5054 $as_echo "$ac_cv_exeext" >&6; }
5055
5056 rm -f conftest.$ac_ext
5057 EXEEXT=$ac_cv_exeext
5058 ac_exeext=$EXEEXT
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h.  */
5061 #include <stdio.h>
5062 int
5063 main ()
5064 {
5065 FILE *f = fopen ("conftest.out", "w");
5066  return ferror (f) || fclose (f) != 0;
5067
5068   ;
5069   return 0;
5070 }
5071 _ACEOF
5072 ac_clean_files="$ac_clean_files conftest.out"
5073 # Check that the compiler produces executables we can run.  If not, either
5074 # the compiler is broken, or we cross compile.
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5076 $as_echo_n "checking whether we are cross compiling... " >&6; }
5077 if test "$cross_compiling" != yes; then
5078   { { ac_try="$ac_link"
5079 case "(($ac_try" in
5080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081   *) ac_try_echo=$ac_try;;
5082 esac
5083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5084 $as_echo "$ac_try_echo"; } >&5
5085   (eval "$ac_link") 2>&5
5086   ac_status=$?
5087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5088   test $ac_status = 0; }
5089   if { ac_try='./conftest$ac_cv_exeext'
5090   { { case "(($ac_try" in
5091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092   *) ac_try_echo=$ac_try;;
5093 esac
5094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5095 $as_echo "$ac_try_echo"; } >&5
5096   (eval "$ac_try") 2>&5
5097   ac_status=$?
5098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5099   test $ac_status = 0; }; }; then
5100     cross_compiling=no
5101   else
5102     if test "$cross_compiling" = maybe; then
5103         cross_compiling=yes
5104     else
5105         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5107 as_fn_error $? "cannot run C compiled programs.
5108 If you meant to cross compile, use \`--host'.
5109 See \`config.log' for more details" "$LINENO" 5; }
5110     fi
5111   fi
5112 fi
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5114 $as_echo "$cross_compiling" >&6; }
5115
5116 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5117 ac_clean_files=$ac_clean_files_save
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5119 $as_echo_n "checking for suffix of object files... " >&6; }
5120 if ${ac_cv_objext+:} false; then :
5121   $as_echo_n "(cached) " >&6
5122 else
5123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h.  */
5125
5126 int
5127 main ()
5128 {
5129
5130   ;
5131   return 0;
5132 }
5133 _ACEOF
5134 rm -f conftest.o conftest.obj
5135 if { { ac_try="$ac_compile"
5136 case "(($ac_try" in
5137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138   *) ac_try_echo=$ac_try;;
5139 esac
5140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5141 $as_echo "$ac_try_echo"; } >&5
5142   (eval "$ac_compile") 2>&5
5143   ac_status=$?
5144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5145   test $ac_status = 0; }; then :
5146   for ac_file in conftest.o conftest.obj conftest.*; do
5147   test -f "$ac_file" || continue;
5148   case $ac_file in
5149     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5150     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5151        break;;
5152   esac
5153 done
5154 else
5155   $as_echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5157
5158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5160 as_fn_error $? "cannot compute suffix of object files: cannot compile
5161 See \`config.log' for more details" "$LINENO" 5; }
5162 fi
5163 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5164 fi
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5166 $as_echo "$ac_cv_objext" >&6; }
5167 OBJEXT=$ac_cv_objext
5168 ac_objext=$OBJEXT
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5170 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5171 if ${ac_cv_c_compiler_gnu+:} false; then :
5172   $as_echo_n "(cached) " >&6
5173 else
5174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h.  */
5176
5177 int
5178 main ()
5179 {
5180 #ifndef __GNUC__
5181        choke me
5182 #endif
5183
5184   ;
5185   return 0;
5186 }
5187 _ACEOF
5188 if ac_fn_c_try_compile "$LINENO"; then :
5189   ac_compiler_gnu=yes
5190 else
5191   ac_compiler_gnu=no
5192 fi
5193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5195
5196 fi
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5198 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5199 if test $ac_compiler_gnu = yes; then
5200   GCC=yes
5201 else
5202   GCC=
5203 fi
5204 ac_test_CFLAGS=${CFLAGS+set}
5205 ac_save_CFLAGS=$CFLAGS
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5207 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5208 if ${ac_cv_prog_cc_g+:} false; then :
5209   $as_echo_n "(cached) " >&6
5210 else
5211   ac_save_c_werror_flag=$ac_c_werror_flag
5212    ac_c_werror_flag=yes
5213    ac_cv_prog_cc_g=no
5214    CFLAGS="-g"
5215    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h.  */
5217
5218 int
5219 main ()
5220 {
5221
5222   ;
5223   return 0;
5224 }
5225 _ACEOF
5226 if ac_fn_c_try_compile "$LINENO"; then :
5227   ac_cv_prog_cc_g=yes
5228 else
5229   CFLAGS=""
5230       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h.  */
5232
5233 int
5234 main ()
5235 {
5236
5237   ;
5238   return 0;
5239 }
5240 _ACEOF
5241 if ac_fn_c_try_compile "$LINENO"; then :
5242
5243 else
5244   ac_c_werror_flag=$ac_save_c_werror_flag
5245          CFLAGS="-g"
5246          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h.  */
5248
5249 int
5250 main ()
5251 {
5252
5253   ;
5254   return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_c_try_compile "$LINENO"; then :
5258   ac_cv_prog_cc_g=yes
5259 fi
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 fi
5264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265    ac_c_werror_flag=$ac_save_c_werror_flag
5266 fi
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5268 $as_echo "$ac_cv_prog_cc_g" >&6; }
5269 if test "$ac_test_CFLAGS" = set; then
5270   CFLAGS=$ac_save_CFLAGS
5271 elif test $ac_cv_prog_cc_g = yes; then
5272   if test "$GCC" = yes; then
5273     CFLAGS="-g -O2"
5274   else
5275     CFLAGS="-g"
5276   fi
5277 else
5278   if test "$GCC" = yes; then
5279     CFLAGS="-O2"
5280   else
5281     CFLAGS=
5282   fi
5283 fi
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5285 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5286 if ${ac_cv_prog_cc_c89+:} false; then :
5287   $as_echo_n "(cached) " >&6
5288 else
5289   ac_cv_prog_cc_c89=no
5290 ac_save_CC=$CC
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h.  */
5293 #include <stdarg.h>
5294 #include <stdio.h>
5295 struct stat;
5296 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5297 struct buf { int x; };
5298 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5299 static char *e (p, i)
5300      char **p;
5301      int i;
5302 {
5303   return p[i];
5304 }
5305 static char *f (char * (*g) (char **, int), char **p, ...)
5306 {
5307   char *s;
5308   va_list v;
5309   va_start (v,p);
5310   s = g (p, va_arg (v,int));
5311   va_end (v);
5312   return s;
5313 }
5314
5315 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5316    function prototypes and stuff, but not '\xHH' hex character constants.
5317    These don't provoke an error unfortunately, instead are silently treated
5318    as 'x'.  The following induces an error, until -std is added to get
5319    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5320    array size at least.  It's necessary to write '\x00'==0 to get something
5321    that's true only with -std.  */
5322 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5323
5324 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5325    inside strings and character constants.  */
5326 #define FOO(x) 'x'
5327 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5328
5329 int test (int i, double x);
5330 struct s1 {int (*f) (int a);};
5331 struct s2 {int (*f) (double a);};
5332 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5333 int argc;
5334 char **argv;
5335 int
5336 main ()
5337 {
5338 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5339   ;
5340   return 0;
5341 }
5342 _ACEOF
5343 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5344         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5345 do
5346   CC="$ac_save_CC $ac_arg"
5347   if ac_fn_c_try_compile "$LINENO"; then :
5348   ac_cv_prog_cc_c89=$ac_arg
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext
5351   test "x$ac_cv_prog_cc_c89" != "xno" && break
5352 done
5353 rm -f conftest.$ac_ext
5354 CC=$ac_save_CC
5355
5356 fi
5357 # AC_CACHE_VAL
5358 case "x$ac_cv_prog_cc_c89" in
5359   x)
5360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5361 $as_echo "none needed" >&6; } ;;
5362   xno)
5363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5364 $as_echo "unsupported" >&6; } ;;
5365   *)
5366     CC="$CC $ac_cv_prog_cc_c89"
5367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5368 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5369 esac
5370 if test "x$ac_cv_prog_cc_c89" != xno; then :
5371
5372 fi
5373
5374 ac_ext=c
5375 ac_cpp='$CPP $CPPFLAGS'
5376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5379
5380 ac_ext=c
5381 ac_cpp='$CPP $CPPFLAGS'
5382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5386 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5387 if ${am_cv_prog_cc_c_o+:} false; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h.  */
5392
5393 int
5394 main ()
5395 {
5396
5397   ;
5398   return 0;
5399 }
5400 _ACEOF
5401   # Make sure it works both with $CC and with simple cc.
5402   # Following AC_PROG_CC_C_O, we do the test twice because some
5403   # compilers refuse to overwrite an existing .o file with -o,
5404   # though they will create one.
5405   am_cv_prog_cc_c_o=yes
5406   for am_i in 1 2; do
5407     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5408    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5409    ac_status=$?
5410    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411    (exit $ac_status); } \
5412          && test -f conftest2.$ac_objext; then
5413       : OK
5414     else
5415       am_cv_prog_cc_c_o=no
5416       break
5417     fi
5418   done
5419   rm -f core conftest*
5420   unset am_i
5421 fi
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5423 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5424 if test "$am_cv_prog_cc_c_o" != yes; then
5425    # Losing compiler, so override with the script.
5426    # FIXME: It is wrong to rewrite CC.
5427    # But if we don't then we get into trouble of one sort or another.
5428    # A longer-term fix would be to have automake use am__CC in this case,
5429    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5430    CC="$am_aux_dir/compile $CC"
5431 fi
5432 ac_ext=c
5433 ac_cpp='$CPP $CPPFLAGS'
5434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5437
5438 DEPDIR="${am__leading_dot}deps"
5439
5440 ac_config_commands="$ac_config_commands depfiles"
5441
5442
5443 am_make=${MAKE-make}
5444 cat > confinc << 'END'
5445 am__doit:
5446         @echo this is the am__doit target
5447 .PHONY: am__doit
5448 END
5449 # If we don't find an include directive, just comment out the code.
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5451 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5452 am__include="#"
5453 am__quote=
5454 _am_result=none
5455 # First try GNU make style include.
5456 echo "include confinc" > confmf
5457 # Ignore all kinds of additional output from 'make'.
5458 case `$am_make -s -f confmf 2> /dev/null` in #(
5459 *the\ am__doit\ target*)
5460   am__include=include
5461   am__quote=
5462   _am_result=GNU
5463   ;;
5464 esac
5465 # Now try BSD make style include.
5466 if test "$am__include" = "#"; then
5467    echo '.include "confinc"' > confmf
5468    case `$am_make -s -f confmf 2> /dev/null` in #(
5469    *the\ am__doit\ target*)
5470      am__include=.include
5471      am__quote="\""
5472      _am_result=BSD
5473      ;;
5474    esac
5475 fi
5476
5477
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5479 $as_echo "$_am_result" >&6; }
5480 rm -f confinc confmf
5481
5482 # Check whether --enable-dependency-tracking was given.
5483 if test "${enable_dependency_tracking+set}" = set; then :
5484   enableval=$enable_dependency_tracking;
5485 fi
5486
5487 if test "x$enable_dependency_tracking" != xno; then
5488   am_depcomp="$ac_aux_dir/depcomp"
5489   AMDEPBACKSLASH='\'
5490   am__nodep='_no'
5491 fi
5492  if test "x$enable_dependency_tracking" != xno; then
5493   AMDEP_TRUE=
5494   AMDEP_FALSE='#'
5495 else
5496   AMDEP_TRUE='#'
5497   AMDEP_FALSE=
5498 fi
5499
5500
5501
5502 depcc="$CC"   am_compiler_list=
5503
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5505 $as_echo_n "checking dependency style of $depcc... " >&6; }
5506 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5507   $as_echo_n "(cached) " >&6
5508 else
5509   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5510   # We make a subdir and do the tests there.  Otherwise we can end up
5511   # making bogus files that we don't know about and never remove.  For
5512   # instance it was reported that on HP-UX the gcc test will end up
5513   # making a dummy file named 'D' -- because '-MD' means "put the output
5514   # in D".
5515   rm -rf conftest.dir
5516   mkdir conftest.dir
5517   # Copy depcomp to subdir because otherwise we won't find it if we're
5518   # using a relative directory.
5519   cp "$am_depcomp" conftest.dir
5520   cd conftest.dir
5521   # We will build objects and dependencies in a subdirectory because
5522   # it helps to detect inapplicable dependency modes.  For instance
5523   # both Tru64's cc and ICC support -MD to output dependencies as a
5524   # side effect of compilation, but ICC will put the dependencies in
5525   # the current directory while Tru64 will put them in the object
5526   # directory.
5527   mkdir sub
5528
5529   am_cv_CC_dependencies_compiler_type=none
5530   if test "$am_compiler_list" = ""; then
5531      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5532   fi
5533   am__universal=false
5534   case " $depcc " in #(
5535      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5536      esac
5537
5538   for depmode in $am_compiler_list; do
5539     # Setup a source with many dependencies, because some compilers
5540     # like to wrap large dependency lists on column 80 (with \), and
5541     # we should not choose a depcomp mode which is confused by this.
5542     #
5543     # We need to recreate these files for each test, as the compiler may
5544     # overwrite some of them when testing with obscure command lines.
5545     # This happens at least with the AIX C compiler.
5546     : > sub/conftest.c
5547     for i in 1 2 3 4 5 6; do
5548       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5549       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5550       # Solaris 10 /bin/sh.
5551       echo '/* dummy */' > sub/conftst$i.h
5552     done
5553     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5554
5555     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5556     # mode.  It turns out that the SunPro C++ compiler does not properly
5557     # handle '-M -o', and we need to detect this.  Also, some Intel
5558     # versions had trouble with output in subdirs.
5559     am__obj=sub/conftest.${OBJEXT-o}
5560     am__minus_obj="-o $am__obj"
5561     case $depmode in
5562     gcc)
5563       # This depmode causes a compiler race in universal mode.
5564       test "$am__universal" = false || continue
5565       ;;
5566     nosideeffect)
5567       # After this tag, mechanisms are not by side-effect, so they'll
5568       # only be used when explicitly requested.
5569       if test "x$enable_dependency_tracking" = xyes; then
5570         continue
5571       else
5572         break
5573       fi
5574       ;;
5575     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5576       # This compiler won't grok '-c -o', but also, the minuso test has
5577       # not run yet.  These depmodes are late enough in the game, and
5578       # so weak that their functioning should not be impacted.
5579       am__obj=conftest.${OBJEXT-o}
5580       am__minus_obj=
5581       ;;
5582     none) break ;;
5583     esac
5584     if depmode=$depmode \
5585        source=sub/conftest.c object=$am__obj \
5586        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5587        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5588          >/dev/null 2>conftest.err &&
5589        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5590        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5591        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5592        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5593       # icc doesn't choke on unknown options, it will just issue warnings
5594       # or remarks (even with -Werror).  So we grep stderr for any message
5595       # that says an option was ignored or not supported.
5596       # When given -MP, icc 7.0 and 7.1 complain thusly:
5597       #   icc: Command line warning: ignoring option '-M'; no argument required
5598       # The diagnosis changed in icc 8.0:
5599       #   icc: Command line remark: option '-MP' not supported
5600       if (grep 'ignoring option' conftest.err ||
5601           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5602         am_cv_CC_dependencies_compiler_type=$depmode
5603         break
5604       fi
5605     fi
5606   done
5607
5608   cd ..
5609   rm -rf conftest.dir
5610 else
5611   am_cv_CC_dependencies_compiler_type=none
5612 fi
5613
5614 fi
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5616 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5617 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5618
5619  if
5620   test "x$enable_dependency_tracking" != xno \
5621   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5622   am__fastdepCC_TRUE=
5623   am__fastdepCC_FALSE='#'
5624 else
5625   am__fastdepCC_TRUE='#'
5626   am__fastdepCC_FALSE=
5627 fi
5628
5629
5630
5631 ac_ext=c
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5637 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5638 # On Suns, sometimes $CPP names a directory.
5639 if test -n "$CPP" && test -d "$CPP"; then
5640   CPP=
5641 fi
5642 if test -z "$CPP"; then
5643   if ${ac_cv_prog_CPP+:} false; then :
5644   $as_echo_n "(cached) " >&6
5645 else
5646       # Double quotes because CPP needs to be expanded
5647     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5648     do
5649       ac_preproc_ok=false
5650 for ac_c_preproc_warn_flag in '' yes
5651 do
5652   # Use a header file that comes with gcc, so configuring glibc
5653   # with a fresh cross-compiler works.
5654   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5655   # <limits.h> exists even on freestanding compilers.
5656   # On the NeXT, cc -E runs the code through the compiler's parser,
5657   # not just through cpp. "Syntax error" is here to catch this case.
5658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h.  */
5660 #ifdef __STDC__
5661 # include <limits.h>
5662 #else
5663 # include <assert.h>
5664 #endif
5665                      Syntax error
5666 _ACEOF
5667 if ac_fn_c_try_cpp "$LINENO"; then :
5668
5669 else
5670   # Broken: fails on valid input.
5671 continue
5672 fi
5673 rm -f conftest.err conftest.i conftest.$ac_ext
5674
5675   # OK, works on sane cases.  Now check whether nonexistent headers
5676   # can be detected and how.
5677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h.  */
5679 #include <ac_nonexistent.h>
5680 _ACEOF
5681 if ac_fn_c_try_cpp "$LINENO"; then :
5682   # Broken: success on invalid input.
5683 continue
5684 else
5685   # Passes both tests.
5686 ac_preproc_ok=:
5687 break
5688 fi
5689 rm -f conftest.err conftest.i conftest.$ac_ext
5690
5691 done
5692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5693 rm -f conftest.i conftest.err conftest.$ac_ext
5694 if $ac_preproc_ok; then :
5695   break
5696 fi
5697
5698     done
5699     ac_cv_prog_CPP=$CPP
5700
5701 fi
5702   CPP=$ac_cv_prog_CPP
5703 else
5704   ac_cv_prog_CPP=$CPP
5705 fi
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5707 $as_echo "$CPP" >&6; }
5708 ac_preproc_ok=false
5709 for ac_c_preproc_warn_flag in '' yes
5710 do
5711   # Use a header file that comes with gcc, so configuring glibc
5712   # with a fresh cross-compiler works.
5713   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5714   # <limits.h> exists even on freestanding compilers.
5715   # On the NeXT, cc -E runs the code through the compiler's parser,
5716   # not just through cpp. "Syntax error" is here to catch this case.
5717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h.  */
5719 #ifdef __STDC__
5720 # include <limits.h>
5721 #else
5722 # include <assert.h>
5723 #endif
5724                      Syntax error
5725 _ACEOF
5726 if ac_fn_c_try_cpp "$LINENO"; then :
5727
5728 else
5729   # Broken: fails on valid input.
5730 continue
5731 fi
5732 rm -f conftest.err conftest.i conftest.$ac_ext
5733
5734   # OK, works on sane cases.  Now check whether nonexistent headers
5735   # can be detected and how.
5736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h.  */
5738 #include <ac_nonexistent.h>
5739 _ACEOF
5740 if ac_fn_c_try_cpp "$LINENO"; then :
5741   # Broken: success on invalid input.
5742 continue
5743 else
5744   # Passes both tests.
5745 ac_preproc_ok=:
5746 break
5747 fi
5748 rm -f conftest.err conftest.i conftest.$ac_ext
5749
5750 done
5751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5752 rm -f conftest.i conftest.err conftest.$ac_ext
5753 if $ac_preproc_ok; then :
5754
5755 else
5756   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5758 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5759 See \`config.log' for more details" "$LINENO" 5; }
5760 fi
5761
5762 ac_ext=c
5763 ac_cpp='$CPP $CPPFLAGS'
5764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5767
5768
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5770 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5771 if ${ac_cv_path_GREP+:} false; then :
5772   $as_echo_n "(cached) " >&6
5773 else
5774   if test -z "$GREP"; then
5775   ac_path_GREP_found=false
5776   # Loop through the user's path and test for each of PROGNAME-LIST
5777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5779 do
5780   IFS=$as_save_IFS
5781   test -z "$as_dir" && as_dir=.
5782     for ac_prog in grep ggrep; do
5783     for ac_exec_ext in '' $ac_executable_extensions; do
5784       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5785       as_fn_executable_p "$ac_path_GREP" || continue
5786 # Check for GNU ac_path_GREP and select it if it is found.
5787   # Check for GNU $ac_path_GREP
5788 case `"$ac_path_GREP" --version 2>&1` in
5789 *GNU*)
5790   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5791 *)
5792   ac_count=0
5793   $as_echo_n 0123456789 >"conftest.in"
5794   while :
5795   do
5796     cat "conftest.in" "conftest.in" >"conftest.tmp"
5797     mv "conftest.tmp" "conftest.in"
5798     cp "conftest.in" "conftest.nl"
5799     $as_echo 'GREP' >> "conftest.nl"
5800     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5801     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5802     as_fn_arith $ac_count + 1 && ac_count=$as_val
5803     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5804       # Best one so far, save it but keep looking for a better one
5805       ac_cv_path_GREP="$ac_path_GREP"
5806       ac_path_GREP_max=$ac_count
5807     fi
5808     # 10*(2^10) chars as input seems more than enough
5809     test $ac_count -gt 10 && break
5810   done
5811   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5812 esac
5813
5814       $ac_path_GREP_found && break 3
5815     done
5816   done
5817   done
5818 IFS=$as_save_IFS
5819   if test -z "$ac_cv_path_GREP"; then
5820     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5821   fi
5822 else
5823   ac_cv_path_GREP=$GREP
5824 fi
5825
5826 fi
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5828 $as_echo "$ac_cv_path_GREP" >&6; }
5829  GREP="$ac_cv_path_GREP"
5830
5831
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5833 $as_echo_n "checking for egrep... " >&6; }
5834 if ${ac_cv_path_EGREP+:} false; then :
5835   $as_echo_n "(cached) " >&6
5836 else
5837   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5838    then ac_cv_path_EGREP="$GREP -E"
5839    else
5840      if test -z "$EGREP"; then
5841   ac_path_EGREP_found=false
5842   # Loop through the user's path and test for each of PROGNAME-LIST
5843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5845 do
5846   IFS=$as_save_IFS
5847   test -z "$as_dir" && as_dir=.
5848     for ac_prog in egrep; do
5849     for ac_exec_ext in '' $ac_executable_extensions; do
5850       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5851       as_fn_executable_p "$ac_path_EGREP" || continue
5852 # Check for GNU ac_path_EGREP and select it if it is found.
5853   # Check for GNU $ac_path_EGREP
5854 case `"$ac_path_EGREP" --version 2>&1` in
5855 *GNU*)
5856   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5857 *)
5858   ac_count=0
5859   $as_echo_n 0123456789 >"conftest.in"
5860   while :
5861   do
5862     cat "conftest.in" "conftest.in" >"conftest.tmp"
5863     mv "conftest.tmp" "conftest.in"
5864     cp "conftest.in" "conftest.nl"
5865     $as_echo 'EGREP' >> "conftest.nl"
5866     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5867     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5868     as_fn_arith $ac_count + 1 && ac_count=$as_val
5869     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5870       # Best one so far, save it but keep looking for a better one
5871       ac_cv_path_EGREP="$ac_path_EGREP"
5872       ac_path_EGREP_max=$ac_count
5873     fi
5874     # 10*(2^10) chars as input seems more than enough
5875     test $ac_count -gt 10 && break
5876   done
5877   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5878 esac
5879
5880       $ac_path_EGREP_found && break 3
5881     done
5882   done
5883   done
5884 IFS=$as_save_IFS
5885   if test -z "$ac_cv_path_EGREP"; then
5886     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5887   fi
5888 else
5889   ac_cv_path_EGREP=$EGREP
5890 fi
5891
5892    fi
5893 fi
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5895 $as_echo "$ac_cv_path_EGREP" >&6; }
5896  EGREP="$ac_cv_path_EGREP"
5897
5898
5899
5900
5901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5902 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5903 if ${gl_cv_c_amsterdam_compiler+:} false; then :
5904   $as_echo_n "(cached) " >&6
5905 else
5906
5907       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h.  */
5909
5910 #ifdef __ACK__
5911 Amsterdam
5912 #endif
5913
5914 _ACEOF
5915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5916   $EGREP "Amsterdam" >/dev/null 2>&1; then :
5917   gl_cv_c_amsterdam_compiler=yes
5918 else
5919   gl_cv_c_amsterdam_compiler=no
5920 fi
5921 rm -f conftest*
5922
5923
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5926 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5927   if test -z "$AR"; then
5928     if test $gl_cv_c_amsterdam_compiler = yes; then
5929       AR='cc -c.a'
5930       if test -z "$ARFLAGS"; then
5931         ARFLAGS='-o'
5932       fi
5933     else
5934                   if test -n "$ac_tool_prefix"; then
5935   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5936 set dummy ${ac_tool_prefix}ar; ac_word=$2
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938 $as_echo_n "checking for $ac_word... " >&6; }
5939 if ${ac_cv_prog_AR+:} false; then :
5940   $as_echo_n "(cached) " >&6
5941 else
5942   if test -n "$AR"; then
5943   ac_cv_prog_AR="$AR" # Let the user override the test.
5944 else
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5947 do
5948   IFS=$as_save_IFS
5949   test -z "$as_dir" && as_dir=.
5950     for ac_exec_ext in '' $ac_executable_extensions; do
5951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5952     ac_cv_prog_AR="${ac_tool_prefix}ar"
5953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954     break 2
5955   fi
5956 done
5957   done
5958 IFS=$as_save_IFS
5959
5960 fi
5961 fi
5962 AR=$ac_cv_prog_AR
5963 if test -n "$AR"; then
5964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5965 $as_echo "$AR" >&6; }
5966 else
5967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968 $as_echo "no" >&6; }
5969 fi
5970
5971
5972 fi
5973 if test -z "$ac_cv_prog_AR"; then
5974   ac_ct_AR=$AR
5975   # Extract the first word of "ar", so it can be a program name with args.
5976 set dummy ar; ac_word=$2
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5978 $as_echo_n "checking for $ac_word... " >&6; }
5979 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5980   $as_echo_n "(cached) " >&6
5981 else
5982   if test -n "$ac_ct_AR"; then
5983   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5984 else
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH
5987 do
5988   IFS=$as_save_IFS
5989   test -z "$as_dir" && as_dir=.
5990     for ac_exec_ext in '' $ac_executable_extensions; do
5991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992     ac_cv_prog_ac_ct_AR="ar"
5993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5994     break 2
5995   fi
5996 done
5997   done
5998 IFS=$as_save_IFS
5999
6000 fi
6001 fi
6002 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6003 if test -n "$ac_ct_AR"; then
6004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6005 $as_echo "$ac_ct_AR" >&6; }
6006 else
6007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008 $as_echo "no" >&6; }
6009 fi
6010
6011   if test "x$ac_ct_AR" = x; then
6012     AR="ar"
6013   else
6014     case $cross_compiling:$ac_tool_warned in
6015 yes:)
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6018 ac_tool_warned=yes ;;
6019 esac
6020     AR=$ac_ct_AR
6021   fi
6022 else
6023   AR="$ac_cv_prog_AR"
6024 fi
6025
6026       if test -z "$ARFLAGS"; then
6027         ARFLAGS='cru'
6028       fi
6029     fi
6030   else
6031     if test -z "$ARFLAGS"; then
6032       ARFLAGS='cru'
6033     fi
6034   fi
6035
6036
6037   if test -z "$RANLIB"; then
6038     if test $gl_cv_c_amsterdam_compiler = yes; then
6039       RANLIB=':'
6040     else
6041             if test -n "$ac_tool_prefix"; then
6042   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6043 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045 $as_echo_n "checking for $ac_word... " >&6; }
6046 if ${ac_cv_prog_RANLIB+:} false; then :
6047   $as_echo_n "(cached) " >&6
6048 else
6049   if test -n "$RANLIB"; then
6050   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6054 do
6055   IFS=$as_save_IFS
6056   test -z "$as_dir" && as_dir=.
6057     for ac_exec_ext in '' $ac_executable_extensions; do
6058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6059     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061     break 2
6062   fi
6063 done
6064   done
6065 IFS=$as_save_IFS
6066
6067 fi
6068 fi
6069 RANLIB=$ac_cv_prog_RANLIB
6070 if test -n "$RANLIB"; then
6071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6072 $as_echo "$RANLIB" >&6; }
6073 else
6074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6076 fi
6077
6078
6079 fi
6080 if test -z "$ac_cv_prog_RANLIB"; then
6081   ac_ct_RANLIB=$RANLIB
6082   # Extract the first word of "ranlib", so it can be a program name with args.
6083 set dummy ranlib; ac_word=$2
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085 $as_echo_n "checking for $ac_word... " >&6; }
6086 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6087   $as_echo_n "(cached) " >&6
6088 else
6089   if test -n "$ac_ct_RANLIB"; then
6090   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6094 do
6095   IFS=$as_save_IFS
6096   test -z "$as_dir" && as_dir=.
6097     for ac_exec_ext in '' $ac_executable_extensions; do
6098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6099     ac_cv_prog_ac_ct_RANLIB="ranlib"
6100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101     break 2
6102   fi
6103 done
6104   done
6105 IFS=$as_save_IFS
6106
6107 fi
6108 fi
6109 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6110 if test -n "$ac_ct_RANLIB"; then
6111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6112 $as_echo "$ac_ct_RANLIB" >&6; }
6113 else
6114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115 $as_echo "no" >&6; }
6116 fi
6117
6118   if test "x$ac_ct_RANLIB" = x; then
6119     RANLIB=":"
6120   else
6121     case $cross_compiling:$ac_tool_warned in
6122 yes:)
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6125 ac_tool_warned=yes ;;
6126 esac
6127     RANLIB=$ac_ct_RANLIB
6128   fi
6129 else
6130   RANLIB="$ac_cv_prog_RANLIB"
6131 fi
6132
6133     fi
6134   fi
6135
6136
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6138 $as_echo_n "checking for ANSI C header files... " >&6; }
6139 if ${ac_cv_header_stdc+:} false; then :
6140   $as_echo_n "(cached) " >&6
6141 else
6142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h.  */
6144 #include <stdlib.h>
6145 #include <stdarg.h>
6146 #include <string.h>
6147 #include <float.h>
6148
6149 int
6150 main ()
6151 {
6152
6153   ;
6154   return 0;
6155 }
6156 _ACEOF
6157 if ac_fn_c_try_compile "$LINENO"; then :
6158   ac_cv_header_stdc=yes
6159 else
6160   ac_cv_header_stdc=no
6161 fi
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163
6164 if test $ac_cv_header_stdc = yes; then
6165   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h.  */
6168 #include <string.h>
6169
6170 _ACEOF
6171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6172   $EGREP "memchr" >/dev/null 2>&1; then :
6173
6174 else
6175   ac_cv_header_stdc=no
6176 fi
6177 rm -f conftest*
6178
6179 fi
6180
6181 if test $ac_cv_header_stdc = yes; then
6182   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h.  */
6185 #include <stdlib.h>
6186
6187 _ACEOF
6188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6189   $EGREP "free" >/dev/null 2>&1; then :
6190
6191 else
6192   ac_cv_header_stdc=no
6193 fi
6194 rm -f conftest*
6195
6196 fi
6197
6198 if test $ac_cv_header_stdc = yes; then
6199   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6200   if test "$cross_compiling" = yes; then :
6201   :
6202 else
6203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h.  */
6205 #include <ctype.h>
6206 #include <stdlib.h>
6207 #if ((' ' & 0x0FF) == 0x020)
6208 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6209 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6210 #else
6211 # define ISLOWER(c) \
6212                    (('a' <= (c) && (c) <= 'i') \
6213                      || ('j' <= (c) && (c) <= 'r') \
6214                      || ('s' <= (c) && (c) <= 'z'))
6215 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6216 #endif
6217
6218 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6219 int
6220 main ()
6221 {
6222   int i;
6223   for (i = 0; i < 256; i++)
6224     if (XOR (islower (i), ISLOWER (i))
6225         || toupper (i) != TOUPPER (i))
6226       return 2;
6227   return 0;
6228 }
6229 _ACEOF
6230 if ac_fn_c_try_run "$LINENO"; then :
6231
6232 else
6233   ac_cv_header_stdc=no
6234 fi
6235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6236   conftest.$ac_objext conftest.beam conftest.$ac_ext
6237 fi
6238
6239 fi
6240 fi
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6242 $as_echo "$ac_cv_header_stdc" >&6; }
6243 if test $ac_cv_header_stdc = yes; then
6244
6245 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6246
6247 fi
6248
6249 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6250 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6251                   inttypes.h stdint.h unistd.h
6252 do :
6253   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6254 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6255 "
6256 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6257   cat >>confdefs.h <<_ACEOF
6258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6259 _ACEOF
6260
6261 fi
6262
6263 done
6264
6265
6266
6267   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6268 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6269   MINIX=yes
6270 else
6271   MINIX=
6272 fi
6273
6274
6275   if test "$MINIX" = yes; then
6276
6277 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6278
6279
6280 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6281
6282
6283 $as_echo "#define _MINIX 1" >>confdefs.h
6284
6285
6286 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6287
6288   fi
6289
6290
6291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6292 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6293 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6294   $as_echo_n "(cached) " >&6
6295 else
6296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h.  */
6298
6299 #         define __EXTENSIONS__ 1
6300           $ac_includes_default
6301 int
6302 main ()
6303 {
6304
6305   ;
6306   return 0;
6307 }
6308 _ACEOF
6309 if ac_fn_c_try_compile "$LINENO"; then :
6310   ac_cv_safe_to_define___extensions__=yes
6311 else
6312   ac_cv_safe_to_define___extensions__=no
6313 fi
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 fi
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6317 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6318   test $ac_cv_safe_to_define___extensions__ = yes &&
6319     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6320
6321   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6322
6323   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6324
6325   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6326
6327   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6328
6329   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6330
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6332 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6333 if ${ac_cv_should_define__xopen_source+:} false; then :
6334   $as_echo_n "(cached) " >&6
6335 else
6336   ac_cv_should_define__xopen_source=no
6337      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h.  */
6339
6340           #include <wchar.h>
6341           mbstate_t x;
6342 int
6343 main ()
6344 {
6345
6346   ;
6347   return 0;
6348 }
6349 _ACEOF
6350 if ac_fn_c_try_compile "$LINENO"; then :
6351
6352 else
6353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h.  */
6355
6356              #define _XOPEN_SOURCE 500
6357              #include <wchar.h>
6358              mbstate_t x;
6359 int
6360 main ()
6361 {
6362
6363   ;
6364   return 0;
6365 }
6366 _ACEOF
6367 if ac_fn_c_try_compile "$LINENO"; then :
6368   ac_cv_should_define__xopen_source=yes
6369 fi
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371 fi
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373 fi
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6375 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6376   test $ac_cv_should_define__xopen_source = yes &&
6377     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389   # IEEE behaviour is the default on all CPUs except Alpha and SH
6390   # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6391   # and the GCC 4.1.2 manual).
6392   case "$host_cpu" in
6393     alpha*)
6394       # On Alpha systems, a compiler option provides the behaviour.
6395       # See the ieee(3) manual page, also available at
6396       # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
6397       if test -n "$GCC"; then
6398         # GCC has the option -mieee.
6399         # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6400         CPPFLAGS="$CPPFLAGS -mieee"
6401       else
6402         # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6403         # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6404         CPPFLAGS="$CPPFLAGS -ieee"
6405       fi
6406       ;;
6407     sh*)
6408       if test -n "$GCC"; then
6409         # GCC has the option -mieee.
6410         CPPFLAGS="$CPPFLAGS -mieee"
6411       fi
6412       ;;
6413   esac
6414
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6416 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6417 if ${ac_cv_sys_largefile_source+:} false; then :
6418   $as_echo_n "(cached) " >&6
6419 else
6420   while :; do
6421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h.  */
6423 #include <sys/types.h> /* for off_t */
6424      #include <stdio.h>
6425 int
6426 main ()
6427 {
6428 int (*fp) (FILE *, off_t, int) = fseeko;
6429      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6430   ;
6431   return 0;
6432 }
6433 _ACEOF
6434 if ac_fn_c_try_link "$LINENO"; then :
6435   ac_cv_sys_largefile_source=no; break
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext \
6438     conftest$ac_exeext conftest.$ac_ext
6439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h.  */
6441 #define _LARGEFILE_SOURCE 1
6442 #include <sys/types.h> /* for off_t */
6443      #include <stdio.h>
6444 int
6445 main ()
6446 {
6447 int (*fp) (FILE *, off_t, int) = fseeko;
6448      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6449   ;
6450   return 0;
6451 }
6452 _ACEOF
6453 if ac_fn_c_try_link "$LINENO"; then :
6454   ac_cv_sys_largefile_source=1; break
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext \
6457     conftest$ac_exeext conftest.$ac_ext
6458   ac_cv_sys_largefile_source=unknown
6459   break
6460 done
6461 fi
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6463 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6464 case $ac_cv_sys_largefile_source in #(
6465   no | unknown) ;;
6466   *)
6467 cat >>confdefs.h <<_ACEOF
6468 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6469 _ACEOF
6470 ;;
6471 esac
6472 rm -rf conftest*
6473
6474 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6475 # in glibc 2.1.3, but that breaks too many other things.
6476 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6477 if test $ac_cv_sys_largefile_source != unknown; then
6478
6479 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
6480
6481 fi
6482
6483 # Check whether --enable-largefile was given.
6484 if test "${enable_largefile+set}" = set; then :
6485   enableval=$enable_largefile;
6486 fi
6487
6488 if test "$enable_largefile" != no; then
6489
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6491 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6492 if ${ac_cv_sys_largefile_CC+:} false; then :
6493   $as_echo_n "(cached) " >&6
6494 else
6495   ac_cv_sys_largefile_CC=no
6496      if test "$GCC" != yes; then
6497        ac_save_CC=$CC
6498        while :; do
6499          # IRIX 6.2 and later do not support large files by default,
6500          # so use the C compiler's -n32 option if that helps.
6501          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h.  */
6503 #include <sys/types.h>
6504  /* Check that off_t can represent 2**63 - 1 correctly.
6505     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6506     since some C++ compilers masquerading as C compilers
6507     incorrectly reject 9223372036854775807.  */
6508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6509   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6510                        && LARGE_OFF_T % 2147483647 == 1)
6511                       ? 1 : -1];
6512 int
6513 main ()
6514 {
6515
6516   ;
6517   return 0;
6518 }
6519 _ACEOF
6520          if ac_fn_c_try_compile "$LINENO"; then :
6521   break
6522 fi
6523 rm -f core conftest.err conftest.$ac_objext
6524          CC="$CC -n32"
6525          if ac_fn_c_try_compile "$LINENO"; then :
6526   ac_cv_sys_largefile_CC=' -n32'; break
6527 fi
6528 rm -f core conftest.err conftest.$ac_objext
6529          break
6530        done
6531        CC=$ac_save_CC
6532        rm -f conftest.$ac_ext
6533     fi
6534 fi
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6536 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6537   if test "$ac_cv_sys_largefile_CC" != no; then
6538     CC=$CC$ac_cv_sys_largefile_CC
6539   fi
6540
6541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6542 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6543 if ${ac_cv_sys_file_offset_bits+:} false; then :
6544   $as_echo_n "(cached) " >&6
6545 else
6546   while :; do
6547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h.  */
6549 #include <sys/types.h>
6550  /* Check that off_t can represent 2**63 - 1 correctly.
6551     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6552     since some C++ compilers masquerading as C compilers
6553     incorrectly reject 9223372036854775807.  */
6554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6555   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6556                        && LARGE_OFF_T % 2147483647 == 1)
6557                       ? 1 : -1];
6558 int
6559 main ()
6560 {
6561
6562   ;
6563   return 0;
6564 }
6565 _ACEOF
6566 if ac_fn_c_try_compile "$LINENO"; then :
6567   ac_cv_sys_file_offset_bits=no; break
6568 fi
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h.  */
6572 #define _FILE_OFFSET_BITS 64
6573 #include <sys/types.h>
6574  /* Check that off_t can represent 2**63 - 1 correctly.
6575     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6576     since some C++ compilers masquerading as C compilers
6577     incorrectly reject 9223372036854775807.  */
6578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6579   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6580                        && LARGE_OFF_T % 2147483647 == 1)
6581                       ? 1 : -1];
6582 int
6583 main ()
6584 {
6585
6586   ;
6587   return 0;
6588 }
6589 _ACEOF
6590 if ac_fn_c_try_compile "$LINENO"; then :
6591   ac_cv_sys_file_offset_bits=64; break
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594   ac_cv_sys_file_offset_bits=unknown
6595   break
6596 done
6597 fi
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6599 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6600 case $ac_cv_sys_file_offset_bits in #(
6601   no | unknown) ;;
6602   *)
6603 cat >>confdefs.h <<_ACEOF
6604 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6605 _ACEOF
6606 ;;
6607 esac
6608 rm -rf conftest*
6609   if test $ac_cv_sys_file_offset_bits = unknown; then
6610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6611 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6612 if ${ac_cv_sys_large_files+:} false; then :
6613   $as_echo_n "(cached) " >&6
6614 else
6615   while :; do
6616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h.  */
6618 #include <sys/types.h>
6619  /* Check that off_t can represent 2**63 - 1 correctly.
6620     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6621     since some C++ compilers masquerading as C compilers
6622     incorrectly reject 9223372036854775807.  */
6623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6624   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6625                        && LARGE_OFF_T % 2147483647 == 1)
6626                       ? 1 : -1];
6627 int
6628 main ()
6629 {
6630
6631   ;
6632   return 0;
6633 }
6634 _ACEOF
6635 if ac_fn_c_try_compile "$LINENO"; then :
6636   ac_cv_sys_large_files=no; break
6637 fi
6638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h.  */
6641 #define _LARGE_FILES 1
6642 #include <sys/types.h>
6643  /* Check that off_t can represent 2**63 - 1 correctly.
6644     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6645     since some C++ compilers masquerading as C compilers
6646     incorrectly reject 9223372036854775807.  */
6647 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6648   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6649                        && LARGE_OFF_T % 2147483647 == 1)
6650                       ? 1 : -1];
6651 int
6652 main ()
6653 {
6654
6655   ;
6656   return 0;
6657 }
6658 _ACEOF
6659 if ac_fn_c_try_compile "$LINENO"; then :
6660   ac_cv_sys_large_files=1; break
6661 fi
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663   ac_cv_sys_large_files=unknown
6664   break
6665 done
6666 fi
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6668 $as_echo "$ac_cv_sys_large_files" >&6; }
6669 case $ac_cv_sys_large_files in #(
6670   no | unknown) ;;
6671   *)
6672 cat >>confdefs.h <<_ACEOF
6673 #define _LARGE_FILES $ac_cv_sys_large_files
6674 _ACEOF
6675 ;;
6676 esac
6677 rm -rf conftest*
6678   fi
6679
6680
6681 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6682
6683 fi
6684
6685
6686
6687   # Code from module absolute-header:
6688   # Code from module alloca:
6689   # Code from module alloca-opt:
6690   # Code from module alloca-opt-tests:
6691   # Code from module base64:
6692   # Code from module base64-tests:
6693   # Code from module binary-io:
6694   # Code from module binary-io-tests:
6695   # Code from module byteswap:
6696   # Code from module byteswap-tests:
6697   # Code from module c-ctype:
6698   # Code from module c-ctype-tests:
6699   # Code from module errno:
6700   # Code from module errno-tests:
6701   # Code from module extensions:
6702
6703   # Code from module extern-inline:
6704   # Code from module fcntl-h:
6705   # Code from module fcntl-h-tests:
6706   # Code from module fdopen:
6707   # Code from module fdopen-tests:
6708   # Code from module fgetc-tests:
6709   # Code from module float:
6710   # Code from module float-tests:
6711   # Code from module fpieee:
6712
6713   # Code from module fpucw:
6714   # Code from module fputc-tests:
6715   # Code from module fread-tests:
6716   # Code from module fstat:
6717   # Code from module fstat-tests:
6718   # Code from module ftell:
6719   # Code from module ftell-tests:
6720   # Code from module ftello:
6721
6722   # Code from module ftello-tests:
6723   # Code from module func:
6724   # Code from module func-tests:
6725   # Code from module fwrite-tests:
6726   # Code from module gendocs:
6727   # Code from module getdelim:
6728   # Code from module getdelim-tests:
6729   # Code from module getline:
6730   # Code from module getline-tests:
6731   # Code from module getpagesize:
6732   # Code from module gettext:
6733   # Code from module gettext-h:
6734   # Code from module gettimeofday:
6735   # Code from module gettimeofday-tests:
6736   # Code from module gnumakefile:
6737   # Code from module hash-pjw-bare:
6738   # Code from module havelib:
6739   # Code from module iconv:
6740   # Code from module iconv-tests:
6741   # Code from module include_next:
6742   # Code from module intprops:
6743   # Code from module intprops-tests:
6744   # Code from module inttypes:
6745   # Code from module inttypes-incomplete:
6746   # Code from module inttypes-tests:
6747   # Code from module largefile:
6748
6749   # Code from module lib-msvc-compat:
6750   # Code from module lib-symbol-versions:
6751   # Code from module lseek:
6752   # Code from module maintainer-makefile:
6753   # Code from module malloc-posix:
6754   # Code from module manywarnings:
6755   # Code from module memchr:
6756   # Code from module memchr-tests:
6757   # Code from module memmem-simple:
6758   # Code from module minmax:
6759   # Code from module msvc-inval:
6760   # Code from module msvc-nothrow:
6761   # Code from module multiarch:
6762   # Code from module netdb:
6763   # Code from module netdb-tests:
6764   # Code from module netinet_in:
6765   # Code from module netinet_in-tests:
6766   # Code from module pmccabe2html:
6767   # Code from module read-file:
6768   # Code from module read-file-tests:
6769   # Code from module realloc-posix:
6770   # Code from module size_max:
6771   # Code from module snippet/_Noreturn:
6772   # Code from module snippet/arg-nonnull:
6773   # Code from module snippet/c++defs:
6774   # Code from module snippet/warn-on-use:
6775   # Code from module snprintf:
6776   # Code from module snprintf-tests:
6777   # Code from module socklen:
6778   # Code from module ssize_t:
6779   # Code from module stdalign:
6780   # Code from module stdalign-tests:
6781   # Code from module stdbool:
6782   # Code from module stdbool-tests:
6783   # Code from module stddef:
6784   # Code from module stddef-tests:
6785   # Code from module stdint:
6786   # Code from module stdint-tests:
6787   # Code from module stdio:
6788   # Code from module stdio-tests:
6789   # Code from module stdlib:
6790   # Code from module stdlib-tests:
6791   # Code from module strcase:
6792   # Code from module string:
6793   # Code from module string-tests:
6794   # Code from module strings:
6795   # Code from module strings-tests:
6796   # Code from module strndup:
6797   # Code from module strnlen:
6798   # Code from module strnlen-tests:
6799   # Code from module strtok_r:
6800   # Code from module strverscmp:
6801   # Code from module strverscmp-tests:
6802   # Code from module sys_socket:
6803   # Code from module sys_socket-tests:
6804   # Code from module sys_stat:
6805   # Code from module sys_stat-tests:
6806   # Code from module sys_time:
6807   # Code from module sys_time-tests:
6808   # Code from module sys_types:
6809   # Code from module sys_types-tests:
6810   # Code from module sys_uio:
6811   # Code from module sys_uio-tests:
6812   # Code from module test-framework-sh:
6813   # Code from module test-framework-sh-tests:
6814   # Code from module time:
6815   # Code from module time-tests:
6816   # Code from module time_r:
6817   # Code from module u64:
6818   # Code from module u64-tests:
6819   # Code from module unistd:
6820   # Code from module unistd-tests:
6821   # Code from module useless-if-before-free:
6822   # Code from module valgrind-tests:
6823   # Code from module vasnprintf:
6824   # Code from module vasnprintf-tests:
6825   # Code from module vasprintf:
6826   # Code from module vasprintf-tests:
6827   # Code from module vc-list-files:
6828   # Code from module vc-list-files-tests:
6829   # Code from module verify:
6830   # Code from module verify-tests:
6831   # Code from module vsnprintf:
6832   # Code from module vsnprintf-tests:
6833   # Code from module warnings:
6834   # Code from module wchar:
6835   # Code from module wchar-tests:
6836   # Code from module xsize:
6837
6838
6839
6840   # Code from module absolute-header:
6841   # Code from module accept:
6842   # Code from module alloca:
6843   # Code from module alloca-opt:
6844   # Code from module arpa_inet:
6845   # Code from module bind:
6846   # Code from module c-ctype:
6847   # Code from module clock-time:
6848   # Code from module close:
6849   # Code from module connect:
6850   # Code from module dup2:
6851   # Code from module environ:
6852   # Code from module errno:
6853   # Code from module error:
6854   # Code from module exitfail:
6855   # Code from module extensions:
6856
6857   # Code from module extern-inline:
6858   # Code from module fd-hook:
6859   # Code from module float:
6860   # Code from module fseek:
6861   # Code from module fseeko:
6862
6863   # Code from module fstat:
6864   # Code from module getaddrinfo:
6865   # Code from module getdelim:
6866   # Code from module getline:
6867   # Code from module getpass:
6868   # Code from module getpeername:
6869   # Code from module gettext-h:
6870   # Code from module gettime:
6871   # Code from module gettimeofday:
6872   # Code from module hostent:
6873   # Code from module include_next:
6874   # Code from module inet_ntop:
6875   # Code from module inet_pton:
6876   # Code from module intprops:
6877   # Code from module largefile:
6878
6879   # Code from module listen:
6880   # Code from module lseek:
6881   # Code from module malloc-posix:
6882   # Code from module malloca:
6883   # Code from module memchr:
6884   # Code from module mktime:
6885   # Code from module msvc-inval:
6886   # Code from module msvc-nothrow:
6887   # Code from module multiarch:
6888   # Code from module netdb:
6889   # Code from module netinet_in:
6890   # Code from module parse-datetime:
6891   # Code from module progname:
6892   # Code from module realloc-posix:
6893   # Code from module recv:
6894   # Code from module recvfrom:
6895   # Code from module select:
6896   # Code from module send:
6897   # Code from module sendto:
6898   # Code from module servent:
6899   # Code from module setenv:
6900   # Code from module setsockopt:
6901   # Code from module shutdown:
6902   # Code from module signal-h:
6903   # Code from module size_max:
6904   # Code from module snippet/_Noreturn:
6905   # Code from module snippet/arg-nonnull:
6906   # Code from module snippet/c++defs:
6907   # Code from module snippet/warn-on-use:
6908   # Code from module snprintf:
6909   # Code from module socket:
6910   # Code from module socketlib:
6911   # Code from module sockets:
6912   # Code from module socklen:
6913   # Code from module ssize_t:
6914   # Code from module stdalign:
6915   # Code from module stdbool:
6916   # Code from module stddef:
6917   # Code from module stdint:
6918   # Code from module stdio:
6919   # Code from module stdlib:
6920   # Code from module strdup-posix:
6921   # Code from module strerror:
6922   # Code from module strerror-override:
6923   # Code from module string:
6924   # Code from module sys_select:
6925   # Code from module sys_socket:
6926   # Code from module sys_stat:
6927   # Code from module sys_time:
6928   # Code from module sys_types:
6929   # Code from module sys_uio:
6930   # Code from module time:
6931   # Code from module time_r:
6932   # Code from module timespec:
6933   # Code from module unistd:
6934   # Code from module unsetenv:
6935   # Code from module vasnprintf:
6936   # Code from module verify:
6937   # Code from module wchar:
6938   # Code from module xalloc:
6939   # Code from module xalloc-die:
6940   # Code from module xalloc-oversized:
6941   # Code from module xsize:
6942
6943 # By default we simply use the C compiler to build assembly code.
6944
6945 test "${CCAS+set}" = set || CCAS=$CC
6946 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6947
6948
6949
6950 depcc="$CCAS"   am_compiler_list=
6951
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6953 $as_echo_n "checking dependency style of $depcc... " >&6; }
6954 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6955   $as_echo_n "(cached) " >&6
6956 else
6957   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6958   # We make a subdir and do the tests there.  Otherwise we can end up
6959   # making bogus files that we don't know about and never remove.  For
6960   # instance it was reported that on HP-UX the gcc test will end up
6961   # making a dummy file named 'D' -- because '-MD' means "put the output
6962   # in D".
6963   rm -rf conftest.dir
6964   mkdir conftest.dir
6965   # Copy depcomp to subdir because otherwise we won't find it if we're
6966   # using a relative directory.
6967   cp "$am_depcomp" conftest.dir
6968   cd conftest.dir
6969   # We will build objects and dependencies in a subdirectory because
6970   # it helps to detect inapplicable dependency modes.  For instance
6971   # both Tru64's cc and ICC support -MD to output dependencies as a
6972   # side effect of compilation, but ICC will put the dependencies in
6973   # the current directory while Tru64 will put them in the object
6974   # directory.
6975   mkdir sub
6976
6977   am_cv_CCAS_dependencies_compiler_type=none
6978   if test "$am_compiler_list" = ""; then
6979      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6980   fi
6981   am__universal=false
6982
6983
6984   for depmode in $am_compiler_list; do
6985     # Setup a source with many dependencies, because some compilers
6986     # like to wrap large dependency lists on column 80 (with \), and
6987     # we should not choose a depcomp mode which is confused by this.
6988     #
6989     # We need to recreate these files for each test, as the compiler may
6990     # overwrite some of them when testing with obscure command lines.
6991     # This happens at least with the AIX C compiler.
6992     : > sub/conftest.c
6993     for i in 1 2 3 4 5 6; do
6994       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6995       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6996       # Solaris 10 /bin/sh.
6997       echo '/* dummy */' > sub/conftst$i.h
6998     done
6999     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7000
7001     # We check with '-c' and '-o' for the sake of the "dashmstdout"
7002     # mode.  It turns out that the SunPro C++ compiler does not properly
7003     # handle '-M -o', and we need to detect this.  Also, some Intel
7004     # versions had trouble with output in subdirs.
7005     am__obj=sub/conftest.${OBJEXT-o}
7006     am__minus_obj="-o $am__obj"
7007     case $depmode in
7008     gcc)
7009       # This depmode causes a compiler race in universal mode.
7010       test "$am__universal" = false || continue
7011       ;;
7012     nosideeffect)
7013       # After this tag, mechanisms are not by side-effect, so they'll
7014       # only be used when explicitly requested.
7015       if test "x$enable_dependency_tracking" = xyes; then
7016         continue
7017       else
7018         break
7019       fi
7020       ;;
7021     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7022       # This compiler won't grok '-c -o', but also, the minuso test has
7023       # not run yet.  These depmodes are late enough in the game, and
7024       # so weak that their functioning should not be impacted.
7025       am__obj=conftest.${OBJEXT-o}
7026       am__minus_obj=
7027       ;;
7028     none) break ;;
7029     esac
7030     if depmode=$depmode \
7031        source=sub/conftest.c object=$am__obj \
7032        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7033        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7034          >/dev/null 2>conftest.err &&
7035        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7036        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7037        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7038        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7039       # icc doesn't choke on unknown options, it will just issue warnings
7040       # or remarks (even with -Werror).  So we grep stderr for any message
7041       # that says an option was ignored or not supported.
7042       # When given -MP, icc 7.0 and 7.1 complain thusly:
7043       #   icc: Command line warning: ignoring option '-M'; no argument required
7044       # The diagnosis changed in icc 8.0:
7045       #   icc: Command line remark: option '-MP' not supported
7046       if (grep 'ignoring option' conftest.err ||
7047           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7048         am_cv_CCAS_dependencies_compiler_type=$depmode
7049         break
7050       fi
7051     fi
7052   done
7053
7054   cd ..
7055   rm -rf conftest.dir
7056 else
7057   am_cv_CCAS_dependencies_compiler_type=none
7058 fi
7059
7060 fi
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
7062 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
7063 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
7064
7065  if
7066   test "x$enable_dependency_tracking" != xno \
7067   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
7068   am__fastdepCCAS_TRUE=
7069   am__fastdepCCAS_FALSE='#'
7070 else
7071   am__fastdepCCAS_TRUE='#'
7072   am__fastdepCCAS_FALSE=
7073 fi
7074
7075
7076 if test -n "$ac_tool_prefix"; then
7077   for ac_prog in ar lib "link -lib"
7078   do
7079     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_AR+:} false; then :
7084   $as_echo_n "(cached) " >&6
7085 else
7086   if test -n "$AR"; then
7087   ac_cv_prog_AR="$AR" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094     for ac_exec_ext in '' $ac_executable_extensions; do
7095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101   done
7102 IFS=$as_save_IFS
7103
7104 fi
7105 fi
7106 AR=$ac_cv_prog_AR
7107 if test -n "$AR"; then
7108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7109 $as_echo "$AR" >&6; }
7110 else
7111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7113 fi
7114
7115
7116     test -n "$AR" && break
7117   done
7118 fi
7119 if test -z "$AR"; then
7120   ac_ct_AR=$AR
7121   for ac_prog in ar lib "link -lib"
7122 do
7123   # Extract the first word of "$ac_prog", so it can be a program name with args.
7124 set dummy $ac_prog; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7128   $as_echo_n "(cached) " >&6
7129 else
7130   if test -n "$ac_ct_AR"; then
7131   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136   IFS=$as_save_IFS
7137   test -z "$as_dir" && as_dir=.
7138     for ac_exec_ext in '' $ac_executable_extensions; do
7139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140     ac_cv_prog_ac_ct_AR="$ac_prog"
7141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142     break 2
7143   fi
7144 done
7145   done
7146 IFS=$as_save_IFS
7147
7148 fi
7149 fi
7150 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7151 if test -n "$ac_ct_AR"; then
7152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7153 $as_echo "$ac_ct_AR" >&6; }
7154 else
7155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7157 fi
7158
7159
7160   test -n "$ac_ct_AR" && break
7161 done
7162
7163   if test "x$ac_ct_AR" = x; then
7164     AR="false"
7165   else
7166     case $cross_compiling:$ac_tool_warned in
7167 yes:)
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170 ac_tool_warned=yes ;;
7171 esac
7172     AR=$ac_ct_AR
7173   fi
7174 fi
7175
7176 : ${AR=ar}
7177
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7179 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
7180 if ${am_cv_ar_interface+:} false; then :
7181   $as_echo_n "(cached) " >&6
7182 else
7183   ac_ext=c
7184 ac_cpp='$CPP $CPPFLAGS'
7185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7188
7189    am_cv_ar_interface=ar
7190    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h.  */
7192 int some_variable = 0;
7193 _ACEOF
7194 if ac_fn_c_try_compile "$LINENO"; then :
7195   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7196       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7197   (eval $am_ar_try) 2>&5
7198   ac_status=$?
7199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7200   test $ac_status = 0; }
7201       if test "$ac_status" -eq 0; then
7202         am_cv_ar_interface=ar
7203       else
7204         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7205         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7206   (eval $am_ar_try) 2>&5
7207   ac_status=$?
7208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7209   test $ac_status = 0; }
7210         if test "$ac_status" -eq 0; then
7211           am_cv_ar_interface=lib
7212         else
7213           am_cv_ar_interface=unknown
7214         fi
7215       fi
7216       rm -f conftest.lib libconftest.a
7217
7218 fi
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220    ac_ext=c
7221 ac_cpp='$CPP $CPPFLAGS'
7222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7225
7226 fi
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7228 $as_echo "$am_cv_ar_interface" >&6; }
7229
7230 case $am_cv_ar_interface in
7231 ar)
7232   ;;
7233 lib)
7234   # Microsoft lib, so override with the ar-lib wrapper script.
7235   # FIXME: It is wrong to rewrite AR.
7236   # But if we don't then we get into trouble of one sort or another.
7237   # A longer-term fix would be to have automake use am__AR in this case,
7238   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7239   # similar.
7240   AR="$am_aux_dir/ar-lib $AR"
7241   ;;
7242 unknown)
7243   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7244   ;;
7245 esac
7246
7247 ac_ext=cpp
7248 ac_cpp='$CXXCPP $CPPFLAGS'
7249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7252 if test -z "$CXX"; then
7253   if test -n "$CCC"; then
7254     CXX=$CCC
7255   else
7256     if test -n "$ac_tool_prefix"; then
7257   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7258   do
7259     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if ${ac_cv_prog_CXX+:} false; then :
7264   $as_echo_n "(cached) " >&6
7265 else
7266   if test -n "$CXX"; then
7267   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274     for ac_exec_ext in '' $ac_executable_extensions; do
7275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278     break 2
7279   fi
7280 done
7281   done
7282 IFS=$as_save_IFS
7283
7284 fi
7285 fi
7286 CXX=$ac_cv_prog_CXX
7287 if test -n "$CXX"; then
7288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7289 $as_echo "$CXX" >&6; }
7290 else
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 fi
7294
7295
7296     test -n "$CXX" && break
7297   done
7298 fi
7299 if test -z "$CXX"; then
7300   ac_ct_CXX=$CXX
7301   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7302 do
7303   # Extract the first word of "$ac_prog", so it can be a program name with args.
7304 set dummy $ac_prog; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7308   $as_echo_n "(cached) " >&6
7309 else
7310   if test -n "$ac_ct_CXX"; then
7311   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7312 else
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318     for ac_exec_ext in '' $ac_executable_extensions; do
7319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320     ac_cv_prog_ac_ct_CXX="$ac_prog"
7321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325   done
7326 IFS=$as_save_IFS
7327
7328 fi
7329 fi
7330 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7331 if test -n "$ac_ct_CXX"; then
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7333 $as_echo "$ac_ct_CXX" >&6; }
7334 else
7335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7337 fi
7338
7339
7340   test -n "$ac_ct_CXX" && break
7341 done
7342
7343   if test "x$ac_ct_CXX" = x; then
7344     CXX="g++"
7345   else
7346     case $cross_compiling:$ac_tool_warned in
7347 yes:)
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7350 ac_tool_warned=yes ;;
7351 esac
7352     CXX=$ac_ct_CXX
7353   fi
7354 fi
7355
7356   fi
7357 fi
7358 # Provide some information about the compiler.
7359 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7360 set X $ac_compile
7361 ac_compiler=$2
7362 for ac_option in --version -v -V -qversion; do
7363   { { ac_try="$ac_compiler $ac_option >&5"
7364 case "(($ac_try" in
7365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7366   *) ac_try_echo=$ac_try;;
7367 esac
7368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7369 $as_echo "$ac_try_echo"; } >&5
7370   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7371   ac_status=$?
7372   if test -s conftest.err; then
7373     sed '10a\
7374 ... rest of stderr output deleted ...
7375          10q' conftest.err >conftest.er1
7376     cat conftest.er1 >&5
7377   fi
7378   rm -f conftest.er1 conftest.err
7379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7380   test $ac_status = 0; }
7381 done
7382
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7384 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7385 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7386   $as_echo_n "(cached) " >&6
7387 else
7388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h.  */
7390
7391 int
7392 main ()
7393 {
7394 #ifndef __GNUC__
7395        choke me
7396 #endif
7397
7398   ;
7399   return 0;
7400 }
7401 _ACEOF
7402 if ac_fn_cxx_try_compile "$LINENO"; then :
7403   ac_compiler_gnu=yes
7404 else
7405   ac_compiler_gnu=no
7406 fi
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7409
7410 fi
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7412 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7413 if test $ac_compiler_gnu = yes; then
7414   GXX=yes
7415 else
7416   GXX=
7417 fi
7418 ac_test_CXXFLAGS=${CXXFLAGS+set}
7419 ac_save_CXXFLAGS=$CXXFLAGS
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7421 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7422 if ${ac_cv_prog_cxx_g+:} false; then :
7423   $as_echo_n "(cached) " >&6
7424 else
7425   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7426    ac_cxx_werror_flag=yes
7427    ac_cv_prog_cxx_g=no
7428    CXXFLAGS="-g"
7429    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h.  */
7431
7432 int
7433 main ()
7434 {
7435
7436   ;
7437   return 0;
7438 }
7439 _ACEOF
7440 if ac_fn_cxx_try_compile "$LINENO"; then :
7441   ac_cv_prog_cxx_g=yes
7442 else
7443   CXXFLAGS=""
7444       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h.  */
7446
7447 int
7448 main ()
7449 {
7450
7451   ;
7452   return 0;
7453 }
7454 _ACEOF
7455 if ac_fn_cxx_try_compile "$LINENO"; then :
7456
7457 else
7458   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7459          CXXFLAGS="-g"
7460          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h.  */
7462
7463 int
7464 main ()
7465 {
7466
7467   ;
7468   return 0;
7469 }
7470 _ACEOF
7471 if ac_fn_cxx_try_compile "$LINENO"; then :
7472   ac_cv_prog_cxx_g=yes
7473 fi
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 fi
7476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7477 fi
7478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7480 fi
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7482 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7483 if test "$ac_test_CXXFLAGS" = set; then
7484   CXXFLAGS=$ac_save_CXXFLAGS
7485 elif test $ac_cv_prog_cxx_g = yes; then
7486   if test "$GXX" = yes; then
7487     CXXFLAGS="-g -O2"
7488   else
7489     CXXFLAGS="-g"
7490   fi
7491 else
7492   if test "$GXX" = yes; then
7493     CXXFLAGS="-O2"
7494   else
7495     CXXFLAGS=
7496   fi
7497 fi
7498 ac_ext=c
7499 ac_cpp='$CPP $CPPFLAGS'
7500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7503
7504 depcc="$CXX"  am_compiler_list=
7505
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7507 $as_echo_n "checking dependency style of $depcc... " >&6; }
7508 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7509   $as_echo_n "(cached) " >&6
7510 else
7511   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7512   # We make a subdir and do the tests there.  Otherwise we can end up
7513   # making bogus files that we don't know about and never remove.  For
7514   # instance it was reported that on HP-UX the gcc test will end up
7515   # making a dummy file named 'D' -- because '-MD' means "put the output
7516   # in D".
7517   rm -rf conftest.dir
7518   mkdir conftest.dir
7519   # Copy depcomp to subdir because otherwise we won't find it if we're
7520   # using a relative directory.
7521   cp "$am_depcomp" conftest.dir
7522   cd conftest.dir
7523   # We will build objects and dependencies in a subdirectory because
7524   # it helps to detect inapplicable dependency modes.  For instance
7525   # both Tru64's cc and ICC support -MD to output dependencies as a
7526   # side effect of compilation, but ICC will put the dependencies in
7527   # the current directory while Tru64 will put them in the object
7528   # directory.
7529   mkdir sub
7530
7531   am_cv_CXX_dependencies_compiler_type=none
7532   if test "$am_compiler_list" = ""; then
7533      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7534   fi
7535   am__universal=false
7536   case " $depcc " in #(
7537      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7538      esac
7539
7540   for depmode in $am_compiler_list; do
7541     # Setup a source with many dependencies, because some compilers
7542     # like to wrap large dependency lists on column 80 (with \), and
7543     # we should not choose a depcomp mode which is confused by this.
7544     #
7545     # We need to recreate these files for each test, as the compiler may
7546     # overwrite some of them when testing with obscure command lines.
7547     # This happens at least with the AIX C compiler.
7548     : > sub/conftest.c
7549     for i in 1 2 3 4 5 6; do
7550       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7551       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7552       # Solaris 10 /bin/sh.
7553       echo '/* dummy */' > sub/conftst$i.h
7554     done
7555     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7556
7557     # We check with '-c' and '-o' for the sake of the "dashmstdout"
7558     # mode.  It turns out that the SunPro C++ compiler does not properly
7559     # handle '-M -o', and we need to detect this.  Also, some Intel
7560     # versions had trouble with output in subdirs.
7561     am__obj=sub/conftest.${OBJEXT-o}
7562     am__minus_obj="-o $am__obj"
7563     case $depmode in
7564     gcc)
7565       # This depmode causes a compiler race in universal mode.
7566       test "$am__universal" = false || continue
7567       ;;
7568     nosideeffect)
7569       # After this tag, mechanisms are not by side-effect, so they'll
7570       # only be used when explicitly requested.
7571       if test "x$enable_dependency_tracking" = xyes; then
7572         continue
7573       else
7574         break
7575       fi
7576       ;;
7577     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7578       # This compiler won't grok '-c -o', but also, the minuso test has
7579       # not run yet.  These depmodes are late enough in the game, and
7580       # so weak that their functioning should not be impacted.
7581       am__obj=conftest.${OBJEXT-o}
7582       am__minus_obj=
7583       ;;
7584     none) break ;;
7585     esac
7586     if depmode=$depmode \
7587        source=sub/conftest.c object=$am__obj \
7588        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7589        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7590          >/dev/null 2>conftest.err &&
7591        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7592        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7593        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7594        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7595       # icc doesn't choke on unknown options, it will just issue warnings
7596       # or remarks (even with -Werror).  So we grep stderr for any message
7597       # that says an option was ignored or not supported.
7598       # When given -MP, icc 7.0 and 7.1 complain thusly:
7599       #   icc: Command line warning: ignoring option '-M'; no argument required
7600       # The diagnosis changed in icc 8.0:
7601       #   icc: Command line remark: option '-MP' not supported
7602       if (grep 'ignoring option' conftest.err ||
7603           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7604         am_cv_CXX_dependencies_compiler_type=$depmode
7605         break
7606       fi
7607     fi
7608   done
7609
7610   cd ..
7611   rm -rf conftest.dir
7612 else
7613   am_cv_CXX_dependencies_compiler_type=none
7614 fi
7615
7616 fi
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7618 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7619 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7620
7621  if
7622   test "x$enable_dependency_tracking" != xno \
7623   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7624   am__fastdepCXX_TRUE=
7625   am__fastdepCXX_FALSE='#'
7626 else
7627   am__fastdepCXX_TRUE='#'
7628   am__fastdepCXX_FALSE=
7629 fi
7630
7631
7632
7633 for ac_prog in 'bison -y' byacc
7634 do
7635   # Extract the first word of "$ac_prog", so it can be a program name with args.
7636 set dummy $ac_prog; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if ${ac_cv_prog_YACC+:} false; then :
7640   $as_echo_n "(cached) " >&6
7641 else
7642   if test -n "$YACC"; then
7643   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7644 else
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648   IFS=$as_save_IFS
7649   test -z "$as_dir" && as_dir=.
7650     for ac_exec_ext in '' $ac_executable_extensions; do
7651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652     ac_cv_prog_YACC="$ac_prog"
7653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654     break 2
7655   fi
7656 done
7657   done
7658 IFS=$as_save_IFS
7659
7660 fi
7661 fi
7662 YACC=$ac_cv_prog_YACC
7663 if test -n "$YACC"; then
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7665 $as_echo "$YACC" >&6; }
7666 else
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7669 fi
7670
7671
7672   test -n "$YACC" && break
7673 done
7674 test -n "$YACC" || YACC="yacc"
7675
7676 # Extract the first word of "autogen", so it can be a program name with args.
7677 set dummy autogen; ac_word=$2
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679 $as_echo_n "checking for $ac_word... " >&6; }
7680 if ${ac_cv_prog_AUTOGEN+:} false; then :
7681   $as_echo_n "(cached) " >&6
7682 else
7683   if test -n "$AUTOGEN"; then
7684   ac_cv_prog_AUTOGEN="$AUTOGEN" # Let the user override the test.
7685 else
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 for as_dir in $PATH
7688 do
7689   IFS=$as_save_IFS
7690   test -z "$as_dir" && as_dir=.
7691     for ac_exec_ext in '' $ac_executable_extensions; do
7692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693     ac_cv_prog_AUTOGEN="autogen"
7694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7695     break 2
7696   fi
7697 done
7698   done
7699 IFS=$as_save_IFS
7700
7701   test -z "$ac_cv_prog_AUTOGEN" && ac_cv_prog_AUTOGEN="/bin/true"
7702 fi
7703 fi
7704 AUTOGEN=$ac_cv_prog_AUTOGEN
7705 if test -n "$AUTOGEN"; then
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOGEN" >&5
7707 $as_echo "$AUTOGEN" >&6; }
7708 else
7709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713
7714
7715 if test x"$AUTOGEN" = "x/bin/true"; then
7716   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7717 ***
7718 *** autogen not found. Will not link against libopts.
7719 *** " >&5
7720 $as_echo "$as_me: WARNING:
7721 ***
7722 *** autogen not found. Will not link against libopts.
7723 *** " >&2;}
7724 enable_local_libopts=yes
7725 fi
7726
7727 # For includes/gnutls/gnutls.h.in.
7728 MAJOR_VERSION=`echo $PACKAGE_VERSION | sed 's/\(.*\)\..*\..*/\1/g'`
7729
7730 MINOR_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\.\(.*\)\..*/\1/g'`
7731
7732 PATCH_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\..*\.\([0-9]*\).*/\1/g'`
7733
7734 NUMBER_VERSION=`printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION`
7735
7736
7737 touch suppressions.valgrind
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7739 $as_echo_n "checking for inline... " >&6; }
7740 if ${ac_cv_c_inline+:} false; then :
7741   $as_echo_n "(cached) " >&6
7742 else
7743   ac_cv_c_inline=no
7744 for ac_kw in inline __inline__ __inline; do
7745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h.  */
7747 #ifndef __cplusplus
7748 typedef int foo_t;
7749 static $ac_kw foo_t static_foo () {return 0; }
7750 $ac_kw foo_t foo () {return 0; }
7751 #endif
7752
7753 _ACEOF
7754 if ac_fn_c_try_compile "$LINENO"; then :
7755   ac_cv_c_inline=$ac_kw
7756 fi
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758   test "$ac_cv_c_inline" != no && break
7759 done
7760
7761 fi
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7763 $as_echo "$ac_cv_c_inline" >&6; }
7764
7765 case $ac_cv_c_inline in
7766   inline | yes) ;;
7767   *)
7768     case $ac_cv_c_inline in
7769       no) ac_val=;;
7770       *) ac_val=$ac_cv_c_inline;;
7771     esac
7772     cat >>confdefs.h <<_ACEOF
7773 #ifndef __cplusplus
7774 #define inline $ac_val
7775 #endif
7776 _ACEOF
7777     ;;
7778 esac
7779
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7781 $as_echo_n "checking for ANSI C header files... " >&6; }
7782 if ${ac_cv_header_stdc+:} false; then :
7783   $as_echo_n "(cached) " >&6
7784 else
7785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h.  */
7787 #include <stdlib.h>
7788 #include <stdarg.h>
7789 #include <string.h>
7790 #include <float.h>
7791
7792 int
7793 main ()
7794 {
7795
7796   ;
7797   return 0;
7798 }
7799 _ACEOF
7800 if ac_fn_c_try_compile "$LINENO"; then :
7801   ac_cv_header_stdc=yes
7802 else
7803   ac_cv_header_stdc=no
7804 fi
7805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7806
7807 if test $ac_cv_header_stdc = yes; then
7808   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h.  */
7811 #include <string.h>
7812
7813 _ACEOF
7814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7815   $EGREP "memchr" >/dev/null 2>&1; then :
7816
7817 else
7818   ac_cv_header_stdc=no
7819 fi
7820 rm -f conftest*
7821
7822 fi
7823
7824 if test $ac_cv_header_stdc = yes; then
7825   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h.  */
7828 #include <stdlib.h>
7829
7830 _ACEOF
7831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7832   $EGREP "free" >/dev/null 2>&1; then :
7833
7834 else
7835   ac_cv_header_stdc=no
7836 fi
7837 rm -f conftest*
7838
7839 fi
7840
7841 if test $ac_cv_header_stdc = yes; then
7842   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7843   if test "$cross_compiling" = yes; then :
7844   :
7845 else
7846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h.  */
7848 #include <ctype.h>
7849 #include <stdlib.h>
7850 #if ((' ' & 0x0FF) == 0x020)
7851 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7852 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7853 #else
7854 # define ISLOWER(c) \
7855                    (('a' <= (c) && (c) <= 'i') \
7856                      || ('j' <= (c) && (c) <= 'r') \
7857                      || ('s' <= (c) && (c) <= 'z'))
7858 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7859 #endif
7860
7861 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7862 int
7863 main ()
7864 {
7865   int i;
7866   for (i = 0; i < 256; i++)
7867     if (XOR (islower (i), ISLOWER (i))
7868         || toupper (i) != TOUPPER (i))
7869       return 2;
7870   return 0;
7871 }
7872 _ACEOF
7873 if ac_fn_c_try_run "$LINENO"; then :
7874
7875 else
7876   ac_cv_header_stdc=no
7877 fi
7878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7879   conftest.$ac_objext conftest.beam conftest.$ac_ext
7880 fi
7881
7882 fi
7883 fi
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7885 $as_echo "$ac_cv_header_stdc" >&6; }
7886 if test $ac_cv_header_stdc = yes; then
7887
7888 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7889
7890 fi
7891
7892
7893 # For the C++ code
7894 # Check whether --enable-cxx was given.
7895 if test "${enable_cxx+set}" = set; then :
7896   enableval=$enable_cxx; use_cxx=$enableval
7897 else
7898   use_cxx=yes
7899 fi
7900
7901 if test "$use_cxx" != "no"; then
7902   ac_ext=cpp
7903 ac_cpp='$CXXCPP $CPPFLAGS'
7904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7907
7908
7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h.  */
7911
7912 int
7913 main ()
7914 {
7915
7916   ;
7917   return 0;
7918 }
7919 _ACEOF
7920 if ac_fn_cxx_try_compile "$LINENO"; then :
7921   use_cxx=yes
7922 else
7923   use_cxx=no
7924 fi
7925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926   ac_ext=c
7927 ac_cpp='$CPP $CPPFLAGS'
7928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7931
7932 fi
7933  if test "$use_cxx" != "no"; then
7934   ENABLE_CXX_TRUE=
7935   ENABLE_CXX_FALSE='#'
7936 else
7937   ENABLE_CXX_TRUE='#'
7938   ENABLE_CXX_FALSE=
7939 fi
7940
7941  if test -f tests/suite/mini-eagain2.c; then
7942   WANT_TEST_SUITE_TRUE=
7943   WANT_TEST_SUITE_FALSE='#'
7944 else
7945   WANT_TEST_SUITE_TRUE='#'
7946   WANT_TEST_SUITE_FALSE=
7947 fi
7948
7949
7950 case "$host" in
7951   *mingw32* | *mingw64*)
7952     have_win=yes
7953   ;;
7954   *darwin*)
7955     have_macosx=yes
7956   ;;
7957   *)
7958     have_elf=yes
7959   ;;
7960 esac
7961
7962  if test "$have_win" = yes; then
7963   WINDOWS_TRUE=
7964   WINDOWS_FALSE='#'
7965 else
7966   WINDOWS_TRUE='#'
7967   WINDOWS_FALSE=
7968 fi
7969
7970  if test "$have_macosx" = yes; then
7971   MACOSX_TRUE=
7972   MACOSX_FALSE='#'
7973 else
7974   MACOSX_TRUE='#'
7975   MACOSX_FALSE=
7976 fi
7977
7978  if test "$have_elf" = yes; then
7979   ELF_TRUE=
7980   ELF_FALSE='#'
7981 else
7982   ELF_TRUE='#'
7983   ELF_FALSE=
7984 fi
7985
7986
7987 # Check whether --enable-hardware-acceleration was given.
7988 if test "${enable_hardware_acceleration+set}" = set; then :
7989   enableval=$enable_hardware_acceleration; use_accel=$enableval
7990 else
7991   use_accel=yes
7992 fi
7993
7994 hw_accel=none
7995
7996
7997 if test "$use_accel" != "no"; then
7998 case $host_cpu in
7999   i?86 | x86_64 | amd64)
8000       for ac_header in cpuid.h
8001 do :
8002   ac_fn_c_check_header_mongrel "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default"
8003 if test "x$ac_cv_header_cpuid_h" = xyes; then :
8004   cat >>confdefs.h <<_ACEOF
8005 #define HAVE_CPUID_H 1
8006 _ACEOF
8007
8008 fi
8009
8010 done
8011
8012       if test "$host_cpu" = "x86_64" || test "$host_cpu" = "amd64"; then
8013         hw_accel="x86-64"
8014       else
8015         hw_accel="x86"
8016       fi
8017   ;;
8018   *)
8019   ;;
8020 esac
8021
8022 fi
8023
8024  if test x"$hw_accel" = x"x86-64"; then
8025   ASM_X86_64_TRUE=
8026   ASM_X86_64_FALSE='#'
8027 else
8028   ASM_X86_64_TRUE='#'
8029   ASM_X86_64_FALSE=
8030 fi
8031
8032  if test x"$hw_accel" = x"x86"; then
8033   ASM_X86_32_TRUE=
8034   ASM_X86_32_FALSE='#'
8035 else
8036   ASM_X86_32_TRUE='#'
8037   ASM_X86_32_FALSE=
8038 fi
8039
8040  if test x"$hw_accel" = x"x86" || test x"$hw_accel" = x"x86-64"; then
8041   ASM_X86_TRUE=
8042   ASM_X86_FALSE='#'
8043 else
8044   ASM_X86_TRUE='#'
8045   ASM_X86_FALSE=
8046 fi
8047
8048  if test "$gnu89_inline" = "yes"]; then
8049   HAVE_GCC_GNU89_INLINE_OPTION_TRUE=
8050   HAVE_GCC_GNU89_INLINE_OPTION_FALSE='#'
8051 else
8052   HAVE_GCC_GNU89_INLINE_OPTION_TRUE='#'
8053   HAVE_GCC_GNU89_INLINE_OPTION_FALSE=
8054 fi
8055
8056  if test "$GCC" = "yes"; then
8057   HAVE_GCC_TRUE=
8058   HAVE_GCC_FALSE='#'
8059 else
8060   HAVE_GCC_TRUE='#'
8061   HAVE_GCC_FALSE=
8062 fi
8063
8064
8065
8066
8067
8068 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8069         if test -n "$ac_tool_prefix"; then
8070   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8071 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073 $as_echo_n "checking for $ac_word... " >&6; }
8074 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8075   $as_echo_n "(cached) " >&6
8076 else
8077   case $PKG_CONFIG in
8078   [\\/]* | ?:[\\/]*)
8079   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8080   ;;
8081   *)
8082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8084 do
8085   IFS=$as_save_IFS
8086   test -z "$as_dir" && as_dir=.
8087     for ac_exec_ext in '' $ac_executable_extensions; do
8088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091     break 2
8092   fi
8093 done
8094   done
8095 IFS=$as_save_IFS
8096
8097   ;;
8098 esac
8099 fi
8100 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8101 if test -n "$PKG_CONFIG"; then
8102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8103 $as_echo "$PKG_CONFIG" >&6; }
8104 else
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8107 fi
8108
8109
8110 fi
8111 if test -z "$ac_cv_path_PKG_CONFIG"; then
8112   ac_pt_PKG_CONFIG=$PKG_CONFIG
8113   # Extract the first word of "pkg-config", so it can be a program name with args.
8114 set dummy pkg-config; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8118   $as_echo_n "(cached) " >&6
8119 else
8120   case $ac_pt_PKG_CONFIG in
8121   [\\/]* | ?:[\\/]*)
8122   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8123   ;;
8124   *)
8125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8127 do
8128   IFS=$as_save_IFS
8129   test -z "$as_dir" && as_dir=.
8130     for ac_exec_ext in '' $ac_executable_extensions; do
8131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8132     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134     break 2
8135   fi
8136 done
8137   done
8138 IFS=$as_save_IFS
8139
8140   ;;
8141 esac
8142 fi
8143 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8144 if test -n "$ac_pt_PKG_CONFIG"; then
8145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8146 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8147 else
8148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8150 fi
8151
8152   if test "x$ac_pt_PKG_CONFIG" = x; then
8153     PKG_CONFIG=""
8154   else
8155     case $cross_compiling:$ac_tool_warned in
8156 yes:)
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8159 ac_tool_warned=yes ;;
8160 esac
8161     PKG_CONFIG=$ac_pt_PKG_CONFIG
8162   fi
8163 else
8164   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8165 fi
8166
8167 fi
8168 if test -n "$PKG_CONFIG"; then
8169         _pkg_min_version=0.9.0
8170         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8171 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8172         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8173                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8174 $as_echo "yes" >&6; }
8175         else
8176                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8178                 PKG_CONFIG=""
8179         fi
8180
8181 fi
8182
8183   # Library code modified:                              REVISION++
8184   # Interfaces changed/added/removed:   CURRENT++       REVISION=0
8185   # Interfaces added:                             AGE++
8186   # Interfaces removed:                           AGE=0 (+bump all symbol versions in .map)
8187   LT_CURRENT=66
8188
8189   LT_REVISION=0
8190
8191   LT_AGE=38
8192
8193
8194   LT_SSL_CURRENT=27
8195
8196   LT_SSL_REVISION=2
8197
8198   LT_SSL_AGE=0
8199
8200
8201   LT_DANE_CURRENT=4
8202
8203   LT_DANE_REVISION=1
8204
8205   LT_DANE_AGE=4
8206
8207
8208   LT_XSSL_CURRENT=0
8209
8210   LT_XSSL_REVISION=0
8211
8212   LT_XSSL_AGE=0
8213
8214
8215   CXX_LT_CURRENT=29
8216
8217   CXX_LT_REVISION=0
8218
8219   CXX_LT_AGE=1
8220
8221
8222   CRYWRAP_PATCHLEVEL=3
8223
8224
8225   # Used when creating the Windows libgnutls-XX.def files.
8226   DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
8227
8228
8229
8230 pkg_failed=no
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NETTLE" >&5
8232 $as_echo_n "checking for NETTLE... " >&6; }
8233
8234 if test -n "$PKG_CONFIG"; then
8235     if test -n "$NETTLE_CFLAGS"; then
8236         pkg_cv_NETTLE_CFLAGS="$NETTLE_CFLAGS"
8237     else
8238         if test -n "$PKG_CONFIG" && \
8239     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle >= 2.7\""; } >&5
8240   ($PKG_CONFIG --exists --print-errors "nettle >= 2.7") 2>&5
8241   ac_status=$?
8242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8243   test $ac_status = 0; }; then
8244   pkg_cv_NETTLE_CFLAGS=`$PKG_CONFIG --cflags "nettle >= 2.7" 2>/dev/null`
8245 else
8246   pkg_failed=yes
8247 fi
8248     fi
8249 else
8250         pkg_failed=untried
8251 fi
8252 if test -n "$PKG_CONFIG"; then
8253     if test -n "$NETTLE_LIBS"; then
8254         pkg_cv_NETTLE_LIBS="$NETTLE_LIBS"
8255     else
8256         if test -n "$PKG_CONFIG" && \
8257     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle >= 2.7\""; } >&5
8258   ($PKG_CONFIG --exists --print-errors "nettle >= 2.7") 2>&5
8259   ac_status=$?
8260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8261   test $ac_status = 0; }; then
8262   pkg_cv_NETTLE_LIBS=`$PKG_CONFIG --libs "nettle >= 2.7" 2>/dev/null`
8263 else
8264   pkg_failed=yes
8265 fi
8266     fi
8267 else
8268         pkg_failed=untried
8269 fi
8270
8271
8272
8273 if test $pkg_failed = yes; then
8274
8275 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8276         _pkg_short_errors_supported=yes
8277 else
8278         _pkg_short_errors_supported=no
8279 fi
8280         if test $_pkg_short_errors_supported = yes; then
8281                 NETTLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nettle >= 2.7"`
8282         else
8283                 NETTLE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nettle >= 2.7"`
8284         fi
8285         # Put the nasty error message in config.log where it belongs
8286         echo "$NETTLE_PKG_ERRORS" >&5
8287
8288         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8290
8291 as_fn_error $? "
8292   ***
8293   *** Libnettle 2.7 was not found.
8294 " "$LINENO" 5
8295
8296 elif test $pkg_failed = untried; then
8297
8298 as_fn_error $? "
8299   ***
8300   *** Libnettle 2.7 was not found.
8301 " "$LINENO" 5
8302
8303 else
8304         NETTLE_CFLAGS=$pkg_cv_NETTLE_CFLAGS
8305         NETTLE_LIBS=$pkg_cv_NETTLE_LIBS
8306         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8307 $as_echo "yes" >&6; }
8308         cryptolib="nettle"
8309 fi
8310
8311 pkg_failed=no
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HOGWEED" >&5
8313 $as_echo_n "checking for HOGWEED... " >&6; }
8314
8315 if test -n "$PKG_CONFIG"; then
8316     if test -n "$HOGWEED_CFLAGS"; then
8317         pkg_cv_HOGWEED_CFLAGS="$HOGWEED_CFLAGS"
8318     else
8319         if test -n "$PKG_CONFIG" && \
8320     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hogweed >= 2.7\""; } >&5
8321   ($PKG_CONFIG --exists --print-errors "hogweed >= 2.7") 2>&5
8322   ac_status=$?
8323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8324   test $ac_status = 0; }; then
8325   pkg_cv_HOGWEED_CFLAGS=`$PKG_CONFIG --cflags "hogweed >= 2.7" 2>/dev/null`
8326 else
8327   pkg_failed=yes
8328 fi
8329     fi
8330 else
8331         pkg_failed=untried
8332 fi
8333 if test -n "$PKG_CONFIG"; then
8334     if test -n "$HOGWEED_LIBS"; then
8335         pkg_cv_HOGWEED_LIBS="$HOGWEED_LIBS"
8336     else
8337         if test -n "$PKG_CONFIG" && \
8338     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hogweed >= 2.7\""; } >&5
8339   ($PKG_CONFIG --exists --print-errors "hogweed >= 2.7") 2>&5
8340   ac_status=$?
8341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8342   test $ac_status = 0; }; then
8343   pkg_cv_HOGWEED_LIBS=`$PKG_CONFIG --libs "hogweed >= 2.7" 2>/dev/null`
8344 else
8345   pkg_failed=yes
8346 fi
8347     fi
8348 else
8349         pkg_failed=untried
8350 fi
8351
8352
8353
8354 if test $pkg_failed = yes; then
8355
8356 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8357         _pkg_short_errors_supported=yes
8358 else
8359         _pkg_short_errors_supported=no
8360 fi
8361         if test $_pkg_short_errors_supported = yes; then
8362                 HOGWEED_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hogweed >= 2.7"`
8363         else
8364                 HOGWEED_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hogweed >= 2.7"`
8365         fi
8366         # Put the nasty error message in config.log where it belongs
8367         echo "$HOGWEED_PKG_ERRORS" >&5
8368
8369         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8371
8372 as_fn_error $? "
8373   ***
8374   *** Libhogweed (nettle's companion library) was not found. Note that you must compile nettle with gmp support.
8375 " "$LINENO" 5
8376
8377 elif test $pkg_failed = untried; then
8378
8379 as_fn_error $? "
8380   ***
8381   *** Libhogweed (nettle's companion library) was not found. Note that you must compile nettle with gmp support.
8382 " "$LINENO" 5
8383
8384 else
8385         HOGWEED_CFLAGS=$pkg_cv_HOGWEED_CFLAGS
8386         HOGWEED_LIBS=$pkg_cv_HOGWEED_LIBS
8387         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8388 $as_echo "yes" >&6; }
8389         :
8390 fi
8391    if test "$cryptolib" = "nettle"; then
8392   ENABLE_NETTLE_TRUE=
8393   ENABLE_NETTLE_FALSE='#'
8394 else
8395   ENABLE_NETTLE_TRUE='#'
8396   ENABLE_NETTLE_FALSE=
8397 fi
8398
8399
8400 $as_echo "#define HAVE_LIBNETTLE 1" >>confdefs.h
8401
8402
8403   GNUTLS_REQUIRES_PRIVATE="Requires.private: nettle, hogweed"
8404
8405
8406 # Check whether --with-nettle-mini was given.
8407 if test "${with_nettle_mini+set}" = set; then :
8408   withval=$with_nettle_mini; mini_nettle=$withval
8409 else
8410   mini_nettle=no
8411 fi
8412
8413
8414
8415
8416   if test "$mini_nettle" != no;then
8417     GMP_CLFLAGS=""
8418     GMP_LIBS=""
8419   else
8420     if test x$GMP_LIBS = x; then
8421         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_cmp in -lgmp" >&5
8422 $as_echo_n "checking for __gmpz_cmp in -lgmp... " >&6; }
8423 if ${ac_cv_lib_gmp___gmpz_cmp+:} false; then :
8424   $as_echo_n "(cached) " >&6
8425 else
8426   ac_check_lib_save_LIBS=$LIBS
8427 LIBS="-lgmp  $LIBS"
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h.  */
8430
8431 /* Override any GCC internal prototype to avoid an error.
8432    Use char because int might match the return type of a GCC
8433    builtin and then its argument prototype would still apply.  */
8434 #ifdef __cplusplus
8435 extern "C"
8436 #endif
8437 char __gmpz_cmp ();
8438 int
8439 main ()
8440 {
8441 return __gmpz_cmp ();
8442   ;
8443   return 0;
8444 }
8445 _ACEOF
8446 if ac_fn_c_try_link "$LINENO"; then :
8447   ac_cv_lib_gmp___gmpz_cmp=yes
8448 else
8449   ac_cv_lib_gmp___gmpz_cmp=no
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext \
8452     conftest$ac_exeext conftest.$ac_ext
8453 LIBS=$ac_check_lib_save_LIBS
8454 fi
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_cmp" >&5
8456 $as_echo "$ac_cv_lib_gmp___gmpz_cmp" >&6; }
8457 if test "x$ac_cv_lib_gmp___gmpz_cmp" = xyes; then :
8458   GMP_LIBS="-lgmp"
8459 else
8460   as_fn_error $? "
8461 ***
8462 *** gmp was not found.
8463 " "$LINENO" 5
8464 fi
8465
8466     fi
8467   fi
8468
8469
8470
8471
8472 # Check whether --with-included-libtasn1 was given.
8473 if test "${with_included_libtasn1+set}" = set; then :
8474   withval=$with_included_libtasn1; included_libtasn1=$withval
8475 else
8476   included_libtasn1=no
8477 fi
8478
8479   if test "$included_libtasn1" = "no"; then
8480
8481 pkg_failed=no
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTASN1" >&5
8483 $as_echo_n "checking for LIBTASN1... " >&6; }
8484
8485 if test -n "$PKG_CONFIG"; then
8486     if test -n "$LIBTASN1_CFLAGS"; then
8487         pkg_cv_LIBTASN1_CFLAGS="$LIBTASN1_CFLAGS"
8488     else
8489         if test -n "$PKG_CONFIG" && \
8490     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtasn1 >= 3.4\""; } >&5
8491   ($PKG_CONFIG --exists --print-errors "libtasn1 >= 3.4") 2>&5
8492   ac_status=$?
8493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8494   test $ac_status = 0; }; then
8495   pkg_cv_LIBTASN1_CFLAGS=`$PKG_CONFIG --cflags "libtasn1 >= 3.4" 2>/dev/null`
8496 else
8497   pkg_failed=yes
8498 fi
8499     fi
8500 else
8501         pkg_failed=untried
8502 fi
8503 if test -n "$PKG_CONFIG"; then
8504     if test -n "$LIBTASN1_LIBS"; then
8505         pkg_cv_LIBTASN1_LIBS="$LIBTASN1_LIBS"
8506     else
8507         if test -n "$PKG_CONFIG" && \
8508     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtasn1 >= 3.4\""; } >&5
8509   ($PKG_CONFIG --exists --print-errors "libtasn1 >= 3.4") 2>&5
8510   ac_status=$?
8511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8512   test $ac_status = 0; }; then
8513   pkg_cv_LIBTASN1_LIBS=`$PKG_CONFIG --libs "libtasn1 >= 3.4" 2>/dev/null`
8514 else
8515   pkg_failed=yes
8516 fi
8517     fi
8518 else
8519         pkg_failed=untried
8520 fi
8521
8522
8523
8524 if test $pkg_failed = yes; then
8525
8526 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8527         _pkg_short_errors_supported=yes
8528 else
8529         _pkg_short_errors_supported=no
8530 fi
8531         if test $_pkg_short_errors_supported = yes; then
8532                 LIBTASN1_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libtasn1 >= 3.4"`
8533         else
8534                 LIBTASN1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libtasn1 >= 3.4"`
8535         fi
8536         # Put the nasty error message in config.log where it belongs
8537         echo "$LIBTASN1_PKG_ERRORS" >&5
8538
8539         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8541                 included_libtasn1=yes
8542 elif test $pkg_failed = untried; then
8543         included_libtasn1=yes
8544 else
8545         LIBTASN1_CFLAGS=$pkg_cv_LIBTASN1_CFLAGS
8546         LIBTASN1_LIBS=$pkg_cv_LIBTASN1_LIBS
8547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8548 $as_echo "yes" >&6; }
8549         :
8550 fi
8551     if test "$included_libtasn1" = yes; then
8552       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8553   ***
8554   *** Libtasn1 was not found. Will use the included one.
8555   " >&5
8556 $as_echo "$as_me: WARNING:
8557   ***
8558   *** Libtasn1 was not found. Will use the included one.
8559   " >&2;}
8560     fi
8561   fi
8562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included minitasn1" >&5
8563 $as_echo_n "checking whether to use the included minitasn1... " >&6; }
8564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $included_libtasn1" >&5
8565 $as_echo "$included_libtasn1" >&6; }
8566    if test "$included_libtasn1" = "yes"; then
8567   ENABLE_MINITASN1_TRUE=
8568   ENABLE_MINITASN1_FALSE='#'
8569 else
8570   ENABLE_MINITASN1_TRUE='#'
8571   ENABLE_MINITASN1_FALSE=
8572 fi
8573
8574
8575   if test "$included_libtasn1" = "no"; then
8576     GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libtasn1"
8577   fi
8578
8579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C99 macros are supported" >&5
8580 $as_echo_n "checking whether C99 macros are supported... " >&6; }
8581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h.  */
8583
8584 int
8585 main ()
8586 {
8587
8588     #define test_mac(...)
8589     int z,y,x;
8590     test_mac(x,y,z);
8591     return 0;
8592
8593   ;
8594   return 0;
8595 }
8596 _ACEOF
8597 if ac_fn_c_try_compile "$LINENO"; then :
8598
8599
8600 $as_echo "#define C99_MACROS 1" >>confdefs.h
8601
8602     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8603 $as_echo "yes" >&6; }
8604
8605 else
8606
8607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8609     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C99 macros not supported. This may affect compiling." >&5
8610 $as_echo "$as_me: WARNING: C99 macros not supported. This may affect compiling." >&2;}
8611
8612 fi
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614
8615   ac_enable_srtp=yes
8616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable DTLS-SRTP extension" >&5
8617 $as_echo_n "checking whether to disable DTLS-SRTP extension... " >&6; }
8618   # Check whether --enable-dtls-srtp-support was given.
8619 if test "${enable_dtls_srtp_support+set}" = set; then :
8620   enableval=$enable_dtls_srtp_support; ac_enable_srtp=$enableval
8621 fi
8622
8623   if test x$ac_enable_srtp != xno; then
8624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8626
8627 $as_echo "#define ENABLE_DTLS_SRTP 1" >>confdefs.h
8628
8629   else
8630    ac_full=0
8631    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8632 $as_echo "yes" >&6; }
8633   fi
8634    if test "$ac_enable_srtp" != "no"; then
8635   ENABLE_DTLS_SRTP_TRUE=
8636   ENABLE_DTLS_SRTP_FALSE='#'
8637 else
8638   ENABLE_DTLS_SRTP_TRUE='#'
8639   ENABLE_DTLS_SRTP_FALSE=
8640 fi
8641
8642
8643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable ALPN extension" >&5
8644 $as_echo_n "checking whether to disable ALPN extension... " >&6; }
8645   # Check whether --enable-alpn-support was given.
8646 if test "${enable_alpn_support+set}" = set; then :
8647   enableval=$enable_alpn_support; ac_enable_alpn=$enableval
8648 else
8649   ac_enable_alpn=yes
8650 fi
8651
8652   if test x$ac_enable_alpn != xno; then
8653    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8655
8656 $as_echo "#define ENABLE_ALPN 1" >>confdefs.h
8657
8658   else
8659    ac_full=0
8660    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8661 $as_echo "yes" >&6; }
8662   fi
8663    if test "$ac_enable_alpn" != "no"; then
8664   ENABLE_ALPN_TRUE=
8665   ENABLE_ALPN_FALSE='#'
8666 else
8667   ENABLE_ALPN_TRUE='#'
8668   ENABLE_ALPN_FALSE=
8669 fi
8670
8671
8672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable RSA-EXPORT support" >&5
8673 $as_echo_n "checking whether to disable RSA-EXPORT support... " >&6; }
8674   # Check whether --enable-rsa-export was given.
8675 if test "${enable_rsa_export+set}" = set; then :
8676   enableval=$enable_rsa_export; ac_enable_rsa_export=$enableval
8677 else
8678   ac_enable_rsa_export=yes
8679 fi
8680
8681   if test x$ac_enable_rsa_export != xno; then
8682    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8684
8685 $as_echo "#define ENABLE_RSA_EXPORT 1" >>confdefs.h
8686
8687   else
8688    ac_full=0
8689    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8690 $as_echo "yes" >&6; }
8691   fi
8692    if test "$ac_enable_rsa_export" != "no"; then
8693   ENABLE_RSA_EXPORT_TRUE=
8694   ENABLE_RSA_EXPORT_FALSE='#'
8695 else
8696   ENABLE_RSA_EXPORT_TRUE='#'
8697   ENABLE_RSA_EXPORT_FALSE=
8698 fi
8699
8700
8701   ac_enable_heartbeat=yes
8702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable TLS heartbeat support" >&5
8703 $as_echo_n "checking whether to disable TLS heartbeat support... " >&6; }
8704   # Check whether --enable-heartbeat-support was given.
8705 if test "${enable_heartbeat_support+set}" = set; then :
8706   enableval=$enable_heartbeat_support; ac_enable_heartbeat=$enableval
8707 fi
8708
8709   if test x$ac_enable_heartbeat != xno; then
8710    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8711 $as_echo "yes" >&6; }
8712
8713 $as_echo "#define ENABLE_HEARTBEAT 1" >>confdefs.h
8714
8715   else
8716    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 $as_echo "no" >&6; }
8718   fi
8719    if test "$ac_enable_heartbeat" != "no"; then
8720   ENABLE_HEARTBEAT_TRUE=
8721   ENABLE_HEARTBEAT_FALSE='#'
8722 else
8723   ENABLE_HEARTBEAT_TRUE='#'
8724   ENABLE_HEARTBEAT_FALSE=
8725 fi
8726
8727
8728   ac_enable_srp=yes
8729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SRP authentication support" >&5
8730 $as_echo_n "checking whether to disable SRP authentication support... " >&6; }
8731   # Check whether --enable-srp-authentication was given.
8732 if test "${enable_srp_authentication+set}" = set; then :
8733   enableval=$enable_srp_authentication; ac_enable_srp=$enableval
8734 fi
8735
8736   if test x$ac_enable_srp != xno; then
8737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738 $as_echo "no" >&6; }
8739
8740 $as_echo "#define ENABLE_SRP 1" >>confdefs.h
8741
8742   else
8743    ac_full=0
8744    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8745 $as_echo "yes" >&6; }
8746   fi
8747    if test "$ac_enable_srp" != "no"; then
8748   ENABLE_SRP_TRUE=
8749   ENABLE_SRP_FALSE='#'
8750 else
8751   ENABLE_SRP_TRUE='#'
8752   ENABLE_SRP_FALSE=
8753 fi
8754
8755
8756   ac_enable_psk=yes
8757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable PSK authentication support" >&5
8758 $as_echo_n "checking whether to disable PSK authentication support... " >&6; }
8759   # Check whether --enable-psk-authentication was given.
8760 if test "${enable_psk_authentication+set}" = set; then :
8761   enableval=$enable_psk_authentication; ac_enable_psk=$enableval
8762 fi
8763
8764   if test x$ac_enable_psk != xno; then
8765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766 $as_echo "no" >&6; }
8767
8768 $as_echo "#define ENABLE_PSK 1" >>confdefs.h
8769
8770   else
8771    ac_full=0
8772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8773 $as_echo "yes" >&6; }
8774   fi
8775    if test "$ac_enable_psk" != "no"; then
8776   ENABLE_PSK_TRUE=
8777   ENABLE_PSK_FALSE='#'
8778 else
8779   ENABLE_PSK_TRUE='#'
8780   ENABLE_PSK_FALSE=
8781 fi
8782
8783
8784   ac_enable_anon=yes
8785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable anonymous authentication support" >&5
8786 $as_echo_n "checking whether to disable anonymous authentication support... " >&6; }
8787   # Check whether --enable-anon-authentication was given.
8788 if test "${enable_anon_authentication+set}" = set; then :
8789   enableval=$enable_anon_authentication; ac_enable_anon=$enableval
8790 fi
8791
8792   if test x$ac_enable_anon != xno; then
8793    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8795
8796 $as_echo "#define ENABLE_ANON 1" >>confdefs.h
8797
8798   else
8799    ac_full=0
8800    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8801 $as_echo "yes" >&6; }
8802   fi
8803    if test "$ac_enable_anon" != "no"; then
8804   ENABLE_ANON_TRUE=
8805   ENABLE_ANON_FALSE='#'
8806 else
8807   ENABLE_ANON_TRUE='#'
8808   ENABLE_ANON_FALSE=
8809 fi
8810
8811
8812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable DHE support" >&5
8813 $as_echo_n "checking whether to disable DHE support... " >&6; }
8814   # Check whether --enable-dhe was given.
8815 if test "${enable_dhe+set}" = set; then :
8816   enableval=$enable_dhe; ac_enable_dhe=$enableval
8817 else
8818   ac_enable_dhe=yes
8819 fi
8820
8821   if test x$ac_enable_dhe != xno; then
8822    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823 $as_echo "no" >&6; }
8824
8825 $as_echo "#define ENABLE_DHE 1" >>confdefs.h
8826
8827   else
8828    ac_full=0
8829    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8830 $as_echo "yes" >&6; }
8831   fi
8832    if test "$ac_enable_dhe" != "no"; then
8833   ENABLE_DHE_TRUE=
8834   ENABLE_DHE_FALSE='#'
8835 else
8836   ENABLE_DHE_TRUE='#'
8837   ENABLE_DHE_FALSE=
8838 fi
8839
8840
8841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable ECDHE support" >&5
8842 $as_echo_n "checking whether to disable ECDHE support... " >&6; }
8843   # Check whether --enable-ecdhe was given.
8844 if test "${enable_ecdhe+set}" = set; then :
8845   enableval=$enable_ecdhe; ac_enable_ecdhe=$enableval
8846 else
8847   ac_enable_ecdhe=yes
8848 fi
8849
8850   if test x$ac_enable_ecdhe != xno; then
8851    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8853
8854 $as_echo "#define ENABLE_ECDHE 1" >>confdefs.h
8855
8856   else
8857    ac_full=0
8858    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8859 $as_echo "yes" >&6; }
8860   fi
8861    if test "$ac_enable_ecdhe" != "no"; then
8862   ENABLE_ECDHE_TRUE=
8863   ENABLE_ECDHE_FALSE='#'
8864 else
8865   ENABLE_ECDHE_TRUE='#'
8866   ENABLE_ECDHE_FALSE=
8867 fi
8868
8869
8870   ac_enable_openpgp=yes
8871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OpenPGP Certificate authentication support" >&5
8872 $as_echo_n "checking whether to disable OpenPGP Certificate authentication support... " >&6; }
8873   # Check whether --enable-openpgp-authentication was given.
8874 if test "${enable_openpgp_authentication+set}" = set; then :
8875   enableval=$enable_openpgp_authentication; ac_enable_openpgp=$enableval
8876 fi
8877
8878   if test x$ac_enable_openpgp = xno; then
8879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8880 $as_echo "yes" >&6; }
8881    ac_full=0
8882   else
8883
8884 $as_echo "#define ENABLE_OPENPGP 1" >>confdefs.h
8885
8886    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8888   fi
8889    if test "$ac_enable_openpgp" = "yes"; then
8890   ENABLE_OPENPGP_TRUE=
8891   ENABLE_OPENPGP_FALSE='#'
8892 else
8893   ENABLE_OPENPGP_TRUE='#'
8894   ENABLE_OPENPGP_FALSE=
8895 fi
8896
8897
8898   # For cryptodev
8899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add cryptodev support" >&5
8900 $as_echo_n "checking whether to add cryptodev support... " >&6; }
8901   # Check whether --enable-cryptodev was given.
8902 if test "${enable_cryptodev+set}" = set; then :
8903   enableval=$enable_cryptodev; enable_cryptodev=$enableval
8904 else
8905   enable_cryptodev=no
8906 fi
8907
8908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cryptodev" >&5
8909 $as_echo "$enable_cryptodev" >&6; }
8910
8911   if test "$enable_cryptodev" = "yes"; then
8912
8913 $as_echo "#define ENABLE_CRYPTODEV 1" >>confdefs.h
8914
8915   fi
8916
8917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OCSP support" >&5
8918 $as_echo_n "checking whether to disable OCSP support... " >&6; }
8919   # Check whether --enable-ocsp was given.
8920 if test "${enable_ocsp+set}" = set; then :
8921   enableval=$enable_ocsp; ac_enable_ocsp=$enableval
8922 else
8923   ac_enable_ocsp=yes
8924 fi
8925
8926   if test x$ac_enable_ocsp != xno; then
8927    ac_enable_ocsp=yes
8928    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8930
8931 $as_echo "#define ENABLE_OCSP 1" >>confdefs.h
8932
8933   else
8934    ac_full=0
8935    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8936 $as_echo "yes" >&6; }
8937   fi
8938    if test "$ac_enable_ocsp" != "no"; then
8939   ENABLE_OCSP_TRUE=
8940   ENABLE_OCSP_FALSE='#'
8941 else
8942   ENABLE_OCSP_TRUE='#'
8943   ENABLE_OCSP_FALSE=
8944 fi
8945
8946
8947
8948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable session tickets support" >&5
8949 $as_echo_n "checking whether to disable session tickets support... " >&6; }
8950   # Check whether --enable-session-tickets was given.
8951 if test "${enable_session_tickets+set}" = set; then :
8952   enableval=$enable_session_tickets; ac_enable_session_tickets=$enableval
8953 else
8954   ac_enable_session_tickets=yes
8955 fi
8956
8957   if test x$ac_enable_session_tickets != xno; then
8958    ac_enable_session_tickets=yes
8959    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960 $as_echo "no" >&6; }
8961
8962 $as_echo "#define ENABLE_SESSION_TICKETS 1" >>confdefs.h
8963
8964   else
8965    ac_full=0
8966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8967 $as_echo "yes" >&6; }
8968   fi
8969    if test "$ac_enable_session_tickets" != "no"; then
8970   ENABLE_SESSION_TICKETS_TRUE=
8971   ENABLE_SESSION_TICKETS_FALSE='#'
8972 else
8973   ENABLE_SESSION_TICKETS_TRUE='#'
8974   ENABLE_SESSION_TICKETS_FALSE=
8975 fi
8976
8977
8978   # For storing integers in pointers without warnings
8979   # http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
8980   # The cast to long int works around a bug in the HP C Compiler
8981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8983 # This bug is HP SR number 8606223364.
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8985 $as_echo_n "checking size of void *... " >&6; }
8986 if ${ac_cv_sizeof_void_p+:} false; then :
8987   $as_echo_n "(cached) " >&6
8988 else
8989   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
8990
8991 else
8992   if test "$ac_cv_type_void_p" = yes; then
8993      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8995 as_fn_error 77 "cannot compute sizeof (void *)
8996 See \`config.log' for more details" "$LINENO" 5; }
8997    else
8998      ac_cv_sizeof_void_p=0
8999    fi
9000 fi
9001
9002 fi
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
9004 $as_echo "$ac_cv_sizeof_void_p" >&6; }
9005
9006
9007
9008 cat >>confdefs.h <<_ACEOF
9009 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
9010 _ACEOF
9011
9012
9013   # The cast to long int works around a bug in the HP C Compiler
9014 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9015 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9016 # This bug is HP SR number 8606223364.
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9018 $as_echo_n "checking size of long long... " >&6; }
9019 if ${ac_cv_sizeof_long_long+:} false; then :
9020   $as_echo_n "(cached) " >&6
9021 else
9022   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
9023
9024 else
9025   if test "$ac_cv_type_long_long" = yes; then
9026      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9028 as_fn_error 77 "cannot compute sizeof (long long)
9029 See \`config.log' for more details" "$LINENO" 5; }
9030    else
9031      ac_cv_sizeof_long_long=0
9032    fi
9033 fi
9034
9035 fi
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
9037 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9038
9039
9040
9041 cat >>confdefs.h <<_ACEOF
9042 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9043 _ACEOF
9044
9045
9046   # The cast to long int works around a bug in the HP C Compiler
9047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9049 # This bug is HP SR number 8606223364.
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9051 $as_echo_n "checking size of long... " >&6; }
9052 if ${ac_cv_sizeof_long+:} false; then :
9053   $as_echo_n "(cached) " >&6
9054 else
9055   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
9056
9057 else
9058   if test "$ac_cv_type_long" = yes; then
9059      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9061 as_fn_error 77 "cannot compute sizeof (long)
9062 See \`config.log' for more details" "$LINENO" 5; }
9063    else
9064      ac_cv_sizeof_long=0
9065    fi
9066 fi
9067
9068 fi
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9070 $as_echo "$ac_cv_sizeof_long" >&6; }
9071
9072
9073
9074 cat >>confdefs.h <<_ACEOF
9075 #define SIZEOF_LONG $ac_cv_sizeof_long
9076 _ACEOF
9077
9078
9079   # The cast to long int works around a bug in the HP C Compiler
9080 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9081 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9082 # This bug is HP SR number 8606223364.
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
9084 $as_echo_n "checking size of int... " >&6; }
9085 if ${ac_cv_sizeof_int+:} false; then :
9086   $as_echo_n "(cached) " >&6
9087 else
9088   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
9089
9090 else
9091   if test "$ac_cv_type_int" = yes; then
9092      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9094 as_fn_error 77 "cannot compute sizeof (int)
9095 See \`config.log' for more details" "$LINENO" 5; }
9096    else
9097      ac_cv_sizeof_int=0
9098    fi
9099 fi
9100
9101 fi
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
9103 $as_echo "$ac_cv_sizeof_int" >&6; }
9104
9105
9106
9107 cat >>confdefs.h <<_ACEOF
9108 #define SIZEOF_INT $ac_cv_sizeof_int
9109 _ACEOF
9110
9111
9112   if test x$ac_cv_sizeof_void_p = x$ac_cv_sizeof_long;then
9113
9114 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long)" >>confdefs.h
9115
9116   elif test x$ac_cv_sizeof_void_p = x$ac_cv_sizeof_long_long;then
9117
9118 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long long)" >>confdefs.h
9119
9120    else
9121       $as_echo "#define GNUTLS_POINTER_TO_INT_CAST /**/" >>confdefs.h
9122
9123    fi
9124
9125
9126
9127   GNULIB_CHDIR=0;
9128   GNULIB_CHOWN=0;
9129   GNULIB_CLOSE=0;
9130   GNULIB_DUP=0;
9131   GNULIB_DUP2=0;
9132   GNULIB_DUP3=0;
9133   GNULIB_ENVIRON=0;
9134   GNULIB_EUIDACCESS=0;
9135   GNULIB_FACCESSAT=0;
9136   GNULIB_FCHDIR=0;
9137   GNULIB_FCHOWNAT=0;
9138   GNULIB_FDATASYNC=0;
9139   GNULIB_FSYNC=0;
9140   GNULIB_FTRUNCATE=0;
9141   GNULIB_GETCWD=0;
9142   GNULIB_GETDOMAINNAME=0;
9143   GNULIB_GETDTABLESIZE=0;
9144   GNULIB_GETGROUPS=0;
9145   GNULIB_GETHOSTNAME=0;
9146   GNULIB_GETLOGIN=0;
9147   GNULIB_GETLOGIN_R=0;
9148   GNULIB_GETPAGESIZE=0;
9149   GNULIB_GETUSERSHELL=0;
9150   GNULIB_GROUP_MEMBER=0;
9151   GNULIB_ISATTY=0;
9152   GNULIB_LCHOWN=0;
9153   GNULIB_LINK=0;
9154   GNULIB_LINKAT=0;
9155   GNULIB_LSEEK=0;
9156   GNULIB_PIPE=0;
9157   GNULIB_PIPE2=0;
9158   GNULIB_PREAD=0;
9159   GNULIB_PWRITE=0;
9160   GNULIB_READ=0;
9161   GNULIB_READLINK=0;
9162   GNULIB_READLINKAT=0;
9163   GNULIB_RMDIR=0;
9164   GNULIB_SETHOSTNAME=0;
9165   GNULIB_SLEEP=0;
9166   GNULIB_SYMLINK=0;
9167   GNULIB_SYMLINKAT=0;
9168   GNULIB_TTYNAME_R=0;
9169   GNULIB_UNISTD_H_NONBLOCKING=0;
9170   GNULIB_UNISTD_H_SIGPIPE=0;
9171   GNULIB_UNLINK=0;
9172   GNULIB_UNLINKAT=0;
9173   GNULIB_USLEEP=0;
9174   GNULIB_WRITE=0;
9175     HAVE_CHOWN=1;
9176   HAVE_DUP2=1;
9177   HAVE_DUP3=1;
9178   HAVE_EUIDACCESS=1;
9179   HAVE_FACCESSAT=1;
9180   HAVE_FCHDIR=1;
9181   HAVE_FCHOWNAT=1;
9182   HAVE_FDATASYNC=1;
9183   HAVE_FSYNC=1;
9184   HAVE_FTRUNCATE=1;
9185   HAVE_GETDTABLESIZE=1;
9186   HAVE_GETGROUPS=1;
9187   HAVE_GETHOSTNAME=1;
9188   HAVE_GETLOGIN=1;
9189   HAVE_GETPAGESIZE=1;
9190   HAVE_GROUP_MEMBER=1;
9191   HAVE_LCHOWN=1;
9192   HAVE_LINK=1;
9193   HAVE_LINKAT=1;
9194   HAVE_PIPE=1;
9195   HAVE_PIPE2=1;
9196   HAVE_PREAD=1;
9197   HAVE_PWRITE=1;
9198   HAVE_READLINK=1;
9199   HAVE_READLINKAT=1;
9200   HAVE_SETHOSTNAME=1;
9201   HAVE_SLEEP=1;
9202   HAVE_SYMLINK=1;
9203   HAVE_SYMLINKAT=1;
9204   HAVE_UNLINKAT=1;
9205   HAVE_USLEEP=1;
9206   HAVE_DECL_ENVIRON=1;
9207   HAVE_DECL_FCHDIR=1;
9208   HAVE_DECL_FDATASYNC=1;
9209   HAVE_DECL_GETDOMAINNAME=1;
9210   HAVE_DECL_GETLOGIN_R=1;
9211   HAVE_DECL_GETPAGESIZE=1;
9212   HAVE_DECL_GETUSERSHELL=1;
9213   HAVE_DECL_SETHOSTNAME=1;
9214   HAVE_DECL_TTYNAME_R=1;
9215   HAVE_OS_H=0;
9216   HAVE_SYS_PARAM_H=0;
9217   REPLACE_CHOWN=0;
9218   REPLACE_CLOSE=0;
9219   REPLACE_DUP=0;
9220   REPLACE_DUP2=0;
9221   REPLACE_FCHOWNAT=0;
9222   REPLACE_FTRUNCATE=0;
9223   REPLACE_GETCWD=0;
9224   REPLACE_GETDOMAINNAME=0;
9225   REPLACE_GETDTABLESIZE=0;
9226   REPLACE_GETLOGIN_R=0;
9227   REPLACE_GETGROUPS=0;
9228   REPLACE_GETPAGESIZE=0;
9229   REPLACE_ISATTY=0;
9230   REPLACE_LCHOWN=0;
9231   REPLACE_LINK=0;
9232   REPLACE_LINKAT=0;
9233   REPLACE_LSEEK=0;
9234   REPLACE_PREAD=0;
9235   REPLACE_PWRITE=0;
9236   REPLACE_READ=0;
9237   REPLACE_READLINK=0;
9238   REPLACE_RMDIR=0;
9239   REPLACE_SLEEP=0;
9240   REPLACE_SYMLINK=0;
9241   REPLACE_TTYNAME_R=0;
9242   REPLACE_UNLINK=0;
9243   REPLACE_UNLINKAT=0;
9244   REPLACE_USLEEP=0;
9245   REPLACE_WRITE=0;
9246   UNISTD_H_HAVE_WINSOCK2_H=0;
9247   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
9248
9249
9250
9251
9252
9253
9254   for ac_header in $gl_header_list
9255 do :
9256   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9257 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9258 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9259   cat >>confdefs.h <<_ACEOF
9260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9261 _ACEOF
9262
9263 fi
9264
9265 done
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276   :
9277
9278
9279
9280
9281
9282   if test $ac_cv_header_sys_socket_h != yes; then
9283                     for ac_header in winsock2.h
9284 do :
9285   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9286 if test "x$ac_cv_header_winsock2_h" = xyes; then :
9287   cat >>confdefs.h <<_ACEOF
9288 #define HAVE_WINSOCK2_H 1
9289 _ACEOF
9290
9291 fi
9292
9293 done
9294
9295   fi
9296   if test "$ac_cv_header_winsock2_h" = yes; then
9297     HAVE_WINSOCK2_H=1
9298     UNISTD_H_HAVE_WINSOCK2_H=1
9299     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9300   else
9301     HAVE_WINSOCK2_H=0
9302   fi
9303
9304    LIBSOCKET=
9305   if test $HAVE_WINSOCK2_H = 1; then
9306         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
9307 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
9308 if ${gl_cv_func_wsastartup+:} false; then :
9309   $as_echo_n "(cached) " >&6
9310 else
9311
9312       gl_save_LIBS="$LIBS"
9313       LIBS="$LIBS -lws2_32"
9314       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9315 /* end confdefs.h.  */
9316
9317 #ifdef HAVE_WINSOCK2_H
9318 # include <winsock2.h>
9319 #endif
9320 int
9321 main ()
9322 {
9323
9324           WORD wVersionRequested = MAKEWORD(1, 1);
9325           WSADATA wsaData;
9326           int err = WSAStartup(wVersionRequested, &wsaData);
9327           WSACleanup ();
9328   ;
9329   return 0;
9330 }
9331 _ACEOF
9332 if ac_fn_c_try_link "$LINENO"; then :
9333   gl_cv_func_wsastartup=yes
9334 else
9335   gl_cv_func_wsastartup=no
9336 fi
9337 rm -f core conftest.err conftest.$ac_objext \
9338     conftest$ac_exeext conftest.$ac_ext
9339       LIBS="$gl_save_LIBS"
9340
9341 fi
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
9343 $as_echo "$gl_cv_func_wsastartup" >&6; }
9344     if test "$gl_cv_func_wsastartup" = "yes"; then
9345
9346 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
9347
9348       LIBSOCKET='-lws2_32'
9349     fi
9350   else
9351                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
9352 $as_echo_n "checking for library containing setsockopt... " >&6; }
9353 if ${gl_cv_lib_socket+:} false; then :
9354   $as_echo_n "(cached) " >&6
9355 else
9356
9357       gl_cv_lib_socket=
9358       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h.  */
9360 extern
9361 #ifdef __cplusplus
9362 "C"
9363 #endif
9364 char setsockopt();
9365 int
9366 main ()
9367 {
9368 setsockopt();
9369   ;
9370   return 0;
9371 }
9372 _ACEOF
9373 if ac_fn_c_try_link "$LINENO"; then :
9374
9375 else
9376   gl_save_LIBS="$LIBS"
9377          LIBS="$gl_save_LIBS -lsocket"
9378          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h.  */
9380 extern
9381 #ifdef __cplusplus
9382 "C"
9383 #endif
9384 char setsockopt();
9385 int
9386 main ()
9387 {
9388 setsockopt();
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 if ac_fn_c_try_link "$LINENO"; then :
9394   gl_cv_lib_socket="-lsocket"
9395 fi
9396 rm -f core conftest.err conftest.$ac_objext \
9397     conftest$ac_exeext conftest.$ac_ext
9398          if test -z "$gl_cv_lib_socket"; then
9399            LIBS="$gl_save_LIBS -lnetwork"
9400            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h.  */
9402 extern
9403 #ifdef __cplusplus
9404 "C"
9405 #endif
9406 char setsockopt();
9407 int
9408 main ()
9409 {
9410 setsockopt();
9411   ;
9412   return 0;
9413 }
9414 _ACEOF
9415 if ac_fn_c_try_link "$LINENO"; then :
9416   gl_cv_lib_socket="-lnetwork"
9417 fi
9418 rm -f core conftest.err conftest.$ac_objext \
9419     conftest$ac_exeext conftest.$ac_ext
9420            if test -z "$gl_cv_lib_socket"; then
9421              LIBS="$gl_save_LIBS -lnet"
9422              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h.  */
9424 extern
9425 #ifdef __cplusplus
9426 "C"
9427 #endif
9428 char setsockopt();
9429 int
9430 main ()
9431 {
9432 setsockopt();
9433   ;
9434   return 0;
9435 }
9436 _ACEOF
9437 if ac_fn_c_try_link "$LINENO"; then :
9438   gl_cv_lib_socket="-lnet"
9439 fi
9440 rm -f core conftest.err conftest.$ac_objext \
9441     conftest$ac_exeext conftest.$ac_ext
9442            fi
9443          fi
9444          LIBS="$gl_save_LIBS"
9445
9446 fi
9447 rm -f core conftest.err conftest.$ac_objext \
9448     conftest$ac_exeext conftest.$ac_ext
9449       if test -z "$gl_cv_lib_socket"; then
9450         gl_cv_lib_socket="none needed"
9451       fi
9452
9453 fi
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
9455 $as_echo "$gl_cv_lib_socket" >&6; }
9456     if test "$gl_cv_lib_socket" != "none needed"; then
9457       LIBSOCKET="$gl_cv_lib_socket"
9458     fi
9459   fi
9460
9461
9462
9463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build OpenSSL compatibility layer" >&5
9464 $as_echo_n "checking whether to build OpenSSL compatibility layer... " >&6; }
9465   # Check whether --enable-openssl-compatibility was given.
9466 if test "${enable_openssl_compatibility+set}" = set; then :
9467   enableval=$enable_openssl_compatibility; enable_openssl=$enableval
9468 else
9469   enable_openssl=yes
9470 fi
9471
9472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
9473 $as_echo "$enable_openssl" >&6; }
9474    if test "$enable_openssl" = "yes"; then
9475   ENABLE_OPENSSL_TRUE=
9476   ENABLE_OPENSSL_FALSE='#'
9477 else
9478   ENABLE_OPENSSL_TRUE='#'
9479   ENABLE_OPENSSL_FALSE=
9480 fi
9481
9482
9483   # We link to ../lib's gnulib, which needs -lws2_32 via LIBSOCKET in Makefile.am.
9484
9485
9486
9487
9488   :
9489
9490
9491
9492
9493 # Check whether --enable-doc was given.
9494 if test "${enable_doc+set}" = set; then :
9495   enableval=$enable_doc; enable_doc=$enableval
9496 else
9497   enable_doc=yes
9498 fi
9499
9500  if test "$enable_doc" != "no"; then
9501   ENABLE_DOC_TRUE=
9502   ENABLE_DOC_FALSE='#'
9503 else
9504   ENABLE_DOC_TRUE='#'
9505   ENABLE_DOC_FALSE=
9506 fi
9507
9508
9509 # Check whether --enable-tests was given.
9510 if test "${enable_tests+set}" = set; then :
9511   enableval=$enable_tests; enable_tests=$enableval
9512 else
9513   enable_tests=yes
9514 fi
9515
9516  if test "$enable_tests" != "no"; then
9517   ENABLE_TESTS_TRUE=
9518   ENABLE_TESTS_FALSE='#'
9519 else
9520   ENABLE_TESTS_TRUE='#'
9521   ENABLE_TESTS_FALSE=
9522 fi
9523
9524
9525
9526
9527     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
9528 set dummy gtkdoc-check; ac_word=$2
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530 $as_echo_n "checking for $ac_word... " >&6; }
9531 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
9532   $as_echo_n "(cached) " >&6
9533 else
9534   case $GTKDOC_CHECK in
9535   [\\/]* | ?:[\\/]*)
9536   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
9537   ;;
9538   *)
9539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540 for as_dir in $PATH
9541 do
9542   IFS=$as_save_IFS
9543   test -z "$as_dir" && as_dir=.
9544     for ac_exec_ext in '' $ac_executable_extensions; do
9545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9546     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
9547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9548     break 2
9549   fi
9550 done
9551   done
9552 IFS=$as_save_IFS
9553
9554   ;;
9555 esac
9556 fi
9557 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
9558 if test -n "$GTKDOC_CHECK"; then
9559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
9560 $as_echo "$GTKDOC_CHECK" >&6; }
9561 else
9562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9564 fi
9565
9566
9567   for ac_prog in gtkdoc-rebase
9568 do
9569   # Extract the first word of "$ac_prog", so it can be a program name with args.
9570 set dummy $ac_prog; ac_word=$2
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9572 $as_echo_n "checking for $ac_word... " >&6; }
9573 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
9574   $as_echo_n "(cached) " >&6
9575 else
9576   case $GTKDOC_REBASE in
9577   [\\/]* | ?:[\\/]*)
9578   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
9579   ;;
9580   *)
9581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9582 for as_dir in $PATH
9583 do
9584   IFS=$as_save_IFS
9585   test -z "$as_dir" && as_dir=.
9586     for ac_exec_ext in '' $ac_executable_extensions; do
9587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9588     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
9589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9590     break 2
9591   fi
9592 done
9593   done
9594 IFS=$as_save_IFS
9595
9596   ;;
9597 esac
9598 fi
9599 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
9600 if test -n "$GTKDOC_REBASE"; then
9601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
9602 $as_echo "$GTKDOC_REBASE" >&6; }
9603 else
9604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9606 fi
9607
9608
9609   test -n "$GTKDOC_REBASE" && break
9610 done
9611 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
9612
9613   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
9614 set dummy gtkdoc-mkpdf; ac_word=$2
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616 $as_echo_n "checking for $ac_word... " >&6; }
9617 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
9618   $as_echo_n "(cached) " >&6
9619 else
9620   case $GTKDOC_MKPDF in
9621   [\\/]* | ?:[\\/]*)
9622   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
9623   ;;
9624   *)
9625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626 for as_dir in $PATH
9627 do
9628   IFS=$as_save_IFS
9629   test -z "$as_dir" && as_dir=.
9630     for ac_exec_ext in '' $ac_executable_extensions; do
9631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9632     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
9633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9634     break 2
9635   fi
9636 done
9637   done
9638 IFS=$as_save_IFS
9639
9640   ;;
9641 esac
9642 fi
9643 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
9644 if test -n "$GTKDOC_MKPDF"; then
9645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
9646 $as_echo "$GTKDOC_MKPDF" >&6; }
9647 else
9648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649 $as_echo "no" >&6; }
9650 fi
9651
9652
9653
9654
9655 # Check whether --with-html-dir was given.
9656 if test "${with_html_dir+set}" = set; then :
9657   withval=$with_html_dir;
9658 else
9659   with_html_dir='${datadir}/gtk-doc/html'
9660 fi
9661
9662   HTML_DIR="$with_html_dir"
9663
9664
9665     # Check whether --enable-gtk-doc was given.
9666 if test "${enable_gtk_doc+set}" = set; then :
9667   enableval=$enable_gtk_doc;
9668 else
9669   enable_gtk_doc=no
9670 fi
9671
9672
9673   if test x$enable_gtk_doc = xyes; then
9674     if test -n "$PKG_CONFIG" && \
9675     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.1\""; } >&5
9676   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.1") 2>&5
9677   ac_status=$?
9678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9679   test $ac_status = 0; }; then
9680   :
9681 else
9682   as_fn_error $? "You need to have gtk-doc >= 1.1 installed to build $PACKAGE_NAME" "$LINENO" 5
9683 fi
9684   fi
9685
9686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
9687 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
9688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
9689 $as_echo "$enable_gtk_doc" >&6; }
9690
9691     # Check whether --enable-gtk-doc-html was given.
9692 if test "${enable_gtk_doc_html+set}" = set; then :
9693   enableval=$enable_gtk_doc_html;
9694 else
9695   enable_gtk_doc_html=yes
9696 fi
9697
9698     # Check whether --enable-gtk-doc-pdf was given.
9699 if test "${enable_gtk_doc_pdf+set}" = set; then :
9700   enableval=$enable_gtk_doc_pdf;
9701 else
9702   enable_gtk_doc_pdf=no
9703 fi
9704
9705
9706   if test -z "$GTKDOC_MKPDF"; then
9707     enable_gtk_doc_pdf=no
9708   fi
9709
9710
9711    if test x$enable_gtk_doc = xyes; then
9712   ENABLE_GTK_DOC_TRUE=
9713   ENABLE_GTK_DOC_FALSE='#'
9714 else
9715   ENABLE_GTK_DOC_TRUE='#'
9716   ENABLE_GTK_DOC_FALSE=
9717 fi
9718
9719    if test x$enable_gtk_doc_html = xyes; then
9720   GTK_DOC_BUILD_HTML_TRUE=
9721   GTK_DOC_BUILD_HTML_FALSE='#'
9722 else
9723   GTK_DOC_BUILD_HTML_TRUE='#'
9724   GTK_DOC_BUILD_HTML_FALSE=
9725 fi
9726
9727    if test x$enable_gtk_doc_pdf = xyes; then
9728   GTK_DOC_BUILD_PDF_TRUE=
9729   GTK_DOC_BUILD_PDF_FALSE='#'
9730 else
9731   GTK_DOC_BUILD_PDF_TRUE='#'
9732   GTK_DOC_BUILD_PDF_FALSE=
9733 fi
9734
9735    if test -n "$LIBTOOL"; then
9736   GTK_DOC_USE_LIBTOOL_TRUE=
9737   GTK_DOC_USE_LIBTOOL_FALSE='#'
9738 else
9739   GTK_DOC_USE_LIBTOOL_TRUE='#'
9740   GTK_DOC_USE_LIBTOOL_FALSE=
9741 fi
9742
9743    if test -n "$GTKDOC_REBASE"; then
9744   GTK_DOC_USE_REBASE_TRUE=
9745   GTK_DOC_USE_REBASE_FALSE='#'
9746 else
9747   GTK_DOC_USE_REBASE_TRUE='#'
9748   GTK_DOC_USE_REBASE_FALSE=
9749 fi
9750
9751
9752
9753 mkdir_p="$MKDIR_P"
9754 case $mkdir_p in
9755   [\\/$]* | ?:[\\/]*) ;;
9756   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9757 esac
9758
9759
9760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
9761 $as_echo_n "checking whether NLS is requested... " >&6; }
9762     # Check whether --enable-nls was given.
9763 if test "${enable_nls+set}" = set; then :
9764   enableval=$enable_nls; USE_NLS=$enableval
9765 else
9766   USE_NLS=yes
9767 fi
9768
9769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9770 $as_echo "$USE_NLS" >&6; }
9771
9772
9773
9774
9775       GETTEXT_MACRO_VERSION=0.18
9776
9777
9778
9779
9780 # Prepare PATH_SEPARATOR.
9781 # The user is always right.
9782 if test "${PATH_SEPARATOR+set}" != set; then
9783   echo "#! /bin/sh" >conf$$.sh
9784   echo  "exit 0"   >>conf$$.sh
9785   chmod +x conf$$.sh
9786   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9787     PATH_SEPARATOR=';'
9788   else
9789     PATH_SEPARATOR=:
9790   fi
9791   rm -f conf$$.sh
9792 fi
9793
9794 # Find out how to test for executable files. Don't use a zero-byte file,
9795 # as systems may use methods other than mode bits to determine executability.
9796 cat >conf$$.file <<_ASEOF
9797 #! /bin/sh
9798 exit 0
9799 _ASEOF
9800 chmod +x conf$$.file
9801 if test -x conf$$.file >/dev/null 2>&1; then
9802   ac_executable_p="test -x"
9803 else
9804   ac_executable_p="test -f"
9805 fi
9806 rm -f conf$$.file
9807
9808 # Extract the first word of "msgfmt", so it can be a program name with args.
9809 set dummy msgfmt; ac_word=$2
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811 $as_echo_n "checking for $ac_word... " >&6; }
9812 if ${ac_cv_path_MSGFMT+:} false; then :
9813   $as_echo_n "(cached) " >&6
9814 else
9815   case "$MSGFMT" in
9816   [\\/]* | ?:[\\/]*)
9817     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9818     ;;
9819   *)
9820     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9821     for ac_dir in $PATH; do
9822       IFS="$ac_save_IFS"
9823       test -z "$ac_dir" && ac_dir=.
9824       for ac_exec_ext in '' $ac_executable_extensions; do
9825         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9826           echo "$as_me: trying $ac_dir/$ac_word..." >&5
9827           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
9828      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9829             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
9830             break 2
9831           fi
9832         fi
9833       done
9834     done
9835     IFS="$ac_save_IFS"
9836   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
9837     ;;
9838 esac
9839 fi
9840 MSGFMT="$ac_cv_path_MSGFMT"
9841 if test "$MSGFMT" != ":"; then
9842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9843 $as_echo "$MSGFMT" >&6; }
9844 else
9845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846 $as_echo "no" >&6; }
9847 fi
9848
9849   # Extract the first word of "gmsgfmt", so it can be a program name with args.
9850 set dummy gmsgfmt; ac_word=$2
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9852 $as_echo_n "checking for $ac_word... " >&6; }
9853 if ${ac_cv_path_GMSGFMT+:} false; then :
9854   $as_echo_n "(cached) " >&6
9855 else
9856   case $GMSGFMT in
9857   [\\/]* | ?:[\\/]*)
9858   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9859   ;;
9860   *)
9861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862 for as_dir in $PATH
9863 do
9864   IFS=$as_save_IFS
9865   test -z "$as_dir" && as_dir=.
9866     for ac_exec_ext in '' $ac_executable_extensions; do
9867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9868     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9870     break 2
9871   fi
9872 done
9873   done
9874 IFS=$as_save_IFS
9875
9876   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9877   ;;
9878 esac
9879 fi
9880 GMSGFMT=$ac_cv_path_GMSGFMT
9881 if test -n "$GMSGFMT"; then
9882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
9883 $as_echo "$GMSGFMT" >&6; }
9884 else
9885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886 $as_echo "no" >&6; }
9887 fi
9888
9889
9890
9891     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9892     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
9893     *) MSGFMT_015=$MSGFMT ;;
9894   esac
9895
9896   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9897     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
9898     *) GMSGFMT_015=$GMSGFMT ;;
9899   esac
9900
9901
9902
9903 # Prepare PATH_SEPARATOR.
9904 # The user is always right.
9905 if test "${PATH_SEPARATOR+set}" != set; then
9906   echo "#! /bin/sh" >conf$$.sh
9907   echo  "exit 0"   >>conf$$.sh
9908   chmod +x conf$$.sh
9909   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9910     PATH_SEPARATOR=';'
9911   else
9912     PATH_SEPARATOR=:
9913   fi
9914   rm -f conf$$.sh
9915 fi
9916
9917 # Find out how to test for executable files. Don't use a zero-byte file,
9918 # as systems may use methods other than mode bits to determine executability.
9919 cat >conf$$.file <<_ASEOF
9920 #! /bin/sh
9921 exit 0
9922 _ASEOF
9923 chmod +x conf$$.file
9924 if test -x conf$$.file >/dev/null 2>&1; then
9925   ac_executable_p="test -x"
9926 else
9927   ac_executable_p="test -f"
9928 fi
9929 rm -f conf$$.file
9930
9931 # Extract the first word of "xgettext", so it can be a program name with args.
9932 set dummy xgettext; ac_word=$2
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9934 $as_echo_n "checking for $ac_word... " >&6; }
9935 if ${ac_cv_path_XGETTEXT+:} false; then :
9936   $as_echo_n "(cached) " >&6
9937 else
9938   case "$XGETTEXT" in
9939   [\\/]* | ?:[\\/]*)
9940     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9941     ;;
9942   *)
9943     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9944     for ac_dir in $PATH; do
9945       IFS="$ac_save_IFS"
9946       test -z "$ac_dir" && ac_dir=.
9947       for ac_exec_ext in '' $ac_executable_extensions; do
9948         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9949           echo "$as_me: trying $ac_dir/$ac_word..." >&5
9950           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
9951      (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
9952             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
9953             break 2
9954           fi
9955         fi
9956       done
9957     done
9958     IFS="$ac_save_IFS"
9959   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9960     ;;
9961 esac
9962 fi
9963 XGETTEXT="$ac_cv_path_XGETTEXT"
9964 if test "$XGETTEXT" != ":"; then
9965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
9966 $as_echo "$XGETTEXT" >&6; }
9967 else
9968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969 $as_echo "no" >&6; }
9970 fi
9971
9972     rm -f messages.po
9973
9974     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9975     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
9976     *) XGETTEXT_015=$XGETTEXT ;;
9977   esac
9978
9979
9980
9981 # Prepare PATH_SEPARATOR.
9982 # The user is always right.
9983 if test "${PATH_SEPARATOR+set}" != set; then
9984   echo "#! /bin/sh" >conf$$.sh
9985   echo  "exit 0"   >>conf$$.sh
9986   chmod +x conf$$.sh
9987   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9988     PATH_SEPARATOR=';'
9989   else
9990     PATH_SEPARATOR=:
9991   fi
9992   rm -f conf$$.sh
9993 fi
9994
9995 # Find out how to test for executable files. Don't use a zero-byte file,
9996 # as systems may use methods other than mode bits to determine executability.
9997 cat >conf$$.file <<_ASEOF
9998 #! /bin/sh
9999 exit 0
10000 _ASEOF
10001 chmod +x conf$$.file
10002 if test -x conf$$.file >/dev/null 2>&1; then
10003   ac_executable_p="test -x"
10004 else
10005   ac_executable_p="test -f"
10006 fi
10007 rm -f conf$$.file
10008
10009 # Extract the first word of "msgmerge", so it can be a program name with args.
10010 set dummy msgmerge; ac_word=$2
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10012 $as_echo_n "checking for $ac_word... " >&6; }
10013 if ${ac_cv_path_MSGMERGE+:} false; then :
10014   $as_echo_n "(cached) " >&6
10015 else
10016   case "$MSGMERGE" in
10017   [\\/]* | ?:[\\/]*)
10018     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10019     ;;
10020   *)
10021     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10022     for ac_dir in $PATH; do
10023       IFS="$ac_save_IFS"
10024       test -z "$ac_dir" && ac_dir=.
10025       for ac_exec_ext in '' $ac_executable_extensions; do
10026         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10027           echo "$as_me: trying $ac_dir/$ac_word..." >&5
10028           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
10029             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10030             break 2
10031           fi
10032         fi
10033       done
10034     done
10035     IFS="$ac_save_IFS"
10036   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10037     ;;
10038 esac
10039 fi
10040 MSGMERGE="$ac_cv_path_MSGMERGE"
10041 if test "$MSGMERGE" != ":"; then
10042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
10043 $as_echo "$MSGMERGE" >&6; }
10044 else
10045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10046 $as_echo "no" >&6; }
10047 fi
10048
10049
10050         test -n "$localedir" || localedir='${datadir}/locale'
10051
10052
10053     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
10054
10055
10056   ac_config_commands="$ac_config_commands po-directories"
10057
10058
10059
10060       if test "X$prefix" = "XNONE"; then
10061     acl_final_prefix="$ac_default_prefix"
10062   else
10063     acl_final_prefix="$prefix"
10064   fi
10065   if test "X$exec_prefix" = "XNONE"; then
10066     acl_final_exec_prefix='${prefix}'
10067   else
10068     acl_final_exec_prefix="$exec_prefix"
10069   fi
10070   acl_save_prefix="$prefix"
10071   prefix="$acl_final_prefix"
10072   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10073   prefix="$acl_save_prefix"
10074
10075
10076 # Check whether --with-gnu-ld was given.
10077 if test "${with_gnu_ld+set}" = set; then :
10078   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10079 else
10080   with_gnu_ld=no
10081 fi
10082
10083 # Prepare PATH_SEPARATOR.
10084 # The user is always right.
10085 if test "${PATH_SEPARATOR+set}" != set; then
10086   echo "#! /bin/sh" >conf$$.sh
10087   echo  "exit 0"   >>conf$$.sh
10088   chmod +x conf$$.sh
10089   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10090     PATH_SEPARATOR=';'
10091   else
10092     PATH_SEPARATOR=:
10093   fi
10094   rm -f conf$$.sh
10095 fi
10096 ac_prog=ld
10097 if test "$GCC" = yes; then
10098   # Check if gcc -print-prog-name=ld gives a path.
10099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10100 $as_echo_n "checking for ld used by GCC... " >&6; }
10101   case $host in
10102   *-*-mingw*)
10103     # gcc leaves a trailing carriage return which upsets mingw
10104     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10105   *)
10106     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10107   esac
10108   case $ac_prog in
10109     # Accept absolute paths.
10110     [\\/]* | [A-Za-z]:[\\/]*)
10111       re_direlt='/[^/][^/]*/\.\./'
10112       # Canonicalize the path of ld
10113       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10114       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10115         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10116       done
10117       test -z "$LD" && LD="$ac_prog"
10118       ;;
10119   "")
10120     # If it fails, then pretend we aren't using GCC.
10121     ac_prog=ld
10122     ;;
10123   *)
10124     # If it is relative, then search for the first ld in PATH.
10125     with_gnu_ld=unknown
10126     ;;
10127   esac
10128 elif test "$with_gnu_ld" = yes; then
10129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10130 $as_echo_n "checking for GNU ld... " >&6; }
10131 else
10132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10133 $as_echo_n "checking for non-GNU ld... " >&6; }
10134 fi
10135 if ${acl_cv_path_LD+:} false; then :
10136   $as_echo_n "(cached) " >&6
10137 else
10138   if test -z "$LD"; then
10139   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10140   for ac_dir in $PATH; do
10141     test -z "$ac_dir" && ac_dir=.
10142     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10143       acl_cv_path_LD="$ac_dir/$ac_prog"
10144       # Check to see if the program is GNU ld.  I'd rather use --version,
10145       # but apparently some GNU ld's only accept -v.
10146       # Break only if it was the GNU/non-GNU ld that we prefer.
10147       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10148       *GNU* | *'with BFD'*)
10149         test "$with_gnu_ld" != no && break ;;
10150       *)
10151         test "$with_gnu_ld" != yes && break ;;
10152       esac
10153     fi
10154   done
10155   IFS="$ac_save_ifs"
10156 else
10157   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10158 fi
10159 fi
10160
10161 LD="$acl_cv_path_LD"
10162 if test -n "$LD"; then
10163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10164 $as_echo "$LD" >&6; }
10165 else
10166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10168 fi
10169 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10171 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10172 if ${acl_cv_prog_gnu_ld+:} false; then :
10173   $as_echo_n "(cached) " >&6
10174 else
10175   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10176 case `$LD -v 2>&1 </dev/null` in
10177 *GNU* | *'with BFD'*)
10178   acl_cv_prog_gnu_ld=yes ;;
10179 *)
10180   acl_cv_prog_gnu_ld=no ;;
10181 esac
10182 fi
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10184 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10185 with_gnu_ld=$acl_cv_prog_gnu_ld
10186
10187
10188
10189
10190                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10191 $as_echo_n "checking for shared library run path origin... " >&6; }
10192 if ${acl_cv_rpath+:} false; then :
10193   $as_echo_n "(cached) " >&6
10194 else
10195
10196     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10197     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10198     . ./conftest.sh
10199     rm -f ./conftest.sh
10200     acl_cv_rpath=done
10201
10202 fi
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10204 $as_echo "$acl_cv_rpath" >&6; }
10205   wl="$acl_cv_wl"
10206   acl_libext="$acl_cv_libext"
10207   acl_shlibext="$acl_cv_shlibext"
10208   acl_libname_spec="$acl_cv_libname_spec"
10209   acl_library_names_spec="$acl_cv_library_names_spec"
10210   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10211   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10212   acl_hardcode_direct="$acl_cv_hardcode_direct"
10213   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
10214     # Check whether --enable-rpath was given.
10215 if test "${enable_rpath+set}" = set; then :
10216   enableval=$enable_rpath; :
10217 else
10218   enable_rpath=yes
10219 fi
10220
10221
10222
10223
10224   acl_libdirstem=lib
10225   acl_libdirstem2=
10226   case "$host_os" in
10227     solaris*)
10228                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
10229 $as_echo_n "checking for 64-bit host... " >&6; }
10230 if ${gl_cv_solaris_64bit+:} false; then :
10231   $as_echo_n "(cached) " >&6
10232 else
10233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h.  */
10235
10236 #ifdef _LP64
10237 sixtyfour bits
10238 #endif
10239
10240 _ACEOF
10241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10242   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
10243   gl_cv_solaris_64bit=yes
10244 else
10245   gl_cv_solaris_64bit=no
10246 fi
10247 rm -f conftest*
10248
10249
10250 fi
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
10252 $as_echo "$gl_cv_solaris_64bit" >&6; }
10253       if test $gl_cv_solaris_64bit = yes; then
10254         acl_libdirstem=lib/64
10255         case "$host_cpu" in
10256           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
10257           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
10258         esac
10259       fi
10260       ;;
10261     *)
10262       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10263       if test -n "$searchpath"; then
10264         acl_save_IFS="${IFS=    }"; IFS=":"
10265         for searchdir in $searchpath; do
10266           if test -d "$searchdir"; then
10267             case "$searchdir" in
10268               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10269               */../ | */.. )
10270                 # Better ignore directories of this form. They are misleading.
10271                 ;;
10272               *) searchdir=`cd "$searchdir" && pwd`
10273                  case "$searchdir" in
10274                    */lib64 ) acl_libdirstem=lib64 ;;
10275                  esac ;;
10276             esac
10277           fi
10278         done
10279         IFS="$acl_save_IFS"
10280       fi
10281       ;;
10282   esac
10283   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296     use_additional=yes
10297
10298   acl_save_prefix="$prefix"
10299   prefix="$acl_final_prefix"
10300   acl_save_exec_prefix="$exec_prefix"
10301   exec_prefix="$acl_final_exec_prefix"
10302
10303     eval additional_includedir=\"$includedir\"
10304     eval additional_libdir=\"$libdir\"
10305
10306   exec_prefix="$acl_save_exec_prefix"
10307   prefix="$acl_save_prefix"
10308
10309
10310 # Check whether --with-libiconv-prefix was given.
10311 if test "${with_libiconv_prefix+set}" = set; then :
10312   withval=$with_libiconv_prefix;
10313     if test "X$withval" = "Xno"; then
10314       use_additional=no
10315     else
10316       if test "X$withval" = "X"; then
10317
10318   acl_save_prefix="$prefix"
10319   prefix="$acl_final_prefix"
10320   acl_save_exec_prefix="$exec_prefix"
10321   exec_prefix="$acl_final_exec_prefix"
10322
10323           eval additional_includedir=\"$includedir\"
10324           eval additional_libdir=\"$libdir\"
10325
10326   exec_prefix="$acl_save_exec_prefix"
10327   prefix="$acl_save_prefix"
10328
10329       else
10330         additional_includedir="$withval/include"
10331         additional_libdir="$withval/$acl_libdirstem"
10332         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10333            && ! test -d "$withval/$acl_libdirstem"; then
10334           additional_libdir="$withval/$acl_libdirstem2"
10335         fi
10336       fi
10337     fi
10338
10339 fi
10340
10341       LIBICONV=
10342   LTLIBICONV=
10343   INCICONV=
10344   LIBICONV_PREFIX=
10345       HAVE_LIBICONV=
10346   rpathdirs=
10347   ltrpathdirs=
10348   names_already_handled=
10349   names_next_round='iconv '
10350   while test -n "$names_next_round"; do
10351     names_this_round="$names_next_round"
10352     names_next_round=
10353     for name in $names_this_round; do
10354       already_handled=
10355       for n in $names_already_handled; do
10356         if test "$n" = "$name"; then
10357           already_handled=yes
10358           break
10359         fi
10360       done
10361       if test -z "$already_handled"; then
10362         names_already_handled="$names_already_handled $name"
10363                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10364         eval value=\"\$HAVE_LIB$uppername\"
10365         if test -n "$value"; then
10366           if test "$value" = yes; then
10367             eval value=\"\$LIB$uppername\"
10368             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10369             eval value=\"\$LTLIB$uppername\"
10370             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10371           else
10372                                     :
10373           fi
10374         else
10375                               found_dir=
10376           found_la=
10377           found_so=
10378           found_a=
10379           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10380           if test -n "$acl_shlibext"; then
10381             shrext=".$acl_shlibext"             # typically: shrext=.so
10382           else
10383             shrext=
10384           fi
10385           if test $use_additional = yes; then
10386             dir="$additional_libdir"
10387                                     if test -n "$acl_shlibext"; then
10388               if test -f "$dir/$libname$shrext"; then
10389                 found_dir="$dir"
10390                 found_so="$dir/$libname$shrext"
10391               else
10392                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10393                   ver=`(cd "$dir" && \
10394                         for f in "$libname$shrext".*; do echo "$f"; done \
10395                         | sed -e "s,^$libname$shrext\\\\.,," \
10396                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10397                         | sed 1q ) 2>/dev/null`
10398                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10399                     found_dir="$dir"
10400                     found_so="$dir/$libname$shrext.$ver"
10401                   fi
10402                 else
10403                   eval library_names=\"$acl_library_names_spec\"
10404                   for f in $library_names; do
10405                     if test -f "$dir/$f"; then
10406                       found_dir="$dir"
10407                       found_so="$dir/$f"
10408                       break
10409                     fi
10410                   done
10411                 fi
10412               fi
10413             fi
10414                         if test "X$found_dir" = "X"; then
10415               if test -f "$dir/$libname.$acl_libext"; then
10416                 found_dir="$dir"
10417                 found_a="$dir/$libname.$acl_libext"
10418               fi
10419             fi
10420             if test "X$found_dir" != "X"; then
10421               if test -f "$dir/$libname.la"; then
10422                 found_la="$dir/$libname.la"
10423               fi
10424             fi
10425           fi
10426           if test "X$found_dir" = "X"; then
10427             for x in $LDFLAGS $LTLIBICONV; do
10428
10429   acl_save_prefix="$prefix"
10430   prefix="$acl_final_prefix"
10431   acl_save_exec_prefix="$exec_prefix"
10432   exec_prefix="$acl_final_exec_prefix"
10433   eval x=\"$x\"
10434   exec_prefix="$acl_save_exec_prefix"
10435   prefix="$acl_save_prefix"
10436
10437               case "$x" in
10438                 -L*)
10439                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10440                                     if test -n "$acl_shlibext"; then
10441                     if test -f "$dir/$libname$shrext"; then
10442                       found_dir="$dir"
10443                       found_so="$dir/$libname$shrext"
10444                     else
10445                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10446                         ver=`(cd "$dir" && \
10447                               for f in "$libname$shrext".*; do echo "$f"; done \
10448                               | sed -e "s,^$libname$shrext\\\\.,," \
10449                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10450                               | sed 1q ) 2>/dev/null`
10451                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10452                           found_dir="$dir"
10453                           found_so="$dir/$libname$shrext.$ver"
10454                         fi
10455                       else
10456                         eval library_names=\"$acl_library_names_spec\"
10457                         for f in $library_names; do
10458                           if test -f "$dir/$f"; then
10459                             found_dir="$dir"
10460                             found_so="$dir/$f"
10461                             break
10462                           fi
10463                         done
10464                       fi
10465                     fi
10466                   fi
10467                                     if test "X$found_dir" = "X"; then
10468                     if test -f "$dir/$libname.$acl_libext"; then
10469                       found_dir="$dir"
10470                       found_a="$dir/$libname.$acl_libext"
10471                     fi
10472                   fi
10473                   if test "X$found_dir" != "X"; then
10474                     if test -f "$dir/$libname.la"; then
10475                       found_la="$dir/$libname.la"
10476                     fi
10477                   fi
10478                   ;;
10479               esac
10480               if test "X$found_dir" != "X"; then
10481                 break
10482               fi
10483             done
10484           fi
10485           if test "X$found_dir" != "X"; then
10486                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10487             if test "X$found_so" != "X"; then
10488                                                         if test "$enable_rpath" = no \
10489                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10490                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10491                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10492               else
10493                                                                                 haveit=
10494                 for x in $ltrpathdirs; do
10495                   if test "X$x" = "X$found_dir"; then
10496                     haveit=yes
10497                     break
10498                   fi
10499                 done
10500                 if test -z "$haveit"; then
10501                   ltrpathdirs="$ltrpathdirs $found_dir"
10502                 fi
10503                                 if test "$acl_hardcode_direct" = yes; then
10504                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10505                 else
10506                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10507                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10508                                                             haveit=
10509                     for x in $rpathdirs; do
10510                       if test "X$x" = "X$found_dir"; then
10511                         haveit=yes
10512                         break
10513                       fi
10514                     done
10515                     if test -z "$haveit"; then
10516                       rpathdirs="$rpathdirs $found_dir"
10517                     fi
10518                   else
10519                                                                                 haveit=
10520                     for x in $LDFLAGS $LIBICONV; do
10521
10522   acl_save_prefix="$prefix"
10523   prefix="$acl_final_prefix"
10524   acl_save_exec_prefix="$exec_prefix"
10525   exec_prefix="$acl_final_exec_prefix"
10526   eval x=\"$x\"
10527   exec_prefix="$acl_save_exec_prefix"
10528   prefix="$acl_save_prefix"
10529
10530                       if test "X$x" = "X-L$found_dir"; then
10531                         haveit=yes
10532                         break
10533                       fi
10534                     done
10535                     if test -z "$haveit"; then
10536                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10537                     fi
10538                     if test "$acl_hardcode_minus_L" != no; then
10539                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10540                     else
10541                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10542                     fi
10543                   fi
10544                 fi
10545               fi
10546             else
10547               if test "X$found_a" != "X"; then
10548                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10549               else
10550                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10551               fi
10552             fi
10553                         additional_includedir=
10554             case "$found_dir" in
10555               */$acl_libdirstem | */$acl_libdirstem/)
10556                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10557                 if test "$name" = 'iconv'; then
10558                   LIBICONV_PREFIX="$basedir"
10559                 fi
10560                 additional_includedir="$basedir/include"
10561                 ;;
10562               */$acl_libdirstem2 | */$acl_libdirstem2/)
10563                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10564                 if test "$name" = 'iconv'; then
10565                   LIBICONV_PREFIX="$basedir"
10566                 fi
10567                 additional_includedir="$basedir/include"
10568                 ;;
10569             esac
10570             if test "X$additional_includedir" != "X"; then
10571                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10572                 haveit=
10573                 if test "X$additional_includedir" = "X/usr/local/include"; then
10574                   if test -n "$GCC"; then
10575                     case $host_os in
10576                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10577                     esac
10578                   fi
10579                 fi
10580                 if test -z "$haveit"; then
10581                   for x in $CPPFLAGS $INCICONV; do
10582
10583   acl_save_prefix="$prefix"
10584   prefix="$acl_final_prefix"
10585   acl_save_exec_prefix="$exec_prefix"
10586   exec_prefix="$acl_final_exec_prefix"
10587   eval x=\"$x\"
10588   exec_prefix="$acl_save_exec_prefix"
10589   prefix="$acl_save_prefix"
10590
10591                     if test "X$x" = "X-I$additional_includedir"; then
10592                       haveit=yes
10593                       break
10594                     fi
10595                   done
10596                   if test -z "$haveit"; then
10597                     if test -d "$additional_includedir"; then
10598                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10599                     fi
10600                   fi
10601                 fi
10602               fi
10603             fi
10604                         if test -n "$found_la"; then
10605                                                         save_libdir="$libdir"
10606               case "$found_la" in
10607                 */* | *\\*) . "$found_la" ;;
10608                 *) . "./$found_la" ;;
10609               esac
10610               libdir="$save_libdir"
10611                             for dep in $dependency_libs; do
10612                 case "$dep" in
10613                   -L*)
10614                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10615                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
10616                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
10617                       haveit=
10618                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
10619                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
10620                         if test -n "$GCC"; then
10621                           case $host_os in
10622                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10623                           esac
10624                         fi
10625                       fi
10626                       if test -z "$haveit"; then
10627                         haveit=
10628                         for x in $LDFLAGS $LIBICONV; do
10629
10630   acl_save_prefix="$prefix"
10631   prefix="$acl_final_prefix"
10632   acl_save_exec_prefix="$exec_prefix"
10633   exec_prefix="$acl_final_exec_prefix"
10634   eval x=\"$x\"
10635   exec_prefix="$acl_save_exec_prefix"
10636   prefix="$acl_save_prefix"
10637
10638                           if test "X$x" = "X-L$additional_libdir"; then
10639                             haveit=yes
10640                             break
10641                           fi
10642                         done
10643                         if test -z "$haveit"; then
10644                           if test -d "$additional_libdir"; then
10645                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10646                           fi
10647                         fi
10648                         haveit=
10649                         for x in $LDFLAGS $LTLIBICONV; do
10650
10651   acl_save_prefix="$prefix"
10652   prefix="$acl_final_prefix"
10653   acl_save_exec_prefix="$exec_prefix"
10654   exec_prefix="$acl_final_exec_prefix"
10655   eval x=\"$x\"
10656   exec_prefix="$acl_save_exec_prefix"
10657   prefix="$acl_save_prefix"
10658
10659                           if test "X$x" = "X-L$additional_libdir"; then
10660                             haveit=yes
10661                             break
10662                           fi
10663                         done
10664                         if test -z "$haveit"; then
10665                           if test -d "$additional_libdir"; then
10666                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10667                           fi
10668                         fi
10669                       fi
10670                     fi
10671                     ;;
10672                   -R*)
10673                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10674                     if test "$enable_rpath" != no; then
10675                                                                   haveit=
10676                       for x in $rpathdirs; do
10677                         if test "X$x" = "X$dir"; then
10678                           haveit=yes
10679                           break
10680                         fi
10681                       done
10682                       if test -z "$haveit"; then
10683                         rpathdirs="$rpathdirs $dir"
10684                       fi
10685                                                                   haveit=
10686                       for x in $ltrpathdirs; do
10687                         if test "X$x" = "X$dir"; then
10688                           haveit=yes
10689                           break
10690                         fi
10691                       done
10692                       if test -z "$haveit"; then
10693                         ltrpathdirs="$ltrpathdirs $dir"
10694                       fi
10695                     fi
10696                     ;;
10697                   -l*)
10698                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10699                     ;;
10700                   *.la)
10701                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10702                     ;;
10703                   *)
10704                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10705                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10706                     ;;
10707                 esac
10708               done
10709             fi
10710           else
10711                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10712             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10713           fi
10714         fi
10715       fi
10716     done
10717   done
10718   if test "X$rpathdirs" != "X"; then
10719     if test -n "$acl_hardcode_libdir_separator"; then
10720                         alldirs=
10721       for found_dir in $rpathdirs; do
10722         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10723       done
10724             acl_save_libdir="$libdir"
10725       libdir="$alldirs"
10726       eval flag=\"$acl_hardcode_libdir_flag_spec\"
10727       libdir="$acl_save_libdir"
10728       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10729     else
10730             for found_dir in $rpathdirs; do
10731         acl_save_libdir="$libdir"
10732         libdir="$found_dir"
10733         eval flag=\"$acl_hardcode_libdir_flag_spec\"
10734         libdir="$acl_save_libdir"
10735         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10736       done
10737     fi
10738   fi
10739   if test "X$ltrpathdirs" != "X"; then
10740             for found_dir in $ltrpathdirs; do
10741       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10742     done
10743   fi
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10776 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10777 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10778   $as_echo_n "(cached) " >&6
10779 else
10780   gt_save_LIBS="$LIBS"
10781      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10782      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h.  */
10784 #include <CoreFoundation/CFPreferences.h>
10785 int
10786 main ()
10787 {
10788 CFPreferencesCopyAppValue(NULL, NULL)
10789   ;
10790   return 0;
10791 }
10792 _ACEOF
10793 if ac_fn_c_try_link "$LINENO"; then :
10794   gt_cv_func_CFPreferencesCopyAppValue=yes
10795 else
10796   gt_cv_func_CFPreferencesCopyAppValue=no
10797 fi
10798 rm -f core conftest.err conftest.$ac_objext \
10799     conftest$ac_exeext conftest.$ac_ext
10800      LIBS="$gt_save_LIBS"
10801 fi
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10803 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10804   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10805
10806 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10807
10808   fi
10809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10810 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10811 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10812   $as_echo_n "(cached) " >&6
10813 else
10814   gt_save_LIBS="$LIBS"
10815      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10816      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h.  */
10818 #include <CoreFoundation/CFLocale.h>
10819 int
10820 main ()
10821 {
10822 CFLocaleCopyCurrent();
10823   ;
10824   return 0;
10825 }
10826 _ACEOF
10827 if ac_fn_c_try_link "$LINENO"; then :
10828   gt_cv_func_CFLocaleCopyCurrent=yes
10829 else
10830   gt_cv_func_CFLocaleCopyCurrent=no
10831 fi
10832 rm -f core conftest.err conftest.$ac_objext \
10833     conftest$ac_exeext conftest.$ac_ext
10834      LIBS="$gt_save_LIBS"
10835 fi
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10837 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10838   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10839
10840 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10841
10842   fi
10843   INTL_MACOSX_LIBS=
10844   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10845     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10846   fi
10847
10848
10849
10850
10851
10852
10853   LIBINTL=
10854   LTLIBINTL=
10855   POSUB=
10856
10857     case " $gt_needs " in
10858     *" need-formatstring-macros "*) gt_api_version=3 ;;
10859     *" need-ngettext "*) gt_api_version=2 ;;
10860     *) gt_api_version=1 ;;
10861   esac
10862   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10863   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10864
10865     if test "$USE_NLS" = "yes"; then
10866     gt_use_preinstalled_gnugettext=no
10867
10868
10869         if test $gt_api_version -ge 3; then
10870           gt_revision_test_code='
10871 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10872 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10873 #endif
10874 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10875 '
10876         else
10877           gt_revision_test_code=
10878         fi
10879         if test $gt_api_version -ge 2; then
10880           gt_expression_test_code=' + * ngettext ("", "", 0)'
10881         else
10882           gt_expression_test_code=
10883         fi
10884
10885         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10886 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10887 if eval \${$gt_func_gnugettext_libc+:} false; then :
10888   $as_echo_n "(cached) " >&6
10889 else
10890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h.  */
10892 #include <libintl.h>
10893 $gt_revision_test_code
10894 extern int _nl_msg_cat_cntr;
10895 extern int *_nl_domain_bindings;
10896 int
10897 main ()
10898 {
10899 bindtextdomain ("", "");
10900 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10901   ;
10902   return 0;
10903 }
10904 _ACEOF
10905 if ac_fn_c_try_link "$LINENO"; then :
10906   eval "$gt_func_gnugettext_libc=yes"
10907 else
10908   eval "$gt_func_gnugettext_libc=no"
10909 fi
10910 rm -f core conftest.err conftest.$ac_objext \
10911     conftest$ac_exeext conftest.$ac_ext
10912 fi
10913 eval ac_res=\$$gt_func_gnugettext_libc
10914                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10915 $as_echo "$ac_res" >&6; }
10916
10917         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10918
10919
10920
10921
10922
10923           am_save_CPPFLAGS="$CPPFLAGS"
10924
10925   for element in $INCICONV; do
10926     haveit=
10927     for x in $CPPFLAGS; do
10928
10929   acl_save_prefix="$prefix"
10930   prefix="$acl_final_prefix"
10931   acl_save_exec_prefix="$exec_prefix"
10932   exec_prefix="$acl_final_exec_prefix"
10933   eval x=\"$x\"
10934   exec_prefix="$acl_save_exec_prefix"
10935   prefix="$acl_save_prefix"
10936
10937       if test "X$x" = "X$element"; then
10938         haveit=yes
10939         break
10940       fi
10941     done
10942     if test -z "$haveit"; then
10943       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10944     fi
10945   done
10946
10947
10948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10949 $as_echo_n "checking for iconv... " >&6; }
10950 if ${am_cv_func_iconv+:} false; then :
10951   $as_echo_n "(cached) " >&6
10952 else
10953
10954     am_cv_func_iconv="no, consider installing GNU libiconv"
10955     am_cv_lib_iconv=no
10956     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h.  */
10958 #include <stdlib.h>
10959 #include <iconv.h>
10960 int
10961 main ()
10962 {
10963 iconv_t cd = iconv_open("","");
10964        iconv(cd,NULL,NULL,NULL,NULL);
10965        iconv_close(cd);
10966   ;
10967   return 0;
10968 }
10969 _ACEOF
10970 if ac_fn_c_try_link "$LINENO"; then :
10971   am_cv_func_iconv=yes
10972 fi
10973 rm -f core conftest.err conftest.$ac_objext \
10974     conftest$ac_exeext conftest.$ac_ext
10975     if test "$am_cv_func_iconv" != yes; then
10976       am_save_LIBS="$LIBS"
10977       LIBS="$LIBS $LIBICONV"
10978       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h.  */
10980 #include <stdlib.h>
10981 #include <iconv.h>
10982 int
10983 main ()
10984 {
10985 iconv_t cd = iconv_open("","");
10986          iconv(cd,NULL,NULL,NULL,NULL);
10987          iconv_close(cd);
10988   ;
10989   return 0;
10990 }
10991 _ACEOF
10992 if ac_fn_c_try_link "$LINENO"; then :
10993   am_cv_lib_iconv=yes
10994         am_cv_func_iconv=yes
10995 fi
10996 rm -f core conftest.err conftest.$ac_objext \
10997     conftest$ac_exeext conftest.$ac_ext
10998       LIBS="$am_save_LIBS"
10999     fi
11000
11001 fi
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11003 $as_echo "$am_cv_func_iconv" >&6; }
11004   if test "$am_cv_func_iconv" = yes; then
11005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11006 $as_echo_n "checking for working iconv... " >&6; }
11007 if ${am_cv_func_iconv_works+:} false; then :
11008   $as_echo_n "(cached) " >&6
11009 else
11010
11011             am_save_LIBS="$LIBS"
11012       if test $am_cv_lib_iconv = yes; then
11013         LIBS="$LIBS $LIBICONV"
11014       fi
11015       if test "$cross_compiling" = yes; then :
11016   case "$host_os" in
11017            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11018            *)            am_cv_func_iconv_works="guessing yes" ;;
11019          esac
11020 else
11021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h.  */
11023
11024 #include <iconv.h>
11025 #include <string.h>
11026 int main ()
11027 {
11028   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11029      returns.  */
11030   {
11031     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11032     if (cd_utf8_to_88591 != (iconv_t)(-1))
11033       {
11034         static const char input[] = "\342\202\254"; /* EURO SIGN */
11035         char buf[10];
11036         const char *inptr = input;
11037         size_t inbytesleft = strlen (input);
11038         char *outptr = buf;
11039         size_t outbytesleft = sizeof (buf);
11040         size_t res = iconv (cd_utf8_to_88591,
11041                             (char **) &inptr, &inbytesleft,
11042                             &outptr, &outbytesleft);
11043         if (res == 0)
11044           return 1;
11045       }
11046   }
11047   /* Test against Solaris 10 bug: Failures are not distinguishable from
11048      successful returns.  */
11049   {
11050     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11051     if (cd_ascii_to_88591 != (iconv_t)(-1))
11052       {
11053         static const char input[] = "\263";
11054         char buf[10];
11055         const char *inptr = input;
11056         size_t inbytesleft = strlen (input);
11057         char *outptr = buf;
11058         size_t outbytesleft = sizeof (buf);
11059         size_t res = iconv (cd_ascii_to_88591,
11060                             (char **) &inptr, &inbytesleft,
11061                             &outptr, &outbytesleft);
11062         if (res == 0)
11063           return 1;
11064       }
11065   }
11066 #if 0 /* This bug could be worked around by the caller.  */
11067   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
11068   {
11069     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11070     if (cd_88591_to_utf8 != (iconv_t)(-1))
11071       {
11072         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11073         char buf[50];
11074         const char *inptr = input;
11075         size_t inbytesleft = strlen (input);
11076         char *outptr = buf;
11077         size_t outbytesleft = sizeof (buf);
11078         size_t res = iconv (cd_88591_to_utf8,
11079                             (char **) &inptr, &inbytesleft,
11080                             &outptr, &outbytesleft);
11081         if ((int)res > 0)
11082           return 1;
11083       }
11084   }
11085 #endif
11086   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11087      provided.  */
11088   if (/* Try standardized names.  */
11089       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
11090       /* Try IRIX, OSF/1 names.  */
11091       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
11092       /* Try AIX names.  */
11093       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
11094       /* Try HP-UX names.  */
11095       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
11096     return 1;
11097   return 0;
11098 }
11099 _ACEOF
11100 if ac_fn_c_try_run "$LINENO"; then :
11101   am_cv_func_iconv_works=yes
11102 else
11103   am_cv_func_iconv_works=no
11104 fi
11105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11106   conftest.$ac_objext conftest.beam conftest.$ac_ext
11107 fi
11108
11109       LIBS="$am_save_LIBS"
11110
11111 fi
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11113 $as_echo "$am_cv_func_iconv_works" >&6; }
11114     case "$am_cv_func_iconv_works" in
11115       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11116       *)   am_func_iconv=yes ;;
11117     esac
11118   else
11119     am_func_iconv=no am_cv_lib_iconv=no
11120   fi
11121   if test "$am_func_iconv" = yes; then
11122
11123 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11124
11125   fi
11126   if test "$am_cv_lib_iconv" = yes; then
11127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11128 $as_echo_n "checking how to link with libiconv... " >&6; }
11129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11130 $as_echo "$LIBICONV" >&6; }
11131   else
11132             CPPFLAGS="$am_save_CPPFLAGS"
11133     LIBICONV=
11134     LTLIBICONV=
11135   fi
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147     use_additional=yes
11148
11149   acl_save_prefix="$prefix"
11150   prefix="$acl_final_prefix"
11151   acl_save_exec_prefix="$exec_prefix"
11152   exec_prefix="$acl_final_exec_prefix"
11153
11154     eval additional_includedir=\"$includedir\"
11155     eval additional_libdir=\"$libdir\"
11156
11157   exec_prefix="$acl_save_exec_prefix"
11158   prefix="$acl_save_prefix"
11159
11160
11161 # Check whether --with-libintl-prefix was given.
11162 if test "${with_libintl_prefix+set}" = set; then :
11163   withval=$with_libintl_prefix;
11164     if test "X$withval" = "Xno"; then
11165       use_additional=no
11166     else
11167       if test "X$withval" = "X"; then
11168
11169   acl_save_prefix="$prefix"
11170   prefix="$acl_final_prefix"
11171   acl_save_exec_prefix="$exec_prefix"
11172   exec_prefix="$acl_final_exec_prefix"
11173
11174           eval additional_includedir=\"$includedir\"
11175           eval additional_libdir=\"$libdir\"
11176
11177   exec_prefix="$acl_save_exec_prefix"
11178   prefix="$acl_save_prefix"
11179
11180       else
11181         additional_includedir="$withval/include"
11182         additional_libdir="$withval/$acl_libdirstem"
11183         if test "$acl_libdirstem2" != "$acl_libdirstem" \
11184            && ! test -d "$withval/$acl_libdirstem"; then
11185           additional_libdir="$withval/$acl_libdirstem2"
11186         fi
11187       fi
11188     fi
11189
11190 fi
11191
11192       LIBINTL=
11193   LTLIBINTL=
11194   INCINTL=
11195   LIBINTL_PREFIX=
11196       HAVE_LIBINTL=
11197   rpathdirs=
11198   ltrpathdirs=
11199   names_already_handled=
11200   names_next_round='intl '
11201   while test -n "$names_next_round"; do
11202     names_this_round="$names_next_round"
11203     names_next_round=
11204     for name in $names_this_round; do
11205       already_handled=
11206       for n in $names_already_handled; do
11207         if test "$n" = "$name"; then
11208           already_handled=yes
11209           break
11210         fi
11211       done
11212       if test -z "$already_handled"; then
11213         names_already_handled="$names_already_handled $name"
11214                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11215         eval value=\"\$HAVE_LIB$uppername\"
11216         if test -n "$value"; then
11217           if test "$value" = yes; then
11218             eval value=\"\$LIB$uppername\"
11219             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11220             eval value=\"\$LTLIB$uppername\"
11221             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11222           else
11223                                     :
11224           fi
11225         else
11226                               found_dir=
11227           found_la=
11228           found_so=
11229           found_a=
11230           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11231           if test -n "$acl_shlibext"; then
11232             shrext=".$acl_shlibext"             # typically: shrext=.so
11233           else
11234             shrext=
11235           fi
11236           if test $use_additional = yes; then
11237             dir="$additional_libdir"
11238                                     if test -n "$acl_shlibext"; then
11239               if test -f "$dir/$libname$shrext"; then
11240                 found_dir="$dir"
11241                 found_so="$dir/$libname$shrext"
11242               else
11243                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11244                   ver=`(cd "$dir" && \
11245                         for f in "$libname$shrext".*; do echo "$f"; done \
11246                         | sed -e "s,^$libname$shrext\\\\.,," \
11247                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11248                         | sed 1q ) 2>/dev/null`
11249                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11250                     found_dir="$dir"
11251                     found_so="$dir/$libname$shrext.$ver"
11252                   fi
11253                 else
11254                   eval library_names=\"$acl_library_names_spec\"
11255                   for f in $library_names; do
11256                     if test -f "$dir/$f"; then
11257                       found_dir="$dir"
11258                       found_so="$dir/$f"
11259                       break
11260                     fi
11261                   done
11262                 fi
11263               fi
11264             fi
11265                         if test "X$found_dir" = "X"; then
11266               if test -f "$dir/$libname.$acl_libext"; then
11267                 found_dir="$dir"
11268                 found_a="$dir/$libname.$acl_libext"
11269               fi
11270             fi
11271             if test "X$found_dir" != "X"; then
11272               if test -f "$dir/$libname.la"; then
11273                 found_la="$dir/$libname.la"
11274               fi
11275             fi
11276           fi
11277           if test "X$found_dir" = "X"; then
11278             for x in $LDFLAGS $LTLIBINTL; do
11279
11280   acl_save_prefix="$prefix"
11281   prefix="$acl_final_prefix"
11282   acl_save_exec_prefix="$exec_prefix"
11283   exec_prefix="$acl_final_exec_prefix"
11284   eval x=\"$x\"
11285   exec_prefix="$acl_save_exec_prefix"
11286   prefix="$acl_save_prefix"
11287
11288               case "$x" in
11289                 -L*)
11290                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11291                                     if test -n "$acl_shlibext"; then
11292                     if test -f "$dir/$libname$shrext"; then
11293                       found_dir="$dir"
11294                       found_so="$dir/$libname$shrext"
11295                     else
11296                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11297                         ver=`(cd "$dir" && \
11298                               for f in "$libname$shrext".*; do echo "$f"; done \
11299                               | sed -e "s,^$libname$shrext\\\\.,," \
11300                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11301                               | sed 1q ) 2>/dev/null`
11302                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11303                           found_dir="$dir"
11304                           found_so="$dir/$libname$shrext.$ver"
11305                         fi
11306                       else
11307                         eval library_names=\"$acl_library_names_spec\"
11308                         for f in $library_names; do
11309                           if test -f "$dir/$f"; then
11310                             found_dir="$dir"
11311                             found_so="$dir/$f"
11312                             break
11313                           fi
11314                         done
11315                       fi
11316                     fi
11317                   fi
11318                                     if test "X$found_dir" = "X"; then
11319                     if test -f "$dir/$libname.$acl_libext"; then
11320                       found_dir="$dir"
11321                       found_a="$dir/$libname.$acl_libext"
11322                     fi
11323                   fi
11324                   if test "X$found_dir" != "X"; then
11325                     if test -f "$dir/$libname.la"; then
11326                       found_la="$dir/$libname.la"
11327                     fi
11328                   fi
11329                   ;;
11330               esac
11331               if test "X$found_dir" != "X"; then
11332                 break
11333               fi
11334             done
11335           fi
11336           if test "X$found_dir" != "X"; then
11337                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11338             if test "X$found_so" != "X"; then
11339                                                         if test "$enable_rpath" = no \
11340                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11341                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11342                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11343               else
11344                                                                                 haveit=
11345                 for x in $ltrpathdirs; do
11346                   if test "X$x" = "X$found_dir"; then
11347                     haveit=yes
11348                     break
11349                   fi
11350                 done
11351                 if test -z "$haveit"; then
11352                   ltrpathdirs="$ltrpathdirs $found_dir"
11353                 fi
11354                                 if test "$acl_hardcode_direct" = yes; then
11355                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11356                 else
11357                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11358                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11359                                                             haveit=
11360                     for x in $rpathdirs; do
11361                       if test "X$x" = "X$found_dir"; then
11362                         haveit=yes
11363                         break
11364                       fi
11365                     done
11366                     if test -z "$haveit"; then
11367                       rpathdirs="$rpathdirs $found_dir"
11368                     fi
11369                   else
11370                                                                                 haveit=
11371                     for x in $LDFLAGS $LIBINTL; do
11372
11373   acl_save_prefix="$prefix"
11374   prefix="$acl_final_prefix"
11375   acl_save_exec_prefix="$exec_prefix"
11376   exec_prefix="$acl_final_exec_prefix"
11377   eval x=\"$x\"
11378   exec_prefix="$acl_save_exec_prefix"
11379   prefix="$acl_save_prefix"
11380
11381                       if test "X$x" = "X-L$found_dir"; then
11382                         haveit=yes
11383                         break
11384                       fi
11385                     done
11386                     if test -z "$haveit"; then
11387                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11388                     fi
11389                     if test "$acl_hardcode_minus_L" != no; then
11390                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11391                     else
11392                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11393                     fi
11394                   fi
11395                 fi
11396               fi
11397             else
11398               if test "X$found_a" != "X"; then
11399                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11400               else
11401                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11402               fi
11403             fi
11404                         additional_includedir=
11405             case "$found_dir" in
11406               */$acl_libdirstem | */$acl_libdirstem/)
11407                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11408                 if test "$name" = 'intl'; then
11409                   LIBINTL_PREFIX="$basedir"
11410                 fi
11411                 additional_includedir="$basedir/include"
11412                 ;;
11413               */$acl_libdirstem2 | */$acl_libdirstem2/)
11414                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11415                 if test "$name" = 'intl'; then
11416                   LIBINTL_PREFIX="$basedir"
11417                 fi
11418                 additional_includedir="$basedir/include"
11419                 ;;
11420             esac
11421             if test "X$additional_includedir" != "X"; then
11422                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11423                 haveit=
11424                 if test "X$additional_includedir" = "X/usr/local/include"; then
11425                   if test -n "$GCC"; then
11426                     case $host_os in
11427                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11428                     esac
11429                   fi
11430                 fi
11431                 if test -z "$haveit"; then
11432                   for x in $CPPFLAGS $INCINTL; do
11433
11434   acl_save_prefix="$prefix"
11435   prefix="$acl_final_prefix"
11436   acl_save_exec_prefix="$exec_prefix"
11437   exec_prefix="$acl_final_exec_prefix"
11438   eval x=\"$x\"
11439   exec_prefix="$acl_save_exec_prefix"
11440   prefix="$acl_save_prefix"
11441
11442                     if test "X$x" = "X-I$additional_includedir"; then
11443                       haveit=yes
11444                       break
11445                     fi
11446                   done
11447                   if test -z "$haveit"; then
11448                     if test -d "$additional_includedir"; then
11449                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11450                     fi
11451                   fi
11452                 fi
11453               fi
11454             fi
11455                         if test -n "$found_la"; then
11456                                                         save_libdir="$libdir"
11457               case "$found_la" in
11458                 */* | *\\*) . "$found_la" ;;
11459                 *) . "./$found_la" ;;
11460               esac
11461               libdir="$save_libdir"
11462                             for dep in $dependency_libs; do
11463                 case "$dep" in
11464                   -L*)
11465                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11466                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11467                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11468                       haveit=
11469                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11470                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11471                         if test -n "$GCC"; then
11472                           case $host_os in
11473                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11474                           esac
11475                         fi
11476                       fi
11477                       if test -z "$haveit"; then
11478                         haveit=
11479                         for x in $LDFLAGS $LIBINTL; do
11480
11481   acl_save_prefix="$prefix"
11482   prefix="$acl_final_prefix"
11483   acl_save_exec_prefix="$exec_prefix"
11484   exec_prefix="$acl_final_exec_prefix"
11485   eval x=\"$x\"
11486   exec_prefix="$acl_save_exec_prefix"
11487   prefix="$acl_save_prefix"
11488
11489                           if test "X$x" = "X-L$additional_libdir"; then
11490                             haveit=yes
11491                             break
11492                           fi
11493                         done
11494                         if test -z "$haveit"; then
11495                           if test -d "$additional_libdir"; then
11496                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11497                           fi
11498                         fi
11499                         haveit=
11500                         for x in $LDFLAGS $LTLIBINTL; do
11501
11502   acl_save_prefix="$prefix"
11503   prefix="$acl_final_prefix"
11504   acl_save_exec_prefix="$exec_prefix"
11505   exec_prefix="$acl_final_exec_prefix"
11506   eval x=\"$x\"
11507   exec_prefix="$acl_save_exec_prefix"
11508   prefix="$acl_save_prefix"
11509
11510                           if test "X$x" = "X-L$additional_libdir"; then
11511                             haveit=yes
11512                             break
11513                           fi
11514                         done
11515                         if test -z "$haveit"; then
11516                           if test -d "$additional_libdir"; then
11517                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11518                           fi
11519                         fi
11520                       fi
11521                     fi
11522                     ;;
11523                   -R*)
11524                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11525                     if test "$enable_rpath" != no; then
11526                                                                   haveit=
11527                       for x in $rpathdirs; do
11528                         if test "X$x" = "X$dir"; then
11529                           haveit=yes
11530                           break
11531                         fi
11532                       done
11533                       if test -z "$haveit"; then
11534                         rpathdirs="$rpathdirs $dir"
11535                       fi
11536                                                                   haveit=
11537                       for x in $ltrpathdirs; do
11538                         if test "X$x" = "X$dir"; then
11539                           haveit=yes
11540                           break
11541                         fi
11542                       done
11543                       if test -z "$haveit"; then
11544                         ltrpathdirs="$ltrpathdirs $dir"
11545                       fi
11546                     fi
11547                     ;;
11548                   -l*)
11549                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11550                     ;;
11551                   *.la)
11552                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11553                     ;;
11554                   *)
11555                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11556                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11557                     ;;
11558                 esac
11559               done
11560             fi
11561           else
11562                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11563             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11564           fi
11565         fi
11566       fi
11567     done
11568   done
11569   if test "X$rpathdirs" != "X"; then
11570     if test -n "$acl_hardcode_libdir_separator"; then
11571                         alldirs=
11572       for found_dir in $rpathdirs; do
11573         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11574       done
11575             acl_save_libdir="$libdir"
11576       libdir="$alldirs"
11577       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11578       libdir="$acl_save_libdir"
11579       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11580     else
11581             for found_dir in $rpathdirs; do
11582         acl_save_libdir="$libdir"
11583         libdir="$found_dir"
11584         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11585         libdir="$acl_save_libdir"
11586         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11587       done
11588     fi
11589   fi
11590   if test "X$ltrpathdirs" != "X"; then
11591             for found_dir in $ltrpathdirs; do
11592       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11593     done
11594   fi
11595
11596
11597
11598
11599
11600
11601           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11602 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11603 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11604   $as_echo_n "(cached) " >&6
11605 else
11606   gt_save_CPPFLAGS="$CPPFLAGS"
11607             CPPFLAGS="$CPPFLAGS $INCINTL"
11608             gt_save_LIBS="$LIBS"
11609             LIBS="$LIBS $LIBINTL"
11610                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h.  */
11612 #include <libintl.h>
11613 $gt_revision_test_code
11614 extern int _nl_msg_cat_cntr;
11615 extern
11616 #ifdef __cplusplus
11617 "C"
11618 #endif
11619 const char *_nl_expand_alias (const char *);
11620 int
11621 main ()
11622 {
11623 bindtextdomain ("", "");
11624 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11625   ;
11626   return 0;
11627 }
11628 _ACEOF
11629 if ac_fn_c_try_link "$LINENO"; then :
11630   eval "$gt_func_gnugettext_libintl=yes"
11631 else
11632   eval "$gt_func_gnugettext_libintl=no"
11633 fi
11634 rm -f core conftest.err conftest.$ac_objext \
11635     conftest$ac_exeext conftest.$ac_ext
11636                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11637               LIBS="$LIBS $LIBICONV"
11638               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h.  */
11640 #include <libintl.h>
11641 $gt_revision_test_code
11642 extern int _nl_msg_cat_cntr;
11643 extern
11644 #ifdef __cplusplus
11645 "C"
11646 #endif
11647 const char *_nl_expand_alias (const char *);
11648 int
11649 main ()
11650 {
11651 bindtextdomain ("", "");
11652 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11653   ;
11654   return 0;
11655 }
11656 _ACEOF
11657 if ac_fn_c_try_link "$LINENO"; then :
11658   LIBINTL="$LIBINTL $LIBICONV"
11659                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11660                 eval "$gt_func_gnugettext_libintl=yes"
11661
11662 fi
11663 rm -f core conftest.err conftest.$ac_objext \
11664     conftest$ac_exeext conftest.$ac_ext
11665             fi
11666             CPPFLAGS="$gt_save_CPPFLAGS"
11667             LIBS="$gt_save_LIBS"
11668 fi
11669 eval ac_res=\$$gt_func_gnugettext_libintl
11670                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11671 $as_echo "$ac_res" >&6; }
11672         fi
11673
11674                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11675            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11676                 && test "$PACKAGE" != gettext-runtime \
11677                 && test "$PACKAGE" != gettext-tools; }; then
11678           gt_use_preinstalled_gnugettext=yes
11679         else
11680                     LIBINTL=
11681           LTLIBINTL=
11682           INCINTL=
11683         fi
11684
11685
11686
11687     if test -n "$INTL_MACOSX_LIBS"; then
11688       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11689          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11690                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11691         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11692       fi
11693     fi
11694
11695     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11696        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11697
11698 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11699
11700     else
11701       USE_NLS=no
11702     fi
11703   fi
11704
11705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11706 $as_echo_n "checking whether to use NLS... " >&6; }
11707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11708 $as_echo "$USE_NLS" >&6; }
11709   if test "$USE_NLS" = "yes"; then
11710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11711 $as_echo_n "checking where the gettext function comes from... " >&6; }
11712     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11713       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11714         gt_source="external libintl"
11715       else
11716         gt_source="libc"
11717       fi
11718     else
11719       gt_source="included intl directory"
11720     fi
11721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11722 $as_echo "$gt_source" >&6; }
11723   fi
11724
11725   if test "$USE_NLS" = "yes"; then
11726
11727     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11728       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11729         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11730 $as_echo_n "checking how to link with libintl... " >&6; }
11731         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11732 $as_echo "$LIBINTL" >&6; }
11733
11734   for element in $INCINTL; do
11735     haveit=
11736     for x in $CPPFLAGS; do
11737
11738   acl_save_prefix="$prefix"
11739   prefix="$acl_final_prefix"
11740   acl_save_exec_prefix="$exec_prefix"
11741   exec_prefix="$acl_final_exec_prefix"
11742   eval x=\"$x\"
11743   exec_prefix="$acl_save_exec_prefix"
11744   prefix="$acl_save_prefix"
11745
11746       if test "X$x" = "X$element"; then
11747         haveit=yes
11748         break
11749       fi
11750     done
11751     if test -z "$haveit"; then
11752       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11753     fi
11754   done
11755
11756       fi
11757
11758
11759 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11760
11761
11762 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11763
11764     fi
11765
11766         POSUB=po
11767   fi
11768
11769
11770
11771     INTLLIBS="$LIBINTL"
11772
11773
11774
11775
11776
11777
11778
11779
11780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11781 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11782 if ${ac_cv_c_bigendian+:} false; then :
11783   $as_echo_n "(cached) " >&6
11784 else
11785   ac_cv_c_bigendian=unknown
11786     # See if we're dealing with a universal compiler.
11787     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h.  */
11789 #ifndef __APPLE_CC__
11790                not a universal capable compiler
11791              #endif
11792              typedef int dummy;
11793
11794 _ACEOF
11795 if ac_fn_c_try_compile "$LINENO"; then :
11796
11797         # Check for potential -arch flags.  It is not universal unless
11798         # there are at least two -arch flags with different values.
11799         ac_arch=
11800         ac_prev=
11801         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11802          if test -n "$ac_prev"; then
11803            case $ac_word in
11804              i?86 | x86_64 | ppc | ppc64)
11805                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11806                  ac_arch=$ac_word
11807                else
11808                  ac_cv_c_bigendian=universal
11809                  break
11810                fi
11811                ;;
11812            esac
11813            ac_prev=
11814          elif test "x$ac_word" = "x-arch"; then
11815            ac_prev=arch
11816          fi
11817        done
11818 fi
11819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11820     if test $ac_cv_c_bigendian = unknown; then
11821       # See if sys/param.h defines the BYTE_ORDER macro.
11822       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h.  */
11824 #include <sys/types.h>
11825              #include <sys/param.h>
11826
11827 int
11828 main ()
11829 {
11830 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11831                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11832                      && LITTLE_ENDIAN)
11833               bogus endian macros
11834              #endif
11835
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 if ac_fn_c_try_compile "$LINENO"; then :
11841   # It does; now see whether it defined to BIG_ENDIAN or not.
11842          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h.  */
11844 #include <sys/types.h>
11845                 #include <sys/param.h>
11846
11847 int
11848 main ()
11849 {
11850 #if BYTE_ORDER != BIG_ENDIAN
11851                  not big endian
11852                 #endif
11853
11854   ;
11855   return 0;
11856 }
11857 _ACEOF
11858 if ac_fn_c_try_compile "$LINENO"; then :
11859   ac_cv_c_bigendian=yes
11860 else
11861   ac_cv_c_bigendian=no
11862 fi
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 fi
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866     fi
11867     if test $ac_cv_c_bigendian = unknown; then
11868       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11869       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h.  */
11871 #include <limits.h>
11872
11873 int
11874 main ()
11875 {
11876 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11877               bogus endian macros
11878              #endif
11879
11880   ;
11881   return 0;
11882 }
11883 _ACEOF
11884 if ac_fn_c_try_compile "$LINENO"; then :
11885   # It does; now see whether it defined to _BIG_ENDIAN or not.
11886          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h.  */
11888 #include <limits.h>
11889
11890 int
11891 main ()
11892 {
11893 #ifndef _BIG_ENDIAN
11894                  not big endian
11895                 #endif
11896
11897   ;
11898   return 0;
11899 }
11900 _ACEOF
11901 if ac_fn_c_try_compile "$LINENO"; then :
11902   ac_cv_c_bigendian=yes
11903 else
11904   ac_cv_c_bigendian=no
11905 fi
11906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11907 fi
11908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11909     fi
11910     if test $ac_cv_c_bigendian = unknown; then
11911       # Compile a test program.
11912       if test "$cross_compiling" = yes; then :
11913   # Try to guess by grepping values from an object file.
11914          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h.  */
11916 short int ascii_mm[] =
11917                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11918                 short int ascii_ii[] =
11919                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11920                 int use_ascii (int i) {
11921                   return ascii_mm[i] + ascii_ii[i];
11922                 }
11923                 short int ebcdic_ii[] =
11924                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11925                 short int ebcdic_mm[] =
11926                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11927                 int use_ebcdic (int i) {
11928                   return ebcdic_mm[i] + ebcdic_ii[i];
11929                 }
11930                 extern int foo;
11931
11932 int
11933 main ()
11934 {
11935 return use_ascii (foo) == use_ebcdic (foo);
11936   ;
11937   return 0;
11938 }
11939 _ACEOF
11940 if ac_fn_c_try_compile "$LINENO"; then :
11941   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11942               ac_cv_c_bigendian=yes
11943             fi
11944             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11945               if test "$ac_cv_c_bigendian" = unknown; then
11946                 ac_cv_c_bigendian=no
11947               else
11948                 # finding both strings is unlikely to happen, but who knows?
11949                 ac_cv_c_bigendian=unknown
11950               fi
11951             fi
11952 fi
11953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11954 else
11955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956 /* end confdefs.h.  */
11957 $ac_includes_default
11958 int
11959 main ()
11960 {
11961
11962              /* Are we little or big endian?  From Harbison&Steele.  */
11963              union
11964              {
11965                long int l;
11966                char c[sizeof (long int)];
11967              } u;
11968              u.l = 1;
11969              return u.c[sizeof (long int) - 1] == 1;
11970
11971   ;
11972   return 0;
11973 }
11974 _ACEOF
11975 if ac_fn_c_try_run "$LINENO"; then :
11976   ac_cv_c_bigendian=no
11977 else
11978   ac_cv_c_bigendian=yes
11979 fi
11980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11981   conftest.$ac_objext conftest.beam conftest.$ac_ext
11982 fi
11983
11984     fi
11985 fi
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11987 $as_echo "$ac_cv_c_bigendian" >&6; }
11988  case $ac_cv_c_bigendian in #(
11989    yes)
11990      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11991 ;; #(
11992    no)
11993       ;; #(
11994    universal)
11995
11996 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11997
11998      ;; #(
11999    *)
12000      as_fn_error $? "unknown endianness
12001  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12002  esac
12003
12004
12005 for ac_func in fork getrusage getpwuid_r nanosleep daemon getpid clock_gettime iconv localtime vasprintf
12006 do :
12007   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12010   cat >>confdefs.h <<_ACEOF
12011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12012 _ACEOF
12013
12014 fi
12015 done
12016
12017  if test "$ac_cv_func_fork" != "no"; then
12018   HAVE_FORK_TRUE=
12019   HAVE_FORK_FALSE='#'
12020 else
12021   HAVE_FORK_TRUE='#'
12022   HAVE_FORK_FALSE=
12023 fi
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039     use_additional=yes
12040
12041   acl_save_prefix="$prefix"
12042   prefix="$acl_final_prefix"
12043   acl_save_exec_prefix="$exec_prefix"
12044   exec_prefix="$acl_final_exec_prefix"
12045
12046     eval additional_includedir=\"$includedir\"
12047     eval additional_libdir=\"$libdir\"
12048
12049   exec_prefix="$acl_save_exec_prefix"
12050   prefix="$acl_save_prefix"
12051
12052
12053 # Check whether --with-librt-prefix was given.
12054 if test "${with_librt_prefix+set}" = set; then :
12055   withval=$with_librt_prefix;
12056     if test "X$withval" = "Xno"; then
12057       use_additional=no
12058     else
12059       if test "X$withval" = "X"; then
12060
12061   acl_save_prefix="$prefix"
12062   prefix="$acl_final_prefix"
12063   acl_save_exec_prefix="$exec_prefix"
12064   exec_prefix="$acl_final_exec_prefix"
12065
12066           eval additional_includedir=\"$includedir\"
12067           eval additional_libdir=\"$libdir\"
12068
12069   exec_prefix="$acl_save_exec_prefix"
12070   prefix="$acl_save_prefix"
12071
12072       else
12073         additional_includedir="$withval/include"
12074         additional_libdir="$withval/$acl_libdirstem"
12075         if test "$acl_libdirstem2" != "$acl_libdirstem" \
12076            && ! test -d "$withval/$acl_libdirstem"; then
12077           additional_libdir="$withval/$acl_libdirstem2"
12078         fi
12079       fi
12080     fi
12081
12082 fi
12083
12084       LIBRT=
12085   LTLIBRT=
12086   INCRT=
12087   LIBRT_PREFIX=
12088       HAVE_LIBRT=
12089   rpathdirs=
12090   ltrpathdirs=
12091   names_already_handled=
12092   names_next_round='rt '
12093   while test -n "$names_next_round"; do
12094     names_this_round="$names_next_round"
12095     names_next_round=
12096     for name in $names_this_round; do
12097       already_handled=
12098       for n in $names_already_handled; do
12099         if test "$n" = "$name"; then
12100           already_handled=yes
12101           break
12102         fi
12103       done
12104       if test -z "$already_handled"; then
12105         names_already_handled="$names_already_handled $name"
12106                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12107         eval value=\"\$HAVE_LIB$uppername\"
12108         if test -n "$value"; then
12109           if test "$value" = yes; then
12110             eval value=\"\$LIB$uppername\"
12111             test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
12112             eval value=\"\$LTLIB$uppername\"
12113             test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
12114           else
12115                                     :
12116           fi
12117         else
12118                               found_dir=
12119           found_la=
12120           found_so=
12121           found_a=
12122           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12123           if test -n "$acl_shlibext"; then
12124             shrext=".$acl_shlibext"             # typically: shrext=.so
12125           else
12126             shrext=
12127           fi
12128           if test $use_additional = yes; then
12129             dir="$additional_libdir"
12130                                     if test -n "$acl_shlibext"; then
12131               if test -f "$dir/$libname$shrext"; then
12132                 found_dir="$dir"
12133                 found_so="$dir/$libname$shrext"
12134               else
12135                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12136                   ver=`(cd "$dir" && \
12137                         for f in "$libname$shrext".*; do echo "$f"; done \
12138                         | sed -e "s,^$libname$shrext\\\\.,," \
12139                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12140                         | sed 1q ) 2>/dev/null`
12141                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12142                     found_dir="$dir"
12143                     found_so="$dir/$libname$shrext.$ver"
12144                   fi
12145                 else
12146                   eval library_names=\"$acl_library_names_spec\"
12147                   for f in $library_names; do
12148                     if test -f "$dir/$f"; then
12149                       found_dir="$dir"
12150                       found_so="$dir/$f"
12151                       break
12152                     fi
12153                   done
12154                 fi
12155               fi
12156             fi
12157                         if test "X$found_dir" = "X"; then
12158               if test -f "$dir/$libname.$acl_libext"; then
12159                 found_dir="$dir"
12160                 found_a="$dir/$libname.$acl_libext"
12161               fi
12162             fi
12163             if test "X$found_dir" != "X"; then
12164               if test -f "$dir/$libname.la"; then
12165                 found_la="$dir/$libname.la"
12166               fi
12167             fi
12168           fi
12169           if test "X$found_dir" = "X"; then
12170             for x in $LDFLAGS $LTLIBRT; do
12171
12172   acl_save_prefix="$prefix"
12173   prefix="$acl_final_prefix"
12174   acl_save_exec_prefix="$exec_prefix"
12175   exec_prefix="$acl_final_exec_prefix"
12176   eval x=\"$x\"
12177   exec_prefix="$acl_save_exec_prefix"
12178   prefix="$acl_save_prefix"
12179
12180               case "$x" in
12181                 -L*)
12182                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12183                                     if test -n "$acl_shlibext"; then
12184                     if test -f "$dir/$libname$shrext"; then
12185                       found_dir="$dir"
12186                       found_so="$dir/$libname$shrext"
12187                     else
12188                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12189                         ver=`(cd "$dir" && \
12190                               for f in "$libname$shrext".*; do echo "$f"; done \
12191                               | sed -e "s,^$libname$shrext\\\\.,," \
12192                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12193                               | sed 1q ) 2>/dev/null`
12194                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12195                           found_dir="$dir"
12196                           found_so="$dir/$libname$shrext.$ver"
12197                         fi
12198                       else
12199                         eval library_names=\"$acl_library_names_spec\"
12200                         for f in $library_names; do
12201                           if test -f "$dir/$f"; then
12202                             found_dir="$dir"
12203                             found_so="$dir/$f"
12204                             break
12205                           fi
12206                         done
12207                       fi
12208                     fi
12209                   fi
12210                                     if test "X$found_dir" = "X"; then
12211                     if test -f "$dir/$libname.$acl_libext"; then
12212                       found_dir="$dir"
12213                       found_a="$dir/$libname.$acl_libext"
12214                     fi
12215                   fi
12216                   if test "X$found_dir" != "X"; then
12217                     if test -f "$dir/$libname.la"; then
12218                       found_la="$dir/$libname.la"
12219                     fi
12220                   fi
12221                   ;;
12222               esac
12223               if test "X$found_dir" != "X"; then
12224                 break
12225               fi
12226             done
12227           fi
12228           if test "X$found_dir" != "X"; then
12229                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
12230             if test "X$found_so" != "X"; then
12231                                                         if test "$enable_rpath" = no \
12232                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12233                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12234                                 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
12235               else
12236                                                                                 haveit=
12237                 for x in $ltrpathdirs; do
12238                   if test "X$x" = "X$found_dir"; then
12239                     haveit=yes
12240                     break
12241                   fi
12242                 done
12243                 if test -z "$haveit"; then
12244                   ltrpathdirs="$ltrpathdirs $found_dir"
12245                 fi
12246                                 if test "$acl_hardcode_direct" = yes; then
12247                                                       LIBRT="${LIBRT}${LIBRT:+ }$found_so"
12248                 else
12249                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12250                                                             LIBRT="${LIBRT}${LIBRT:+ }$found_so"
12251                                                             haveit=
12252                     for x in $rpathdirs; do
12253                       if test "X$x" = "X$found_dir"; then
12254                         haveit=yes
12255                         break
12256                       fi
12257                     done
12258                     if test -z "$haveit"; then
12259                       rpathdirs="$rpathdirs $found_dir"
12260                     fi
12261                   else
12262                                                                                 haveit=
12263                     for x in $LDFLAGS $LIBRT; do
12264
12265   acl_save_prefix="$prefix"
12266   prefix="$acl_final_prefix"
12267   acl_save_exec_prefix="$exec_prefix"
12268   exec_prefix="$acl_final_exec_prefix"
12269   eval x=\"$x\"
12270   exec_prefix="$acl_save_exec_prefix"
12271   prefix="$acl_save_prefix"
12272
12273                       if test "X$x" = "X-L$found_dir"; then
12274                         haveit=yes
12275                         break
12276                       fi
12277                     done
12278                     if test -z "$haveit"; then
12279                       LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
12280                     fi
12281                     if test "$acl_hardcode_minus_L" != no; then
12282                                                                                         LIBRT="${LIBRT}${LIBRT:+ }$found_so"
12283                     else
12284                                                                                                                                                                                 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
12285                     fi
12286                   fi
12287                 fi
12288               fi
12289             else
12290               if test "X$found_a" != "X"; then
12291                                 LIBRT="${LIBRT}${LIBRT:+ }$found_a"
12292               else
12293                                                 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
12294               fi
12295             fi
12296                         additional_includedir=
12297             case "$found_dir" in
12298               */$acl_libdirstem | */$acl_libdirstem/)
12299                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12300                 if test "$name" = 'rt'; then
12301                   LIBRT_PREFIX="$basedir"
12302                 fi
12303                 additional_includedir="$basedir/include"
12304                 ;;
12305               */$acl_libdirstem2 | */$acl_libdirstem2/)
12306                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12307                 if test "$name" = 'rt'; then
12308                   LIBRT_PREFIX="$basedir"
12309                 fi
12310                 additional_includedir="$basedir/include"
12311                 ;;
12312             esac
12313             if test "X$additional_includedir" != "X"; then
12314                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12315                 haveit=
12316                 if test "X$additional_includedir" = "X/usr/local/include"; then
12317                   if test -n "$GCC"; then
12318                     case $host_os in
12319                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12320                     esac
12321                   fi
12322                 fi
12323                 if test -z "$haveit"; then
12324                   for x in $CPPFLAGS $INCRT; do
12325
12326   acl_save_prefix="$prefix"
12327   prefix="$acl_final_prefix"
12328   acl_save_exec_prefix="$exec_prefix"
12329   exec_prefix="$acl_final_exec_prefix"
12330   eval x=\"$x\"
12331   exec_prefix="$acl_save_exec_prefix"
12332   prefix="$acl_save_prefix"
12333
12334                     if test "X$x" = "X-I$additional_includedir"; then
12335                       haveit=yes
12336                       break
12337                     fi
12338                   done
12339                   if test -z "$haveit"; then
12340                     if test -d "$additional_includedir"; then
12341                                             INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
12342                     fi
12343                   fi
12344                 fi
12345               fi
12346             fi
12347                         if test -n "$found_la"; then
12348                                                         save_libdir="$libdir"
12349               case "$found_la" in
12350                 */* | *\\*) . "$found_la" ;;
12351                 *) . "./$found_la" ;;
12352               esac
12353               libdir="$save_libdir"
12354                             for dep in $dependency_libs; do
12355                 case "$dep" in
12356                   -L*)
12357                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12358                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12359                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12360                       haveit=
12361                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12362                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12363                         if test -n "$GCC"; then
12364                           case $host_os in
12365                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12366                           esac
12367                         fi
12368                       fi
12369                       if test -z "$haveit"; then
12370                         haveit=
12371                         for x in $LDFLAGS $LIBRT; do
12372
12373   acl_save_prefix="$prefix"
12374   prefix="$acl_final_prefix"
12375   acl_save_exec_prefix="$exec_prefix"
12376   exec_prefix="$acl_final_exec_prefix"
12377   eval x=\"$x\"
12378   exec_prefix="$acl_save_exec_prefix"
12379   prefix="$acl_save_prefix"
12380
12381                           if test "X$x" = "X-L$additional_libdir"; then
12382                             haveit=yes
12383                             break
12384                           fi
12385                         done
12386                         if test -z "$haveit"; then
12387                           if test -d "$additional_libdir"; then
12388                                                         LIBRT="${LIBRT}${LIBRT:+ }-L$additional_libdir"
12389                           fi
12390                         fi
12391                         haveit=
12392                         for x in $LDFLAGS $LTLIBRT; do
12393
12394   acl_save_prefix="$prefix"
12395   prefix="$acl_final_prefix"
12396   acl_save_exec_prefix="$exec_prefix"
12397   exec_prefix="$acl_final_exec_prefix"
12398   eval x=\"$x\"
12399   exec_prefix="$acl_save_exec_prefix"
12400   prefix="$acl_save_prefix"
12401
12402                           if test "X$x" = "X-L$additional_libdir"; then
12403                             haveit=yes
12404                             break
12405                           fi
12406                         done
12407                         if test -z "$haveit"; then
12408                           if test -d "$additional_libdir"; then
12409                                                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$additional_libdir"
12410                           fi
12411                         fi
12412                       fi
12413                     fi
12414                     ;;
12415                   -R*)
12416                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12417                     if test "$enable_rpath" != no; then
12418                                                                   haveit=
12419                       for x in $rpathdirs; do
12420                         if test "X$x" = "X$dir"; then
12421                           haveit=yes
12422                           break
12423                         fi
12424                       done
12425                       if test -z "$haveit"; then
12426                         rpathdirs="$rpathdirs $dir"
12427                       fi
12428                                                                   haveit=
12429                       for x in $ltrpathdirs; do
12430                         if test "X$x" = "X$dir"; then
12431                           haveit=yes
12432                           break
12433                         fi
12434                       done
12435                       if test -z "$haveit"; then
12436                         ltrpathdirs="$ltrpathdirs $dir"
12437                       fi
12438                     fi
12439                     ;;
12440                   -l*)
12441                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12442                     ;;
12443                   *.la)
12444                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12445                     ;;
12446                   *)
12447                                         LIBRT="${LIBRT}${LIBRT:+ }$dep"
12448                     LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
12449                     ;;
12450                 esac
12451               done
12452             fi
12453           else
12454                                                             LIBRT="${LIBRT}${LIBRT:+ }-l$name"
12455             LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
12456           fi
12457         fi
12458       fi
12459     done
12460   done
12461   if test "X$rpathdirs" != "X"; then
12462     if test -n "$acl_hardcode_libdir_separator"; then
12463                         alldirs=
12464       for found_dir in $rpathdirs; do
12465         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12466       done
12467             acl_save_libdir="$libdir"
12468       libdir="$alldirs"
12469       eval flag=\"$acl_hardcode_libdir_flag_spec\"
12470       libdir="$acl_save_libdir"
12471       LIBRT="${LIBRT}${LIBRT:+ }$flag"
12472     else
12473             for found_dir in $rpathdirs; do
12474         acl_save_libdir="$libdir"
12475         libdir="$found_dir"
12476         eval flag=\"$acl_hardcode_libdir_flag_spec\"
12477         libdir="$acl_save_libdir"
12478         LIBRT="${LIBRT}${LIBRT:+ }$flag"
12479       done
12480     fi
12481   fi
12482   if test "X$ltrpathdirs" != "X"; then
12483             for found_dir in $ltrpathdirs; do
12484       LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
12485     done
12486   fi
12487
12488
12489
12490
12491
12492
12493
12494         ac_save_CPPFLAGS="$CPPFLAGS"
12495
12496   for element in $INCRT; do
12497     haveit=
12498     for x in $CPPFLAGS; do
12499
12500   acl_save_prefix="$prefix"
12501   prefix="$acl_final_prefix"
12502   acl_save_exec_prefix="$exec_prefix"
12503   exec_prefix="$acl_final_exec_prefix"
12504   eval x=\"$x\"
12505   exec_prefix="$acl_save_exec_prefix"
12506   prefix="$acl_save_prefix"
12507
12508       if test "X$x" = "X$element"; then
12509         haveit=yes
12510         break
12511       fi
12512     done
12513     if test -z "$haveit"; then
12514       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12515     fi
12516   done
12517
12518
12519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
12520 $as_echo_n "checking for librt... " >&6; }
12521 if ${ac_cv_librt+:} false; then :
12522   $as_echo_n "(cached) " >&6
12523 else
12524
12525     ac_save_LIBS="$LIBS"
12526                                 case " $LIBRT" in
12527       *" -l"*) LIBS="$LIBS $LIBRT" ;;
12528       *)       LIBS="$LIBRT $LIBS" ;;
12529     esac
12530     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12531 /* end confdefs.h.  */
12532 #include <time.h>
12533 #include <signal.h>
12534
12535 int
12536 main ()
12537 {
12538 timer_create (0,0,0);
12539   ;
12540   return 0;
12541 }
12542 _ACEOF
12543 if ac_fn_c_try_link "$LINENO"; then :
12544   ac_cv_librt=yes
12545 else
12546   ac_cv_librt='no'
12547 fi
12548 rm -f core conftest.err conftest.$ac_objext \
12549     conftest$ac_exeext conftest.$ac_ext
12550     LIBS="$ac_save_LIBS"
12551
12552 fi
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
12554 $as_echo "$ac_cv_librt" >&6; }
12555   if test "$ac_cv_librt" = yes; then
12556     HAVE_LIBRT=yes
12557
12558 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
12559
12560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
12561 $as_echo_n "checking how to link with librt... " >&6; }
12562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
12563 $as_echo "$LIBRT" >&6; }
12564   else
12565     HAVE_LIBRT=no
12566             CPPFLAGS="$ac_save_CPPFLAGS"
12567     LIBRT=
12568     LTLIBRT=
12569     LIBRT_PREFIX=
12570   fi
12571
12572
12573
12574
12575
12576
12577
12578
12579 if test "$have_win" != "yes";then
12580   for ac_func in pthread_mutex_lock
12581 do :
12582   ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
12583 if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then :
12584   cat >>confdefs.h <<_ACEOF
12585 #define HAVE_PTHREAD_MUTEX_LOCK 1
12586 _ACEOF
12587
12588 fi
12589 done
12590
12591   if test "$ac_cv_func_pthread_mutex_lock" != "yes";then
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605     use_additional=yes
12606
12607   acl_save_prefix="$prefix"
12608   prefix="$acl_final_prefix"
12609   acl_save_exec_prefix="$exec_prefix"
12610   exec_prefix="$acl_final_exec_prefix"
12611
12612     eval additional_includedir=\"$includedir\"
12613     eval additional_libdir=\"$libdir\"
12614
12615   exec_prefix="$acl_save_exec_prefix"
12616   prefix="$acl_save_prefix"
12617
12618
12619 # Check whether --with-libpthread-prefix was given.
12620 if test "${with_libpthread_prefix+set}" = set; then :
12621   withval=$with_libpthread_prefix;
12622     if test "X$withval" = "Xno"; then
12623       use_additional=no
12624     else
12625       if test "X$withval" = "X"; then
12626
12627   acl_save_prefix="$prefix"
12628   prefix="$acl_final_prefix"
12629   acl_save_exec_prefix="$exec_prefix"
12630   exec_prefix="$acl_final_exec_prefix"
12631
12632           eval additional_includedir=\"$includedir\"
12633           eval additional_libdir=\"$libdir\"
12634
12635   exec_prefix="$acl_save_exec_prefix"
12636   prefix="$acl_save_prefix"
12637
12638       else
12639         additional_includedir="$withval/include"
12640         additional_libdir="$withval/$acl_libdirstem"
12641         if test "$acl_libdirstem2" != "$acl_libdirstem" \
12642            && ! test -d "$withval/$acl_libdirstem"; then
12643           additional_libdir="$withval/$acl_libdirstem2"
12644         fi
12645       fi
12646     fi
12647
12648 fi
12649
12650       LIBPTHREAD=
12651   LTLIBPTHREAD=
12652   INCPTHREAD=
12653   LIBPTHREAD_PREFIX=
12654       HAVE_LIBPTHREAD=
12655   rpathdirs=
12656   ltrpathdirs=
12657   names_already_handled=
12658   names_next_round='pthread '
12659   while test -n "$names_next_round"; do
12660     names_this_round="$names_next_round"
12661     names_next_round=
12662     for name in $names_this_round; do
12663       already_handled=
12664       for n in $names_already_handled; do
12665         if test "$n" = "$name"; then
12666           already_handled=yes
12667           break
12668         fi
12669       done
12670       if test -z "$already_handled"; then
12671         names_already_handled="$names_already_handled $name"
12672                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12673         eval value=\"\$HAVE_LIB$uppername\"
12674         if test -n "$value"; then
12675           if test "$value" = yes; then
12676             eval value=\"\$LIB$uppername\"
12677             test -z "$value" || LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$value"
12678             eval value=\"\$LTLIB$uppername\"
12679             test -z "$value" || LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$value"
12680           else
12681                                     :
12682           fi
12683         else
12684                               found_dir=
12685           found_la=
12686           found_so=
12687           found_a=
12688           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12689           if test -n "$acl_shlibext"; then
12690             shrext=".$acl_shlibext"             # typically: shrext=.so
12691           else
12692             shrext=
12693           fi
12694           if test $use_additional = yes; then
12695             dir="$additional_libdir"
12696                                     if test -n "$acl_shlibext"; then
12697               if test -f "$dir/$libname$shrext"; then
12698                 found_dir="$dir"
12699                 found_so="$dir/$libname$shrext"
12700               else
12701                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12702                   ver=`(cd "$dir" && \
12703                         for f in "$libname$shrext".*; do echo "$f"; done \
12704                         | sed -e "s,^$libname$shrext\\\\.,," \
12705                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12706                         | sed 1q ) 2>/dev/null`
12707                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12708                     found_dir="$dir"
12709                     found_so="$dir/$libname$shrext.$ver"
12710                   fi
12711                 else
12712                   eval library_names=\"$acl_library_names_spec\"
12713                   for f in $library_names; do
12714                     if test -f "$dir/$f"; then
12715                       found_dir="$dir"
12716                       found_so="$dir/$f"
12717                       break
12718                     fi
12719                   done
12720                 fi
12721               fi
12722             fi
12723                         if test "X$found_dir" = "X"; then
12724               if test -f "$dir/$libname.$acl_libext"; then
12725                 found_dir="$dir"
12726                 found_a="$dir/$libname.$acl_libext"
12727               fi
12728             fi
12729             if test "X$found_dir" != "X"; then
12730               if test -f "$dir/$libname.la"; then
12731                 found_la="$dir/$libname.la"
12732               fi
12733             fi
12734           fi
12735           if test "X$found_dir" = "X"; then
12736             for x in $LDFLAGS $LTLIBPTHREAD; do
12737
12738   acl_save_prefix="$prefix"
12739   prefix="$acl_final_prefix"
12740   acl_save_exec_prefix="$exec_prefix"
12741   exec_prefix="$acl_final_exec_prefix"
12742   eval x=\"$x\"
12743   exec_prefix="$acl_save_exec_prefix"
12744   prefix="$acl_save_prefix"
12745
12746               case "$x" in
12747                 -L*)
12748                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12749                                     if test -n "$acl_shlibext"; then
12750                     if test -f "$dir/$libname$shrext"; then
12751                       found_dir="$dir"
12752                       found_so="$dir/$libname$shrext"
12753                     else
12754                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12755                         ver=`(cd "$dir" && \
12756                               for f in "$libname$shrext".*; do echo "$f"; done \
12757                               | sed -e "s,^$libname$shrext\\\\.,," \
12758                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12759                               | sed 1q ) 2>/dev/null`
12760                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12761                           found_dir="$dir"
12762                           found_so="$dir/$libname$shrext.$ver"
12763                         fi
12764                       else
12765                         eval library_names=\"$acl_library_names_spec\"
12766                         for f in $library_names; do
12767                           if test -f "$dir/$f"; then
12768                             found_dir="$dir"
12769                             found_so="$dir/$f"
12770                             break
12771                           fi
12772                         done
12773                       fi
12774                     fi
12775                   fi
12776                                     if test "X$found_dir" = "X"; then
12777                     if test -f "$dir/$libname.$acl_libext"; then
12778                       found_dir="$dir"
12779                       found_a="$dir/$libname.$acl_libext"
12780                     fi
12781                   fi
12782                   if test "X$found_dir" != "X"; then
12783                     if test -f "$dir/$libname.la"; then
12784                       found_la="$dir/$libname.la"
12785                     fi
12786                   fi
12787                   ;;
12788               esac
12789               if test "X$found_dir" != "X"; then
12790                 break
12791               fi
12792             done
12793           fi
12794           if test "X$found_dir" != "X"; then
12795                         LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$found_dir -l$name"
12796             if test "X$found_so" != "X"; then
12797                                                         if test "$enable_rpath" = no \
12798                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12799                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12800                                 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
12801               else
12802                                                                                 haveit=
12803                 for x in $ltrpathdirs; do
12804                   if test "X$x" = "X$found_dir"; then
12805                     haveit=yes
12806                     break
12807                   fi
12808                 done
12809                 if test -z "$haveit"; then
12810                   ltrpathdirs="$ltrpathdirs $found_dir"
12811                 fi
12812                                 if test "$acl_hardcode_direct" = yes; then
12813                                                       LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
12814                 else
12815                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12816                                                             LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
12817                                                             haveit=
12818                     for x in $rpathdirs; do
12819                       if test "X$x" = "X$found_dir"; then
12820                         haveit=yes
12821                         break
12822                       fi
12823                     done
12824                     if test -z "$haveit"; then
12825                       rpathdirs="$rpathdirs $found_dir"
12826                     fi
12827                   else
12828                                                                                 haveit=
12829                     for x in $LDFLAGS $LIBPTHREAD; do
12830
12831   acl_save_prefix="$prefix"
12832   prefix="$acl_final_prefix"
12833   acl_save_exec_prefix="$exec_prefix"
12834   exec_prefix="$acl_final_exec_prefix"
12835   eval x=\"$x\"
12836   exec_prefix="$acl_save_exec_prefix"
12837   prefix="$acl_save_prefix"
12838
12839                       if test "X$x" = "X-L$found_dir"; then
12840                         haveit=yes
12841                         break
12842                       fi
12843                     done
12844                     if test -z "$haveit"; then
12845                       LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir"
12846                     fi
12847                     if test "$acl_hardcode_minus_L" != no; then
12848                                                                                         LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
12849                     else
12850                                                                                                                                                                                 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
12851                     fi
12852                   fi
12853                 fi
12854               fi
12855             else
12856               if test "X$found_a" != "X"; then
12857                                 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_a"
12858               else
12859                                                 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir -l$name"
12860               fi
12861             fi
12862                         additional_includedir=
12863             case "$found_dir" in
12864               */$acl_libdirstem | */$acl_libdirstem/)
12865                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12866                 if test "$name" = 'pthread'; then
12867                   LIBPTHREAD_PREFIX="$basedir"
12868                 fi
12869                 additional_includedir="$basedir/include"
12870                 ;;
12871               */$acl_libdirstem2 | */$acl_libdirstem2/)
12872                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12873                 if test "$name" = 'pthread'; then
12874                   LIBPTHREAD_PREFIX="$basedir"
12875                 fi
12876                 additional_includedir="$basedir/include"
12877                 ;;
12878             esac
12879             if test "X$additional_includedir" != "X"; then
12880                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12881                 haveit=
12882                 if test "X$additional_includedir" = "X/usr/local/include"; then
12883                   if test -n "$GCC"; then
12884                     case $host_os in
12885                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12886                     esac
12887                   fi
12888                 fi
12889                 if test -z "$haveit"; then
12890                   for x in $CPPFLAGS $INCPTHREAD; do
12891
12892   acl_save_prefix="$prefix"
12893   prefix="$acl_final_prefix"
12894   acl_save_exec_prefix="$exec_prefix"
12895   exec_prefix="$acl_final_exec_prefix"
12896   eval x=\"$x\"
12897   exec_prefix="$acl_save_exec_prefix"
12898   prefix="$acl_save_prefix"
12899
12900                     if test "X$x" = "X-I$additional_includedir"; then
12901                       haveit=yes
12902                       break
12903                     fi
12904                   done
12905                   if test -z "$haveit"; then
12906                     if test -d "$additional_includedir"; then
12907                                             INCPTHREAD="${INCPTHREAD}${INCPTHREAD:+ }-I$additional_includedir"
12908                     fi
12909                   fi
12910                 fi
12911               fi
12912             fi
12913                         if test -n "$found_la"; then
12914                                                         save_libdir="$libdir"
12915               case "$found_la" in
12916                 */* | *\\*) . "$found_la" ;;
12917                 *) . "./$found_la" ;;
12918               esac
12919               libdir="$save_libdir"
12920                             for dep in $dependency_libs; do
12921                 case "$dep" in
12922                   -L*)
12923                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12924                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12925                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12926                       haveit=
12927                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12928                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12929                         if test -n "$GCC"; then
12930                           case $host_os in
12931                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12932                           esac
12933                         fi
12934                       fi
12935                       if test -z "$haveit"; then
12936                         haveit=
12937                         for x in $LDFLAGS $LIBPTHREAD; do
12938
12939   acl_save_prefix="$prefix"
12940   prefix="$acl_final_prefix"
12941   acl_save_exec_prefix="$exec_prefix"
12942   exec_prefix="$acl_final_exec_prefix"
12943   eval x=\"$x\"
12944   exec_prefix="$acl_save_exec_prefix"
12945   prefix="$acl_save_prefix"
12946
12947                           if test "X$x" = "X-L$additional_libdir"; then
12948                             haveit=yes
12949                             break
12950                           fi
12951                         done
12952                         if test -z "$haveit"; then
12953                           if test -d "$additional_libdir"; then
12954                                                         LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$additional_libdir"
12955                           fi
12956                         fi
12957                         haveit=
12958                         for x in $LDFLAGS $LTLIBPTHREAD; do
12959
12960   acl_save_prefix="$prefix"
12961   prefix="$acl_final_prefix"
12962   acl_save_exec_prefix="$exec_prefix"
12963   exec_prefix="$acl_final_exec_prefix"
12964   eval x=\"$x\"
12965   exec_prefix="$acl_save_exec_prefix"
12966   prefix="$acl_save_prefix"
12967
12968                           if test "X$x" = "X-L$additional_libdir"; then
12969                             haveit=yes
12970                             break
12971                           fi
12972                         done
12973                         if test -z "$haveit"; then
12974                           if test -d "$additional_libdir"; then
12975                                                         LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$additional_libdir"
12976                           fi
12977                         fi
12978                       fi
12979                     fi
12980                     ;;
12981                   -R*)
12982                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12983                     if test "$enable_rpath" != no; then
12984                                                                   haveit=
12985                       for x in $rpathdirs; do
12986                         if test "X$x" = "X$dir"; then
12987                           haveit=yes
12988                           break
12989                         fi
12990                       done
12991                       if test -z "$haveit"; then
12992                         rpathdirs="$rpathdirs $dir"
12993                       fi
12994                                                                   haveit=
12995                       for x in $ltrpathdirs; do
12996                         if test "X$x" = "X$dir"; then
12997                           haveit=yes
12998                           break
12999                         fi
13000                       done
13001                       if test -z "$haveit"; then
13002                         ltrpathdirs="$ltrpathdirs $dir"
13003                       fi
13004                     fi
13005                     ;;
13006                   -l*)
13007                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13008                     ;;
13009                   *.la)
13010                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13011                     ;;
13012                   *)
13013                                         LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$dep"
13014                     LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$dep"
13015                     ;;
13016                 esac
13017               done
13018             fi
13019           else
13020                                                             LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
13021             LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-l$name"
13022           fi
13023         fi
13024       fi
13025     done
13026   done
13027   if test "X$rpathdirs" != "X"; then
13028     if test -n "$acl_hardcode_libdir_separator"; then
13029                         alldirs=
13030       for found_dir in $rpathdirs; do
13031         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13032       done
13033             acl_save_libdir="$libdir"
13034       libdir="$alldirs"
13035       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13036       libdir="$acl_save_libdir"
13037       LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
13038     else
13039             for found_dir in $rpathdirs; do
13040         acl_save_libdir="$libdir"
13041         libdir="$found_dir"
13042         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13043         libdir="$acl_save_libdir"
13044         LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
13045       done
13046     fi
13047   fi
13048   if test "X$ltrpathdirs" != "X"; then
13049             for found_dir in $ltrpathdirs; do
13050       LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-R$found_dir"
13051     done
13052   fi
13053
13054
13055
13056
13057
13058
13059
13060         ac_save_CPPFLAGS="$CPPFLAGS"
13061
13062   for element in $INCPTHREAD; do
13063     haveit=
13064     for x in $CPPFLAGS; do
13065
13066   acl_save_prefix="$prefix"
13067   prefix="$acl_final_prefix"
13068   acl_save_exec_prefix="$exec_prefix"
13069   exec_prefix="$acl_final_exec_prefix"
13070   eval x=\"$x\"
13071   exec_prefix="$acl_save_exec_prefix"
13072   prefix="$acl_save_prefix"
13073
13074       if test "X$x" = "X$element"; then
13075         haveit=yes
13076         break
13077       fi
13078     done
13079     if test -z "$haveit"; then
13080       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13081     fi
13082   done
13083
13084
13085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpthread" >&5
13086 $as_echo_n "checking for libpthread... " >&6; }
13087 if ${ac_cv_libpthread+:} false; then :
13088   $as_echo_n "(cached) " >&6
13089 else
13090
13091     ac_save_LIBS="$LIBS"
13092                                 case " $LIBPTHREAD" in
13093       *" -l"*) LIBS="$LIBS $LIBPTHREAD" ;;
13094       *)       LIBS="$LIBPTHREAD $LIBS" ;;
13095     esac
13096     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h.  */
13098 #include <pthread.h>
13099 int
13100 main ()
13101 {
13102 pthread_mutex_lock (0);
13103   ;
13104   return 0;
13105 }
13106 _ACEOF
13107 if ac_fn_c_try_link "$LINENO"; then :
13108   ac_cv_libpthread=yes
13109 else
13110   ac_cv_libpthread='no'
13111 fi
13112 rm -f core conftest.err conftest.$ac_objext \
13113     conftest$ac_exeext conftest.$ac_ext
13114     LIBS="$ac_save_LIBS"
13115
13116 fi
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpthread" >&5
13118 $as_echo "$ac_cv_libpthread" >&6; }
13119   if test "$ac_cv_libpthread" = yes; then
13120     HAVE_LIBPTHREAD=yes
13121
13122 $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
13123
13124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpthread" >&5
13125 $as_echo_n "checking how to link with libpthread... " >&6; }
13126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPTHREAD" >&5
13127 $as_echo "$LIBPTHREAD" >&6; }
13128   else
13129     HAVE_LIBPTHREAD=no
13130             CPPFLAGS="$ac_save_CPPFLAGS"
13131     LIBPTHREAD=
13132     LTLIBPTHREAD=
13133     LIBPTHREAD_PREFIX=
13134   fi
13135
13136
13137
13138
13139
13140
13141
13142   fi
13143 fi
13144
13145 if test "$ac_cv_func_nanosleep" != "yes";then
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159     use_additional=yes
13160
13161   acl_save_prefix="$prefix"
13162   prefix="$acl_final_prefix"
13163   acl_save_exec_prefix="$exec_prefix"
13164   exec_prefix="$acl_final_exec_prefix"
13165
13166     eval additional_includedir=\"$includedir\"
13167     eval additional_libdir=\"$libdir\"
13168
13169   exec_prefix="$acl_save_exec_prefix"
13170   prefix="$acl_save_prefix"
13171
13172
13173 # Check whether --with-librt-prefix was given.
13174 if test "${with_librt_prefix+set}" = set; then :
13175   withval=$with_librt_prefix;
13176     if test "X$withval" = "Xno"; then
13177       use_additional=no
13178     else
13179       if test "X$withval" = "X"; then
13180
13181   acl_save_prefix="$prefix"
13182   prefix="$acl_final_prefix"
13183   acl_save_exec_prefix="$exec_prefix"
13184   exec_prefix="$acl_final_exec_prefix"
13185
13186           eval additional_includedir=\"$includedir\"
13187           eval additional_libdir=\"$libdir\"
13188
13189   exec_prefix="$acl_save_exec_prefix"
13190   prefix="$acl_save_prefix"
13191
13192       else
13193         additional_includedir="$withval/include"
13194         additional_libdir="$withval/$acl_libdirstem"
13195         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13196            && ! test -d "$withval/$acl_libdirstem"; then
13197           additional_libdir="$withval/$acl_libdirstem2"
13198         fi
13199       fi
13200     fi
13201
13202 fi
13203
13204       LIBRT=
13205   LTLIBRT=
13206   INCRT=
13207   LIBRT_PREFIX=
13208       HAVE_LIBRT=
13209   rpathdirs=
13210   ltrpathdirs=
13211   names_already_handled=
13212   names_next_round='rt '
13213   while test -n "$names_next_round"; do
13214     names_this_round="$names_next_round"
13215     names_next_round=
13216     for name in $names_this_round; do
13217       already_handled=
13218       for n in $names_already_handled; do
13219         if test "$n" = "$name"; then
13220           already_handled=yes
13221           break
13222         fi
13223       done
13224       if test -z "$already_handled"; then
13225         names_already_handled="$names_already_handled $name"
13226                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13227         eval value=\"\$HAVE_LIB$uppername\"
13228         if test -n "$value"; then
13229           if test "$value" = yes; then
13230             eval value=\"\$LIB$uppername\"
13231             test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
13232             eval value=\"\$LTLIB$uppername\"
13233             test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
13234           else
13235                                     :
13236           fi
13237         else
13238                               found_dir=
13239           found_la=
13240           found_so=
13241           found_a=
13242           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13243           if test -n "$acl_shlibext"; then
13244             shrext=".$acl_shlibext"             # typically: shrext=.so
13245           else
13246             shrext=
13247           fi
13248           if test $use_additional = yes; then
13249             dir="$additional_libdir"
13250                                     if test -n "$acl_shlibext"; then
13251               if test -f "$dir/$libname$shrext"; then
13252                 found_dir="$dir"
13253                 found_so="$dir/$libname$shrext"
13254               else
13255                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13256                   ver=`(cd "$dir" && \
13257                         for f in "$libname$shrext".*; do echo "$f"; done \
13258                         | sed -e "s,^$libname$shrext\\\\.,," \
13259                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13260                         | sed 1q ) 2>/dev/null`
13261                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13262                     found_dir="$dir"
13263                     found_so="$dir/$libname$shrext.$ver"
13264                   fi
13265                 else
13266                   eval library_names=\"$acl_library_names_spec\"
13267                   for f in $library_names; do
13268                     if test -f "$dir/$f"; then
13269                       found_dir="$dir"
13270                       found_so="$dir/$f"
13271                       break
13272                     fi
13273                   done
13274                 fi
13275               fi
13276             fi
13277                         if test "X$found_dir" = "X"; then
13278               if test -f "$dir/$libname.$acl_libext"; then
13279                 found_dir="$dir"
13280                 found_a="$dir/$libname.$acl_libext"
13281               fi
13282             fi
13283             if test "X$found_dir" != "X"; then
13284               if test -f "$dir/$libname.la"; then
13285                 found_la="$dir/$libname.la"
13286               fi
13287             fi
13288           fi
13289           if test "X$found_dir" = "X"; then
13290             for x in $LDFLAGS $LTLIBRT; do
13291
13292   acl_save_prefix="$prefix"
13293   prefix="$acl_final_prefix"
13294   acl_save_exec_prefix="$exec_prefix"
13295   exec_prefix="$acl_final_exec_prefix"
13296   eval x=\"$x\"
13297   exec_prefix="$acl_save_exec_prefix"
13298   prefix="$acl_save_prefix"
13299
13300               case "$x" in
13301                 -L*)
13302                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13303                                     if test -n "$acl_shlibext"; then
13304                     if test -f "$dir/$libname$shrext"; then
13305                       found_dir="$dir"
13306                       found_so="$dir/$libname$shrext"
13307                     else
13308                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13309                         ver=`(cd "$dir" && \
13310                               for f in "$libname$shrext".*; do echo "$f"; done \
13311                               | sed -e "s,^$libname$shrext\\\\.,," \
13312                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13313                               | sed 1q ) 2>/dev/null`
13314                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13315                           found_dir="$dir"
13316                           found_so="$dir/$libname$shrext.$ver"
13317                         fi
13318                       else
13319                         eval library_names=\"$acl_library_names_spec\"
13320                         for f in $library_names; do
13321                           if test -f "$dir/$f"; then
13322                             found_dir="$dir"
13323                             found_so="$dir/$f"
13324                             break
13325                           fi
13326                         done
13327                       fi
13328                     fi
13329                   fi
13330                                     if test "X$found_dir" = "X"; then
13331                     if test -f "$dir/$libname.$acl_libext"; then
13332                       found_dir="$dir"
13333                       found_a="$dir/$libname.$acl_libext"
13334                     fi
13335                   fi
13336                   if test "X$found_dir" != "X"; then
13337                     if test -f "$dir/$libname.la"; then
13338                       found_la="$dir/$libname.la"
13339                     fi
13340                   fi
13341                   ;;
13342               esac
13343               if test "X$found_dir" != "X"; then
13344                 break
13345               fi
13346             done
13347           fi
13348           if test "X$found_dir" != "X"; then
13349                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
13350             if test "X$found_so" != "X"; then
13351                                                         if test "$enable_rpath" = no \
13352                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13353                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13354                                 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13355               else
13356                                                                                 haveit=
13357                 for x in $ltrpathdirs; do
13358                   if test "X$x" = "X$found_dir"; then
13359                     haveit=yes
13360                     break
13361                   fi
13362                 done
13363                 if test -z "$haveit"; then
13364                   ltrpathdirs="$ltrpathdirs $found_dir"
13365                 fi
13366                                 if test "$acl_hardcode_direct" = yes; then
13367                                                       LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13368                 else
13369                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13370                                                             LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13371                                                             haveit=
13372                     for x in $rpathdirs; do
13373                       if test "X$x" = "X$found_dir"; then
13374                         haveit=yes
13375                         break
13376                       fi
13377                     done
13378                     if test -z "$haveit"; then
13379                       rpathdirs="$rpathdirs $found_dir"
13380                     fi
13381                   else
13382                                                                                 haveit=
13383                     for x in $LDFLAGS $LIBRT; do
13384
13385   acl_save_prefix="$prefix"
13386   prefix="$acl_final_prefix"
13387   acl_save_exec_prefix="$exec_prefix"
13388   exec_prefix="$acl_final_exec_prefix"
13389   eval x=\"$x\"
13390   exec_prefix="$acl_save_exec_prefix"
13391   prefix="$acl_save_prefix"
13392
13393                       if test "X$x" = "X-L$found_dir"; then
13394                         haveit=yes
13395                         break
13396                       fi
13397                     done
13398                     if test -z "$haveit"; then
13399                       LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
13400                     fi
13401                     if test "$acl_hardcode_minus_L" != no; then
13402                                                                                         LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13403                     else
13404                                                                                                                                                                                 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
13405                     fi
13406                   fi
13407                 fi
13408               fi
13409             else
13410               if test "X$found_a" != "X"; then
13411                                 LIBRT="${LIBRT}${LIBRT:+ }$found_a"
13412               else
13413                                                 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
13414               fi
13415             fi
13416                         additional_includedir=
13417             case "$found_dir" in
13418               */$acl_libdirstem | */$acl_libdirstem/)
13419                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13420                 if test "$name" = 'rt'; then
13421                   LIBRT_PREFIX="$basedir"
13422                 fi
13423                 additional_includedir="$basedir/include"
13424                 ;;
13425               */$acl_libdirstem2 | */$acl_libdirstem2/)
13426                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13427                 if test "$name" = 'rt'; then
13428                   LIBRT_PREFIX="$basedir"
13429                 fi
13430                 additional_includedir="$basedir/include"
13431                 ;;
13432             esac
13433             if test "X$additional_includedir" != "X"; then
13434                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13435                 haveit=
13436                 if test "X$additional_includedir" = "X/usr/local/include"; then
13437                   if test -n "$GCC"; then
13438                     case $host_os in
13439                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13440                     esac
13441                   fi
13442                 fi
13443                 if test -z "$haveit"; then
13444                   for x in $CPPFLAGS $INCRT; do
13445
13446   acl_save_prefix="$prefix"
13447   prefix="$acl_final_prefix"
13448   acl_save_exec_prefix="$exec_prefix"
13449   exec_prefix="$acl_final_exec_prefix"
13450   eval x=\"$x\"
13451   exec_prefix="$acl_save_exec_prefix"
13452   prefix="$acl_save_prefix"
13453
13454                     if test "X$x" = "X-I$additional_includedir"; then
13455                       haveit=yes
13456                       break
13457                     fi
13458                   done
13459                   if test -z "$haveit"; then
13460                     if test -d "$additional_includedir"; then
13461                                             INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
13462                     fi
13463                   fi
13464                 fi
13465               fi
13466             fi
13467                         if test -n "$found_la"; then
13468                                                         save_libdir="$libdir"
13469               case "$found_la" in
13470                 */* | *\\*) . "$found_la" ;;
13471                 *) . "./$found_la" ;;
13472               esac
13473               libdir="$save_libdir"
13474                             for dep in $dependency_libs; do
13475                 case "$dep" in
13476                   -L*)
13477                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13478                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13479                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13480                       haveit=
13481                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13482                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13483                         if test -n "$GCC"; then
13484                           case $host_os in
13485                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13486                           esac
13487                         fi
13488                       fi
13489                       if test -z "$haveit"; then
13490                         haveit=
13491                         for x in $LDFLAGS $LIBRT; do
13492
13493   acl_save_prefix="$prefix"
13494   prefix="$acl_final_prefix"
13495   acl_save_exec_prefix="$exec_prefix"
13496   exec_prefix="$acl_final_exec_prefix"
13497   eval x=\"$x\"
13498   exec_prefix="$acl_save_exec_prefix"
13499   prefix="$acl_save_prefix"
13500
13501                           if test "X$x" = "X-L$additional_libdir"; then
13502                             haveit=yes
13503                             break
13504                           fi
13505                         done
13506                         if test -z "$haveit"; then
13507                           if test -d "$additional_libdir"; then
13508                                                         LIBRT="${LIBRT}${LIBRT:+ }-L$additional_libdir"
13509                           fi
13510                         fi
13511                         haveit=
13512                         for x in $LDFLAGS $LTLIBRT; do
13513
13514   acl_save_prefix="$prefix"
13515   prefix="$acl_final_prefix"
13516   acl_save_exec_prefix="$exec_prefix"
13517   exec_prefix="$acl_final_exec_prefix"
13518   eval x=\"$x\"
13519   exec_prefix="$acl_save_exec_prefix"
13520   prefix="$acl_save_prefix"
13521
13522                           if test "X$x" = "X-L$additional_libdir"; then
13523                             haveit=yes
13524                             break
13525                           fi
13526                         done
13527                         if test -z "$haveit"; then
13528                           if test -d "$additional_libdir"; then
13529                                                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$additional_libdir"
13530                           fi
13531                         fi
13532                       fi
13533                     fi
13534                     ;;
13535                   -R*)
13536                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13537                     if test "$enable_rpath" != no; then
13538                                                                   haveit=
13539                       for x in $rpathdirs; do
13540                         if test "X$x" = "X$dir"; then
13541                           haveit=yes
13542                           break
13543                         fi
13544                       done
13545                       if test -z "$haveit"; then
13546                         rpathdirs="$rpathdirs $dir"
13547                       fi
13548                                                                   haveit=
13549                       for x in $ltrpathdirs; do
13550                         if test "X$x" = "X$dir"; then
13551                           haveit=yes
13552                           break
13553                         fi
13554                       done
13555                       if test -z "$haveit"; then
13556                         ltrpathdirs="$ltrpathdirs $dir"
13557                       fi
13558                     fi
13559                     ;;
13560                   -l*)
13561                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13562                     ;;
13563                   *.la)
13564                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13565                     ;;
13566                   *)
13567                                         LIBRT="${LIBRT}${LIBRT:+ }$dep"
13568                     LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
13569                     ;;
13570                 esac
13571               done
13572             fi
13573           else
13574                                                             LIBRT="${LIBRT}${LIBRT:+ }-l$name"
13575             LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
13576           fi
13577         fi
13578       fi
13579     done
13580   done
13581   if test "X$rpathdirs" != "X"; then
13582     if test -n "$acl_hardcode_libdir_separator"; then
13583                         alldirs=
13584       for found_dir in $rpathdirs; do
13585         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13586       done
13587             acl_save_libdir="$libdir"
13588       libdir="$alldirs"
13589       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13590       libdir="$acl_save_libdir"
13591       LIBRT="${LIBRT}${LIBRT:+ }$flag"
13592     else
13593             for found_dir in $rpathdirs; do
13594         acl_save_libdir="$libdir"
13595         libdir="$found_dir"
13596         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13597         libdir="$acl_save_libdir"
13598         LIBRT="${LIBRT}${LIBRT:+ }$flag"
13599       done
13600     fi
13601   fi
13602   if test "X$ltrpathdirs" != "X"; then
13603             for found_dir in $ltrpathdirs; do
13604       LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
13605     done
13606   fi
13607
13608
13609
13610
13611
13612
13613
13614         ac_save_CPPFLAGS="$CPPFLAGS"
13615
13616   for element in $INCRT; do
13617     haveit=
13618     for x in $CPPFLAGS; do
13619
13620   acl_save_prefix="$prefix"
13621   prefix="$acl_final_prefix"
13622   acl_save_exec_prefix="$exec_prefix"
13623   exec_prefix="$acl_final_exec_prefix"
13624   eval x=\"$x\"
13625   exec_prefix="$acl_save_exec_prefix"
13626   prefix="$acl_save_prefix"
13627
13628       if test "X$x" = "X$element"; then
13629         haveit=yes
13630         break
13631       fi
13632     done
13633     if test -z "$haveit"; then
13634       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13635     fi
13636   done
13637
13638
13639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
13640 $as_echo_n "checking for librt... " >&6; }
13641 if ${ac_cv_librt+:} false; then :
13642   $as_echo_n "(cached) " >&6
13643 else
13644
13645     ac_save_LIBS="$LIBS"
13646                                 case " $LIBRT" in
13647       *" -l"*) LIBS="$LIBS $LIBRT" ;;
13648       *)       LIBS="$LIBRT $LIBS" ;;
13649     esac
13650     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h.  */
13652 #include <time.h>
13653 int
13654 main ()
13655 {
13656 nanosleep (0, 0);
13657   ;
13658   return 0;
13659 }
13660 _ACEOF
13661 if ac_fn_c_try_link "$LINENO"; then :
13662   ac_cv_librt=yes
13663 else
13664   ac_cv_librt='no'
13665 fi
13666 rm -f core conftest.err conftest.$ac_objext \
13667     conftest$ac_exeext conftest.$ac_ext
13668     LIBS="$ac_save_LIBS"
13669
13670 fi
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
13672 $as_echo "$ac_cv_librt" >&6; }
13673   if test "$ac_cv_librt" = yes; then
13674     HAVE_LIBRT=yes
13675
13676 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
13677
13678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
13679 $as_echo_n "checking how to link with librt... " >&6; }
13680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
13681 $as_echo "$LIBRT" >&6; }
13682   else
13683     HAVE_LIBRT=no
13684             CPPFLAGS="$ac_save_CPPFLAGS"
13685     LIBRT=
13686     LTLIBRT=
13687     LIBRT_PREFIX=
13688   fi
13689
13690
13691
13692
13693
13694
13695
13696   gnutls_needs_librt=yes
13697 fi
13698
13699 if test "$ac_cv_func_clock_gettime" != "yes";then
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713     use_additional=yes
13714
13715   acl_save_prefix="$prefix"
13716   prefix="$acl_final_prefix"
13717   acl_save_exec_prefix="$exec_prefix"
13718   exec_prefix="$acl_final_exec_prefix"
13719
13720     eval additional_includedir=\"$includedir\"
13721     eval additional_libdir=\"$libdir\"
13722
13723   exec_prefix="$acl_save_exec_prefix"
13724   prefix="$acl_save_prefix"
13725
13726
13727 # Check whether --with-librt-prefix was given.
13728 if test "${with_librt_prefix+set}" = set; then :
13729   withval=$with_librt_prefix;
13730     if test "X$withval" = "Xno"; then
13731       use_additional=no
13732     else
13733       if test "X$withval" = "X"; then
13734
13735   acl_save_prefix="$prefix"
13736   prefix="$acl_final_prefix"
13737   acl_save_exec_prefix="$exec_prefix"
13738   exec_prefix="$acl_final_exec_prefix"
13739
13740           eval additional_includedir=\"$includedir\"
13741           eval additional_libdir=\"$libdir\"
13742
13743   exec_prefix="$acl_save_exec_prefix"
13744   prefix="$acl_save_prefix"
13745
13746       else
13747         additional_includedir="$withval/include"
13748         additional_libdir="$withval/$acl_libdirstem"
13749         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13750            && ! test -d "$withval/$acl_libdirstem"; then
13751           additional_libdir="$withval/$acl_libdirstem2"
13752         fi
13753       fi
13754     fi
13755
13756 fi
13757
13758       LIBRT=
13759   LTLIBRT=
13760   INCRT=
13761   LIBRT_PREFIX=
13762       HAVE_LIBRT=
13763   rpathdirs=
13764   ltrpathdirs=
13765   names_already_handled=
13766   names_next_round='rt '
13767   while test -n "$names_next_round"; do
13768     names_this_round="$names_next_round"
13769     names_next_round=
13770     for name in $names_this_round; do
13771       already_handled=
13772       for n in $names_already_handled; do
13773         if test "$n" = "$name"; then
13774           already_handled=yes
13775           break
13776         fi
13777       done
13778       if test -z "$already_handled"; then
13779         names_already_handled="$names_already_handled $name"
13780                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13781         eval value=\"\$HAVE_LIB$uppername\"
13782         if test -n "$value"; then
13783           if test "$value" = yes; then
13784             eval value=\"\$LIB$uppername\"
13785             test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
13786             eval value=\"\$LTLIB$uppername\"
13787             test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
13788           else
13789                                     :
13790           fi
13791         else
13792                               found_dir=
13793           found_la=
13794           found_so=
13795           found_a=
13796           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13797           if test -n "$acl_shlibext"; then
13798             shrext=".$acl_shlibext"             # typically: shrext=.so
13799           else
13800             shrext=
13801           fi
13802           if test $use_additional = yes; then
13803             dir="$additional_libdir"
13804                                     if test -n "$acl_shlibext"; then
13805               if test -f "$dir/$libname$shrext"; then
13806                 found_dir="$dir"
13807                 found_so="$dir/$libname$shrext"
13808               else
13809                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13810                   ver=`(cd "$dir" && \
13811                         for f in "$libname$shrext".*; do echo "$f"; done \
13812                         | sed -e "s,^$libname$shrext\\\\.,," \
13813                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13814                         | sed 1q ) 2>/dev/null`
13815                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13816                     found_dir="$dir"
13817                     found_so="$dir/$libname$shrext.$ver"
13818                   fi
13819                 else
13820                   eval library_names=\"$acl_library_names_spec\"
13821                   for f in $library_names; do
13822                     if test -f "$dir/$f"; then
13823                       found_dir="$dir"
13824                       found_so="$dir/$f"
13825                       break
13826                     fi
13827                   done
13828                 fi
13829               fi
13830             fi
13831                         if test "X$found_dir" = "X"; then
13832               if test -f "$dir/$libname.$acl_libext"; then
13833                 found_dir="$dir"
13834                 found_a="$dir/$libname.$acl_libext"
13835               fi
13836             fi
13837             if test "X$found_dir" != "X"; then
13838               if test -f "$dir/$libname.la"; then
13839                 found_la="$dir/$libname.la"
13840               fi
13841             fi
13842           fi
13843           if test "X$found_dir" = "X"; then
13844             for x in $LDFLAGS $LTLIBRT; do
13845
13846   acl_save_prefix="$prefix"
13847   prefix="$acl_final_prefix"
13848   acl_save_exec_prefix="$exec_prefix"
13849   exec_prefix="$acl_final_exec_prefix"
13850   eval x=\"$x\"
13851   exec_prefix="$acl_save_exec_prefix"
13852   prefix="$acl_save_prefix"
13853
13854               case "$x" in
13855                 -L*)
13856                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13857                                     if test -n "$acl_shlibext"; then
13858                     if test -f "$dir/$libname$shrext"; then
13859                       found_dir="$dir"
13860                       found_so="$dir/$libname$shrext"
13861                     else
13862                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13863                         ver=`(cd "$dir" && \
13864                               for f in "$libname$shrext".*; do echo "$f"; done \
13865                               | sed -e "s,^$libname$shrext\\\\.,," \
13866                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13867                               | sed 1q ) 2>/dev/null`
13868                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13869                           found_dir="$dir"
13870                           found_so="$dir/$libname$shrext.$ver"
13871                         fi
13872                       else
13873                         eval library_names=\"$acl_library_names_spec\"
13874                         for f in $library_names; do
13875                           if test -f "$dir/$f"; then
13876                             found_dir="$dir"
13877                             found_so="$dir/$f"
13878                             break
13879                           fi
13880                         done
13881                       fi
13882                     fi
13883                   fi
13884                                     if test "X$found_dir" = "X"; then
13885                     if test -f "$dir/$libname.$acl_libext"; then
13886                       found_dir="$dir"
13887                       found_a="$dir/$libname.$acl_libext"
13888                     fi
13889                   fi
13890                   if test "X$found_dir" != "X"; then
13891                     if test -f "$dir/$libname.la"; then
13892                       found_la="$dir/$libname.la"
13893                     fi
13894                   fi
13895                   ;;
13896               esac
13897               if test "X$found_dir" != "X"; then
13898                 break
13899               fi
13900             done
13901           fi
13902           if test "X$found_dir" != "X"; then
13903                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
13904             if test "X$found_so" != "X"; then
13905                                                         if test "$enable_rpath" = no \
13906                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13907                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13908                                 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13909               else
13910                                                                                 haveit=
13911                 for x in $ltrpathdirs; do
13912                   if test "X$x" = "X$found_dir"; then
13913                     haveit=yes
13914                     break
13915                   fi
13916                 done
13917                 if test -z "$haveit"; then
13918                   ltrpathdirs="$ltrpathdirs $found_dir"
13919                 fi
13920                                 if test "$acl_hardcode_direct" = yes; then
13921                                                       LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13922                 else
13923                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13924                                                             LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13925                                                             haveit=
13926                     for x in $rpathdirs; do
13927                       if test "X$x" = "X$found_dir"; then
13928                         haveit=yes
13929                         break
13930                       fi
13931                     done
13932                     if test -z "$haveit"; then
13933                       rpathdirs="$rpathdirs $found_dir"
13934                     fi
13935                   else
13936                                                                                 haveit=
13937                     for x in $LDFLAGS $LIBRT; do
13938
13939   acl_save_prefix="$prefix"
13940   prefix="$acl_final_prefix"
13941   acl_save_exec_prefix="$exec_prefix"
13942   exec_prefix="$acl_final_exec_prefix"
13943   eval x=\"$x\"
13944   exec_prefix="$acl_save_exec_prefix"
13945   prefix="$acl_save_prefix"
13946
13947                       if test "X$x" = "X-L$found_dir"; then
13948                         haveit=yes
13949                         break
13950                       fi
13951                     done
13952                     if test -z "$haveit"; then
13953                       LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
13954                     fi
13955                     if test "$acl_hardcode_minus_L" != no; then
13956                                                                                         LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13957                     else
13958                                                                                                                                                                                 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
13959                     fi
13960                   fi
13961                 fi
13962               fi
13963             else
13964               if test "X$found_a" != "X"; then
13965                                 LIBRT="${LIBRT}${LIBRT:+ }$found_a"
13966               else
13967                                                 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
13968               fi
13969             fi
13970                         additional_includedir=
13971             case "$found_dir" in
13972               */$acl_libdirstem | */$acl_libdirstem/)
13973                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13974                 if test "$name" = 'rt'; then
13975                   LIBRT_PREFIX="$basedir"
13976                 fi
13977                 additional_includedir="$basedir/include"
13978                 ;;
13979               */$acl_libdirstem2 | */$acl_libdirstem2/)
13980                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13981                 if test "$name" = 'rt'; then
13982                   LIBRT_PREFIX="$basedir"
13983                 fi
13984                 additional_includedir="$basedir/include"
13985                 ;;
13986             esac
13987             if test "X$additional_includedir" != "X"; then
13988                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13989                 haveit=
13990                 if test "X$additional_includedir" = "X/usr/local/include"; then
13991                   if test -n "$GCC"; then
13992                     case $host_os in
13993                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13994                     esac
13995                   fi
13996                 fi
13997                 if test -z "$haveit"; then
13998                   for x in $CPPFLAGS $INCRT; do
13999
14000   acl_save_prefix="$prefix"
14001   prefix="$acl_final_prefix"
14002   acl_save_exec_prefix="$exec_prefix"
14003   exec_prefix="$acl_final_exec_prefix"
14004   eval x=\"$x\"
14005   exec_prefix="$acl_save_exec_prefix"
14006   prefix="$acl_save_prefix"
14007
14008                     if test "X$x" = "X-I$additional_includedir"; then
14009                       haveit=yes
14010                       break
14011                     fi
14012                   done
14013                   if test -z "$haveit"; then
14014                     if test -d "$additional_includedir"; then
14015                                             INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
14016                     fi
14017                   fi
14018                 fi
14019               fi
14020             fi
14021                         if test -n "$found_la"; then
14022                                                         save_libdir="$libdir"
14023               case "$found_la" in
14024                 */* | *\\*) . "$found_la" ;;
14025                 *) . "./$found_la" ;;
14026               esac
14027               libdir="$save_libdir"
14028                             for dep in $dependency_libs; do
14029                 case "$dep" in
14030                   -L*)
14031                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14032                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14033                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14034                       haveit=
14035                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14036                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14037                         if test -n "$GCC"; then
14038                           case $host_os in
14039                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14040                           esac
14041                         fi
14042                       fi
14043                       if test -z "$haveit"; then
14044                         haveit=
14045                         for x in $LDFLAGS $LIBRT; do
14046
14047   acl_save_prefix="$prefix"
14048   prefix="$acl_final_prefix"
14049   acl_save_exec_prefix="$exec_prefix"
14050   exec_prefix="$acl_final_exec_prefix"
14051   eval x=\"$x\"
14052   exec_prefix="$acl_save_exec_prefix"
14053   prefix="$acl_save_prefix"
14054
14055                           if test "X$x" = "X-L$additional_libdir"; then
14056                             haveit=yes
14057                             break
14058                           fi
14059                         done
14060                         if test -z "$haveit"; then
14061                           if test -d "$additional_libdir"; then
14062                                                         LIBRT="${LIBRT}${LIBRT:+ }-L$additional_libdir"
14063                           fi
14064                         fi
14065                         haveit=
14066                         for x in $LDFLAGS $LTLIBRT; do
14067
14068   acl_save_prefix="$prefix"
14069   prefix="$acl_final_prefix"
14070   acl_save_exec_prefix="$exec_prefix"
14071   exec_prefix="$acl_final_exec_prefix"
14072   eval x=\"$x\"
14073   exec_prefix="$acl_save_exec_prefix"
14074   prefix="$acl_save_prefix"
14075
14076                           if test "X$x" = "X-L$additional_libdir"; then
14077                             haveit=yes
14078                             break
14079                           fi
14080                         done
14081                         if test -z "$haveit"; then
14082                           if test -d "$additional_libdir"; then
14083                                                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$additional_libdir"
14084                           fi
14085                         fi
14086                       fi
14087                     fi
14088                     ;;
14089                   -R*)
14090                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14091                     if test "$enable_rpath" != no; then
14092                                                                   haveit=
14093                       for x in $rpathdirs; do
14094                         if test "X$x" = "X$dir"; then
14095                           haveit=yes
14096                           break
14097                         fi
14098                       done
14099                       if test -z "$haveit"; then
14100                         rpathdirs="$rpathdirs $dir"
14101                       fi
14102                                                                   haveit=
14103                       for x in $ltrpathdirs; do
14104                         if test "X$x" = "X$dir"; then
14105                           haveit=yes
14106                           break
14107                         fi
14108                       done
14109                       if test -z "$haveit"; then
14110                         ltrpathdirs="$ltrpathdirs $dir"
14111                       fi
14112                     fi
14113                     ;;
14114                   -l*)
14115                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14116                     ;;
14117                   *.la)
14118                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14119                     ;;
14120                   *)
14121                                         LIBRT="${LIBRT}${LIBRT:+ }$dep"
14122                     LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
14123                     ;;
14124                 esac
14125               done
14126             fi
14127           else
14128                                                             LIBRT="${LIBRT}${LIBRT:+ }-l$name"
14129             LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
14130           fi
14131         fi
14132       fi
14133     done
14134   done
14135   if test "X$rpathdirs" != "X"; then
14136     if test -n "$acl_hardcode_libdir_separator"; then
14137                         alldirs=
14138       for found_dir in $rpathdirs; do
14139         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14140       done
14141             acl_save_libdir="$libdir"
14142       libdir="$alldirs"
14143       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14144       libdir="$acl_save_libdir"
14145       LIBRT="${LIBRT}${LIBRT:+ }$flag"
14146     else
14147             for found_dir in $rpathdirs; do
14148         acl_save_libdir="$libdir"
14149         libdir="$found_dir"
14150         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14151         libdir="$acl_save_libdir"
14152         LIBRT="${LIBRT}${LIBRT:+ }$flag"
14153       done
14154     fi
14155   fi
14156   if test "X$ltrpathdirs" != "X"; then
14157             for found_dir in $ltrpathdirs; do
14158       LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
14159     done
14160   fi
14161
14162
14163
14164
14165
14166
14167
14168         ac_save_CPPFLAGS="$CPPFLAGS"
14169
14170   for element in $INCRT; do
14171     haveit=
14172     for x in $CPPFLAGS; do
14173
14174   acl_save_prefix="$prefix"
14175   prefix="$acl_final_prefix"
14176   acl_save_exec_prefix="$exec_prefix"
14177   exec_prefix="$acl_final_exec_prefix"
14178   eval x=\"$x\"
14179   exec_prefix="$acl_save_exec_prefix"
14180   prefix="$acl_save_prefix"
14181
14182       if test "X$x" = "X$element"; then
14183         haveit=yes
14184         break
14185       fi
14186     done
14187     if test -z "$haveit"; then
14188       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14189     fi
14190   done
14191
14192
14193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
14194 $as_echo_n "checking for librt... " >&6; }
14195 if ${ac_cv_librt+:} false; then :
14196   $as_echo_n "(cached) " >&6
14197 else
14198
14199     ac_save_LIBS="$LIBS"
14200                                 case " $LIBRT" in
14201       *" -l"*) LIBS="$LIBS $LIBRT" ;;
14202       *)       LIBS="$LIBRT $LIBS" ;;
14203     esac
14204     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h.  */
14206 #include <time.h>
14207 int
14208 main ()
14209 {
14210 clock_gettime (0, 0);
14211   ;
14212   return 0;
14213 }
14214 _ACEOF
14215 if ac_fn_c_try_link "$LINENO"; then :
14216   ac_cv_librt=yes
14217 else
14218   ac_cv_librt='no'
14219 fi
14220 rm -f core conftest.err conftest.$ac_objext \
14221     conftest$ac_exeext conftest.$ac_ext
14222     LIBS="$ac_save_LIBS"
14223
14224 fi
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
14226 $as_echo "$ac_cv_librt" >&6; }
14227   if test "$ac_cv_librt" = yes; then
14228     HAVE_LIBRT=yes
14229
14230 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
14231
14232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
14233 $as_echo_n "checking how to link with librt... " >&6; }
14234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
14235 $as_echo "$LIBRT" >&6; }
14236   else
14237     HAVE_LIBRT=no
14238             CPPFLAGS="$ac_save_CPPFLAGS"
14239     LIBRT=
14240     LTLIBRT=
14241     LIBRT_PREFIX=
14242   fi
14243
14244
14245
14246
14247
14248
14249
14250   gnutls_needs_librt=yes
14251 fi
14252
14253 ac_have_unicode=no
14254 if test "$ac_cv_func_iconv" != "yes";then
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268     use_additional=yes
14269
14270   acl_save_prefix="$prefix"
14271   prefix="$acl_final_prefix"
14272   acl_save_exec_prefix="$exec_prefix"
14273   exec_prefix="$acl_final_exec_prefix"
14274
14275     eval additional_includedir=\"$includedir\"
14276     eval additional_libdir=\"$libdir\"
14277
14278   exec_prefix="$acl_save_exec_prefix"
14279   prefix="$acl_save_prefix"
14280
14281
14282 # Check whether --with-libiconv-prefix was given.
14283 if test "${with_libiconv_prefix+set}" = set; then :
14284   withval=$with_libiconv_prefix;
14285     if test "X$withval" = "Xno"; then
14286       use_additional=no
14287     else
14288       if test "X$withval" = "X"; then
14289
14290   acl_save_prefix="$prefix"
14291   prefix="$acl_final_prefix"
14292   acl_save_exec_prefix="$exec_prefix"
14293   exec_prefix="$acl_final_exec_prefix"
14294
14295           eval additional_includedir=\"$includedir\"
14296           eval additional_libdir=\"$libdir\"
14297
14298   exec_prefix="$acl_save_exec_prefix"
14299   prefix="$acl_save_prefix"
14300
14301       else
14302         additional_includedir="$withval/include"
14303         additional_libdir="$withval/$acl_libdirstem"
14304         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14305            && ! test -d "$withval/$acl_libdirstem"; then
14306           additional_libdir="$withval/$acl_libdirstem2"
14307         fi
14308       fi
14309     fi
14310
14311 fi
14312
14313       LIBICONV=
14314   LTLIBICONV=
14315   INCICONV=
14316   LIBICONV_PREFIX=
14317       HAVE_LIBICONV=
14318   rpathdirs=
14319   ltrpathdirs=
14320   names_already_handled=
14321   names_next_round='iconv '
14322   while test -n "$names_next_round"; do
14323     names_this_round="$names_next_round"
14324     names_next_round=
14325     for name in $names_this_round; do
14326       already_handled=
14327       for n in $names_already_handled; do
14328         if test "$n" = "$name"; then
14329           already_handled=yes
14330           break
14331         fi
14332       done
14333       if test -z "$already_handled"; then
14334         names_already_handled="$names_already_handled $name"
14335                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14336         eval value=\"\$HAVE_LIB$uppername\"
14337         if test -n "$value"; then
14338           if test "$value" = yes; then
14339             eval value=\"\$LIB$uppername\"
14340             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14341             eval value=\"\$LTLIB$uppername\"
14342             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14343           else
14344                                     :
14345           fi
14346         else
14347                               found_dir=
14348           found_la=
14349           found_so=
14350           found_a=
14351           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14352           if test -n "$acl_shlibext"; then
14353             shrext=".$acl_shlibext"             # typically: shrext=.so
14354           else
14355             shrext=
14356           fi
14357           if test $use_additional = yes; then
14358             dir="$additional_libdir"
14359                                     if test -n "$acl_shlibext"; then
14360               if test -f "$dir/$libname$shrext"; then
14361                 found_dir="$dir"
14362                 found_so="$dir/$libname$shrext"
14363               else
14364                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14365                   ver=`(cd "$dir" && \
14366                         for f in "$libname$shrext".*; do echo "$f"; done \
14367                         | sed -e "s,^$libname$shrext\\\\.,," \
14368                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14369                         | sed 1q ) 2>/dev/null`
14370                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14371                     found_dir="$dir"
14372                     found_so="$dir/$libname$shrext.$ver"
14373                   fi
14374                 else
14375                   eval library_names=\"$acl_library_names_spec\"
14376                   for f in $library_names; do
14377                     if test -f "$dir/$f"; then
14378                       found_dir="$dir"
14379                       found_so="$dir/$f"
14380                       break
14381                     fi
14382                   done
14383                 fi
14384               fi
14385             fi
14386                         if test "X$found_dir" = "X"; then
14387               if test -f "$dir/$libname.$acl_libext"; then
14388                 found_dir="$dir"
14389                 found_a="$dir/$libname.$acl_libext"
14390               fi
14391             fi
14392             if test "X$found_dir" != "X"; then
14393               if test -f "$dir/$libname.la"; then
14394                 found_la="$dir/$libname.la"
14395               fi
14396             fi
14397           fi
14398           if test "X$found_dir" = "X"; then
14399             for x in $LDFLAGS $LTLIBICONV; do
14400
14401   acl_save_prefix="$prefix"
14402   prefix="$acl_final_prefix"
14403   acl_save_exec_prefix="$exec_prefix"
14404   exec_prefix="$acl_final_exec_prefix"
14405   eval x=\"$x\"
14406   exec_prefix="$acl_save_exec_prefix"
14407   prefix="$acl_save_prefix"
14408
14409               case "$x" in
14410                 -L*)
14411                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14412                                     if test -n "$acl_shlibext"; then
14413                     if test -f "$dir/$libname$shrext"; then
14414                       found_dir="$dir"
14415                       found_so="$dir/$libname$shrext"
14416                     else
14417                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14418                         ver=`(cd "$dir" && \
14419                               for f in "$libname$shrext".*; do echo "$f"; done \
14420                               | sed -e "s,^$libname$shrext\\\\.,," \
14421                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14422                               | sed 1q ) 2>/dev/null`
14423                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14424                           found_dir="$dir"
14425                           found_so="$dir/$libname$shrext.$ver"
14426                         fi
14427                       else
14428                         eval library_names=\"$acl_library_names_spec\"
14429                         for f in $library_names; do
14430                           if test -f "$dir/$f"; then
14431                             found_dir="$dir"
14432                             found_so="$dir/$f"
14433                             break
14434                           fi
14435                         done
14436                       fi
14437                     fi
14438                   fi
14439                                     if test "X$found_dir" = "X"; then
14440                     if test -f "$dir/$libname.$acl_libext"; then
14441                       found_dir="$dir"
14442                       found_a="$dir/$libname.$acl_libext"
14443                     fi
14444                   fi
14445                   if test "X$found_dir" != "X"; then
14446                     if test -f "$dir/$libname.la"; then
14447                       found_la="$dir/$libname.la"
14448                     fi
14449                   fi
14450                   ;;
14451               esac
14452               if test "X$found_dir" != "X"; then
14453                 break
14454               fi
14455             done
14456           fi
14457           if test "X$found_dir" != "X"; then
14458                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14459             if test "X$found_so" != "X"; then
14460                                                         if test "$enable_rpath" = no \
14461                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14462                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14463                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14464               else
14465                                                                                 haveit=
14466                 for x in $ltrpathdirs; do
14467                   if test "X$x" = "X$found_dir"; then
14468                     haveit=yes
14469                     break
14470                   fi
14471                 done
14472                 if test -z "$haveit"; then
14473                   ltrpathdirs="$ltrpathdirs $found_dir"
14474                 fi
14475                                 if test "$acl_hardcode_direct" = yes; then
14476                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14477                 else
14478                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14479                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14480                                                             haveit=
14481                     for x in $rpathdirs; do
14482                       if test "X$x" = "X$found_dir"; then
14483                         haveit=yes
14484                         break
14485                       fi
14486                     done
14487                     if test -z "$haveit"; then
14488                       rpathdirs="$rpathdirs $found_dir"
14489                     fi
14490                   else
14491                                                                                 haveit=
14492                     for x in $LDFLAGS $LIBICONV; do
14493
14494   acl_save_prefix="$prefix"
14495   prefix="$acl_final_prefix"
14496   acl_save_exec_prefix="$exec_prefix"
14497   exec_prefix="$acl_final_exec_prefix"
14498   eval x=\"$x\"
14499   exec_prefix="$acl_save_exec_prefix"
14500   prefix="$acl_save_prefix"
14501
14502                       if test "X$x" = "X-L$found_dir"; then
14503                         haveit=yes
14504                         break
14505                       fi
14506                     done
14507                     if test -z "$haveit"; then
14508                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14509                     fi
14510                     if test "$acl_hardcode_minus_L" != no; then
14511                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14512                     else
14513                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14514                     fi
14515                   fi
14516                 fi
14517               fi
14518             else
14519               if test "X$found_a" != "X"; then
14520                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14521               else
14522                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14523               fi
14524             fi
14525                         additional_includedir=
14526             case "$found_dir" in
14527               */$acl_libdirstem | */$acl_libdirstem/)
14528                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14529                 if test "$name" = 'iconv'; then
14530                   LIBICONV_PREFIX="$basedir"
14531                 fi
14532                 additional_includedir="$basedir/include"
14533                 ;;
14534               */$acl_libdirstem2 | */$acl_libdirstem2/)
14535                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14536                 if test "$name" = 'iconv'; then
14537                   LIBICONV_PREFIX="$basedir"
14538                 fi
14539                 additional_includedir="$basedir/include"
14540                 ;;
14541             esac
14542             if test "X$additional_includedir" != "X"; then
14543                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14544                 haveit=
14545                 if test "X$additional_includedir" = "X/usr/local/include"; then
14546                   if test -n "$GCC"; then
14547                     case $host_os in
14548                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14549                     esac
14550                   fi
14551                 fi
14552                 if test -z "$haveit"; then
14553                   for x in $CPPFLAGS $INCICONV; do
14554
14555   acl_save_prefix="$prefix"
14556   prefix="$acl_final_prefix"
14557   acl_save_exec_prefix="$exec_prefix"
14558   exec_prefix="$acl_final_exec_prefix"
14559   eval x=\"$x\"
14560   exec_prefix="$acl_save_exec_prefix"
14561   prefix="$acl_save_prefix"
14562
14563                     if test "X$x" = "X-I$additional_includedir"; then
14564                       haveit=yes
14565                       break
14566                     fi
14567                   done
14568                   if test -z "$haveit"; then
14569                     if test -d "$additional_includedir"; then
14570                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14571                     fi
14572                   fi
14573                 fi
14574               fi
14575             fi
14576                         if test -n "$found_la"; then
14577                                                         save_libdir="$libdir"
14578               case "$found_la" in
14579                 */* | *\\*) . "$found_la" ;;
14580                 *) . "./$found_la" ;;
14581               esac
14582               libdir="$save_libdir"
14583                             for dep in $dependency_libs; do
14584                 case "$dep" in
14585                   -L*)
14586                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14587                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14588                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14589                       haveit=
14590                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14591                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14592                         if test -n "$GCC"; then
14593                           case $host_os in
14594                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14595                           esac
14596                         fi
14597                       fi
14598                       if test -z "$haveit"; then
14599                         haveit=
14600                         for x in $LDFLAGS $LIBICONV; do
14601
14602   acl_save_prefix="$prefix"
14603   prefix="$acl_final_prefix"
14604   acl_save_exec_prefix="$exec_prefix"
14605   exec_prefix="$acl_final_exec_prefix"
14606   eval x=\"$x\"
14607   exec_prefix="$acl_save_exec_prefix"
14608   prefix="$acl_save_prefix"
14609
14610                           if test "X$x" = "X-L$additional_libdir"; then
14611                             haveit=yes
14612                             break
14613                           fi
14614                         done
14615                         if test -z "$haveit"; then
14616                           if test -d "$additional_libdir"; then
14617                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14618                           fi
14619                         fi
14620                         haveit=
14621                         for x in $LDFLAGS $LTLIBICONV; do
14622
14623   acl_save_prefix="$prefix"
14624   prefix="$acl_final_prefix"
14625   acl_save_exec_prefix="$exec_prefix"
14626   exec_prefix="$acl_final_exec_prefix"
14627   eval x=\"$x\"
14628   exec_prefix="$acl_save_exec_prefix"
14629   prefix="$acl_save_prefix"
14630
14631                           if test "X$x" = "X-L$additional_libdir"; then
14632                             haveit=yes
14633                             break
14634                           fi
14635                         done
14636                         if test -z "$haveit"; then
14637                           if test -d "$additional_libdir"; then
14638                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14639                           fi
14640                         fi
14641                       fi
14642                     fi
14643                     ;;
14644                   -R*)
14645                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14646                     if test "$enable_rpath" != no; then
14647                                                                   haveit=
14648                       for x in $rpathdirs; do
14649                         if test "X$x" = "X$dir"; then
14650                           haveit=yes
14651                           break
14652                         fi
14653                       done
14654                       if test -z "$haveit"; then
14655                         rpathdirs="$rpathdirs $dir"
14656                       fi
14657                                                                   haveit=
14658                       for x in $ltrpathdirs; do
14659                         if test "X$x" = "X$dir"; then
14660                           haveit=yes
14661                           break
14662                         fi
14663                       done
14664                       if test -z "$haveit"; then
14665                         ltrpathdirs="$ltrpathdirs $dir"
14666                       fi
14667                     fi
14668                     ;;
14669                   -l*)
14670                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14671                     ;;
14672                   *.la)
14673                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14674                     ;;
14675                   *)
14676                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14677                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14678                     ;;
14679                 esac
14680               done
14681             fi
14682           else
14683                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14684             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14685           fi
14686         fi
14687       fi
14688     done
14689   done
14690   if test "X$rpathdirs" != "X"; then
14691     if test -n "$acl_hardcode_libdir_separator"; then
14692                         alldirs=
14693       for found_dir in $rpathdirs; do
14694         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14695       done
14696             acl_save_libdir="$libdir"
14697       libdir="$alldirs"
14698       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14699       libdir="$acl_save_libdir"
14700       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14701     else
14702             for found_dir in $rpathdirs; do
14703         acl_save_libdir="$libdir"
14704         libdir="$found_dir"
14705         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14706         libdir="$acl_save_libdir"
14707         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14708       done
14709     fi
14710   fi
14711   if test "X$ltrpathdirs" != "X"; then
14712             for found_dir in $ltrpathdirs; do
14713       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14714     done
14715   fi
14716
14717
14718
14719
14720
14721
14722
14723         ac_save_CPPFLAGS="$CPPFLAGS"
14724
14725   for element in $INCICONV; do
14726     haveit=
14727     for x in $CPPFLAGS; do
14728
14729   acl_save_prefix="$prefix"
14730   prefix="$acl_final_prefix"
14731   acl_save_exec_prefix="$exec_prefix"
14732   exec_prefix="$acl_final_exec_prefix"
14733   eval x=\"$x\"
14734   exec_prefix="$acl_save_exec_prefix"
14735   prefix="$acl_save_prefix"
14736
14737       if test "X$x" = "X$element"; then
14738         haveit=yes
14739         break
14740       fi
14741     done
14742     if test -z "$haveit"; then
14743       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14744     fi
14745   done
14746
14747
14748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv" >&5
14749 $as_echo_n "checking for libiconv... " >&6; }
14750 if ${ac_cv_libiconv+:} false; then :
14751   $as_echo_n "(cached) " >&6
14752 else
14753
14754     ac_save_LIBS="$LIBS"
14755                                 case " $LIBICONV" in
14756       *" -l"*) LIBS="$LIBS $LIBICONV" ;;
14757       *)       LIBS="$LIBICONV $LIBS" ;;
14758     esac
14759     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h.  */
14761 #include <iconv.h>
14762 int
14763 main ()
14764 {
14765 iconv (0, 0, 0, 0, 0);
14766   ;
14767   return 0;
14768 }
14769 _ACEOF
14770 if ac_fn_c_try_link "$LINENO"; then :
14771   ac_cv_libiconv=yes
14772 else
14773   ac_cv_libiconv='no'
14774 fi
14775 rm -f core conftest.err conftest.$ac_objext \
14776     conftest$ac_exeext conftest.$ac_ext
14777     LIBS="$ac_save_LIBS"
14778
14779 fi
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libiconv" >&5
14781 $as_echo "$ac_cv_libiconv" >&6; }
14782   if test "$ac_cv_libiconv" = yes; then
14783     HAVE_LIBICONV=yes
14784
14785 $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
14786
14787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14788 $as_echo_n "checking how to link with libiconv... " >&6; }
14789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14790 $as_echo "$LIBICONV" >&6; }
14791   else
14792     HAVE_LIBICONV=no
14793             CPPFLAGS="$ac_save_CPPFLAGS"
14794     LIBICONV=
14795     LTLIBICONV=
14796     LIBICONV_PREFIX=
14797   fi
14798
14799
14800
14801
14802
14803
14804
14805   if test "$HAVE_LIBICONV" = "yes";then
14806     ac_have_unicode=yes
14807   fi
14808 else
14809   ac_have_unicode=yes
14810 fi
14811
14812 if test "$ac_have_unicode" != "yes";then
14813   if test "$have_win" = "yes";then
14814     ac_have_unicode=yes
14815   fi
14816 fi
14817
14818
14819
14820
14821
14822
14823           LIBC_FATAL_STDERR_=1
14824   export LIBC_FATAL_STDERR_
14825
14826 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14827 if test "x$ac_cv_type_size_t" = xyes; then :
14828
14829 else
14830
14831 cat >>confdefs.h <<_ACEOF
14832 #define size_t unsigned int
14833 _ACEOF
14834
14835 fi
14836
14837 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14838 # for constant arguments.  Useless!
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14840 $as_echo_n "checking for working alloca.h... " >&6; }
14841 if ${ac_cv_working_alloca_h+:} false; then :
14842   $as_echo_n "(cached) " >&6
14843 else
14844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14845 /* end confdefs.h.  */
14846 #include <alloca.h>
14847 int
14848 main ()
14849 {
14850 char *p = (char *) alloca (2 * sizeof (int));
14851                           if (p) return 0;
14852   ;
14853   return 0;
14854 }
14855 _ACEOF
14856 if ac_fn_c_try_link "$LINENO"; then :
14857   ac_cv_working_alloca_h=yes
14858 else
14859   ac_cv_working_alloca_h=no
14860 fi
14861 rm -f core conftest.err conftest.$ac_objext \
14862     conftest$ac_exeext conftest.$ac_ext
14863 fi
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14865 $as_echo "$ac_cv_working_alloca_h" >&6; }
14866 if test $ac_cv_working_alloca_h = yes; then
14867
14868 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14869
14870 fi
14871
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14873 $as_echo_n "checking for alloca... " >&6; }
14874 if ${ac_cv_func_alloca_works+:} false; then :
14875   $as_echo_n "(cached) " >&6
14876 else
14877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h.  */
14879 #ifdef __GNUC__
14880 # define alloca __builtin_alloca
14881 #else
14882 # ifdef _MSC_VER
14883 #  include <malloc.h>
14884 #  define alloca _alloca
14885 # else
14886 #  ifdef HAVE_ALLOCA_H
14887 #   include <alloca.h>
14888 #  else
14889 #   ifdef _AIX
14890  #pragma alloca
14891 #   else
14892 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14893 void *alloca (size_t);
14894 #    endif
14895 #   endif
14896 #  endif
14897 # endif
14898 #endif
14899
14900 int
14901 main ()
14902 {
14903 char *p = (char *) alloca (1);
14904                                     if (p) return 0;
14905   ;
14906   return 0;
14907 }
14908 _ACEOF
14909 if ac_fn_c_try_link "$LINENO"; then :
14910   ac_cv_func_alloca_works=yes
14911 else
14912   ac_cv_func_alloca_works=no
14913 fi
14914 rm -f core conftest.err conftest.$ac_objext \
14915     conftest$ac_exeext conftest.$ac_ext
14916 fi
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14918 $as_echo "$ac_cv_func_alloca_works" >&6; }
14919
14920 if test $ac_cv_func_alloca_works = yes; then
14921
14922 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14923
14924 else
14925   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14926 # that cause trouble.  Some versions do not even contain alloca or
14927 # contain a buggy version.  If you still want to use their alloca,
14928 # use ar to extract alloca.o from them instead of compiling alloca.c.
14929
14930
14931
14932
14933
14934 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14935
14936 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14937
14938
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14940 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14941 if ${ac_cv_os_cray+:} false; then :
14942   $as_echo_n "(cached) " >&6
14943 else
14944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h.  */
14946 #if defined CRAY && ! defined CRAY2
14947 webecray
14948 #else
14949 wenotbecray
14950 #endif
14951
14952 _ACEOF
14953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14954   $EGREP "webecray" >/dev/null 2>&1; then :
14955   ac_cv_os_cray=yes
14956 else
14957   ac_cv_os_cray=no
14958 fi
14959 rm -f conftest*
14960
14961 fi
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14963 $as_echo "$ac_cv_os_cray" >&6; }
14964 if test $ac_cv_os_cray = yes; then
14965   for ac_func in _getb67 GETB67 getb67; do
14966     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14967 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14968 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14969
14970 cat >>confdefs.h <<_ACEOF
14971 #define CRAY_STACKSEG_END $ac_func
14972 _ACEOF
14973
14974     break
14975 fi
14976
14977   done
14978 fi
14979
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14981 $as_echo_n "checking stack direction for C alloca... " >&6; }
14982 if ${ac_cv_c_stack_direction+:} false; then :
14983   $as_echo_n "(cached) " >&6
14984 else
14985   if test "$cross_compiling" = yes; then :
14986   ac_cv_c_stack_direction=0
14987 else
14988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14989 /* end confdefs.h.  */
14990 $ac_includes_default
14991 int
14992 find_stack_direction (int *addr, int depth)
14993 {
14994   int dir, dummy = 0;
14995   if (! addr)
14996     addr = &dummy;
14997   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14998   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14999   return dir + dummy;
15000 }
15001
15002 int
15003 main (int argc, char **argv)
15004 {
15005   return find_stack_direction (0, argc + !argv + 20) < 0;
15006 }
15007 _ACEOF
15008 if ac_fn_c_try_run "$LINENO"; then :
15009   ac_cv_c_stack_direction=1
15010 else
15011   ac_cv_c_stack_direction=-1
15012 fi
15013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15014   conftest.$ac_objext conftest.beam conftest.$ac_ext
15015 fi
15016
15017 fi
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15019 $as_echo "$ac_cv_c_stack_direction" >&6; }
15020 cat >>confdefs.h <<_ACEOF
15021 #define STACK_DIRECTION $ac_cv_c_stack_direction
15022 _ACEOF
15023
15024
15025 fi
15026
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15028 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15029 if ${ac_cv_c_restrict+:} false; then :
15030   $as_echo_n "(cached) " >&6
15031 else
15032   ac_cv_c_restrict=no
15033    # The order here caters to the fact that C++ does not require restrict.
15034    for ac_kw in __restrict __restrict__ _Restrict restrict; do
15035      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h.  */
15037 typedef int * int_ptr;
15038         int foo (int_ptr $ac_kw ip) {
15039         return ip[0];
15040        }
15041 int
15042 main ()
15043 {
15044 int s[1];
15045         int * $ac_kw t = s;
15046         t[0] = 0;
15047         return foo(t)
15048   ;
15049   return 0;
15050 }
15051 _ACEOF
15052 if ac_fn_c_try_compile "$LINENO"; then :
15053   ac_cv_c_restrict=$ac_kw
15054 fi
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056      test "$ac_cv_c_restrict" != no && break
15057    done
15058
15059 fi
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15061 $as_echo "$ac_cv_c_restrict" >&6; }
15062
15063  case $ac_cv_c_restrict in
15064    restrict) ;;
15065    no) $as_echo "#define restrict /**/" >>confdefs.h
15066  ;;
15067    *)  cat >>confdefs.h <<_ACEOF
15068 #define restrict $ac_cv_c_restrict
15069 _ACEOF
15070  ;;
15071  esac
15072
15073
15074
15075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15076 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15077 if ${gl_cv_have_include_next+:} false; then :
15078   $as_echo_n "(cached) " >&6
15079 else
15080   rm -rf conftestd1a conftestd1b conftestd2
15081      mkdir conftestd1a conftestd1b conftestd2
15082                                                   cat <<EOF > conftestd1a/conftest.h
15083 #define DEFINED_IN_CONFTESTD1
15084 #include_next <conftest.h>
15085 #ifdef DEFINED_IN_CONFTESTD2
15086 int foo;
15087 #else
15088 #error "include_next doesn't work"
15089 #endif
15090 EOF
15091      cat <<EOF > conftestd1b/conftest.h
15092 #define DEFINED_IN_CONFTESTD1
15093 #include <stdio.h>
15094 #include_next <conftest.h>
15095 #ifdef DEFINED_IN_CONFTESTD2
15096 int foo;
15097 #else
15098 #error "include_next doesn't work"
15099 #endif
15100 EOF
15101      cat <<EOF > conftestd2/conftest.h
15102 #ifndef DEFINED_IN_CONFTESTD1
15103 #error "include_next test doesn't work"
15104 #endif
15105 #define DEFINED_IN_CONFTESTD2
15106 EOF
15107      gl_save_CPPFLAGS="$CPPFLAGS"
15108      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15109      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h.  */
15111 #include <conftest.h>
15112 _ACEOF
15113 if ac_fn_c_try_compile "$LINENO"; then :
15114   gl_cv_have_include_next=yes
15115 else
15116   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15117         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h.  */
15119 #include <conftest.h>
15120 _ACEOF
15121 if ac_fn_c_try_compile "$LINENO"; then :
15122   gl_cv_have_include_next=buggy
15123 else
15124   gl_cv_have_include_next=no
15125 fi
15126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15127
15128 fi
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130      CPPFLAGS="$gl_save_CPPFLAGS"
15131      rm -rf conftestd1a conftestd1b conftestd2
15132
15133 fi
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15135 $as_echo "$gl_cv_have_include_next" >&6; }
15136   PRAGMA_SYSTEM_HEADER=
15137   if test $gl_cv_have_include_next = yes; then
15138     INCLUDE_NEXT=include_next
15139     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15140     if test -n "$GCC"; then
15141       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15142     fi
15143   else
15144     if test $gl_cv_have_include_next = buggy; then
15145       INCLUDE_NEXT=include
15146       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15147     else
15148       INCLUDE_NEXT=include
15149       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15150     fi
15151   fi
15152
15153
15154
15155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15156 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15157 if ${gl_cv_pragma_columns+:} false; then :
15158   $as_echo_n "(cached) " >&6
15159 else
15160        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h.  */
15162
15163 #ifdef __TANDEM
15164 choke me
15165 #endif
15166
15167 _ACEOF
15168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15169   $EGREP "choke me" >/dev/null 2>&1; then :
15170   gl_cv_pragma_columns=yes
15171 else
15172   gl_cv_pragma_columns=no
15173 fi
15174 rm -f conftest*
15175
15176
15177 fi
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15179 $as_echo "$gl_cv_pragma_columns" >&6; }
15180   if test $gl_cv_pragma_columns = yes; then
15181     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15182   else
15183     PRAGMA_COLUMNS=
15184   fi
15185
15186
15187
15188
15189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
15190 $as_echo_n "checking for complete errno.h... " >&6; }
15191 if ${gl_cv_header_errno_h_complete+:} false; then :
15192   $as_echo_n "(cached) " >&6
15193 else
15194
15195     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h.  */
15197
15198 #include <errno.h>
15199 #if !defined ETXTBSY
15200 booboo
15201 #endif
15202 #if !defined ENOMSG
15203 booboo
15204 #endif
15205 #if !defined EIDRM
15206 booboo
15207 #endif
15208 #if !defined ENOLINK
15209 booboo
15210 #endif
15211 #if !defined EPROTO
15212 booboo
15213 #endif
15214 #if !defined EMULTIHOP
15215 booboo
15216 #endif
15217 #if !defined EBADMSG
15218 booboo
15219 #endif
15220 #if !defined EOVERFLOW
15221 booboo
15222 #endif
15223 #if !defined ENOTSUP
15224 booboo
15225 #endif
15226 #if !defined ENETRESET
15227 booboo
15228 #endif
15229 #if !defined ECONNABORTED
15230 booboo
15231 #endif
15232 #if !defined ESTALE
15233 booboo
15234 #endif
15235 #if !defined EDQUOT
15236 booboo
15237 #endif
15238 #if !defined ECANCELED
15239 booboo
15240 #endif
15241 #if !defined EOWNERDEAD
15242 booboo
15243 #endif
15244 #if !defined ENOTRECOVERABLE
15245 booboo
15246 #endif
15247 #if !defined EILSEQ
15248 booboo
15249 #endif
15250
15251 _ACEOF
15252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15253   $EGREP "booboo" >/dev/null 2>&1; then :
15254   gl_cv_header_errno_h_complete=no
15255 else
15256   gl_cv_header_errno_h_complete=yes
15257 fi
15258 rm -f conftest*
15259
15260
15261 fi
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
15263 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
15264   if test $gl_cv_header_errno_h_complete = yes; then
15265     ERRNO_H=''
15266   else
15267
15268
15269
15270
15271
15272
15273
15274
15275      if test $gl_cv_have_include_next = yes; then
15276        gl_cv_next_errno_h='<'errno.h'>'
15277      else
15278        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
15279 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
15280 if ${gl_cv_next_errno_h+:} false; then :
15281   $as_echo_n "(cached) " >&6
15282 else
15283
15284
15285
15286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287 /* end confdefs.h.  */
15288 #include <errno.h>
15289 _ACEOF
15290                 case "$host_os" in
15291     aix*) gl_absname_cpp="$ac_cpp -C" ;;
15292     *)    gl_absname_cpp="$ac_cpp" ;;
15293   esac
15294
15295   case "$host_os" in
15296     mingw*)
15297                                           gl_dirsep_regex='[/\\]'
15298       ;;
15299     *)
15300       gl_dirsep_regex='\/'
15301       ;;
15302   esac
15303       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15304   gl_header_literal_regex=`echo 'errno.h' \
15305                            | sed -e "$gl_make_literal_regex_sed"`
15306   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15307       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15308       s|^/[^/]|//&|
15309       p
15310       q
15311     }'
15312
15313         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15314   sed -n "$gl_absolute_header_sed"`
15315
15316            gl_header=$gl_cv_absolute_errno_h
15317            gl_cv_next_errno_h='"'$gl_header'"'
15318
15319
15320 fi
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
15322 $as_echo "$gl_cv_next_errno_h" >&6; }
15323      fi
15324      NEXT_ERRNO_H=$gl_cv_next_errno_h
15325
15326      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15327        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15328        gl_next_as_first_directive='<'errno.h'>'
15329      else
15330        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15331        gl_next_as_first_directive=$gl_cv_next_errno_h
15332      fi
15333      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
15334
15335
15336
15337
15338     ERRNO_H='errno.h'
15339   fi
15340
15341    if test -n "$ERRNO_H"; then
15342   GL_GENERATE_ERRNO_H_TRUE=
15343   GL_GENERATE_ERRNO_H_FALSE='#'
15344 else
15345   GL_GENERATE_ERRNO_H_TRUE='#'
15346   GL_GENERATE_ERRNO_H_FALSE=
15347 fi
15348
15349
15350   if test -n "$ERRNO_H"; then
15351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
15352 $as_echo_n "checking for EMULTIHOP value... " >&6; }
15353 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
15354   $as_echo_n "(cached) " >&6
15355 else
15356
15357       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h.  */
15359
15360 #include <errno.h>
15361 #ifdef EMULTIHOP
15362 yes
15363 #endif
15364
15365 _ACEOF
15366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15367   $EGREP "yes" >/dev/null 2>&1; then :
15368   gl_cv_header_errno_h_EMULTIHOP=yes
15369 else
15370   gl_cv_header_errno_h_EMULTIHOP=no
15371 fi
15372 rm -f conftest*
15373
15374       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
15375         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h.  */
15377
15378 #define _XOPEN_SOURCE_EXTENDED 1
15379 #include <errno.h>
15380 #ifdef EMULTIHOP
15381 yes
15382 #endif
15383
15384 _ACEOF
15385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15386   $EGREP "yes" >/dev/null 2>&1; then :
15387   gl_cv_header_errno_h_EMULTIHOP=hidden
15388 fi
15389 rm -f conftest*
15390
15391         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
15392                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
15393 #define _XOPEN_SOURCE_EXTENDED 1
15394 #include <errno.h>
15395 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
15396 #include <stdio.h>
15397 #include <stdlib.h>
15398 "; then :
15399
15400 fi
15401
15402         fi
15403       fi
15404
15405 fi
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
15407 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
15408     case $gl_cv_header_errno_h_EMULTIHOP in
15409       yes | no)
15410         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
15411         ;;
15412       *)
15413         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
15414         ;;
15415     esac
15416
15417
15418   fi
15419
15420
15421   if test -n "$ERRNO_H"; then
15422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
15423 $as_echo_n "checking for ENOLINK value... " >&6; }
15424 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
15425   $as_echo_n "(cached) " >&6
15426 else
15427
15428       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429 /* end confdefs.h.  */
15430
15431 #include <errno.h>
15432 #ifdef ENOLINK
15433 yes
15434 #endif
15435
15436 _ACEOF
15437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15438   $EGREP "yes" >/dev/null 2>&1; then :
15439   gl_cv_header_errno_h_ENOLINK=yes
15440 else
15441   gl_cv_header_errno_h_ENOLINK=no
15442 fi
15443 rm -f conftest*
15444
15445       if test $gl_cv_header_errno_h_ENOLINK = no; then
15446         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h.  */
15448
15449 #define _XOPEN_SOURCE_EXTENDED 1
15450 #include <errno.h>
15451 #ifdef ENOLINK
15452 yes
15453 #endif
15454
15455 _ACEOF
15456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15457   $EGREP "yes" >/dev/null 2>&1; then :
15458   gl_cv_header_errno_h_ENOLINK=hidden
15459 fi
15460 rm -f conftest*
15461
15462         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
15463                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
15464 #define _XOPEN_SOURCE_EXTENDED 1
15465 #include <errno.h>
15466 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
15467 #include <stdio.h>
15468 #include <stdlib.h>
15469 "; then :
15470
15471 fi
15472
15473         fi
15474       fi
15475
15476 fi
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
15478 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
15479     case $gl_cv_header_errno_h_ENOLINK in
15480       yes | no)
15481         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
15482         ;;
15483       *)
15484         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
15485         ;;
15486     esac
15487
15488
15489   fi
15490
15491
15492   if test -n "$ERRNO_H"; then
15493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
15494 $as_echo_n "checking for EOVERFLOW value... " >&6; }
15495 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
15496   $as_echo_n "(cached) " >&6
15497 else
15498
15499       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15500 /* end confdefs.h.  */
15501
15502 #include <errno.h>
15503 #ifdef EOVERFLOW
15504 yes
15505 #endif
15506
15507 _ACEOF
15508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15509   $EGREP "yes" >/dev/null 2>&1; then :
15510   gl_cv_header_errno_h_EOVERFLOW=yes
15511 else
15512   gl_cv_header_errno_h_EOVERFLOW=no
15513 fi
15514 rm -f conftest*
15515
15516       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
15517         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h.  */
15519
15520 #define _XOPEN_SOURCE_EXTENDED 1
15521 #include <errno.h>
15522 #ifdef EOVERFLOW
15523 yes
15524 #endif
15525
15526 _ACEOF
15527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15528   $EGREP "yes" >/dev/null 2>&1; then :
15529   gl_cv_header_errno_h_EOVERFLOW=hidden
15530 fi
15531 rm -f conftest*
15532
15533         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
15534                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
15535 #define _XOPEN_SOURCE_EXTENDED 1
15536 #include <errno.h>
15537 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
15538 #include <stdio.h>
15539 #include <stdlib.h>
15540 "; then :
15541
15542 fi
15543
15544         fi
15545       fi
15546
15547 fi
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
15549 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
15550     case $gl_cv_header_errno_h_EOVERFLOW in
15551       yes | no)
15552         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
15553         ;;
15554       *)
15555         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
15556         ;;
15557     esac
15558
15559
15560   fi
15561
15562
15563
15564
15565
15566
15567      GNULIB_FCHMODAT=0;
15568   GNULIB_FSTAT=0;
15569   GNULIB_FSTATAT=0;
15570   GNULIB_FUTIMENS=0;
15571   GNULIB_LCHMOD=0;
15572   GNULIB_LSTAT=0;
15573   GNULIB_MKDIRAT=0;
15574   GNULIB_MKFIFO=0;
15575   GNULIB_MKFIFOAT=0;
15576   GNULIB_MKNOD=0;
15577   GNULIB_MKNODAT=0;
15578   GNULIB_STAT=0;
15579   GNULIB_UTIMENSAT=0;
15580     HAVE_FCHMODAT=1;
15581   HAVE_FSTATAT=1;
15582   HAVE_FUTIMENS=1;
15583   HAVE_LCHMOD=1;
15584   HAVE_LSTAT=1;
15585   HAVE_MKDIRAT=1;
15586   HAVE_MKFIFO=1;
15587   HAVE_MKFIFOAT=1;
15588   HAVE_MKNOD=1;
15589   HAVE_MKNODAT=1;
15590   HAVE_UTIMENSAT=1;
15591   REPLACE_FSTAT=0;
15592   REPLACE_FSTATAT=0;
15593   REPLACE_FUTIMENS=0;
15594   REPLACE_LSTAT=0;
15595   REPLACE_MKDIR=0;
15596   REPLACE_MKFIFO=0;
15597   REPLACE_MKNOD=0;
15598   REPLACE_STAT=0;
15599   REPLACE_UTIMENSAT=0;
15600
15601
15602
15603
15604
15605   for ac_func in $gl_func_list
15606 do :
15607   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15608 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15609 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15610   cat >>confdefs.h <<_ACEOF
15611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15612 _ACEOF
15613
15614 fi
15615 done
15616
15617
15618
15619
15620
15621
15622
15623   :
15624
15625
15626
15627
15628
15629   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
15630     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
15631
15632 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
15633
15634   else
15635     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
15636   fi
15637
15638
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15640 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15641 if ${ac_cv_header_stat_broken+:} false; then :
15642   $as_echo_n "(cached) " >&6
15643 else
15644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h.  */
15646 #include <sys/types.h>
15647 #include <sys/stat.h>
15648
15649 #if defined S_ISBLK && defined S_IFDIR
15650 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15651 #endif
15652
15653 #if defined S_ISBLK && defined S_IFCHR
15654 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15655 #endif
15656
15657 #if defined S_ISLNK && defined S_IFREG
15658 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15659 #endif
15660
15661 #if defined S_ISSOCK && defined S_IFREG
15662 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15663 #endif
15664
15665 _ACEOF
15666 if ac_fn_c_try_compile "$LINENO"; then :
15667   ac_cv_header_stat_broken=no
15668 else
15669   ac_cv_header_stat_broken=yes
15670 fi
15671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15672 fi
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15674 $as_echo "$ac_cv_header_stat_broken" >&6; }
15675 if test $ac_cv_header_stat_broken = yes; then
15676
15677 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15678
15679 fi
15680
15681
15682
15683
15684
15685
15686 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15687 if test "x$ac_cv_type_mode_t" = xyes; then :
15688
15689 else
15690
15691 cat >>confdefs.h <<_ACEOF
15692 #define mode_t int
15693 _ACEOF
15694
15695 fi
15696
15697
15698
15699   case "$host_os" in
15700     mingw*)
15701                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
15702 $as_echo_n "checking for 64-bit off_t... " >&6; }
15703 if ${gl_cv_type_off_t_64+:} false; then :
15704   $as_echo_n "(cached) " >&6
15705 else
15706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h.  */
15708 #include <sys/types.h>
15709                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
15710
15711 int
15712 main ()
15713 {
15714
15715   ;
15716   return 0;
15717 }
15718 _ACEOF
15719 if ac_fn_c_try_compile "$LINENO"; then :
15720   gl_cv_type_off_t_64=yes
15721 else
15722   gl_cv_type_off_t_64=no
15723 fi
15724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15725
15726 fi
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
15728 $as_echo "$gl_cv_type_off_t_64" >&6; }
15729       if test $gl_cv_type_off_t_64 = no; then
15730         WINDOWS_64_BIT_OFF_T=1
15731       else
15732         WINDOWS_64_BIT_OFF_T=0
15733       fi
15734                   WINDOWS_64_BIT_ST_SIZE=1
15735       ;;
15736     *)
15737                                                       WINDOWS_64_BIT_OFF_T=0
15738       WINDOWS_64_BIT_ST_SIZE=0
15739       ;;
15740   esac
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753   :
15754
15755
15756
15757
15758
15759
15760
15761
15762      if test $gl_cv_have_include_next = yes; then
15763        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15764      else
15765        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
15766 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
15767 if ${gl_cv_next_sys_stat_h+:} false; then :
15768   $as_echo_n "(cached) " >&6
15769 else
15770
15771              if test $ac_cv_header_sys_stat_h = yes; then
15772
15773
15774
15775
15776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h.  */
15778 #include <sys/stat.h>
15779 _ACEOF
15780                 case "$host_os" in
15781     aix*) gl_absname_cpp="$ac_cpp -C" ;;
15782     *)    gl_absname_cpp="$ac_cpp" ;;
15783   esac
15784
15785   case "$host_os" in
15786     mingw*)
15787                                           gl_dirsep_regex='[/\\]'
15788       ;;
15789     *)
15790       gl_dirsep_regex='\/'
15791       ;;
15792   esac
15793       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15794   gl_header_literal_regex=`echo 'sys/stat.h' \
15795                            | sed -e "$gl_make_literal_regex_sed"`
15796   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15797       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15798       s|^/[^/]|//&|
15799       p
15800       q
15801     }'
15802
15803         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15804   sed -n "$gl_absolute_header_sed"`
15805
15806            gl_header=$gl_cv_absolute_sys_stat_h
15807            gl_cv_next_sys_stat_h='"'$gl_header'"'
15808           else
15809                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15810              fi
15811
15812
15813 fi
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
15815 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
15816      fi
15817      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
15818
15819      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15820        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15821        gl_next_as_first_directive='<'sys/stat.h'>'
15822      else
15823        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15824        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
15825      fi
15826      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15839
15840 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
15841
15842   fi
15843
15844       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
15845      #include <sys/stat.h>
15846 "
15847 if test "x$ac_cv_type_nlink_t" = xyes; then :
15848
15849 else
15850
15851 $as_echo "#define nlink_t int" >>confdefs.h
15852
15853 fi
15854
15855
15856
15857     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
15858     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15860 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15861 if eval \${$as_gl_Symbol+:} false; then :
15862   $as_echo_n "(cached) " >&6
15863 else
15864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15865 /* end confdefs.h.  */
15866 #include <sys/stat.h>
15867
15868 int
15869 main ()
15870 {
15871 #undef $gl_func
15872   (void) $gl_func;
15873   ;
15874   return 0;
15875 }
15876 _ACEOF
15877 if ac_fn_c_try_compile "$LINENO"; then :
15878   eval "$as_gl_Symbol=yes"
15879 else
15880   eval "$as_gl_Symbol=no"
15881 fi
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883 fi
15884 eval ac_res=\$$as_gl_Symbol
15885                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15886 $as_echo "$ac_res" >&6; }
15887     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15888   cat >>confdefs.h <<_ACEOF
15889 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15890 _ACEOF
15891
15892                      eval ac_cv_have_decl_$gl_func=yes
15893 fi
15894       done
15895
15896
15897
15898   GNULIB_DPRINTF=0;
15899   GNULIB_FCLOSE=0;
15900   GNULIB_FDOPEN=0;
15901   GNULIB_FFLUSH=0;
15902   GNULIB_FGETC=0;
15903   GNULIB_FGETS=0;
15904   GNULIB_FOPEN=0;
15905   GNULIB_FPRINTF=0;
15906   GNULIB_FPRINTF_POSIX=0;
15907   GNULIB_FPURGE=0;
15908   GNULIB_FPUTC=0;
15909   GNULIB_FPUTS=0;
15910   GNULIB_FREAD=0;
15911   GNULIB_FREOPEN=0;
15912   GNULIB_FSCANF=0;
15913   GNULIB_FSEEK=0;
15914   GNULIB_FSEEKO=0;
15915   GNULIB_FTELL=0;
15916   GNULIB_FTELLO=0;
15917   GNULIB_FWRITE=0;
15918   GNULIB_GETC=0;
15919   GNULIB_GETCHAR=0;
15920   GNULIB_GETDELIM=0;
15921   GNULIB_GETLINE=0;
15922   GNULIB_OBSTACK_PRINTF=0;
15923   GNULIB_OBSTACK_PRINTF_POSIX=0;
15924   GNULIB_PCLOSE=0;
15925   GNULIB_PERROR=0;
15926   GNULIB_POPEN=0;
15927   GNULIB_PRINTF=0;
15928   GNULIB_PRINTF_POSIX=0;
15929   GNULIB_PUTC=0;
15930   GNULIB_PUTCHAR=0;
15931   GNULIB_PUTS=0;
15932   GNULIB_REMOVE=0;
15933   GNULIB_RENAME=0;
15934   GNULIB_RENAMEAT=0;
15935   GNULIB_SCANF=0;
15936   GNULIB_SNPRINTF=0;
15937   GNULIB_SPRINTF_POSIX=0;
15938   GNULIB_STDIO_H_NONBLOCKING=0;
15939   GNULIB_STDIO_H_SIGPIPE=0;
15940   GNULIB_TMPFILE=0;
15941   GNULIB_VASPRINTF=0;
15942   GNULIB_VFSCANF=0;
15943   GNULIB_VSCANF=0;
15944   GNULIB_VDPRINTF=0;
15945   GNULIB_VFPRINTF=0;
15946   GNULIB_VFPRINTF_POSIX=0;
15947   GNULIB_VPRINTF=0;
15948   GNULIB_VPRINTF_POSIX=0;
15949   GNULIB_VSNPRINTF=0;
15950   GNULIB_VSPRINTF_POSIX=0;
15951     HAVE_DECL_FPURGE=1;
15952   HAVE_DECL_FSEEKO=1;
15953   HAVE_DECL_FTELLO=1;
15954   HAVE_DECL_GETDELIM=1;
15955   HAVE_DECL_GETLINE=1;
15956   HAVE_DECL_OBSTACK_PRINTF=1;
15957   HAVE_DECL_SNPRINTF=1;
15958   HAVE_DECL_VSNPRINTF=1;
15959   HAVE_DPRINTF=1;
15960   HAVE_FSEEKO=1;
15961   HAVE_FTELLO=1;
15962   HAVE_PCLOSE=1;
15963   HAVE_POPEN=1;
15964   HAVE_RENAMEAT=1;
15965   HAVE_VASPRINTF=1;
15966   HAVE_VDPRINTF=1;
15967   REPLACE_DPRINTF=0;
15968   REPLACE_FCLOSE=0;
15969   REPLACE_FDOPEN=0;
15970   REPLACE_FFLUSH=0;
15971   REPLACE_FOPEN=0;
15972   REPLACE_FPRINTF=0;
15973   REPLACE_FPURGE=0;
15974   REPLACE_FREOPEN=0;
15975   REPLACE_FSEEK=0;
15976   REPLACE_FSEEKO=0;
15977   REPLACE_FTELL=0;
15978   REPLACE_FTELLO=0;
15979   REPLACE_GETDELIM=0;
15980   REPLACE_GETLINE=0;
15981   REPLACE_OBSTACK_PRINTF=0;
15982   REPLACE_PERROR=0;
15983   REPLACE_POPEN=0;
15984   REPLACE_PRINTF=0;
15985   REPLACE_REMOVE=0;
15986   REPLACE_RENAME=0;
15987   REPLACE_RENAMEAT=0;
15988   REPLACE_SNPRINTF=0;
15989   REPLACE_SPRINTF=0;
15990   REPLACE_STDIO_READ_FUNCS=0;
15991   REPLACE_STDIO_WRITE_FUNCS=0;
15992   REPLACE_TMPFILE=0;
15993   REPLACE_VASPRINTF=0;
15994   REPLACE_VDPRINTF=0;
15995   REPLACE_VFPRINTF=0;
15996   REPLACE_VPRINTF=0;
15997   REPLACE_VSNPRINTF=0;
15998   REPLACE_VSPRINTF=0;
15999
16000
16001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
16002 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
16003 if ${gl_cv_var_stdin_large_offset+:} false; then :
16004   $as_echo_n "(cached) " >&6
16005 else
16006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h.  */
16008 #include <stdio.h>
16009 int
16010 main ()
16011 {
16012 #if defined __SL64 && defined __SCLE /* cygwin */
16013   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
16014      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
16015      it is easier to do a version check than building a runtime test.  */
16016 # include <cygwin/version.h>
16017 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
16018   choke me
16019 # endif
16020 #endif
16021   ;
16022   return 0;
16023 }
16024 _ACEOF
16025 if ac_fn_c_try_link "$LINENO"; then :
16026   gl_cv_var_stdin_large_offset=yes
16027 else
16028   gl_cv_var_stdin_large_offset=no
16029 fi
16030 rm -f core conftest.err conftest.$ac_objext \
16031     conftest$ac_exeext conftest.$ac_ext
16032 fi
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
16034 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
16035
16036
16037
16038 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16039 if test "x$ac_cv_type_pid_t" = xyes; then :
16040
16041 else
16042
16043 cat >>confdefs.h <<_ACEOF
16044 #define pid_t int
16045 _ACEOF
16046
16047 fi
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065      if test $gl_cv_have_include_next = yes; then
16066        gl_cv_next_sys_types_h='<'sys/types.h'>'
16067      else
16068        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16069 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16070 if ${gl_cv_next_sys_types_h+:} false; then :
16071   $as_echo_n "(cached) " >&6
16072 else
16073
16074
16075
16076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16077 /* end confdefs.h.  */
16078 #include <sys/types.h>
16079 _ACEOF
16080                 case "$host_os" in
16081     aix*) gl_absname_cpp="$ac_cpp -C" ;;
16082     *)    gl_absname_cpp="$ac_cpp" ;;
16083   esac
16084
16085   case "$host_os" in
16086     mingw*)
16087                                           gl_dirsep_regex='[/\\]'
16088       ;;
16089     *)
16090       gl_dirsep_regex='\/'
16091       ;;
16092   esac
16093       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16094   gl_header_literal_regex=`echo 'sys/types.h' \
16095                            | sed -e "$gl_make_literal_regex_sed"`
16096   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16097       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16098       s|^/[^/]|//&|
16099       p
16100       q
16101     }'
16102
16103         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16104   sed -n "$gl_absolute_header_sed"`
16105
16106            gl_header=$gl_cv_absolute_sys_types_h
16107            gl_cv_next_sys_types_h='"'$gl_header'"'
16108
16109
16110 fi
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16112 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16113      fi
16114      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
16115
16116      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16117        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16118        gl_next_as_first_directive='<'sys/types.h'>'
16119      else
16120        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16121        gl_next_as_first_directive=$gl_cv_next_sys_types_h
16122      fi
16123      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136       ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
16137 if test "x$ac_cv_have_decl_ftello" = xyes; then :
16138   ac_have_decl=1
16139 else
16140   ac_have_decl=0
16141 fi
16142
16143 cat >>confdefs.h <<_ACEOF
16144 #define HAVE_DECL_FTELLO $ac_have_decl
16145 _ACEOF
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157   :
16158
16159
16160
16161
16162
16163   if test $ac_cv_have_decl_ftello = no; then
16164     HAVE_DECL_FTELLO=0
16165   fi
16166
16167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
16168 $as_echo_n "checking for ftello... " >&6; }
16169 if ${gl_cv_func_ftello+:} false; then :
16170   $as_echo_n "(cached) " >&6
16171 else
16172
16173       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174 /* end confdefs.h.  */
16175 #include <stdio.h>
16176 int
16177 main ()
16178 {
16179 ftello (stdin);
16180   ;
16181   return 0;
16182 }
16183 _ACEOF
16184 if ac_fn_c_try_link "$LINENO"; then :
16185   gl_cv_func_ftello=yes
16186 else
16187   gl_cv_func_ftello=no
16188 fi
16189 rm -f core conftest.err conftest.$ac_objext \
16190     conftest$ac_exeext conftest.$ac_ext
16191
16192 fi
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
16194 $as_echo "$gl_cv_func_ftello" >&6; }
16195   if test $gl_cv_func_ftello = no; then
16196     HAVE_FTELLO=0
16197   else
16198     if test $WINDOWS_64_BIT_OFF_T = 1; then
16199       REPLACE_FTELLO=1
16200     fi
16201     if test $gl_cv_var_stdin_large_offset = no; then
16202       REPLACE_FTELLO=1
16203     fi
16204     if test $REPLACE_FTELLO = 0; then
16205
16206       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
16207 $as_echo_n "checking whether ftello works... " >&6; }
16208 if ${gl_cv_func_ftello_works+:} false; then :
16209   $as_echo_n "(cached) " >&6
16210 else
16211
16212                               case "$host_os" in
16213                       # Guess no on Solaris.
16214             solaris*) gl_cv_func_ftello_works="guessing no" ;;
16215                       # Guess yes otherwise.
16216             *)        gl_cv_func_ftello_works="guessing yes" ;;
16217           esac
16218           if test "$cross_compiling" = yes; then :
16219   :
16220 else
16221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222 /* end confdefs.h.  */
16223
16224 #include <stdio.h>
16225 #include <stdlib.h>
16226 #include <string.h>
16227 #define TESTFILE "conftest.tmp"
16228 int
16229 main (void)
16230 {
16231   FILE *fp;
16232
16233   /* Create a file with some contents.  */
16234   fp = fopen (TESTFILE, "w");
16235   if (fp == NULL)
16236     return 70;
16237   if (fwrite ("foogarsh", 1, 8, fp) < 8)
16238     return 71;
16239   if (fclose (fp))
16240     return 72;
16241
16242   /* The file's contents is now "foogarsh".  */
16243
16244   /* Try writing after reading to EOF.  */
16245   fp = fopen (TESTFILE, "r+");
16246   if (fp == NULL)
16247     return 73;
16248   if (fseek (fp, -1, SEEK_END))
16249     return 74;
16250   if (!(getc (fp) == 'h'))
16251     return 1;
16252   if (!(getc (fp) == EOF))
16253     return 2;
16254   if (!(ftell (fp) == 8))
16255     return 3;
16256   if (!(ftell (fp) == 8))
16257     return 4;
16258   if (!(putc ('!', fp) == '!'))
16259     return 5;
16260   if (!(ftell (fp) == 9))
16261     return 6;
16262   if (!(fclose (fp) == 0))
16263     return 7;
16264   fp = fopen (TESTFILE, "r");
16265   if (fp == NULL)
16266     return 75;
16267   {
16268     char buf[10];
16269     if (!(fread (buf, 1, 10, fp) == 9))
16270       return 10;
16271     if (!(memcmp (buf, "foogarsh!", 9) == 0))
16272       return 11;
16273   }
16274   if (!(fclose (fp) == 0))
16275     return 12;
16276
16277   /* The file's contents is now "foogarsh!".  */
16278
16279   return 0;
16280 }
16281 _ACEOF
16282 if ac_fn_c_try_run "$LINENO"; then :
16283   gl_cv_func_ftello_works=yes
16284 else
16285   gl_cv_func_ftello_works=no
16286 fi
16287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16288   conftest.$ac_objext conftest.beam conftest.$ac_ext
16289 fi
16290
16291
16292 fi
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
16294 $as_echo "$gl_cv_func_ftello_works" >&6; }
16295       case "$gl_cv_func_ftello_works" in
16296         *yes) ;;
16297         *)
16298           REPLACE_FTELLO=1
16299
16300 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
16301
16302           ;;
16303       esac
16304     fi
16305   fi
16306
16307
16308       ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
16309 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
16310   ac_have_decl=1
16311 else
16312   ac_have_decl=0
16313 fi
16314
16315 cat >>confdefs.h <<_ACEOF
16316 #define HAVE_DECL_GETDELIM $ac_have_decl
16317 _ACEOF
16318
16319
16320
16321
16322
16323
16324
16325
16326       ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
16327 if test "x$ac_cv_have_decl_getline" = xyes; then :
16328   ac_have_decl=1
16329 else
16330   ac_have_decl=0
16331 fi
16332
16333 cat >>confdefs.h <<_ACEOF
16334 #define HAVE_DECL_GETLINE $ac_have_decl
16335 _ACEOF
16336
16337
16338
16339   GNULIB_GETTIMEOFDAY=0;
16340     HAVE_GETTIMEOFDAY=1;
16341   HAVE_STRUCT_TIMEVAL=1;
16342   HAVE_SYS_TIME_H=1;
16343   REPLACE_GETTIMEOFDAY=0;
16344   REPLACE_STRUCT_TIMEVAL=0;
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355   :
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367   :
16368
16369
16370
16371
16372
16373
16374
16375
16376      if test $gl_cv_have_include_next = yes; then
16377        gl_cv_next_sys_time_h='<'sys/time.h'>'
16378      else
16379        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
16380 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
16381 if ${gl_cv_next_sys_time_h+:} false; then :
16382   $as_echo_n "(cached) " >&6
16383 else
16384
16385              if test $ac_cv_header_sys_time_h = yes; then
16386
16387
16388
16389
16390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h.  */
16392 #include <sys/time.h>
16393 _ACEOF
16394                 case "$host_os" in
16395     aix*) gl_absname_cpp="$ac_cpp -C" ;;
16396     *)    gl_absname_cpp="$ac_cpp" ;;
16397   esac
16398
16399   case "$host_os" in
16400     mingw*)
16401                                           gl_dirsep_regex='[/\\]'
16402       ;;
16403     *)
16404       gl_dirsep_regex='\/'
16405       ;;
16406   esac
16407       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16408   gl_header_literal_regex=`echo 'sys/time.h' \
16409                            | sed -e "$gl_make_literal_regex_sed"`
16410   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16411       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16412       s|^/[^/]|//&|
16413       p
16414       q
16415     }'
16416
16417         gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16418   sed -n "$gl_absolute_header_sed"`
16419
16420            gl_header=$gl_cv_absolute_sys_time_h
16421            gl_cv_next_sys_time_h='"'$gl_header'"'
16422           else
16423                gl_cv_next_sys_time_h='<'sys/time.h'>'
16424              fi
16425
16426
16427 fi
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
16429 $as_echo "$gl_cv_next_sys_time_h" >&6; }
16430      fi
16431      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
16432
16433      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16434        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16435        gl_next_as_first_directive='<'sys/time.h'>'
16436      else
16437        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16438        gl_next_as_first_directive=$gl_cv_next_sys_time_h
16439      fi
16440      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
16441
16442
16443
16444
16445
16446   if test $ac_cv_header_sys_time_h != yes; then
16447     HAVE_SYS_TIME_H=0
16448   fi
16449
16450
16451
16452
16453
16454   :
16455
16456
16457
16458
16459
16460   if test $ac_cv_header_sys_socket_h != yes; then
16461                     for ac_header in winsock2.h
16462 do :
16463   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
16464 if test "x$ac_cv_header_winsock2_h" = xyes; then :
16465   cat >>confdefs.h <<_ACEOF
16466 #define HAVE_WINSOCK2_H 1
16467 _ACEOF
16468
16469 fi
16470
16471 done
16472
16473   fi
16474   if test "$ac_cv_header_winsock2_h" = yes; then
16475     HAVE_WINSOCK2_H=1
16476     UNISTD_H_HAVE_WINSOCK2_H=1
16477     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
16478   else
16479     HAVE_WINSOCK2_H=0
16480   fi
16481
16482
16483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
16484 $as_echo_n "checking for struct timeval... " >&6; }
16485 if ${gl_cv_sys_struct_timeval+:} false; then :
16486   $as_echo_n "(cached) " >&6
16487 else
16488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16489 /* end confdefs.h.  */
16490 #if HAVE_SYS_TIME_H
16491              #include <sys/time.h>
16492             #endif
16493             #include <time.h>
16494             #if HAVE_WINSOCK2_H
16495             # include <winsock2.h>
16496             #endif
16497
16498 int
16499 main ()
16500 {
16501 static struct timeval x; x.tv_sec = x.tv_usec;
16502   ;
16503   return 0;
16504 }
16505 _ACEOF
16506 if ac_fn_c_try_compile "$LINENO"; then :
16507   gl_cv_sys_struct_timeval=yes
16508 else
16509   gl_cv_sys_struct_timeval=no
16510 fi
16511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16512
16513 fi
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
16515 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
16516   if test $gl_cv_sys_struct_timeval != yes; then
16517     HAVE_STRUCT_TIMEVAL=0
16518   else
16519                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
16520 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
16521 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
16522   $as_echo_n "(cached) " >&6
16523 else
16524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16525 /* end confdefs.h.  */
16526 #if HAVE_SYS_TIME_H
16527                #include <sys/time.h>
16528               #endif
16529               #include <time.h>
16530               #if HAVE_WINSOCK2_H
16531               # include <winsock2.h>
16532               #endif
16533
16534 int
16535 main ()
16536 {
16537 static struct timeval x;
16538               typedef int verify_tv_sec_type[
16539                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
16540               ];
16541
16542   ;
16543   return 0;
16544 }
16545 _ACEOF
16546 if ac_fn_c_try_compile "$LINENO"; then :
16547   gl_cv_sys_struct_timeval_tv_sec=yes
16548 else
16549   gl_cv_sys_struct_timeval_tv_sec=no
16550 fi
16551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16552
16553 fi
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
16555 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
16556     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
16557       REPLACE_STRUCT_TIMEVAL=1
16558     fi
16559   fi
16560
16561
16562     for gl_func in gettimeofday; do
16563     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16565 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16566 if eval \${$as_gl_Symbol+:} false; then :
16567   $as_echo_n "(cached) " >&6
16568 else
16569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h.  */
16571
16572 #if HAVE_SYS_TIME_H
16573 # include <sys/time.h>
16574 #endif
16575 #include <time.h>
16576
16577 int
16578 main ()
16579 {
16580 #undef $gl_func
16581   (void) $gl_func;
16582   ;
16583   return 0;
16584 }
16585 _ACEOF
16586 if ac_fn_c_try_compile "$LINENO"; then :
16587   eval "$as_gl_Symbol=yes"
16588 else
16589   eval "$as_gl_Symbol=no"
16590 fi
16591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16592 fi
16593 eval ac_res=\$$as_gl_Symbol
16594                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16595 $as_echo "$ac_res" >&6; }
16596     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16597   cat >>confdefs.h <<_ACEOF
16598 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16599 _ACEOF
16600
16601                      eval ac_cv_have_decl_$gl_func=yes
16602 fi
16603       done
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
16620 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
16621 if ${ac_cv_path_SED+:} false; then :
16622   $as_echo_n "(cached) " >&6
16623 else
16624             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
16625      for ac_i in 1 2 3 4 5 6 7; do
16626        ac_script="$ac_script$as_nl$ac_script"
16627      done
16628      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
16629      { ac_script=; unset ac_script;}
16630      if test -z "$SED"; then
16631   ac_path_SED_found=false
16632   # Loop through the user's path and test for each of PROGNAME-LIST
16633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16634 for as_dir in $PATH
16635 do
16636   IFS=$as_save_IFS
16637   test -z "$as_dir" && as_dir=.
16638     for ac_prog in sed gsed; do
16639     for ac_exec_ext in '' $ac_executable_extensions; do
16640       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
16641       as_fn_executable_p "$ac_path_SED" || continue
16642 # Check for GNU ac_path_SED and select it if it is found.
16643   # Check for GNU $ac_path_SED
16644 case `"$ac_path_SED" --version 2>&1` in
16645 *GNU*)
16646   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
16647 *)
16648   ac_count=0
16649   $as_echo_n 0123456789 >"conftest.in"
16650   while :
16651   do
16652     cat "conftest.in" "conftest.in" >"conftest.tmp"
16653     mv "conftest.tmp" "conftest.in"
16654     cp "conftest.in" "conftest.nl"
16655     $as_echo '' >> "conftest.nl"
16656     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
16657     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16658     as_fn_arith $ac_count + 1 && ac_count=$as_val
16659     if test $ac_count -gt ${ac_path_SED_max-0}; then
16660       # Best one so far, save it but keep looking for a better one
16661       ac_cv_path_SED="$ac_path_SED"
16662       ac_path_SED_max=$ac_count
16663     fi
16664     # 10*(2^10) chars as input seems more than enough
16665     test $ac_count -gt 10 && break
16666   done
16667   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16668 esac
16669
16670       $ac_path_SED_found && break 3
16671     done
16672   done
16673   done
16674 IFS=$as_save_IFS
16675   if test -z "$ac_cv_path_SED"; then
16676     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
16677   fi
16678 else
16679   ac_cv_path_SED=$SED
16680 fi
16681
16682 fi
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
16684 $as_echo "$ac_cv_path_SED" >&6; }
16685  SED="$ac_cv_path_SED"
16686   rm -f conftest.sed
16687
16688
16689   GNULIB__EXIT=0;
16690   GNULIB_ATOLL=0;
16691   GNULIB_CALLOC_POSIX=0;
16692   GNULIB_CANONICALIZE_FILE_NAME=0;
16693   GNULIB_GETLOADAVG=0;
16694   GNULIB_GETSUBOPT=0;
16695   GNULIB_GRANTPT=0;
16696   GNULIB_MALLOC_POSIX=0;
16697   GNULIB_MBTOWC=0;
16698   GNULIB_MKDTEMP=0;
16699   GNULIB_MKOSTEMP=0;
16700   GNULIB_MKOSTEMPS=0;
16701   GNULIB_MKSTEMP=0;
16702   GNULIB_MKSTEMPS=0;
16703   GNULIB_POSIX_OPENPT=0;
16704   GNULIB_PTSNAME=0;
16705   GNULIB_PTSNAME_R=0;
16706   GNULIB_PUTENV=0;
16707   GNULIB_RANDOM=0;
16708   GNULIB_RANDOM_R=0;
16709   GNULIB_REALLOC_POSIX=0;
16710   GNULIB_REALPATH=0;
16711   GNULIB_RPMATCH=0;
16712   GNULIB_SECURE_GETENV=0;
16713   GNULIB_SETENV=0;
16714   GNULIB_STRTOD=0;
16715   GNULIB_STRTOLL=0;
16716   GNULIB_STRTOULL=0;
16717   GNULIB_SYSTEM_POSIX=0;
16718   GNULIB_UNLOCKPT=0;
16719   GNULIB_UNSETENV=0;
16720   GNULIB_WCTOMB=0;
16721     HAVE__EXIT=1;
16722   HAVE_ATOLL=1;
16723   HAVE_CANONICALIZE_FILE_NAME=1;
16724   HAVE_DECL_GETLOADAVG=1;
16725   HAVE_GETSUBOPT=1;
16726   HAVE_GRANTPT=1;
16727   HAVE_MKDTEMP=1;
16728   HAVE_MKOSTEMP=1;
16729   HAVE_MKOSTEMPS=1;
16730   HAVE_MKSTEMP=1;
16731   HAVE_MKSTEMPS=1;
16732   HAVE_POSIX_OPENPT=1;
16733   HAVE_PTSNAME=1;
16734   HAVE_PTSNAME_R=1;
16735   HAVE_RANDOM=1;
16736   HAVE_RANDOM_H=1;
16737   HAVE_RANDOM_R=1;
16738   HAVE_REALPATH=1;
16739   HAVE_RPMATCH=1;
16740   HAVE_SECURE_GETENV=1;
16741   HAVE_SETENV=1;
16742   HAVE_DECL_SETENV=1;
16743   HAVE_STRTOD=1;
16744   HAVE_STRTOLL=1;
16745   HAVE_STRTOULL=1;
16746   HAVE_STRUCT_RANDOM_DATA=1;
16747   HAVE_SYS_LOADAVG_H=0;
16748   HAVE_UNLOCKPT=1;
16749   HAVE_DECL_UNSETENV=1;
16750   REPLACE_CALLOC=0;
16751   REPLACE_CANONICALIZE_FILE_NAME=0;
16752   REPLACE_MALLOC=0;
16753   REPLACE_MBTOWC=0;
16754   REPLACE_MKSTEMP=0;
16755   REPLACE_PTSNAME=0;
16756   REPLACE_PTSNAME_R=0;
16757   REPLACE_PUTENV=0;
16758   REPLACE_RANDOM_R=0;
16759   REPLACE_REALLOC=0;
16760   REPLACE_REALPATH=0;
16761   REPLACE_SETENV=0;
16762   REPLACE_STRTOD=0;
16763   REPLACE_UNSETENV=0;
16764   REPLACE_WCTOMB=0;
16765
16766
16767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
16768 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
16769 if ${gl_cv_func_malloc_posix+:} false; then :
16770   $as_echo_n "(cached) " >&6
16771 else
16772
16773                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16774 /* end confdefs.h.  */
16775
16776 int
16777 main ()
16778 {
16779 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16780              choke me
16781              #endif
16782
16783   ;
16784   return 0;
16785 }
16786 _ACEOF
16787 if ac_fn_c_try_compile "$LINENO"; then :
16788   gl_cv_func_malloc_posix=yes
16789 else
16790   gl_cv_func_malloc_posix=no
16791 fi
16792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16793
16794 fi
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
16796 $as_echo "$gl_cv_func_malloc_posix" >&6; }
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809   GNULIB_FFSL=0;
16810   GNULIB_FFSLL=0;
16811   GNULIB_MEMCHR=0;
16812   GNULIB_MEMMEM=0;
16813   GNULIB_MEMPCPY=0;
16814   GNULIB_MEMRCHR=0;
16815   GNULIB_RAWMEMCHR=0;
16816   GNULIB_STPCPY=0;
16817   GNULIB_STPNCPY=0;
16818   GNULIB_STRCHRNUL=0;
16819   GNULIB_STRDUP=0;
16820   GNULIB_STRNCAT=0;
16821   GNULIB_STRNDUP=0;
16822   GNULIB_STRNLEN=0;
16823   GNULIB_STRPBRK=0;
16824   GNULIB_STRSEP=0;
16825   GNULIB_STRSTR=0;
16826   GNULIB_STRCASESTR=0;
16827   GNULIB_STRTOK_R=0;
16828   GNULIB_MBSLEN=0;
16829   GNULIB_MBSNLEN=0;
16830   GNULIB_MBSCHR=0;
16831   GNULIB_MBSRCHR=0;
16832   GNULIB_MBSSTR=0;
16833   GNULIB_MBSCASECMP=0;
16834   GNULIB_MBSNCASECMP=0;
16835   GNULIB_MBSPCASECMP=0;
16836   GNULIB_MBSCASESTR=0;
16837   GNULIB_MBSCSPN=0;
16838   GNULIB_MBSPBRK=0;
16839   GNULIB_MBSSPN=0;
16840   GNULIB_MBSSEP=0;
16841   GNULIB_MBSTOK_R=0;
16842   GNULIB_STRERROR=0;
16843   GNULIB_STRERROR_R=0;
16844   GNULIB_STRSIGNAL=0;
16845   GNULIB_STRVERSCMP=0;
16846   HAVE_MBSLEN=0;
16847     HAVE_FFSL=1;
16848   HAVE_FFSLL=1;
16849   HAVE_MEMCHR=1;
16850   HAVE_DECL_MEMMEM=1;
16851   HAVE_MEMPCPY=1;
16852   HAVE_DECL_MEMRCHR=1;
16853   HAVE_RAWMEMCHR=1;
16854   HAVE_STPCPY=1;
16855   HAVE_STPNCPY=1;
16856   HAVE_STRCHRNUL=1;
16857   HAVE_DECL_STRDUP=1;
16858   HAVE_DECL_STRNDUP=1;
16859   HAVE_DECL_STRNLEN=1;
16860   HAVE_STRPBRK=1;
16861   HAVE_STRSEP=1;
16862   HAVE_STRCASESTR=1;
16863   HAVE_DECL_STRTOK_R=1;
16864   HAVE_DECL_STRERROR_R=1;
16865   HAVE_DECL_STRSIGNAL=1;
16866   HAVE_STRVERSCMP=1;
16867   REPLACE_MEMCHR=0;
16868   REPLACE_MEMMEM=0;
16869   REPLACE_STPNCPY=0;
16870   REPLACE_STRDUP=0;
16871   REPLACE_STRSTR=0;
16872   REPLACE_STRCASESTR=0;
16873   REPLACE_STRCHRNUL=0;
16874   REPLACE_STRERROR=0;
16875   REPLACE_STRERROR_R=0;
16876   REPLACE_STRNCAT=0;
16877   REPLACE_STRNDUP=0;
16878   REPLACE_STRNLEN=0;
16879   REPLACE_STRSIGNAL=0;
16880   REPLACE_STRTOK_R=0;
16881   UNDEFINE_STRTOK_R=0;
16882
16883
16884
16885
16886
16887   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
16888   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
16889   # irrelevant for anonymous mappings.
16890   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16891 if test "x$ac_cv_func_mmap" = xyes; then :
16892   gl_have_mmap=yes
16893 else
16894   gl_have_mmap=no
16895 fi
16896
16897
16898   # Try to allow MAP_ANONYMOUS.
16899   gl_have_mmap_anonymous=no
16900   if test $gl_have_mmap = yes; then
16901     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
16902 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
16903     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h.  */
16905
16906 #include <sys/mman.h>
16907 #ifdef MAP_ANONYMOUS
16908     I cannot identify this map
16909 #endif
16910
16911 _ACEOF
16912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16913   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
16914   gl_have_mmap_anonymous=yes
16915 fi
16916 rm -f conftest*
16917
16918     if test $gl_have_mmap_anonymous != yes; then
16919       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h.  */
16921
16922 #include <sys/mman.h>
16923 #ifdef MAP_ANON
16924     I cannot identify this map
16925 #endif
16926
16927 _ACEOF
16928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16929   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
16930
16931 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
16932
16933          gl_have_mmap_anonymous=yes
16934 fi
16935 rm -f conftest*
16936
16937     fi
16938     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
16939 $as_echo "$gl_have_mmap_anonymous" >&6; }
16940     if test $gl_have_mmap_anonymous = yes; then
16941
16942 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
16943
16944     fi
16945   fi
16946
16947
16948   :
16949
16950
16951
16952
16953
16954
16955   :
16956
16957
16958
16959
16960
16961
16962
16963
16964   if test $HAVE_MEMCHR = 1; then
16965     # Detect platform-specific bugs in some versions of glibc:
16966     # memchr should not dereference anything with length 0
16967     #   http://bugzilla.redhat.com/499689
16968     # memchr should not dereference overestimated length after a match
16969     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
16970     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
16971     # Assume that memchr works on platforms that lack mprotect.
16972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
16973 $as_echo_n "checking whether memchr works... " >&6; }
16974 if ${gl_cv_func_memchr_works+:} false; then :
16975   $as_echo_n "(cached) " >&6
16976 else
16977   if test "$cross_compiling" = yes; then :
16978          gl_cv_func_memchr_works="guessing no"
16979 else
16980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h.  */
16982
16983 #include <string.h>
16984 #if HAVE_SYS_MMAN_H
16985 # include <fcntl.h>
16986 # include <unistd.h>
16987 # include <sys/types.h>
16988 # include <sys/mman.h>
16989 # ifndef MAP_FILE
16990 #  define MAP_FILE 0
16991 # endif
16992 #endif
16993
16994 int
16995 main ()
16996 {
16997
16998   int result = 0;
16999   char *fence = NULL;
17000 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17001 # if HAVE_MAP_ANONYMOUS
17002   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
17003   const int fd = -1;
17004 # else /* !HAVE_MAP_ANONYMOUS */
17005   const int flags = MAP_FILE | MAP_PRIVATE;
17006   int fd = open ("/dev/zero", O_RDONLY, 0666);
17007   if (fd >= 0)
17008 # endif
17009     {
17010       int pagesize = getpagesize ();
17011       char *two_pages =
17012         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
17013                        flags, fd, 0);
17014       if (two_pages != (char *)(-1)
17015           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
17016         fence = two_pages + pagesize;
17017     }
17018 #endif
17019   if (fence)
17020     {
17021       if (memchr (fence, 0, 0))
17022         result |= 1;
17023       strcpy (fence - 9, "12345678");
17024       if (memchr (fence - 9, 0, 79) != fence - 1)
17025         result |= 2;
17026       if (memchr (fence - 1, 0, 3) != fence - 1)
17027         result |= 4;
17028     }
17029   return result;
17030
17031   ;
17032   return 0;
17033 }
17034 _ACEOF
17035 if ac_fn_c_try_run "$LINENO"; then :
17036   gl_cv_func_memchr_works=yes
17037 else
17038   gl_cv_func_memchr_works=no
17039 fi
17040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17041   conftest.$ac_objext conftest.beam conftest.$ac_ext
17042 fi
17043
17044 fi
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
17046 $as_echo "$gl_cv_func_memchr_works" >&6; }
17047     if test "$gl_cv_func_memchr_works" != yes; then
17048       REPLACE_MEMCHR=1
17049     fi
17050   fi
17051
17052
17053       ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
17054 if test "x$ac_cv_have_decl_memmem" = xyes; then :
17055   ac_have_decl=1
17056 else
17057   ac_have_decl=0
17058 fi
17059
17060 cat >>confdefs.h <<_ACEOF
17061 #define HAVE_DECL_MEMMEM $ac_have_decl
17062 _ACEOF
17063
17064
17065
17066
17067
17068
17069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
17070 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
17071 if ${gl_cv_minmax_in_limits_h+:} false; then :
17072   $as_echo_n "(cached) " >&6
17073 else
17074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h.  */
17076 #include <limits.h>
17077             int x = MIN (42, 17);
17078 int
17079 main ()
17080 {
17081
17082   ;
17083   return 0;
17084 }
17085 _ACEOF
17086 if ac_fn_c_try_compile "$LINENO"; then :
17087   gl_cv_minmax_in_limits_h=yes
17088 else
17089   gl_cv_minmax_in_limits_h=no
17090 fi
17091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17092 fi
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
17094 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
17095   if test $gl_cv_minmax_in_limits_h = yes; then
17096
17097 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
17098
17099   fi
17100
17101
17102
17103
17104
17105
17106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
17107 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
17108 if ${gl_cv_minmax_in_sys_param_h+:} false; then :
17109   $as_echo_n "(cached) " >&6
17110 else
17111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112 /* end confdefs.h.  */
17113 #include <sys/param.h>
17114             int x = MIN (42, 17);
17115 int
17116 main ()
17117 {
17118
17119   ;
17120   return 0;
17121 }
17122 _ACEOF
17123 if ac_fn_c_try_compile "$LINENO"; then :
17124   gl_cv_minmax_in_sys_param_h=yes
17125 else
17126   gl_cv_minmax_in_sys_param_h=no
17127 fi
17128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17129 fi
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
17131 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
17132   if test $gl_cv_minmax_in_sys_param_h = yes; then
17133
17134 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
17135
17136   fi
17137
17138
17139
17140
17141
17142     gl_cv_c_multiarch=no
17143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144 /* end confdefs.h.  */
17145 #ifndef __APPLE_CC__
17146          not a universal capable compiler
17147         #endif
17148         typedef int dummy;
17149
17150 _ACEOF
17151 if ac_fn_c_try_compile "$LINENO"; then :
17152
17153                arch=
17154      prev=
17155      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17156        if test -n "$prev"; then
17157          case $word in
17158            i?86 | x86_64 | ppc | ppc64)
17159              if test -z "$arch" || test "$arch" = "$word"; then
17160                arch="$word"
17161              else
17162                gl_cv_c_multiarch=yes
17163              fi
17164              ;;
17165          esac
17166          prev=
17167        else
17168          if test "x$word" = "x-arch"; then
17169            prev=arch
17170          fi
17171        fi
17172      done
17173
17174 fi
17175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17176   if test $gl_cv_c_multiarch = yes; then
17177     APPLE_UNIVERSAL_BUILD=1
17178   else
17179     APPLE_UNIVERSAL_BUILD=0
17180   fi
17181
17182
17183
17184   GNULIB_GETADDRINFO=0;
17185     HAVE_STRUCT_ADDRINFO=1;
17186   HAVE_DECL_FREEADDRINFO=1;
17187   HAVE_DECL_GAI_STRERROR=1;
17188   HAVE_DECL_GETADDRINFO=1;
17189   HAVE_DECL_GETNAMEINFO=1;
17190   REPLACE_GAI_STRERROR=0;
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209   :
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
17220 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
17221 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
17222   $as_echo_n "(cached) " >&6
17223 else
17224
17225       if test "$cross_compiling" = yes; then :
17226
17227          case "$host_os" in
17228                                  # Guess yes on glibc systems.
17229            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
17230                                  # Guess yes on FreeBSD >= 5.
17231            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
17232            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17233                                  # Guess yes on Mac OS X >= 10.3.
17234            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
17235            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
17236                                  # Guess yes on OpenBSD >= 3.9.
17237            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
17238                                  gl_cv_func_snprintf_retval_c99="guessing no";;
17239            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
17240                                  # Guess yes on Solaris >= 2.10.
17241            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
17242            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
17243                                  # Guess yes on AIX >= 4.
17244            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
17245            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
17246                                  # Guess yes on NetBSD >= 3.
17247            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
17248                                  gl_cv_func_snprintf_retval_c99="guessing no";;
17249            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
17250                                  # Guess yes on BeOS.
17251            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
17252                                  # If we don't know, assume the worst.
17253            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
17254          esac
17255
17256 else
17257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258 /* end confdefs.h.  */
17259
17260 #include <stdio.h>
17261 #include <string.h>
17262 #if HAVE_SNPRINTF
17263 # define my_snprintf snprintf
17264 #else
17265 # include <stdarg.h>
17266 static int my_snprintf (char *buf, int size, const char *format, ...)
17267 {
17268   va_list args;
17269   int ret;
17270   va_start (args, format);
17271   ret = vsnprintf (buf, size, format, args);
17272   va_end (args);
17273   return ret;
17274 }
17275 #endif
17276 static char buf[100];
17277 int main ()
17278 {
17279   strcpy (buf, "ABCDEF");
17280   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
17281     return 1;
17282   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
17283     return 2;
17284   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
17285     return 3;
17286   return 0;
17287 }
17288 _ACEOF
17289 if ac_fn_c_try_run "$LINENO"; then :
17290   gl_cv_func_snprintf_retval_c99=yes
17291 else
17292   gl_cv_func_snprintf_retval_c99=no
17293 fi
17294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17295   conftest.$ac_objext conftest.beam conftest.$ac_ext
17296 fi
17297
17298
17299 fi
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
17301 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
17302
17303
17304       ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
17305 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
17306   ac_have_decl=1
17307 else
17308   ac_have_decl=0
17309 fi
17310
17311 cat >>confdefs.h <<_ACEOF
17312 #define HAVE_DECL_SNPRINTF $ac_have_decl
17313 _ACEOF
17314
17315
17316
17317   :
17318
17319
17320
17321
17322
17323    if test $ac_cv_header_sys_socket_h = no; then
17324                          for ac_header in ws2tcpip.h
17325 do :
17326   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
17327 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
17328   cat >>confdefs.h <<_ACEOF
17329 #define HAVE_WS2TCPIP_H 1
17330 _ACEOF
17331
17332 fi
17333
17334 done
17335
17336    fi
17337
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17339 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17340 if ${ac_cv_header_stdbool_h+:} false; then :
17341   $as_echo_n "(cached) " >&6
17342 else
17343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h.  */
17345
17346              #include <stdbool.h>
17347              #ifndef bool
17348               "error: bool is not defined"
17349              #endif
17350              #ifndef false
17351               "error: false is not defined"
17352              #endif
17353              #if false
17354               "error: false is not 0"
17355              #endif
17356              #ifndef true
17357               "error: true is not defined"
17358              #endif
17359              #if true != 1
17360               "error: true is not 1"
17361              #endif
17362              #ifndef __bool_true_false_are_defined
17363               "error: __bool_true_false_are_defined is not defined"
17364              #endif
17365
17366              struct s { _Bool s: 1; _Bool t; } s;
17367
17368              char a[true == 1 ? 1 : -1];
17369              char b[false == 0 ? 1 : -1];
17370              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17371              char d[(bool) 0.5 == true ? 1 : -1];
17372              /* See body of main program for 'e'.  */
17373              char f[(_Bool) 0.0 == false ? 1 : -1];
17374              char g[true];
17375              char h[sizeof (_Bool)];
17376              char i[sizeof s.t];
17377              enum { j = false, k = true, l = false * true, m = true * 256 };
17378              /* The following fails for
17379                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17380              _Bool n[m];
17381              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17382              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17383              /* Catch a bug in an HP-UX C compiler.  See
17384                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17385                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17386               */
17387              _Bool q = true;
17388              _Bool *pq = &q;
17389
17390 int
17391 main ()
17392 {
17393
17394              bool e = &s;
17395              *pq |= q;
17396              *pq |= ! q;
17397              /* Refer to every declared value, to avoid compiler optimizations.  */
17398              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17399                      + !m + !n + !o + !p + !q + !pq);
17400
17401   ;
17402   return 0;
17403 }
17404 _ACEOF
17405 if ac_fn_c_try_compile "$LINENO"; then :
17406   ac_cv_header_stdbool_h=yes
17407 else
17408   ac_cv_header_stdbool_h=no
17409 fi
17410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17411 fi
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17413 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17414    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17415 if test "x$ac_cv_type__Bool" = xyes; then :
17416
17417 cat >>confdefs.h <<_ACEOF
17418 #define HAVE__BOOL 1
17419 _ACEOF
17420
17421
17422 fi
17423
17424
17425
17426     REPLACE_NULL=0;
17427   HAVE_WCHAR_T=1;
17428
17429
17430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17431 $as_echo_n "checking for wchar_t... " >&6; }
17432 if ${gt_cv_c_wchar_t+:} false; then :
17433   $as_echo_n "(cached) " >&6
17434 else
17435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17436 /* end confdefs.h.  */
17437 #include <stddef.h>
17438        wchar_t foo = (wchar_t)'\0';
17439 int
17440 main ()
17441 {
17442
17443   ;
17444   return 0;
17445 }
17446 _ACEOF
17447 if ac_fn_c_try_compile "$LINENO"; then :
17448   gt_cv_c_wchar_t=yes
17449 else
17450   gt_cv_c_wchar_t=no
17451 fi
17452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17453 fi
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17455 $as_echo "$gt_cv_c_wchar_t" >&6; }
17456   if test $gt_cv_c_wchar_t = yes; then
17457
17458 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17459
17460   fi
17461
17462
17463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17464 $as_echo_n "checking for long long int... " >&6; }
17465 if ${ac_cv_type_long_long_int+:} false; then :
17466   $as_echo_n "(cached) " >&6
17467 else
17468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469 /* end confdefs.h.  */
17470
17471   /* For now, do not test the preprocessor; as of 2007 there are too many
17472          implementations with broken preprocessors.  Perhaps this can
17473          be revisited in 2012.  In the meantime, code should not expect
17474          #if to work with literals wider than 32 bits.  */
17475       /* Test literals.  */
17476       long long int ll = 9223372036854775807ll;
17477       long long int nll = -9223372036854775807LL;
17478       unsigned long long int ull = 18446744073709551615ULL;
17479       /* Test constant expressions.   */
17480       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17481                      ? 1 : -1)];
17482       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17483                      ? 1 : -1)];
17484       int i = 63;
17485 int
17486 main ()
17487 {
17488 /* Test availability of runtime routines for shift and division.  */
17489       long long int llmax = 9223372036854775807ll;
17490       unsigned long long int ullmax = 18446744073709551615ull;
17491       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17492               | (llmax / ll) | (llmax % ll)
17493               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17494               | (ullmax / ull) | (ullmax % ull));
17495   ;
17496   return 0;
17497 }
17498
17499 _ACEOF
17500 if ac_fn_c_try_link "$LINENO"; then :
17501                           if test "$cross_compiling" = yes; then :
17502   ac_cv_type_long_long_int=yes
17503 else
17504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17505 /* end confdefs.h.  */
17506 #include <limits.h>
17507                #ifndef LLONG_MAX
17508                # define HALF \
17509                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17510                # define LLONG_MAX (HALF - 1 + HALF)
17511                #endif
17512 int
17513 main ()
17514 {
17515 long long int n = 1;
17516                int i;
17517                for (i = 0; ; i++)
17518                  {
17519                    long long int m = n << i;
17520                    if (m >> i != n)
17521                      return 1;
17522                    if (LLONG_MAX / 2 < m)
17523                      break;
17524                  }
17525                return 0;
17526   ;
17527   return 0;
17528 }
17529 _ACEOF
17530 if ac_fn_c_try_run "$LINENO"; then :
17531   ac_cv_type_long_long_int=yes
17532 else
17533   ac_cv_type_long_long_int=no
17534 fi
17535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17536   conftest.$ac_objext conftest.beam conftest.$ac_ext
17537 fi
17538
17539 else
17540   ac_cv_type_long_long_int=no
17541 fi
17542 rm -f core conftest.err conftest.$ac_objext \
17543     conftest$ac_exeext conftest.$ac_ext
17544 fi
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17546 $as_echo "$ac_cv_type_long_long_int" >&6; }
17547   if test $ac_cv_type_long_long_int = yes; then
17548
17549 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17550
17551   fi
17552
17553
17554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17555 $as_echo_n "checking for unsigned long long int... " >&6; }
17556 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17557   $as_echo_n "(cached) " >&6
17558 else
17559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17560 /* end confdefs.h.  */
17561
17562   /* For now, do not test the preprocessor; as of 2007 there are too many
17563          implementations with broken preprocessors.  Perhaps this can
17564          be revisited in 2012.  In the meantime, code should not expect
17565          #if to work with literals wider than 32 bits.  */
17566       /* Test literals.  */
17567       long long int ll = 9223372036854775807ll;
17568       long long int nll = -9223372036854775807LL;
17569       unsigned long long int ull = 18446744073709551615ULL;
17570       /* Test constant expressions.   */
17571       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17572                      ? 1 : -1)];
17573       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17574                      ? 1 : -1)];
17575       int i = 63;
17576 int
17577 main ()
17578 {
17579 /* Test availability of runtime routines for shift and division.  */
17580       long long int llmax = 9223372036854775807ll;
17581       unsigned long long int ullmax = 18446744073709551615ull;
17582       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17583               | (llmax / ll) | (llmax % ll)
17584               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17585               | (ullmax / ull) | (ullmax % ull));
17586   ;
17587   return 0;
17588 }
17589
17590 _ACEOF
17591 if ac_fn_c_try_link "$LINENO"; then :
17592   ac_cv_type_unsigned_long_long_int=yes
17593 else
17594   ac_cv_type_unsigned_long_long_int=no
17595 fi
17596 rm -f core conftest.err conftest.$ac_objext \
17597     conftest$ac_exeext conftest.$ac_ext
17598 fi
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17600 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17601   if test $ac_cv_type_unsigned_long_long_int = yes; then
17602
17603 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17604
17605   fi
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620   if test $ac_cv_type_long_long_int = yes; then
17621     HAVE_LONG_LONG_INT=1
17622   else
17623     HAVE_LONG_LONG_INT=0
17624   fi
17625
17626
17627   if test $ac_cv_type_unsigned_long_long_int = yes; then
17628     HAVE_UNSIGNED_LONG_LONG_INT=1
17629   else
17630     HAVE_UNSIGNED_LONG_LONG_INT=0
17631   fi
17632
17633
17634
17635   :
17636
17637
17638
17639
17640
17641   if test $ac_cv_header_wchar_h = yes; then
17642     HAVE_WCHAR_H=1
17643   else
17644     HAVE_WCHAR_H=0
17645   fi
17646
17647
17648       if test $ac_cv_header_inttypes_h = yes; then
17649     HAVE_INTTYPES_H=1
17650   else
17651     HAVE_INTTYPES_H=0
17652   fi
17653
17654
17655       if test $ac_cv_header_sys_types_h = yes; then
17656     HAVE_SYS_TYPES_H=1
17657   else
17658     HAVE_SYS_TYPES_H=0
17659   fi
17660
17661
17662
17663
17664
17665
17666
17667
17668   :
17669
17670
17671
17672
17673
17674
17675
17676
17677      if test $gl_cv_have_include_next = yes; then
17678        gl_cv_next_stdint_h='<'stdint.h'>'
17679      else
17680        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17681 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17682 if ${gl_cv_next_stdint_h+:} false; then :
17683   $as_echo_n "(cached) " >&6
17684 else
17685
17686              if test $ac_cv_header_stdint_h = yes; then
17687
17688
17689
17690
17691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692 /* end confdefs.h.  */
17693 #include <stdint.h>
17694 _ACEOF
17695                 case "$host_os" in
17696     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17697     *)    gl_absname_cpp="$ac_cpp" ;;
17698   esac
17699
17700   case "$host_os" in
17701     mingw*)
17702                                           gl_dirsep_regex='[/\\]'
17703       ;;
17704     *)
17705       gl_dirsep_regex='\/'
17706       ;;
17707   esac
17708       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17709   gl_header_literal_regex=`echo 'stdint.h' \
17710                            | sed -e "$gl_make_literal_regex_sed"`
17711   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17712       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17713       s|^/[^/]|//&|
17714       p
17715       q
17716     }'
17717
17718         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17719   sed -n "$gl_absolute_header_sed"`
17720
17721            gl_header=$gl_cv_absolute_stdint_h
17722            gl_cv_next_stdint_h='"'$gl_header'"'
17723           else
17724                gl_cv_next_stdint_h='<'stdint.h'>'
17725              fi
17726
17727
17728 fi
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17730 $as_echo "$gl_cv_next_stdint_h" >&6; }
17731      fi
17732      NEXT_STDINT_H=$gl_cv_next_stdint_h
17733
17734      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17735        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17736        gl_next_as_first_directive='<'stdint.h'>'
17737      else
17738        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17739        gl_next_as_first_directive=$gl_cv_next_stdint_h
17740      fi
17741      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17742
17743
17744
17745
17746   if test $ac_cv_header_stdint_h = yes; then
17747     HAVE_STDINT_H=1
17748   else
17749     HAVE_STDINT_H=0
17750   fi
17751
17752
17753     if test $ac_cv_header_stdint_h = yes; then
17754     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17755 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17756 if ${gl_cv_header_working_stdint_h+:} false; then :
17757   $as_echo_n "(cached) " >&6
17758 else
17759   gl_cv_header_working_stdint_h=no
17760        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h.  */
17762
17763
17764 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17765 #include <stdint.h>
17766 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
17767 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17768 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17769 #endif
17770
17771
17772   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17773      included before <wchar.h>.  */
17774   #include <stddef.h>
17775   #include <signal.h>
17776   #if HAVE_WCHAR_H
17777   # include <stdio.h>
17778   # include <time.h>
17779   # include <wchar.h>
17780   #endif
17781
17782
17783 #ifdef INT8_MAX
17784 int8_t a1 = INT8_MAX;
17785 int8_t a1min = INT8_MIN;
17786 #endif
17787 #ifdef INT16_MAX
17788 int16_t a2 = INT16_MAX;
17789 int16_t a2min = INT16_MIN;
17790 #endif
17791 #ifdef INT32_MAX
17792 int32_t a3 = INT32_MAX;
17793 int32_t a3min = INT32_MIN;
17794 #endif
17795 #ifdef INT64_MAX
17796 int64_t a4 = INT64_MAX;
17797 int64_t a4min = INT64_MIN;
17798 #endif
17799 #ifdef UINT8_MAX
17800 uint8_t b1 = UINT8_MAX;
17801 #else
17802 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17803 #endif
17804 #ifdef UINT16_MAX
17805 uint16_t b2 = UINT16_MAX;
17806 #endif
17807 #ifdef UINT32_MAX
17808 uint32_t b3 = UINT32_MAX;
17809 #endif
17810 #ifdef UINT64_MAX
17811 uint64_t b4 = UINT64_MAX;
17812 #endif
17813 int_least8_t c1 = INT8_C (0x7f);
17814 int_least8_t c1max = INT_LEAST8_MAX;
17815 int_least8_t c1min = INT_LEAST8_MIN;
17816 int_least16_t c2 = INT16_C (0x7fff);
17817 int_least16_t c2max = INT_LEAST16_MAX;
17818 int_least16_t c2min = INT_LEAST16_MIN;
17819 int_least32_t c3 = INT32_C (0x7fffffff);
17820 int_least32_t c3max = INT_LEAST32_MAX;
17821 int_least32_t c3min = INT_LEAST32_MIN;
17822 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17823 int_least64_t c4max = INT_LEAST64_MAX;
17824 int_least64_t c4min = INT_LEAST64_MIN;
17825 uint_least8_t d1 = UINT8_C (0xff);
17826 uint_least8_t d1max = UINT_LEAST8_MAX;
17827 uint_least16_t d2 = UINT16_C (0xffff);
17828 uint_least16_t d2max = UINT_LEAST16_MAX;
17829 uint_least32_t d3 = UINT32_C (0xffffffff);
17830 uint_least32_t d3max = UINT_LEAST32_MAX;
17831 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17832 uint_least64_t d4max = UINT_LEAST64_MAX;
17833 int_fast8_t e1 = INT_FAST8_MAX;
17834 int_fast8_t e1min = INT_FAST8_MIN;
17835 int_fast16_t e2 = INT_FAST16_MAX;
17836 int_fast16_t e2min = INT_FAST16_MIN;
17837 int_fast32_t e3 = INT_FAST32_MAX;
17838 int_fast32_t e3min = INT_FAST32_MIN;
17839 int_fast64_t e4 = INT_FAST64_MAX;
17840 int_fast64_t e4min = INT_FAST64_MIN;
17841 uint_fast8_t f1 = UINT_FAST8_MAX;
17842 uint_fast16_t f2 = UINT_FAST16_MAX;
17843 uint_fast32_t f3 = UINT_FAST32_MAX;
17844 uint_fast64_t f4 = UINT_FAST64_MAX;
17845 #ifdef INTPTR_MAX
17846 intptr_t g = INTPTR_MAX;
17847 intptr_t gmin = INTPTR_MIN;
17848 #endif
17849 #ifdef UINTPTR_MAX
17850 uintptr_t h = UINTPTR_MAX;
17851 #endif
17852 intmax_t i = INTMAX_MAX;
17853 uintmax_t j = UINTMAX_MAX;
17854
17855 #include <limits.h> /* for CHAR_BIT */
17856 #define TYPE_MINIMUM(t) \
17857   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17858 #define TYPE_MAXIMUM(t) \
17859   ((t) ((t) 0 < (t) -1 \
17860         ? (t) -1 \
17861         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17862 struct s {
17863   int check_PTRDIFF:
17864       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17865       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17866       ? 1 : -1;
17867   /* Detect bug in FreeBSD 6.0 / ia64.  */
17868   int check_SIG_ATOMIC:
17869       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17870       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17871       ? 1 : -1;
17872   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17873   int check_WCHAR:
17874       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17875       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17876       ? 1 : -1;
17877   /* Detect bug in mingw.  */
17878   int check_WINT:
17879       WINT_MIN == TYPE_MINIMUM (wint_t)
17880       && WINT_MAX == TYPE_MAXIMUM (wint_t)
17881       ? 1 : -1;
17882
17883   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
17884   int check_UINT8_C:
17885         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17886   int check_UINT16_C:
17887         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17888
17889   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
17890 #ifdef UINT8_MAX
17891   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17892 #endif
17893 #ifdef UINT16_MAX
17894   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17895 #endif
17896 #ifdef UINT32_MAX
17897   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17898 #endif
17899 #ifdef UINT64_MAX
17900   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17901 #endif
17902   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17903   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17904   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17905   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17906   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17907   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17908   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17909   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17910   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17911   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17912   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17913 };
17914
17915 int
17916 main ()
17917 {
17918
17919   ;
17920   return 0;
17921 }
17922 _ACEOF
17923 if ac_fn_c_try_compile "$LINENO"; then :
17924                                                     if test "$cross_compiling" = yes; then :
17925                  gl_cv_header_working_stdint_h=yes
17926
17927 else
17928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17929 /* end confdefs.h.  */
17930
17931
17932 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17933 #include <stdint.h>
17934
17935
17936   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17937      included before <wchar.h>.  */
17938   #include <stddef.h>
17939   #include <signal.h>
17940   #if HAVE_WCHAR_H
17941   # include <stdio.h>
17942   # include <time.h>
17943   # include <wchar.h>
17944   #endif
17945
17946
17947 #include <stdio.h>
17948 #include <string.h>
17949 #define MVAL(macro) MVAL1(macro)
17950 #define MVAL1(expression) #expression
17951 static const char *macro_values[] =
17952   {
17953 #ifdef INT8_MAX
17954     MVAL (INT8_MAX),
17955 #endif
17956 #ifdef INT16_MAX
17957     MVAL (INT16_MAX),
17958 #endif
17959 #ifdef INT32_MAX
17960     MVAL (INT32_MAX),
17961 #endif
17962 #ifdef INT64_MAX
17963     MVAL (INT64_MAX),
17964 #endif
17965 #ifdef UINT8_MAX
17966     MVAL (UINT8_MAX),
17967 #endif
17968 #ifdef UINT16_MAX
17969     MVAL (UINT16_MAX),
17970 #endif
17971 #ifdef UINT32_MAX
17972     MVAL (UINT32_MAX),
17973 #endif
17974 #ifdef UINT64_MAX
17975     MVAL (UINT64_MAX),
17976 #endif
17977     NULL
17978   };
17979
17980 int
17981 main ()
17982 {
17983
17984   const char **mv;
17985   for (mv = macro_values; *mv != NULL; mv++)
17986     {
17987       const char *value = *mv;
17988       /* Test whether it looks like a cast expression.  */
17989       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17990           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17991           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17992           || strncmp (value, "((int)"/*)*/, 6) == 0
17993           || strncmp (value, "((signed short)"/*)*/, 15) == 0
17994           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17995         return mv - macro_values + 1;
17996     }
17997   return 0;
17998
17999   ;
18000   return 0;
18001 }
18002 _ACEOF
18003 if ac_fn_c_try_run "$LINENO"; then :
18004   gl_cv_header_working_stdint_h=yes
18005 fi
18006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18007   conftest.$ac_objext conftest.beam conftest.$ac_ext
18008 fi
18009
18010
18011 fi
18012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013
18014 fi
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18016 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18017   fi
18018   if test "$gl_cv_header_working_stdint_h" = yes; then
18019     STDINT_H=
18020   else
18021             for ac_header in sys/inttypes.h sys/bitypes.h
18022 do :
18023   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18024 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18025 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18026   cat >>confdefs.h <<_ACEOF
18027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18028 _ACEOF
18029
18030 fi
18031
18032 done
18033
18034     if test $ac_cv_header_sys_inttypes_h = yes; then
18035       HAVE_SYS_INTTYPES_H=1
18036     else
18037       HAVE_SYS_INTTYPES_H=0
18038     fi
18039
18040     if test $ac_cv_header_sys_bitypes_h = yes; then
18041       HAVE_SYS_BITYPES_H=1
18042     else
18043       HAVE_SYS_BITYPES_H=0
18044     fi
18045
18046
18047
18048
18049   if test $APPLE_UNIVERSAL_BUILD = 0; then
18050
18051
18052   for gltype in ptrdiff_t size_t ; do
18053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18054 $as_echo_n "checking for bit size of $gltype... " >&6; }
18055 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18056   $as_echo_n "(cached) " >&6
18057 else
18058   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
18059   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18060      included before <wchar.h>.  */
18061   #include <stddef.h>
18062   #include <signal.h>
18063   #if HAVE_WCHAR_H
18064   # include <stdio.h>
18065   # include <time.h>
18066   # include <wchar.h>
18067   #endif
18068
18069 #include <limits.h>"; then :
18070
18071 else
18072   result=unknown
18073 fi
18074
18075        eval gl_cv_bitsizeof_${gltype}=\$result
18076
18077 fi
18078 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18079                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18080 $as_echo "$ac_res" >&6; }
18081     eval result=\$gl_cv_bitsizeof_${gltype}
18082     if test $result = unknown; then
18083                                                 result=0
18084     fi
18085     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18086     cat >>confdefs.h <<_ACEOF
18087 #define BITSIZEOF_${GLTYPE} $result
18088 _ACEOF
18089
18090     eval BITSIZEOF_${GLTYPE}=\$result
18091   done
18092
18093
18094   fi
18095
18096
18097   for gltype in sig_atomic_t wchar_t wint_t ; do
18098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18099 $as_echo_n "checking for bit size of $gltype... " >&6; }
18100 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18101   $as_echo_n "(cached) " >&6
18102 else
18103   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
18104   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18105      included before <wchar.h>.  */
18106   #include <stddef.h>
18107   #include <signal.h>
18108   #if HAVE_WCHAR_H
18109   # include <stdio.h>
18110   # include <time.h>
18111   # include <wchar.h>
18112   #endif
18113
18114 #include <limits.h>"; then :
18115
18116 else
18117   result=unknown
18118 fi
18119
18120        eval gl_cv_bitsizeof_${gltype}=\$result
18121
18122 fi
18123 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18124                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18125 $as_echo "$ac_res" >&6; }
18126     eval result=\$gl_cv_bitsizeof_${gltype}
18127     if test $result = unknown; then
18128                                                 result=0
18129     fi
18130     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18131     cat >>confdefs.h <<_ACEOF
18132 #define BITSIZEOF_${GLTYPE} $result
18133 _ACEOF
18134
18135     eval BITSIZEOF_${GLTYPE}=\$result
18136   done
18137
18138
18139
18140
18141   for gltype in sig_atomic_t wchar_t wint_t ; do
18142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18143 $as_echo_n "checking whether $gltype is signed... " >&6; }
18144 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
18145   $as_echo_n "(cached) " >&6
18146 else
18147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h.  */
18149
18150   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18151      included before <wchar.h>.  */
18152   #include <stddef.h>
18153   #include <signal.h>
18154   #if HAVE_WCHAR_H
18155   # include <stdio.h>
18156   # include <time.h>
18157   # include <wchar.h>
18158   #endif
18159
18160             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18161 int
18162 main ()
18163 {
18164
18165   ;
18166   return 0;
18167 }
18168 _ACEOF
18169 if ac_fn_c_try_compile "$LINENO"; then :
18170   result=yes
18171 else
18172   result=no
18173 fi
18174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18175        eval gl_cv_type_${gltype}_signed=\$result
18176
18177 fi
18178 eval ac_res=\$gl_cv_type_${gltype}_signed
18179                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18180 $as_echo "$ac_res" >&6; }
18181     eval result=\$gl_cv_type_${gltype}_signed
18182     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18183     if test "$result" = yes; then
18184       cat >>confdefs.h <<_ACEOF
18185 #define HAVE_SIGNED_${GLTYPE} 1
18186 _ACEOF
18187
18188       eval HAVE_SIGNED_${GLTYPE}=1
18189     else
18190       eval HAVE_SIGNED_${GLTYPE}=0
18191     fi
18192   done
18193
18194
18195   gl_cv_type_ptrdiff_t_signed=yes
18196   gl_cv_type_size_t_signed=no
18197   if test $APPLE_UNIVERSAL_BUILD = 0; then
18198
18199
18200   for gltype in ptrdiff_t size_t ; do
18201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18202 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18203 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18204   $as_echo_n "(cached) " >&6
18205 else
18206   eval gl_cv_type_${gltype}_suffix=no
18207        eval result=\$gl_cv_type_${gltype}_signed
18208        if test "$result" = yes; then
18209          glsufu=
18210        else
18211          glsufu=u
18212        fi
18213        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18214          case $glsuf in
18215            '')  gltype1='int';;
18216            l)   gltype1='long int';;
18217            ll)  gltype1='long long int';;
18218            i64) gltype1='__int64';;
18219            u)   gltype1='unsigned int';;
18220            ul)  gltype1='unsigned long int';;
18221            ull) gltype1='unsigned long long int';;
18222            ui64)gltype1='unsigned __int64';;
18223          esac
18224          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18225 /* end confdefs.h.  */
18226
18227   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18228      included before <wchar.h>.  */
18229   #include <stddef.h>
18230   #include <signal.h>
18231   #if HAVE_WCHAR_H
18232   # include <stdio.h>
18233   # include <time.h>
18234   # include <wchar.h>
18235   #endif
18236
18237               extern $gltype foo;
18238               extern $gltype1 foo;
18239 int
18240 main ()
18241 {
18242
18243   ;
18244   return 0;
18245 }
18246 _ACEOF
18247 if ac_fn_c_try_compile "$LINENO"; then :
18248   eval gl_cv_type_${gltype}_suffix=\$glsuf
18249 fi
18250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18251          eval result=\$gl_cv_type_${gltype}_suffix
18252          test "$result" != no && break
18253        done
18254 fi
18255 eval ac_res=\$gl_cv_type_${gltype}_suffix
18256                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18257 $as_echo "$ac_res" >&6; }
18258     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18259     eval result=\$gl_cv_type_${gltype}_suffix
18260     test "$result" = no && result=
18261     eval ${GLTYPE}_SUFFIX=\$result
18262     cat >>confdefs.h <<_ACEOF
18263 #define ${GLTYPE}_SUFFIX $result
18264 _ACEOF
18265
18266   done
18267
18268
18269   fi
18270
18271
18272   for gltype in sig_atomic_t wchar_t wint_t ; do
18273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18274 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18275 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18276   $as_echo_n "(cached) " >&6
18277 else
18278   eval gl_cv_type_${gltype}_suffix=no
18279        eval result=\$gl_cv_type_${gltype}_signed
18280        if test "$result" = yes; then
18281          glsufu=
18282        else
18283          glsufu=u
18284        fi
18285        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18286          case $glsuf in
18287            '')  gltype1='int';;
18288            l)   gltype1='long int';;
18289            ll)  gltype1='long long int';;
18290            i64) gltype1='__int64';;
18291            u)   gltype1='unsigned int';;
18292            ul)  gltype1='unsigned long int';;
18293            ull) gltype1='unsigned long long int';;
18294            ui64)gltype1='unsigned __int64';;
18295          esac
18296          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h.  */
18298
18299   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18300      included before <wchar.h>.  */
18301   #include <stddef.h>
18302   #include <signal.h>
18303   #if HAVE_WCHAR_H
18304   # include <stdio.h>
18305   # include <time.h>
18306   # include <wchar.h>
18307   #endif
18308
18309               extern $gltype foo;
18310               extern $gltype1 foo;
18311 int
18312 main ()
18313 {
18314
18315   ;
18316   return 0;
18317 }
18318 _ACEOF
18319 if ac_fn_c_try_compile "$LINENO"; then :
18320   eval gl_cv_type_${gltype}_suffix=\$glsuf
18321 fi
18322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18323          eval result=\$gl_cv_type_${gltype}_suffix
18324          test "$result" != no && break
18325        done
18326 fi
18327 eval ac_res=\$gl_cv_type_${gltype}_suffix
18328                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18329 $as_echo "$ac_res" >&6; }
18330     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18331     eval result=\$gl_cv_type_${gltype}_suffix
18332     test "$result" = no && result=
18333     eval ${GLTYPE}_SUFFIX=\$result
18334     cat >>confdefs.h <<_ACEOF
18335 #define ${GLTYPE}_SUFFIX $result
18336 _ACEOF
18337
18338   done
18339
18340
18341
18342           if test $BITSIZEOF_WINT_T -lt 32; then
18343     BITSIZEOF_WINT_T=32
18344   fi
18345
18346     STDINT_H=stdint.h
18347   fi
18348
18349    if test -n "$STDINT_H"; then
18350   GL_GENERATE_STDINT_H_TRUE=
18351   GL_GENERATE_STDINT_H_FALSE='#'
18352 else
18353   GL_GENERATE_STDINT_H_TRUE='#'
18354   GL_GENERATE_STDINT_H_FALSE=
18355 fi
18356
18357
18358
18359   GNULIB_FFS=0;
18360     HAVE_FFS=1;
18361   HAVE_STRCASECMP=1;
18362   HAVE_DECL_STRNCASECMP=1;
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375      if test $gl_cv_have_include_next = yes; then
18376        gl_cv_next_string_h='<'string.h'>'
18377      else
18378        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
18379 $as_echo_n "checking absolute name of <string.h>... " >&6; }
18380 if ${gl_cv_next_string_h+:} false; then :
18381   $as_echo_n "(cached) " >&6
18382 else
18383
18384
18385
18386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18387 /* end confdefs.h.  */
18388 #include <string.h>
18389 _ACEOF
18390                 case "$host_os" in
18391     aix*) gl_absname_cpp="$ac_cpp -C" ;;
18392     *)    gl_absname_cpp="$ac_cpp" ;;
18393   esac
18394
18395   case "$host_os" in
18396     mingw*)
18397                                           gl_dirsep_regex='[/\\]'
18398       ;;
18399     *)
18400       gl_dirsep_regex='\/'
18401       ;;
18402   esac
18403       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18404   gl_header_literal_regex=`echo 'string.h' \
18405                            | sed -e "$gl_make_literal_regex_sed"`
18406   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18407       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18408       s|^/[^/]|//&|
18409       p
18410       q
18411     }'
18412
18413         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18414   sed -n "$gl_absolute_header_sed"`
18415
18416            gl_header=$gl_cv_absolute_string_h
18417            gl_cv_next_string_h='"'$gl_header'"'
18418
18419
18420 fi
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
18422 $as_echo "$gl_cv_next_string_h" >&6; }
18423      fi
18424      NEXT_STRING_H=$gl_cv_next_string_h
18425
18426      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18427        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18428        gl_next_as_first_directive='<'string.h'>'
18429      else
18430        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18431        gl_next_as_first_directive=$gl_cv_next_string_h
18432      fi
18433      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
18434
18435
18436
18437
18438
18439
18440     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
18441     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18443 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18444 if eval \${$as_gl_Symbol+:} false; then :
18445   $as_echo_n "(cached) " >&6
18446 else
18447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448 /* end confdefs.h.  */
18449 #include <string.h>
18450
18451 int
18452 main ()
18453 {
18454 #undef $gl_func
18455   (void) $gl_func;
18456   ;
18457   return 0;
18458 }
18459 _ACEOF
18460 if ac_fn_c_try_compile "$LINENO"; then :
18461   eval "$as_gl_Symbol=yes"
18462 else
18463   eval "$as_gl_Symbol=no"
18464 fi
18465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18466 fi
18467 eval ac_res=\$$as_gl_Symbol
18468                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18469 $as_echo "$ac_res" >&6; }
18470     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18471   cat >>confdefs.h <<_ACEOF
18472 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18473 _ACEOF
18474
18475                      eval ac_cv_have_decl_$gl_func=yes
18476 fi
18477       done
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494   :
18495
18496
18497
18498
18499
18500
18501
18502
18503      if test $gl_cv_have_include_next = yes; then
18504        gl_cv_next_strings_h='<'strings.h'>'
18505      else
18506        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
18507 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
18508 if ${gl_cv_next_strings_h+:} false; then :
18509   $as_echo_n "(cached) " >&6
18510 else
18511
18512              if test $ac_cv_header_strings_h = yes; then
18513
18514
18515
18516
18517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h.  */
18519 #include <strings.h>
18520 _ACEOF
18521                 case "$host_os" in
18522     aix*) gl_absname_cpp="$ac_cpp -C" ;;
18523     *)    gl_absname_cpp="$ac_cpp" ;;
18524   esac
18525
18526   case "$host_os" in
18527     mingw*)
18528                                           gl_dirsep_regex='[/\\]'
18529       ;;
18530     *)
18531       gl_dirsep_regex='\/'
18532       ;;
18533   esac
18534       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18535   gl_header_literal_regex=`echo 'strings.h' \
18536                            | sed -e "$gl_make_literal_regex_sed"`
18537   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18538       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18539       s|^/[^/]|//&|
18540       p
18541       q
18542     }'
18543
18544         gl_cv_absolute_strings_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18545   sed -n "$gl_absolute_header_sed"`
18546
18547            gl_header=$gl_cv_absolute_strings_h
18548            gl_cv_next_strings_h='"'$gl_header'"'
18549           else
18550                gl_cv_next_strings_h='<'strings.h'>'
18551              fi
18552
18553
18554 fi
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
18556 $as_echo "$gl_cv_next_strings_h" >&6; }
18557      fi
18558      NEXT_STRINGS_H=$gl_cv_next_strings_h
18559
18560      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18561        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18562        gl_next_as_first_directive='<'strings.h'>'
18563      else
18564        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18565        gl_next_as_first_directive=$gl_cv_next_strings_h
18566      fi
18567      NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
18568
18569
18570
18571
18572   if test $ac_cv_header_strings_h = yes; then
18573     HAVE_STRINGS_H=1
18574   else
18575     HAVE_STRINGS_H=0
18576   fi
18577
18578
18579
18580     for gl_func in ffs strcasecmp strncasecmp; do
18581     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18583 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18584 if eval \${$as_gl_Symbol+:} false; then :
18585   $as_echo_n "(cached) " >&6
18586 else
18587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h.  */
18589
18590     /* Minix 3.1.8 has a bug: <sys/types.h> must be included before
18591        <strings.h>.  */
18592     #include <sys/types.h>
18593     #include <strings.h>
18594
18595 int
18596 main ()
18597 {
18598 #undef $gl_func
18599   (void) $gl_func;
18600   ;
18601   return 0;
18602 }
18603 _ACEOF
18604 if ac_fn_c_try_compile "$LINENO"; then :
18605   eval "$as_gl_Symbol=yes"
18606 else
18607   eval "$as_gl_Symbol=no"
18608 fi
18609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18610 fi
18611 eval ac_res=\$$as_gl_Symbol
18612                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18613 $as_echo "$ac_res" >&6; }
18614     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18615   cat >>confdefs.h <<_ACEOF
18616 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18617 _ACEOF
18618
18619                      eval ac_cv_have_decl_$gl_func=yes
18620 fi
18621       done
18622
18623
18624
18625       ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
18626 if test "x$ac_cv_have_decl_strndup" = xyes; then :
18627   ac_have_decl=1
18628 else
18629   ac_have_decl=0
18630 fi
18631
18632 cat >>confdefs.h <<_ACEOF
18633 #define HAVE_DECL_STRNDUP $ac_have_decl
18634 _ACEOF
18635
18636
18637
18638
18639
18640
18641
18642
18643       ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
18644 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
18645   ac_have_decl=1
18646 else
18647   ac_have_decl=0
18648 fi
18649
18650 cat >>confdefs.h <<_ACEOF
18651 #define HAVE_DECL_STRNLEN $ac_have_decl
18652 _ACEOF
18653
18654
18655
18656       ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
18657 if test "x$ac_cv_have_decl_strtok_r" = xyes; then :
18658   ac_have_decl=1
18659 else
18660   ac_have_decl=0
18661 fi
18662
18663 cat >>confdefs.h <<_ACEOF
18664 #define HAVE_DECL_STRTOK_R $ac_have_decl
18665 _ACEOF
18666
18667
18668
18669   GNULIB_SOCKET=0;
18670   GNULIB_CONNECT=0;
18671   GNULIB_ACCEPT=0;
18672   GNULIB_BIND=0;
18673   GNULIB_GETPEERNAME=0;
18674   GNULIB_GETSOCKNAME=0;
18675   GNULIB_GETSOCKOPT=0;
18676   GNULIB_LISTEN=0;
18677   GNULIB_RECV=0;
18678   GNULIB_SEND=0;
18679   GNULIB_RECVFROM=0;
18680   GNULIB_SENDTO=0;
18681   GNULIB_SETSOCKOPT=0;
18682   GNULIB_SHUTDOWN=0;
18683   GNULIB_ACCEPT4=0;
18684   HAVE_STRUCT_SOCKADDR_STORAGE=1;
18685   HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
18686
18687   HAVE_SA_FAMILY_T=1;
18688   HAVE_ACCEPT4=1;
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698   GNULIB_MKTIME=0;
18699   GNULIB_NANOSLEEP=0;
18700   GNULIB_STRPTIME=0;
18701   GNULIB_TIMEGM=0;
18702   GNULIB_TIME_R=0;
18703     HAVE_DECL_LOCALTIME_R=1;
18704   HAVE_NANOSLEEP=1;
18705   HAVE_STRPTIME=1;
18706   HAVE_TIMEGM=1;
18707         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18708   REPLACE_MKTIME=GNULIB_PORTCHECK;
18709   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18710   REPLACE_TIMEGM=GNULIB_PORTCHECK;
18711
18712       : ${GNULIB_GETTIMEOFDAY=0};
18713         REPLACE_GMTIME=0;
18714   REPLACE_LOCALTIME=0;
18715
18716
18717
18718   :
18719
18720
18721
18722
18723
18724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18725 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18726 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
18727   $as_echo_n "(cached) " >&6
18728 else
18729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18730 /* end confdefs.h.  */
18731 #include <time.h>
18732
18733 int
18734 main ()
18735 {
18736 static struct timespec x; x.tv_sec = x.tv_nsec;
18737   ;
18738   return 0;
18739 }
18740 _ACEOF
18741 if ac_fn_c_try_compile "$LINENO"; then :
18742   gl_cv_sys_struct_timespec_in_time_h=yes
18743 else
18744   gl_cv_sys_struct_timespec_in_time_h=no
18745 fi
18746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18747 fi
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18749 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18750
18751   TIME_H_DEFINES_STRUCT_TIMESPEC=0
18752   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18753   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18754   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18755     TIME_H_DEFINES_STRUCT_TIMESPEC=1
18756   else
18757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18758 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18759 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
18760   $as_echo_n "(cached) " >&6
18761 else
18762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18763 /* end confdefs.h.  */
18764 #include <sys/time.h>
18765
18766 int
18767 main ()
18768 {
18769 static struct timespec x; x.tv_sec = x.tv_nsec;
18770   ;
18771   return 0;
18772 }
18773 _ACEOF
18774 if ac_fn_c_try_compile "$LINENO"; then :
18775   gl_cv_sys_struct_timespec_in_sys_time_h=yes
18776 else
18777   gl_cv_sys_struct_timespec_in_sys_time_h=no
18778 fi
18779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18780 fi
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18782 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18783     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18784       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18785     else
18786       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18787 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18788 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
18789   $as_echo_n "(cached) " >&6
18790 else
18791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18792 /* end confdefs.h.  */
18793 #include <pthread.h>
18794
18795 int
18796 main ()
18797 {
18798 static struct timespec x; x.tv_sec = x.tv_nsec;
18799   ;
18800   return 0;
18801 }
18802 _ACEOF
18803 if ac_fn_c_try_compile "$LINENO"; then :
18804   gl_cv_sys_struct_timespec_in_pthread_h=yes
18805 else
18806   gl_cv_sys_struct_timespec_in_pthread_h=no
18807 fi
18808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18809 fi
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18811 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18812       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18813         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
18814       fi
18815     fi
18816   fi
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832      if test $gl_cv_have_include_next = yes; then
18833        gl_cv_next_time_h='<'time.h'>'
18834      else
18835        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18836 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18837 if ${gl_cv_next_time_h+:} false; then :
18838   $as_echo_n "(cached) " >&6
18839 else
18840
18841
18842
18843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h.  */
18845 #include <time.h>
18846 _ACEOF
18847                 case "$host_os" in
18848     aix*) gl_absname_cpp="$ac_cpp -C" ;;
18849     *)    gl_absname_cpp="$ac_cpp" ;;
18850   esac
18851
18852   case "$host_os" in
18853     mingw*)
18854                                           gl_dirsep_regex='[/\\]'
18855       ;;
18856     *)
18857       gl_dirsep_regex='\/'
18858       ;;
18859   esac
18860       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18861   gl_header_literal_regex=`echo 'time.h' \
18862                            | sed -e "$gl_make_literal_regex_sed"`
18863   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18864       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18865       s|^/[^/]|//&|
18866       p
18867       q
18868     }'
18869
18870         gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18871   sed -n "$gl_absolute_header_sed"`
18872
18873            gl_header=$gl_cv_absolute_time_h
18874            gl_cv_next_time_h='"'$gl_header'"'
18875
18876
18877 fi
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18879 $as_echo "$gl_cv_next_time_h" >&6; }
18880      fi
18881      NEXT_TIME_H=$gl_cv_next_time_h
18882
18883      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18884        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18885        gl_next_as_first_directive='<'time.h'>'
18886      else
18887        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18888        gl_next_as_first_directive=$gl_cv_next_time_h
18889      fi
18890      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18909 $as_echo_n "checking for wint_t... " >&6; }
18910 if ${gt_cv_c_wint_t+:} false; then :
18911   $as_echo_n "(cached) " >&6
18912 else
18913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18914 /* end confdefs.h.  */
18915
18916 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18917    <wchar.h>.
18918    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18919    before <wchar.h>.  */
18920 #include <stddef.h>
18921 #include <stdio.h>
18922 #include <time.h>
18923 #include <wchar.h>
18924        wint_t foo = (wchar_t)'\0';
18925 int
18926 main ()
18927 {
18928
18929   ;
18930   return 0;
18931 }
18932 _ACEOF
18933 if ac_fn_c_try_compile "$LINENO"; then :
18934   gt_cv_c_wint_t=yes
18935 else
18936   gt_cv_c_wint_t=no
18937 fi
18938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18939 fi
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18941 $as_echo "$gt_cv_c_wint_t" >&6; }
18942   if test $gt_cv_c_wint_t = yes; then
18943
18944 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18945
18946   fi
18947
18948
18949
18950
18951
18952
18953
18954
18955   :
18956
18957
18958
18959
18960
18961   if test $ac_cv_header_features_h = yes; then
18962     HAVE_FEATURES_H=1
18963   else
18964     HAVE_FEATURES_H=0
18965   fi
18966
18967
18968
18969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18970 $as_echo_n "checking for inttypes.h... " >&6; }
18971 if ${gl_cv_header_inttypes_h+:} false; then :
18972   $as_echo_n "(cached) " >&6
18973 else
18974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18975 /* end confdefs.h.  */
18976 #include <sys/types.h>
18977 #include <inttypes.h>
18978 int
18979 main ()
18980 {
18981 uintmax_t i = (uintmax_t) -1; return !i;
18982   ;
18983   return 0;
18984 }
18985 _ACEOF
18986 if ac_fn_c_try_compile "$LINENO"; then :
18987   gl_cv_header_inttypes_h=yes
18988 else
18989   gl_cv_header_inttypes_h=no
18990 fi
18991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18992 fi
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18994 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18995   if test $gl_cv_header_inttypes_h = yes; then
18996
18997 cat >>confdefs.h <<_ACEOF
18998 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18999 _ACEOF
19000
19001   fi
19002
19003
19004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19005 $as_echo_n "checking for stdint.h... " >&6; }
19006 if ${gl_cv_header_stdint_h+:} false; then :
19007   $as_echo_n "(cached) " >&6
19008 else
19009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19010 /* end confdefs.h.  */
19011 #include <sys/types.h>
19012 #include <stdint.h>
19013 int
19014 main ()
19015 {
19016 uintmax_t i = (uintmax_t) -1; return !i;
19017   ;
19018   return 0;
19019 }
19020 _ACEOF
19021 if ac_fn_c_try_compile "$LINENO"; then :
19022   gl_cv_header_stdint_h=yes
19023 else
19024   gl_cv_header_stdint_h=no
19025 fi
19026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19027 fi
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19029 $as_echo "$gl_cv_header_stdint_h" >&6; }
19030   if test $gl_cv_header_stdint_h = yes; then
19031
19032 cat >>confdefs.h <<_ACEOF
19033 #define HAVE_STDINT_H_WITH_UINTMAX 1
19034 _ACEOF
19035
19036   fi
19037
19038
19039
19040
19041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19042 $as_echo_n "checking for intmax_t... " >&6; }
19043 if ${gt_cv_c_intmax_t+:} false; then :
19044   $as_echo_n "(cached) " >&6
19045 else
19046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h.  */
19048
19049 #include <stddef.h>
19050 #include <stdlib.h>
19051 #if HAVE_STDINT_H_WITH_UINTMAX
19052 #include <stdint.h>
19053 #endif
19054 #if HAVE_INTTYPES_H_WITH_UINTMAX
19055 #include <inttypes.h>
19056 #endif
19057
19058 int
19059 main ()
19060 {
19061 intmax_t x = -1; return !x;
19062   ;
19063   return 0;
19064 }
19065 _ACEOF
19066 if ac_fn_c_try_compile "$LINENO"; then :
19067   gt_cv_c_intmax_t=yes
19068 else
19069   gt_cv_c_intmax_t=no
19070 fi
19071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19072 fi
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19074 $as_echo "$gt_cv_c_intmax_t" >&6; }
19075   if test $gt_cv_c_intmax_t = yes; then
19076
19077 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19078
19079   else
19080
19081     test $ac_cv_type_long_long_int = yes \
19082       && ac_type='long long' \
19083       || ac_type='long'
19084
19085 cat >>confdefs.h <<_ACEOF
19086 #define intmax_t $ac_type
19087 _ACEOF
19088
19089   fi
19090
19091
19092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
19093 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
19094 if ${gl_cv_cc_double_expbit0+:} false; then :
19095   $as_echo_n "(cached) " >&6
19096 else
19097
19098       if test "$cross_compiling" = yes; then :
19099
19100                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19101 /* end confdefs.h.  */
19102
19103 #if defined arm || defined __arm || defined __arm__
19104   mixed_endianness
19105 #endif
19106
19107 _ACEOF
19108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19109   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
19110   gl_cv_cc_double_expbit0="unknown"
19111 else
19112
19113                                                          :
19114 if ${ac_cv_c_bigendian+:} false; then :
19115   $as_echo_n "(cached) " >&6
19116 else
19117   ac_cv_c_bigendian=unknown
19118     # See if we're dealing with a universal compiler.
19119     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19120 /* end confdefs.h.  */
19121 #ifndef __APPLE_CC__
19122                not a universal capable compiler
19123              #endif
19124              typedef int dummy;
19125
19126 _ACEOF
19127 if ac_fn_c_try_compile "$LINENO"; then :
19128
19129         # Check for potential -arch flags.  It is not universal unless
19130         # there are at least two -arch flags with different values.
19131         ac_arch=
19132         ac_prev=
19133         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19134          if test -n "$ac_prev"; then
19135            case $ac_word in
19136              i?86 | x86_64 | ppc | ppc64)
19137                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19138                  ac_arch=$ac_word
19139                else
19140                  ac_cv_c_bigendian=universal
19141                  break
19142                fi
19143                ;;
19144            esac
19145            ac_prev=
19146          elif test "x$ac_word" = "x-arch"; then
19147            ac_prev=arch
19148          fi
19149        done
19150 fi
19151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19152     if test $ac_cv_c_bigendian = unknown; then
19153       # See if sys/param.h defines the BYTE_ORDER macro.
19154       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19155 /* end confdefs.h.  */
19156 #include <sys/types.h>
19157              #include <sys/param.h>
19158
19159 int
19160 main ()
19161 {
19162 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19163                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19164                      && LITTLE_ENDIAN)
19165               bogus endian macros
19166              #endif
19167
19168   ;
19169   return 0;
19170 }
19171 _ACEOF
19172 if ac_fn_c_try_compile "$LINENO"; then :
19173   # It does; now see whether it defined to BIG_ENDIAN or not.
19174          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19175 /* end confdefs.h.  */
19176 #include <sys/types.h>
19177                 #include <sys/param.h>
19178
19179 int
19180 main ()
19181 {
19182 #if BYTE_ORDER != BIG_ENDIAN
19183                  not big endian
19184                 #endif
19185
19186   ;
19187   return 0;
19188 }
19189 _ACEOF
19190 if ac_fn_c_try_compile "$LINENO"; then :
19191   ac_cv_c_bigendian=yes
19192 else
19193   ac_cv_c_bigendian=no
19194 fi
19195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19196 fi
19197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19198     fi
19199     if test $ac_cv_c_bigendian = unknown; then
19200       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
19201       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19202 /* end confdefs.h.  */
19203 #include <limits.h>
19204
19205 int
19206 main ()
19207 {
19208 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
19209               bogus endian macros
19210              #endif
19211
19212   ;
19213   return 0;
19214 }
19215 _ACEOF
19216 if ac_fn_c_try_compile "$LINENO"; then :
19217   # It does; now see whether it defined to _BIG_ENDIAN or not.
19218          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19219 /* end confdefs.h.  */
19220 #include <limits.h>
19221
19222 int
19223 main ()
19224 {
19225 #ifndef _BIG_ENDIAN
19226                  not big endian
19227                 #endif
19228
19229   ;
19230   return 0;
19231 }
19232 _ACEOF
19233 if ac_fn_c_try_compile "$LINENO"; then :
19234   ac_cv_c_bigendian=yes
19235 else
19236   ac_cv_c_bigendian=no
19237 fi
19238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19239 fi
19240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19241     fi
19242     if test $ac_cv_c_bigendian = unknown; then
19243       # Compile a test program.
19244       if test "$cross_compiling" = yes; then :
19245   # Try to guess by grepping values from an object file.
19246          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19247 /* end confdefs.h.  */
19248 short int ascii_mm[] =
19249                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19250                 short int ascii_ii[] =
19251                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19252                 int use_ascii (int i) {
19253                   return ascii_mm[i] + ascii_ii[i];
19254                 }
19255                 short int ebcdic_ii[] =
19256                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19257                 short int ebcdic_mm[] =
19258                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19259                 int use_ebcdic (int i) {
19260                   return ebcdic_mm[i] + ebcdic_ii[i];
19261                 }
19262                 extern int foo;
19263
19264 int
19265 main ()
19266 {
19267 return use_ascii (foo) == use_ebcdic (foo);
19268   ;
19269   return 0;
19270 }
19271 _ACEOF
19272 if ac_fn_c_try_compile "$LINENO"; then :
19273   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
19274               ac_cv_c_bigendian=yes
19275             fi
19276             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19277               if test "$ac_cv_c_bigendian" = unknown; then
19278                 ac_cv_c_bigendian=no
19279               else
19280                 # finding both strings is unlikely to happen, but who knows?
19281                 ac_cv_c_bigendian=unknown
19282               fi
19283             fi
19284 fi
19285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19286 else
19287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19288 /* end confdefs.h.  */
19289 $ac_includes_default
19290 int
19291 main ()
19292 {
19293
19294              /* Are we little or big endian?  From Harbison&Steele.  */
19295              union
19296              {
19297                long int l;
19298                char c[sizeof (long int)];
19299              } u;
19300              u.l = 1;
19301              return u.c[sizeof (long int) - 1] == 1;
19302
19303   ;
19304   return 0;
19305 }
19306 _ACEOF
19307 if ac_fn_c_try_run "$LINENO"; then :
19308   ac_cv_c_bigendian=no
19309 else
19310   ac_cv_c_bigendian=yes
19311 fi
19312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19313   conftest.$ac_objext conftest.beam conftest.$ac_ext
19314 fi
19315
19316     fi
19317 fi
19318 :
19319  case $ac_cv_c_bigendian in #(
19320    yes)
19321      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
19322    no)
19323      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
19324    universal)
19325
19326 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
19327
19328      ;; #(
19329    *)
19330      gl_cv_cc_double_expbit0="unknown" ;;
19331  esac
19332
19333
19334 fi
19335 rm -f conftest*
19336
19337
19338 else
19339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19340 /* end confdefs.h.  */
19341
19342 #include <float.h>
19343 #include <stddef.h>
19344 #include <stdio.h>
19345 #include <string.h>
19346 #define NWORDS \
19347   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
19348 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
19349 static unsigned int ored_words[NWORDS];
19350 static unsigned int anded_words[NWORDS];
19351 static void add_to_ored_words (double x)
19352 {
19353   memory_double m;
19354   size_t i;
19355   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
19356   memset (&m, 0, sizeof (memory_double));
19357   m.value = x;
19358   for (i = 0; i < NWORDS; i++)
19359     {
19360       ored_words[i] |= m.word[i];
19361       anded_words[i] &= m.word[i];
19362     }
19363 }
19364 int main ()
19365 {
19366   size_t j;
19367   FILE *fp = fopen ("conftest.out", "w");
19368   if (fp == NULL)
19369     return 1;
19370   for (j = 0; j < NWORDS; j++)
19371     anded_words[j] = ~ (unsigned int) 0;
19372   add_to_ored_words (0.25);
19373   add_to_ored_words (0.5);
19374   add_to_ored_words (1.0);
19375   add_to_ored_words (2.0);
19376   add_to_ored_words (4.0);
19377   /* Remove bits that are common (e.g. if representation of the first mantissa
19378      bit is explicit).  */
19379   for (j = 0; j < NWORDS; j++)
19380     ored_words[j] &= ~anded_words[j];
19381   /* Now find the nonzero word.  */
19382   for (j = 0; j < NWORDS; j++)
19383     if (ored_words[j] != 0)
19384       break;
19385   if (j < NWORDS)
19386     {
19387       size_t i;
19388       for (i = j + 1; i < NWORDS; i++)
19389         if (ored_words[i] != 0)
19390           {
19391             fprintf (fp, "unknown");
19392             return (fclose (fp) != 0);
19393           }
19394       for (i = 0; ; i++)
19395         if ((ored_words[j] >> i) & 1)
19396           {
19397             fprintf (fp, "word %d bit %d", (int) j, (int) i);
19398             return (fclose (fp) != 0);
19399           }
19400     }
19401   fprintf (fp, "unknown");
19402   return (fclose (fp) != 0);
19403 }
19404
19405 _ACEOF
19406 if ac_fn_c_try_run "$LINENO"; then :
19407   gl_cv_cc_double_expbit0=`cat conftest.out`
19408 else
19409   gl_cv_cc_double_expbit0="unknown"
19410 fi
19411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19412   conftest.$ac_objext conftest.beam conftest.$ac_ext
19413 fi
19414
19415       rm -f conftest.out
19416
19417 fi
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
19419 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
19420   case "$gl_cv_cc_double_expbit0" in
19421     word*bit*)
19422       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
19423       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
19424
19425 cat >>confdefs.h <<_ACEOF
19426 #define DBL_EXPBIT0_WORD $word
19427 _ACEOF
19428
19429
19430 cat >>confdefs.h <<_ACEOF
19431 #define DBL_EXPBIT0_BIT $bit
19432 _ACEOF
19433
19434       ;;
19435   esac
19436
19437
19438
19439
19440
19441
19442   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
19443 do :
19444   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19445 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19446 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19447   cat >>confdefs.h <<_ACEOF
19448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19449 _ACEOF
19450
19451 fi
19452 done
19453
19454       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
19455 "
19456 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
19457   ac_have_decl=1
19458 else
19459   ac_have_decl=0
19460 fi
19461
19462 cat >>confdefs.h <<_ACEOF
19463 #define HAVE_DECL__SNPRINTF $ac_have_decl
19464 _ACEOF
19465
19466
19467
19468   case "$gl_cv_func_snprintf_retval_c99" in
19469     *yes)
19470
19471 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
19472
19473       ;;
19474   esac
19475
19476
19477   XGETTEXT_EXTRA_OPTIONS=
19478
19479
19480       ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
19481 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
19482   ac_have_decl=1
19483 else
19484   ac_have_decl=0
19485 fi
19486
19487 cat >>confdefs.h <<_ACEOF
19488 #define HAVE_DECL_VSNPRINTF $ac_have_decl
19489 _ACEOF
19490
19491
19492
19493   GNULIB_BTOWC=0;
19494   GNULIB_WCTOB=0;
19495   GNULIB_MBSINIT=0;
19496   GNULIB_MBRTOWC=0;
19497   GNULIB_MBRLEN=0;
19498   GNULIB_MBSRTOWCS=0;
19499   GNULIB_MBSNRTOWCS=0;
19500   GNULIB_WCRTOMB=0;
19501   GNULIB_WCSRTOMBS=0;
19502   GNULIB_WCSNRTOMBS=0;
19503   GNULIB_WCWIDTH=0;
19504   GNULIB_WMEMCHR=0;
19505   GNULIB_WMEMCMP=0;
19506   GNULIB_WMEMCPY=0;
19507   GNULIB_WMEMMOVE=0;
19508   GNULIB_WMEMSET=0;
19509   GNULIB_WCSLEN=0;
19510   GNULIB_WCSNLEN=0;
19511   GNULIB_WCSCPY=0;
19512   GNULIB_WCPCPY=0;
19513   GNULIB_WCSNCPY=0;
19514   GNULIB_WCPNCPY=0;
19515   GNULIB_WCSCAT=0;
19516   GNULIB_WCSNCAT=0;
19517   GNULIB_WCSCMP=0;
19518   GNULIB_WCSNCMP=0;
19519   GNULIB_WCSCASECMP=0;
19520   GNULIB_WCSNCASECMP=0;
19521   GNULIB_WCSCOLL=0;
19522   GNULIB_WCSXFRM=0;
19523   GNULIB_WCSDUP=0;
19524   GNULIB_WCSCHR=0;
19525   GNULIB_WCSRCHR=0;
19526   GNULIB_WCSCSPN=0;
19527   GNULIB_WCSSPN=0;
19528   GNULIB_WCSPBRK=0;
19529   GNULIB_WCSSTR=0;
19530   GNULIB_WCSTOK=0;
19531   GNULIB_WCSWIDTH=0;
19532     HAVE_BTOWC=1;
19533   HAVE_MBSINIT=1;
19534   HAVE_MBRTOWC=1;
19535   HAVE_MBRLEN=1;
19536   HAVE_MBSRTOWCS=1;
19537   HAVE_MBSNRTOWCS=1;
19538   HAVE_WCRTOMB=1;
19539   HAVE_WCSRTOMBS=1;
19540   HAVE_WCSNRTOMBS=1;
19541   HAVE_WMEMCHR=1;
19542   HAVE_WMEMCMP=1;
19543   HAVE_WMEMCPY=1;
19544   HAVE_WMEMMOVE=1;
19545   HAVE_WMEMSET=1;
19546   HAVE_WCSLEN=1;
19547   HAVE_WCSNLEN=1;
19548   HAVE_WCSCPY=1;
19549   HAVE_WCPCPY=1;
19550   HAVE_WCSNCPY=1;
19551   HAVE_WCPNCPY=1;
19552   HAVE_WCSCAT=1;
19553   HAVE_WCSNCAT=1;
19554   HAVE_WCSCMP=1;
19555   HAVE_WCSNCMP=1;
19556   HAVE_WCSCASECMP=1;
19557   HAVE_WCSNCASECMP=1;
19558   HAVE_WCSCOLL=1;
19559   HAVE_WCSXFRM=1;
19560   HAVE_WCSDUP=1;
19561   HAVE_WCSCHR=1;
19562   HAVE_WCSRCHR=1;
19563   HAVE_WCSCSPN=1;
19564   HAVE_WCSSPN=1;
19565   HAVE_WCSPBRK=1;
19566   HAVE_WCSSTR=1;
19567   HAVE_WCSTOK=1;
19568   HAVE_WCSWIDTH=1;
19569   HAVE_DECL_WCTOB=1;
19570   HAVE_DECL_WCWIDTH=1;
19571   REPLACE_MBSTATE_T=0;
19572   REPLACE_BTOWC=0;
19573   REPLACE_WCTOB=0;
19574   REPLACE_MBSINIT=0;
19575   REPLACE_MBRTOWC=0;
19576   REPLACE_MBRLEN=0;
19577   REPLACE_MBSRTOWCS=0;
19578   REPLACE_MBSNRTOWCS=0;
19579   REPLACE_WCRTOMB=0;
19580   REPLACE_WCSRTOMBS=0;
19581   REPLACE_WCSNRTOMBS=0;
19582   REPLACE_WCWIDTH=0;
19583   REPLACE_WCSWIDTH=0;
19584
19585
19586             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
19587 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
19588 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
19589   $as_echo_n "(cached) " >&6
19590 else
19591   gl_cv_header_wchar_h_correct_inline=yes
19592      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19593 /* end confdefs.h.  */
19594
19595        #define wcstod renamed_wcstod
19596 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19597    <wchar.h>.
19598    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19599    included before <wchar.h>.  */
19600 #include <stddef.h>
19601 #include <stdio.h>
19602 #include <time.h>
19603 #include <wchar.h>
19604 extern int zero (void);
19605 int main () { return zero(); }
19606
19607 _ACEOF
19608      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19609   (eval $ac_compile) 2>&5
19610   ac_status=$?
19611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19612   test $ac_status = 0; }; then
19613        mv conftest.$ac_objext conftest1.$ac_objext
19614        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19615 /* end confdefs.h.  */
19616
19617          #define wcstod renamed_wcstod
19618 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19619    <wchar.h>.
19620    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19621    included before <wchar.h>.  */
19622 #include <stddef.h>
19623 #include <stdio.h>
19624 #include <time.h>
19625 #include <wchar.h>
19626 int zero (void) { return 0; }
19627
19628 _ACEOF
19629        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19630   (eval $ac_compile) 2>&5
19631   ac_status=$?
19632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19633   test $ac_status = 0; }; then
19634          mv conftest.$ac_objext conftest2.$ac_objext
19635          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
19636            :
19637          else
19638            gl_cv_header_wchar_h_correct_inline=no
19639          fi
19640        fi
19641      fi
19642      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
19643
19644 fi
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
19646 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
19647   if test $gl_cv_header_wchar_h_correct_inline = no; then
19648     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
19649 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
19650 C99 mode. You have four options:
19651   - Add the flag -fgnu89-inline to CC and reconfigure, or
19652   - Fix your include files, using parts of
19653     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
19654   - Use a gcc version older than 4.3, or
19655   - Don't use the flags -std=c99 or -std=gnu99.
19656 Configuration aborted." "$LINENO" 5
19657   fi
19658
19659
19660   GNULIB_FCNTL=0;
19661   GNULIB_NONBLOCKING=0;
19662   GNULIB_OPEN=0;
19663   GNULIB_OPENAT=0;
19664     HAVE_FCNTL=1;
19665   HAVE_OPENAT=1;
19666   REPLACE_FCNTL=0;
19667   REPLACE_OPEN=0;
19668   REPLACE_OPENAT=0;
19669
19670
19671
19672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
19673 $as_echo_n "checking for working fcntl.h... " >&6; }
19674 if ${gl_cv_header_working_fcntl_h+:} false; then :
19675   $as_echo_n "(cached) " >&6
19676 else
19677   if test "$cross_compiling" = yes; then :
19678   gl_cv_header_working_fcntl_h=cross-compiling
19679 else
19680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h.  */
19682 #include <sys/types.h>
19683            #include <sys/stat.h>
19684            #include <unistd.h>
19685            #include <fcntl.h>
19686            #ifndef O_NOATIME
19687             #define O_NOATIME 0
19688            #endif
19689            #ifndef O_NOFOLLOW
19690             #define O_NOFOLLOW 0
19691            #endif
19692            static int const constants[] =
19693             {
19694               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
19695               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
19696             };
19697
19698 int
19699 main ()
19700 {
19701
19702             int status = !constants;
19703             {
19704               static char const sym[] = "conftest.sym";
19705               if (symlink (".", sym) != 0
19706                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
19707                 status |= 32;
19708               unlink (sym);
19709             }
19710             {
19711               static char const file[] = "confdefs.h";
19712               int fd = open (file, O_RDONLY | O_NOATIME);
19713               char c;
19714               struct stat st0, st1;
19715               if (fd < 0
19716                   || fstat (fd, &st0) != 0
19717                   || sleep (1) != 0
19718                   || read (fd, &c, 1) != 1
19719                   || close (fd) != 0
19720                   || stat (file, &st1) != 0
19721                   || st0.st_atime != st1.st_atime)
19722                 status |= 64;
19723             }
19724             return status;
19725   ;
19726   return 0;
19727 }
19728 _ACEOF
19729 if ac_fn_c_try_run "$LINENO"; then :
19730   gl_cv_header_working_fcntl_h=yes
19731 else
19732   case $? in #(
19733         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
19734         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
19735         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
19736          *) gl_cv_header_working_fcntl_h='no';;
19737         esac
19738 fi
19739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19740   conftest.$ac_objext conftest.beam conftest.$ac_ext
19741 fi
19742
19743 fi
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
19745 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
19746
19747   case $gl_cv_header_working_fcntl_h in #(
19748   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
19749   *) ac_val=1;;
19750   esac
19751
19752 cat >>confdefs.h <<_ACEOF
19753 #define HAVE_WORKING_O_NOATIME $ac_val
19754 _ACEOF
19755
19756
19757   case $gl_cv_header_working_fcntl_h in #(
19758   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
19759   *) ac_val=1;;
19760   esac
19761
19762 cat >>confdefs.h <<_ACEOF
19763 #define HAVE_WORKING_O_NOFOLLOW $ac_val
19764 _ACEOF
19765
19766
19767
19768
19769
19770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
19771 $as_echo_n "checking whether ungetc works on arbitrary bytes... " >&6; }
19772 if ${gl_cv_func_ungetc_works+:} false; then :
19773   $as_echo_n "(cached) " >&6
19774 else
19775   if test "$cross_compiling" = yes; then :
19776   case "$host_os" in
19777                    # Guess yes on glibc systems.
19778            *-gnu*) gl_cv_func_ungetc_works="guessing yes" ;;
19779                    # If we don't know, assume the worst.
19780            *)      gl_cv_func_ungetc_works="guessing no" ;;
19781          esac
19782
19783 else
19784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19785 /* end confdefs.h.  */
19786
19787 #include <stdio.h>
19788
19789 int
19790 main ()
19791 {
19792 FILE *f;
19793            if (!(f = fopen ("conftest.tmp", "w+"))) return 1;
19794            if (fputs ("abc", f) < 0) return 2;
19795            rewind (f);
19796            if (fgetc (f) != 'a') return 3;
19797            if (fgetc (f) != 'b') return 4;
19798            if (ungetc ('d', f) != 'd') return 5;
19799            if (ftell (f) != 1) return 6;
19800            if (fgetc (f) != 'd') return 7;
19801            if (ftell (f) != 2) return 8;
19802            if (fseek (f, 0, SEEK_CUR) != 0) return 9;
19803            if (ftell (f) != 2) return 10;
19804            if (fgetc (f) != 'c') return 11;
19805            fclose (f); remove ("conftest.tmp");
19806   ;
19807   return 0;
19808 }
19809 _ACEOF
19810 if ac_fn_c_try_run "$LINENO"; then :
19811   gl_cv_func_ungetc_works=yes
19812 else
19813   gl_cv_func_ungetc_works=no
19814 fi
19815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19816   conftest.$ac_objext conftest.beam conftest.$ac_ext
19817 fi
19818
19819
19820 fi
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5
19822 $as_echo "$gl_cv_func_ungetc_works" >&6; }
19823   case "$gl_cv_func_ungetc_works" in
19824     *yes) ;;
19825     *)
19826
19827 $as_echo "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
19828
19829       ;;
19830   esac
19831
19832
19833
19834
19835
19836
19837
19838   GNULIB_IMAXABS=0;
19839   GNULIB_IMAXDIV=0;
19840   GNULIB_STRTOIMAX=0;
19841   GNULIB_STRTOUMAX=0;
19842     HAVE_DECL_IMAXABS=1;
19843   HAVE_DECL_IMAXDIV=1;
19844   HAVE_DECL_STRTOIMAX=1;
19845   HAVE_DECL_STRTOUMAX=1;
19846   REPLACE_STRTOIMAX=0;
19847   REPLACE_STRTOUMAX=0;
19848   INT32_MAX_LT_INTMAX_MAX=1;
19849   INT64_MAX_EQ_LONG_MAX='defined _LP64';
19850   PRI_MACROS_BROKEN=0;
19851   PRIPTR_PREFIX=__PRIPTR_PREFIX;
19852   UINT32_MAX_LT_UINTMAX_MAX=1;
19853   UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
19854
19855
19856
19857
19858   :
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872   :
19873
19874
19875
19876
19877
19878
19879
19880
19881      if test $gl_cv_have_include_next = yes; then
19882        gl_cv_next_inttypes_h='<'inttypes.h'>'
19883      else
19884        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19885 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19886 if ${gl_cv_next_inttypes_h+:} false; then :
19887   $as_echo_n "(cached) " >&6
19888 else
19889
19890              if test $ac_cv_header_inttypes_h = yes; then
19891
19892
19893
19894
19895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19896 /* end confdefs.h.  */
19897 #include <inttypes.h>
19898 _ACEOF
19899                 case "$host_os" in
19900     aix*) gl_absname_cpp="$ac_cpp -C" ;;
19901     *)    gl_absname_cpp="$ac_cpp" ;;
19902   esac
19903
19904   case "$host_os" in
19905     mingw*)
19906                                           gl_dirsep_regex='[/\\]'
19907       ;;
19908     *)
19909       gl_dirsep_regex='\/'
19910       ;;
19911   esac
19912       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19913   gl_header_literal_regex=`echo 'inttypes.h' \
19914                            | sed -e "$gl_make_literal_regex_sed"`
19915   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19916       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19917       s|^/[^/]|//&|
19918       p
19919       q
19920     }'
19921
19922         gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19923   sed -n "$gl_absolute_header_sed"`
19924
19925            gl_header=$gl_cv_absolute_inttypes_h
19926            gl_cv_next_inttypes_h='"'$gl_header'"'
19927           else
19928                gl_cv_next_inttypes_h='<'inttypes.h'>'
19929              fi
19930
19931
19932 fi
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19934 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19935      fi
19936      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
19937
19938      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19939        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19940        gl_next_as_first_directive='<'inttypes.h'>'
19941      else
19942        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19943        gl_next_as_first_directive=$gl_cv_next_inttypes_h
19944      fi
19945      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
19946
19947
19948
19949
19950
19951
19952
19953
19954     for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
19955     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19957 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19958 if eval \${$as_gl_Symbol+:} false; then :
19959   $as_echo_n "(cached) " >&6
19960 else
19961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19962 /* end confdefs.h.  */
19963 #include <inttypes.h>
19964
19965 int
19966 main ()
19967 {
19968 #undef $gl_func
19969   (void) $gl_func;
19970   ;
19971   return 0;
19972 }
19973 _ACEOF
19974 if ac_fn_c_try_compile "$LINENO"; then :
19975   eval "$as_gl_Symbol=yes"
19976 else
19977   eval "$as_gl_Symbol=no"
19978 fi
19979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19980 fi
19981 eval ac_res=\$$as_gl_Symbol
19982                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19983 $as_echo "$ac_res" >&6; }
19984     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19985   cat >>confdefs.h <<_ACEOF
19986 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19987 _ACEOF
19988
19989                      eval ac_cv_have_decl_$gl_func=yes
19990 fi
19991       done
19992
19993
19994
19995   for ac_header in inttypes.h
19996 do :
19997   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
19998 if test "x$ac_cv_header_inttypes_h" = xyes; then :
19999   cat >>confdefs.h <<_ACEOF
20000 #define HAVE_INTTYPES_H 1
20001 _ACEOF
20002
20003 fi
20004
20005 done
20006
20007   if test $ac_cv_header_inttypes_h = yes; then
20008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20009 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20010 if ${gt_cv_inttypes_pri_broken+:} false; then :
20011   $as_echo_n "(cached) " >&6
20012 else
20013
20014         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20015 /* end confdefs.h.  */
20016 #include <inttypes.h>
20017 #ifdef PRId32
20018 char *p = PRId32;
20019 #endif
20020
20021 int
20022 main ()
20023 {
20024
20025   ;
20026   return 0;
20027 }
20028 _ACEOF
20029 if ac_fn_c_try_compile "$LINENO"; then :
20030   gt_cv_inttypes_pri_broken=no
20031 else
20032   gt_cv_inttypes_pri_broken=yes
20033 fi
20034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20035
20036 fi
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20038 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20039   fi
20040   if test "$gt_cv_inttypes_pri_broken" = yes; then
20041
20042 cat >>confdefs.h <<_ACEOF
20043 #define PRI_MACROS_BROKEN 1
20044 _ACEOF
20045
20046     PRI_MACROS_BROKEN=1
20047   else
20048     PRI_MACROS_BROKEN=0
20049   fi
20050
20051
20052
20053
20054
20055
20056
20057
20058    if true; then
20059   GL_COND_LIBTOOL_TRUE=
20060   GL_COND_LIBTOOL_FALSE='#'
20061 else
20062   GL_COND_LIBTOOL_TRUE='#'
20063   GL_COND_LIBTOOL_FALSE=
20064 fi
20065
20066   gl_cond_libtool=true
20067   gl_m4_base='gl/m4'
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077   gl_source_base='gl'
20078 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
20079
20080
20081
20082   if test $ac_cv_func_alloca_works = no; then
20083     :
20084   fi
20085
20086   # Define an additional variable used in the Makefile substitution.
20087   if test $ac_cv_working_alloca_h = yes; then
20088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20089 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20090 if ${gl_cv_rpl_alloca+:} false; then :
20091   $as_echo_n "(cached) " >&6
20092 else
20093
20094       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20095 /* end confdefs.h.  */
20096
20097 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20098         Need own alloca
20099 #endif
20100
20101 _ACEOF
20102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20103   $EGREP "Need own alloca" >/dev/null 2>&1; then :
20104   gl_cv_rpl_alloca=yes
20105 else
20106   gl_cv_rpl_alloca=no
20107 fi
20108 rm -f conftest*
20109
20110
20111 fi
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20113 $as_echo "$gl_cv_rpl_alloca" >&6; }
20114     if test $gl_cv_rpl_alloca = yes; then
20115
20116 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20117
20118       ALLOCA_H=alloca.h
20119     else
20120                   ALLOCA_H=
20121     fi
20122   else
20123     ALLOCA_H=alloca.h
20124   fi
20125
20126    if test -n "$ALLOCA_H"; then
20127   GL_GENERATE_ALLOCA_H_TRUE=
20128   GL_GENERATE_ALLOCA_H_FALSE='#'
20129 else
20130   GL_GENERATE_ALLOCA_H_TRUE='#'
20131   GL_GENERATE_ALLOCA_H_FALSE=
20132 fi
20133
20134
20135
20136
20137
20138
20139
20140
20141     for ac_header in byteswap.h
20142 do :
20143   ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
20144 if test "x$ac_cv_header_byteswap_h" = xyes; then :
20145   cat >>confdefs.h <<_ACEOF
20146 #define HAVE_BYTESWAP_H 1
20147 _ACEOF
20148
20149     BYTESWAP_H=''
20150
20151 else
20152
20153     BYTESWAP_H='byteswap.h'
20154
20155 fi
20156
20157 done
20158
20159
20160    if test -n "$BYTESWAP_H"; then
20161   GL_GENERATE_BYTESWAP_H_TRUE=
20162   GL_GENERATE_BYTESWAP_H_FALSE='#'
20163 else
20164   GL_GENERATE_BYTESWAP_H_TRUE='#'
20165   GL_GENERATE_BYTESWAP_H_FALSE=
20166 fi
20167
20168
20169
20170
20171
20172
20173
20174   FLOAT_H=
20175   REPLACE_FLOAT_LDBL=0
20176   case "$host_os" in
20177     aix* | beos* | openbsd* | mirbsd* | irix*)
20178       FLOAT_H=float.h
20179       ;;
20180     freebsd*)
20181       case "$host_cpu" in
20182         i[34567]86 )
20183           FLOAT_H=float.h
20184           ;;
20185         x86_64 )
20186           # On x86_64 systems, the C compiler may still be generating
20187           # 32-bit code.
20188           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20189 /* end confdefs.h.  */
20190 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
20191              yes
20192              #endif
20193 _ACEOF
20194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20195   $EGREP "yes" >/dev/null 2>&1; then :
20196
20197 else
20198   FLOAT_H=float.h
20199 fi
20200 rm -f conftest*
20201
20202           ;;
20203       esac
20204       ;;
20205     linux*)
20206       case "$host_cpu" in
20207         powerpc*)
20208           FLOAT_H=float.h
20209           ;;
20210       esac
20211       ;;
20212   esac
20213   case "$host_os" in
20214     aix* | freebsd* | linux*)
20215       if test -n "$FLOAT_H"; then
20216         REPLACE_FLOAT_LDBL=1
20217       fi
20218       ;;
20219   esac
20220
20221     REPLACE_ITOLD=0
20222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
20223 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
20224 if ${gl_cv_func_itold_works+:} false; then :
20225   $as_echo_n "(cached) " >&6
20226 else
20227
20228       if test "$cross_compiling" = yes; then :
20229   case "$host" in
20230            sparc*-*-linux*)
20231              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20232 /* end confdefs.h.  */
20233 #if defined __LP64__ || defined __arch64__
20234                 yes
20235                 #endif
20236 _ACEOF
20237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20238   $EGREP "yes" >/dev/null 2>&1; then :
20239   gl_cv_func_itold_works="guessing no"
20240 else
20241   gl_cv_func_itold_works="guessing yes"
20242 fi
20243 rm -f conftest*
20244
20245              ;;
20246            *) gl_cv_func_itold_works="guessing yes" ;;
20247          esac
20248
20249 else
20250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20251 /* end confdefs.h.  */
20252
20253 int i = -1;
20254 volatile long double ld;
20255 int main ()
20256 {
20257   ld += i * 1.0L;
20258   if (ld > 0)
20259     return 1;
20260   return 0;
20261 }
20262 _ACEOF
20263 if ac_fn_c_try_run "$LINENO"; then :
20264   gl_cv_func_itold_works=yes
20265 else
20266   gl_cv_func_itold_works=no
20267 fi
20268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20269   conftest.$ac_objext conftest.beam conftest.$ac_ext
20270 fi
20271
20272
20273 fi
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
20275 $as_echo "$gl_cv_func_itold_works" >&6; }
20276   case "$gl_cv_func_itold_works" in
20277     *no)
20278       REPLACE_ITOLD=1
20279                   FLOAT_H=float.h
20280       ;;
20281   esac
20282
20283   if test -n "$FLOAT_H"; then
20284
20285
20286
20287
20288
20289
20290
20291
20292      if test $gl_cv_have_include_next = yes; then
20293        gl_cv_next_float_h='<'float.h'>'
20294      else
20295        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
20296 $as_echo_n "checking absolute name of <float.h>... " >&6; }
20297 if ${gl_cv_next_float_h+:} false; then :
20298   $as_echo_n "(cached) " >&6
20299 else
20300
20301
20302
20303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20304 /* end confdefs.h.  */
20305 #include <float.h>
20306 _ACEOF
20307                 case "$host_os" in
20308     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20309     *)    gl_absname_cpp="$ac_cpp" ;;
20310   esac
20311
20312   case "$host_os" in
20313     mingw*)
20314                                           gl_dirsep_regex='[/\\]'
20315       ;;
20316     *)
20317       gl_dirsep_regex='\/'
20318       ;;
20319   esac
20320       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20321   gl_header_literal_regex=`echo 'float.h' \
20322                            | sed -e "$gl_make_literal_regex_sed"`
20323   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20324       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20325       s|^/[^/]|//&|
20326       p
20327       q
20328     }'
20329
20330         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20331   sed -n "$gl_absolute_header_sed"`
20332
20333            gl_header=$gl_cv_absolute_float_h
20334            gl_cv_next_float_h='"'$gl_header'"'
20335
20336
20337 fi
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
20339 $as_echo "$gl_cv_next_float_h" >&6; }
20340      fi
20341      NEXT_FLOAT_H=$gl_cv_next_float_h
20342
20343      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20344        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20345        gl_next_as_first_directive='<'float.h'>'
20346      else
20347        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20348        gl_next_as_first_directive=$gl_cv_next_float_h
20349      fi
20350      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
20351
20352
20353
20354
20355   fi
20356
20357    if test -n "$FLOAT_H"; then
20358   GL_GENERATE_FLOAT_H_TRUE=
20359   GL_GENERATE_FLOAT_H_FALSE='#'
20360 else
20361   GL_GENERATE_FLOAT_H_TRUE='#'
20362   GL_GENERATE_FLOAT_H_FALSE=
20363 fi
20364
20365
20366
20367   if test $REPLACE_FLOAT_LDBL = 1; then
20368
20369
20370
20371
20372
20373
20374
20375
20376   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
20377
20378   fi
20379   if test $REPLACE_ITOLD = 1; then
20380
20381
20382
20383
20384
20385
20386
20387
20388   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
20389
20390   fi
20391
20392
20393
20394
20395   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20396     REPLACE_FSTAT=1
20397   fi
20398
20399
20400   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
20401     REPLACE_FSTAT=1
20402   fi
20403
20404
20405
20406   if test $REPLACE_FSTAT = 1; then
20407
20408
20409
20410
20411
20412
20413
20414
20415   gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
20416
20417     :
20418   fi
20419
20420
20421
20422
20423
20424           GNULIB_FSTAT=1
20425
20426
20427
20428
20429
20430 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
20431
20432
20433
20434
20435
20436
20437     if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
20438     REPLACE_FTELL=1
20439   fi
20440
20441   if test $REPLACE_FTELL = 1; then
20442
20443
20444
20445
20446
20447
20448
20449
20450   gl_LIBOBJS="$gl_LIBOBJS ftell.$ac_objext"
20451
20452   fi
20453
20454
20455
20456
20457
20458           GNULIB_FTELL=1
20459
20460
20461
20462
20463
20464 $as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477   :
20478
20479
20480
20481
20482
20483   if test $ac_cv_have_decl_ftello = no; then
20484     HAVE_DECL_FTELLO=0
20485   fi
20486
20487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
20488 $as_echo_n "checking for ftello... " >&6; }
20489 if ${gl_cv_func_ftello+:} false; then :
20490   $as_echo_n "(cached) " >&6
20491 else
20492
20493       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20494 /* end confdefs.h.  */
20495 #include <stdio.h>
20496 int
20497 main ()
20498 {
20499 ftello (stdin);
20500   ;
20501   return 0;
20502 }
20503 _ACEOF
20504 if ac_fn_c_try_link "$LINENO"; then :
20505   gl_cv_func_ftello=yes
20506 else
20507   gl_cv_func_ftello=no
20508 fi
20509 rm -f core conftest.err conftest.$ac_objext \
20510     conftest$ac_exeext conftest.$ac_ext
20511
20512 fi
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
20514 $as_echo "$gl_cv_func_ftello" >&6; }
20515   if test $gl_cv_func_ftello = no; then
20516     HAVE_FTELLO=0
20517   else
20518     if test $WINDOWS_64_BIT_OFF_T = 1; then
20519       REPLACE_FTELLO=1
20520     fi
20521     if test $gl_cv_var_stdin_large_offset = no; then
20522       REPLACE_FTELLO=1
20523     fi
20524     if test $REPLACE_FTELLO = 0; then
20525
20526       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
20527 $as_echo_n "checking whether ftello works... " >&6; }
20528 if ${gl_cv_func_ftello_works+:} false; then :
20529   $as_echo_n "(cached) " >&6
20530 else
20531
20532                               case "$host_os" in
20533                       # Guess no on Solaris.
20534             solaris*) gl_cv_func_ftello_works="guessing no" ;;
20535                       # Guess yes otherwise.
20536             *)        gl_cv_func_ftello_works="guessing yes" ;;
20537           esac
20538           if test "$cross_compiling" = yes; then :
20539   :
20540 else
20541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20542 /* end confdefs.h.  */
20543
20544 #include <stdio.h>
20545 #include <stdlib.h>
20546 #include <string.h>
20547 #define TESTFILE "conftest.tmp"
20548 int
20549 main (void)
20550 {
20551   FILE *fp;
20552
20553   /* Create a file with some contents.  */
20554   fp = fopen (TESTFILE, "w");
20555   if (fp == NULL)
20556     return 70;
20557   if (fwrite ("foogarsh", 1, 8, fp) < 8)
20558     return 71;
20559   if (fclose (fp))
20560     return 72;
20561
20562   /* The file's contents is now "foogarsh".  */
20563
20564   /* Try writing after reading to EOF.  */
20565   fp = fopen (TESTFILE, "r+");
20566   if (fp == NULL)
20567     return 73;
20568   if (fseek (fp, -1, SEEK_END))
20569     return 74;
20570   if (!(getc (fp) == 'h'))
20571     return 1;
20572   if (!(getc (fp) == EOF))
20573     return 2;
20574   if (!(ftell (fp) == 8))
20575     return 3;
20576   if (!(ftell (fp) == 8))
20577     return 4;
20578   if (!(putc ('!', fp) == '!'))
20579     return 5;
20580   if (!(ftell (fp) == 9))
20581     return 6;
20582   if (!(fclose (fp) == 0))
20583     return 7;
20584   fp = fopen (TESTFILE, "r");
20585   if (fp == NULL)
20586     return 75;
20587   {
20588     char buf[10];
20589     if (!(fread (buf, 1, 10, fp) == 9))
20590       return 10;
20591     if (!(memcmp (buf, "foogarsh!", 9) == 0))
20592       return 11;
20593   }
20594   if (!(fclose (fp) == 0))
20595     return 12;
20596
20597   /* The file's contents is now "foogarsh!".  */
20598
20599   return 0;
20600 }
20601 _ACEOF
20602 if ac_fn_c_try_run "$LINENO"; then :
20603   gl_cv_func_ftello_works=yes
20604 else
20605   gl_cv_func_ftello_works=no
20606 fi
20607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20608   conftest.$ac_objext conftest.beam conftest.$ac_ext
20609 fi
20610
20611
20612 fi
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
20614 $as_echo "$gl_cv_func_ftello_works" >&6; }
20615       case "$gl_cv_func_ftello_works" in
20616         *yes) ;;
20617         *)
20618           REPLACE_FTELLO=1
20619
20620 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
20621
20622           ;;
20623       esac
20624     fi
20625   fi
20626
20627   if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
20628
20629
20630
20631
20632
20633
20634
20635
20636   gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
20637
20638
20639       for ac_func in _ftelli64
20640 do :
20641   ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
20642 if test "x$ac_cv_func__ftelli64" = xyes; then :
20643   cat >>confdefs.h <<_ACEOF
20644 #define HAVE__FTELLI64 1
20645 _ACEOF
20646
20647 fi
20648 done
20649
20650
20651   fi
20652
20653
20654
20655
20656
20657           GNULIB_FTELLO=1
20658
20659
20660
20661
20662
20663 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
20664
20665
20666
20667
20668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __func__ is available" >&5
20669 $as_echo_n "checking whether __func__ is available... " >&6; }
20670 if ${gl_cv_var_func+:} false; then :
20671   $as_echo_n "(cached) " >&6
20672 else
20673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20674 /* end confdefs.h.  */
20675
20676 int
20677 main ()
20678 {
20679 const char *str = __func__;
20680   ;
20681   return 0;
20682 }
20683 _ACEOF
20684 if ac_fn_c_try_compile "$LINENO"; then :
20685   gl_cv_var_func=yes
20686 else
20687   gl_cv_var_func=no
20688 fi
20689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20690 fi
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_func" >&5
20692 $as_echo "$gl_cv_var_func" >&6; }
20693   if test "$gl_cv_var_func" != yes; then
20694
20695 $as_echo "#define __func__ \"<unknown function>\"" >>confdefs.h
20696
20697   fi
20698
20699
20700
20701
20702
20703
20704
20705   :
20706
20707
20708
20709
20710
20711
20712
20713   :
20714
20715
20716
20717
20718
20719   if test $ac_cv_func_getdelim = yes; then
20720     HAVE_GETDELIM=1
20721         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
20722 $as_echo_n "checking for working getdelim function... " >&6; }
20723 if ${gl_cv_func_working_getdelim+:} false; then :
20724   $as_echo_n "(cached) " >&6
20725 else
20726   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
20727     if test "$cross_compiling" = yes; then :
20728         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20729 /* end confdefs.h.  */
20730
20731 #include <features.h>
20732 #ifdef __GNU_LIBRARY__
20733  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
20734   Lucky GNU user
20735  #endif
20736 #endif
20737
20738 _ACEOF
20739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20740   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20741   gl_cv_func_working_getdelim="guessing yes"
20742 else
20743   gl_cv_func_working_getdelim="guessing no"
20744 fi
20745 rm -f conftest*
20746
20747
20748 else
20749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20750 /* end confdefs.h.  */
20751
20752 #    include <stdio.h>
20753 #    include <stdlib.h>
20754 #    include <string.h>
20755     int main ()
20756     {
20757       FILE *in = fopen ("./conftest.data", "r");
20758       if (!in)
20759         return 1;
20760       {
20761         /* Test result for a NULL buffer and a zero size.
20762            Based on a test program from Karl Heuer.  */
20763         char *line = NULL;
20764         size_t siz = 0;
20765         int len = getdelim (&line, &siz, '\n', in);
20766         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
20767           return 2;
20768       }
20769       {
20770         /* Test result for a NULL buffer and a non-zero size.
20771            This crashes on FreeBSD 8.0.  */
20772         char *line = NULL;
20773         size_t siz = (size_t)(~0) / 4;
20774         if (getdelim (&line, &siz, '\n', in) == -1)
20775           return 3;
20776       }
20777       return 0;
20778     }
20779
20780 _ACEOF
20781 if ac_fn_c_try_run "$LINENO"; then :
20782   gl_cv_func_working_getdelim=yes
20783 else
20784   gl_cv_func_working_getdelim=no
20785 fi
20786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20787   conftest.$ac_objext conftest.beam conftest.$ac_ext
20788 fi
20789
20790 fi
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
20792 $as_echo "$gl_cv_func_working_getdelim" >&6; }
20793     case "$gl_cv_func_working_getdelim" in
20794       *no)
20795         REPLACE_GETDELIM=1
20796         ;;
20797     esac
20798   else
20799     HAVE_GETDELIM=0
20800   fi
20801
20802   if test $ac_cv_have_decl_getdelim = no; then
20803     HAVE_DECL_GETDELIM=0
20804   fi
20805
20806   if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
20807
20808
20809
20810
20811
20812
20813
20814
20815   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
20816
20817
20818   for ac_func in flockfile funlockfile
20819 do :
20820   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20821 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20822 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20823   cat >>confdefs.h <<_ACEOF
20824 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20825 _ACEOF
20826
20827 fi
20828 done
20829
20830   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
20831 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
20832   ac_have_decl=1
20833 else
20834   ac_have_decl=0
20835 fi
20836
20837 cat >>confdefs.h <<_ACEOF
20838 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
20839 _ACEOF
20840
20841
20842   fi
20843
20844
20845
20846
20847
20848           GNULIB_GETDELIM=1
20849
20850
20851
20852
20853
20854 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864   :
20865
20866
20867
20868
20869
20870
20871   gl_getline_needs_run_time_check=no
20872   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
20873 if test "x$ac_cv_func_getline" = xyes; then :
20874                    gl_getline_needs_run_time_check=yes
20875 else
20876   am_cv_func_working_getline=no
20877 fi
20878
20879   if test $gl_getline_needs_run_time_check = yes; then
20880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
20881 $as_echo_n "checking for working getline function... " >&6; }
20882 if ${am_cv_func_working_getline+:} false; then :
20883   $as_echo_n "(cached) " >&6
20884 else
20885   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
20886     if test "$cross_compiling" = yes; then :
20887         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20888 /* end confdefs.h.  */
20889
20890 #include <features.h>
20891 #ifdef __GNU_LIBRARY__
20892  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
20893   Lucky GNU user
20894  #endif
20895 #endif
20896
20897 _ACEOF
20898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20899   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20900   am_cv_func_working_getline="guessing yes"
20901 else
20902   am_cv_func_working_getline="guessing no"
20903 fi
20904 rm -f conftest*
20905
20906
20907 else
20908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20909 /* end confdefs.h.  */
20910
20911 #    include <stdio.h>
20912 #    include <stdlib.h>
20913 #    include <string.h>
20914     int main ()
20915     {
20916       FILE *in = fopen ("./conftest.data", "r");
20917       if (!in)
20918         return 1;
20919       {
20920         /* Test result for a NULL buffer and a zero size.
20921            Based on a test program from Karl Heuer.  */
20922         char *line = NULL;
20923         size_t siz = 0;
20924         int len = getline (&line, &siz, in);
20925         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
20926           return 2;
20927       }
20928       {
20929         /* Test result for a NULL buffer and a non-zero size.
20930            This crashes on FreeBSD 8.0.  */
20931         char *line = NULL;
20932         size_t siz = (size_t)(~0) / 4;
20933         if (getline (&line, &siz, in) == -1)
20934           return 3;
20935       }
20936       return 0;
20937     }
20938
20939 _ACEOF
20940 if ac_fn_c_try_run "$LINENO"; then :
20941   am_cv_func_working_getline=yes
20942 else
20943   am_cv_func_working_getline=no
20944 fi
20945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20946   conftest.$ac_objext conftest.beam conftest.$ac_ext
20947 fi
20948
20949 fi
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
20951 $as_echo "$am_cv_func_working_getline" >&6; }
20952   fi
20953
20954   if test $ac_cv_have_decl_getline = no; then
20955     HAVE_DECL_GETLINE=0
20956   fi
20957
20958   case "$am_cv_func_working_getline" in
20959     *no)
20960                         REPLACE_GETLINE=1
20961       ;;
20962   esac
20963
20964   if test $REPLACE_GETLINE = 1; then
20965
20966
20967
20968
20969
20970
20971
20972
20973   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
20974
20975
20976   :
20977
20978   fi
20979
20980
20981
20982
20983
20984           GNULIB_GETLINE=1
20985
20986
20987
20988
20989
20990 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002   :
21003
21004
21005
21006
21007
21008
21009   gl_gettimeofday_timezone=void
21010   if test $ac_cv_func_gettimeofday != yes; then
21011     HAVE_GETTIMEOFDAY=0
21012   else
21013
21014
21015
21016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21017 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21018 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
21019   $as_echo_n "(cached) " >&6
21020 else
21021   if test "$cross_compiling" = yes; then :
21022   # When cross-compiling:
21023       case "$host_os" in
21024                 # Guess all is fine on glibc systems.
21025         *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21026                 # If we don't know, assume the worst.
21027         *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21028       esac
21029
21030 else
21031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21032 /* end confdefs.h.  */
21033 #include <string.h>
21034           #include <sys/time.h>
21035           #include <time.h>
21036           #include <stdlib.h>
21037
21038 int
21039 main ()
21040 {
21041
21042           time_t t = 0;
21043           struct tm *lt;
21044           struct tm saved_lt;
21045           struct timeval tv;
21046           lt = localtime (&t);
21047           saved_lt = *lt;
21048           gettimeofday (&tv, NULL);
21049           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21050
21051   ;
21052   return 0;
21053 }
21054 _ACEOF
21055 if ac_fn_c_try_run "$LINENO"; then :
21056   gl_cv_func_gettimeofday_clobber=no
21057 else
21058   gl_cv_func_gettimeofday_clobber=yes
21059 fi
21060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21061   conftest.$ac_objext conftest.beam conftest.$ac_ext
21062 fi
21063
21064 fi
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21066 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21067
21068  case "$gl_cv_func_gettimeofday_clobber" in
21069    *yes)
21070      REPLACE_GETTIMEOFDAY=1
21071
21072   REPLACE_GMTIME=1
21073   REPLACE_LOCALTIME=1
21074
21075
21076 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21077
21078      ;;
21079  esac
21080
21081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21082 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21083 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
21084   $as_echo_n "(cached) " >&6
21085 else
21086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21087 /* end confdefs.h.  */
21088 #include <sys/time.h>
21089               struct timeval c;
21090               int gettimeofday (struct timeval *restrict, void *restrict);
21091
21092 int
21093 main ()
21094 {
21095 /* glibc uses struct timezone * rather than the POSIX void *
21096                  if _GNU_SOURCE is defined.  However, since the only portable
21097                  use of gettimeofday uses NULL as the second parameter, and
21098                  since the glibc definition is actually more typesafe, it is
21099                  not worth wrapping this to get a compliant signature.  */
21100               int (*f) (struct timeval *restrict, void *restrict)
21101                 = gettimeofday;
21102               int x = f (&c, 0);
21103               return !(x | c.tv_sec | c.tv_usec);
21104
21105   ;
21106   return 0;
21107 }
21108 _ACEOF
21109 if ac_fn_c_try_compile "$LINENO"; then :
21110   gl_cv_func_gettimeofday_posix_signature=yes
21111 else
21112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21113 /* end confdefs.h.  */
21114 #include <sys/time.h>
21115 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21116
21117 int
21118 main ()
21119 {
21120
21121   ;
21122   return 0;
21123 }
21124 _ACEOF
21125 if ac_fn_c_try_compile "$LINENO"; then :
21126   gl_cv_func_gettimeofday_posix_signature=almost
21127 else
21128   gl_cv_func_gettimeofday_posix_signature=no
21129 fi
21130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21131 fi
21132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21133 fi
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21135 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21136     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21137       gl_gettimeofday_timezone='struct timezone'
21138     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21139       REPLACE_GETTIMEOFDAY=1
21140     fi
21141         if test $REPLACE_STRUCT_TIMEVAL = 1; then
21142       REPLACE_GETTIMEOFDAY=1
21143     fi
21144
21145   fi
21146
21147 cat >>confdefs.h <<_ACEOF
21148 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21149 _ACEOF
21150
21151
21152   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
21153
21154
21155
21156
21157
21158
21159
21160
21161   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21162
21163
21164   for ac_header in sys/timeb.h
21165 do :
21166   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21167 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
21168   cat >>confdefs.h <<_ACEOF
21169 #define HAVE_SYS_TIMEB_H 1
21170 _ACEOF
21171
21172 fi
21173
21174 done
21175
21176   for ac_func in _ftime
21177 do :
21178   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
21179 if test "x$ac_cv_func__ftime" = xyes; then :
21180   cat >>confdefs.h <<_ACEOF
21181 #define HAVE__FTIME 1
21182 _ACEOF
21183
21184 fi
21185 done
21186
21187
21188   fi
21189
21190
21191
21192
21193
21194           GNULIB_GETTIMEOFDAY=1
21195
21196
21197
21198
21199
21200 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
21201
21202
21203
21204   # Autoconf 2.61a.99 and earlier don't support linking a file only
21205   # in VPATH builds.  But since GNUmakefile is for maintainer use
21206   # only, it does not matter if we skip the link with older autoconf.
21207   # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
21208   # builds, so use a shell variable to bypass this.
21209   GNUmakefile=GNUmakefile
21210   ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
21211
21212
21213
21214
21215
21216
21217           am_save_CPPFLAGS="$CPPFLAGS"
21218
21219   for element in $INCICONV; do
21220     haveit=
21221     for x in $CPPFLAGS; do
21222
21223   acl_save_prefix="$prefix"
21224   prefix="$acl_final_prefix"
21225   acl_save_exec_prefix="$exec_prefix"
21226   exec_prefix="$acl_final_exec_prefix"
21227   eval x=\"$x\"
21228   exec_prefix="$acl_save_exec_prefix"
21229   prefix="$acl_save_prefix"
21230
21231       if test "X$x" = "X$element"; then
21232         haveit=yes
21233         break
21234       fi
21235     done
21236     if test -z "$haveit"; then
21237       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21238     fi
21239   done
21240
21241
21242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21243 $as_echo_n "checking for iconv... " >&6; }
21244 if ${am_cv_func_iconv+:} false; then :
21245   $as_echo_n "(cached) " >&6
21246 else
21247
21248     am_cv_func_iconv="no, consider installing GNU libiconv"
21249     am_cv_lib_iconv=no
21250     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21251 /* end confdefs.h.  */
21252 #include <stdlib.h>
21253 #include <iconv.h>
21254 int
21255 main ()
21256 {
21257 iconv_t cd = iconv_open("","");
21258        iconv(cd,NULL,NULL,NULL,NULL);
21259        iconv_close(cd);
21260   ;
21261   return 0;
21262 }
21263 _ACEOF
21264 if ac_fn_c_try_link "$LINENO"; then :
21265   am_cv_func_iconv=yes
21266 fi
21267 rm -f core conftest.err conftest.$ac_objext \
21268     conftest$ac_exeext conftest.$ac_ext
21269     if test "$am_cv_func_iconv" != yes; then
21270       am_save_LIBS="$LIBS"
21271       LIBS="$LIBS $LIBICONV"
21272       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21273 /* end confdefs.h.  */
21274 #include <stdlib.h>
21275 #include <iconv.h>
21276 int
21277 main ()
21278 {
21279 iconv_t cd = iconv_open("","");
21280          iconv(cd,NULL,NULL,NULL,NULL);
21281          iconv_close(cd);
21282   ;
21283   return 0;
21284 }
21285 _ACEOF
21286 if ac_fn_c_try_link "$LINENO"; then :
21287   am_cv_lib_iconv=yes
21288         am_cv_func_iconv=yes
21289 fi
21290 rm -f core conftest.err conftest.$ac_objext \
21291     conftest$ac_exeext conftest.$ac_ext
21292       LIBS="$am_save_LIBS"
21293     fi
21294
21295 fi
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21297 $as_echo "$am_cv_func_iconv" >&6; }
21298   if test "$am_cv_func_iconv" = yes; then
21299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
21300 $as_echo_n "checking for working iconv... " >&6; }
21301 if ${am_cv_func_iconv_works+:} false; then :
21302   $as_echo_n "(cached) " >&6
21303 else
21304
21305             am_save_LIBS="$LIBS"
21306       if test $am_cv_lib_iconv = yes; then
21307         LIBS="$LIBS $LIBICONV"
21308       fi
21309       if test "$cross_compiling" = yes; then :
21310   case "$host_os" in
21311            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
21312            *)            am_cv_func_iconv_works="guessing yes" ;;
21313          esac
21314 else
21315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21316 /* end confdefs.h.  */
21317
21318 #include <iconv.h>
21319 #include <string.h>
21320 int main ()
21321 {
21322   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
21323      returns.  */
21324   {
21325     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
21326     if (cd_utf8_to_88591 != (iconv_t)(-1))
21327       {
21328         static const char input[] = "\342\202\254"; /* EURO SIGN */
21329         char buf[10];
21330         const char *inptr = input;
21331         size_t inbytesleft = strlen (input);
21332         char *outptr = buf;
21333         size_t outbytesleft = sizeof (buf);
21334         size_t res = iconv (cd_utf8_to_88591,
21335                             (char **) &inptr, &inbytesleft,
21336                             &outptr, &outbytesleft);
21337         if (res == 0)
21338           return 1;
21339       }
21340   }
21341   /* Test against Solaris 10 bug: Failures are not distinguishable from
21342      successful returns.  */
21343   {
21344     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
21345     if (cd_ascii_to_88591 != (iconv_t)(-1))
21346       {
21347         static const char input[] = "\263";
21348         char buf[10];
21349         const char *inptr = input;
21350         size_t inbytesleft = strlen (input);
21351         char *outptr = buf;
21352         size_t outbytesleft = sizeof (buf);
21353         size_t res = iconv (cd_ascii_to_88591,
21354                             (char **) &inptr, &inbytesleft,
21355                             &outptr, &outbytesleft);
21356         if (res == 0)
21357           return 1;
21358       }
21359   }
21360 #if 0 /* This bug could be worked around by the caller.  */
21361   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
21362   {
21363     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
21364     if (cd_88591_to_utf8 != (iconv_t)(-1))
21365       {
21366         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
21367         char buf[50];
21368         const char *inptr = input;
21369         size_t inbytesleft = strlen (input);
21370         char *outptr = buf;
21371         size_t outbytesleft = sizeof (buf);
21372         size_t res = iconv (cd_88591_to_utf8,
21373                             (char **) &inptr, &inbytesleft,
21374                             &outptr, &outbytesleft);
21375         if ((int)res > 0)
21376           return 1;
21377       }
21378   }
21379 #endif
21380   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
21381      provided.  */
21382   if (/* Try standardized names.  */
21383       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
21384       /* Try IRIX, OSF/1 names.  */
21385       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
21386       /* Try AIX names.  */
21387       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
21388       /* Try HP-UX names.  */
21389       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
21390     return 1;
21391   return 0;
21392 }
21393 _ACEOF
21394 if ac_fn_c_try_run "$LINENO"; then :
21395   am_cv_func_iconv_works=yes
21396 else
21397   am_cv_func_iconv_works=no
21398 fi
21399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21400   conftest.$ac_objext conftest.beam conftest.$ac_ext
21401 fi
21402
21403       LIBS="$am_save_LIBS"
21404
21405 fi
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
21407 $as_echo "$am_cv_func_iconv_works" >&6; }
21408     case "$am_cv_func_iconv_works" in
21409       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
21410       *)   am_func_iconv=yes ;;
21411     esac
21412   else
21413     am_func_iconv=no am_cv_lib_iconv=no
21414   fi
21415   if test "$am_func_iconv" = yes; then
21416
21417 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21418
21419   fi
21420   if test "$am_cv_lib_iconv" = yes; then
21421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21422 $as_echo_n "checking how to link with libiconv... " >&6; }
21423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21424 $as_echo "$LIBICONV" >&6; }
21425   else
21426             CPPFLAGS="$am_save_CPPFLAGS"
21427     LIBICONV=
21428     LTLIBICONV=
21429   fi
21430
21431
21432
21433   if test "$am_cv_func_iconv" = yes; then
21434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21435 $as_echo_n "checking for iconv declaration... " >&6; }
21436     if ${am_cv_proto_iconv+:} false; then :
21437   $as_echo_n "(cached) " >&6
21438 else
21439
21440       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21441 /* end confdefs.h.  */
21442
21443 #include <stdlib.h>
21444 #include <iconv.h>
21445 extern
21446 #ifdef __cplusplus
21447 "C"
21448 #endif
21449 #if defined(__STDC__) || defined(__cplusplus)
21450 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21451 #else
21452 size_t iconv();
21453 #endif
21454
21455 int
21456 main ()
21457 {
21458
21459   ;
21460   return 0;
21461 }
21462 _ACEOF
21463 if ac_fn_c_try_compile "$LINENO"; then :
21464   am_cv_proto_iconv_arg1=""
21465 else
21466   am_cv_proto_iconv_arg1="const"
21467 fi
21468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21469       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);"
21470 fi
21471
21472     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21473     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
21474          $am_cv_proto_iconv" >&5
21475 $as_echo "
21476          $am_cv_proto_iconv" >&6; }
21477
21478 cat >>confdefs.h <<_ACEOF
21479 #define ICONV_CONST $am_cv_proto_iconv_arg1
21480 _ACEOF
21481
21482   fi
21483
21484
21485
21486
21487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
21488 $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
21489 if ${gl_cv_ld_output_def+:} false; then :
21490   $as_echo_n "(cached) " >&6
21491 else
21492   if test "$enable_shared" = no; then
21493        gl_cv_ld_output_def="not needed, shared libraries are disabled"
21494      else
21495        gl_ldflags_save=$LDFLAGS
21496        LDFLAGS="-Wl,--output-def,conftest.def"
21497        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21498 /* end confdefs.h.  */
21499
21500 int
21501 main ()
21502 {
21503
21504   ;
21505   return 0;
21506 }
21507 _ACEOF
21508 if ac_fn_c_try_link "$LINENO"; then :
21509   gl_cv_ld_output_def=yes
21510 else
21511   gl_cv_ld_output_def=no
21512 fi
21513 rm -f core conftest.err conftest.$ac_objext \
21514     conftest$ac_exeext conftest.$ac_ext
21515        rm -f conftest.def
21516        LDFLAGS="$gl_ldflags_save"
21517      fi
21518 fi
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
21520 $as_echo "$gl_cv_ld_output_def" >&6; }
21521    if test "x$gl_cv_ld_output_def" = "xyes"; then
21522   HAVE_LD_OUTPUT_DEF_TRUE=
21523   HAVE_LD_OUTPUT_DEF_FALSE='#'
21524 else
21525   HAVE_LD_OUTPUT_DEF_TRUE='#'
21526   HAVE_LD_OUTPUT_DEF_FALSE=
21527 fi
21528
21529
21530
21531   # Check whether --enable-ld-version-script was given.
21532 if test "${enable_ld_version_script+set}" = set; then :
21533   enableval=$enable_ld_version_script; have_ld_version_script=$enableval
21534 fi
21535
21536   if test -z "$have_ld_version_script"; then
21537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
21538 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
21539     save_LDFLAGS="$LDFLAGS"
21540     LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
21541     cat > conftest.map <<EOF
21542 foo
21543 EOF
21544     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21545 /* end confdefs.h.  */
21546
21547 int
21548 main ()
21549 {
21550
21551   ;
21552   return 0;
21553 }
21554 _ACEOF
21555 if ac_fn_c_try_link "$LINENO"; then :
21556   accepts_syntax_errors=yes
21557 else
21558   accepts_syntax_errors=no
21559 fi
21560 rm -f core conftest.err conftest.$ac_objext \
21561     conftest$ac_exeext conftest.$ac_ext
21562     if test "$accepts_syntax_errors" = no; then
21563       cat > conftest.map <<EOF
21564 VERS_1 {
21565         global: sym;
21566 };
21567
21568 VERS_2 {
21569         global: sym;
21570 } VERS_1;
21571 EOF
21572       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21573 /* end confdefs.h.  */
21574
21575 int
21576 main ()
21577 {
21578
21579   ;
21580   return 0;
21581 }
21582 _ACEOF
21583 if ac_fn_c_try_link "$LINENO"; then :
21584   have_ld_version_script=yes
21585 else
21586   have_ld_version_script=no
21587 fi
21588 rm -f core conftest.err conftest.$ac_objext \
21589     conftest$ac_exeext conftest.$ac_ext
21590     else
21591       have_ld_version_script=no
21592     fi
21593     rm -f conftest.map
21594     LDFLAGS="$save_LDFLAGS"
21595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
21596 $as_echo "$have_ld_version_script" >&6; }
21597   fi
21598    if test "$have_ld_version_script" = "yes"; then
21599   HAVE_LD_VERSION_SCRIPT_TRUE=
21600   HAVE_LD_VERSION_SCRIPT_FALSE='#'
21601 else
21602   HAVE_LD_VERSION_SCRIPT_TRUE='#'
21603   HAVE_LD_VERSION_SCRIPT_FALSE=
21604 fi
21605
21606
21607
21608
21609
21610
21611
21612
21613   :
21614
21615
21616
21617
21618
21619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
21620 $as_echo_n "checking whether lseek detects pipes... " >&6; }
21621 if ${gl_cv_func_lseek_pipe+:} false; then :
21622   $as_echo_n "(cached) " >&6
21623 else
21624   case "$host_os" in
21625        mingw*)
21626                                                                gl_cv_func_lseek_pipe=no
21627          ;;
21628        *)
21629          if test $cross_compiling = no; then
21630            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21631 /* end confdefs.h.  */
21632
21633 #include <sys/types.h> /* for off_t */
21634 #include <stdio.h> /* for SEEK_CUR */
21635 #if HAVE_UNISTD_H
21636 # include <unistd.h>
21637 #else /* on Windows with MSVC */
21638 # include <io.h>
21639 #endif
21640
21641 int
21642 main ()
21643 {
21644
21645   /* Exit with success only if stdin is seekable.  */
21646   return lseek (0, (off_t)0, SEEK_CUR) < 0;
21647
21648   ;
21649   return 0;
21650 }
21651 _ACEOF
21652 if ac_fn_c_try_link "$LINENO"; then :
21653   if test -s conftest$ac_exeext \
21654                  && ./conftest$ac_exeext < conftest.$ac_ext \
21655                  && test 1 = "`echo hi \
21656                    | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
21657                 gl_cv_func_lseek_pipe=yes
21658               else
21659                 gl_cv_func_lseek_pipe=no
21660               fi
21661
21662 else
21663   gl_cv_func_lseek_pipe=no
21664 fi
21665 rm -f core conftest.err conftest.$ac_objext \
21666     conftest$ac_exeext conftest.$ac_ext
21667          else
21668            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21669 /* end confdefs.h.  */
21670
21671 #if defined __BEOS__
21672 /* BeOS mistakenly return 0 when trying to seek on pipes.  */
21673   Choke me.
21674 #endif
21675 _ACEOF
21676 if ac_fn_c_try_compile "$LINENO"; then :
21677   gl_cv_func_lseek_pipe=yes
21678 else
21679   gl_cv_func_lseek_pipe=no
21680 fi
21681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21682          fi
21683          ;;
21684      esac
21685
21686 fi
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
21688 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
21689   if test $gl_cv_func_lseek_pipe = no; then
21690     REPLACE_LSEEK=1
21691
21692 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
21693
21694   fi
21695
21696
21697   if test $WINDOWS_64_BIT_OFF_T = 1; then
21698     REPLACE_LSEEK=1
21699   fi
21700
21701   if test $REPLACE_LSEEK = 1; then
21702
21703
21704
21705
21706
21707
21708
21709
21710   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
21711
21712   fi
21713
21714
21715
21716
21717
21718           GNULIB_LSEEK=1
21719
21720
21721
21722
21723
21724 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
21725
21726
21727
21728
21729
21730
21731
21732
21733   if test $gl_cv_func_malloc_posix = yes; then
21734
21735 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
21736
21737   else
21738     REPLACE_MALLOC=1
21739   fi
21740
21741   if test $REPLACE_MALLOC = 1; then
21742
21743
21744
21745
21746
21747
21748
21749
21750   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
21751
21752   fi
21753
21754
21755
21756
21757
21758           GNULIB_MALLOC_POSIX=1
21759
21760
21761
21762
21763
21764 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
21765
21766
21767
21768
21769   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
21770
21771
21772
21773
21774
21775
21776
21777
21778   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
21779
21780
21781   for ac_header in bp-sym.h
21782 do :
21783   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
21784 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
21785   cat >>confdefs.h <<_ACEOF
21786 #define HAVE_BP_SYM_H 1
21787 _ACEOF
21788
21789 fi
21790
21791 done
21792
21793
21794   fi
21795
21796
21797
21798
21799
21800           GNULIB_MEMCHR=1
21801
21802
21803
21804
21805
21806 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
21807
21808
21809
21810
21811
21812
21813
21814   for ac_func in memmem
21815 do :
21816   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
21817 if test "x$ac_cv_func_memmem" = xyes; then :
21818   cat >>confdefs.h <<_ACEOF
21819 #define HAVE_MEMMEM 1
21820 _ACEOF
21821
21822 fi
21823 done
21824
21825   if test $ac_cv_func_memmem = yes; then
21826     HAVE_MEMMEM=1
21827   else
21828     HAVE_MEMMEM=0
21829   fi
21830
21831   :
21832
21833
21834
21835
21836
21837   if test $ac_cv_have_decl_memmem = no; then
21838     HAVE_DECL_MEMMEM=0
21839   else
21840             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
21841 $as_echo_n "checking whether memmem works... " >&6; }
21842 if ${gl_cv_func_memmem_works_always+:} false; then :
21843   $as_echo_n "(cached) " >&6
21844 else
21845   if test "$cross_compiling" = yes; then :
21846                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21847 /* end confdefs.h.  */
21848
21849 #ifdef __GNU_LIBRARY__
21850  #include <features.h>
21851  #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
21852                           || __GLIBC_MINOR__ > 12)) \
21853       || (__GLIBC__ > 2)) \
21854      || defined __UCLIBC__
21855   Lucky user
21856  #endif
21857 #elif defined __CYGWIN__
21858  #include <cygwin/version.h>
21859  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
21860   Lucky user
21861  #endif
21862 #else
21863   Lucky user
21864 #endif
21865
21866 _ACEOF
21867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21868   $EGREP "Lucky user" >/dev/null 2>&1; then :
21869   gl_cv_func_memmem_works_always="guessing yes"
21870 else
21871   gl_cv_func_memmem_works_always="guessing no"
21872 fi
21873 rm -f conftest*
21874
21875
21876 else
21877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21878 /* end confdefs.h.  */
21879
21880 #include <string.h> /* for memmem */
21881 #define P "_EF_BF_BD"
21882 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
21883 #define NEEDLE P P P P P
21884
21885 int
21886 main ()
21887 {
21888
21889     int result = 0;
21890     if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
21891       result |= 1;
21892     /* Check for empty needle behavior.  */
21893     {
21894       const char *haystack = "AAA";
21895       if (memmem (haystack, 3, NULL, 0) != haystack)
21896         result |= 2;
21897     }
21898     return result;
21899
21900   ;
21901   return 0;
21902 }
21903 _ACEOF
21904 if ac_fn_c_try_run "$LINENO"; then :
21905   gl_cv_func_memmem_works_always=yes
21906 else
21907   gl_cv_func_memmem_works_always=no
21908 fi
21909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21910   conftest.$ac_objext conftest.beam conftest.$ac_ext
21911 fi
21912
21913
21914 fi
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
21916 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
21917     case "$gl_cv_func_memmem_works_always" in
21918       *yes) ;;
21919       *)
21920         REPLACE_MEMMEM=1
21921         ;;
21922     esac
21923   fi
21924   :
21925
21926   if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
21927
21928
21929
21930
21931
21932
21933
21934
21935   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
21936
21937   fi
21938
21939
21940
21941
21942
21943           GNULIB_MEMMEM=1
21944
21945
21946
21947
21948
21949 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
21950
21951
21952
21953
21954
21955
21956
21957
21958   :
21959
21960
21961
21962
21963
21964   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
21965     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
21966
21967 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
21968
21969   else
21970     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
21971   fi
21972
21973
21974   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21975
21976
21977
21978
21979
21980
21981
21982
21983   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
21984
21985   fi
21986
21987
21988
21989   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21990
21991
21992
21993
21994
21995
21996
21997
21998   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
21999
22000   fi
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010   :
22011
22012
22013
22014
22015
22016
22017
22018
22019      if test $gl_cv_have_include_next = yes; then
22020        gl_cv_next_netdb_h='<'netdb.h'>'
22021      else
22022        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
22023 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
22024 if ${gl_cv_next_netdb_h+:} false; then :
22025   $as_echo_n "(cached) " >&6
22026 else
22027
22028              if test $ac_cv_header_netdb_h = yes; then
22029
22030
22031
22032
22033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22034 /* end confdefs.h.  */
22035 #include <netdb.h>
22036 _ACEOF
22037                 case "$host_os" in
22038     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22039     *)    gl_absname_cpp="$ac_cpp" ;;
22040   esac
22041
22042   case "$host_os" in
22043     mingw*)
22044                                           gl_dirsep_regex='[/\\]'
22045       ;;
22046     *)
22047       gl_dirsep_regex='\/'
22048       ;;
22049   esac
22050       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22051   gl_header_literal_regex=`echo 'netdb.h' \
22052                            | sed -e "$gl_make_literal_regex_sed"`
22053   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22054       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22055       s|^/[^/]|//&|
22056       p
22057       q
22058     }'
22059
22060         gl_cv_absolute_netdb_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22061   sed -n "$gl_absolute_header_sed"`
22062
22063            gl_header=$gl_cv_absolute_netdb_h
22064            gl_cv_next_netdb_h='"'$gl_header'"'
22065           else
22066                gl_cv_next_netdb_h='<'netdb.h'>'
22067              fi
22068
22069
22070 fi
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
22072 $as_echo "$gl_cv_next_netdb_h" >&6; }
22073      fi
22074      NEXT_NETDB_H=$gl_cv_next_netdb_h
22075
22076      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22077        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22078        gl_next_as_first_directive='<'netdb.h'>'
22079      else
22080        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22081        gl_next_as_first_directive=$gl_cv_next_netdb_h
22082      fi
22083      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
22084
22085
22086
22087
22088   if test $ac_cv_header_netdb_h = yes; then
22089     HAVE_NETDB_H=1
22090   else
22091     HAVE_NETDB_H=0
22092   fi
22093
22094
22095
22096     for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
22097     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22099 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22100 if eval \${$as_gl_Symbol+:} false; then :
22101   $as_echo_n "(cached) " >&6
22102 else
22103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22104 /* end confdefs.h.  */
22105 #include <netdb.h>
22106 int
22107 main ()
22108 {
22109 #undef $gl_func
22110   (void) $gl_func;
22111   ;
22112   return 0;
22113 }
22114 _ACEOF
22115 if ac_fn_c_try_compile "$LINENO"; then :
22116   eval "$as_gl_Symbol=yes"
22117 else
22118   eval "$as_gl_Symbol=no"
22119 fi
22120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121 fi
22122 eval ac_res=\$$as_gl_Symbol
22123                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22124 $as_echo "$ac_res" >&6; }
22125     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22126   cat >>confdefs.h <<_ACEOF
22127 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22128 _ACEOF
22129
22130                      eval ac_cv_have_decl_$gl_func=yes
22131 fi
22132       done
22133
22134
22135
22136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
22137 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
22138 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
22139   $as_echo_n "(cached) " >&6
22140 else
22141
22142       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22143 /* end confdefs.h.  */
22144 #include <netinet/in.h>
22145 int
22146 main ()
22147 {
22148
22149   ;
22150   return 0;
22151 }
22152 _ACEOF
22153 if ac_fn_c_try_compile "$LINENO"; then :
22154   gl_cv_header_netinet_in_h_selfcontained=yes
22155 else
22156   gl_cv_header_netinet_in_h_selfcontained=no
22157 fi
22158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22159
22160 fi
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
22162 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
22163   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
22164     NETINET_IN_H=''
22165   else
22166     NETINET_IN_H='netinet/in.h'
22167     for ac_header in netinet/in.h
22168 do :
22169   ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22170 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
22171   cat >>confdefs.h <<_ACEOF
22172 #define HAVE_NETINET_IN_H 1
22173 _ACEOF
22174
22175 fi
22176
22177 done
22178
22179
22180
22181
22182
22183
22184
22185   :
22186
22187
22188
22189
22190
22191
22192
22193
22194      if test $gl_cv_have_include_next = yes; then
22195        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
22196      else
22197        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
22198 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
22199 if ${gl_cv_next_netinet_in_h+:} false; then :
22200   $as_echo_n "(cached) " >&6
22201 else
22202
22203              if test $ac_cv_header_netinet_in_h = yes; then
22204
22205
22206
22207
22208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22209 /* end confdefs.h.  */
22210 #include <netinet/in.h>
22211 _ACEOF
22212                 case "$host_os" in
22213     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22214     *)    gl_absname_cpp="$ac_cpp" ;;
22215   esac
22216
22217   case "$host_os" in
22218     mingw*)
22219                                           gl_dirsep_regex='[/\\]'
22220       ;;
22221     *)
22222       gl_dirsep_regex='\/'
22223       ;;
22224   esac
22225       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22226   gl_header_literal_regex=`echo 'netinet/in.h' \
22227                            | sed -e "$gl_make_literal_regex_sed"`
22228   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22229       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22230       s|^/[^/]|//&|
22231       p
22232       q
22233     }'
22234
22235         gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22236   sed -n "$gl_absolute_header_sed"`
22237
22238            gl_header=$gl_cv_absolute_netinet_in_h
22239            gl_cv_next_netinet_in_h='"'$gl_header'"'
22240           else
22241                gl_cv_next_netinet_in_h='<'netinet/in.h'>'
22242              fi
22243
22244
22245 fi
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
22247 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
22248      fi
22249      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
22250
22251      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22252        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22253        gl_next_as_first_directive='<'netinet/in.h'>'
22254      else
22255        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22256        gl_next_as_first_directive=$gl_cv_next_netinet_in_h
22257      fi
22258      NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
22259
22260
22261
22262
22263     if test $ac_cv_header_netinet_in_h = yes; then
22264       HAVE_NETINET_IN_H=1
22265     else
22266       HAVE_NETINET_IN_H=0
22267     fi
22268
22269   fi
22270
22271    if test -n "$NETINET_IN_H"; then
22272   GL_GENERATE_NETINET_IN_H_TRUE=
22273   GL_GENERATE_NETINET_IN_H_FALSE='#'
22274 else
22275   GL_GENERATE_NETINET_IN_H_TRUE='#'
22276   GL_GENERATE_NETINET_IN_H_FALSE=
22277 fi
22278
22279
22280
22281   # Extract the first word of "pmccabe", so it can be a program name with args.
22282 set dummy pmccabe; ac_word=$2
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22284 $as_echo_n "checking for $ac_word... " >&6; }
22285 if ${ac_cv_path_PMCCABE+:} false; then :
22286   $as_echo_n "(cached) " >&6
22287 else
22288   case $PMCCABE in
22289   [\\/]* | ?:[\\/]*)
22290   ac_cv_path_PMCCABE="$PMCCABE" # Let the user override the test with a path.
22291   ;;
22292   *)
22293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22294 for as_dir in $PATH
22295 do
22296   IFS=$as_save_IFS
22297   test -z "$as_dir" && as_dir=.
22298     for ac_exec_ext in '' $ac_executable_extensions; do
22299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22300     ac_cv_path_PMCCABE="$as_dir/$ac_word$ac_exec_ext"
22301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22302     break 2
22303   fi
22304 done
22305   done
22306 IFS=$as_save_IFS
22307
22308   test -z "$ac_cv_path_PMCCABE" && ac_cv_path_PMCCABE="false"
22309   ;;
22310 esac
22311 fi
22312 PMCCABE=$ac_cv_path_PMCCABE
22313 if test -n "$PMCCABE"; then
22314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMCCABE" >&5
22315 $as_echo "$PMCCABE" >&6; }
22316 else
22317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318 $as_echo "no" >&6; }
22319 fi
22320
22321
22322   :
22323
22324
22325
22326   if test $gl_cv_func_malloc_posix = yes; then
22327
22328 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
22329
22330   else
22331     REPLACE_REALLOC=1
22332   fi
22333
22334   if test $REPLACE_REALLOC = 1; then
22335
22336
22337
22338
22339
22340
22341
22342
22343   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
22344
22345   fi
22346
22347
22348
22349
22350
22351           GNULIB_REALLOC_POSIX=1
22352
22353
22354
22355
22356
22357 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
22358
22359
22360
22361
22362   for ac_header in stdint.h
22363 do :
22364   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
22365 if test "x$ac_cv_header_stdint_h" = xyes; then :
22366   cat >>confdefs.h <<_ACEOF
22367 #define HAVE_STDINT_H 1
22368 _ACEOF
22369
22370 fi
22371
22372 done
22373
22374     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
22375 $as_echo_n "checking for SIZE_MAX... " >&6; }
22376 if ${gl_cv_size_max+:} false; then :
22377   $as_echo_n "(cached) " >&6
22378 else
22379
22380     gl_cv_size_max=
22381     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22382 /* end confdefs.h.  */
22383
22384 #include <limits.h>
22385 #if HAVE_STDINT_H
22386 #include <stdint.h>
22387 #endif
22388 #ifdef SIZE_MAX
22389 Found it
22390 #endif
22391
22392 _ACEOF
22393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22394   $EGREP "Found it" >/dev/null 2>&1; then :
22395   gl_cv_size_max=yes
22396 fi
22397 rm -f conftest*
22398
22399     if test -z "$gl_cv_size_max"; then
22400                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
22401 #include <limits.h>"; then :
22402
22403 else
22404   size_t_bits_minus_1=
22405 fi
22406
22407       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
22408
22409 else
22410   fits_in_uint=
22411 fi
22412
22413       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
22414         if test $fits_in_uint = 1; then
22415                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22416 /* end confdefs.h.  */
22417 #include <stddef.h>
22418             extern size_t foo;
22419             extern unsigned long foo;
22420
22421 int
22422 main ()
22423 {
22424
22425   ;
22426   return 0;
22427 }
22428 _ACEOF
22429 if ac_fn_c_try_compile "$LINENO"; then :
22430   fits_in_uint=0
22431 fi
22432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22433         fi
22434                                 if test $fits_in_uint = 1; then
22435           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
22436         else
22437           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
22438         fi
22439       else
22440                 gl_cv_size_max='((size_t)~(size_t)0)'
22441       fi
22442     fi
22443
22444 fi
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
22446 $as_echo "$gl_cv_size_max" >&6; }
22447   if test "$gl_cv_size_max" != yes; then
22448
22449 cat >>confdefs.h <<_ACEOF
22450 #define SIZE_MAX $gl_cv_size_max
22451 _ACEOF
22452
22453   fi
22454
22455
22456
22457
22458   gl_cv_func_snprintf_usable=no
22459   for ac_func in snprintf
22460 do :
22461   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22462 if test "x$ac_cv_func_snprintf" = xyes; then :
22463   cat >>confdefs.h <<_ACEOF
22464 #define HAVE_SNPRINTF 1
22465 _ACEOF
22466
22467 fi
22468 done
22469
22470   if test $ac_cv_func_snprintf = yes; then
22471
22472
22473
22474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
22475 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
22476 if ${gl_cv_func_snprintf_size1+:} false; then :
22477   $as_echo_n "(cached) " >&6
22478 else
22479
22480       if test "$cross_compiling" = yes; then :
22481   gl_cv_func_snprintf_size1="guessing yes"
22482 else
22483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22484 /* end confdefs.h.  */
22485
22486 #include <stdio.h>
22487 #if HAVE_SNPRINTF
22488 # define my_snprintf snprintf
22489 #else
22490 # include <stdarg.h>
22491 static int my_snprintf (char *buf, int size, const char *format, ...)
22492 {
22493   va_list args;
22494   int ret;
22495   va_start (args, format);
22496   ret = vsnprintf (buf, size, format, args);
22497   va_end (args);
22498   return ret;
22499 }
22500 #endif
22501 int main()
22502 {
22503   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
22504   my_snprintf (buf, 1, "%d", 12345);
22505   return buf[1] != 'E';
22506 }
22507 _ACEOF
22508 if ac_fn_c_try_run "$LINENO"; then :
22509   gl_cv_func_snprintf_size1=yes
22510 else
22511   gl_cv_func_snprintf_size1=no
22512 fi
22513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22514   conftest.$ac_objext conftest.beam conftest.$ac_ext
22515 fi
22516
22517
22518 fi
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
22520 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
22521
22522     case "$gl_cv_func_snprintf_size1" in
22523       *yes)
22524
22525         case "$gl_cv_func_snprintf_retval_c99" in
22526           *yes)
22527
22528
22529      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
22530 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
22531 if ${gl_cv_func_printf_positions+:} false; then :
22532   $as_echo_n "(cached) " >&6
22533 else
22534
22535       if test "$cross_compiling" = yes; then :
22536
22537          case "$host_os" in
22538            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
22539                          gl_cv_func_printf_positions="guessing no";;
22540            beos*)        gl_cv_func_printf_positions="guessing no";;
22541            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
22542            *)            gl_cv_func_printf_positions="guessing yes";;
22543          esac
22544
22545 else
22546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22547 /* end confdefs.h.  */
22548
22549 #include <stdio.h>
22550 #include <string.h>
22551 /* The string "%2$d %1$d", with dollar characters protected from the shell's
22552    dollar expansion (possibly an autoconf bug).  */
22553 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22554 static char buf[100];
22555 int main ()
22556 {
22557   sprintf (buf, format, 33, 55);
22558   return (strcmp (buf, "55 33") != 0);
22559 }
22560 _ACEOF
22561 if ac_fn_c_try_run "$LINENO"; then :
22562   gl_cv_func_printf_positions=yes
22563 else
22564   gl_cv_func_printf_positions=no
22565 fi
22566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22567   conftest.$ac_objext conftest.beam conftest.$ac_ext
22568 fi
22569
22570
22571 fi
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
22573 $as_echo "$gl_cv_func_printf_positions" >&6; }
22574
22575             case "$gl_cv_func_printf_positions" in
22576               *yes)
22577                 gl_cv_func_snprintf_usable=yes
22578                 ;;
22579             esac
22580             ;;
22581         esac
22582         ;;
22583     esac
22584   fi
22585   if test $gl_cv_func_snprintf_usable = no; then
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
22597
22598   if test $ac_cv_func_snprintf = yes; then
22599     REPLACE_SNPRINTF=1
22600   fi
22601   :
22602
22603   fi
22604
22605   :
22606
22607
22608
22609
22610
22611   if test $ac_cv_have_decl_snprintf = no; then
22612     HAVE_DECL_SNPRINTF=0
22613   fi
22614
22615
22616
22617
22618
22619
22620           GNULIB_SNPRINTF=1
22621
22622
22623
22624
22625
22626 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
22627
22628
22629
22630
22631
22632 cat >>confdefs.h <<_ACEOF
22633 #define GNULIB_SNPRINTF 1
22634 _ACEOF
22635
22636
22637      ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22638 /* <sys/types.h> is not needed according to POSIX, but the
22639    <sys/socket.h> in i386-unknown-freebsd4.10 and
22640    powerpc-apple-darwin5.5 required it. */
22641 #include <sys/types.h>
22642 #if HAVE_SYS_SOCKET_H
22643 # include <sys/socket.h>
22644 #elif HAVE_WS2TCPIP_H
22645 # include <ws2tcpip.h>
22646 #endif
22647
22648 "
22649 if test "x$ac_cv_type_socklen_t" = xyes; then :
22650
22651 else
22652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22653 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22654       if ${gl_cv_socklen_t_equiv+:} false; then :
22655   $as_echo_n "(cached) " >&6
22656 else
22657   # Systems have either "struct sockaddr *" or
22658          # "void *" as the second argument to getpeername
22659          gl_cv_socklen_t_equiv=
22660          for arg2 in "struct sockaddr" void; do
22661            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
22662              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22663 /* end confdefs.h.  */
22664 #include <sys/types.h>
22665                    #include <sys/socket.h>
22666
22667                    int getpeername (int, $arg2 *, $t *);
22668 int
22669 main ()
22670 {
22671 $t len;
22672                   getpeername (0, 0, &len);
22673   ;
22674   return 0;
22675 }
22676 _ACEOF
22677 if ac_fn_c_try_compile "$LINENO"; then :
22678   gl_cv_socklen_t_equiv="$t"
22679 fi
22680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22681              test "$gl_cv_socklen_t_equiv" != "" && break
22682            done
22683            test "$gl_cv_socklen_t_equiv" != "" && break
22684          done
22685
22686 fi
22687
22688       if test "$gl_cv_socklen_t_equiv" = ""; then
22689         as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
22690       fi
22691       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22692 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22693
22694 cat >>confdefs.h <<_ACEOF
22695 #define socklen_t $gl_cv_socklen_t_equiv
22696 _ACEOF
22697
22698 fi
22699
22700
22701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22702 $as_echo_n "checking for ssize_t... " >&6; }
22703 if ${gt_cv_ssize_t+:} false; then :
22704   $as_echo_n "(cached) " >&6
22705 else
22706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22707 /* end confdefs.h.  */
22708 #include <sys/types.h>
22709 int
22710 main ()
22711 {
22712 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22713             return !x;
22714   ;
22715   return 0;
22716 }
22717 _ACEOF
22718 if ac_fn_c_try_compile "$LINENO"; then :
22719   gt_cv_ssize_t=yes
22720 else
22721   gt_cv_ssize_t=no
22722 fi
22723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22724 fi
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22726 $as_echo "$gt_cv_ssize_t" >&6; }
22727   if test $gt_cv_ssize_t = no; then
22728
22729 $as_echo "#define ssize_t int" >>confdefs.h
22730
22731   fi
22732
22733
22734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22735 $as_echo_n "checking for working stdalign.h... " >&6; }
22736 if ${gl_cv_header_working_stdalign_h+:} false; then :
22737   $as_echo_n "(cached) " >&6
22738 else
22739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22740 /* end confdefs.h.  */
22741 #include <stdalign.h>
22742             #include <stddef.h>
22743
22744             /* Test that alignof yields a result consistent with offsetof.
22745                This catches GCC bug 52023
22746                <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
22747             #ifdef __cplusplus
22748                template <class t> struct alignof_helper { char a; t b; };
22749             # define ao(type) offsetof (alignof_helper<type>, b)
22750             #else
22751             # define ao(type) offsetof (struct { char a; type b; }, b)
22752             #endif
22753             char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22754             char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22755             char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22756
22757             /* Test _Alignas only on platforms where gnulib can help.  */
22758             #if \
22759                 ((defined __cplusplus && 201103 <= __cplusplus) \
22760                  || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
22761                  || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22762               struct alignas_test { char c; char alignas (8) alignas_8; };
22763               char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
22764                                 ? 1 : -1];
22765             #endif
22766
22767 int
22768 main ()
22769 {
22770
22771   ;
22772   return 0;
22773 }
22774 _ACEOF
22775 if ac_fn_c_try_compile "$LINENO"; then :
22776   gl_cv_header_working_stdalign_h=yes
22777 else
22778   gl_cv_header_working_stdalign_h=no
22779 fi
22780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22781 fi
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22783 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22784
22785   if test $gl_cv_header_working_stdalign_h = yes; then
22786     STDALIGN_H=''
22787   else
22788     STDALIGN_H='stdalign.h'
22789   fi
22790
22791
22792    if test -n "$STDALIGN_H"; then
22793   GL_GENERATE_STDALIGN_H_TRUE=
22794   GL_GENERATE_STDALIGN_H_FALSE='#'
22795 else
22796   GL_GENERATE_STDALIGN_H_TRUE='#'
22797   GL_GENERATE_STDALIGN_H_FALSE=
22798 fi
22799
22800
22801
22802
22803
22804   # Define two additional variables used in the Makefile substitution.
22805
22806   if test "$ac_cv_header_stdbool_h" = yes; then
22807     STDBOOL_H=''
22808   else
22809     STDBOOL_H='stdbool.h'
22810   fi
22811
22812    if test -n "$STDBOOL_H"; then
22813   GL_GENERATE_STDBOOL_H_TRUE=
22814   GL_GENERATE_STDBOOL_H_FALSE='#'
22815 else
22816   GL_GENERATE_STDBOOL_H_TRUE='#'
22817   GL_GENERATE_STDBOOL_H_FALSE=
22818 fi
22819
22820
22821   if test "$ac_cv_type__Bool" = yes; then
22822     HAVE__BOOL=1
22823   else
22824     HAVE__BOOL=0
22825   fi
22826
22827
22828
22829
22830
22831   STDDEF_H=
22832   if test $gt_cv_c_wchar_t = no; then
22833     HAVE_WCHAR_T=0
22834     STDDEF_H=stddef.h
22835   fi
22836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22837 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22838 if ${gl_cv_decl_null_works+:} false; then :
22839   $as_echo_n "(cached) " >&6
22840 else
22841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22842 /* end confdefs.h.  */
22843 #include <stddef.h>
22844       int test[2 * (sizeof NULL == sizeof (void *)) -1];
22845
22846 int
22847 main ()
22848 {
22849
22850   ;
22851   return 0;
22852 }
22853 _ACEOF
22854 if ac_fn_c_try_compile "$LINENO"; then :
22855   gl_cv_decl_null_works=yes
22856 else
22857   gl_cv_decl_null_works=no
22858 fi
22859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22860 fi
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22862 $as_echo "$gl_cv_decl_null_works" >&6; }
22863   if test $gl_cv_decl_null_works = no; then
22864     REPLACE_NULL=1
22865     STDDEF_H=stddef.h
22866   fi
22867
22868    if test -n "$STDDEF_H"; then
22869   GL_GENERATE_STDDEF_H_TRUE=
22870   GL_GENERATE_STDDEF_H_FALSE='#'
22871 else
22872   GL_GENERATE_STDDEF_H_TRUE='#'
22873   GL_GENERATE_STDDEF_H_FALSE=
22874 fi
22875
22876   if test -n "$STDDEF_H"; then
22877
22878
22879
22880
22881
22882
22883
22884
22885      if test $gl_cv_have_include_next = yes; then
22886        gl_cv_next_stddef_h='<'stddef.h'>'
22887      else
22888        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22889 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22890 if ${gl_cv_next_stddef_h+:} false; then :
22891   $as_echo_n "(cached) " >&6
22892 else
22893
22894
22895
22896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22897 /* end confdefs.h.  */
22898 #include <stddef.h>
22899 _ACEOF
22900                 case "$host_os" in
22901     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22902     *)    gl_absname_cpp="$ac_cpp" ;;
22903   esac
22904
22905   case "$host_os" in
22906     mingw*)
22907                                           gl_dirsep_regex='[/\\]'
22908       ;;
22909     *)
22910       gl_dirsep_regex='\/'
22911       ;;
22912   esac
22913       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22914   gl_header_literal_regex=`echo 'stddef.h' \
22915                            | sed -e "$gl_make_literal_regex_sed"`
22916   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22917       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22918       s|^/[^/]|//&|
22919       p
22920       q
22921     }'
22922
22923         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22924   sed -n "$gl_absolute_header_sed"`
22925
22926            gl_header=$gl_cv_absolute_stddef_h
22927            gl_cv_next_stddef_h='"'$gl_header'"'
22928
22929
22930 fi
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22932 $as_echo "$gl_cv_next_stddef_h" >&6; }
22933      fi
22934      NEXT_STDDEF_H=$gl_cv_next_stddef_h
22935
22936      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22937        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22938        gl_next_as_first_directive='<'stddef.h'>'
22939      else
22940        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22941        gl_next_as_first_directive=$gl_cv_next_stddef_h
22942      fi
22943      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22944
22945
22946
22947
22948   fi
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961      if test $gl_cv_have_include_next = yes; then
22962        gl_cv_next_stdio_h='<'stdio.h'>'
22963      else
22964        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22965 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22966 if ${gl_cv_next_stdio_h+:} false; then :
22967   $as_echo_n "(cached) " >&6
22968 else
22969
22970
22971
22972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22973 /* end confdefs.h.  */
22974 #include <stdio.h>
22975 _ACEOF
22976                 case "$host_os" in
22977     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22978     *)    gl_absname_cpp="$ac_cpp" ;;
22979   esac
22980
22981   case "$host_os" in
22982     mingw*)
22983                                           gl_dirsep_regex='[/\\]'
22984       ;;
22985     *)
22986       gl_dirsep_regex='\/'
22987       ;;
22988   esac
22989       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22990   gl_header_literal_regex=`echo 'stdio.h' \
22991                            | sed -e "$gl_make_literal_regex_sed"`
22992   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22993       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22994       s|^/[^/]|//&|
22995       p
22996       q
22997     }'
22998
22999         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23000   sed -n "$gl_absolute_header_sed"`
23001
23002            gl_header=$gl_cv_absolute_stdio_h
23003            gl_cv_next_stdio_h='"'$gl_header'"'
23004
23005
23006 fi
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23008 $as_echo "$gl_cv_next_stdio_h" >&6; }
23009      fi
23010      NEXT_STDIO_H=$gl_cv_next_stdio_h
23011
23012      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23013        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23014        gl_next_as_first_directive='<'stdio.h'>'
23015      else
23016        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23017        gl_next_as_first_directive=$gl_cv_next_stdio_h
23018      fi
23019      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23020
23021
23022
23023
23024
23025       GNULIB_FSCANF=1
23026
23027
23028 cat >>confdefs.h <<_ACEOF
23029 #define GNULIB_FSCANF 1
23030 _ACEOF
23031
23032
23033   GNULIB_SCANF=1
23034
23035
23036 cat >>confdefs.h <<_ACEOF
23037 #define GNULIB_SCANF 1
23038 _ACEOF
23039
23040
23041   GNULIB_FGETC=1
23042   GNULIB_GETC=1
23043   GNULIB_GETCHAR=1
23044   GNULIB_FGETS=1
23045   GNULIB_FREAD=1
23046
23047
23048       GNULIB_FPRINTF=1
23049   GNULIB_PRINTF=1
23050   GNULIB_VFPRINTF=1
23051   GNULIB_VPRINTF=1
23052   GNULIB_FPUTC=1
23053   GNULIB_PUTC=1
23054   GNULIB_PUTCHAR=1
23055   GNULIB_FPUTS=1
23056   GNULIB_PUTS=1
23057   GNULIB_FWRITE=1
23058
23059
23060
23061
23062     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
23063     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23065 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23066 if eval \${$as_gl_Symbol+:} false; then :
23067   $as_echo_n "(cached) " >&6
23068 else
23069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23070 /* end confdefs.h.  */
23071 #include <stdio.h>
23072
23073 int
23074 main ()
23075 {
23076 #undef $gl_func
23077   (void) $gl_func;
23078   ;
23079   return 0;
23080 }
23081 _ACEOF
23082 if ac_fn_c_try_compile "$LINENO"; then :
23083   eval "$as_gl_Symbol=yes"
23084 else
23085   eval "$as_gl_Symbol=no"
23086 fi
23087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23088 fi
23089 eval ac_res=\$$as_gl_Symbol
23090                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23091 $as_echo "$ac_res" >&6; }
23092     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23093   cat >>confdefs.h <<_ACEOF
23094 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23095 _ACEOF
23096
23097                      eval ac_cv_have_decl_$gl_func=yes
23098 fi
23099       done
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112      if test $gl_cv_have_include_next = yes; then
23113        gl_cv_next_stdlib_h='<'stdlib.h'>'
23114      else
23115        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23116 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23117 if ${gl_cv_next_stdlib_h+:} false; then :
23118   $as_echo_n "(cached) " >&6
23119 else
23120
23121
23122
23123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23124 /* end confdefs.h.  */
23125 #include <stdlib.h>
23126 _ACEOF
23127                 case "$host_os" in
23128     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23129     *)    gl_absname_cpp="$ac_cpp" ;;
23130   esac
23131
23132   case "$host_os" in
23133     mingw*)
23134                                           gl_dirsep_regex='[/\\]'
23135       ;;
23136     *)
23137       gl_dirsep_regex='\/'
23138       ;;
23139   esac
23140       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23141   gl_header_literal_regex=`echo 'stdlib.h' \
23142                            | sed -e "$gl_make_literal_regex_sed"`
23143   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23144       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23145       s|^/[^/]|//&|
23146       p
23147       q
23148     }'
23149
23150         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23151   sed -n "$gl_absolute_header_sed"`
23152
23153            gl_header=$gl_cv_absolute_stdlib_h
23154            gl_cv_next_stdlib_h='"'$gl_header'"'
23155
23156
23157 fi
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23159 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23160      fi
23161      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23162
23163      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23164        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23165        gl_next_as_first_directive='<'stdlib.h'>'
23166      else
23167        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23168        gl_next_as_first_directive=$gl_cv_next_stdlib_h
23169      fi
23170      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23171
23172
23173
23174
23175
23176
23177     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
23178     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23180 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23181 if eval \${$as_gl_Symbol+:} false; then :
23182   $as_echo_n "(cached) " >&6
23183 else
23184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23185 /* end confdefs.h.  */
23186 #include <stdlib.h>
23187 #if HAVE_SYS_LOADAVG_H
23188 # include <sys/loadavg.h>
23189 #endif
23190 #if HAVE_RANDOM_H
23191 # include <random.h>
23192 #endif
23193
23194 int
23195 main ()
23196 {
23197 #undef $gl_func
23198   (void) $gl_func;
23199   ;
23200   return 0;
23201 }
23202 _ACEOF
23203 if ac_fn_c_try_compile "$LINENO"; then :
23204   eval "$as_gl_Symbol=yes"
23205 else
23206   eval "$as_gl_Symbol=no"
23207 fi
23208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23209 fi
23210 eval ac_res=\$$as_gl_Symbol
23211                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23212 $as_echo "$ac_res" >&6; }
23213     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23214   cat >>confdefs.h <<_ACEOF
23215 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23216 _ACEOF
23217
23218                      eval ac_cv_have_decl_$gl_func=yes
23219 fi
23220       done
23221
23222
23223
23224
23225
23226   for ac_func in strcasecmp
23227 do :
23228   ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
23229 if test "x$ac_cv_func_strcasecmp" = xyes; then :
23230   cat >>confdefs.h <<_ACEOF
23231 #define HAVE_STRCASECMP 1
23232 _ACEOF
23233
23234 fi
23235 done
23236
23237   if test $ac_cv_func_strcasecmp = no; then
23238     HAVE_STRCASECMP=0
23239   fi
23240
23241
23242
23243   for ac_func in strncasecmp
23244 do :
23245   ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
23246 if test "x$ac_cv_func_strncasecmp" = xyes; then :
23247   cat >>confdefs.h <<_ACEOF
23248 #define HAVE_STRNCASECMP 1
23249 _ACEOF
23250
23251 fi
23252 done
23253
23254   if test $ac_cv_func_strncasecmp = yes; then
23255     HAVE_STRNCASECMP=1
23256   else
23257     HAVE_STRNCASECMP=0
23258   fi
23259   ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
23260 if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
23261   ac_have_decl=1
23262 else
23263   ac_have_decl=0
23264 fi
23265
23266 cat >>confdefs.h <<_ACEOF
23267 #define HAVE_DECL_STRNCASECMP $ac_have_decl
23268 _ACEOF
23269
23270   if test $ac_cv_have_decl_strncasecmp = no; then
23271     HAVE_DECL_STRNCASECMP=0
23272   fi
23273
23274
23275   if test $HAVE_STRCASECMP = 0; then
23276
23277
23278
23279
23280
23281
23282
23283
23284   gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext"
23285
23286
23287   :
23288
23289   fi
23290   if test $HAVE_STRNCASECMP = 0; then
23291
23292
23293
23294
23295
23296
23297
23298
23299   gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext"
23300
23301
23302   :
23303
23304   fi
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316   :
23317
23318
23319
23320
23321
23322
23323   :
23324
23325
23326
23327
23328
23329   if test $ac_cv_have_decl_strndup = no; then
23330     HAVE_DECL_STRNDUP=0
23331   fi
23332
23333   if test $ac_cv_func_strndup = yes; then
23334     HAVE_STRNDUP=1
23335     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
23336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
23337 $as_echo_n "checking for working strndup... " >&6; }
23338 if ${gl_cv_func_strndup_works+:} false; then :
23339   $as_echo_n "(cached) " >&6
23340 else
23341   if test "$cross_compiling" = yes; then :
23342
23343           case $host_os in
23344             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
23345             *)               gl_cv_func_strndup_works="guessing yes";;
23346           esac
23347
23348 else
23349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23350 /* end confdefs.h.  */
23351
23352          #include <string.h>
23353                            #include <stdlib.h>
23354 int
23355 main ()
23356 {
23357
23358 #if !HAVE_DECL_STRNDUP
23359   extern
23360   #ifdef __cplusplus
23361   "C"
23362   #endif
23363   char *strndup (const char *, size_t);
23364 #endif
23365   char *s;
23366   s = strndup ("some longer string", 15);
23367   free (s);
23368   s = strndup ("shorter string", 13);
23369   return s[13] != '\0';
23370   ;
23371   return 0;
23372 }
23373 _ACEOF
23374 if ac_fn_c_try_run "$LINENO"; then :
23375   gl_cv_func_strndup_works=yes
23376 else
23377   gl_cv_func_strndup_works=no
23378 fi
23379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23380   conftest.$ac_objext conftest.beam conftest.$ac_ext
23381 fi
23382
23383 fi
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
23385 $as_echo "$gl_cv_func_strndup_works" >&6; }
23386     case $gl_cv_func_strndup_works in
23387       *no) REPLACE_STRNDUP=1 ;;
23388     esac
23389   else
23390     HAVE_STRNDUP=0
23391   fi
23392
23393   if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
23394
23395
23396
23397
23398
23399
23400
23401
23402   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
23403
23404   fi
23405
23406
23407
23408
23409
23410           GNULIB_STRNDUP=1
23411
23412
23413
23414
23415
23416 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
23417
23418
23419
23420
23421
23422
23423
23424
23425
23426   :
23427
23428
23429
23430
23431
23432   if test $ac_cv_have_decl_strnlen = no; then
23433     HAVE_DECL_STRNLEN=0
23434   else
23435
23436          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
23437 $as_echo_n "checking for working strnlen... " >&6; }
23438 if ${ac_cv_func_strnlen_working+:} false; then :
23439   $as_echo_n "(cached) " >&6
23440 else
23441   if test "$cross_compiling" = yes; then :
23442   # Guess no on AIX systems, yes otherwise.
23443                 case "$host_os" in
23444                   aix*) ac_cv_func_strnlen_working=no;;
23445                   *)    ac_cv_func_strnlen_working=yes;;
23446                 esac
23447 else
23448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23449 /* end confdefs.h.  */
23450 $ac_includes_default
23451 int
23452 main ()
23453 {
23454
23455 #define S "foobar"
23456 #define S_LEN (sizeof S - 1)
23457
23458   /* At least one implementation is buggy: that of AIX 4.3 would
23459      give strnlen (S, 1) == 3.  */
23460
23461   int i;
23462   for (i = 0; i < S_LEN + 1; ++i)
23463     {
23464       int expected = i <= S_LEN ? i : S_LEN;
23465       if (strnlen (S, i) != expected)
23466         return 1;
23467     }
23468   return 0;
23469
23470   ;
23471   return 0;
23472 }
23473 _ACEOF
23474 if ac_fn_c_try_run "$LINENO"; then :
23475   ac_cv_func_strnlen_working=yes
23476 else
23477   ac_cv_func_strnlen_working=no
23478 fi
23479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23480   conftest.$ac_objext conftest.beam conftest.$ac_ext
23481 fi
23482
23483 fi
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
23485 $as_echo "$ac_cv_func_strnlen_working" >&6; }
23486 test $ac_cv_func_strnlen_working = no && :
23487
23488
23489     if test $ac_cv_func_strnlen_working = no; then
23490       REPLACE_STRNLEN=1
23491     fi
23492   fi
23493
23494   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
23495
23496
23497
23498
23499
23500
23501
23502
23503   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
23504
23505     :
23506   fi
23507
23508
23509
23510
23511
23512           GNULIB_STRNLEN=1
23513
23514
23515
23516
23517
23518 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
23519
23520
23521
23522
23523
23524
23525
23526      for ac_func in strtok_r
23527 do :
23528   ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
23529 if test "x$ac_cv_func_strtok_r" = xyes; then :
23530   cat >>confdefs.h <<_ACEOF
23531 #define HAVE_STRTOK_R 1
23532 _ACEOF
23533
23534 fi
23535 done
23536
23537   if test $ac_cv_func_strtok_r = yes; then
23538     HAVE_STRTOK_R=1
23539                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
23540 $as_echo_n "checking whether strtok_r works... " >&6; }
23541 if ${gl_cv_func_strtok_r_works+:} false; then :
23542   $as_echo_n "(cached) " >&6
23543 else
23544   if test "$cross_compiling" = yes; then :
23545
23546           case "$host_os" in
23547                     # Guess no on glibc systems.
23548             *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
23549             *)      gl_cv_func_strtok_r_works="guessing yes";;
23550           esac
23551
23552 else
23553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23554 /* end confdefs.h.  */
23555
23556               #ifndef __OPTIMIZE__
23557               # define __OPTIMIZE__ 1
23558               #endif
23559               #undef __OPTIMIZE_SIZE__
23560               #undef __NO_INLINE__
23561               #include <stdlib.h>
23562               #include <string.h>
23563
23564 int
23565 main ()
23566 {
23567 static const char dummy[] = "\177\01a";
23568               char delimiters[] = "xxxxxxxx";
23569               char *save_ptr = (char *) dummy;
23570               strtok_r (delimiters, "x", &save_ptr);
23571               strtok_r (NULL, "x", &save_ptr);
23572               return 0;
23573
23574   ;
23575   return 0;
23576 }
23577
23578 _ACEOF
23579 if ac_fn_c_try_run "$LINENO"; then :
23580   gl_cv_func_strtok_r_works=yes
23581 else
23582   gl_cv_func_strtok_r_works=no
23583 fi
23584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23585   conftest.$ac_objext conftest.beam conftest.$ac_ext
23586 fi
23587
23588
23589 fi
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
23591 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
23592     case "$gl_cv_func_strtok_r_works" in
23593       *no)
23594                                 UNDEFINE_STRTOK_R=1
23595         ;;
23596     esac
23597   else
23598     HAVE_STRTOK_R=0
23599   fi
23600
23601   :
23602
23603
23604
23605
23606
23607   if test $ac_cv_have_decl_strtok_r = no; then
23608     HAVE_DECL_STRTOK_R=0
23609   fi
23610
23611   if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
23612
23613
23614
23615
23616
23617
23618
23619
23620   gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
23621
23622
23623   :
23624
23625   fi
23626
23627
23628
23629
23630
23631           GNULIB_STRTOK_R=1
23632
23633
23634
23635
23636
23637 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
23638
23639
23640
23641
23642
23643
23644
23645   for ac_func in strverscmp
23646 do :
23647   ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
23648 if test "x$ac_cv_func_strverscmp" = xyes; then :
23649   cat >>confdefs.h <<_ACEOF
23650 #define HAVE_STRVERSCMP 1
23651 _ACEOF
23652
23653 fi
23654 done
23655
23656   if test $ac_cv_func_strverscmp = no; then
23657     HAVE_STRVERSCMP=0
23658   fi
23659
23660   if test $HAVE_STRVERSCMP = 0; then
23661
23662
23663
23664
23665
23666
23667
23668
23669   gl_LIBOBJS="$gl_LIBOBJS strverscmp.$ac_objext"
23670
23671
23672   :
23673
23674   fi
23675
23676
23677
23678
23679
23680           GNULIB_STRVERSCMP=1
23681
23682
23683
23684
23685
23686 $as_echo "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h
23687
23688
23689
23690
23691
23692
23693
23694         case "$host_os" in
23695     osf*)
23696
23697 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
23698
23699       ;;
23700   esac
23701
23702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
23703 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
23704 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
23705   $as_echo_n "(cached) " >&6
23706 else
23707
23708       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23709 /* end confdefs.h.  */
23710 #include <sys/socket.h>
23711 int
23712 main ()
23713 {
23714
23715   ;
23716   return 0;
23717 }
23718 _ACEOF
23719 if ac_fn_c_try_compile "$LINENO"; then :
23720   gl_cv_header_sys_socket_h_selfcontained=yes
23721 else
23722   gl_cv_header_sys_socket_h_selfcontained=no
23723 fi
23724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23725
23726 fi
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
23728 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
23729   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
23730             for ac_func in shutdown
23731 do :
23732   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
23733 if test "x$ac_cv_func_shutdown" = xyes; then :
23734   cat >>confdefs.h <<_ACEOF
23735 #define HAVE_SHUTDOWN 1
23736 _ACEOF
23737
23738 fi
23739 done
23740
23741     if test $ac_cv_func_shutdown = yes; then
23742       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
23743 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
23744 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
23745   $as_echo_n "(cached) " >&6
23746 else
23747
23748           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23749 /* end confdefs.h.  */
23750 #include <sys/socket.h>
23751 int
23752 main ()
23753 {
23754 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
23755   ;
23756   return 0;
23757 }
23758 _ACEOF
23759 if ac_fn_c_try_compile "$LINENO"; then :
23760   gl_cv_header_sys_socket_h_shut=yes
23761 else
23762   gl_cv_header_sys_socket_h_shut=no
23763 fi
23764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23765
23766 fi
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
23768 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
23769       if test $gl_cv_header_sys_socket_h_shut = no; then
23770         SYS_SOCKET_H='sys/socket.h'
23771       fi
23772     fi
23773   fi
23774   # We need to check for ws2tcpip.h now.
23775
23776
23777
23778
23779
23780
23781
23782
23783   :
23784
23785
23786
23787
23788
23789
23790
23791
23792      if test $gl_cv_have_include_next = yes; then
23793        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
23794      else
23795        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
23796 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
23797 if ${gl_cv_next_sys_socket_h+:} false; then :
23798   $as_echo_n "(cached) " >&6
23799 else
23800
23801              if test $ac_cv_header_sys_socket_h = yes; then
23802
23803
23804
23805
23806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23807 /* end confdefs.h.  */
23808 #include <sys/socket.h>
23809 _ACEOF
23810                 case "$host_os" in
23811     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23812     *)    gl_absname_cpp="$ac_cpp" ;;
23813   esac
23814
23815   case "$host_os" in
23816     mingw*)
23817                                           gl_dirsep_regex='[/\\]'
23818       ;;
23819     *)
23820       gl_dirsep_regex='\/'
23821       ;;
23822   esac
23823       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23824   gl_header_literal_regex=`echo 'sys/socket.h' \
23825                            | sed -e "$gl_make_literal_regex_sed"`
23826   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23827       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23828       s|^/[^/]|//&|
23829       p
23830       q
23831     }'
23832
23833         gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23834   sed -n "$gl_absolute_header_sed"`
23835
23836            gl_header=$gl_cv_absolute_sys_socket_h
23837            gl_cv_next_sys_socket_h='"'$gl_header'"'
23838           else
23839                gl_cv_next_sys_socket_h='<'sys/socket.h'>'
23840              fi
23841
23842
23843 fi
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
23845 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
23846      fi
23847      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
23848
23849      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23850        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23851        gl_next_as_first_directive='<'sys/socket.h'>'
23852      else
23853        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23854        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
23855      fi
23856      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
23857
23858
23859
23860
23861   if test $ac_cv_header_sys_socket_h = yes; then
23862     HAVE_SYS_SOCKET_H=1
23863     HAVE_WS2TCPIP_H=0
23864   else
23865     HAVE_SYS_SOCKET_H=0
23866     if test $ac_cv_header_ws2tcpip_h = yes; then
23867       HAVE_WS2TCPIP_H=1
23868     else
23869       HAVE_WS2TCPIP_H=0
23870     fi
23871   fi
23872
23873
23874
23875   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
23876   /* sys/types.h is not needed according to POSIX, but the
23877      sys/socket.h in i386-unknown-freebsd4.10 and
23878      powerpc-apple-darwin5.5 required it. */
23879 #include <sys/types.h>
23880 #ifdef HAVE_SYS_SOCKET_H
23881 #include <sys/socket.h>
23882 #endif
23883 #ifdef HAVE_WS2TCPIP_H
23884 #include <ws2tcpip.h>
23885 #endif
23886
23887 "
23888 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
23889
23890 cat >>confdefs.h <<_ACEOF
23891 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23892 _ACEOF
23893
23894
23895 fi
23896 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
23897   /* sys/types.h is not needed according to POSIX, but the
23898      sys/socket.h in i386-unknown-freebsd4.10 and
23899      powerpc-apple-darwin5.5 required it. */
23900 #include <sys/types.h>
23901 #ifdef HAVE_SYS_SOCKET_H
23902 #include <sys/socket.h>
23903 #endif
23904 #ifdef HAVE_WS2TCPIP_H
23905 #include <ws2tcpip.h>
23906 #endif
23907
23908 "
23909 if test "x$ac_cv_type_sa_family_t" = xyes; then :
23910
23911 cat >>confdefs.h <<_ACEOF
23912 #define HAVE_SA_FAMILY_T 1
23913 _ACEOF
23914
23915
23916 fi
23917
23918   if test $ac_cv_type_struct_sockaddr_storage = no; then
23919     HAVE_STRUCT_SOCKADDR_STORAGE=0
23920   fi
23921   if test $ac_cv_type_sa_family_t = no; then
23922     HAVE_SA_FAMILY_T=0
23923   fi
23924   if test $ac_cv_type_struct_sockaddr_storage != no; then
23925     ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
23926        #ifdef HAVE_SYS_SOCKET_H
23927        #include <sys/socket.h>
23928        #endif
23929        #ifdef HAVE_WS2TCPIP_H
23930        #include <ws2tcpip.h>
23931        #endif
23932
23933 "
23934 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
23935
23936 cat >>confdefs.h <<_ACEOF
23937 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
23938 _ACEOF
23939
23940
23941 else
23942   HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
23943 fi
23944
23945   fi
23946   if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
23947      || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
23948     SYS_SOCKET_H='sys/socket.h'
23949   fi
23950
23951
23952
23953
23954   :
23955
23956
23957
23958
23959
23960   if test $ac_cv_header_sys_socket_h != yes; then
23961                     for ac_header in winsock2.h
23962 do :
23963   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23964 if test "x$ac_cv_header_winsock2_h" = xyes; then :
23965   cat >>confdefs.h <<_ACEOF
23966 #define HAVE_WINSOCK2_H 1
23967 _ACEOF
23968
23969 fi
23970
23971 done
23972
23973   fi
23974   if test "$ac_cv_header_winsock2_h" = yes; then
23975     HAVE_WINSOCK2_H=1
23976     UNISTD_H_HAVE_WINSOCK2_H=1
23977     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23978   else
23979     HAVE_WINSOCK2_H=0
23980   fi
23981
23982
23983
23984
23985     for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
23986     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23988 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23989 if eval \${$as_gl_Symbol+:} false; then :
23990   $as_echo_n "(cached) " >&6
23991 else
23992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23993 /* end confdefs.h.  */
23994
23995 /* Some systems require prerequisite headers.  */
23996 #include <sys/types.h>
23997 #include <sys/socket.h>
23998
23999 int
24000 main ()
24001 {
24002 #undef $gl_func
24003   (void) $gl_func;
24004   ;
24005   return 0;
24006 }
24007 _ACEOF
24008 if ac_fn_c_try_compile "$LINENO"; then :
24009   eval "$as_gl_Symbol=yes"
24010 else
24011   eval "$as_gl_Symbol=no"
24012 fi
24013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24014 fi
24015 eval ac_res=\$$as_gl_Symbol
24016                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24017 $as_echo "$ac_res" >&6; }
24018     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24019   cat >>confdefs.h <<_ACEOF
24020 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24021 _ACEOF
24022
24023                      eval ac_cv_have_decl_$gl_func=yes
24024 fi
24025       done
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040   :
24041
24042
24043
24044
24045
24046
24047
24048
24049      if test $gl_cv_have_include_next = yes; then
24050        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24051      else
24052        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24053 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24054 if ${gl_cv_next_sys_stat_h+:} false; then :
24055   $as_echo_n "(cached) " >&6
24056 else
24057
24058              if test $ac_cv_header_sys_stat_h = yes; then
24059
24060
24061
24062
24063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24064 /* end confdefs.h.  */
24065 #include <sys/stat.h>
24066 _ACEOF
24067                 case "$host_os" in
24068     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24069     *)    gl_absname_cpp="$ac_cpp" ;;
24070   esac
24071
24072   case "$host_os" in
24073     mingw*)
24074                                           gl_dirsep_regex='[/\\]'
24075       ;;
24076     *)
24077       gl_dirsep_regex='\/'
24078       ;;
24079   esac
24080       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24081   gl_header_literal_regex=`echo 'sys/stat.h' \
24082                            | sed -e "$gl_make_literal_regex_sed"`
24083   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24084       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24085       s|^/[^/]|//&|
24086       p
24087       q
24088     }'
24089
24090         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24091   sed -n "$gl_absolute_header_sed"`
24092
24093            gl_header=$gl_cv_absolute_sys_stat_h
24094            gl_cv_next_sys_stat_h='"'$gl_header'"'
24095           else
24096                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24097              fi
24098
24099
24100 fi
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24102 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24103      fi
24104      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24105
24106      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24107        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24108        gl_next_as_first_directive='<'sys/stat.h'>'
24109      else
24110        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24111        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24112      fi
24113      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24126
24127 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24128
24129   fi
24130
24131       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24132      #include <sys/stat.h>
24133 "
24134 if test "x$ac_cv_type_nlink_t" = xyes; then :
24135
24136 else
24137
24138 $as_echo "#define nlink_t int" >>confdefs.h
24139
24140 fi
24141
24142
24143
24144     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
24145     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24147 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24148 if eval \${$as_gl_Symbol+:} false; then :
24149   $as_echo_n "(cached) " >&6
24150 else
24151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24152 /* end confdefs.h.  */
24153 #include <sys/stat.h>
24154
24155 int
24156 main ()
24157 {
24158 #undef $gl_func
24159   (void) $gl_func;
24160   ;
24161   return 0;
24162 }
24163 _ACEOF
24164 if ac_fn_c_try_compile "$LINENO"; then :
24165   eval "$as_gl_Symbol=yes"
24166 else
24167   eval "$as_gl_Symbol=no"
24168 fi
24169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24170 fi
24171 eval ac_res=\$$as_gl_Symbol
24172                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24173 $as_echo "$ac_res" >&6; }
24174     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24175   cat >>confdefs.h <<_ACEOF
24176 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24177 _ACEOF
24178
24179                      eval ac_cv_have_decl_$gl_func=yes
24180 fi
24181       done
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199   :
24200
24201
24202
24203
24204
24205
24206
24207
24208      if test $gl_cv_have_include_next = yes; then
24209        gl_cv_next_sys_uio_h='<'sys/uio.h'>'
24210      else
24211        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
24212 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
24213 if ${gl_cv_next_sys_uio_h+:} false; then :
24214   $as_echo_n "(cached) " >&6
24215 else
24216
24217              if test $ac_cv_header_sys_uio_h = yes; then
24218
24219
24220
24221
24222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24223 /* end confdefs.h.  */
24224 #include <sys/uio.h>
24225 _ACEOF
24226                 case "$host_os" in
24227     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24228     *)    gl_absname_cpp="$ac_cpp" ;;
24229   esac
24230
24231   case "$host_os" in
24232     mingw*)
24233                                           gl_dirsep_regex='[/\\]'
24234       ;;
24235     *)
24236       gl_dirsep_regex='\/'
24237       ;;
24238   esac
24239       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24240   gl_header_literal_regex=`echo 'sys/uio.h' \
24241                            | sed -e "$gl_make_literal_regex_sed"`
24242   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24243       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24244       s|^/[^/]|//&|
24245       p
24246       q
24247     }'
24248
24249         gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24250   sed -n "$gl_absolute_header_sed"`
24251
24252            gl_header=$gl_cv_absolute_sys_uio_h
24253            gl_cv_next_sys_uio_h='"'$gl_header'"'
24254           else
24255                gl_cv_next_sys_uio_h='<'sys/uio.h'>'
24256              fi
24257
24258
24259 fi
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
24261 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
24262      fi
24263      NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
24264
24265      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24266        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24267        gl_next_as_first_directive='<'sys/uio.h'>'
24268      else
24269        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24270        gl_next_as_first_directive=$gl_cv_next_sys_uio_h
24271      fi
24272      NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
24273
24274
24275
24276
24277   if test $ac_cv_header_sys_uio_h = yes; then
24278     HAVE_SYS_UIO_H=1
24279   else
24280     HAVE_SYS_UIO_H=0
24281   fi
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294       ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
24295 "
24296 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
24297   ac_have_decl=1
24298 else
24299   ac_have_decl=0
24300 fi
24301
24302 cat >>confdefs.h <<_ACEOF
24303 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
24304 _ACEOF
24305
24306   if test $ac_cv_have_decl_localtime_r = no; then
24307     HAVE_DECL_LOCALTIME_R=0
24308   fi
24309
24310
24311   :
24312
24313
24314
24315
24316
24317   if test $ac_cv_func_localtime_r = yes; then
24318     HAVE_LOCALTIME_R=1
24319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
24320 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
24321 if ${gl_cv_time_r_posix+:} false; then :
24322   $as_echo_n "(cached) " >&6
24323 else
24324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24325 /* end confdefs.h.  */
24326 #include <time.h>
24327 int
24328 main ()
24329 {
24330 /* We don't need to append 'restrict's to the argument types,
24331                  even though the POSIX signature has the 'restrict's,
24332                  since C99 says they can't affect type compatibility.  */
24333               struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24334               if (ptr) return 0;
24335               /* Check the return type is a pointer.
24336                  On HP-UX 10 it is 'int'.  */
24337               *localtime_r (0, 0);
24338   ;
24339   return 0;
24340 }
24341
24342 _ACEOF
24343 if ac_fn_c_try_compile "$LINENO"; then :
24344   gl_cv_time_r_posix=yes
24345 else
24346   gl_cv_time_r_posix=no
24347 fi
24348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24349
24350 fi
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
24352 $as_echo "$gl_cv_time_r_posix" >&6; }
24353     if test $gl_cv_time_r_posix = yes; then
24354       REPLACE_LOCALTIME_R=0
24355     else
24356       REPLACE_LOCALTIME_R=1
24357     fi
24358   else
24359     HAVE_LOCALTIME_R=0
24360   fi
24361
24362   if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
24363
24364
24365
24366
24367
24368
24369
24370
24371   gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
24372
24373
24374   :
24375
24376   fi
24377
24378
24379
24380
24381
24382           GNULIB_TIME_R=1
24383
24384
24385
24386
24387
24388 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
24389
24390
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401   :
24402
24403
24404
24405
24406
24407
24408
24409
24410      if test $gl_cv_have_include_next = yes; then
24411        gl_cv_next_unistd_h='<'unistd.h'>'
24412      else
24413        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24414 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24415 if ${gl_cv_next_unistd_h+:} false; then :
24416   $as_echo_n "(cached) " >&6
24417 else
24418
24419              if test $ac_cv_header_unistd_h = yes; then
24420
24421
24422
24423
24424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24425 /* end confdefs.h.  */
24426 #include <unistd.h>
24427 _ACEOF
24428                 case "$host_os" in
24429     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24430     *)    gl_absname_cpp="$ac_cpp" ;;
24431   esac
24432
24433   case "$host_os" in
24434     mingw*)
24435                                           gl_dirsep_regex='[/\\]'
24436       ;;
24437     *)
24438       gl_dirsep_regex='\/'
24439       ;;
24440   esac
24441       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24442   gl_header_literal_regex=`echo 'unistd.h' \
24443                            | sed -e "$gl_make_literal_regex_sed"`
24444   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24445       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24446       s|^/[^/]|//&|
24447       p
24448       q
24449     }'
24450
24451         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24452   sed -n "$gl_absolute_header_sed"`
24453
24454            gl_header=$gl_cv_absolute_unistd_h
24455            gl_cv_next_unistd_h='"'$gl_header'"'
24456           else
24457                gl_cv_next_unistd_h='<'unistd.h'>'
24458              fi
24459
24460
24461 fi
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24463 $as_echo "$gl_cv_next_unistd_h" >&6; }
24464      fi
24465      NEXT_UNISTD_H=$gl_cv_next_unistd_h
24466
24467      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24468        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24469        gl_next_as_first_directive='<'unistd.h'>'
24470      else
24471        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24472        gl_next_as_first_directive=$gl_cv_next_unistd_h
24473      fi
24474      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24475
24476
24477
24478
24479   if test $ac_cv_header_unistd_h = yes; then
24480     HAVE_UNISTD_H=1
24481   else
24482     HAVE_UNISTD_H=0
24483   fi
24484
24485
24486
24487
24488
24489
24490
24491     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
24492     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24494 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24495 if eval \${$as_gl_Symbol+:} false; then :
24496   $as_echo_n "(cached) " >&6
24497 else
24498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24499 /* end confdefs.h.  */
24500
24501 #if HAVE_UNISTD_H
24502 # include <unistd.h>
24503 #endif
24504 /* Some systems declare various items in the wrong headers.  */
24505 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24506 # include <fcntl.h>
24507 # include <stdio.h>
24508 # include <stdlib.h>
24509 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
24510 #  include <io.h>
24511 # endif
24512 #endif
24513
24514 int
24515 main ()
24516 {
24517 #undef $gl_func
24518   (void) $gl_func;
24519   ;
24520   return 0;
24521 }
24522 _ACEOF
24523 if ac_fn_c_try_compile "$LINENO"; then :
24524   eval "$as_gl_Symbol=yes"
24525 else
24526   eval "$as_gl_Symbol=no"
24527 fi
24528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24529 fi
24530 eval ac_res=\$$as_gl_Symbol
24531                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24532 $as_echo "$ac_res" >&6; }
24533     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24534   cat >>confdefs.h <<_ACEOF
24535 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24536 _ACEOF
24537
24538                      eval ac_cv_have_decl_$gl_func=yes
24539 fi
24540       done
24541
24542
24543
24544   # Check whether --enable-valgrind-tests was given.
24545 if test "${enable_valgrind_tests+set}" = set; then :
24546   enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
24547 else
24548   opt_valgrind_tests=yes
24549 fi
24550
24551
24552   # Run self-tests under valgrind?
24553   if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
24554     for ac_prog in valgrind
24555 do
24556   # Extract the first word of "$ac_prog", so it can be a program name with args.
24557 set dummy $ac_prog; ac_word=$2
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24559 $as_echo_n "checking for $ac_word... " >&6; }
24560 if ${ac_cv_prog_VALGRIND+:} false; then :
24561   $as_echo_n "(cached) " >&6
24562 else
24563   if test -n "$VALGRIND"; then
24564   ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
24565 else
24566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24567 for as_dir in $PATH
24568 do
24569   IFS=$as_save_IFS
24570   test -z "$as_dir" && as_dir=.
24571     for ac_exec_ext in '' $ac_executable_extensions; do
24572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24573     ac_cv_prog_VALGRIND="$ac_prog"
24574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24575     break 2
24576   fi
24577 done
24578   done
24579 IFS=$as_save_IFS
24580
24581 fi
24582 fi
24583 VALGRIND=$ac_cv_prog_VALGRIND
24584 if test -n "$VALGRIND"; then
24585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
24586 $as_echo "$VALGRIND" >&6; }
24587 else
24588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24589 $as_echo "no" >&6; }
24590 fi
24591
24592
24593   test -n "$VALGRIND" && break
24594 done
24595
24596   fi
24597
24598   OPTS="-q --error-exitcode=1 --leak-check=full --suppressions=suppressions.valgrind"
24599
24600   if test -n "$VALGRIND" \
24601      && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
24602     opt_valgrind_tests=yes
24603     VALGRIND="$VALGRIND $OPTS"
24604   else
24605     opt_valgrind_tests=no
24606     VALGRIND=
24607   fi
24608
24609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
24610 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
24611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
24612 $as_echo "$opt_valgrind_tests" >&6; }
24613
24614
24615
24616   :
24617
24618
24619
24620
24621
24622   if test $ac_cv_func_vasnprintf = no; then
24623
24624
24625   :
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
24670
24671   if test $ac_cv_func_vasnprintf = yes; then
24672
24673 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
24674
24675   fi
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685
24686
24687   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24688 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
24689
24690 else
24691
24692 $as_echo "#define ptrdiff_t long" >>confdefs.h
24693
24694
24695 fi
24696
24697
24698
24699
24700
24701
24702
24703   fi
24704
24705
24706   for ac_func in vasprintf
24707 do :
24708   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
24709 if test "x$ac_cv_func_vasprintf" = xyes; then :
24710   cat >>confdefs.h <<_ACEOF
24711 #define HAVE_VASPRINTF 1
24712 _ACEOF
24713
24714 fi
24715 done
24716
24717   if test $ac_cv_func_vasprintf = no; then
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
24738
24739
24740   if test $ac_cv_func_vasprintf = yes; then
24741     REPLACE_VASPRINTF=1
24742   else
24743     HAVE_VASPRINTF=0
24744   fi
24745
24746
24747
24748
24749
24750
24751
24752
24753   fi
24754
24755
24756
24757
24758
24759
24760           GNULIB_VASPRINTF=1
24761
24762
24763
24764
24765
24766 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
24767
24768
24769
24770
24771
24772   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
24773
24774
24775
24776   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
24777
24778
24779
24780   gl_cv_func_vsnprintf_usable=no
24781   for ac_func in vsnprintf
24782 do :
24783   ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
24784 if test "x$ac_cv_func_vsnprintf" = xyes; then :
24785   cat >>confdefs.h <<_ACEOF
24786 #define HAVE_VSNPRINTF 1
24787 _ACEOF
24788
24789 fi
24790 done
24791
24792   if test $ac_cv_func_vsnprintf = yes; then
24793
24794
24795
24796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
24797 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
24798 if ${gl_cv_func_snprintf_size1+:} false; then :
24799   $as_echo_n "(cached) " >&6
24800 else
24801
24802       if test "$cross_compiling" = yes; then :
24803   gl_cv_func_snprintf_size1="guessing yes"
24804 else
24805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24806 /* end confdefs.h.  */
24807
24808 #include <stdio.h>
24809 #if HAVE_SNPRINTF
24810 # define my_snprintf snprintf
24811 #else
24812 # include <stdarg.h>
24813 static int my_snprintf (char *buf, int size, const char *format, ...)
24814 {
24815   va_list args;
24816   int ret;
24817   va_start (args, format);
24818   ret = vsnprintf (buf, size, format, args);
24819   va_end (args);
24820   return ret;
24821 }
24822 #endif
24823 int main()
24824 {
24825   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
24826   my_snprintf (buf, 1, "%d", 12345);
24827   return buf[1] != 'E';
24828 }
24829 _ACEOF
24830 if ac_fn_c_try_run "$LINENO"; then :
24831   gl_cv_func_snprintf_size1=yes
24832 else
24833   gl_cv_func_snprintf_size1=no
24834 fi
24835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24836   conftest.$ac_objext conftest.beam conftest.$ac_ext
24837 fi
24838
24839
24840 fi
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
24842 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
24843
24844     case "$gl_cv_func_snprintf_size1" in
24845       *yes)
24846
24847         case "$gl_cv_func_snprintf_retval_c99" in
24848           *yes)
24849
24850
24851      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
24852 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
24853 if ${gl_cv_func_printf_positions+:} false; then :
24854   $as_echo_n "(cached) " >&6
24855 else
24856
24857       if test "$cross_compiling" = yes; then :
24858
24859          case "$host_os" in
24860            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
24861                          gl_cv_func_printf_positions="guessing no";;
24862            beos*)        gl_cv_func_printf_positions="guessing no";;
24863            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
24864            *)            gl_cv_func_printf_positions="guessing yes";;
24865          esac
24866
24867 else
24868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24869 /* end confdefs.h.  */
24870
24871 #include <stdio.h>
24872 #include <string.h>
24873 /* The string "%2$d %1$d", with dollar characters protected from the shell's
24874    dollar expansion (possibly an autoconf bug).  */
24875 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
24876 static char buf[100];
24877 int main ()
24878 {
24879   sprintf (buf, format, 33, 55);
24880   return (strcmp (buf, "55 33") != 0);
24881 }
24882 _ACEOF
24883 if ac_fn_c_try_run "$LINENO"; then :
24884   gl_cv_func_printf_positions=yes
24885 else
24886   gl_cv_func_printf_positions=no
24887 fi
24888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24889   conftest.$ac_objext conftest.beam conftest.$ac_ext
24890 fi
24891
24892
24893 fi
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
24895 $as_echo "$gl_cv_func_printf_positions" >&6; }
24896
24897             case "$gl_cv_func_printf_positions" in
24898               *yes)
24899                 gl_cv_func_vsnprintf_usable=yes
24900                 ;;
24901             esac
24902             ;;
24903         esac
24904         ;;
24905     esac
24906   fi
24907   if test $gl_cv_func_vsnprintf_usable = no; then
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918   gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
24919
24920   if test $ac_cv_func_vsnprintf = yes; then
24921     REPLACE_VSNPRINTF=1
24922   fi
24923   :
24924
24925   fi
24926
24927   :
24928
24929
24930
24931
24932
24933   if test $ac_cv_have_decl_vsnprintf = no; then
24934     HAVE_DECL_VSNPRINTF=0
24935   fi
24936
24937
24938
24939
24940
24941
24942           GNULIB_VSNPRINTF=1
24943
24944
24945
24946
24947
24948 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961   :
24962
24963
24964
24965
24966
24967
24968
24969
24970      if test $gl_cv_have_include_next = yes; then
24971        gl_cv_next_wchar_h='<'wchar.h'>'
24972      else
24973        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24974 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24975 if ${gl_cv_next_wchar_h+:} false; then :
24976   $as_echo_n "(cached) " >&6
24977 else
24978
24979              if test $ac_cv_header_wchar_h = yes; then
24980
24981
24982
24983
24984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24985 /* end confdefs.h.  */
24986 #include <wchar.h>
24987 _ACEOF
24988                 case "$host_os" in
24989     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24990     *)    gl_absname_cpp="$ac_cpp" ;;
24991   esac
24992
24993   case "$host_os" in
24994     mingw*)
24995                                           gl_dirsep_regex='[/\\]'
24996       ;;
24997     *)
24998       gl_dirsep_regex='\/'
24999       ;;
25000   esac
25001       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25002   gl_header_literal_regex=`echo 'wchar.h' \
25003                            | sed -e "$gl_make_literal_regex_sed"`
25004   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25005       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25006       s|^/[^/]|//&|
25007       p
25008       q
25009     }'
25010
25011         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25012   sed -n "$gl_absolute_header_sed"`
25013
25014            gl_header=$gl_cv_absolute_wchar_h
25015            gl_cv_next_wchar_h='"'$gl_header'"'
25016           else
25017                gl_cv_next_wchar_h='<'wchar.h'>'
25018              fi
25019
25020
25021 fi
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
25023 $as_echo "$gl_cv_next_wchar_h" >&6; }
25024      fi
25025      NEXT_WCHAR_H=$gl_cv_next_wchar_h
25026
25027      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25028        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25029        gl_next_as_first_directive='<'wchar.h'>'
25030      else
25031        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25032        gl_next_as_first_directive=$gl_cv_next_wchar_h
25033      fi
25034      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
25035
25036
25037
25038
25039   if test $ac_cv_header_wchar_h = yes; then
25040     HAVE_WCHAR_H=1
25041   else
25042     HAVE_WCHAR_H=0
25043   fi
25044
25045
25046
25047
25048
25049   if test $gt_cv_c_wint_t = yes; then
25050     HAVE_WINT_T=1
25051   else
25052     HAVE_WINT_T=0
25053   fi
25054
25055
25056
25057     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
25058     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25060 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25061 if eval \${$as_gl_Symbol+:} false; then :
25062   $as_echo_n "(cached) " >&6
25063 else
25064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25065 /* end confdefs.h.  */
25066
25067 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25068    <wchar.h>.
25069    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25070    included before <wchar.h>.  */
25071 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25072 # include <stddef.h>
25073 # include <stdio.h>
25074 # include <time.h>
25075 #endif
25076 #include <wchar.h>
25077
25078 int
25079 main ()
25080 {
25081 #undef $gl_func
25082   (void) $gl_func;
25083   ;
25084   return 0;
25085 }
25086 _ACEOF
25087 if ac_fn_c_try_compile "$LINENO"; then :
25088   eval "$as_gl_Symbol=yes"
25089 else
25090   eval "$as_gl_Symbol=no"
25091 fi
25092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25093 fi
25094 eval ac_res=\$$as_gl_Symbol
25095                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25096 $as_echo "$ac_res" >&6; }
25097     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25098   cat >>confdefs.h <<_ACEOF
25099 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25100 _ACEOF
25101
25102                      eval ac_cv_have_decl_$gl_func=yes
25103 fi
25104       done
25105
25106
25107
25108
25109
25110   for ac_header in stdint.h
25111 do :
25112   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
25113 if test "x$ac_cv_header_stdint_h" = xyes; then :
25114   cat >>confdefs.h <<_ACEOF
25115 #define HAVE_STDINT_H 1
25116 _ACEOF
25117
25118 fi
25119
25120 done
25121
25122
25123   # End of code from modules
25124
25125
25126
25127
25128
25129
25130
25131
25132
25133   gltests_libdeps=
25134   gltests_ltlibdeps=
25135
25136
25137
25138
25139
25140
25141
25142
25143
25144   gl_source_base='gl/tests'
25145   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
25146
25147   gl_module_indicator_condition=$gltests_WITNESS
25148
25149
25150
25151
25152
25153
25154
25155
25156
25157
25158
25159
25160      if test $gl_cv_have_include_next = yes; then
25161        gl_cv_next_fcntl_h='<'fcntl.h'>'
25162      else
25163        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
25164 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
25165 if ${gl_cv_next_fcntl_h+:} false; then :
25166   $as_echo_n "(cached) " >&6
25167 else
25168
25169
25170
25171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25172 /* end confdefs.h.  */
25173 #include <fcntl.h>
25174 _ACEOF
25175                 case "$host_os" in
25176     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25177     *)    gl_absname_cpp="$ac_cpp" ;;
25178   esac
25179
25180   case "$host_os" in
25181     mingw*)
25182                                           gl_dirsep_regex='[/\\]'
25183       ;;
25184     *)
25185       gl_dirsep_regex='\/'
25186       ;;
25187   esac
25188       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25189   gl_header_literal_regex=`echo 'fcntl.h' \
25190                            | sed -e "$gl_make_literal_regex_sed"`
25191   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25192       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25193       s|^/[^/]|//&|
25194       p
25195       q
25196     }'
25197
25198         gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25199   sed -n "$gl_absolute_header_sed"`
25200
25201            gl_header=$gl_cv_absolute_fcntl_h
25202            gl_cv_next_fcntl_h='"'$gl_header'"'
25203
25204
25205 fi
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
25207 $as_echo "$gl_cv_next_fcntl_h" >&6; }
25208      fi
25209      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
25210
25211      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25212        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25213        gl_next_as_first_directive='<'fcntl.h'>'
25214      else
25215        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25216        gl_next_as_first_directive=$gl_cv_next_fcntl_h
25217      fi
25218      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
25219
25220
25221
25222
25223
25224
25225
25226
25227
25228
25229     for gl_func in fcntl openat; do
25230     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25232 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25233 if eval \${$as_gl_Symbol+:} false; then :
25234   $as_echo_n "(cached) " >&6
25235 else
25236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25237 /* end confdefs.h.  */
25238 #include <fcntl.h>
25239
25240 int
25241 main ()
25242 {
25243 #undef $gl_func
25244   (void) $gl_func;
25245   ;
25246   return 0;
25247 }
25248 _ACEOF
25249 if ac_fn_c_try_compile "$LINENO"; then :
25250   eval "$as_gl_Symbol=yes"
25251 else
25252   eval "$as_gl_Symbol=no"
25253 fi
25254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25255 fi
25256 eval ac_res=\$$as_gl_Symbol
25257                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25258 $as_echo "$ac_res" >&6; }
25259     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25260   cat >>confdefs.h <<_ACEOF
25261 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25262 _ACEOF
25263
25264                      eval ac_cv_have_decl_$gl_func=yes
25265 fi
25266       done
25267
25268
25269
25270
25271
25272   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25273     REPLACE_FDOPEN=1
25274   else
25275         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
25276 $as_echo_n "checking whether fdopen sets errno... " >&6; }
25277 if ${gl_cv_func_fdopen_works+:} false; then :
25278   $as_echo_n "(cached) " >&6
25279 else
25280
25281         if test "$cross_compiling" = yes; then :
25282   case "$host_os" in
25283              mingw*) gl_cv_func_fdopen_works="guessing no" ;;
25284              *)      gl_cv_func_fdopen_works="guessing yes" ;;
25285            esac
25286
25287 else
25288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25289 /* end confdefs.h.  */
25290
25291 #include <stdio.h>
25292 #include <errno.h>
25293 int
25294 main (void)
25295 {
25296   FILE *fp;
25297   errno = 0;
25298   fp = fdopen (-1, "r");
25299   if (fp == NULL && errno == 0)
25300     return 1;
25301   return 0;
25302 }
25303 _ACEOF
25304 if ac_fn_c_try_run "$LINENO"; then :
25305   gl_cv_func_fdopen_works=yes
25306 else
25307   gl_cv_func_fdopen_works=no
25308 fi
25309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25310   conftest.$ac_objext conftest.beam conftest.$ac_ext
25311 fi
25312
25313
25314 fi
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
25316 $as_echo "$gl_cv_func_fdopen_works" >&6; }
25317     case "$gl_cv_func_fdopen_works" in
25318       *no) REPLACE_FDOPEN=1 ;;
25319     esac
25320   fi
25321
25322   if test $REPLACE_FDOPEN = 1; then
25323
25324
25325
25326
25327
25328
25329
25330
25331   gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext"
25332
25333
25334   fi
25335
25336
25337
25338
25339
25340     if test "$GNULIB_FDOPEN" != 1; then
25341         if test "$GNULIB_FDOPEN" = 0; then
25342       GNULIB_FDOPEN=$gl_module_indicator_condition
25343     else
25344       GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
25345     fi
25346   fi
25347
25348
25349
25350
25351
25352 $as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
25353
25354
25355
25356
25357
25358
25359
25360
25361   for ac_func in getpagesize
25362 do :
25363   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
25364 if test "x$ac_cv_func_getpagesize" = xyes; then :
25365   cat >>confdefs.h <<_ACEOF
25366 #define HAVE_GETPAGESIZE 1
25367 _ACEOF
25368
25369 fi
25370 done
25371
25372   if test $ac_cv_func_getpagesize = no; then
25373     HAVE_GETPAGESIZE=0
25374     for ac_header in OS.h
25375 do :
25376   ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
25377 if test "x$ac_cv_header_OS_h" = xyes; then :
25378   cat >>confdefs.h <<_ACEOF
25379 #define HAVE_OS_H 1
25380 _ACEOF
25381
25382 fi
25383
25384 done
25385
25386     if test $ac_cv_header_OS_h = yes; then
25387       HAVE_OS_H=1
25388     fi
25389     for ac_header in sys/param.h
25390 do :
25391   ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
25392 if test "x$ac_cv_header_sys_param_h" = xyes; then :
25393   cat >>confdefs.h <<_ACEOF
25394 #define HAVE_SYS_PARAM_H 1
25395 _ACEOF
25396
25397 fi
25398
25399 done
25400
25401     if test $ac_cv_header_sys_param_h = yes; then
25402       HAVE_SYS_PARAM_H=1
25403     fi
25404   fi
25405   case "$host_os" in
25406     mingw*)
25407       REPLACE_GETPAGESIZE=1
25408       ;;
25409   esac
25410       ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
25411 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
25412
25413 else
25414   HAVE_DECL_GETPAGESIZE=0
25415 fi
25416
25417
25418   if test $REPLACE_GETPAGESIZE = 1; then
25419
25420
25421
25422
25423
25424
25425
25426
25427   gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
25428
25429   fi
25430
25431
25432
25433
25434
25435     if test "$GNULIB_GETPAGESIZE" != 1; then
25436         if test "$GNULIB_GETPAGESIZE" = 0; then
25437       GNULIB_GETPAGESIZE=$gl_module_indicator_condition
25438     else
25439       GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
25440     fi
25441   fi
25442
25443
25444
25445
25446
25447 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
25448
25449
25450
25451
25452
25453
25454
25455
25456   PRIPTR_PREFIX=
25457   if test -n "$STDINT_H"; then
25458         PRIPTR_PREFIX='"l"'
25459   else
25460         for glpfx in '' l ll I64; do
25461       case $glpfx in
25462         '')  gltype1='int';;
25463         l)   gltype1='long int';;
25464         ll)  gltype1='long long int';;
25465         I64) gltype1='__int64';;
25466       esac
25467       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25468 /* end confdefs.h.  */
25469 #include <stdint.h>
25470            extern intptr_t foo;
25471            extern $gltype1 foo;
25472 int
25473 main ()
25474 {
25475
25476   ;
25477   return 0;
25478 }
25479 _ACEOF
25480 if ac_fn_c_try_compile "$LINENO"; then :
25481   PRIPTR_PREFIX='"'$glpfx'"'
25482 fi
25483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25484       test -n "$PRIPTR_PREFIX" && break
25485     done
25486   fi
25487
25488
25489
25490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
25491 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
25492 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
25493   $as_echo_n "(cached) " >&6
25494 else
25495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25496 /* end confdefs.h.  */
25497 /* Work also in C++ mode.  */
25498             #define __STDC_LIMIT_MACROS 1
25499
25500             /* Work if build is not clean.  */
25501             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
25502
25503             #include <limits.h>
25504             #if HAVE_STDINT_H
25505              #include <stdint.h>
25506             #endif
25507
25508             #if defined INT32_MAX && defined INTMAX_MAX
25509              #define CONDITION (INT32_MAX < INTMAX_MAX)
25510             #elif HAVE_LONG_LONG_INT
25511              #define CONDITION (sizeof (int) < sizeof (long long int))
25512             #else
25513              #define CONDITION 0
25514             #endif
25515             int test[CONDITION ? 1 : -1];
25516 int
25517 main ()
25518 {
25519
25520   ;
25521   return 0;
25522 }
25523 _ACEOF
25524 if ac_fn_c_try_compile "$LINENO"; then :
25525   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
25526 else
25527   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
25528 fi
25529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25530 fi
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
25532 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
25533   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
25534     INT32_MAX_LT_INTMAX_MAX=1;
25535   else
25536     INT32_MAX_LT_INTMAX_MAX=0;
25537   fi
25538
25539
25540   if test $APPLE_UNIVERSAL_BUILD = 0; then
25541
25542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
25543 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
25544 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
25545   $as_echo_n "(cached) " >&6
25546 else
25547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25548 /* end confdefs.h.  */
25549 /* Work also in C++ mode.  */
25550             #define __STDC_LIMIT_MACROS 1
25551
25552             /* Work if build is not clean.  */
25553             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
25554
25555             #include <limits.h>
25556             #if HAVE_STDINT_H
25557              #include <stdint.h>
25558             #endif
25559
25560             #if defined INT64_MAX
25561              #define CONDITION (INT64_MAX == LONG_MAX)
25562             #elif HAVE_LONG_LONG_INT
25563              #define CONDITION (sizeof (long long int) == sizeof (long int))
25564             #else
25565              #define CONDITION 0
25566             #endif
25567             int test[CONDITION ? 1 : -1];
25568 int
25569 main ()
25570 {
25571
25572   ;
25573   return 0;
25574 }
25575 _ACEOF
25576 if ac_fn_c_try_compile "$LINENO"; then :
25577   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
25578 else
25579   gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
25580 fi
25581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25582 fi
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
25584 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
25585   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
25586     INT64_MAX_EQ_LONG_MAX=1;
25587   else
25588     INT64_MAX_EQ_LONG_MAX=0;
25589   fi
25590
25591
25592   else
25593     INT64_MAX_EQ_LONG_MAX=-1
25594   fi
25595
25596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
25597 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
25598 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
25599   $as_echo_n "(cached) " >&6
25600 else
25601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25602 /* end confdefs.h.  */
25603 /* Work also in C++ mode.  */
25604             #define __STDC_LIMIT_MACROS 1
25605
25606             /* Work if build is not clean.  */
25607             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
25608
25609             #include <limits.h>
25610             #if HAVE_STDINT_H
25611              #include <stdint.h>
25612             #endif
25613
25614             #if defined UINT32_MAX && defined UINTMAX_MAX
25615              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
25616             #elif HAVE_LONG_LONG_INT
25617              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
25618             #else
25619              #define CONDITION 0
25620             #endif
25621             int test[CONDITION ? 1 : -1];
25622 int
25623 main ()
25624 {
25625
25626   ;
25627   return 0;
25628 }
25629 _ACEOF
25630 if ac_fn_c_try_compile "$LINENO"; then :
25631   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
25632 else
25633   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
25634 fi
25635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25636 fi
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
25638 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
25639   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
25640     UINT32_MAX_LT_UINTMAX_MAX=1;
25641   else
25642     UINT32_MAX_LT_UINTMAX_MAX=0;
25643   fi
25644
25645
25646   if test $APPLE_UNIVERSAL_BUILD = 0; then
25647
25648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
25649 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
25650 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
25651   $as_echo_n "(cached) " >&6
25652 else
25653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25654 /* end confdefs.h.  */
25655 /* Work also in C++ mode.  */
25656             #define __STDC_LIMIT_MACROS 1
25657
25658             /* Work if build is not clean.  */
25659             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
25660
25661             #include <limits.h>
25662             #if HAVE_STDINT_H
25663              #include <stdint.h>
25664             #endif
25665
25666             #if defined UINT64_MAX
25667              #define CONDITION (UINT64_MAX == ULONG_MAX)
25668             #elif HAVE_LONG_LONG_INT
25669              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
25670             #else
25671              #define CONDITION 0
25672             #endif
25673             int test[CONDITION ? 1 : -1];
25674 int
25675 main ()
25676 {
25677
25678   ;
25679   return 0;
25680 }
25681 _ACEOF
25682 if ac_fn_c_try_compile "$LINENO"; then :
25683   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
25684 else
25685   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
25686 fi
25687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25688 fi
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
25690 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
25691   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
25692     UINT64_MAX_EQ_ULONG_MAX=1;
25693   else
25694     UINT64_MAX_EQ_ULONG_MAX=0;
25695   fi
25696
25697
25698   else
25699     UINT64_MAX_EQ_ULONG_MAX=-1
25700   fi
25701
25702
25703
25704
25705
25706
25707   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
25708   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
25709   # irrelevant for anonymous mappings.
25710   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
25711 if test "x$ac_cv_func_mmap" = xyes; then :
25712   gl_have_mmap=yes
25713 else
25714   gl_have_mmap=no
25715 fi
25716
25717
25718   # Try to allow MAP_ANONYMOUS.
25719   gl_have_mmap_anonymous=no
25720   if test $gl_have_mmap = yes; then
25721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
25722 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
25723     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25724 /* end confdefs.h.  */
25725
25726 #include <sys/mman.h>
25727 #ifdef MAP_ANONYMOUS
25728     I cannot identify this map
25729 #endif
25730
25731 _ACEOF
25732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25733   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
25734   gl_have_mmap_anonymous=yes
25735 fi
25736 rm -f conftest*
25737
25738     if test $gl_have_mmap_anonymous != yes; then
25739       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25740 /* end confdefs.h.  */
25741
25742 #include <sys/mman.h>
25743 #ifdef MAP_ANON
25744     I cannot identify this map
25745 #endif
25746
25747 _ACEOF
25748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25749   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
25750
25751 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
25752
25753          gl_have_mmap_anonymous=yes
25754 fi
25755 rm -f conftest*
25756
25757     fi
25758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
25759 $as_echo "$gl_have_mmap_anonymous" >&6; }
25760     if test $gl_have_mmap_anonymous = yes; then
25761
25762 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
25763
25764     fi
25765   fi
25766
25767
25768   :
25769
25770
25771
25772
25773
25774
25775   :
25776
25777
25778
25779
25780
25781
25782
25783
25784
25785
25786   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
25787   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
25788   # irrelevant for anonymous mappings.
25789   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
25790 if test "x$ac_cv_func_mmap" = xyes; then :
25791   gl_have_mmap=yes
25792 else
25793   gl_have_mmap=no
25794 fi
25795
25796
25797   # Try to allow MAP_ANONYMOUS.
25798   gl_have_mmap_anonymous=no
25799   if test $gl_have_mmap = yes; then
25800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
25801 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
25802     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25803 /* end confdefs.h.  */
25804
25805 #include <sys/mman.h>
25806 #ifdef MAP_ANONYMOUS
25807     I cannot identify this map
25808 #endif
25809
25810 _ACEOF
25811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25812   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
25813   gl_have_mmap_anonymous=yes
25814 fi
25815 rm -f conftest*
25816
25817     if test $gl_have_mmap_anonymous != yes; then
25818       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25819 /* end confdefs.h.  */
25820
25821 #include <sys/mman.h>
25822 #ifdef MAP_ANON
25823     I cannot identify this map
25824 #endif
25825
25826 _ACEOF
25827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25828   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
25829
25830 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
25831
25832          gl_have_mmap_anonymous=yes
25833 fi
25834 rm -f conftest*
25835
25836     fi
25837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
25838 $as_echo "$gl_have_mmap_anonymous" >&6; }
25839     if test $gl_have_mmap_anonymous = yes; then
25840
25841 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
25842
25843     fi
25844   fi
25845
25846
25847   :
25848
25849
25850
25851
25852
25853
25854   :
25855
25856
25857
25858
25859
25860
25861   :
25862
25863
25864
25865
25866
25867
25868   # Check whether --enable-valgrind-tests was given.
25869 if test "${enable_valgrind_tests+set}" = set; then :
25870   enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
25871 else
25872   opt_valgrind_tests=yes
25873 fi
25874
25875
25876   # Run self-tests under valgrind?
25877   if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
25878     for ac_prog in valgrind
25879 do
25880   # Extract the first word of "$ac_prog", so it can be a program name with args.
25881 set dummy $ac_prog; ac_word=$2
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25883 $as_echo_n "checking for $ac_word... " >&6; }
25884 if ${ac_cv_prog_VALGRIND+:} false; then :
25885   $as_echo_n "(cached) " >&6
25886 else
25887   if test -n "$VALGRIND"; then
25888   ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
25889 else
25890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25891 for as_dir in $PATH
25892 do
25893   IFS=$as_save_IFS
25894   test -z "$as_dir" && as_dir=.
25895     for ac_exec_ext in '' $ac_executable_extensions; do
25896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25897     ac_cv_prog_VALGRIND="$ac_prog"
25898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25899     break 2
25900   fi
25901 done
25902   done
25903 IFS=$as_save_IFS
25904
25905 fi
25906 fi
25907 VALGRIND=$ac_cv_prog_VALGRIND
25908 if test -n "$VALGRIND"; then
25909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
25910 $as_echo "$VALGRIND" >&6; }
25911 else
25912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25913 $as_echo "no" >&6; }
25914 fi
25915
25916
25917   test -n "$VALGRIND" && break
25918 done
25919
25920   fi
25921
25922   OPTS="-q --error-exitcode=1 --leak-check=full --suppressions=suppressions.valgrind"
25923
25924   if test -n "$VALGRIND" \
25925      && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
25926     opt_valgrind_tests=yes
25927     VALGRIND="$VALGRIND $OPTS"
25928   else
25929     opt_valgrind_tests=no
25930     VALGRIND=
25931   fi
25932
25933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
25934 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
25935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
25936 $as_echo "$opt_valgrind_tests" >&6; }
25937
25938   abs_aux_dir=`cd "$ac_aux_dir"; pwd`
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950   LIBTESTS_LIBDEPS="$gltests_libdeps"
25951
25952
25953
25954   GNULIB_INET_NTOP=0;
25955   GNULIB_INET_PTON=0;
25956     HAVE_DECL_INET_NTOP=1;
25957   HAVE_DECL_INET_PTON=1;
25958   REPLACE_INET_NTOP=0;
25959   REPLACE_INET_PTON=0;
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971   :
25972
25973
25974
25975
25976
25977
25978
25979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
25980 $as_echo_n "checking if environ is properly declared... " >&6; }
25981   if ${gt_cv_var_environ_declaration+:} false; then :
25982   $as_echo_n "(cached) " >&6
25983 else
25984
25985     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25986 /* end confdefs.h.  */
25987 #if HAVE_UNISTD_H
25988      #include <unistd.h>
25989      #endif
25990      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
25991      #include <stdlib.h>
25992
25993            extern struct { int foo; } environ;
25994 int
25995 main ()
25996 {
25997 environ.foo = 1;
25998   ;
25999   return 0;
26000 }
26001 _ACEOF
26002 if ac_fn_c_try_compile "$LINENO"; then :
26003   gt_cv_var_environ_declaration=no
26004 else
26005   gt_cv_var_environ_declaration=yes
26006 fi
26007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26008 fi
26009
26010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
26011 $as_echo "$gt_cv_var_environ_declaration" >&6; }
26012   if test $gt_cv_var_environ_declaration = yes; then
26013
26014 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
26015
26016   fi
26017
26018
26019   if test $gt_cv_var_environ_declaration != yes; then
26020     HAVE_DECL_ENVIRON=0
26021   fi
26022
26023 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
26024 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
26025   ac_have_decl=1
26026 else
26027   ac_have_decl=0
26028 fi
26029
26030 cat >>confdefs.h <<_ACEOF
26031 #define HAVE_DECL_STRERROR_R $ac_have_decl
26032 _ACEOF
26033
26034 for ac_func in strerror_r
26035 do :
26036   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
26037 if test "x$ac_cv_func_strerror_r" = xyes; then :
26038   cat >>confdefs.h <<_ACEOF
26039 #define HAVE_STRERROR_R 1
26040 _ACEOF
26041
26042 fi
26043 done
26044
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
26046 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
26047 if ${ac_cv_func_strerror_r_char_p+:} false; then :
26048   $as_echo_n "(cached) " >&6
26049 else
26050
26051     ac_cv_func_strerror_r_char_p=no
26052     if test $ac_cv_have_decl_strerror_r = yes; then
26053       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26054 /* end confdefs.h.  */
26055 $ac_includes_default
26056 int
26057 main ()
26058 {
26059
26060           char buf[100];
26061           char x = *strerror_r (0, buf, sizeof buf);
26062           char *p = strerror_r (0, buf, sizeof buf);
26063           return !p || x;
26064
26065   ;
26066   return 0;
26067 }
26068 _ACEOF
26069 if ac_fn_c_try_compile "$LINENO"; then :
26070   ac_cv_func_strerror_r_char_p=yes
26071 fi
26072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26073     else
26074       # strerror_r is not declared.  Choose between
26075       # systems that have relatively inaccessible declarations for the
26076       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
26077       # former has a strerror_r that returns char*, while the latter
26078       # has a strerror_r that returns `int'.
26079       # This test should segfault on the DEC system.
26080       if test "$cross_compiling" = yes; then :
26081   :
26082 else
26083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26084 /* end confdefs.h.  */
26085 $ac_includes_default
26086         extern char *strerror_r ();
26087 int
26088 main ()
26089 {
26090 char buf[100];
26091           char x = *strerror_r (0, buf, sizeof buf);
26092           return ! isalpha (x);
26093   ;
26094   return 0;
26095 }
26096 _ACEOF
26097 if ac_fn_c_try_run "$LINENO"; then :
26098   ac_cv_func_strerror_r_char_p=yes
26099 fi
26100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26101   conftest.$ac_objext conftest.beam conftest.$ac_ext
26102 fi
26103
26104     fi
26105
26106 fi
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
26108 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
26109 if test $ac_cv_func_strerror_r_char_p = yes; then
26110
26111 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
26112
26113 fi
26114
26115
26116       ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
26117 if test "x$ac_cv_have_decl_fseeko" = xyes; then :
26118   ac_have_decl=1
26119 else
26120   ac_have_decl=0
26121 fi
26122
26123 cat >>confdefs.h <<_ACEOF
26124 #define HAVE_DECL_FSEEKO $ac_have_decl
26125 _ACEOF
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
26137 $as_echo_n "checking for fseeko... " >&6; }
26138 if ${gl_cv_func_fseeko+:} false; then :
26139   $as_echo_n "(cached) " >&6
26140 else
26141
26142       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26143 /* end confdefs.h.  */
26144 #include <stdio.h>
26145
26146 int
26147 main ()
26148 {
26149 fseeko (stdin, 0, 0);
26150   ;
26151   return 0;
26152 }
26153 _ACEOF
26154 if ac_fn_c_try_link "$LINENO"; then :
26155   gl_cv_func_fseeko=yes
26156 else
26157   gl_cv_func_fseeko=no
26158 fi
26159 rm -f core conftest.err conftest.$ac_objext \
26160     conftest$ac_exeext conftest.$ac_ext
26161
26162 fi
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
26164 $as_echo "$gl_cv_func_fseeko" >&6; }
26165
26166
26167   :
26168
26169
26170
26171
26172
26173   if test $ac_cv_have_decl_fseeko = no; then
26174     HAVE_DECL_FSEEKO=0
26175   fi
26176
26177   if test $gl_cv_func_fseeko = no; then
26178     HAVE_FSEEKO=0
26179   else
26180     if test $WINDOWS_64_BIT_OFF_T = 1; then
26181       REPLACE_FSEEKO=1
26182     fi
26183     if test $gl_cv_var_stdin_large_offset = no; then
26184       REPLACE_FSEEKO=1
26185     fi
26186
26187   fi
26188
26189
26190                   HOSTENT_LIB=
26191   gl_saved_libs="$LIBS"
26192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
26193 $as_echo_n "checking for library containing gethostbyname... " >&6; }
26194 if ${ac_cv_search_gethostbyname+:} false; then :
26195   $as_echo_n "(cached) " >&6
26196 else
26197   ac_func_search_save_LIBS=$LIBS
26198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26199 /* end confdefs.h.  */
26200
26201 /* Override any GCC internal prototype to avoid an error.
26202    Use char because int might match the return type of a GCC
26203    builtin and then its argument prototype would still apply.  */
26204 #ifdef __cplusplus
26205 extern "C"
26206 #endif
26207 char gethostbyname ();
26208 int
26209 main ()
26210 {
26211 return gethostbyname ();
26212   ;
26213   return 0;
26214 }
26215 _ACEOF
26216 for ac_lib in '' nsl network net; do
26217   if test -z "$ac_lib"; then
26218     ac_res="none required"
26219   else
26220     ac_res=-l$ac_lib
26221     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26222   fi
26223   if ac_fn_c_try_link "$LINENO"; then :
26224   ac_cv_search_gethostbyname=$ac_res
26225 fi
26226 rm -f core conftest.err conftest.$ac_objext \
26227     conftest$ac_exeext
26228   if ${ac_cv_search_gethostbyname+:} false; then :
26229   break
26230 fi
26231 done
26232 if ${ac_cv_search_gethostbyname+:} false; then :
26233
26234 else
26235   ac_cv_search_gethostbyname=no
26236 fi
26237 rm conftest.$ac_ext
26238 LIBS=$ac_func_search_save_LIBS
26239 fi
26240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
26241 $as_echo "$ac_cv_search_gethostbyname" >&6; }
26242 ac_res=$ac_cv_search_gethostbyname
26243 if test "$ac_res" != no; then :
26244   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26245   if test "$ac_cv_search_gethostbyname" != "none required"; then
26246        HOSTENT_LIB="$ac_cv_search_gethostbyname"
26247      fi
26248 fi
26249
26250   LIBS="$gl_saved_libs"
26251   if test -z "$HOSTENT_LIB"; then
26252     for ac_func in gethostbyname
26253 do :
26254   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
26255 if test "x$ac_cv_func_gethostbyname" = xyes; then :
26256   cat >>confdefs.h <<_ACEOF
26257 #define HAVE_GETHOSTBYNAME 1
26258 _ACEOF
26259
26260 else
26261
26262       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
26263 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
26264 if ${gl_cv_w32_gethostbyname+:} false; then :
26265   $as_echo_n "(cached) " >&6
26266 else
26267   gl_cv_w32_gethostbyname=no
26268          gl_save_LIBS="$LIBS"
26269          LIBS="$LIBS -lws2_32"
26270          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26271 /* end confdefs.h.  */
26272
26273 #ifdef HAVE_WINSOCK2_H
26274 #include <winsock2.h>
26275 #endif
26276 #include <stddef.h>
26277
26278 int
26279 main ()
26280 {
26281 gethostbyname(NULL);
26282   ;
26283   return 0;
26284 }
26285 _ACEOF
26286 if ac_fn_c_try_link "$LINENO"; then :
26287   gl_cv_w32_gethostbyname=yes
26288 fi
26289 rm -f core conftest.err conftest.$ac_objext \
26290     conftest$ac_exeext conftest.$ac_ext
26291          LIBS="$gl_save_LIBS"
26292
26293 fi
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
26295 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
26296       if test "$gl_cv_w32_gethostbyname" = "yes"; then
26297         HOSTENT_LIB="-lws2_32"
26298       fi
26299
26300 fi
26301 done
26302
26303   fi
26304
26305
26306
26307                       SERVENT_LIB=
26308   gl_saved_libs="$LIBS"
26309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
26310 $as_echo_n "checking for library containing getservbyname... " >&6; }
26311 if ${ac_cv_search_getservbyname+:} false; then :
26312   $as_echo_n "(cached) " >&6
26313 else
26314   ac_func_search_save_LIBS=$LIBS
26315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26316 /* end confdefs.h.  */
26317
26318 /* Override any GCC internal prototype to avoid an error.
26319    Use char because int might match the return type of a GCC
26320    builtin and then its argument prototype would still apply.  */
26321 #ifdef __cplusplus
26322 extern "C"
26323 #endif
26324 char getservbyname ();
26325 int
26326 main ()
26327 {
26328 return getservbyname ();
26329   ;
26330   return 0;
26331 }
26332 _ACEOF
26333 for ac_lib in '' socket network net; do
26334   if test -z "$ac_lib"; then
26335     ac_res="none required"
26336   else
26337     ac_res=-l$ac_lib
26338     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26339   fi
26340   if ac_fn_c_try_link "$LINENO"; then :
26341   ac_cv_search_getservbyname=$ac_res
26342 fi
26343 rm -f core conftest.err conftest.$ac_objext \
26344     conftest$ac_exeext
26345   if ${ac_cv_search_getservbyname+:} false; then :
26346   break
26347 fi
26348 done
26349 if ${ac_cv_search_getservbyname+:} false; then :
26350
26351 else
26352   ac_cv_search_getservbyname=no
26353 fi
26354 rm conftest.$ac_ext
26355 LIBS=$ac_func_search_save_LIBS
26356 fi
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
26358 $as_echo "$ac_cv_search_getservbyname" >&6; }
26359 ac_res=$ac_cv_search_getservbyname
26360 if test "$ac_res" != no; then :
26361   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26362   if test "$ac_cv_search_getservbyname" != "none required"; then
26363        SERVENT_LIB="$ac_cv_search_getservbyname"
26364      fi
26365 fi
26366
26367   LIBS="$gl_saved_libs"
26368   if test -z "$SERVENT_LIB"; then
26369     for ac_func in getservbyname
26370 do :
26371   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
26372 if test "x$ac_cv_func_getservbyname" = xyes; then :
26373   cat >>confdefs.h <<_ACEOF
26374 #define HAVE_GETSERVBYNAME 1
26375 _ACEOF
26376
26377 else
26378
26379       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
26380 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
26381 if ${gl_cv_w32_getservbyname+:} false; then :
26382   $as_echo_n "(cached) " >&6
26383 else
26384   gl_cv_w32_getservbyname=no
26385          gl_save_LIBS="$LIBS"
26386          LIBS="$LIBS -lws2_32"
26387          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26388 /* end confdefs.h.  */
26389
26390 #ifdef HAVE_WINSOCK2_H
26391 #include <winsock2.h>
26392 #endif
26393 #include <stddef.h>
26394
26395 int
26396 main ()
26397 {
26398 getservbyname(NULL,NULL);
26399   ;
26400   return 0;
26401 }
26402 _ACEOF
26403 if ac_fn_c_try_link "$LINENO"; then :
26404   gl_cv_w32_getservbyname=yes
26405 fi
26406 rm -f core conftest.err conftest.$ac_objext \
26407     conftest$ac_exeext conftest.$ac_ext
26408          LIBS="$gl_save_LIBS"
26409
26410 fi
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
26412 $as_echo "$gl_cv_w32_getservbyname" >&6; }
26413       if test "$gl_cv_w32_getservbyname" = "yes"; then
26414         SERVENT_LIB="-lws2_32"
26415       fi
26416
26417 fi
26418 done
26419
26420   fi
26421
26422
26423
26424
26425
26426
26427
26428
26429
26430               HAVE_INET_NTOP=1
26431   INET_NTOP_LIB=
26432
26433
26434
26435
26436   :
26437
26438
26439
26440
26441
26442   if test $ac_cv_header_sys_socket_h != yes; then
26443                     for ac_header in winsock2.h
26444 do :
26445   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26446 if test "x$ac_cv_header_winsock2_h" = xyes; then :
26447   cat >>confdefs.h <<_ACEOF
26448 #define HAVE_WINSOCK2_H 1
26449 _ACEOF
26450
26451 fi
26452
26453 done
26454
26455   fi
26456   if test "$ac_cv_header_winsock2_h" = yes; then
26457     HAVE_WINSOCK2_H=1
26458     UNISTD_H_HAVE_WINSOCK2_H=1
26459     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
26460   else
26461     HAVE_WINSOCK2_H=0
26462   fi
26463
26464
26465   if test $HAVE_WINSOCK2_H = 1; then
26466     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
26467 "
26468 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
26469   ac_have_decl=1
26470 else
26471   ac_have_decl=0
26472 fi
26473
26474 cat >>confdefs.h <<_ACEOF
26475 #define HAVE_DECL_INET_NTOP $ac_have_decl
26476 _ACEOF
26477
26478     if test $ac_cv_have_decl_inet_ntop = yes; then
26479                   REPLACE_INET_NTOP=1
26480       INET_NTOP_LIB="-lws2_32"
26481     else
26482       HAVE_DECL_INET_NTOP=0
26483       HAVE_INET_NTOP=0
26484     fi
26485   else
26486     gl_save_LIBS=$LIBS
26487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
26488 $as_echo_n "checking for library containing inet_ntop... " >&6; }
26489 if ${ac_cv_search_inet_ntop+:} false; then :
26490   $as_echo_n "(cached) " >&6
26491 else
26492   ac_func_search_save_LIBS=$LIBS
26493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26494 /* end confdefs.h.  */
26495
26496 /* Override any GCC internal prototype to avoid an error.
26497    Use char because int might match the return type of a GCC
26498    builtin and then its argument prototype would still apply.  */
26499 #ifdef __cplusplus
26500 extern "C"
26501 #endif
26502 char inet_ntop ();
26503 int
26504 main ()
26505 {
26506 return inet_ntop ();
26507   ;
26508   return 0;
26509 }
26510 _ACEOF
26511 for ac_lib in '' nsl resolv; do
26512   if test -z "$ac_lib"; then
26513     ac_res="none required"
26514   else
26515     ac_res=-l$ac_lib
26516     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26517   fi
26518   if ac_fn_c_try_link "$LINENO"; then :
26519   ac_cv_search_inet_ntop=$ac_res
26520 fi
26521 rm -f core conftest.err conftest.$ac_objext \
26522     conftest$ac_exeext
26523   if ${ac_cv_search_inet_ntop+:} false; then :
26524   break
26525 fi
26526 done
26527 if ${ac_cv_search_inet_ntop+:} false; then :
26528
26529 else
26530   ac_cv_search_inet_ntop=no
26531 fi
26532 rm conftest.$ac_ext
26533 LIBS=$ac_func_search_save_LIBS
26534 fi
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
26536 $as_echo "$ac_cv_search_inet_ntop" >&6; }
26537 ac_res=$ac_cv_search_inet_ntop
26538 if test "$ac_res" != no; then :
26539   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26540
26541 else
26542   for ac_func in inet_ntop
26543 do :
26544   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
26545 if test "x$ac_cv_func_inet_ntop" = xyes; then :
26546   cat >>confdefs.h <<_ACEOF
26547 #define HAVE_INET_NTOP 1
26548 _ACEOF
26549
26550 fi
26551 done
26552
26553        if test $ac_cv_func_inet_ntop = no; then
26554          HAVE_INET_NTOP=0
26555        fi
26556
26557 fi
26558
26559     LIBS=$gl_save_LIBS
26560
26561     if test "$ac_cv_search_inet_ntop" != "no" \
26562        && test "$ac_cv_search_inet_ntop" != "none required"; then
26563       INET_NTOP_LIB="$ac_cv_search_inet_ntop"
26564     fi
26565
26566
26567   :
26568
26569
26570
26571
26572
26573     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
26574         #if HAVE_NETDB_H
26575         # include <netdb.h>
26576         #endif
26577
26578 "
26579 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
26580   ac_have_decl=1
26581 else
26582   ac_have_decl=0
26583 fi
26584
26585 cat >>confdefs.h <<_ACEOF
26586 #define HAVE_DECL_INET_NTOP $ac_have_decl
26587 _ACEOF
26588
26589     if test $ac_cv_have_decl_inet_ntop = no; then
26590       HAVE_DECL_INET_NTOP=0
26591     fi
26592   fi
26593
26594
26595
26596
26597
26598   :
26599
26600
26601
26602
26603
26604
26605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
26606 $as_echo_n "checking for IPv4 sockets... " >&6; }
26607   if ${gl_cv_socket_ipv4+:} false; then :
26608   $as_echo_n "(cached) " >&6
26609 else
26610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26611 /* end confdefs.h.  */
26612 #include <sys/types.h>
26613 #ifdef HAVE_SYS_SOCKET_H
26614 #include <sys/socket.h>
26615 #endif
26616 #ifdef HAVE_NETINET_IN_H
26617 #include <netinet/in.h>
26618 #endif
26619 #ifdef HAVE_WINSOCK2_H
26620 #include <winsock2.h>
26621 #endif
26622 int
26623 main ()
26624 {
26625 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
26626  if (&x && &y && &z) return 0;
26627   ;
26628   return 0;
26629 }
26630 _ACEOF
26631 if ac_fn_c_try_compile "$LINENO"; then :
26632   gl_cv_socket_ipv4=yes
26633 else
26634   gl_cv_socket_ipv4=no
26635 fi
26636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26637 fi
26638
26639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
26640 $as_echo "$gl_cv_socket_ipv4" >&6; }
26641   if test $gl_cv_socket_ipv4 = yes; then
26642
26643 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
26644
26645   fi
26646
26647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
26648 $as_echo_n "checking for IPv6 sockets... " >&6; }
26649   if ${gl_cv_socket_ipv6+:} false; then :
26650   $as_echo_n "(cached) " >&6
26651 else
26652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26653 /* end confdefs.h.  */
26654 #include <sys/types.h>
26655 #ifdef HAVE_SYS_SOCKET_H
26656 #include <sys/socket.h>
26657 #endif
26658 #ifdef HAVE_NETINET_IN_H
26659 #include <netinet/in.h>
26660 #endif
26661 #ifdef HAVE_WINSOCK2_H
26662 #include <winsock2.h>
26663 #endif
26664 #ifdef HAVE_WS2TCPIP_H
26665 #include <ws2tcpip.h>
26666 #endif
26667 int
26668 main ()
26669 {
26670 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
26671  if (&x && &y && &z) return 0;
26672   ;
26673   return 0;
26674 }
26675 _ACEOF
26676 if ac_fn_c_try_compile "$LINENO"; then :
26677   gl_cv_socket_ipv6=yes
26678 else
26679   gl_cv_socket_ipv6=no
26680 fi
26681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26682 fi
26683
26684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
26685 $as_echo "$gl_cv_socket_ipv6" >&6; }
26686   if test $gl_cv_socket_ipv6 = yes; then
26687
26688 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
26689
26690   fi
26691
26692
26693       ac_fn_c_check_decl "$LINENO" "getpass" "ac_cv_have_decl_getpass" "$ac_includes_default"
26694 if test "x$ac_cv_have_decl_getpass" = xyes; then :
26695   ac_have_decl=1
26696 else
26697   ac_have_decl=0
26698 fi
26699
26700 cat >>confdefs.h <<_ACEOF
26701 #define HAVE_DECL_GETPASS $ac_have_decl
26702 _ACEOF
26703
26704
26705
26706
26707
26708
26709
26710
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731       ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
26732 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
26733   ac_have_decl=1
26734 else
26735   ac_have_decl=0
26736 fi
26737
26738 cat >>confdefs.h <<_ACEOF
26739 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
26740 _ACEOF
26741
26742
26743
26744       ac_fn_c_check_decl "$LINENO" "flockfile" "ac_cv_have_decl_flockfile" "$ac_includes_default"
26745 if test "x$ac_cv_have_decl_flockfile" = xyes; then :
26746   ac_have_decl=1
26747 else
26748   ac_have_decl=0
26749 fi
26750
26751 cat >>confdefs.h <<_ACEOF
26752 #define HAVE_DECL_FLOCKFILE $ac_have_decl
26753 _ACEOF
26754
26755
26756
26757       ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
26758 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
26759   ac_have_decl=1
26760 else
26761   ac_have_decl=0
26762 fi
26763
26764 cat >>confdefs.h <<_ACEOF
26765 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
26766 _ACEOF
26767
26768
26769
26770       ac_fn_c_check_decl "$LINENO" "funlockfile" "ac_cv_have_decl_funlockfile" "$ac_includes_default"
26771 if test "x$ac_cv_have_decl_funlockfile" = xyes; then :
26772   ac_have_decl=1
26773 else
26774   ac_have_decl=0
26775 fi
26776
26777 cat >>confdefs.h <<_ACEOF
26778 #define HAVE_DECL_FUNLOCKFILE $ac_have_decl
26779 _ACEOF
26780
26781
26782
26783       ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
26784 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
26785   ac_have_decl=1
26786 else
26787   ac_have_decl=0
26788 fi
26789
26790 cat >>confdefs.h <<_ACEOF
26791 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
26792 _ACEOF
26793
26794
26795 :
26796
26797
26798
26799
26800
26801
26802
26803       for ac_header in stdlib.h
26804 do :
26805   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
26806 if test "x$ac_cv_header_stdlib_h" = xyes; then :
26807   cat >>confdefs.h <<_ACEOF
26808 #define HAVE_STDLIB_H 1
26809 _ACEOF
26810
26811 fi
26812
26813 done
26814
26815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
26816 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
26817 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
26818   $as_echo_n "(cached) " >&6
26819 else
26820   if test "$cross_compiling" = yes; then :
26821   case "$host_os" in
26822           # Guess yes on platforms where we know the result.
26823           *-gnu* | freebsd* | netbsd* | openbsd* \
26824           | hpux* | solaris* | cygwin* | mingw*)
26825             ac_cv_func_malloc_0_nonnull=yes ;;
26826           # If we don't know, assume the worst.
26827           *) ac_cv_func_malloc_0_nonnull=no ;;
26828         esac
26829
26830 else
26831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26832 /* end confdefs.h.  */
26833 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
26834             # include <stdlib.h>
26835             #else
26836             char *malloc ();
26837             #endif
26838
26839 int
26840 main ()
26841 {
26842 return ! malloc (0);
26843   ;
26844   return 0;
26845 }
26846
26847 _ACEOF
26848 if ac_fn_c_try_run "$LINENO"; then :
26849   ac_cv_func_malloc_0_nonnull=yes
26850 else
26851   ac_cv_func_malloc_0_nonnull=no
26852 fi
26853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26854   conftest.$ac_objext conftest.beam conftest.$ac_ext
26855 fi
26856
26857
26858 fi
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
26860 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
26861   if test $ac_cv_func_malloc_0_nonnull = yes; then :
26862   gl_cv_func_malloc_0_nonnull=1
26863 else
26864   gl_cv_func_malloc_0_nonnull=0
26865 fi
26866
26867
26868 cat >>confdefs.h <<_ACEOF
26869 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
26870 _ACEOF
26871
26872
26873
26874       ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
26875 if test "x$ac_cv_have_decl_alarm" = xyes; then :
26876   ac_have_decl=1
26877 else
26878   ac_have_decl=0
26879 fi
26880
26881 cat >>confdefs.h <<_ACEOF
26882 #define HAVE_DECL_ALARM $ac_have_decl
26883 _ACEOF
26884
26885
26886
26887   # parse-datetime.y works with bison only.
26888   : ${YACC='bison -y'}
26889
26890
26891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compound literals" >&5
26892 $as_echo_n "checking for compound literals... " >&6; }
26893 if ${gl_cv_compound_literals+:} false; then :
26894   $as_echo_n "(cached) " >&6
26895 else
26896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26897 /* end confdefs.h.  */
26898 struct s { int i, j; };
26899 int
26900 main ()
26901 {
26902 struct s t = (struct s) { 3, 4 };
26903         if (t.i != 0) return 0;
26904   ;
26905   return 0;
26906 }
26907 _ACEOF
26908 if ac_fn_c_try_compile "$LINENO"; then :
26909   gl_cv_compound_literals=yes
26910 else
26911   gl_cv_compound_literals=no
26912 fi
26913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26914 fi
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compound_literals" >&5
26916 $as_echo "$gl_cv_compound_literals" >&6; }
26917   if test $gl_cv_compound_literals = yes; then
26918
26919 $as_echo "#define HAVE_COMPOUND_LITERALS 1" >>confdefs.h
26920
26921   fi
26922
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26924 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26925 if ${ac_cv_struct_tm+:} false; then :
26926   $as_echo_n "(cached) " >&6
26927 else
26928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26929 /* end confdefs.h.  */
26930 #include <sys/types.h>
26931 #include <time.h>
26932
26933 int
26934 main ()
26935 {
26936 struct tm tm;
26937                                      int *p = &tm.tm_sec;
26938                                      return !p;
26939   ;
26940   return 0;
26941 }
26942 _ACEOF
26943 if ac_fn_c_try_compile "$LINENO"; then :
26944   ac_cv_struct_tm=time.h
26945 else
26946   ac_cv_struct_tm=sys/time.h
26947 fi
26948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26949 fi
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26951 $as_echo "$ac_cv_struct_tm" >&6; }
26952 if test $ac_cv_struct_tm = sys/time.h; then
26953
26954 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26955
26956 fi
26957
26958
26959  ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
26960 "
26961 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
26962
26963 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
26964
26965 fi
26966
26967
26968
26969   GNULIB_PSELECT=0;
26970   GNULIB_SELECT=0;
26971     HAVE_PSELECT=1;
26972   REPLACE_PSELECT=0;
26973   REPLACE_SELECT=0;
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
26984 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
26985 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
26986   $as_echo_n "(cached) " >&6
26987 else
26988
26989                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26990 /* end confdefs.h.  */
26991 #include <sys/select.h>
26992 int
26993 main ()
26994 {
26995 struct timeval b;
26996   ;
26997   return 0;
26998 }
26999 _ACEOF
27000 if ac_fn_c_try_compile "$LINENO"; then :
27001   gl_cv_header_sys_select_h_selfcontained=yes
27002 else
27003   gl_cv_header_sys_select_h_selfcontained=no
27004 fi
27005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27006                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
27007         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27008 /* end confdefs.h.  */
27009 #include <sys/select.h>
27010 int
27011 main ()
27012 {
27013 int memset; int bzero;
27014   ;
27015   return 0;
27016 }
27017
27018 _ACEOF
27019 if ac_fn_c_try_compile "$LINENO"; then :
27020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27021 /* end confdefs.h.  */
27022 #include <sys/select.h>
27023 int
27024 main ()
27025 {
27026
27027                   #undef memset
27028                   #define memset nonexistent_memset
27029                   extern
27030                   #ifdef __cplusplus
27031                   "C"
27032                   #endif
27033                   void *memset (void *, int, unsigned long);
27034                   #undef bzero
27035                   #define bzero nonexistent_bzero
27036                   extern
27037                   #ifdef __cplusplus
27038                   "C"
27039                   #endif
27040                   void bzero (void *, unsigned long);
27041                   fd_set fds;
27042                   FD_ZERO (&fds);
27043
27044   ;
27045   return 0;
27046 }
27047
27048 _ACEOF
27049 if ac_fn_c_try_link "$LINENO"; then :
27050
27051 else
27052   gl_cv_header_sys_select_h_selfcontained=no
27053 fi
27054 rm -f core conftest.err conftest.$ac_objext \
27055     conftest$ac_exeext conftest.$ac_ext
27056
27057 fi
27058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27059       fi
27060
27061 fi
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
27063 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
27064
27065
27066
27067
27068
27069
27070   :
27071
27072
27073
27074
27075
27076
27077
27078
27079      if test $gl_cv_have_include_next = yes; then
27080        gl_cv_next_sys_select_h='<'sys/select.h'>'
27081      else
27082        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
27083 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
27084 if ${gl_cv_next_sys_select_h+:} false; then :
27085   $as_echo_n "(cached) " >&6
27086 else
27087
27088              if test $ac_cv_header_sys_select_h = yes; then
27089
27090
27091
27092
27093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27094 /* end confdefs.h.  */
27095 #include <sys/select.h>
27096 _ACEOF
27097                 case "$host_os" in
27098     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27099     *)    gl_absname_cpp="$ac_cpp" ;;
27100   esac
27101
27102   case "$host_os" in
27103     mingw*)
27104                                           gl_dirsep_regex='[/\\]'
27105       ;;
27106     *)
27107       gl_dirsep_regex='\/'
27108       ;;
27109   esac
27110       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27111   gl_header_literal_regex=`echo 'sys/select.h' \
27112                            | sed -e "$gl_make_literal_regex_sed"`
27113   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27114       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27115       s|^/[^/]|//&|
27116       p
27117       q
27118     }'
27119
27120         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27121   sed -n "$gl_absolute_header_sed"`
27122
27123            gl_header=$gl_cv_absolute_sys_select_h
27124            gl_cv_next_sys_select_h='"'$gl_header'"'
27125           else
27126                gl_cv_next_sys_select_h='<'sys/select.h'>'
27127              fi
27128
27129
27130 fi
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
27132 $as_echo "$gl_cv_next_sys_select_h" >&6; }
27133      fi
27134      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
27135
27136      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27137        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27138        gl_next_as_first_directive='<'sys/select.h'>'
27139      else
27140        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27141        gl_next_as_first_directive=$gl_cv_next_sys_select_h
27142      fi
27143      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
27144
27145
27146
27147
27148   if test $ac_cv_header_sys_select_h = yes; then
27149     HAVE_SYS_SELECT_H=1
27150   else
27151     HAVE_SYS_SELECT_H=0
27152   fi
27153
27154
27155
27156
27157
27158   :
27159
27160
27161
27162
27163
27164   if test $ac_cv_header_sys_socket_h != yes; then
27165                     for ac_header in winsock2.h
27166 do :
27167   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27168 if test "x$ac_cv_header_winsock2_h" = xyes; then :
27169   cat >>confdefs.h <<_ACEOF
27170 #define HAVE_WINSOCK2_H 1
27171 _ACEOF
27172
27173 fi
27174
27175 done
27176
27177   fi
27178   if test "$ac_cv_header_winsock2_h" = yes; then
27179     HAVE_WINSOCK2_H=1
27180     UNISTD_H_HAVE_WINSOCK2_H=1
27181     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27182   else
27183     HAVE_WINSOCK2_H=0
27184   fi
27185
27186
27187
27188
27189     for gl_func in pselect select; do
27190     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27192 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27193 if eval \${$as_gl_Symbol+:} false; then :
27194   $as_echo_n "(cached) " >&6
27195 else
27196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27197 /* end confdefs.h.  */
27198
27199 /* Some systems require prerequisite headers.  */
27200 #include <sys/types.h>
27201 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
27202 # include <sys/time.h>
27203 #endif
27204 #include <sys/select.h>
27205
27206 int
27207 main ()
27208 {
27209 #undef $gl_func
27210   (void) $gl_func;
27211   ;
27212   return 0;
27213 }
27214 _ACEOF
27215 if ac_fn_c_try_compile "$LINENO"; then :
27216   eval "$as_gl_Symbol=yes"
27217 else
27218   eval "$as_gl_Symbol=no"
27219 fi
27220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27221 fi
27222 eval ac_res=\$$as_gl_Symbol
27223                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27224 $as_echo "$ac_res" >&6; }
27225     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27226   cat >>confdefs.h <<_ACEOF
27227 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27228 _ACEOF
27229
27230                      eval ac_cv_have_decl_$gl_func=yes
27231 fi
27232       done
27233
27234
27235
27236       ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
27237 if test "x$ac_cv_have_decl_setenv" = xyes; then :
27238   ac_have_decl=1
27239 else
27240   ac_have_decl=0
27241 fi
27242
27243 cat >>confdefs.h <<_ACEOF
27244 #define HAVE_DECL_SETENV $ac_have_decl
27245 _ACEOF
27246
27247
27248
27249
27250
27251
27252
27253
27254
27255
27256   :
27257
27258
27259
27260
27261
27262   if test $ac_cv_have_decl_setenv = no; then
27263     HAVE_DECL_SETENV=0
27264   fi
27265
27266   :
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276   :
27277
27278
27279
27280
27281
27282   for ac_header in search.h
27283 do :
27284   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
27285 if test "x$ac_cv_header_search_h" = xyes; then :
27286   cat >>confdefs.h <<_ACEOF
27287 #define HAVE_SEARCH_H 1
27288 _ACEOF
27289
27290 fi
27291
27292 done
27293
27294   for ac_func in tsearch
27295 do :
27296   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
27297 if test "x$ac_cv_func_tsearch" = xyes; then :
27298   cat >>confdefs.h <<_ACEOF
27299 #define HAVE_TSEARCH 1
27300 _ACEOF
27301
27302 fi
27303 done
27304
27305
27306
27307
27308   GNULIB_PTHREAD_SIGMASK=0;
27309   GNULIB_RAISE=0;
27310   GNULIB_SIGNAL_H_SIGPIPE=0;
27311   GNULIB_SIGPROCMASK=0;
27312   GNULIB_SIGACTION=0;
27313     HAVE_POSIX_SIGNALBLOCKING=1;
27314   HAVE_PTHREAD_SIGMASK=1;
27315   HAVE_RAISE=1;
27316   HAVE_SIGSET_T=1;
27317   HAVE_SIGINFO_T=1;
27318   HAVE_SIGACTION=1;
27319   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
27320
27321   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
27322
27323   HAVE_SIGHANDLER_T=1;
27324   REPLACE_PTHREAD_SIGMASK=0;
27325   REPLACE_RAISE=0;
27326
27327
27328   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
27329       #include <signal.h>
27330       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
27331       #include <sys/types.h>
27332
27333 "
27334 if test "x$ac_cv_type_sigset_t" = xyes; then :
27335
27336 cat >>confdefs.h <<_ACEOF
27337 #define HAVE_SIGSET_T 1
27338 _ACEOF
27339
27340 gl_cv_type_sigset_t=yes
27341 else
27342   gl_cv_type_sigset_t=no
27343 fi
27344
27345   if test $gl_cv_type_sigset_t != yes; then
27346     HAVE_SIGSET_T=0
27347   fi
27348
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27350 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27351 if ${ac_cv_type_uid_t+:} false; then :
27352   $as_echo_n "(cached) " >&6
27353 else
27354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27355 /* end confdefs.h.  */
27356 #include <sys/types.h>
27357
27358 _ACEOF
27359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27360   $EGREP "uid_t" >/dev/null 2>&1; then :
27361   ac_cv_type_uid_t=yes
27362 else
27363   ac_cv_type_uid_t=no
27364 fi
27365 rm -f conftest*
27366
27367 fi
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27369 $as_echo "$ac_cv_type_uid_t" >&6; }
27370 if test $ac_cv_type_uid_t = no; then
27371
27372 $as_echo "#define uid_t int" >>confdefs.h
27373
27374
27375 $as_echo "#define gid_t int" >>confdefs.h
27376
27377 fi
27378
27379
27380
27381
27382
27383
27384
27385       ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
27386 if test "x$ac_cv_have_decl_strdup" = xyes; then :
27387   ac_have_decl=1
27388 else
27389   ac_have_decl=0
27390 fi
27391
27392 cat >>confdefs.h <<_ACEOF
27393 #define HAVE_DECL_STRDUP $ac_have_decl
27394 _ACEOF
27395
27396
27397
27398      REPLACE_STRERROR_0=0
27399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
27400 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
27401 if ${gl_cv_func_strerror_0_works+:} false; then :
27402   $as_echo_n "(cached) " >&6
27403 else
27404   if test "$cross_compiling" = yes; then :
27405   case "$host_os" in
27406                  # Guess yes on glibc systems.
27407          *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
27408                  # If we don't know, assume the worst.
27409          *)      gl_cv_func_strerror_0_works="guessing no" ;;
27410        esac
27411
27412 else
27413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27414 /* end confdefs.h.  */
27415 #include <string.h>
27416            #include <errno.h>
27417
27418 int
27419 main ()
27420 {
27421 int result = 0;
27422            char *str;
27423            errno = 0;
27424            str = strerror (0);
27425            if (!*str) result |= 1;
27426            if (errno) result |= 2;
27427            if (strstr (str, "nknown") || strstr (str, "ndefined"))
27428              result |= 4;
27429            return result;
27430   ;
27431   return 0;
27432 }
27433 _ACEOF
27434 if ac_fn_c_try_run "$LINENO"; then :
27435   gl_cv_func_strerror_0_works=yes
27436 else
27437   gl_cv_func_strerror_0_works=no
27438 fi
27439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27440   conftest.$ac_objext conftest.beam conftest.$ac_ext
27441 fi
27442
27443
27444 fi
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
27446 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
27447   case "$gl_cv_func_strerror_0_works" in
27448     *yes) ;;
27449     *)
27450       REPLACE_STRERROR_0=1
27451
27452 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
27453
27454       ;;
27455   esac
27456
27457
27458       ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
27459 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
27460   ac_have_decl=1
27461 else
27462   ac_have_decl=0
27463 fi
27464
27465 cat >>confdefs.h <<_ACEOF
27466 #define HAVE_DECL_UNSETENV $ac_have_decl
27467 _ACEOF
27468
27469
27470
27471    if true; then
27472   GL_COND_LIBTOOL_TRUE=
27473   GL_COND_LIBTOOL_FALSE='#'
27474 else
27475   GL_COND_LIBTOOL_TRUE='#'
27476   GL_COND_LIBTOOL_FALSE=
27477 fi
27478
27479   gl_cond_libtool=true
27480   gl_m4_base='src/gl/m4'
27481
27482
27483
27484
27485
27486
27487
27488
27489
27490   gl_source_base='src/gl'
27491
27492   if test "$ac_cv_header_winsock2_h" = yes; then
27493
27494
27495
27496
27497
27498
27499
27500
27501   ggl_LIBOBJS="$ggl_LIBOBJS accept.$ac_objext"
27502
27503   fi
27504
27505
27506
27507
27508
27509           GNULIB_ACCEPT=1
27510
27511
27512
27513
27514
27515 $as_echo "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h
27516
27517
27518
27519 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
27520
27521
27522
27523   if test $ac_cv_func_alloca_works = no; then
27524     :
27525   fi
27526
27527   # Define an additional variable used in the Makefile substitution.
27528   if test $ac_cv_working_alloca_h = yes; then
27529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
27530 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
27531 if ${gl_cv_rpl_alloca+:} false; then :
27532   $as_echo_n "(cached) " >&6
27533 else
27534
27535       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27536 /* end confdefs.h.  */
27537
27538 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
27539         Need own alloca
27540 #endif
27541
27542 _ACEOF
27543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27544   $EGREP "Need own alloca" >/dev/null 2>&1; then :
27545   gl_cv_rpl_alloca=yes
27546 else
27547   gl_cv_rpl_alloca=no
27548 fi
27549 rm -f conftest*
27550
27551
27552 fi
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
27554 $as_echo "$gl_cv_rpl_alloca" >&6; }
27555     if test $gl_cv_rpl_alloca = yes; then
27556
27557 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27558
27559       ALLOCA_H=alloca.h
27560     else
27561                   ALLOCA_H=
27562     fi
27563   else
27564     ALLOCA_H=alloca.h
27565   fi
27566
27567    if test -n "$ALLOCA_H"; then
27568   GL_GENERATE_ALLOCA_H_TRUE=
27569   GL_GENERATE_ALLOCA_H_FALSE='#'
27570 else
27571   GL_GENERATE_ALLOCA_H_TRUE='#'
27572   GL_GENERATE_ALLOCA_H_FALSE=
27573 fi
27574
27575
27576
27577
27578
27579
27580   :
27581
27582
27583
27584
27585
27586   if test $ac_cv_header_arpa_inet_h = yes; then
27587     HAVE_ARPA_INET_H=1
27588   else
27589     HAVE_ARPA_INET_H=0
27590   fi
27591
27592
27593
27594
27595
27596
27597
27598   :
27599
27600
27601
27602
27603
27604
27605
27606
27607      if test $gl_cv_have_include_next = yes; then
27608        gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
27609      else
27610        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
27611 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
27612 if ${gl_cv_next_arpa_inet_h+:} false; then :
27613   $as_echo_n "(cached) " >&6
27614 else
27615
27616              if test $ac_cv_header_arpa_inet_h = yes; then
27617
27618
27619
27620
27621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27622 /* end confdefs.h.  */
27623 #include <arpa/inet.h>
27624 _ACEOF
27625                 case "$host_os" in
27626     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27627     *)    gl_absname_cpp="$ac_cpp" ;;
27628   esac
27629
27630   case "$host_os" in
27631     mingw*)
27632                                           gl_dirsep_regex='[/\\]'
27633       ;;
27634     *)
27635       gl_dirsep_regex='\/'
27636       ;;
27637   esac
27638       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27639   gl_header_literal_regex=`echo 'arpa/inet.h' \
27640                            | sed -e "$gl_make_literal_regex_sed"`
27641   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27642       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27643       s|^/[^/]|//&|
27644       p
27645       q
27646     }'
27647
27648         gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27649   sed -n "$gl_absolute_header_sed"`
27650
27651            gl_header=$gl_cv_absolute_arpa_inet_h
27652            gl_cv_next_arpa_inet_h='"'$gl_header'"'
27653           else
27654                gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
27655              fi
27656
27657
27658 fi
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
27660 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
27661      fi
27662      NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
27663
27664      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27665        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27666        gl_next_as_first_directive='<'arpa/inet.h'>'
27667      else
27668        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27669        gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
27670      fi
27671      NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
27672
27673
27674
27675
27676
27677
27678
27679
27680     for gl_func in inet_ntop inet_pton; do
27681     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27682     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27683 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27684 if eval \${$as_gl_Symbol+:} false; then :
27685   $as_echo_n "(cached) " >&6
27686 else
27687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27688 /* end confdefs.h.  */
27689
27690 /* On some systems, this header is not self-consistent.  */
27691 #if !(defined __GLIBC__ || defined __UCLIBC__)
27692 # include <sys/socket.h>
27693 #endif
27694 #ifdef __TANDEM
27695 # include <netdb.h>
27696 #endif
27697 #include <arpa/inet.h>
27698
27699 int
27700 main ()
27701 {
27702 #undef $gl_func
27703   (void) $gl_func;
27704   ;
27705   return 0;
27706 }
27707 _ACEOF
27708 if ac_fn_c_try_compile "$LINENO"; then :
27709   eval "$as_gl_Symbol=yes"
27710 else
27711   eval "$as_gl_Symbol=no"
27712 fi
27713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27714 fi
27715 eval ac_res=\$$as_gl_Symbol
27716                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27717 $as_echo "$ac_res" >&6; }
27718     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27719   cat >>confdefs.h <<_ACEOF
27720 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27721 _ACEOF
27722
27723                      eval ac_cv_have_decl_$gl_func=yes
27724 fi
27725       done
27726
27727
27728
27729
27730   if test "$ac_cv_header_winsock2_h" = yes; then
27731
27732
27733
27734
27735
27736
27737
27738
27739   ggl_LIBOBJS="$ggl_LIBOBJS bind.$ac_objext"
27740
27741   fi
27742
27743
27744
27745
27746
27747           GNULIB_BIND=1
27748
27749
27750
27751
27752
27753 $as_echo "#define GNULIB_TEST_BIND 1" >>confdefs.h
27754
27755
27756
27757
27758
27759
27760   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
27761   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
27762
27763   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
27764   # programs in the package would end up linked with that potentially-shared
27765   # library, inducing unnecessary run-time overhead.
27766   LIB_CLOCK_GETTIME=
27767
27768   gl_saved_libs=$LIBS
27769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
27770 $as_echo_n "checking for library containing clock_gettime... " >&6; }
27771 if ${ac_cv_search_clock_gettime+:} false; then :
27772   $as_echo_n "(cached) " >&6
27773 else
27774   ac_func_search_save_LIBS=$LIBS
27775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27776 /* end confdefs.h.  */
27777
27778 /* Override any GCC internal prototype to avoid an error.
27779    Use char because int might match the return type of a GCC
27780    builtin and then its argument prototype would still apply.  */
27781 #ifdef __cplusplus
27782 extern "C"
27783 #endif
27784 char clock_gettime ();
27785 int
27786 main ()
27787 {
27788 return clock_gettime ();
27789   ;
27790   return 0;
27791 }
27792 _ACEOF
27793 for ac_lib in '' rt posix4; do
27794   if test -z "$ac_lib"; then
27795     ac_res="none required"
27796   else
27797     ac_res=-l$ac_lib
27798     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27799   fi
27800   if ac_fn_c_try_link "$LINENO"; then :
27801   ac_cv_search_clock_gettime=$ac_res
27802 fi
27803 rm -f core conftest.err conftest.$ac_objext \
27804     conftest$ac_exeext
27805   if ${ac_cv_search_clock_gettime+:} false; then :
27806   break
27807 fi
27808 done
27809 if ${ac_cv_search_clock_gettime+:} false; then :
27810
27811 else
27812   ac_cv_search_clock_gettime=no
27813 fi
27814 rm conftest.$ac_ext
27815 LIBS=$ac_func_search_save_LIBS
27816 fi
27817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
27818 $as_echo "$ac_cv_search_clock_gettime" >&6; }
27819 ac_res=$ac_cv_search_clock_gettime
27820 if test "$ac_res" != no; then :
27821   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27822   test "$ac_cv_search_clock_gettime" = "none required" ||
27823                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
27824 fi
27825
27826     for ac_func in clock_gettime clock_settime
27827 do :
27828   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27829 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27830 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27831   cat >>confdefs.h <<_ACEOF
27832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27833 _ACEOF
27834
27835 fi
27836 done
27837
27838   LIBS=$gl_saved_libs
27839
27840
27841
27842
27843   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27844     REPLACE_CLOSE=1
27845   fi
27846
27847
27848
27849
27850
27851   :
27852
27853
27854
27855
27856
27857   if test $ac_cv_header_sys_socket_h != yes; then
27858                     for ac_header in winsock2.h
27859 do :
27860   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27861 if test "x$ac_cv_header_winsock2_h" = xyes; then :
27862   cat >>confdefs.h <<_ACEOF
27863 #define HAVE_WINSOCK2_H 1
27864 _ACEOF
27865
27866 fi
27867
27868 done
27869
27870   fi
27871   if test "$ac_cv_header_winsock2_h" = yes; then
27872     HAVE_WINSOCK2_H=1
27873     UNISTD_H_HAVE_WINSOCK2_H=1
27874     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27875   else
27876     HAVE_WINSOCK2_H=0
27877   fi
27878
27879
27880     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
27881                         REPLACE_CLOSE=1
27882     fi
27883
27884
27885
27886   if test $REPLACE_CLOSE = 1; then
27887
27888
27889
27890
27891
27892
27893
27894
27895   ggl_LIBOBJS="$ggl_LIBOBJS close.$ac_objext"
27896
27897   fi
27898
27899
27900
27901
27902
27903           GNULIB_CLOSE=1
27904
27905
27906
27907
27908
27909 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
27910
27911
27912
27913
27914   if test "$ac_cv_header_winsock2_h" = yes; then
27915
27916
27917
27918
27919
27920
27921
27922
27923   ggl_LIBOBJS="$ggl_LIBOBJS connect.$ac_objext"
27924
27925   fi
27926
27927
27928
27929
27930
27931           GNULIB_CONNECT=1
27932
27933
27934
27935
27936
27937 $as_echo "#define GNULIB_TEST_CONNECT 1" >>confdefs.h
27938
27939
27940
27941
27942
27943
27944
27945
27946 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
27947
27948
27949   if test $HAVE_DUP2 = 1; then
27950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
27951 $as_echo_n "checking whether dup2 works... " >&6; }
27952 if ${gl_cv_func_dup2_works+:} false; then :
27953   $as_echo_n "(cached) " >&6
27954 else
27955   if test "$cross_compiling" = yes; then :
27956   case "$host_os" in
27957            mingw*) # on this platform, dup2 always returns 0 for success
27958              gl_cv_func_dup2_works="guessing no" ;;
27959            cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
27960              gl_cv_func_dup2_works="guessing no" ;;
27961            linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
27962                    # closed fd may yield -EBADF instead of -1 / errno=EBADF.
27963              gl_cv_func_dup2_works="guessing no" ;;
27964            freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
27965              gl_cv_func_dup2_works="guessing no" ;;
27966            haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
27967              gl_cv_func_dup2_works="guessing no" ;;
27968            *) gl_cv_func_dup2_works="guessing yes" ;;
27969          esac
27970 else
27971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27972 /* end confdefs.h.  */
27973
27974          #include <unistd.h>
27975 #include <fcntl.h>
27976 #include <errno.h>
27977 int
27978 main ()
27979 {
27980 int result = 0;
27981 #ifdef FD_CLOEXEC
27982             if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
27983               result |= 1;
27984 #endif
27985             if (dup2 (1, 1) == 0)
27986               result |= 2;
27987 #ifdef FD_CLOEXEC
27988             if (fcntl (1, F_GETFD) != FD_CLOEXEC)
27989               result |= 4;
27990 #endif
27991             close (0);
27992             if (dup2 (0, 0) != -1)
27993               result |= 8;
27994             /* Many gnulib modules require POSIX conformance of EBADF.  */
27995             if (dup2 (2, 1000000) == -1 && errno != EBADF)
27996               result |= 16;
27997             /* Flush out some cygwin core dumps.  */
27998             if (dup2 (2, -1) != -1 || errno != EBADF)
27999               result |= 32;
28000             dup2 (2, 255);
28001             dup2 (2, 256);
28002             return result;
28003
28004   ;
28005   return 0;
28006 }
28007
28008 _ACEOF
28009 if ac_fn_c_try_run "$LINENO"; then :
28010   gl_cv_func_dup2_works=yes
28011 else
28012   gl_cv_func_dup2_works=no
28013 fi
28014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28015   conftest.$ac_objext conftest.beam conftest.$ac_ext
28016 fi
28017
28018
28019 fi
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
28021 $as_echo "$gl_cv_func_dup2_works" >&6; }
28022     case "$gl_cv_func_dup2_works" in
28023       *yes) ;;
28024       *)
28025         REPLACE_DUP2=1
28026         for ac_func in setdtablesize
28027 do :
28028   ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
28029 if test "x$ac_cv_func_setdtablesize" = xyes; then :
28030   cat >>confdefs.h <<_ACEOF
28031 #define HAVE_SETDTABLESIZE 1
28032 _ACEOF
28033
28034 fi
28035 done
28036
28037         ;;
28038     esac
28039   fi
28040
28041
28042   if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
28043
28044
28045
28046
28047
28048
28049
28050
28051   ggl_LIBOBJS="$ggl_LIBOBJS dup2.$ac_objext"
28052
28053
28054   fi
28055
28056
28057
28058
28059
28060           GNULIB_DUP2=1
28061
28062
28063
28064
28065
28066 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
28067
28068
28069
28070
28071
28072
28073
28074
28075
28076           GNULIB_ENVIRON=1
28077
28078
28079
28080
28081
28082 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
28083
28084
28085
28086
28087
28088       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
28089 $as_echo_n "checking for error_at_line... " >&6; }
28090 if ${ac_cv_lib_error_at_line+:} false; then :
28091   $as_echo_n "(cached) " >&6
28092 else
28093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28094 /* end confdefs.h.  */
28095 #include <error.h>
28096 int
28097 main ()
28098 {
28099 error_at_line (0, 0, "", 0, "an error occurred");
28100   ;
28101   return 0;
28102 }
28103 _ACEOF
28104 if ac_fn_c_try_link "$LINENO"; then :
28105   ac_cv_lib_error_at_line=yes
28106 else
28107   ac_cv_lib_error_at_line=no
28108 fi
28109 rm -f core conftest.err conftest.$ac_objext \
28110     conftest$ac_exeext conftest.$ac_ext
28111 fi
28112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
28113 $as_echo "$ac_cv_lib_error_at_line" >&6; }
28114
28115   if test $ac_cv_lib_error_at_line = no; then
28116
28117
28118
28119
28120
28121
28122
28123
28124   ggl_LIBOBJS="$ggl_LIBOBJS error.$ac_objext"
28125
28126
28127
28128   :
28129
28130   fi
28131
28132
28133   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
28134
28135
28136
28137   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
28138
28139
28140
28141
28142
28143   FLOAT_H=
28144   REPLACE_FLOAT_LDBL=0
28145   case "$host_os" in
28146     aix* | beos* | openbsd* | mirbsd* | irix*)
28147       FLOAT_H=float.h
28148       ;;
28149     freebsd*)
28150       case "$host_cpu" in
28151         i[34567]86 )
28152           FLOAT_H=float.h
28153           ;;
28154         x86_64 )
28155           # On x86_64 systems, the C compiler may still be generating
28156           # 32-bit code.
28157           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28158 /* end confdefs.h.  */
28159 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
28160              yes
28161              #endif
28162 _ACEOF
28163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28164   $EGREP "yes" >/dev/null 2>&1; then :
28165
28166 else
28167   FLOAT_H=float.h
28168 fi
28169 rm -f conftest*
28170
28171           ;;
28172       esac
28173       ;;
28174     linux*)
28175       case "$host_cpu" in
28176         powerpc*)
28177           FLOAT_H=float.h
28178           ;;
28179       esac
28180       ;;
28181   esac
28182   case "$host_os" in
28183     aix* | freebsd* | linux*)
28184       if test -n "$FLOAT_H"; then
28185         REPLACE_FLOAT_LDBL=1
28186       fi
28187       ;;
28188   esac
28189
28190     REPLACE_ITOLD=0
28191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
28192 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
28193 if ${gl_cv_func_itold_works+:} false; then :
28194   $as_echo_n "(cached) " >&6
28195 else
28196
28197       if test "$cross_compiling" = yes; then :
28198   case "$host" in
28199            sparc*-*-linux*)
28200              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28201 /* end confdefs.h.  */
28202 #if defined __LP64__ || defined __arch64__
28203                 yes
28204                 #endif
28205 _ACEOF
28206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28207   $EGREP "yes" >/dev/null 2>&1; then :
28208   gl_cv_func_itold_works="guessing no"
28209 else
28210   gl_cv_func_itold_works="guessing yes"
28211 fi
28212 rm -f conftest*
28213
28214              ;;
28215            *) gl_cv_func_itold_works="guessing yes" ;;
28216          esac
28217
28218 else
28219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28220 /* end confdefs.h.  */
28221
28222 int i = -1;
28223 volatile long double ld;
28224 int main ()
28225 {
28226   ld += i * 1.0L;
28227   if (ld > 0)
28228     return 1;
28229   return 0;
28230 }
28231 _ACEOF
28232 if ac_fn_c_try_run "$LINENO"; then :
28233   gl_cv_func_itold_works=yes
28234 else
28235   gl_cv_func_itold_works=no
28236 fi
28237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28238   conftest.$ac_objext conftest.beam conftest.$ac_ext
28239 fi
28240
28241
28242 fi
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
28244 $as_echo "$gl_cv_func_itold_works" >&6; }
28245   case "$gl_cv_func_itold_works" in
28246     *no)
28247       REPLACE_ITOLD=1
28248                   FLOAT_H=float.h
28249       ;;
28250   esac
28251
28252   if test -n "$FLOAT_H"; then
28253
28254
28255
28256
28257
28258
28259
28260
28261      if test $gl_cv_have_include_next = yes; then
28262        gl_cv_next_float_h='<'float.h'>'
28263      else
28264        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
28265 $as_echo_n "checking absolute name of <float.h>... " >&6; }
28266 if ${gl_cv_next_float_h+:} false; then :
28267   $as_echo_n "(cached) " >&6
28268 else
28269
28270
28271
28272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28273 /* end confdefs.h.  */
28274 #include <float.h>
28275 _ACEOF
28276                 case "$host_os" in
28277     aix*) gl_absname_cpp="$ac_cpp -C" ;;
28278     *)    gl_absname_cpp="$ac_cpp" ;;
28279   esac
28280
28281   case "$host_os" in
28282     mingw*)
28283                                           gl_dirsep_regex='[/\\]'
28284       ;;
28285     *)
28286       gl_dirsep_regex='\/'
28287       ;;
28288   esac
28289       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28290   gl_header_literal_regex=`echo 'float.h' \
28291                            | sed -e "$gl_make_literal_regex_sed"`
28292   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28293       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28294       s|^/[^/]|//&|
28295       p
28296       q
28297     }'
28298
28299         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28300   sed -n "$gl_absolute_header_sed"`
28301
28302            gl_header=$gl_cv_absolute_float_h
28303            gl_cv_next_float_h='"'$gl_header'"'
28304
28305
28306 fi
28307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
28308 $as_echo "$gl_cv_next_float_h" >&6; }
28309      fi
28310      NEXT_FLOAT_H=$gl_cv_next_float_h
28311
28312      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28313        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28314        gl_next_as_first_directive='<'float.h'>'
28315      else
28316        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28317        gl_next_as_first_directive=$gl_cv_next_float_h
28318      fi
28319      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
28320
28321
28322
28323
28324   fi
28325
28326    if test -n "$FLOAT_H"; then
28327   GL_GENERATE_FLOAT_H_TRUE=
28328   GL_GENERATE_FLOAT_H_FALSE='#'
28329 else
28330   GL_GENERATE_FLOAT_H_TRUE='#'
28331   GL_GENERATE_FLOAT_H_FALSE=
28332 fi
28333
28334
28335
28336   if test $REPLACE_FLOAT_LDBL = 1; then
28337
28338
28339
28340
28341
28342
28343
28344
28345   ggl_LIBOBJS="$ggl_LIBOBJS float.$ac_objext"
28346
28347   fi
28348   if test $REPLACE_ITOLD = 1; then
28349
28350
28351
28352
28353
28354
28355
28356
28357   ggl_LIBOBJS="$ggl_LIBOBJS itold.$ac_objext"
28358
28359   fi
28360
28361
28362
28363     if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
28364     REPLACE_FSEEK=1
28365   fi
28366
28367   if test $REPLACE_FSEEK = 1; then
28368
28369
28370
28371
28372
28373
28374
28375
28376   ggl_LIBOBJS="$ggl_LIBOBJS fseek.$ac_objext"
28377
28378   fi
28379
28380
28381
28382
28383
28384           GNULIB_FSEEK=1
28385
28386
28387
28388
28389
28390 $as_echo "#define GNULIB_TEST_FSEEK 1" >>confdefs.h
28391
28392
28393
28394
28395
28396
28397
28398
28399
28400
28401
28402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
28403 $as_echo_n "checking for fseeko... " >&6; }
28404 if ${gl_cv_func_fseeko+:} false; then :
28405   $as_echo_n "(cached) " >&6
28406 else
28407
28408       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28409 /* end confdefs.h.  */
28410 #include <stdio.h>
28411
28412 int
28413 main ()
28414 {
28415 fseeko (stdin, 0, 0);
28416   ;
28417   return 0;
28418 }
28419 _ACEOF
28420 if ac_fn_c_try_link "$LINENO"; then :
28421   gl_cv_func_fseeko=yes
28422 else
28423   gl_cv_func_fseeko=no
28424 fi
28425 rm -f core conftest.err conftest.$ac_objext \
28426     conftest$ac_exeext conftest.$ac_ext
28427
28428 fi
28429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
28430 $as_echo "$gl_cv_func_fseeko" >&6; }
28431
28432
28433   :
28434
28435
28436
28437
28438
28439   if test $ac_cv_have_decl_fseeko = no; then
28440     HAVE_DECL_FSEEKO=0
28441   fi
28442
28443   if test $gl_cv_func_fseeko = no; then
28444     HAVE_FSEEKO=0
28445   else
28446     if test $WINDOWS_64_BIT_OFF_T = 1; then
28447       REPLACE_FSEEKO=1
28448     fi
28449     if test $gl_cv_var_stdin_large_offset = no; then
28450       REPLACE_FSEEKO=1
28451     fi
28452
28453   fi
28454
28455   if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
28456
28457
28458
28459
28460
28461
28462
28463
28464   ggl_LIBOBJS="$ggl_LIBOBJS fseeko.$ac_objext"
28465
28466
28467       for ac_func in _fseeki64
28468 do :
28469   ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
28470 if test "x$ac_cv_func__fseeki64" = xyes; then :
28471   cat >>confdefs.h <<_ACEOF
28472 #define HAVE__FSEEKI64 1
28473 _ACEOF
28474
28475 fi
28476 done
28477
28478
28479   fi
28480
28481
28482
28483
28484
28485           GNULIB_FSEEKO=1
28486
28487
28488
28489
28490
28491 $as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
28492
28493
28494
28495
28496
28497
28498
28499   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
28500     REPLACE_FSTAT=1
28501   fi
28502
28503
28504   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
28505     REPLACE_FSTAT=1
28506   fi
28507
28508
28509
28510   if test $REPLACE_FSTAT = 1; then
28511
28512
28513
28514
28515
28516
28517
28518
28519   ggl_LIBOBJS="$ggl_LIBOBJS fstat.$ac_objext"
28520
28521     :
28522   fi
28523
28524
28525
28526
28527
28528           GNULIB_FSTAT=1
28529
28530
28531
28532
28533
28534 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
28535
28536
28537
28538
28539       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
28540 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
28541   GETADDRINFO_LIB=
28542   gai_saved_LIBS="$LIBS"
28543
28544               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
28545 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
28546 if ${ac_cv_search_getaddrinfo+:} false; then :
28547   $as_echo_n "(cached) " >&6
28548 else
28549   ac_func_search_save_LIBS=$LIBS
28550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28551 /* end confdefs.h.  */
28552
28553 /* Override any GCC internal prototype to avoid an error.
28554    Use char because int might match the return type of a GCC
28555    builtin and then its argument prototype would still apply.  */
28556 #ifdef __cplusplus
28557 extern "C"
28558 #endif
28559 char getaddrinfo ();
28560 int
28561 main ()
28562 {
28563 return getaddrinfo ();
28564   ;
28565   return 0;
28566 }
28567 _ACEOF
28568 for ac_lib in '' socket network net; do
28569   if test -z "$ac_lib"; then
28570     ac_res="none required"
28571   else
28572     ac_res=-l$ac_lib
28573     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28574   fi
28575   if ac_fn_c_try_link "$LINENO"; then :
28576   ac_cv_search_getaddrinfo=$ac_res
28577 fi
28578 rm -f core conftest.err conftest.$ac_objext \
28579     conftest$ac_exeext
28580   if ${ac_cv_search_getaddrinfo+:} false; then :
28581   break
28582 fi
28583 done
28584 if ${ac_cv_search_getaddrinfo+:} false; then :
28585
28586 else
28587   ac_cv_search_getaddrinfo=no
28588 fi
28589 rm conftest.$ac_ext
28590 LIBS=$ac_func_search_save_LIBS
28591 fi
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
28593 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
28594 ac_res=$ac_cv_search_getaddrinfo
28595 if test "$ac_res" != no; then :
28596   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28597   if test "$ac_cv_search_getaddrinfo" != "none required"; then
28598        GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
28599      fi
28600 fi
28601
28602   LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
28603
28604   HAVE_GETADDRINFO=1
28605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
28606 $as_echo_n "checking for getaddrinfo... " >&6; }
28607 if ${gl_cv_func_getaddrinfo+:} false; then :
28608   $as_echo_n "(cached) " >&6
28609 else
28610
28611     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28612 /* end confdefs.h.  */
28613
28614 #include <sys/types.h>
28615 #ifdef HAVE_SYS_SOCKET_H
28616 #include <sys/socket.h>
28617 #endif
28618 #ifdef HAVE_NETDB_H
28619 #include <netdb.h>
28620 #endif
28621 #include <stddef.h>
28622
28623 int
28624 main ()
28625 {
28626 getaddrinfo("", "", NULL, NULL);
28627   ;
28628   return 0;
28629 }
28630 _ACEOF
28631 if ac_fn_c_try_link "$LINENO"; then :
28632   gl_cv_func_getaddrinfo=yes
28633 else
28634   gl_cv_func_getaddrinfo=no
28635 fi
28636 rm -f core conftest.err conftest.$ac_objext \
28637     conftest$ac_exeext conftest.$ac_ext
28638 fi
28639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5
28640 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
28641   if test $gl_cv_func_getaddrinfo = no; then
28642     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
28643 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
28644 if ${gl_cv_w32_getaddrinfo+:} false; then :
28645   $as_echo_n "(cached) " >&6
28646 else
28647
28648       gl_cv_w32_getaddrinfo=no
28649       am_save_LIBS="$LIBS"
28650       LIBS="$LIBS -lws2_32"
28651       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28652 /* end confdefs.h.  */
28653
28654 #ifdef HAVE_WS2TCPIP_H
28655 #include <ws2tcpip.h>
28656 #endif
28657 #include <stddef.h>
28658
28659 int
28660 main ()
28661 {
28662 getaddrinfo(NULL, NULL, NULL, NULL);
28663   ;
28664   return 0;
28665 }
28666 _ACEOF
28667 if ac_fn_c_try_link "$LINENO"; then :
28668   gl_cv_w32_getaddrinfo=yes
28669 fi
28670 rm -f core conftest.err conftest.$ac_objext \
28671     conftest$ac_exeext conftest.$ac_ext
28672       LIBS="$am_save_LIBS"
28673
28674 fi
28675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5
28676 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
28677     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
28678       GETADDRINFO_LIB="-lws2_32"
28679       LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
28680     else
28681       HAVE_GETADDRINFO=0
28682     fi
28683   fi
28684
28685   # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
28686   # inline function declared in ws2tcpip.h, so we need to get that
28687   # header included somehow.
28688   ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" "
28689 #include <sys/types.h>
28690 #ifdef HAVE_SYS_SOCKET_H
28691 #include <sys/socket.h>
28692 #endif
28693 #ifdef HAVE_NETDB_H
28694 #include <netdb.h>
28695 #endif
28696 #ifdef HAVE_WS2TCPIP_H
28697 #include <ws2tcpip.h>
28698 #endif
28699 #include <stddef.h>
28700
28701 "
28702 if test "x$ac_cv_have_decl_gai_strerror" = xyes; then :
28703   ac_have_decl=1
28704 else
28705   ac_have_decl=0
28706 fi
28707
28708 cat >>confdefs.h <<_ACEOF
28709 #define HAVE_DECL_GAI_STRERROR $ac_have_decl
28710 _ACEOF
28711
28712   if test $ac_cv_have_decl_gai_strerror = yes; then
28713     ac_fn_c_check_decl "$LINENO" "gai_strerrorA" "ac_cv_have_decl_gai_strerrorA" "
28714 #include <sys/types.h>
28715 #ifdef HAVE_SYS_SOCKET_H
28716 #include <sys/socket.h>
28717 #endif
28718 #ifdef HAVE_NETDB_H
28719 #include <netdb.h>
28720 #endif
28721 #ifdef HAVE_WS2TCPIP_H
28722 #include <ws2tcpip.h>
28723 #endif
28724 #include <stddef.h>
28725
28726 "
28727 if test "x$ac_cv_have_decl_gai_strerrorA" = xyes; then :
28728   ac_have_decl=1
28729 else
28730   ac_have_decl=0
28731 fi
28732
28733 cat >>confdefs.h <<_ACEOF
28734 #define HAVE_DECL_GAI_STRERRORA $ac_have_decl
28735 _ACEOF
28736
28737         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror with POSIX signature" >&5
28738 $as_echo_n "checking for gai_strerror with POSIX signature... " >&6; }
28739 if ${gl_cv_func_gai_strerror_posix_signature+:} false; then :
28740   $as_echo_n "(cached) " >&6
28741 else
28742
28743       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28744 /* end confdefs.h.  */
28745
28746 #include <sys/types.h>
28747 #ifdef HAVE_SYS_SOCKET_H
28748 #include <sys/socket.h>
28749 #endif
28750 #ifdef HAVE_NETDB_H
28751 #include <netdb.h>
28752 #endif
28753 #ifdef HAVE_WS2TCPIP_H
28754 #include <ws2tcpip.h>
28755 #endif
28756 #include <stddef.h>
28757 extern
28758 #ifdef __cplusplus
28759 "C"
28760 #endif
28761 const char *gai_strerror(int);
28762 _ACEOF
28763 if ac_fn_c_try_compile "$LINENO"; then :
28764   gl_cv_func_gai_strerror_posix_signature=yes
28765 else
28766   gl_cv_func_gai_strerror_posix_signature=no
28767 fi
28768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28769 fi
28770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror_posix_signature" >&5
28771 $as_echo "$gl_cv_func_gai_strerror_posix_signature" >&6; }
28772     if test $gl_cv_func_gai_strerror_posix_signature = no; then
28773       REPLACE_GAI_STRERROR=1
28774     fi
28775   fi
28776
28777   LIBS="$gai_saved_LIBS"
28778
28779
28780
28781
28782
28783
28784
28785
28786       ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
28787 #include <sys/types.h>
28788 #include <sys/socket.h>
28789
28790 "
28791 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
28792
28793 cat >>confdefs.h <<_ACEOF
28794 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
28795 _ACEOF
28796
28797
28798 fi
28799
28800
28801
28802   :
28803
28804
28805
28806
28807
28808
28809   ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
28810   /* sys/types.h is not needed according to POSIX, but the
28811      sys/socket.h in i386-unknown-freebsd4.10 and
28812      powerpc-apple-darwin5.5 required it. */
28813 #include <sys/types.h>
28814 #ifdef HAVE_SYS_SOCKET_H
28815 #include <sys/socket.h>
28816 #endif
28817 #ifdef HAVE_NETDB_H
28818 #include <netdb.h>
28819 #endif
28820 #ifdef HAVE_WS2TCPIP_H
28821 #include <ws2tcpip.h>
28822 #endif
28823
28824 "
28825 if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
28826   ac_have_decl=1
28827 else
28828   ac_have_decl=0
28829 fi
28830
28831 cat >>confdefs.h <<_ACEOF
28832 #define HAVE_DECL_GETADDRINFO $ac_have_decl
28833 _ACEOF
28834 ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" "
28835   /* sys/types.h is not needed according to POSIX, but the
28836      sys/socket.h in i386-unknown-freebsd4.10 and
28837      powerpc-apple-darwin5.5 required it. */
28838 #include <sys/types.h>
28839 #ifdef HAVE_SYS_SOCKET_H
28840 #include <sys/socket.h>
28841 #endif
28842 #ifdef HAVE_NETDB_H
28843 #include <netdb.h>
28844 #endif
28845 #ifdef HAVE_WS2TCPIP_H
28846 #include <ws2tcpip.h>
28847 #endif
28848
28849 "
28850 if test "x$ac_cv_have_decl_freeaddrinfo" = xyes; then :
28851   ac_have_decl=1
28852 else
28853   ac_have_decl=0
28854 fi
28855
28856 cat >>confdefs.h <<_ACEOF
28857 #define HAVE_DECL_FREEADDRINFO $ac_have_decl
28858 _ACEOF
28859 ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "
28860   /* sys/types.h is not needed according to POSIX, but the
28861      sys/socket.h in i386-unknown-freebsd4.10 and
28862      powerpc-apple-darwin5.5 required it. */
28863 #include <sys/types.h>
28864 #ifdef HAVE_SYS_SOCKET_H
28865 #include <sys/socket.h>
28866 #endif
28867 #ifdef HAVE_NETDB_H
28868 #include <netdb.h>
28869 #endif
28870 #ifdef HAVE_WS2TCPIP_H
28871 #include <ws2tcpip.h>
28872 #endif
28873
28874 "
28875 if test "x$ac_cv_have_decl_getnameinfo" = xyes; then :
28876   ac_have_decl=1
28877 else
28878   ac_have_decl=0
28879 fi
28880
28881 cat >>confdefs.h <<_ACEOF
28882 #define HAVE_DECL_GETNAMEINFO $ac_have_decl
28883 _ACEOF
28884
28885   if test $ac_cv_have_decl_getaddrinfo = no; then
28886     HAVE_DECL_GETADDRINFO=0
28887   fi
28888   if test $ac_cv_have_decl_freeaddrinfo = no; then
28889     HAVE_DECL_FREEADDRINFO=0
28890   fi
28891   if test $ac_cv_have_decl_gai_strerror = no; then
28892     HAVE_DECL_GAI_STRERROR=0
28893   fi
28894   if test $ac_cv_have_decl_getnameinfo = no; then
28895     HAVE_DECL_GETNAMEINFO=0
28896   fi
28897
28898   ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
28899 #include <sys/types.h>
28900 #ifdef HAVE_SYS_SOCKET_H
28901 #include <sys/socket.h>
28902 #endif
28903 #ifdef HAVE_NETDB_H
28904 #include <netdb.h>
28905 #endif
28906 #ifdef HAVE_WS2TCPIP_H
28907 #include <ws2tcpip.h>
28908 #endif
28909
28910 "
28911 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
28912
28913 cat >>confdefs.h <<_ACEOF
28914 #define HAVE_STRUCT_ADDRINFO 1
28915 _ACEOF
28916
28917
28918 fi
28919
28920   if test $ac_cv_type_struct_addrinfo = no; then
28921     HAVE_STRUCT_ADDRINFO=0
28922   fi
28923
28924     case " $GETADDRINFO_LIB " in
28925     *" $HOSTENT_LIB "*) ;;
28926     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
28927   esac
28928
28929     case " $GETADDRINFO_LIB " in
28930     *" $SERVENT_LIB "*) ;;
28931     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
28932   esac
28933
28934     case " $GETADDRINFO_LIB " in
28935     *" $INET_NTOP_LIB "*) ;;
28936     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
28937   esac
28938
28939
28940
28941
28942   if test $HAVE_GETADDRINFO = 0; then
28943
28944
28945
28946
28947
28948
28949
28950
28951   ggl_LIBOBJS="$ggl_LIBOBJS getaddrinfo.$ac_objext"
28952
28953   fi
28954   if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
28955
28956
28957
28958
28959
28960
28961
28962
28963   ggl_LIBOBJS="$ggl_LIBOBJS gai_strerror.$ac_objext"
28964
28965   fi
28966
28967
28968
28969
28970
28971           GNULIB_GETADDRINFO=1
28972
28973
28974
28975
28976
28977 $as_echo "#define GNULIB_TEST_GETADDRINFO 1" >>confdefs.h
28978
28979
28980
28981
28982
28983
28984
28985
28986
28987   :
28988
28989
28990
28991
28992
28993
28994
28995   :
28996
28997
28998
28999
29000
29001   if test $ac_cv_func_getdelim = yes; then
29002     HAVE_GETDELIM=1
29003         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
29004 $as_echo_n "checking for working getdelim function... " >&6; }
29005 if ${gl_cv_func_working_getdelim+:} false; then :
29006   $as_echo_n "(cached) " >&6
29007 else
29008   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
29009     if test "$cross_compiling" = yes; then :
29010         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29011 /* end confdefs.h.  */
29012
29013 #include <features.h>
29014 #ifdef __GNU_LIBRARY__
29015  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
29016   Lucky GNU user
29017  #endif
29018 #endif
29019
29020 _ACEOF
29021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29022   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
29023   gl_cv_func_working_getdelim="guessing yes"
29024 else
29025   gl_cv_func_working_getdelim="guessing no"
29026 fi
29027 rm -f conftest*
29028
29029
29030 else
29031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29032 /* end confdefs.h.  */
29033
29034 #    include <stdio.h>
29035 #    include <stdlib.h>
29036 #    include <string.h>
29037     int main ()
29038     {
29039       FILE *in = fopen ("./conftest.data", "r");
29040       if (!in)
29041         return 1;
29042       {
29043         /* Test result for a NULL buffer and a zero size.
29044            Based on a test program from Karl Heuer.  */
29045         char *line = NULL;
29046         size_t siz = 0;
29047         int len = getdelim (&line, &siz, '\n', in);
29048         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
29049           return 2;
29050       }
29051       {
29052         /* Test result for a NULL buffer and a non-zero size.
29053            This crashes on FreeBSD 8.0.  */
29054         char *line = NULL;
29055         size_t siz = (size_t)(~0) / 4;
29056         if (getdelim (&line, &siz, '\n', in) == -1)
29057           return 3;
29058       }
29059       return 0;
29060     }
29061
29062 _ACEOF
29063 if ac_fn_c_try_run "$LINENO"; then :
29064   gl_cv_func_working_getdelim=yes
29065 else
29066   gl_cv_func_working_getdelim=no
29067 fi
29068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29069   conftest.$ac_objext conftest.beam conftest.$ac_ext
29070 fi
29071
29072 fi
29073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
29074 $as_echo "$gl_cv_func_working_getdelim" >&6; }
29075     case "$gl_cv_func_working_getdelim" in
29076       *no)
29077         REPLACE_GETDELIM=1
29078         ;;
29079     esac
29080   else
29081     HAVE_GETDELIM=0
29082   fi
29083
29084   if test $ac_cv_have_decl_getdelim = no; then
29085     HAVE_DECL_GETDELIM=0
29086   fi
29087
29088   if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
29089
29090
29091
29092
29093
29094
29095
29096
29097   ggl_LIBOBJS="$ggl_LIBOBJS getdelim.$ac_objext"
29098
29099
29100   for ac_func in flockfile funlockfile
29101 do :
29102   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29103 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29104 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29105   cat >>confdefs.h <<_ACEOF
29106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29107 _ACEOF
29108
29109 fi
29110 done
29111
29112   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
29113 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
29114   ac_have_decl=1
29115 else
29116   ac_have_decl=0
29117 fi
29118
29119 cat >>confdefs.h <<_ACEOF
29120 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
29121 _ACEOF
29122
29123
29124   fi
29125
29126
29127
29128
29129
29130           GNULIB_GETDELIM=1
29131
29132
29133
29134
29135
29136 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
29137
29138
29139
29140
29141
29142
29143
29144
29145
29146   :
29147
29148
29149
29150
29151
29152
29153   gl_getline_needs_run_time_check=no
29154   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
29155 if test "x$ac_cv_func_getline" = xyes; then :
29156                    gl_getline_needs_run_time_check=yes
29157 else
29158   am_cv_func_working_getline=no
29159 fi
29160
29161   if test $gl_getline_needs_run_time_check = yes; then
29162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
29163 $as_echo_n "checking for working getline function... " >&6; }
29164 if ${am_cv_func_working_getline+:} false; then :
29165   $as_echo_n "(cached) " >&6
29166 else
29167   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
29168     if test "$cross_compiling" = yes; then :
29169         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29170 /* end confdefs.h.  */
29171
29172 #include <features.h>
29173 #ifdef __GNU_LIBRARY__
29174  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
29175   Lucky GNU user
29176  #endif
29177 #endif
29178
29179 _ACEOF
29180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29181   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
29182   am_cv_func_working_getline="guessing yes"
29183 else
29184   am_cv_func_working_getline="guessing no"
29185 fi
29186 rm -f conftest*
29187
29188
29189 else
29190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29191 /* end confdefs.h.  */
29192
29193 #    include <stdio.h>
29194 #    include <stdlib.h>
29195 #    include <string.h>
29196     int main ()
29197     {
29198       FILE *in = fopen ("./conftest.data", "r");
29199       if (!in)
29200         return 1;
29201       {
29202         /* Test result for a NULL buffer and a zero size.
29203            Based on a test program from Karl Heuer.  */
29204         char *line = NULL;
29205         size_t siz = 0;
29206         int len = getline (&line, &siz, in);
29207         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
29208           return 2;
29209       }
29210       {
29211         /* Test result for a NULL buffer and a non-zero size.
29212            This crashes on FreeBSD 8.0.  */
29213         char *line = NULL;
29214         size_t siz = (size_t)(~0) / 4;
29215         if (getline (&line, &siz, in) == -1)
29216           return 3;
29217       }
29218       return 0;
29219     }
29220
29221 _ACEOF
29222 if ac_fn_c_try_run "$LINENO"; then :
29223   am_cv_func_working_getline=yes
29224 else
29225   am_cv_func_working_getline=no
29226 fi
29227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29228   conftest.$ac_objext conftest.beam conftest.$ac_ext
29229 fi
29230
29231 fi
29232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
29233 $as_echo "$am_cv_func_working_getline" >&6; }
29234   fi
29235
29236   if test $ac_cv_have_decl_getline = no; then
29237     HAVE_DECL_GETLINE=0
29238   fi
29239
29240   case "$am_cv_func_working_getline" in
29241     *no)
29242                         REPLACE_GETLINE=1
29243       ;;
29244   esac
29245
29246   if test $REPLACE_GETLINE = 1; then
29247
29248
29249
29250
29251
29252
29253
29254
29255   ggl_LIBOBJS="$ggl_LIBOBJS getline.$ac_objext"
29256
29257
29258   :
29259
29260   fi
29261
29262
29263
29264
29265
29266           GNULIB_GETLINE=1
29267
29268
29269
29270
29271
29272 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
29273
29274
29275
29276
29277
29278
29279   for ac_func in getpass
29280 do :
29281   ac_fn_c_check_func "$LINENO" "getpass" "ac_cv_func_getpass"
29282 if test "x$ac_cv_func_getpass" = xyes; then :
29283   cat >>confdefs.h <<_ACEOF
29284 #define HAVE_GETPASS 1
29285 _ACEOF
29286
29287 fi
29288 done
29289
29290
29291   :
29292
29293
29294
29295
29296
29297   if test $ac_cv_func_getpass = yes; then
29298     HAVE_GETPASS=1
29299   else
29300     HAVE_GETPASS=0
29301   fi
29302
29303   if test $HAVE_GETPASS = 0; then
29304
29305
29306
29307
29308
29309
29310
29311
29312   ggl_LIBOBJS="$ggl_LIBOBJS getpass.$ac_objext"
29313
29314
29315
29316   :
29317
29318
29319
29320
29321
29322
29323
29324
29325
29326   :
29327
29328
29329
29330
29331
29332
29333
29334
29335
29336
29337
29338   ac_fn_c_check_decl "$LINENO" "__fsetlocking" "ac_cv_have_decl___fsetlocking" "#include <stdio.h>
29339       #if HAVE_STDIO_EXT_H
29340        #include <stdio_ext.h>
29341       #endif
29342 "
29343 if test "x$ac_cv_have_decl___fsetlocking" = xyes; then :
29344   ac_have_decl=1
29345 else
29346   ac_have_decl=0
29347 fi
29348
29349 cat >>confdefs.h <<_ACEOF
29350 #define HAVE_DECL___FSETLOCKING $ac_have_decl
29351 _ACEOF
29352
29353
29354   :
29355
29356
29357
29358
29359
29360
29361   :
29362
29363
29364
29365
29366
29367
29368   :
29369
29370
29371
29372
29373
29374
29375   :
29376
29377
29378
29379
29380
29381
29382   :
29383
29384
29385
29386
29387
29388   :
29389
29390   fi
29391
29392   if test "$ac_cv_header_winsock2_h" = yes; then
29393
29394
29395
29396
29397
29398
29399
29400
29401   ggl_LIBOBJS="$ggl_LIBOBJS getpeername.$ac_objext"
29402
29403   fi
29404
29405
29406
29407
29408
29409           GNULIB_GETPEERNAME=1
29410
29411
29412
29413
29414
29415 $as_echo "#define GNULIB_TEST_GETPEERNAME 1" >>confdefs.h
29416
29417
29418
29419
29420
29421
29422
29423
29424
29425   :
29426
29427
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437
29438
29439
29440   :
29441
29442
29443
29444
29445
29446
29447   gl_gettimeofday_timezone=void
29448   if test $ac_cv_func_gettimeofday != yes; then
29449     HAVE_GETTIMEOFDAY=0
29450   else
29451
29452
29453
29454  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
29455 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
29456 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
29457   $as_echo_n "(cached) " >&6
29458 else
29459   if test "$cross_compiling" = yes; then :
29460   # When cross-compiling:
29461       case "$host_os" in
29462                 # Guess all is fine on glibc systems.
29463         *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
29464                 # If we don't know, assume the worst.
29465         *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
29466       esac
29467
29468 else
29469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29470 /* end confdefs.h.  */
29471 #include <string.h>
29472           #include <sys/time.h>
29473           #include <time.h>
29474           #include <stdlib.h>
29475
29476 int
29477 main ()
29478 {
29479
29480           time_t t = 0;
29481           struct tm *lt;
29482           struct tm saved_lt;
29483           struct timeval tv;
29484           lt = localtime (&t);
29485           saved_lt = *lt;
29486           gettimeofday (&tv, NULL);
29487           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
29488
29489   ;
29490   return 0;
29491 }
29492 _ACEOF
29493 if ac_fn_c_try_run "$LINENO"; then :
29494   gl_cv_func_gettimeofday_clobber=no
29495 else
29496   gl_cv_func_gettimeofday_clobber=yes
29497 fi
29498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29499   conftest.$ac_objext conftest.beam conftest.$ac_ext
29500 fi
29501
29502 fi
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
29504 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
29505
29506  case "$gl_cv_func_gettimeofday_clobber" in
29507    *yes)
29508      REPLACE_GETTIMEOFDAY=1
29509
29510   REPLACE_GMTIME=1
29511   REPLACE_LOCALTIME=1
29512
29513
29514 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
29515
29516      ;;
29517  esac
29518
29519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
29520 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
29521 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
29522   $as_echo_n "(cached) " >&6
29523 else
29524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29525 /* end confdefs.h.  */
29526 #include <sys/time.h>
29527               struct timeval c;
29528               int gettimeofday (struct timeval *restrict, void *restrict);
29529
29530 int
29531 main ()
29532 {
29533 /* glibc uses struct timezone * rather than the POSIX void *
29534                  if _GNU_SOURCE is defined.  However, since the only portable
29535                  use of gettimeofday uses NULL as the second parameter, and
29536                  since the glibc definition is actually more typesafe, it is
29537                  not worth wrapping this to get a compliant signature.  */
29538               int (*f) (struct timeval *restrict, void *restrict)
29539                 = gettimeofday;
29540               int x = f (&c, 0);
29541               return !(x | c.tv_sec | c.tv_usec);
29542
29543   ;
29544   return 0;
29545 }
29546 _ACEOF
29547 if ac_fn_c_try_compile "$LINENO"; then :
29548   gl_cv_func_gettimeofday_posix_signature=yes
29549 else
29550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29551 /* end confdefs.h.  */
29552 #include <sys/time.h>
29553 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
29554
29555 int
29556 main ()
29557 {
29558
29559   ;
29560   return 0;
29561 }
29562 _ACEOF
29563 if ac_fn_c_try_compile "$LINENO"; then :
29564   gl_cv_func_gettimeofday_posix_signature=almost
29565 else
29566   gl_cv_func_gettimeofday_posix_signature=no
29567 fi
29568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29569 fi
29570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29571 fi
29572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
29573 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
29574     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
29575       gl_gettimeofday_timezone='struct timezone'
29576     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
29577       REPLACE_GETTIMEOFDAY=1
29578     fi
29579         if test $REPLACE_STRUCT_TIMEVAL = 1; then
29580       REPLACE_GETTIMEOFDAY=1
29581     fi
29582
29583   fi
29584
29585 cat >>confdefs.h <<_ACEOF
29586 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
29587 _ACEOF
29588
29589
29590   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
29591
29592
29593
29594
29595
29596
29597
29598
29599   ggl_LIBOBJS="$ggl_LIBOBJS gettimeofday.$ac_objext"
29600
29601
29602   for ac_header in sys/timeb.h
29603 do :
29604   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
29605 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
29606   cat >>confdefs.h <<_ACEOF
29607 #define HAVE_SYS_TIMEB_H 1
29608 _ACEOF
29609
29610 fi
29611
29612 done
29613
29614   for ac_func in _ftime
29615 do :
29616   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
29617 if test "x$ac_cv_func__ftime" = xyes; then :
29618   cat >>confdefs.h <<_ACEOF
29619 #define HAVE__FTIME 1
29620 _ACEOF
29621
29622 fi
29623 done
29624
29625
29626   fi
29627
29628
29629
29630
29631
29632           GNULIB_GETTIMEOFDAY=1
29633
29634
29635
29636
29637
29638 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
29639
29640
29641
29642
29643                   HOSTENT_LIB=
29644   gl_saved_libs="$LIBS"
29645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
29646 $as_echo_n "checking for library containing gethostbyname... " >&6; }
29647 if ${ac_cv_search_gethostbyname+:} false; then :
29648   $as_echo_n "(cached) " >&6
29649 else
29650   ac_func_search_save_LIBS=$LIBS
29651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29652 /* end confdefs.h.  */
29653
29654 /* Override any GCC internal prototype to avoid an error.
29655    Use char because int might match the return type of a GCC
29656    builtin and then its argument prototype would still apply.  */
29657 #ifdef __cplusplus
29658 extern "C"
29659 #endif
29660 char gethostbyname ();
29661 int
29662 main ()
29663 {
29664 return gethostbyname ();
29665   ;
29666   return 0;
29667 }
29668 _ACEOF
29669 for ac_lib in '' nsl network net; do
29670   if test -z "$ac_lib"; then
29671     ac_res="none required"
29672   else
29673     ac_res=-l$ac_lib
29674     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29675   fi
29676   if ac_fn_c_try_link "$LINENO"; then :
29677   ac_cv_search_gethostbyname=$ac_res
29678 fi
29679 rm -f core conftest.err conftest.$ac_objext \
29680     conftest$ac_exeext
29681   if ${ac_cv_search_gethostbyname+:} false; then :
29682   break
29683 fi
29684 done
29685 if ${ac_cv_search_gethostbyname+:} false; then :
29686
29687 else
29688   ac_cv_search_gethostbyname=no
29689 fi
29690 rm conftest.$ac_ext
29691 LIBS=$ac_func_search_save_LIBS
29692 fi
29693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
29694 $as_echo "$ac_cv_search_gethostbyname" >&6; }
29695 ac_res=$ac_cv_search_gethostbyname
29696 if test "$ac_res" != no; then :
29697   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29698   if test "$ac_cv_search_gethostbyname" != "none required"; then
29699        HOSTENT_LIB="$ac_cv_search_gethostbyname"
29700      fi
29701 fi
29702
29703   LIBS="$gl_saved_libs"
29704   if test -z "$HOSTENT_LIB"; then
29705     for ac_func in gethostbyname
29706 do :
29707   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
29708 if test "x$ac_cv_func_gethostbyname" = xyes; then :
29709   cat >>confdefs.h <<_ACEOF
29710 #define HAVE_GETHOSTBYNAME 1
29711 _ACEOF
29712
29713 else
29714
29715       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
29716 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
29717 if ${gl_cv_w32_gethostbyname+:} false; then :
29718   $as_echo_n "(cached) " >&6
29719 else
29720   gl_cv_w32_gethostbyname=no
29721          gl_save_LIBS="$LIBS"
29722          LIBS="$LIBS -lws2_32"
29723          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29724 /* end confdefs.h.  */
29725
29726 #ifdef HAVE_WINSOCK2_H
29727 #include <winsock2.h>
29728 #endif
29729 #include <stddef.h>
29730
29731 int
29732 main ()
29733 {
29734 gethostbyname(NULL);
29735   ;
29736   return 0;
29737 }
29738 _ACEOF
29739 if ac_fn_c_try_link "$LINENO"; then :
29740   gl_cv_w32_gethostbyname=yes
29741 fi
29742 rm -f core conftest.err conftest.$ac_objext \
29743     conftest$ac_exeext conftest.$ac_ext
29744          LIBS="$gl_save_LIBS"
29745
29746 fi
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
29748 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
29749       if test "$gl_cv_w32_gethostbyname" = "yes"; then
29750         HOSTENT_LIB="-lws2_32"
29751       fi
29752
29753 fi
29754 done
29755
29756   fi
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766               HAVE_INET_NTOP=1
29767   INET_NTOP_LIB=
29768
29769
29770
29771
29772   :
29773
29774
29775
29776
29777
29778   if test $ac_cv_header_sys_socket_h != yes; then
29779                     for ac_header in winsock2.h
29780 do :
29781   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
29782 if test "x$ac_cv_header_winsock2_h" = xyes; then :
29783   cat >>confdefs.h <<_ACEOF
29784 #define HAVE_WINSOCK2_H 1
29785 _ACEOF
29786
29787 fi
29788
29789 done
29790
29791   fi
29792   if test "$ac_cv_header_winsock2_h" = yes; then
29793     HAVE_WINSOCK2_H=1
29794     UNISTD_H_HAVE_WINSOCK2_H=1
29795     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
29796   else
29797     HAVE_WINSOCK2_H=0
29798   fi
29799
29800
29801   if test $HAVE_WINSOCK2_H = 1; then
29802     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
29803 "
29804 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
29805   ac_have_decl=1
29806 else
29807   ac_have_decl=0
29808 fi
29809
29810 cat >>confdefs.h <<_ACEOF
29811 #define HAVE_DECL_INET_NTOP $ac_have_decl
29812 _ACEOF
29813
29814     if test $ac_cv_have_decl_inet_ntop = yes; then
29815                   REPLACE_INET_NTOP=1
29816       INET_NTOP_LIB="-lws2_32"
29817     else
29818       HAVE_DECL_INET_NTOP=0
29819       HAVE_INET_NTOP=0
29820     fi
29821   else
29822     gl_save_LIBS=$LIBS
29823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
29824 $as_echo_n "checking for library containing inet_ntop... " >&6; }
29825 if ${ac_cv_search_inet_ntop+:} false; then :
29826   $as_echo_n "(cached) " >&6
29827 else
29828   ac_func_search_save_LIBS=$LIBS
29829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29830 /* end confdefs.h.  */
29831
29832 /* Override any GCC internal prototype to avoid an error.
29833    Use char because int might match the return type of a GCC
29834    builtin and then its argument prototype would still apply.  */
29835 #ifdef __cplusplus
29836 extern "C"
29837 #endif
29838 char inet_ntop ();
29839 int
29840 main ()
29841 {
29842 return inet_ntop ();
29843   ;
29844   return 0;
29845 }
29846 _ACEOF
29847 for ac_lib in '' nsl resolv; do
29848   if test -z "$ac_lib"; then
29849     ac_res="none required"
29850   else
29851     ac_res=-l$ac_lib
29852     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29853   fi
29854   if ac_fn_c_try_link "$LINENO"; then :
29855   ac_cv_search_inet_ntop=$ac_res
29856 fi
29857 rm -f core conftest.err conftest.$ac_objext \
29858     conftest$ac_exeext
29859   if ${ac_cv_search_inet_ntop+:} false; then :
29860   break
29861 fi
29862 done
29863 if ${ac_cv_search_inet_ntop+:} false; then :
29864
29865 else
29866   ac_cv_search_inet_ntop=no
29867 fi
29868 rm conftest.$ac_ext
29869 LIBS=$ac_func_search_save_LIBS
29870 fi
29871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
29872 $as_echo "$ac_cv_search_inet_ntop" >&6; }
29873 ac_res=$ac_cv_search_inet_ntop
29874 if test "$ac_res" != no; then :
29875   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29876
29877 else
29878   for ac_func in inet_ntop
29879 do :
29880   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
29881 if test "x$ac_cv_func_inet_ntop" = xyes; then :
29882   cat >>confdefs.h <<_ACEOF
29883 #define HAVE_INET_NTOP 1
29884 _ACEOF
29885
29886 fi
29887 done
29888
29889        if test $ac_cv_func_inet_ntop = no; then
29890          HAVE_INET_NTOP=0
29891        fi
29892
29893 fi
29894
29895     LIBS=$gl_save_LIBS
29896
29897     if test "$ac_cv_search_inet_ntop" != "no" \
29898        && test "$ac_cv_search_inet_ntop" != "none required"; then
29899       INET_NTOP_LIB="$ac_cv_search_inet_ntop"
29900     fi
29901
29902
29903   :
29904
29905
29906
29907
29908
29909     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
29910         #if HAVE_NETDB_H
29911         # include <netdb.h>
29912         #endif
29913
29914 "
29915 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
29916   ac_have_decl=1
29917 else
29918   ac_have_decl=0
29919 fi
29920
29921 cat >>confdefs.h <<_ACEOF
29922 #define HAVE_DECL_INET_NTOP $ac_have_decl
29923 _ACEOF
29924
29925     if test $ac_cv_have_decl_inet_ntop = no; then
29926       HAVE_DECL_INET_NTOP=0
29927     fi
29928   fi
29929
29930
29931   if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
29932
29933
29934
29935
29936
29937
29938
29939
29940   ggl_LIBOBJS="$ggl_LIBOBJS inet_ntop.$ac_objext"
29941
29942
29943
29944
29945   fi
29946
29947
29948
29949
29950
29951           GNULIB_INET_NTOP=1
29952
29953
29954
29955
29956
29957
29958
29959
29960
29961
29962
29963               HAVE_INET_PTON=1
29964   INET_PTON_LIB=
29965
29966
29967
29968
29969   :
29970
29971
29972
29973
29974
29975   if test $ac_cv_header_sys_socket_h != yes; then
29976                     for ac_header in winsock2.h
29977 do :
29978   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
29979 if test "x$ac_cv_header_winsock2_h" = xyes; then :
29980   cat >>confdefs.h <<_ACEOF
29981 #define HAVE_WINSOCK2_H 1
29982 _ACEOF
29983
29984 fi
29985
29986 done
29987
29988   fi
29989   if test "$ac_cv_header_winsock2_h" = yes; then
29990     HAVE_WINSOCK2_H=1
29991     UNISTD_H_HAVE_WINSOCK2_H=1
29992     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
29993   else
29994     HAVE_WINSOCK2_H=0
29995   fi
29996
29997
29998   if test $HAVE_WINSOCK2_H = 1; then
29999     ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h>
30000 "
30001 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
30002   ac_have_decl=1
30003 else
30004   ac_have_decl=0
30005 fi
30006
30007 cat >>confdefs.h <<_ACEOF
30008 #define HAVE_DECL_INET_PTON $ac_have_decl
30009 _ACEOF
30010
30011     if test $ac_cv_have_decl_inet_pton = yes; then
30012                   REPLACE_INET_PTON=1
30013       INET_PTON_LIB="-lws2_32"
30014     else
30015       HAVE_DECL_INET_PTON=0
30016       HAVE_INET_PTON=0
30017     fi
30018   else
30019     gl_save_LIBS=$LIBS
30020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
30021 $as_echo_n "checking for library containing inet_pton... " >&6; }
30022 if ${ac_cv_search_inet_pton+:} false; then :
30023   $as_echo_n "(cached) " >&6
30024 else
30025   ac_func_search_save_LIBS=$LIBS
30026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30027 /* end confdefs.h.  */
30028
30029 /* Override any GCC internal prototype to avoid an error.
30030    Use char because int might match the return type of a GCC
30031    builtin and then its argument prototype would still apply.  */
30032 #ifdef __cplusplus
30033 extern "C"
30034 #endif
30035 char inet_pton ();
30036 int
30037 main ()
30038 {
30039 return inet_pton ();
30040   ;
30041   return 0;
30042 }
30043 _ACEOF
30044 for ac_lib in '' nsl resolv; do
30045   if test -z "$ac_lib"; then
30046     ac_res="none required"
30047   else
30048     ac_res=-l$ac_lib
30049     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30050   fi
30051   if ac_fn_c_try_link "$LINENO"; then :
30052   ac_cv_search_inet_pton=$ac_res
30053 fi
30054 rm -f core conftest.err conftest.$ac_objext \
30055     conftest$ac_exeext
30056   if ${ac_cv_search_inet_pton+:} false; then :
30057   break
30058 fi
30059 done
30060 if ${ac_cv_search_inet_pton+:} false; then :
30061
30062 else
30063   ac_cv_search_inet_pton=no
30064 fi
30065 rm conftest.$ac_ext
30066 LIBS=$ac_func_search_save_LIBS
30067 fi
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
30069 $as_echo "$ac_cv_search_inet_pton" >&6; }
30070 ac_res=$ac_cv_search_inet_pton
30071 if test "$ac_res" != no; then :
30072   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30073
30074 else
30075   for ac_func in inet_pton
30076 do :
30077   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
30078 if test "x$ac_cv_func_inet_pton" = xyes; then :
30079   cat >>confdefs.h <<_ACEOF
30080 #define HAVE_INET_PTON 1
30081 _ACEOF
30082
30083 fi
30084 done
30085
30086        if test $ac_cv_func_inet_pton = no; then
30087          HAVE_INET_PTON=0
30088        fi
30089
30090 fi
30091
30092     LIBS=$gl_save_LIBS
30093
30094     if test "$ac_cv_search_inet_pton" != "no" \
30095        && test "$ac_cv_search_inet_pton" != "none required"; then
30096       INET_PTON_LIB="$ac_cv_search_inet_pton"
30097     fi
30098
30099
30100   :
30101
30102
30103
30104
30105
30106     ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
30107         #if HAVE_NETDB_H
30108         # include <netdb.h>
30109         #endif
30110
30111 "
30112 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
30113   ac_have_decl=1
30114 else
30115   ac_have_decl=0
30116 fi
30117
30118 cat >>confdefs.h <<_ACEOF
30119 #define HAVE_DECL_INET_PTON $ac_have_decl
30120 _ACEOF
30121
30122     if test $ac_cv_have_decl_inet_pton = no; then
30123       HAVE_DECL_INET_PTON=0
30124     fi
30125   fi
30126
30127
30128   if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
30129
30130
30131
30132
30133
30134
30135
30136
30137   ggl_LIBOBJS="$ggl_LIBOBJS inet_pton.$ac_objext"
30138
30139
30140
30141
30142   fi
30143
30144
30145
30146
30147
30148           GNULIB_INET_PTON=1
30149
30150
30151
30152
30153
30154
30155   if test "$ac_cv_header_winsock2_h" = yes; then
30156
30157
30158
30159
30160
30161
30162
30163
30164   ggl_LIBOBJS="$ggl_LIBOBJS listen.$ac_objext"
30165
30166   fi
30167
30168
30169
30170
30171
30172           GNULIB_LISTEN=1
30173
30174
30175
30176
30177
30178 $as_echo "#define GNULIB_TEST_LISTEN 1" >>confdefs.h
30179
30180
30181
30182
30183
30184
30185
30186
30187
30188   :
30189
30190
30191
30192
30193
30194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
30195 $as_echo_n "checking whether lseek detects pipes... " >&6; }
30196 if ${gl_cv_func_lseek_pipe+:} false; then :
30197   $as_echo_n "(cached) " >&6
30198 else
30199   case "$host_os" in
30200        mingw*)
30201                                                                gl_cv_func_lseek_pipe=no
30202          ;;
30203        *)
30204          if test $cross_compiling = no; then
30205            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30206 /* end confdefs.h.  */
30207
30208 #include <sys/types.h> /* for off_t */
30209 #include <stdio.h> /* for SEEK_CUR */
30210 #if HAVE_UNISTD_H
30211 # include <unistd.h>
30212 #else /* on Windows with MSVC */
30213 # include <io.h>
30214 #endif
30215
30216 int
30217 main ()
30218 {
30219
30220   /* Exit with success only if stdin is seekable.  */
30221   return lseek (0, (off_t)0, SEEK_CUR) < 0;
30222
30223   ;
30224   return 0;
30225 }
30226 _ACEOF
30227 if ac_fn_c_try_link "$LINENO"; then :
30228   if test -s conftest$ac_exeext \
30229                  && ./conftest$ac_exeext < conftest.$ac_ext \
30230                  && test 1 = "`echo hi \
30231                    | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
30232                 gl_cv_func_lseek_pipe=yes
30233               else
30234                 gl_cv_func_lseek_pipe=no
30235               fi
30236
30237 else
30238   gl_cv_func_lseek_pipe=no
30239 fi
30240 rm -f core conftest.err conftest.$ac_objext \
30241     conftest$ac_exeext conftest.$ac_ext
30242          else
30243            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30244 /* end confdefs.h.  */
30245
30246 #if defined __BEOS__
30247 /* BeOS mistakenly return 0 when trying to seek on pipes.  */
30248   Choke me.
30249 #endif
30250 _ACEOF
30251 if ac_fn_c_try_compile "$LINENO"; then :
30252   gl_cv_func_lseek_pipe=yes
30253 else
30254   gl_cv_func_lseek_pipe=no
30255 fi
30256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30257          fi
30258          ;;
30259      esac
30260
30261 fi
30262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
30263 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
30264   if test $gl_cv_func_lseek_pipe = no; then
30265     REPLACE_LSEEK=1
30266
30267 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
30268
30269   fi
30270
30271
30272   if test $WINDOWS_64_BIT_OFF_T = 1; then
30273     REPLACE_LSEEK=1
30274   fi
30275
30276   if test $REPLACE_LSEEK = 1; then
30277
30278
30279
30280
30281
30282
30283
30284
30285   ggl_LIBOBJS="$ggl_LIBOBJS lseek.$ac_objext"
30286
30287   fi
30288
30289
30290
30291
30292
30293           GNULIB_LSEEK=1
30294
30295
30296
30297
30298
30299 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
30300
30301
30302
30303
30304
30305
30306   if test $gl_cv_func_malloc_posix = yes; then
30307
30308 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
30309
30310   else
30311     REPLACE_MALLOC=1
30312   fi
30313
30314   if test $REPLACE_MALLOC = 1; then
30315
30316
30317
30318
30319
30320
30321
30322
30323   ggl_LIBOBJS="$ggl_LIBOBJS malloc.$ac_objext"
30324
30325   fi
30326
30327
30328
30329
30330
30331           GNULIB_MALLOC_POSIX=1
30332
30333
30334
30335
30336
30337 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
30338
30339
30340
30341
30342
30343
30344
30345
30346   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
30347
30348
30349
30350
30351
30352
30353
30354
30355   ggl_LIBOBJS="$ggl_LIBOBJS memchr.$ac_objext"
30356
30357
30358   for ac_header in bp-sym.h
30359 do :
30360   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
30361 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
30362   cat >>confdefs.h <<_ACEOF
30363 #define HAVE_BP_SYM_H 1
30364 _ACEOF
30365
30366 fi
30367
30368 done
30369
30370
30371   fi
30372
30373
30374
30375
30376
30377           GNULIB_MEMCHR=1
30378
30379
30380
30381
30382
30383 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
30384
30385
30386
30387
30388
30389
30390
30391   :
30392
30393
30394
30395
30396
30397
30398   :
30399
30400
30401
30402
30403
30404
30405   if test $APPLE_UNIVERSAL_BUILD = 1; then
30406     # A universal build on Apple Mac OS X platforms.
30407     # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
30408     # But we need a configuration result that is valid in both modes.
30409     gl_cv_func_working_mktime=no
30410   fi
30411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
30412 $as_echo_n "checking for working mktime... " >&6; }
30413 if ${gl_cv_func_working_mktime+:} false; then :
30414   $as_echo_n "(cached) " >&6
30415 else
30416   if test "$cross_compiling" = yes; then :
30417   gl_cv_func_working_mktime=no
30418 else
30419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30420 /* end confdefs.h.  */
30421 /* Test program from Paul Eggert and Tony Leneis.  */
30422 #include <limits.h>
30423 #include <stdlib.h>
30424 #include <time.h>
30425
30426 #ifdef HAVE_UNISTD_H
30427 # include <unistd.h>
30428 #endif
30429
30430 #if HAVE_DECL_ALARM
30431 # include <signal.h>
30432 #endif
30433
30434 /* Work around redefinition to rpl_putenv by other config tests.  */
30435 #undef putenv
30436
30437 static time_t time_t_max;
30438 static time_t time_t_min;
30439
30440 /* Values we'll use to set the TZ environment variable.  */
30441 static char *tz_strings[] = {
30442   (char *) 0, "TZ=GMT0", "TZ=JST-9",
30443   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
30444 };
30445 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
30446
30447 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
30448    Based on a problem report from Andreas Jaeger.  */
30449 static int
30450 spring_forward_gap ()
30451 {
30452   /* glibc (up to about 1998-10-07) failed this test. */
30453   struct tm tm;
30454
30455   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
30456      instead of "TZ=America/Vancouver" in order to detect the bug even
30457      on systems that don't support the Olson extension, or don't have the
30458      full zoneinfo tables installed.  */
30459   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
30460
30461   tm.tm_year = 98;
30462   tm.tm_mon = 3;
30463   tm.tm_mday = 5;
30464   tm.tm_hour = 2;
30465   tm.tm_min = 0;
30466   tm.tm_sec = 0;
30467   tm.tm_isdst = -1;
30468   return mktime (&tm) != (time_t) -1;
30469 }
30470
30471 static int
30472 mktime_test1 (time_t now)
30473 {
30474   struct tm *lt;
30475   return ! (lt = localtime (&now)) || mktime (lt) == now;
30476 }
30477
30478 static int
30479 mktime_test (time_t now)
30480 {
30481   return (mktime_test1 (now)
30482           && mktime_test1 ((time_t) (time_t_max - now))
30483           && mktime_test1 ((time_t) (time_t_min + now)));
30484 }
30485
30486 static int
30487 irix_6_4_bug ()
30488 {
30489   /* Based on code from Ariel Faigon.  */
30490   struct tm tm;
30491   tm.tm_year = 96;
30492   tm.tm_mon = 3;
30493   tm.tm_mday = 0;
30494   tm.tm_hour = 0;
30495   tm.tm_min = 0;
30496   tm.tm_sec = 0;
30497   tm.tm_isdst = -1;
30498   mktime (&tm);
30499   return tm.tm_mon == 2 && tm.tm_mday == 31;
30500 }
30501
30502 static int
30503 bigtime_test (int j)
30504 {
30505   struct tm tm;
30506   time_t now;
30507   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
30508   now = mktime (&tm);
30509   if (now != (time_t) -1)
30510     {
30511       struct tm *lt = localtime (&now);
30512       if (! (lt
30513              && lt->tm_year == tm.tm_year
30514              && lt->tm_mon == tm.tm_mon
30515              && lt->tm_mday == tm.tm_mday
30516              && lt->tm_hour == tm.tm_hour
30517              && lt->tm_min == tm.tm_min
30518              && lt->tm_sec == tm.tm_sec
30519              && lt->tm_yday == tm.tm_yday
30520              && lt->tm_wday == tm.tm_wday
30521              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
30522                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
30523         return 0;
30524     }
30525   return 1;
30526 }
30527
30528 static int
30529 year_2050_test ()
30530 {
30531   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
30532      ignoring leap seconds.  */
30533   unsigned long int answer = 2527315200UL;
30534
30535   struct tm tm;
30536   time_t t;
30537   tm.tm_year = 2050 - 1900;
30538   tm.tm_mon = 2 - 1;
30539   tm.tm_mday = 1;
30540   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
30541   tm.tm_isdst = -1;
30542
30543   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
30544      instead of "TZ=America/Vancouver" in order to detect the bug even
30545      on systems that don't support the Olson extension, or don't have the
30546      full zoneinfo tables installed.  */
30547   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
30548
30549   t = mktime (&tm);
30550
30551   /* Check that the result is either a failure, or close enough
30552      to the correct answer that we can assume the discrepancy is
30553      due to leap seconds.  */
30554   return (t == (time_t) -1
30555           || (0 < t && answer - 120 <= t && t <= answer + 120));
30556 }
30557
30558 int
30559 main ()
30560 {
30561   int result = 0;
30562   time_t t, delta;
30563   int i, j;
30564   int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
30565   int time_t_signed = ! ((time_t) 0 < (time_t) -1);
30566
30567 #if HAVE_DECL_ALARM
30568   /* This test makes some buggy mktime implementations loop.
30569      Give up after 60 seconds; a mktime slower than that
30570      isn't worth using anyway.  */
30571   signal (SIGALRM, SIG_DFL);
30572   alarm (60);
30573 #endif
30574
30575   time_t_max = (! time_t_signed
30576                 ? (time_t) -1
30577                 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
30578                    * 2 + 1));
30579   time_t_min = (! time_t_signed
30580                 ? (time_t) 0
30581                 : time_t_signed_magnitude
30582                 ? ~ (time_t) 0
30583                 : ~ time_t_max);
30584
30585   delta = time_t_max / 997; /* a suitable prime number */
30586   for (i = 0; i < N_STRINGS; i++)
30587     {
30588       if (tz_strings[i])
30589         putenv (tz_strings[i]);
30590
30591       for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
30592         if (! mktime_test (t))
30593           result |= 1;
30594       if ((result & 2) == 0
30595           && ! (mktime_test ((time_t) 1)
30596                 && mktime_test ((time_t) (60 * 60))
30597                 && mktime_test ((time_t) (60 * 60 * 24))))
30598         result |= 2;
30599
30600       for (j = 1; (result & 4) == 0; j <<= 1)
30601         {
30602           if (! bigtime_test (j))
30603             result |= 4;
30604           if (INT_MAX / 2 < j)
30605             break;
30606         }
30607       if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
30608         result |= 8;
30609     }
30610   if (! irix_6_4_bug ())
30611     result |= 16;
30612   if (! spring_forward_gap ())
30613     result |= 32;
30614   if (! year_2050_test ())
30615     result |= 64;
30616   return result;
30617 }
30618 _ACEOF
30619 if ac_fn_c_try_run "$LINENO"; then :
30620   gl_cv_func_working_mktime=yes
30621 else
30622   gl_cv_func_working_mktime=no
30623 fi
30624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30625   conftest.$ac_objext conftest.beam conftest.$ac_ext
30626 fi
30627
30628
30629 fi
30630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
30631 $as_echo "$gl_cv_func_working_mktime" >&6; }
30632
30633   if test $gl_cv_func_working_mktime = no; then
30634     REPLACE_MKTIME=1
30635   else
30636     REPLACE_MKTIME=0
30637   fi
30638
30639   if test $REPLACE_MKTIME = 1; then
30640
30641
30642
30643
30644
30645
30646
30647
30648   ggl_LIBOBJS="$ggl_LIBOBJS mktime.$ac_objext"
30649
30650     :
30651   fi
30652
30653
30654
30655
30656
30657           GNULIB_MKTIME=1
30658
30659
30660
30661
30662
30663 $as_echo "#define GNULIB_TEST_MKTIME 1" >>confdefs.h
30664
30665
30666
30667
30668
30669   :
30670
30671
30672
30673
30674
30675   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
30676     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
30677
30678 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
30679
30680   else
30681     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
30682   fi
30683
30684
30685   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
30686
30687
30688
30689
30690
30691
30692
30693
30694   ggl_LIBOBJS="$ggl_LIBOBJS msvc-inval.$ac_objext"
30695
30696   fi
30697
30698
30699
30700   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
30701
30702
30703
30704
30705
30706
30707
30708
30709   ggl_LIBOBJS="$ggl_LIBOBJS msvc-nothrow.$ac_objext"
30710
30711   fi
30712
30713
30714
30715
30716
30717
30718
30719
30720
30721   :
30722
30723
30724
30725
30726
30727
30728
30729
30730      if test $gl_cv_have_include_next = yes; then
30731        gl_cv_next_netdb_h='<'netdb.h'>'
30732      else
30733        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
30734 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
30735 if ${gl_cv_next_netdb_h+:} false; then :
30736   $as_echo_n "(cached) " >&6
30737 else
30738
30739              if test $ac_cv_header_netdb_h = yes; then
30740
30741
30742
30743
30744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30745 /* end confdefs.h.  */
30746 #include <netdb.h>
30747 _ACEOF
30748                 case "$host_os" in
30749     aix*) gl_absname_cpp="$ac_cpp -C" ;;
30750     *)    gl_absname_cpp="$ac_cpp" ;;
30751   esac
30752
30753   case "$host_os" in
30754     mingw*)
30755                                           gl_dirsep_regex='[/\\]'
30756       ;;
30757     *)
30758       gl_dirsep_regex='\/'
30759       ;;
30760   esac
30761       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30762   gl_header_literal_regex=`echo 'netdb.h' \
30763                            | sed -e "$gl_make_literal_regex_sed"`
30764   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30765       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30766       s|^/[^/]|//&|
30767       p
30768       q
30769     }'
30770
30771         gl_cv_absolute_netdb_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30772   sed -n "$gl_absolute_header_sed"`
30773
30774            gl_header=$gl_cv_absolute_netdb_h
30775            gl_cv_next_netdb_h='"'$gl_header'"'
30776           else
30777                gl_cv_next_netdb_h='<'netdb.h'>'
30778              fi
30779
30780
30781 fi
30782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
30783 $as_echo "$gl_cv_next_netdb_h" >&6; }
30784      fi
30785      NEXT_NETDB_H=$gl_cv_next_netdb_h
30786
30787      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30788        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30789        gl_next_as_first_directive='<'netdb.h'>'
30790      else
30791        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30792        gl_next_as_first_directive=$gl_cv_next_netdb_h
30793      fi
30794      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
30795
30796
30797
30798
30799   if test $ac_cv_header_netdb_h = yes; then
30800     HAVE_NETDB_H=1
30801   else
30802     HAVE_NETDB_H=0
30803   fi
30804
30805
30806
30807     for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
30808     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
30810 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30811 if eval \${$as_gl_Symbol+:} false; then :
30812   $as_echo_n "(cached) " >&6
30813 else
30814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30815 /* end confdefs.h.  */
30816 #include <netdb.h>
30817 int
30818 main ()
30819 {
30820 #undef $gl_func
30821   (void) $gl_func;
30822   ;
30823   return 0;
30824 }
30825 _ACEOF
30826 if ac_fn_c_try_compile "$LINENO"; then :
30827   eval "$as_gl_Symbol=yes"
30828 else
30829   eval "$as_gl_Symbol=no"
30830 fi
30831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30832 fi
30833 eval ac_res=\$$as_gl_Symbol
30834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30835 $as_echo "$ac_res" >&6; }
30836     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30837   cat >>confdefs.h <<_ACEOF
30838 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30839 _ACEOF
30840
30841                      eval ac_cv_have_decl_$gl_func=yes
30842 fi
30843       done
30844
30845
30846
30847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
30848 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
30849 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
30850   $as_echo_n "(cached) " >&6
30851 else
30852
30853       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30854 /* end confdefs.h.  */
30855 #include <netinet/in.h>
30856 int
30857 main ()
30858 {
30859
30860   ;
30861   return 0;
30862 }
30863 _ACEOF
30864 if ac_fn_c_try_compile "$LINENO"; then :
30865   gl_cv_header_netinet_in_h_selfcontained=yes
30866 else
30867   gl_cv_header_netinet_in_h_selfcontained=no
30868 fi
30869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30870
30871 fi
30872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
30873 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
30874   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
30875     NETINET_IN_H=''
30876   else
30877     NETINET_IN_H='netinet/in.h'
30878     for ac_header in netinet/in.h
30879 do :
30880   ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
30881 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
30882   cat >>confdefs.h <<_ACEOF
30883 #define HAVE_NETINET_IN_H 1
30884 _ACEOF
30885
30886 fi
30887
30888 done
30889
30890
30891
30892
30893
30894
30895
30896   :
30897
30898
30899
30900
30901
30902
30903
30904
30905      if test $gl_cv_have_include_next = yes; then
30906        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
30907      else
30908        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
30909 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
30910 if ${gl_cv_next_netinet_in_h+:} false; then :
30911   $as_echo_n "(cached) " >&6
30912 else
30913
30914              if test $ac_cv_header_netinet_in_h = yes; then
30915
30916
30917
30918
30919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30920 /* end confdefs.h.  */
30921 #include <netinet/in.h>
30922 _ACEOF
30923                 case "$host_os" in
30924     aix*) gl_absname_cpp="$ac_cpp -C" ;;
30925     *)    gl_absname_cpp="$ac_cpp" ;;
30926   esac
30927
30928   case "$host_os" in
30929     mingw*)
30930                                           gl_dirsep_regex='[/\\]'
30931       ;;
30932     *)
30933       gl_dirsep_regex='\/'
30934       ;;
30935   esac
30936       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30937   gl_header_literal_regex=`echo 'netinet/in.h' \
30938                            | sed -e "$gl_make_literal_regex_sed"`
30939   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30940       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30941       s|^/[^/]|//&|
30942       p
30943       q
30944     }'
30945
30946         gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30947   sed -n "$gl_absolute_header_sed"`
30948
30949            gl_header=$gl_cv_absolute_netinet_in_h
30950            gl_cv_next_netinet_in_h='"'$gl_header'"'
30951           else
30952                gl_cv_next_netinet_in_h='<'netinet/in.h'>'
30953              fi
30954
30955
30956 fi
30957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
30958 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
30959      fi
30960      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
30961
30962      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30963        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30964        gl_next_as_first_directive='<'netinet/in.h'>'
30965      else
30966        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30967        gl_next_as_first_directive=$gl_cv_next_netinet_in_h
30968      fi
30969      NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
30970
30971
30972
30973
30974     if test $ac_cv_header_netinet_in_h = yes; then
30975       HAVE_NETINET_IN_H=1
30976     else
30977       HAVE_NETINET_IN_H=0
30978     fi
30979
30980   fi
30981
30982    if test -n "$NETINET_IN_H"; then
30983   GL_GENERATE_NETINET_IN_H_TRUE=
30984   GL_GENERATE_NETINET_IN_H_FALSE='#'
30985 else
30986   GL_GENERATE_NETINET_IN_H_TRUE='#'
30987   GL_GENERATE_NETINET_IN_H_FALSE=
30988 fi
30989
30990
30991
30992
30993
30994
30995
30996
30997
30998   ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
30999 #include <$ac_cv_struct_tm>
31000
31001 "
31002 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
31003
31004 cat >>confdefs.h <<_ACEOF
31005 #define HAVE_STRUCT_TM_TM_ZONE 1
31006 _ACEOF
31007
31008
31009 fi
31010
31011 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31012
31013 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
31014
31015 else
31016   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
31017 "
31018 if test "x$ac_cv_have_decl_tzname" = xyes; then :
31019   ac_have_decl=1
31020 else
31021   ac_have_decl=0
31022 fi
31023
31024 cat >>confdefs.h <<_ACEOF
31025 #define HAVE_DECL_TZNAME $ac_have_decl
31026 _ACEOF
31027
31028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
31029 $as_echo_n "checking for tzname... " >&6; }
31030 if ${ac_cv_var_tzname+:} false; then :
31031   $as_echo_n "(cached) " >&6
31032 else
31033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31034 /* end confdefs.h.  */
31035 #include <time.h>
31036 #if !HAVE_DECL_TZNAME
31037 extern char *tzname[];
31038 #endif
31039
31040 int
31041 main ()
31042 {
31043 return tzname[0][0];
31044   ;
31045   return 0;
31046 }
31047 _ACEOF
31048 if ac_fn_c_try_link "$LINENO"; then :
31049   ac_cv_var_tzname=yes
31050 else
31051   ac_cv_var_tzname=no
31052 fi
31053 rm -f core conftest.err conftest.$ac_objext \
31054     conftest$ac_exeext conftest.$ac_ext
31055 fi
31056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
31057 $as_echo "$ac_cv_var_tzname" >&6; }
31058   if test $ac_cv_var_tzname = yes; then
31059
31060 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
31061
31062   fi
31063 fi
31064
31065
31066
31067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31068 /* end confdefs.h.  */
31069
31070 #include <time.h> /* for time_t */
31071 #include <limits.h> /* for CHAR_BIT, LONG_MIN, LONG_MAX */
31072 #define TYPE_MINIMUM(t) \
31073   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
31074 #define TYPE_MAXIMUM(t) \
31075   ((t) ((t) 0 < (t) -1 \
31076         ? (t) -1 \
31077         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
31078 typedef int verify_min[2 * (LONG_MIN <= TYPE_MINIMUM (time_t)) - 1];
31079 typedef int verify_max[2 * (TYPE_MAXIMUM (time_t) <= LONG_MAX) - 1];
31080
31081 _ACEOF
31082 if ac_fn_c_try_compile "$LINENO"; then :
31083
31084 $as_echo "#define TIME_T_FITS_IN_LONG_INT 1" >>confdefs.h
31085
31086
31087 fi
31088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31089
31090   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
31091 "
31092 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
31093   ac_have_decl=1
31094 else
31095   ac_have_decl=0
31096 fi
31097
31098 cat >>confdefs.h <<_ACEOF
31099 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
31100 _ACEOF
31101
31102   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
31103 "
31104 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
31105   ac_have_decl=1
31106 else
31107   ac_have_decl=0
31108 fi
31109
31110 cat >>confdefs.h <<_ACEOF
31111 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
31112 _ACEOF
31113
31114
31115
31116
31117   if test $gl_cv_func_malloc_posix = yes; then
31118
31119 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
31120
31121   else
31122     REPLACE_REALLOC=1
31123   fi
31124
31125   if test $REPLACE_REALLOC = 1; then
31126
31127
31128
31129
31130
31131
31132
31133
31134   ggl_LIBOBJS="$ggl_LIBOBJS realloc.$ac_objext"
31135
31136   fi
31137
31138
31139
31140
31141
31142           GNULIB_REALLOC_POSIX=1
31143
31144
31145
31146
31147
31148 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
31149
31150
31151
31152
31153   if test "$ac_cv_header_winsock2_h" = yes; then
31154
31155
31156
31157
31158
31159
31160
31161
31162   ggl_LIBOBJS="$ggl_LIBOBJS recv.$ac_objext"
31163
31164   fi
31165
31166
31167
31168
31169
31170           GNULIB_RECV=1
31171
31172
31173
31174
31175
31176 $as_echo "#define GNULIB_TEST_RECV 1" >>confdefs.h
31177
31178
31179
31180
31181   if test "$ac_cv_header_winsock2_h" = yes; then
31182
31183
31184
31185
31186
31187
31188
31189
31190   ggl_LIBOBJS="$ggl_LIBOBJS recvfrom.$ac_objext"
31191
31192   fi
31193
31194
31195
31196
31197
31198           GNULIB_RECVFROM=1
31199
31200
31201
31202
31203
31204 $as_echo "#define GNULIB_TEST_RECVFROM 1" >>confdefs.h
31205
31206
31207
31208
31209
31210
31211   if test "$ac_cv_header_winsock2_h" = yes; then
31212     REPLACE_SELECT=1
31213   else
31214
31215   :
31216
31217
31218
31219
31220
31221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
31222 $as_echo_n "checking whether select supports a 0 argument... " >&6; }
31223 if ${gl_cv_func_select_supports0+:} false; then :
31224   $as_echo_n "(cached) " >&6
31225 else
31226
31227         if test "$cross_compiling" = yes; then :
31228
31229            case "$host_os" in
31230                        # Guess no on Interix.
31231              interix*) gl_cv_func_select_supports0="guessing no";;
31232                        # Guess yes otherwise.
31233              *)        gl_cv_func_select_supports0="guessing yes";;
31234            esac
31235
31236 else
31237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31238 /* end confdefs.h.  */
31239
31240 #include <sys/types.h>
31241 #include <sys/time.h>
31242 #if HAVE_SYS_SELECT_H
31243 #include <sys/select.h>
31244 #endif
31245 int main ()
31246 {
31247   struct timeval timeout;
31248   timeout.tv_sec = 0;
31249   timeout.tv_usec = 5;
31250   return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
31251 }
31252 _ACEOF
31253 if ac_fn_c_try_run "$LINENO"; then :
31254   gl_cv_func_select_supports0=yes
31255 else
31256   gl_cv_func_select_supports0=no
31257 fi
31258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31259   conftest.$ac_objext conftest.beam conftest.$ac_ext
31260 fi
31261
31262
31263 fi
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
31265 $as_echo "$gl_cv_func_select_supports0" >&6; }
31266     case "$gl_cv_func_select_supports0" in
31267       *yes) ;;
31268       *) REPLACE_SELECT=1 ;;
31269     esac
31270
31271         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
31272 $as_echo_n "checking whether select detects invalid fds... " >&6; }
31273 if ${gl_cv_func_select_detects_ebadf+:} false; then :
31274   $as_echo_n "(cached) " >&6
31275 else
31276
31277         if test "$cross_compiling" = yes; then :
31278
31279            case "$host_os" in
31280                     # Guess yes on glibc systems.
31281             *-gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;;
31282                     # If we don't know, assume the worst.
31283             *)      gl_cv_func_select_detects_ebadf="guessing no" ;;
31284            esac
31285
31286 else
31287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31288 /* end confdefs.h.  */
31289
31290 #include <sys/types.h>
31291 #include <sys/time.h>
31292 #if HAVE_SYS_SELECT_H
31293 # include <sys/select.h>
31294 #endif
31295 #include <unistd.h>
31296 #include <errno.h>
31297
31298 int
31299 main ()
31300 {
31301
31302   fd_set set;
31303   dup2(0, 16);
31304   FD_ZERO(&set);
31305   FD_SET(16, &set);
31306   close(16);
31307   struct timeval timeout;
31308   timeout.tv_sec = 0;
31309   timeout.tv_usec = 5;
31310   return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
31311
31312   ;
31313   return 0;
31314 }
31315 _ACEOF
31316 if ac_fn_c_try_run "$LINENO"; then :
31317   gl_cv_func_select_detects_ebadf=yes
31318 else
31319   gl_cv_func_select_detects_ebadf=no
31320 fi
31321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31322   conftest.$ac_objext conftest.beam conftest.$ac_ext
31323 fi
31324
31325
31326 fi
31327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
31328 $as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
31329     case $gl_cv_func_select_detects_ebadf in
31330       *yes) ;;
31331       *) REPLACE_SELECT=1 ;;
31332     esac
31333   fi
31334
31335     LIB_SELECT="$LIBSOCKET"
31336   if test $REPLACE_SELECT = 1; then
31337     case "$host_os" in
31338       mingw*)
31339                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31340 /* end confdefs.h.  */
31341
31342 #define WIN32_LEAN_AND_MEAN
31343 #include <windows.h>
31344 int
31345 main ()
31346 {
31347   MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
31348   return 0;
31349 }
31350 _ACEOF
31351 if ac_fn_c_try_link "$LINENO"; then :
31352
31353 else
31354   LIB_SELECT="$LIB_SELECT -luser32"
31355 fi
31356 rm -f core conftest.err conftest.$ac_objext \
31357     conftest$ac_exeext conftest.$ac_ext
31358         ;;
31359     esac
31360   fi
31361
31362
31363   if test $REPLACE_SELECT = 1; then
31364
31365
31366
31367
31368
31369
31370
31371
31372   ggl_LIBOBJS="$ggl_LIBOBJS select.$ac_objext"
31373
31374   fi
31375
31376
31377
31378
31379
31380           GNULIB_SELECT=1
31381
31382
31383
31384
31385
31386 $as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h
31387
31388
31389
31390
31391   if test "$ac_cv_header_winsock2_h" = yes; then
31392
31393
31394
31395
31396
31397
31398
31399
31400   ggl_LIBOBJS="$ggl_LIBOBJS send.$ac_objext"
31401
31402   fi
31403
31404
31405
31406
31407
31408           GNULIB_SEND=1
31409
31410
31411
31412
31413
31414 $as_echo "#define GNULIB_TEST_SEND 1" >>confdefs.h
31415
31416
31417
31418
31419   if test "$ac_cv_header_winsock2_h" = yes; then
31420
31421
31422
31423
31424
31425
31426
31427
31428   ggl_LIBOBJS="$ggl_LIBOBJS sendto.$ac_objext"
31429
31430   fi
31431
31432
31433
31434
31435
31436           GNULIB_SENDTO=1
31437
31438
31439
31440
31441
31442 $as_echo "#define GNULIB_TEST_SENDTO 1" >>confdefs.h
31443
31444
31445
31446
31447                       SERVENT_LIB=
31448   gl_saved_libs="$LIBS"
31449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
31450 $as_echo_n "checking for library containing getservbyname... " >&6; }
31451 if ${ac_cv_search_getservbyname+:} false; then :
31452   $as_echo_n "(cached) " >&6
31453 else
31454   ac_func_search_save_LIBS=$LIBS
31455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31456 /* end confdefs.h.  */
31457
31458 /* Override any GCC internal prototype to avoid an error.
31459    Use char because int might match the return type of a GCC
31460    builtin and then its argument prototype would still apply.  */
31461 #ifdef __cplusplus
31462 extern "C"
31463 #endif
31464 char getservbyname ();
31465 int
31466 main ()
31467 {
31468 return getservbyname ();
31469   ;
31470   return 0;
31471 }
31472 _ACEOF
31473 for ac_lib in '' socket network net; do
31474   if test -z "$ac_lib"; then
31475     ac_res="none required"
31476   else
31477     ac_res=-l$ac_lib
31478     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31479   fi
31480   if ac_fn_c_try_link "$LINENO"; then :
31481   ac_cv_search_getservbyname=$ac_res
31482 fi
31483 rm -f core conftest.err conftest.$ac_objext \
31484     conftest$ac_exeext
31485   if ${ac_cv_search_getservbyname+:} false; then :
31486   break
31487 fi
31488 done
31489 if ${ac_cv_search_getservbyname+:} false; then :
31490
31491 else
31492   ac_cv_search_getservbyname=no
31493 fi
31494 rm conftest.$ac_ext
31495 LIBS=$ac_func_search_save_LIBS
31496 fi
31497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
31498 $as_echo "$ac_cv_search_getservbyname" >&6; }
31499 ac_res=$ac_cv_search_getservbyname
31500 if test "$ac_res" != no; then :
31501   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31502   if test "$ac_cv_search_getservbyname" != "none required"; then
31503        SERVENT_LIB="$ac_cv_search_getservbyname"
31504      fi
31505 fi
31506
31507   LIBS="$gl_saved_libs"
31508   if test -z "$SERVENT_LIB"; then
31509     for ac_func in getservbyname
31510 do :
31511   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
31512 if test "x$ac_cv_func_getservbyname" = xyes; then :
31513   cat >>confdefs.h <<_ACEOF
31514 #define HAVE_GETSERVBYNAME 1
31515 _ACEOF
31516
31517 else
31518
31519       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
31520 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
31521 if ${gl_cv_w32_getservbyname+:} false; then :
31522   $as_echo_n "(cached) " >&6
31523 else
31524   gl_cv_w32_getservbyname=no
31525          gl_save_LIBS="$LIBS"
31526          LIBS="$LIBS -lws2_32"
31527          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31528 /* end confdefs.h.  */
31529
31530 #ifdef HAVE_WINSOCK2_H
31531 #include <winsock2.h>
31532 #endif
31533 #include <stddef.h>
31534
31535 int
31536 main ()
31537 {
31538 getservbyname(NULL,NULL);
31539   ;
31540   return 0;
31541 }
31542 _ACEOF
31543 if ac_fn_c_try_link "$LINENO"; then :
31544   gl_cv_w32_getservbyname=yes
31545 fi
31546 rm -f core conftest.err conftest.$ac_objext \
31547     conftest$ac_exeext conftest.$ac_ext
31548          LIBS="$gl_save_LIBS"
31549
31550 fi
31551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
31552 $as_echo "$gl_cv_w32_getservbyname" >&6; }
31553       if test "$gl_cv_w32_getservbyname" = "yes"; then
31554         SERVENT_LIB="-lws2_32"
31555       fi
31556
31557 fi
31558 done
31559
31560   fi
31561
31562
31563
31564
31565      if test $ac_cv_func_setenv = no; then
31566     HAVE_SETENV=0
31567   else
31568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
31569 $as_echo_n "checking whether setenv validates arguments... " >&6; }
31570 if ${gl_cv_func_setenv_works+:} false; then :
31571   $as_echo_n "(cached) " >&6
31572 else
31573   if test "$cross_compiling" = yes; then :
31574   case "$host_os" in
31575                  # Guess yes on glibc systems.
31576          *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
31577                  # If we don't know, assume the worst.
31578          *)      gl_cv_func_setenv_works="guessing no" ;;
31579        esac
31580
31581 else
31582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31583 /* end confdefs.h.  */
31584
31585        #include <stdlib.h>
31586        #include <errno.h>
31587        #include <string.h>
31588
31589 int
31590 main ()
31591 {
31592
31593        int result = 0;
31594        {
31595          if (setenv ("", "", 0) != -1)
31596            result |= 1;
31597          else if (errno != EINVAL)
31598            result |= 2;
31599        }
31600        {
31601          if (setenv ("a", "=", 1) != 0)
31602            result |= 4;
31603          else if (strcmp (getenv ("a"), "=") != 0)
31604            result |= 8;
31605        }
31606        return result;
31607
31608   ;
31609   return 0;
31610 }
31611 _ACEOF
31612 if ac_fn_c_try_run "$LINENO"; then :
31613   gl_cv_func_setenv_works=yes
31614 else
31615   gl_cv_func_setenv_works=no
31616 fi
31617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31618   conftest.$ac_objext conftest.beam conftest.$ac_ext
31619 fi
31620
31621 fi
31622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
31623 $as_echo "$gl_cv_func_setenv_works" >&6; }
31624     case "$gl_cv_func_setenv_works" in
31625       *yes) ;;
31626       *)
31627         REPLACE_SETENV=1
31628         ;;
31629     esac
31630   fi
31631
31632   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
31633
31634
31635
31636
31637
31638
31639
31640
31641   ggl_LIBOBJS="$ggl_LIBOBJS setenv.$ac_objext"
31642
31643   fi
31644
31645
31646
31647
31648
31649           GNULIB_SETENV=1
31650
31651
31652
31653
31654
31655 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
31656
31657
31658
31659
31660   if test "$ac_cv_header_winsock2_h" = yes; then
31661
31662
31663
31664
31665
31666
31667
31668
31669   ggl_LIBOBJS="$ggl_LIBOBJS setsockopt.$ac_objext"
31670
31671   fi
31672
31673
31674
31675
31676
31677           GNULIB_SETSOCKOPT=1
31678
31679
31680
31681
31682
31683 $as_echo "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h
31684
31685
31686
31687
31688   if test "$ac_cv_header_winsock2_h" = yes; then
31689
31690
31691
31692
31693
31694
31695
31696
31697   ggl_LIBOBJS="$ggl_LIBOBJS shutdown.$ac_objext"
31698
31699   fi
31700
31701
31702
31703
31704
31705           GNULIB_SHUTDOWN=1
31706
31707
31708
31709
31710
31711 $as_echo "#define GNULIB_TEST_SHUTDOWN 1" >>confdefs.h
31712
31713
31714
31715
31716
31717
31718
31719
31720
31721
31722
31723
31724
31725
31726      if test $gl_cv_have_include_next = yes; then
31727        gl_cv_next_signal_h='<'signal.h'>'
31728      else
31729        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
31730 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
31731 if ${gl_cv_next_signal_h+:} false; then :
31732   $as_echo_n "(cached) " >&6
31733 else
31734
31735
31736
31737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31738 /* end confdefs.h.  */
31739 #include <signal.h>
31740 _ACEOF
31741                 case "$host_os" in
31742     aix*) gl_absname_cpp="$ac_cpp -C" ;;
31743     *)    gl_absname_cpp="$ac_cpp" ;;
31744   esac
31745
31746   case "$host_os" in
31747     mingw*)
31748                                           gl_dirsep_regex='[/\\]'
31749       ;;
31750     *)
31751       gl_dirsep_regex='\/'
31752       ;;
31753   esac
31754       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31755   gl_header_literal_regex=`echo 'signal.h' \
31756                            | sed -e "$gl_make_literal_regex_sed"`
31757   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31758       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31759       s|^/[^/]|//&|
31760       p
31761       q
31762     }'
31763
31764         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31765   sed -n "$gl_absolute_header_sed"`
31766
31767            gl_header=$gl_cv_absolute_signal_h
31768            gl_cv_next_signal_h='"'$gl_header'"'
31769
31770
31771 fi
31772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
31773 $as_echo "$gl_cv_next_signal_h" >&6; }
31774      fi
31775      NEXT_SIGNAL_H=$gl_cv_next_signal_h
31776
31777      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31778        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31779        gl_next_as_first_directive='<'signal.h'>'
31780      else
31781        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31782        gl_next_as_first_directive=$gl_cv_next_signal_h
31783      fi
31784      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
31785
31786
31787
31788
31789
31790 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
31791 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
31792   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
31793 #include <signal.h>
31794
31795 "
31796 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
31797
31798 else
31799   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
31800 fi
31801
31802
31803
31804
31805
31806
31807
31808   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
31809 #include <signal.h>
31810
31811 "
31812 if test "x$ac_cv_type_sighandler_t" = xyes; then :
31813
31814 else
31815   HAVE_SIGHANDLER_T=0
31816 fi
31817
31818
31819
31820     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
31821     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
31823 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31824 if eval \${$as_gl_Symbol+:} false; then :
31825   $as_echo_n "(cached) " >&6
31826 else
31827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31828 /* end confdefs.h.  */
31829 #include <signal.h>
31830
31831 int
31832 main ()
31833 {
31834 #undef $gl_func
31835   (void) $gl_func;
31836   ;
31837   return 0;
31838 }
31839 _ACEOF
31840 if ac_fn_c_try_compile "$LINENO"; then :
31841   eval "$as_gl_Symbol=yes"
31842 else
31843   eval "$as_gl_Symbol=no"
31844 fi
31845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31846 fi
31847 eval ac_res=\$$as_gl_Symbol
31848                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31849 $as_echo "$ac_res" >&6; }
31850     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
31851   cat >>confdefs.h <<_ACEOF
31852 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31853 _ACEOF
31854
31855                      eval ac_cv_have_decl_$gl_func=yes
31856 fi
31857       done
31858
31859
31860
31861   for ac_header in stdint.h
31862 do :
31863   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
31864 if test "x$ac_cv_header_stdint_h" = xyes; then :
31865   cat >>confdefs.h <<_ACEOF
31866 #define HAVE_STDINT_H 1
31867 _ACEOF
31868
31869 fi
31870
31871 done
31872
31873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
31874 $as_echo_n "checking for SIZE_MAX... " >&6; }
31875 if ${gl_cv_size_max+:} false; then :
31876   $as_echo_n "(cached) " >&6
31877 else
31878
31879     gl_cv_size_max=
31880     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31881 /* end confdefs.h.  */
31882
31883 #include <limits.h>
31884 #if HAVE_STDINT_H
31885 #include <stdint.h>
31886 #endif
31887 #ifdef SIZE_MAX
31888 Found it
31889 #endif
31890
31891 _ACEOF
31892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31893   $EGREP "Found it" >/dev/null 2>&1; then :
31894   gl_cv_size_max=yes
31895 fi
31896 rm -f conftest*
31897
31898     if test -z "$gl_cv_size_max"; then
31899                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
31900 #include <limits.h>"; then :
31901
31902 else
31903   size_t_bits_minus_1=
31904 fi
31905
31906       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
31907
31908 else
31909   fits_in_uint=
31910 fi
31911
31912       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
31913         if test $fits_in_uint = 1; then
31914                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31915 /* end confdefs.h.  */
31916 #include <stddef.h>
31917             extern size_t foo;
31918             extern unsigned long foo;
31919
31920 int
31921 main ()
31922 {
31923
31924   ;
31925   return 0;
31926 }
31927 _ACEOF
31928 if ac_fn_c_try_compile "$LINENO"; then :
31929   fits_in_uint=0
31930 fi
31931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31932         fi
31933                                 if test $fits_in_uint = 1; then
31934           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
31935         else
31936           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
31937         fi
31938       else
31939                 gl_cv_size_max='((size_t)~(size_t)0)'
31940       fi
31941     fi
31942
31943 fi
31944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
31945 $as_echo "$gl_cv_size_max" >&6; }
31946   if test "$gl_cv_size_max" != yes; then
31947
31948 cat >>confdefs.h <<_ACEOF
31949 #define SIZE_MAX $gl_cv_size_max
31950 _ACEOF
31951
31952   fi
31953
31954
31955
31956
31957   gl_cv_func_snprintf_usable=no
31958   for ac_func in snprintf
31959 do :
31960   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
31961 if test "x$ac_cv_func_snprintf" = xyes; then :
31962   cat >>confdefs.h <<_ACEOF
31963 #define HAVE_SNPRINTF 1
31964 _ACEOF
31965
31966 fi
31967 done
31968
31969   if test $ac_cv_func_snprintf = yes; then
31970
31971
31972
31973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
31974 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
31975 if ${gl_cv_func_snprintf_size1+:} false; then :
31976   $as_echo_n "(cached) " >&6
31977 else
31978
31979       if test "$cross_compiling" = yes; then :
31980   gl_cv_func_snprintf_size1="guessing yes"
31981 else
31982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31983 /* end confdefs.h.  */
31984
31985 #include <stdio.h>
31986 #if HAVE_SNPRINTF
31987 # define my_snprintf snprintf
31988 #else
31989 # include <stdarg.h>
31990 static int my_snprintf (char *buf, int size, const char *format, ...)
31991 {
31992   va_list args;
31993   int ret;
31994   va_start (args, format);
31995   ret = vsnprintf (buf, size, format, args);
31996   va_end (args);
31997   return ret;
31998 }
31999 #endif
32000 int main()
32001 {
32002   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
32003   my_snprintf (buf, 1, "%d", 12345);
32004   return buf[1] != 'E';
32005 }
32006 _ACEOF
32007 if ac_fn_c_try_run "$LINENO"; then :
32008   gl_cv_func_snprintf_size1=yes
32009 else
32010   gl_cv_func_snprintf_size1=no
32011 fi
32012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32013   conftest.$ac_objext conftest.beam conftest.$ac_ext
32014 fi
32015
32016
32017 fi
32018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
32019 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
32020
32021     case "$gl_cv_func_snprintf_size1" in
32022       *yes)
32023
32024         case "$gl_cv_func_snprintf_retval_c99" in
32025           *yes)
32026
32027
32028      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
32029 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
32030 if ${gl_cv_func_printf_positions+:} false; then :
32031   $as_echo_n "(cached) " >&6
32032 else
32033
32034       if test "$cross_compiling" = yes; then :
32035
32036          case "$host_os" in
32037            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
32038                          gl_cv_func_printf_positions="guessing no";;
32039            beos*)        gl_cv_func_printf_positions="guessing no";;
32040            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
32041            *)            gl_cv_func_printf_positions="guessing yes";;
32042          esac
32043
32044 else
32045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32046 /* end confdefs.h.  */
32047
32048 #include <stdio.h>
32049 #include <string.h>
32050 /* The string "%2$d %1$d", with dollar characters protected from the shell's
32051    dollar expansion (possibly an autoconf bug).  */
32052 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
32053 static char buf[100];
32054 int main ()
32055 {
32056   sprintf (buf, format, 33, 55);
32057   return (strcmp (buf, "55 33") != 0);
32058 }
32059 _ACEOF
32060 if ac_fn_c_try_run "$LINENO"; then :
32061   gl_cv_func_printf_positions=yes
32062 else
32063   gl_cv_func_printf_positions=no
32064 fi
32065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32066   conftest.$ac_objext conftest.beam conftest.$ac_ext
32067 fi
32068
32069
32070 fi
32071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
32072 $as_echo "$gl_cv_func_printf_positions" >&6; }
32073
32074             case "$gl_cv_func_printf_positions" in
32075               *yes)
32076                 gl_cv_func_snprintf_usable=yes
32077                 ;;
32078             esac
32079             ;;
32080         esac
32081         ;;
32082     esac
32083   fi
32084   if test $gl_cv_func_snprintf_usable = no; then
32085
32086
32087
32088
32089
32090
32091
32092
32093
32094
32095   ggl_LIBOBJS="$ggl_LIBOBJS snprintf.$ac_objext"
32096
32097   if test $ac_cv_func_snprintf = yes; then
32098     REPLACE_SNPRINTF=1
32099   fi
32100   :
32101
32102   fi
32103
32104   :
32105
32106
32107
32108
32109
32110   if test $ac_cv_have_decl_snprintf = no; then
32111     HAVE_DECL_SNPRINTF=0
32112   fi
32113
32114
32115
32116
32117
32118
32119           GNULIB_SNPRINTF=1
32120
32121
32122
32123
32124
32125 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
32126
32127
32128
32129
32130
32131 cat >>confdefs.h <<_ACEOF
32132 #define GNULIB_SNPRINTF 1
32133 _ACEOF
32134
32135
32136
32137   if test "$ac_cv_header_winsock2_h" = yes; then
32138
32139
32140
32141
32142
32143
32144
32145
32146   ggl_LIBOBJS="$ggl_LIBOBJS socket.$ac_objext"
32147
32148   fi
32149   # When this module is used, sockets may actually occur as file descriptors,
32150   # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
32151
32152
32153
32154   if test "$ac_cv_header_winsock2_h" = yes; then
32155     UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
32156     SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
32157   fi
32158
32159
32160
32161
32162
32163           GNULIB_SOCKET=1
32164
32165
32166
32167
32168
32169 $as_echo "#define GNULIB_TEST_SOCKET 1" >>confdefs.h
32170
32171
32172
32173
32174
32175
32176
32177
32178   :
32179
32180
32181
32182
32183
32184   if test $ac_cv_header_sys_socket_h != yes; then
32185                     for ac_header in winsock2.h
32186 do :
32187   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
32188 if test "x$ac_cv_header_winsock2_h" = xyes; then :
32189   cat >>confdefs.h <<_ACEOF
32190 #define HAVE_WINSOCK2_H 1
32191 _ACEOF
32192
32193 fi
32194
32195 done
32196
32197   fi
32198   if test "$ac_cv_header_winsock2_h" = yes; then
32199     HAVE_WINSOCK2_H=1
32200     UNISTD_H_HAVE_WINSOCK2_H=1
32201     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
32202   else
32203     HAVE_WINSOCK2_H=0
32204   fi
32205
32206    LIBSOCKET=
32207   if test $HAVE_WINSOCK2_H = 1; then
32208         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
32209 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
32210 if ${gl_cv_func_wsastartup+:} false; then :
32211   $as_echo_n "(cached) " >&6
32212 else
32213
32214       gl_save_LIBS="$LIBS"
32215       LIBS="$LIBS -lws2_32"
32216       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32217 /* end confdefs.h.  */
32218
32219 #ifdef HAVE_WINSOCK2_H
32220 # include <winsock2.h>
32221 #endif
32222 int
32223 main ()
32224 {
32225
32226           WORD wVersionRequested = MAKEWORD(1, 1);
32227           WSADATA wsaData;
32228           int err = WSAStartup(wVersionRequested, &wsaData);
32229           WSACleanup ();
32230   ;
32231   return 0;
32232 }
32233 _ACEOF
32234 if ac_fn_c_try_link "$LINENO"; then :
32235   gl_cv_func_wsastartup=yes
32236 else
32237   gl_cv_func_wsastartup=no
32238 fi
32239 rm -f core conftest.err conftest.$ac_objext \
32240     conftest$ac_exeext conftest.$ac_ext
32241       LIBS="$gl_save_LIBS"
32242
32243 fi
32244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
32245 $as_echo "$gl_cv_func_wsastartup" >&6; }
32246     if test "$gl_cv_func_wsastartup" = "yes"; then
32247
32248 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
32249
32250       LIBSOCKET='-lws2_32'
32251     fi
32252   else
32253                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
32254 $as_echo_n "checking for library containing setsockopt... " >&6; }
32255 if ${gl_cv_lib_socket+:} false; then :
32256   $as_echo_n "(cached) " >&6
32257 else
32258
32259       gl_cv_lib_socket=
32260       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32261 /* end confdefs.h.  */
32262 extern
32263 #ifdef __cplusplus
32264 "C"
32265 #endif
32266 char setsockopt();
32267 int
32268 main ()
32269 {
32270 setsockopt();
32271   ;
32272   return 0;
32273 }
32274 _ACEOF
32275 if ac_fn_c_try_link "$LINENO"; then :
32276
32277 else
32278   gl_save_LIBS="$LIBS"
32279          LIBS="$gl_save_LIBS -lsocket"
32280          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32281 /* end confdefs.h.  */
32282 extern
32283 #ifdef __cplusplus
32284 "C"
32285 #endif
32286 char setsockopt();
32287 int
32288 main ()
32289 {
32290 setsockopt();
32291   ;
32292   return 0;
32293 }
32294 _ACEOF
32295 if ac_fn_c_try_link "$LINENO"; then :
32296   gl_cv_lib_socket="-lsocket"
32297 fi
32298 rm -f core conftest.err conftest.$ac_objext \
32299     conftest$ac_exeext conftest.$ac_ext
32300          if test -z "$gl_cv_lib_socket"; then
32301            LIBS="$gl_save_LIBS -lnetwork"
32302            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32303 /* end confdefs.h.  */
32304 extern
32305 #ifdef __cplusplus
32306 "C"
32307 #endif
32308 char setsockopt();
32309 int
32310 main ()
32311 {
32312 setsockopt();
32313   ;
32314   return 0;
32315 }
32316 _ACEOF
32317 if ac_fn_c_try_link "$LINENO"; then :
32318   gl_cv_lib_socket="-lnetwork"
32319 fi
32320 rm -f core conftest.err conftest.$ac_objext \
32321     conftest$ac_exeext conftest.$ac_ext
32322            if test -z "$gl_cv_lib_socket"; then
32323              LIBS="$gl_save_LIBS -lnet"
32324              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32325 /* end confdefs.h.  */
32326 extern
32327 #ifdef __cplusplus
32328 "C"
32329 #endif
32330 char setsockopt();
32331 int
32332 main ()
32333 {
32334 setsockopt();
32335   ;
32336   return 0;
32337 }
32338 _ACEOF
32339 if ac_fn_c_try_link "$LINENO"; then :
32340   gl_cv_lib_socket="-lnet"
32341 fi
32342 rm -f core conftest.err conftest.$ac_objext \
32343     conftest$ac_exeext conftest.$ac_ext
32344            fi
32345          fi
32346          LIBS="$gl_save_LIBS"
32347
32348 fi
32349 rm -f core conftest.err conftest.$ac_objext \
32350     conftest$ac_exeext conftest.$ac_ext
32351       if test -z "$gl_cv_lib_socket"; then
32352         gl_cv_lib_socket="none needed"
32353       fi
32354
32355 fi
32356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
32357 $as_echo "$gl_cv_lib_socket" >&6; }
32358     if test "$gl_cv_lib_socket" != "none needed"; then
32359       LIBSOCKET="$gl_cv_lib_socket"
32360     fi
32361   fi
32362
32363
32364
32365
32366
32367
32368   :
32369
32370
32371      ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
32372 /* <sys/types.h> is not needed according to POSIX, but the
32373    <sys/socket.h> in i386-unknown-freebsd4.10 and
32374    powerpc-apple-darwin5.5 required it. */
32375 #include <sys/types.h>
32376 #if HAVE_SYS_SOCKET_H
32377 # include <sys/socket.h>
32378 #elif HAVE_WS2TCPIP_H
32379 # include <ws2tcpip.h>
32380 #endif
32381
32382 "
32383 if test "x$ac_cv_type_socklen_t" = xyes; then :
32384
32385 else
32386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
32387 $as_echo_n "checking for socklen_t equivalent... " >&6; }
32388       if ${gl_cv_socklen_t_equiv+:} false; then :
32389   $as_echo_n "(cached) " >&6
32390 else
32391   # Systems have either "struct sockaddr *" or
32392          # "void *" as the second argument to getpeername
32393          gl_cv_socklen_t_equiv=
32394          for arg2 in "struct sockaddr" void; do
32395            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
32396              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32397 /* end confdefs.h.  */
32398 #include <sys/types.h>
32399                    #include <sys/socket.h>
32400
32401                    int getpeername (int, $arg2 *, $t *);
32402 int
32403 main ()
32404 {
32405 $t len;
32406                   getpeername (0, 0, &len);
32407   ;
32408   return 0;
32409 }
32410 _ACEOF
32411 if ac_fn_c_try_compile "$LINENO"; then :
32412   gl_cv_socklen_t_equiv="$t"
32413 fi
32414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32415              test "$gl_cv_socklen_t_equiv" != "" && break
32416            done
32417            test "$gl_cv_socklen_t_equiv" != "" && break
32418          done
32419
32420 fi
32421
32422       if test "$gl_cv_socklen_t_equiv" = ""; then
32423         as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
32424       fi
32425       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
32426 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
32427
32428 cat >>confdefs.h <<_ACEOF
32429 #define socklen_t $gl_cv_socklen_t_equiv
32430 _ACEOF
32431
32432 fi
32433
32434
32435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
32436 $as_echo_n "checking for ssize_t... " >&6; }
32437 if ${gt_cv_ssize_t+:} false; then :
32438   $as_echo_n "(cached) " >&6
32439 else
32440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32441 /* end confdefs.h.  */
32442 #include <sys/types.h>
32443 int
32444 main ()
32445 {
32446 int x = sizeof (ssize_t *) + sizeof (ssize_t);
32447             return !x;
32448   ;
32449   return 0;
32450 }
32451 _ACEOF
32452 if ac_fn_c_try_compile "$LINENO"; then :
32453   gt_cv_ssize_t=yes
32454 else
32455   gt_cv_ssize_t=no
32456 fi
32457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32458 fi
32459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
32460 $as_echo "$gt_cv_ssize_t" >&6; }
32461   if test $gt_cv_ssize_t = no; then
32462
32463 $as_echo "#define ssize_t int" >>confdefs.h
32464
32465   fi
32466
32467
32468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
32469 $as_echo_n "checking for working stdalign.h... " >&6; }
32470 if ${gl_cv_header_working_stdalign_h+:} false; then :
32471   $as_echo_n "(cached) " >&6
32472 else
32473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32474 /* end confdefs.h.  */
32475 #include <stdalign.h>
32476             #include <stddef.h>
32477
32478             /* Test that alignof yields a result consistent with offsetof.
32479                This catches GCC bug 52023
32480                <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
32481             #ifdef __cplusplus
32482                template <class t> struct alignof_helper { char a; t b; };
32483             # define ao(type) offsetof (alignof_helper<type>, b)
32484             #else
32485             # define ao(type) offsetof (struct { char a; type b; }, b)
32486             #endif
32487             char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
32488             char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
32489             char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
32490
32491             /* Test _Alignas only on platforms where gnulib can help.  */
32492             #if \
32493                 ((defined __cplusplus && 201103 <= __cplusplus) \
32494                  || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
32495                  || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
32496               struct alignas_test { char c; char alignas (8) alignas_8; };
32497               char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
32498                                 ? 1 : -1];
32499             #endif
32500
32501 int
32502 main ()
32503 {
32504
32505   ;
32506   return 0;
32507 }
32508 _ACEOF
32509 if ac_fn_c_try_compile "$LINENO"; then :
32510   gl_cv_header_working_stdalign_h=yes
32511 else
32512   gl_cv_header_working_stdalign_h=no
32513 fi
32514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32515 fi
32516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
32517 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
32518
32519   if test $gl_cv_header_working_stdalign_h = yes; then
32520     STDALIGN_H=''
32521   else
32522     STDALIGN_H='stdalign.h'
32523   fi
32524
32525
32526    if test -n "$STDALIGN_H"; then
32527   GL_GENERATE_STDALIGN_H_TRUE=
32528   GL_GENERATE_STDALIGN_H_FALSE='#'
32529 else
32530   GL_GENERATE_STDALIGN_H_TRUE='#'
32531   GL_GENERATE_STDALIGN_H_FALSE=
32532 fi
32533
32534
32535
32536
32537
32538   # Define two additional variables used in the Makefile substitution.
32539
32540   if test "$ac_cv_header_stdbool_h" = yes; then
32541     STDBOOL_H=''
32542   else
32543     STDBOOL_H='stdbool.h'
32544   fi
32545
32546    if test -n "$STDBOOL_H"; then
32547   GL_GENERATE_STDBOOL_H_TRUE=
32548   GL_GENERATE_STDBOOL_H_FALSE='#'
32549 else
32550   GL_GENERATE_STDBOOL_H_TRUE='#'
32551   GL_GENERATE_STDBOOL_H_FALSE=
32552 fi
32553
32554
32555   if test "$ac_cv_type__Bool" = yes; then
32556     HAVE__BOOL=1
32557   else
32558     HAVE__BOOL=0
32559   fi
32560
32561
32562
32563
32564
32565   STDDEF_H=
32566   if test $gt_cv_c_wchar_t = no; then
32567     HAVE_WCHAR_T=0
32568     STDDEF_H=stddef.h
32569   fi
32570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
32571 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
32572 if ${gl_cv_decl_null_works+:} false; then :
32573   $as_echo_n "(cached) " >&6
32574 else
32575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32576 /* end confdefs.h.  */
32577 #include <stddef.h>
32578       int test[2 * (sizeof NULL == sizeof (void *)) -1];
32579
32580 int
32581 main ()
32582 {
32583
32584   ;
32585   return 0;
32586 }
32587 _ACEOF
32588 if ac_fn_c_try_compile "$LINENO"; then :
32589   gl_cv_decl_null_works=yes
32590 else
32591   gl_cv_decl_null_works=no
32592 fi
32593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32594 fi
32595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
32596 $as_echo "$gl_cv_decl_null_works" >&6; }
32597   if test $gl_cv_decl_null_works = no; then
32598     REPLACE_NULL=1
32599     STDDEF_H=stddef.h
32600   fi
32601
32602    if test -n "$STDDEF_H"; then
32603   GL_GENERATE_STDDEF_H_TRUE=
32604   GL_GENERATE_STDDEF_H_FALSE='#'
32605 else
32606   GL_GENERATE_STDDEF_H_TRUE='#'
32607   GL_GENERATE_STDDEF_H_FALSE=
32608 fi
32609
32610   if test -n "$STDDEF_H"; then
32611
32612
32613
32614
32615
32616
32617
32618
32619      if test $gl_cv_have_include_next = yes; then
32620        gl_cv_next_stddef_h='<'stddef.h'>'
32621      else
32622        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
32623 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
32624 if ${gl_cv_next_stddef_h+:} false; then :
32625   $as_echo_n "(cached) " >&6
32626 else
32627
32628
32629
32630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32631 /* end confdefs.h.  */
32632 #include <stddef.h>
32633 _ACEOF
32634                 case "$host_os" in
32635     aix*) gl_absname_cpp="$ac_cpp -C" ;;
32636     *)    gl_absname_cpp="$ac_cpp" ;;
32637   esac
32638
32639   case "$host_os" in
32640     mingw*)
32641                                           gl_dirsep_regex='[/\\]'
32642       ;;
32643     *)
32644       gl_dirsep_regex='\/'
32645       ;;
32646   esac
32647       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32648   gl_header_literal_regex=`echo 'stddef.h' \
32649                            | sed -e "$gl_make_literal_regex_sed"`
32650   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32651       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32652       s|^/[^/]|//&|
32653       p
32654       q
32655     }'
32656
32657         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32658   sed -n "$gl_absolute_header_sed"`
32659
32660            gl_header=$gl_cv_absolute_stddef_h
32661            gl_cv_next_stddef_h='"'$gl_header'"'
32662
32663
32664 fi
32665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
32666 $as_echo "$gl_cv_next_stddef_h" >&6; }
32667      fi
32668      NEXT_STDDEF_H=$gl_cv_next_stddef_h
32669
32670      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32671        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32672        gl_next_as_first_directive='<'stddef.h'>'
32673      else
32674        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32675        gl_next_as_first_directive=$gl_cv_next_stddef_h
32676      fi
32677      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
32678
32679
32680
32681
32682   fi
32683
32684
32685
32686
32687
32688
32689
32690
32691
32692
32693
32694
32695      if test $gl_cv_have_include_next = yes; then
32696        gl_cv_next_stdio_h='<'stdio.h'>'
32697      else
32698        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
32699 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
32700 if ${gl_cv_next_stdio_h+:} false; then :
32701   $as_echo_n "(cached) " >&6
32702 else
32703
32704
32705
32706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32707 /* end confdefs.h.  */
32708 #include <stdio.h>
32709 _ACEOF
32710                 case "$host_os" in
32711     aix*) gl_absname_cpp="$ac_cpp -C" ;;
32712     *)    gl_absname_cpp="$ac_cpp" ;;
32713   esac
32714
32715   case "$host_os" in
32716     mingw*)
32717                                           gl_dirsep_regex='[/\\]'
32718       ;;
32719     *)
32720       gl_dirsep_regex='\/'
32721       ;;
32722   esac
32723       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32724   gl_header_literal_regex=`echo 'stdio.h' \
32725                            | sed -e "$gl_make_literal_regex_sed"`
32726   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32727       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32728       s|^/[^/]|//&|
32729       p
32730       q
32731     }'
32732
32733         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32734   sed -n "$gl_absolute_header_sed"`
32735
32736            gl_header=$gl_cv_absolute_stdio_h
32737            gl_cv_next_stdio_h='"'$gl_header'"'
32738
32739
32740 fi
32741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
32742 $as_echo "$gl_cv_next_stdio_h" >&6; }
32743      fi
32744      NEXT_STDIO_H=$gl_cv_next_stdio_h
32745
32746      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32747        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32748        gl_next_as_first_directive='<'stdio.h'>'
32749      else
32750        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32751        gl_next_as_first_directive=$gl_cv_next_stdio_h
32752      fi
32753      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
32754
32755
32756
32757
32758
32759       GNULIB_FSCANF=1
32760
32761
32762 cat >>confdefs.h <<_ACEOF
32763 #define GNULIB_FSCANF 1
32764 _ACEOF
32765
32766
32767   GNULIB_SCANF=1
32768
32769
32770 cat >>confdefs.h <<_ACEOF
32771 #define GNULIB_SCANF 1
32772 _ACEOF
32773
32774
32775   GNULIB_FGETC=1
32776   GNULIB_GETC=1
32777   GNULIB_GETCHAR=1
32778   GNULIB_FGETS=1
32779   GNULIB_FREAD=1
32780
32781
32782       GNULIB_FPRINTF=1
32783   GNULIB_PRINTF=1
32784   GNULIB_VFPRINTF=1
32785   GNULIB_VPRINTF=1
32786   GNULIB_FPUTC=1
32787   GNULIB_PUTC=1
32788   GNULIB_PUTCHAR=1
32789   GNULIB_FPUTS=1
32790   GNULIB_PUTS=1
32791   GNULIB_FWRITE=1
32792
32793
32794
32795
32796     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
32797     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
32799 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32800 if eval \${$as_gl_Symbol+:} false; then :
32801   $as_echo_n "(cached) " >&6
32802 else
32803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32804 /* end confdefs.h.  */
32805 #include <stdio.h>
32806
32807 int
32808 main ()
32809 {
32810 #undef $gl_func
32811   (void) $gl_func;
32812   ;
32813   return 0;
32814 }
32815 _ACEOF
32816 if ac_fn_c_try_compile "$LINENO"; then :
32817   eval "$as_gl_Symbol=yes"
32818 else
32819   eval "$as_gl_Symbol=no"
32820 fi
32821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32822 fi
32823 eval ac_res=\$$as_gl_Symbol
32824                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32825 $as_echo "$ac_res" >&6; }
32826     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
32827   cat >>confdefs.h <<_ACEOF
32828 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32829 _ACEOF
32830
32831                      eval ac_cv_have_decl_$gl_func=yes
32832 fi
32833       done
32834
32835
32836
32837
32838
32839
32840
32841
32842
32843
32844
32845
32846      if test $gl_cv_have_include_next = yes; then
32847        gl_cv_next_stdlib_h='<'stdlib.h'>'
32848      else
32849        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
32850 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
32851 if ${gl_cv_next_stdlib_h+:} false; then :
32852   $as_echo_n "(cached) " >&6
32853 else
32854
32855
32856
32857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32858 /* end confdefs.h.  */
32859 #include <stdlib.h>
32860 _ACEOF
32861                 case "$host_os" in
32862     aix*) gl_absname_cpp="$ac_cpp -C" ;;
32863     *)    gl_absname_cpp="$ac_cpp" ;;
32864   esac
32865
32866   case "$host_os" in
32867     mingw*)
32868                                           gl_dirsep_regex='[/\\]'
32869       ;;
32870     *)
32871       gl_dirsep_regex='\/'
32872       ;;
32873   esac
32874       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32875   gl_header_literal_regex=`echo 'stdlib.h' \
32876                            | sed -e "$gl_make_literal_regex_sed"`
32877   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32878       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32879       s|^/[^/]|//&|
32880       p
32881       q
32882     }'
32883
32884         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32885   sed -n "$gl_absolute_header_sed"`
32886
32887            gl_header=$gl_cv_absolute_stdlib_h
32888            gl_cv_next_stdlib_h='"'$gl_header'"'
32889
32890
32891 fi
32892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
32893 $as_echo "$gl_cv_next_stdlib_h" >&6; }
32894      fi
32895      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
32896
32897      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32898        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32899        gl_next_as_first_directive='<'stdlib.h'>'
32900      else
32901        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32902        gl_next_as_first_directive=$gl_cv_next_stdlib_h
32903      fi
32904      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
32905
32906
32907
32908
32909
32910
32911     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
32912     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
32914 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32915 if eval \${$as_gl_Symbol+:} false; then :
32916   $as_echo_n "(cached) " >&6
32917 else
32918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32919 /* end confdefs.h.  */
32920 #include <stdlib.h>
32921 #if HAVE_SYS_LOADAVG_H
32922 # include <sys/loadavg.h>
32923 #endif
32924 #if HAVE_RANDOM_H
32925 # include <random.h>
32926 #endif
32927
32928 int
32929 main ()
32930 {
32931 #undef $gl_func
32932   (void) $gl_func;
32933   ;
32934   return 0;
32935 }
32936 _ACEOF
32937 if ac_fn_c_try_compile "$LINENO"; then :
32938   eval "$as_gl_Symbol=yes"
32939 else
32940   eval "$as_gl_Symbol=no"
32941 fi
32942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32943 fi
32944 eval ac_res=\$$as_gl_Symbol
32945                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32946 $as_echo "$ac_res" >&6; }
32947     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
32948   cat >>confdefs.h <<_ACEOF
32949 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32950 _ACEOF
32951
32952                      eval ac_cv_have_decl_$gl_func=yes
32953 fi
32954       done
32955
32956
32957
32958
32959
32960
32961   :
32962
32963
32964
32965
32966
32967   if test $ac_cv_func_strdup = yes; then
32968     if test $gl_cv_func_malloc_posix != yes; then
32969       REPLACE_STRDUP=1
32970     fi
32971   fi
32972
32973   :
32974
32975
32976
32977
32978
32979   if test $ac_cv_have_decl_strdup = no; then
32980     HAVE_DECL_STRDUP=0
32981   fi
32982
32983   if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
32984
32985
32986
32987
32988
32989
32990
32991
32992   ggl_LIBOBJS="$ggl_LIBOBJS strdup.$ac_objext"
32993
32994     :
32995   fi
32996
32997
32998
32999
33000
33001           GNULIB_STRDUP=1
33002
33003
33004
33005
33006
33007 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
33008
33009
33010
33011
33012
33013
33014
33015
33016   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
33017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
33018 $as_echo_n "checking for working strerror function... " >&6; }
33019 if ${gl_cv_func_working_strerror+:} false; then :
33020   $as_echo_n "(cached) " >&6
33021 else
33022   if test "$cross_compiling" = yes; then :
33023   case "$host_os" in
33024                    # Guess yes on glibc systems.
33025            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
33026                    # If we don't know, assume the worst.
33027            *)      gl_cv_func_working_strerror="guessing no" ;;
33028          esac
33029
33030 else
33031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33032 /* end confdefs.h.  */
33033 #include <string.h>
33034
33035 int
33036 main ()
33037 {
33038 if (!*strerror (-2)) return 1;
33039   ;
33040   return 0;
33041 }
33042 _ACEOF
33043 if ac_fn_c_try_run "$LINENO"; then :
33044   gl_cv_func_working_strerror=yes
33045 else
33046   gl_cv_func_working_strerror=no
33047 fi
33048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33049   conftest.$ac_objext conftest.beam conftest.$ac_ext
33050 fi
33051
33052
33053 fi
33054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
33055 $as_echo "$gl_cv_func_working_strerror" >&6; }
33056     case "$gl_cv_func_working_strerror" in
33057       *yes) ;;
33058       *)
33059                         REPLACE_STRERROR=1
33060         ;;
33061     esac
33062
33063   else
33064             REPLACE_STRERROR=1
33065   fi
33066
33067   if test $REPLACE_STRERROR = 1; then
33068
33069
33070
33071
33072
33073
33074
33075
33076   ggl_LIBOBJS="$ggl_LIBOBJS strerror.$ac_objext"
33077
33078   fi
33079
33080
33081 cat >>confdefs.h <<_ACEOF
33082 #define GNULIB_STRERROR 1
33083 _ACEOF
33084
33085
33086
33087
33088
33089
33090
33091           GNULIB_STRERROR=1
33092
33093
33094
33095
33096
33097 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
33098
33099
33100
33101
33102
33103   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
33104
33105
33106
33107
33108
33109
33110
33111
33112   ggl_LIBOBJS="$ggl_LIBOBJS strerror-override.$ac_objext"
33113
33114
33115
33116
33117
33118   :
33119
33120
33121
33122
33123
33124   if test $ac_cv_header_sys_socket_h != yes; then
33125                     for ac_header in winsock2.h
33126 do :
33127   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
33128 if test "x$ac_cv_header_winsock2_h" = xyes; then :
33129   cat >>confdefs.h <<_ACEOF
33130 #define HAVE_WINSOCK2_H 1
33131 _ACEOF
33132
33133 fi
33134
33135 done
33136
33137   fi
33138   if test "$ac_cv_header_winsock2_h" = yes; then
33139     HAVE_WINSOCK2_H=1
33140     UNISTD_H_HAVE_WINSOCK2_H=1
33141     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
33142   else
33143     HAVE_WINSOCK2_H=0
33144   fi
33145
33146
33147   fi
33148
33149
33150
33151
33152
33153
33154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
33155 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
33156 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
33157   $as_echo_n "(cached) " >&6
33158 else
33159
33160                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33161 /* end confdefs.h.  */
33162 #include <sys/select.h>
33163 int
33164 main ()
33165 {
33166 struct timeval b;
33167   ;
33168   return 0;
33169 }
33170 _ACEOF
33171 if ac_fn_c_try_compile "$LINENO"; then :
33172   gl_cv_header_sys_select_h_selfcontained=yes
33173 else
33174   gl_cv_header_sys_select_h_selfcontained=no
33175 fi
33176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33177                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
33178         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33179 /* end confdefs.h.  */
33180 #include <sys/select.h>
33181 int
33182 main ()
33183 {
33184 int memset; int bzero;
33185   ;
33186   return 0;
33187 }
33188
33189 _ACEOF
33190 if ac_fn_c_try_compile "$LINENO"; then :
33191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33192 /* end confdefs.h.  */
33193 #include <sys/select.h>
33194 int
33195 main ()
33196 {
33197
33198                   #undef memset
33199                   #define memset nonexistent_memset
33200                   extern
33201                   #ifdef __cplusplus
33202                   "C"
33203                   #endif
33204                   void *memset (void *, int, unsigned long);
33205                   #undef bzero
33206                   #define bzero nonexistent_bzero
33207                   extern
33208                   #ifdef __cplusplus
33209                   "C"
33210                   #endif
33211                   void bzero (void *, unsigned long);
33212                   fd_set fds;
33213                   FD_ZERO (&fds);
33214
33215   ;
33216   return 0;
33217 }
33218
33219 _ACEOF
33220 if ac_fn_c_try_link "$LINENO"; then :
33221
33222 else
33223   gl_cv_header_sys_select_h_selfcontained=no
33224 fi
33225 rm -f core conftest.err conftest.$ac_objext \
33226     conftest$ac_exeext conftest.$ac_ext
33227
33228 fi
33229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33230       fi
33231
33232 fi
33233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
33234 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
33235
33236
33237
33238
33239
33240
33241   :
33242
33243
33244
33245
33246
33247
33248
33249
33250      if test $gl_cv_have_include_next = yes; then
33251        gl_cv_next_sys_select_h='<'sys/select.h'>'
33252      else
33253        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
33254 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
33255 if ${gl_cv_next_sys_select_h+:} false; then :
33256   $as_echo_n "(cached) " >&6
33257 else
33258
33259              if test $ac_cv_header_sys_select_h = yes; then
33260
33261
33262
33263
33264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33265 /* end confdefs.h.  */
33266 #include <sys/select.h>
33267 _ACEOF
33268                 case "$host_os" in
33269     aix*) gl_absname_cpp="$ac_cpp -C" ;;
33270     *)    gl_absname_cpp="$ac_cpp" ;;
33271   esac
33272
33273   case "$host_os" in
33274     mingw*)
33275                                           gl_dirsep_regex='[/\\]'
33276       ;;
33277     *)
33278       gl_dirsep_regex='\/'
33279       ;;
33280   esac
33281       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33282   gl_header_literal_regex=`echo 'sys/select.h' \
33283                            | sed -e "$gl_make_literal_regex_sed"`
33284   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33285       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33286       s|^/[^/]|//&|
33287       p
33288       q
33289     }'
33290
33291         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33292   sed -n "$gl_absolute_header_sed"`
33293
33294            gl_header=$gl_cv_absolute_sys_select_h
33295            gl_cv_next_sys_select_h='"'$gl_header'"'
33296           else
33297                gl_cv_next_sys_select_h='<'sys/select.h'>'
33298              fi
33299
33300
33301 fi
33302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
33303 $as_echo "$gl_cv_next_sys_select_h" >&6; }
33304      fi
33305      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
33306
33307      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33308        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33309        gl_next_as_first_directive='<'sys/select.h'>'
33310      else
33311        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33312        gl_next_as_first_directive=$gl_cv_next_sys_select_h
33313      fi
33314      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
33315
33316
33317
33318
33319   if test $ac_cv_header_sys_select_h = yes; then
33320     HAVE_SYS_SELECT_H=1
33321   else
33322     HAVE_SYS_SELECT_H=0
33323   fi
33324
33325
33326
33327
33328
33329   :
33330
33331
33332
33333
33334
33335   if test $ac_cv_header_sys_socket_h != yes; then
33336                     for ac_header in winsock2.h
33337 do :
33338   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
33339 if test "x$ac_cv_header_winsock2_h" = xyes; then :
33340   cat >>confdefs.h <<_ACEOF
33341 #define HAVE_WINSOCK2_H 1
33342 _ACEOF
33343
33344 fi
33345
33346 done
33347
33348   fi
33349   if test "$ac_cv_header_winsock2_h" = yes; then
33350     HAVE_WINSOCK2_H=1
33351     UNISTD_H_HAVE_WINSOCK2_H=1
33352     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
33353   else
33354     HAVE_WINSOCK2_H=0
33355   fi
33356
33357
33358
33359
33360     for gl_func in pselect select; do
33361     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33362     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
33363 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33364 if eval \${$as_gl_Symbol+:} false; then :
33365   $as_echo_n "(cached) " >&6
33366 else
33367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33368 /* end confdefs.h.  */
33369
33370 /* Some systems require prerequisite headers.  */
33371 #include <sys/types.h>
33372 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
33373 # include <sys/time.h>
33374 #endif
33375 #include <sys/select.h>
33376
33377 int
33378 main ()
33379 {
33380 #undef $gl_func
33381   (void) $gl_func;
33382   ;
33383   return 0;
33384 }
33385 _ACEOF
33386 if ac_fn_c_try_compile "$LINENO"; then :
33387   eval "$as_gl_Symbol=yes"
33388 else
33389   eval "$as_gl_Symbol=no"
33390 fi
33391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33392 fi
33393 eval ac_res=\$$as_gl_Symbol
33394                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33395 $as_echo "$ac_res" >&6; }
33396     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
33397   cat >>confdefs.h <<_ACEOF
33398 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33399 _ACEOF
33400
33401                      eval ac_cv_have_decl_$gl_func=yes
33402 fi
33403       done
33404
33405
33406
33407
33408
33409
33410
33411         case "$host_os" in
33412     osf*)
33413
33414 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
33415
33416       ;;
33417   esac
33418
33419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
33420 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
33421 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
33422   $as_echo_n "(cached) " >&6
33423 else
33424
33425       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33426 /* end confdefs.h.  */
33427 #include <sys/socket.h>
33428 int
33429 main ()
33430 {
33431
33432   ;
33433   return 0;
33434 }
33435 _ACEOF
33436 if ac_fn_c_try_compile "$LINENO"; then :
33437   gl_cv_header_sys_socket_h_selfcontained=yes
33438 else
33439   gl_cv_header_sys_socket_h_selfcontained=no
33440 fi
33441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33442
33443 fi
33444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
33445 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
33446   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
33447             for ac_func in shutdown
33448 do :
33449   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
33450 if test "x$ac_cv_func_shutdown" = xyes; then :
33451   cat >>confdefs.h <<_ACEOF
33452 #define HAVE_SHUTDOWN 1
33453 _ACEOF
33454
33455 fi
33456 done
33457
33458     if test $ac_cv_func_shutdown = yes; then
33459       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
33460 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
33461 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
33462   $as_echo_n "(cached) " >&6
33463 else
33464
33465           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33466 /* end confdefs.h.  */
33467 #include <sys/socket.h>
33468 int
33469 main ()
33470 {
33471 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
33472   ;
33473   return 0;
33474 }
33475 _ACEOF
33476 if ac_fn_c_try_compile "$LINENO"; then :
33477   gl_cv_header_sys_socket_h_shut=yes
33478 else
33479   gl_cv_header_sys_socket_h_shut=no
33480 fi
33481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33482
33483 fi
33484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
33485 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
33486       if test $gl_cv_header_sys_socket_h_shut = no; then
33487         SYS_SOCKET_H='sys/socket.h'
33488       fi
33489     fi
33490   fi
33491   # We need to check for ws2tcpip.h now.
33492
33493
33494
33495
33496
33497
33498
33499
33500   :
33501
33502
33503
33504
33505
33506
33507
33508
33509      if test $gl_cv_have_include_next = yes; then
33510        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
33511      else
33512        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
33513 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
33514 if ${gl_cv_next_sys_socket_h+:} false; then :
33515   $as_echo_n "(cached) " >&6
33516 else
33517
33518              if test $ac_cv_header_sys_socket_h = yes; then
33519
33520
33521
33522
33523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33524 /* end confdefs.h.  */
33525 #include <sys/socket.h>
33526 _ACEOF
33527                 case "$host_os" in
33528     aix*) gl_absname_cpp="$ac_cpp -C" ;;
33529     *)    gl_absname_cpp="$ac_cpp" ;;
33530   esac
33531
33532   case "$host_os" in
33533     mingw*)
33534                                           gl_dirsep_regex='[/\\]'
33535       ;;
33536     *)
33537       gl_dirsep_regex='\/'
33538       ;;
33539   esac
33540       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33541   gl_header_literal_regex=`echo 'sys/socket.h' \
33542                            | sed -e "$gl_make_literal_regex_sed"`
33543   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33544       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33545       s|^/[^/]|//&|
33546       p
33547       q
33548     }'
33549
33550         gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33551   sed -n "$gl_absolute_header_sed"`
33552
33553            gl_header=$gl_cv_absolute_sys_socket_h
33554            gl_cv_next_sys_socket_h='"'$gl_header'"'
33555           else
33556                gl_cv_next_sys_socket_h='<'sys/socket.h'>'
33557              fi
33558
33559
33560 fi
33561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
33562 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
33563      fi
33564      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
33565
33566      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33567        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33568        gl_next_as_first_directive='<'sys/socket.h'>'
33569      else
33570        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33571        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
33572      fi
33573      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
33574
33575
33576
33577
33578   if test $ac_cv_header_sys_socket_h = yes; then
33579     HAVE_SYS_SOCKET_H=1
33580     HAVE_WS2TCPIP_H=0
33581   else
33582     HAVE_SYS_SOCKET_H=0
33583     if test $ac_cv_header_ws2tcpip_h = yes; then
33584       HAVE_WS2TCPIP_H=1
33585     else
33586       HAVE_WS2TCPIP_H=0
33587     fi
33588   fi
33589
33590
33591
33592   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
33593   /* sys/types.h is not needed according to POSIX, but the
33594      sys/socket.h in i386-unknown-freebsd4.10 and
33595      powerpc-apple-darwin5.5 required it. */
33596 #include <sys/types.h>
33597 #ifdef HAVE_SYS_SOCKET_H
33598 #include <sys/socket.h>
33599 #endif
33600 #ifdef HAVE_WS2TCPIP_H
33601 #include <ws2tcpip.h>
33602 #endif
33603
33604 "
33605 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
33606
33607 cat >>confdefs.h <<_ACEOF
33608 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
33609 _ACEOF
33610
33611
33612 fi
33613 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
33614   /* sys/types.h is not needed according to POSIX, but the
33615      sys/socket.h in i386-unknown-freebsd4.10 and
33616      powerpc-apple-darwin5.5 required it. */
33617 #include <sys/types.h>
33618 #ifdef HAVE_SYS_SOCKET_H
33619 #include <sys/socket.h>
33620 #endif
33621 #ifdef HAVE_WS2TCPIP_H
33622 #include <ws2tcpip.h>
33623 #endif
33624
33625 "
33626 if test "x$ac_cv_type_sa_family_t" = xyes; then :
33627
33628 cat >>confdefs.h <<_ACEOF
33629 #define HAVE_SA_FAMILY_T 1
33630 _ACEOF
33631
33632
33633 fi
33634
33635   if test $ac_cv_type_struct_sockaddr_storage = no; then
33636     HAVE_STRUCT_SOCKADDR_STORAGE=0
33637   fi
33638   if test $ac_cv_type_sa_family_t = no; then
33639     HAVE_SA_FAMILY_T=0
33640   fi
33641   if test $ac_cv_type_struct_sockaddr_storage != no; then
33642     ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
33643        #ifdef HAVE_SYS_SOCKET_H
33644        #include <sys/socket.h>
33645        #endif
33646        #ifdef HAVE_WS2TCPIP_H
33647        #include <ws2tcpip.h>
33648        #endif
33649
33650 "
33651 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
33652
33653 cat >>confdefs.h <<_ACEOF
33654 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
33655 _ACEOF
33656
33657
33658 else
33659   HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
33660 fi
33661
33662   fi
33663   if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
33664      || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
33665     SYS_SOCKET_H='sys/socket.h'
33666   fi
33667
33668
33669
33670
33671   :
33672
33673
33674
33675
33676
33677   if test $ac_cv_header_sys_socket_h != yes; then
33678                     for ac_header in winsock2.h
33679 do :
33680   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
33681 if test "x$ac_cv_header_winsock2_h" = xyes; then :
33682   cat >>confdefs.h <<_ACEOF
33683 #define HAVE_WINSOCK2_H 1
33684 _ACEOF
33685
33686 fi
33687
33688 done
33689
33690   fi
33691   if test "$ac_cv_header_winsock2_h" = yes; then
33692     HAVE_WINSOCK2_H=1
33693     UNISTD_H_HAVE_WINSOCK2_H=1
33694     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
33695   else
33696     HAVE_WINSOCK2_H=0
33697   fi
33698
33699
33700
33701
33702     for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
33703     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
33705 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33706 if eval \${$as_gl_Symbol+:} false; then :
33707   $as_echo_n "(cached) " >&6
33708 else
33709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33710 /* end confdefs.h.  */
33711
33712 /* Some systems require prerequisite headers.  */
33713 #include <sys/types.h>
33714 #include <sys/socket.h>
33715
33716 int
33717 main ()
33718 {
33719 #undef $gl_func
33720   (void) $gl_func;
33721   ;
33722   return 0;
33723 }
33724 _ACEOF
33725 if ac_fn_c_try_compile "$LINENO"; then :
33726   eval "$as_gl_Symbol=yes"
33727 else
33728   eval "$as_gl_Symbol=no"
33729 fi
33730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33731 fi
33732 eval ac_res=\$$as_gl_Symbol
33733                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33734 $as_echo "$ac_res" >&6; }
33735     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
33736   cat >>confdefs.h <<_ACEOF
33737 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33738 _ACEOF
33739
33740                      eval ac_cv_have_decl_$gl_func=yes
33741 fi
33742       done
33743
33744
33745
33746
33747
33748
33749
33750
33751
33752
33753
33754
33755
33756
33757   :
33758
33759
33760
33761
33762
33763
33764
33765
33766      if test $gl_cv_have_include_next = yes; then
33767        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
33768      else
33769        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
33770 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
33771 if ${gl_cv_next_sys_stat_h+:} false; then :
33772   $as_echo_n "(cached) " >&6
33773 else
33774
33775              if test $ac_cv_header_sys_stat_h = yes; then
33776
33777
33778
33779
33780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33781 /* end confdefs.h.  */
33782 #include <sys/stat.h>
33783 _ACEOF
33784                 case "$host_os" in
33785     aix*) gl_absname_cpp="$ac_cpp -C" ;;
33786     *)    gl_absname_cpp="$ac_cpp" ;;
33787   esac
33788
33789   case "$host_os" in
33790     mingw*)
33791                                           gl_dirsep_regex='[/\\]'
33792       ;;
33793     *)
33794       gl_dirsep_regex='\/'
33795       ;;
33796   esac
33797       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33798   gl_header_literal_regex=`echo 'sys/stat.h' \
33799                            | sed -e "$gl_make_literal_regex_sed"`
33800   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33801       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33802       s|^/[^/]|//&|
33803       p
33804       q
33805     }'
33806
33807         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33808   sed -n "$gl_absolute_header_sed"`
33809
33810            gl_header=$gl_cv_absolute_sys_stat_h
33811            gl_cv_next_sys_stat_h='"'$gl_header'"'
33812           else
33813                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
33814              fi
33815
33816
33817 fi
33818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
33819 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
33820      fi
33821      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
33822
33823      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33824        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33825        gl_next_as_first_directive='<'sys/stat.h'>'
33826      else
33827        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33828        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
33829      fi
33830      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
33831
33832
33833
33834
33835
33836
33837
33838
33839
33840
33841
33842   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
33843
33844 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
33845
33846   fi
33847
33848       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
33849      #include <sys/stat.h>
33850 "
33851 if test "x$ac_cv_type_nlink_t" = xyes; then :
33852
33853 else
33854
33855 $as_echo "#define nlink_t int" >>confdefs.h
33856
33857 fi
33858
33859
33860
33861     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
33862     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
33864 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33865 if eval \${$as_gl_Symbol+:} false; then :
33866   $as_echo_n "(cached) " >&6
33867 else
33868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33869 /* end confdefs.h.  */
33870 #include <sys/stat.h>
33871
33872 int
33873 main ()
33874 {
33875 #undef $gl_func
33876   (void) $gl_func;
33877   ;
33878   return 0;
33879 }
33880 _ACEOF
33881 if ac_fn_c_try_compile "$LINENO"; then :
33882   eval "$as_gl_Symbol=yes"
33883 else
33884   eval "$as_gl_Symbol=no"
33885 fi
33886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33887 fi
33888 eval ac_res=\$$as_gl_Symbol
33889                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33890 $as_echo "$ac_res" >&6; }
33891     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
33892   cat >>confdefs.h <<_ACEOF
33893 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33894 _ACEOF
33895
33896                      eval ac_cv_have_decl_$gl_func=yes
33897 fi
33898       done
33899
33900
33901
33902
33903
33904
33905
33906
33907
33908
33909
33910
33911
33912
33913
33914
33915
33916   :
33917
33918
33919
33920
33921
33922
33923
33924
33925      if test $gl_cv_have_include_next = yes; then
33926        gl_cv_next_sys_uio_h='<'sys/uio.h'>'
33927      else
33928        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
33929 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
33930 if ${gl_cv_next_sys_uio_h+:} false; then :
33931   $as_echo_n "(cached) " >&6
33932 else
33933
33934              if test $ac_cv_header_sys_uio_h = yes; then
33935
33936
33937
33938
33939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33940 /* end confdefs.h.  */
33941 #include <sys/uio.h>
33942 _ACEOF
33943                 case "$host_os" in
33944     aix*) gl_absname_cpp="$ac_cpp -C" ;;
33945     *)    gl_absname_cpp="$ac_cpp" ;;
33946   esac
33947
33948   case "$host_os" in
33949     mingw*)
33950                                           gl_dirsep_regex='[/\\]'
33951       ;;
33952     *)
33953       gl_dirsep_regex='\/'
33954       ;;
33955   esac
33956       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33957   gl_header_literal_regex=`echo 'sys/uio.h' \
33958                            | sed -e "$gl_make_literal_regex_sed"`
33959   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33960       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33961       s|^/[^/]|//&|
33962       p
33963       q
33964     }'
33965
33966         gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33967   sed -n "$gl_absolute_header_sed"`
33968
33969            gl_header=$gl_cv_absolute_sys_uio_h
33970            gl_cv_next_sys_uio_h='"'$gl_header'"'
33971           else
33972                gl_cv_next_sys_uio_h='<'sys/uio.h'>'
33973              fi
33974
33975
33976 fi
33977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
33978 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
33979      fi
33980      NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
33981
33982      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33983        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33984        gl_next_as_first_directive='<'sys/uio.h'>'
33985      else
33986        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33987        gl_next_as_first_directive=$gl_cv_next_sys_uio_h
33988      fi
33989      NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
33990
33991
33992
33993
33994   if test $ac_cv_header_sys_uio_h = yes; then
33995     HAVE_SYS_UIO_H=1
33996   else
33997     HAVE_SYS_UIO_H=0
33998   fi
33999
34000
34001
34002
34003
34004
34005
34006
34007
34008
34009
34010
34011       ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
34012 "
34013 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
34014   ac_have_decl=1
34015 else
34016   ac_have_decl=0
34017 fi
34018
34019 cat >>confdefs.h <<_ACEOF
34020 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
34021 _ACEOF
34022
34023   if test $ac_cv_have_decl_localtime_r = no; then
34024     HAVE_DECL_LOCALTIME_R=0
34025   fi
34026
34027
34028   :
34029
34030
34031
34032
34033
34034   if test $ac_cv_func_localtime_r = yes; then
34035     HAVE_LOCALTIME_R=1
34036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
34037 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
34038 if ${gl_cv_time_r_posix+:} false; then :
34039   $as_echo_n "(cached) " >&6
34040 else
34041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34042 /* end confdefs.h.  */
34043 #include <time.h>
34044 int
34045 main ()
34046 {
34047 /* We don't need to append 'restrict's to the argument types,
34048                  even though the POSIX signature has the 'restrict's,
34049                  since C99 says they can't affect type compatibility.  */
34050               struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
34051               if (ptr) return 0;
34052               /* Check the return type is a pointer.
34053                  On HP-UX 10 it is 'int'.  */
34054               *localtime_r (0, 0);
34055   ;
34056   return 0;
34057 }
34058
34059 _ACEOF
34060 if ac_fn_c_try_compile "$LINENO"; then :
34061   gl_cv_time_r_posix=yes
34062 else
34063   gl_cv_time_r_posix=no
34064 fi
34065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34066
34067 fi
34068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
34069 $as_echo "$gl_cv_time_r_posix" >&6; }
34070     if test $gl_cv_time_r_posix = yes; then
34071       REPLACE_LOCALTIME_R=0
34072     else
34073       REPLACE_LOCALTIME_R=1
34074     fi
34075   else
34076     HAVE_LOCALTIME_R=0
34077   fi
34078
34079   if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
34080
34081
34082
34083
34084
34085
34086
34087
34088   ggl_LIBOBJS="$ggl_LIBOBJS time_r.$ac_objext"
34089
34090
34091   :
34092
34093   fi
34094
34095
34096
34097
34098
34099           GNULIB_TIME_R=1
34100
34101
34102
34103
34104
34105 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
34106
34107
34108
34109   :
34110
34111
34112
34113
34114
34115
34116
34117
34118
34119   :
34120
34121
34122
34123
34124
34125
34126
34127
34128      if test $gl_cv_have_include_next = yes; then
34129        gl_cv_next_unistd_h='<'unistd.h'>'
34130      else
34131        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
34132 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
34133 if ${gl_cv_next_unistd_h+:} false; then :
34134   $as_echo_n "(cached) " >&6
34135 else
34136
34137              if test $ac_cv_header_unistd_h = yes; then
34138
34139
34140
34141
34142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34143 /* end confdefs.h.  */
34144 #include <unistd.h>
34145 _ACEOF
34146                 case "$host_os" in
34147     aix*) gl_absname_cpp="$ac_cpp -C" ;;
34148     *)    gl_absname_cpp="$ac_cpp" ;;
34149   esac
34150
34151   case "$host_os" in
34152     mingw*)
34153                                           gl_dirsep_regex='[/\\]'
34154       ;;
34155     *)
34156       gl_dirsep_regex='\/'
34157       ;;
34158   esac
34159       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34160   gl_header_literal_regex=`echo 'unistd.h' \
34161                            | sed -e "$gl_make_literal_regex_sed"`
34162   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34163       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34164       s|^/[^/]|//&|
34165       p
34166       q
34167     }'
34168
34169         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34170   sed -n "$gl_absolute_header_sed"`
34171
34172            gl_header=$gl_cv_absolute_unistd_h
34173            gl_cv_next_unistd_h='"'$gl_header'"'
34174           else
34175                gl_cv_next_unistd_h='<'unistd.h'>'
34176              fi
34177
34178
34179 fi
34180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
34181 $as_echo "$gl_cv_next_unistd_h" >&6; }
34182      fi
34183      NEXT_UNISTD_H=$gl_cv_next_unistd_h
34184
34185      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34186        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34187        gl_next_as_first_directive='<'unistd.h'>'
34188      else
34189        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34190        gl_next_as_first_directive=$gl_cv_next_unistd_h
34191      fi
34192      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
34193
34194
34195
34196
34197   if test $ac_cv_header_unistd_h = yes; then
34198     HAVE_UNISTD_H=1
34199   else
34200     HAVE_UNISTD_H=0
34201   fi
34202
34203
34204
34205
34206
34207
34208
34209     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
34210     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
34211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
34212 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
34213 if eval \${$as_gl_Symbol+:} false; then :
34214   $as_echo_n "(cached) " >&6
34215 else
34216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34217 /* end confdefs.h.  */
34218
34219 #if HAVE_UNISTD_H
34220 # include <unistd.h>
34221 #endif
34222 /* Some systems declare various items in the wrong headers.  */
34223 #if !(defined __GLIBC__ && !defined __UCLIBC__)
34224 # include <fcntl.h>
34225 # include <stdio.h>
34226 # include <stdlib.h>
34227 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
34228 #  include <io.h>
34229 # endif
34230 #endif
34231
34232 int
34233 main ()
34234 {
34235 #undef $gl_func
34236   (void) $gl_func;
34237   ;
34238   return 0;
34239 }
34240 _ACEOF
34241 if ac_fn_c_try_compile "$LINENO"; then :
34242   eval "$as_gl_Symbol=yes"
34243 else
34244   eval "$as_gl_Symbol=no"
34245 fi
34246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34247 fi
34248 eval ac_res=\$$as_gl_Symbol
34249                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34250 $as_echo "$ac_res" >&6; }
34251     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
34252   cat >>confdefs.h <<_ACEOF
34253 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
34254 _ACEOF
34255
34256                      eval ac_cv_have_decl_$gl_func=yes
34257 fi
34258       done
34259
34260
34261
34262
34263
34264   :
34265
34266
34267
34268
34269
34270   if test $ac_cv_have_decl_unsetenv = no; then
34271     HAVE_DECL_UNSETENV=0
34272   fi
34273   for ac_func in unsetenv
34274 do :
34275   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
34276 if test "x$ac_cv_func_unsetenv" = xyes; then :
34277   cat >>confdefs.h <<_ACEOF
34278 #define HAVE_UNSETENV 1
34279 _ACEOF
34280
34281 fi
34282 done
34283
34284   if test $ac_cv_func_unsetenv = no; then
34285     HAVE_UNSETENV=0
34286   else
34287     HAVE_UNSETENV=1
34288         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
34289 $as_echo_n "checking for unsetenv() return type... " >&6; }
34290 if ${gt_cv_func_unsetenv_ret+:} false; then :
34291   $as_echo_n "(cached) " >&6
34292 else
34293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34294 /* end confdefs.h.  */
34295
34296 #undef _BSD
34297 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
34298 #include <stdlib.h>
34299 extern
34300 #ifdef __cplusplus
34301 "C"
34302 #endif
34303 int unsetenv (const char *name);
34304
34305 int
34306 main ()
34307 {
34308
34309   ;
34310   return 0;
34311 }
34312 _ACEOF
34313 if ac_fn_c_try_compile "$LINENO"; then :
34314   gt_cv_func_unsetenv_ret='int'
34315 else
34316   gt_cv_func_unsetenv_ret='void'
34317 fi
34318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34319 fi
34320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
34321 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
34322     if test $gt_cv_func_unsetenv_ret = 'void'; then
34323
34324 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
34325
34326       REPLACE_UNSETENV=1
34327     fi
34328
34329                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
34330 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
34331 if ${gl_cv_func_unsetenv_works+:} false; then :
34332   $as_echo_n "(cached) " >&6
34333 else
34334   if test "$cross_compiling" = yes; then :
34335   case "$host_os" in
34336                  # Guess yes on glibc systems.
34337          *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
34338                  # If we don't know, assume the worst.
34339          *)      gl_cv_func_unsetenv_works="guessing no" ;;
34340        esac
34341
34342 else
34343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34344 /* end confdefs.h.  */
34345
34346        #include <stdlib.h>
34347        #include <errno.h>
34348        extern char **environ;
34349
34350 int
34351 main ()
34352 {
34353
34354        char entry1[] = "a=1";
34355        char entry2[] = "b=2";
34356        char *env[] = { entry1, entry2, NULL };
34357        if (putenv ((char *) "a=1")) return 1;
34358        if (putenv (entry2)) return 2;
34359        entry2[0] = 'a';
34360        unsetenv ("a");
34361        if (getenv ("a")) return 3;
34362        if (!unsetenv ("") || errno != EINVAL) return 4;
34363        entry2[0] = 'b';
34364        environ = env;
34365        if (!getenv ("a")) return 5;
34366        entry2[0] = 'a';
34367        unsetenv ("a");
34368        if (getenv ("a")) return 6;
34369
34370   ;
34371   return 0;
34372 }
34373 _ACEOF
34374 if ac_fn_c_try_run "$LINENO"; then :
34375   gl_cv_func_unsetenv_works=yes
34376 else
34377   gl_cv_func_unsetenv_works=no
34378 fi
34379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34380   conftest.$ac_objext conftest.beam conftest.$ac_ext
34381 fi
34382
34383 fi
34384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
34385 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
34386     case "$gl_cv_func_unsetenv_works" in
34387       *yes) ;;
34388       *)
34389         REPLACE_UNSETENV=1
34390         ;;
34391     esac
34392   fi
34393
34394   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
34395
34396
34397
34398
34399
34400
34401
34402
34403   ggl_LIBOBJS="$ggl_LIBOBJS unsetenv.$ac_objext"
34404
34405
34406
34407
34408   :
34409
34410
34411
34412
34413
34414
34415   fi
34416
34417
34418
34419
34420
34421           GNULIB_UNSETENV=1
34422
34423
34424
34425
34426
34427 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
34428
34429
34430
34431
34432
34433   :
34434
34435
34436
34437
34438
34439   if test $ac_cv_func_vasnprintf = no; then
34440
34441
34442   :
34443
34444
34445
34446
34447
34448
34449
34450
34451
34452
34453
34454
34455
34456   ggl_LIBOBJS="$ggl_LIBOBJS vasnprintf.$ac_objext"
34457
34458
34459
34460
34461
34462
34463
34464
34465
34466   ggl_LIBOBJS="$ggl_LIBOBJS printf-args.$ac_objext"
34467
34468
34469
34470
34471
34472
34473
34474
34475
34476   ggl_LIBOBJS="$ggl_LIBOBJS printf-parse.$ac_objext"
34477
34478
34479
34480
34481
34482
34483
34484
34485
34486   ggl_LIBOBJS="$ggl_LIBOBJS asnprintf.$ac_objext"
34487
34488   if test $ac_cv_func_vasnprintf = yes; then
34489
34490 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
34491
34492   fi
34493
34494
34495
34496
34497
34498
34499
34500
34501
34502
34503
34504   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
34505 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
34506
34507 else
34508
34509 $as_echo "#define ptrdiff_t long" >>confdefs.h
34510
34511
34512 fi
34513
34514
34515
34516
34517
34518
34519
34520   fi
34521
34522
34523
34524
34525
34526
34527
34528
34529
34530
34531   :
34532
34533
34534
34535
34536
34537
34538
34539
34540      if test $gl_cv_have_include_next = yes; then
34541        gl_cv_next_wchar_h='<'wchar.h'>'
34542      else
34543        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
34544 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
34545 if ${gl_cv_next_wchar_h+:} false; then :
34546   $as_echo_n "(cached) " >&6
34547 else
34548
34549              if test $ac_cv_header_wchar_h = yes; then
34550
34551
34552
34553
34554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34555 /* end confdefs.h.  */
34556 #include <wchar.h>
34557 _ACEOF
34558                 case "$host_os" in
34559     aix*) gl_absname_cpp="$ac_cpp -C" ;;
34560     *)    gl_absname_cpp="$ac_cpp" ;;
34561   esac
34562
34563   case "$host_os" in
34564     mingw*)
34565                                           gl_dirsep_regex='[/\\]'
34566       ;;
34567     *)
34568       gl_dirsep_regex='\/'
34569       ;;
34570   esac
34571       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34572   gl_header_literal_regex=`echo 'wchar.h' \
34573                            | sed -e "$gl_make_literal_regex_sed"`
34574   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34575       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34576       s|^/[^/]|//&|
34577       p
34578       q
34579     }'
34580
34581         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34582   sed -n "$gl_absolute_header_sed"`
34583
34584            gl_header=$gl_cv_absolute_wchar_h
34585            gl_cv_next_wchar_h='"'$gl_header'"'
34586           else
34587                gl_cv_next_wchar_h='<'wchar.h'>'
34588              fi
34589
34590
34591 fi
34592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
34593 $as_echo "$gl_cv_next_wchar_h" >&6; }
34594      fi
34595      NEXT_WCHAR_H=$gl_cv_next_wchar_h
34596
34597      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34598        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34599        gl_next_as_first_directive='<'wchar.h'>'
34600      else
34601        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34602        gl_next_as_first_directive=$gl_cv_next_wchar_h
34603      fi
34604      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
34605
34606
34607
34608
34609   if test $ac_cv_header_wchar_h = yes; then
34610     HAVE_WCHAR_H=1
34611   else
34612     HAVE_WCHAR_H=0
34613   fi
34614
34615
34616
34617
34618
34619   if test $gt_cv_c_wint_t = yes; then
34620     HAVE_WINT_T=1
34621   else
34622     HAVE_WINT_T=0
34623   fi
34624
34625
34626
34627     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
34628     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
34629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
34630 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
34631 if eval \${$as_gl_Symbol+:} false; then :
34632   $as_echo_n "(cached) " >&6
34633 else
34634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34635 /* end confdefs.h.  */
34636
34637 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34638    <wchar.h>.
34639    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34640    included before <wchar.h>.  */
34641 #if !(defined __GLIBC__ && !defined __UCLIBC__)
34642 # include <stddef.h>
34643 # include <stdio.h>
34644 # include <time.h>
34645 #endif
34646 #include <wchar.h>
34647
34648 int
34649 main ()
34650 {
34651 #undef $gl_func
34652   (void) $gl_func;
34653   ;
34654   return 0;
34655 }
34656 _ACEOF
34657 if ac_fn_c_try_compile "$LINENO"; then :
34658   eval "$as_gl_Symbol=yes"
34659 else
34660   eval "$as_gl_Symbol=no"
34661 fi
34662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34663 fi
34664 eval ac_res=\$$as_gl_Symbol
34665                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34666 $as_echo "$ac_res" >&6; }
34667     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
34668   cat >>confdefs.h <<_ACEOF
34669 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
34670 _ACEOF
34671
34672                      eval ac_cv_have_decl_$gl_func=yes
34673 fi
34674       done
34675
34676
34677   :
34678
34679
34680
34681   for ac_header in stdint.h
34682 do :
34683   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
34684 if test "x$ac_cv_header_stdint_h" = xyes; then :
34685   cat >>confdefs.h <<_ACEOF
34686 #define HAVE_STDINT_H 1
34687 _ACEOF
34688
34689 fi
34690
34691 done
34692
34693
34694   # End of code from modules
34695
34696
34697
34698
34699
34700
34701
34702
34703
34704   gltests_libdeps=
34705   gltests_ltlibdeps=
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715   gl_source_base='tests'
34716   ggltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
34717
34718   gl_module_indicator_condition=$ggltests_WITNESS
34719
34720
34721
34722
34723
34724
34725
34726
34727
34728
34729
34730
34731 # Check whether --enable-gcc-warnings was given.
34732 if test "${enable_gcc_warnings+set}" = set; then :
34733   enableval=$enable_gcc_warnings; case $enableval in
34734      yes|no) ;;
34735      *)      as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
34736    esac
34737    gl_gcc_warnings=$enableval
34738 else
34739   gl_gcc_warnings=no
34740
34741 fi
34742
34743
34744 if test "$gl_gcc_warnings" = yes; then
34745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
34746 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
34747 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
34748   $as_echo_n "(cached) " >&6
34749 else
34750
34751   gl_save_compiler_FLAGS="$CFLAGS"
34752   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
34753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34754 /* end confdefs.h.  */
34755
34756 int
34757 main ()
34758 {
34759
34760   ;
34761   return 0;
34762 }
34763 _ACEOF
34764 if ac_fn_c_try_link "$LINENO"; then :
34765   gl_cv_warn_c__Werror__Wunknown_warning_option=yes
34766 else
34767   gl_cv_warn_c__Werror__Wunknown_warning_option=no
34768 fi
34769 rm -f core conftest.err conftest.$ac_objext \
34770     conftest$ac_exeext conftest.$ac_ext
34771   CFLAGS="$gl_save_compiler_FLAGS"
34772
34773 fi
34774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
34775 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
34776 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
34777   gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
34778 else
34779   gl_unknown_warnings_are_errors=
34780 fi
34781
34782
34783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wframe-larger-than=1024" >&5
34784 $as_echo_n "checking whether C compiler handles -Wframe-larger-than=1024... " >&6; }
34785 if ${gl_cv_warn_c__Wframe_larger_than_1024+:} false; then :
34786   $as_echo_n "(cached) " >&6
34787 else
34788
34789   gl_save_compiler_FLAGS="$CFLAGS"
34790   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wframe-larger-than=1024"
34791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34792 /* end confdefs.h.  */
34793
34794 int
34795 main ()
34796 {
34797
34798   ;
34799   return 0;
34800 }
34801 _ACEOF
34802 if ac_fn_c_try_link "$LINENO"; then :
34803   gl_cv_warn_c__Wframe_larger_than_1024=yes
34804 else
34805   gl_cv_warn_c__Wframe_larger_than_1024=no
34806 fi
34807 rm -f core conftest.err conftest.$ac_objext \
34808     conftest$ac_exeext conftest.$ac_ext
34809   CFLAGS="$gl_save_compiler_FLAGS"
34810
34811 fi
34812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wframe_larger_than_1024" >&5
34813 $as_echo "$gl_cv_warn_c__Wframe_larger_than_1024" >&6; }
34814 if test "x$gl_cv_warn_c__Wframe_larger_than_1024" = xyes; then :
34815   as_fn_append WSTACK_CFLAGS " -Wframe-larger-than=1024"
34816 fi
34817
34818
34819
34820   nw="$nw -Wsystem-headers"         # Don't let system headers trigger warnings
34821   nw="$nw -Wc++-compat"             # We don't care about C++ compilers
34822   nw="$nw -Wundef"                  # Warns on '#if GNULIB_FOO' etc in gnulib
34823   nw="$nw -Wtraditional"            # Warns on #elif which we use often
34824   nw="$nw -Wlogical-op"             # Too many false positives
34825   nw="$nw -Wold-style-definition"   #
34826   nw="$nw -Wpadded"                 # Our structs are not padded
34827   nw="$nw -Wunreachable-code"       # Too many false positives
34828   nw="$nw -Wtraditional-conversion" # Too many warnings for now
34829   nw="$nw -Wcast-qual"              # Too many warnings for now
34830   nw="$nw -Waggregate-return"       # Too many warnings for now
34831   nw="$nw -Wshadow"                 # Too many warnings for now
34832   nw="$nw -Wswitch-default"         # Too many warnings for now
34833   nw="$nw -Wswitch-enum"            # Too many warnings for now
34834   nw="$nw -Wconversion"             # Too many warnings for now
34835   nw="$nw -Wsign-conversion"        # Too many warnings for now
34836   nw="$nw -Wformat-y2k"             # Too many warnings for now
34837   nw="$nw -Woverlength-strings"     # We use some in tests/
34838   nw="$nw -Wvla"                    # There is no point to avoid C99 variable length arrays
34839   nw="$nw -Wformat-nonliteral"      # Incompatible with gettext _()
34840   nw="$nw -Wunsafe-loop-optimizations"
34841   nw="$nw -Wstrict-overflow"
34842   nw="$nw -Wmissing-noreturn"
34843   nw="$nw -Winline"                 # Too compiler dependent
34844   nw="$nw -Wsuggest-attribute=pure" # Is it worth using attributes?
34845   nw="$nw -Wsuggest-attribute=const" # Is it worth using attributes?
34846   nw="$nw -Wsuggest-attribute=noreturn" # Is it worth using attributes?
34847   nw="$nw -Wstack-protector"        # Some functions cannot be protected
34848   nw="$nw -Wredundant-decls"        # Some files cannot be compiled with that (gl_fd_to_handle)
34849
34850
34851
34852   if test -n "$GCC"; then
34853
34854             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
34855 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
34856     if ${gl_cv_cc_nomfi_supported+:} false; then :
34857   $as_echo_n "(cached) " >&6
34858 else
34859
34860       gl_save_CFLAGS="$CFLAGS"
34861       CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
34862       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34863 /* end confdefs.h.  */
34864
34865 int
34866 main ()
34867 {
34868
34869   ;
34870   return 0;
34871 }
34872 _ACEOF
34873 if ac_fn_c_try_compile "$LINENO"; then :
34874   gl_cv_cc_nomfi_supported=yes
34875 else
34876   gl_cv_cc_nomfi_supported=no
34877 fi
34878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34879       CFLAGS="$gl_save_CFLAGS"
34880 fi
34881
34882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
34883 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
34884
34885     if test "$gl_cv_cc_nomfi_supported" = yes; then
34886                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
34887 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
34888       if ${gl_cv_cc_nomfi_needed+:} false; then :
34889   $as_echo_n "(cached) " >&6
34890 else
34891
34892         gl_save_CFLAGS="$CFLAGS"
34893         CFLAGS="$CFLAGS -W -Werror"
34894         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34895 /* end confdefs.h.  */
34896 void f (void)
34897                {
34898                  typedef struct { int a; int b; } s_t;
34899                  s_t s1 = { 0, };
34900                }
34901
34902 int
34903 main ()
34904 {
34905
34906   ;
34907   return 0;
34908 }
34909 _ACEOF
34910 if ac_fn_c_try_compile "$LINENO"; then :
34911   gl_cv_cc_nomfi_needed=no
34912 else
34913   gl_cv_cc_nomfi_needed=yes
34914 fi
34915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34916         CFLAGS="$gl_save_CFLAGS"
34917
34918 fi
34919
34920       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
34921 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
34922     fi
34923
34924                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
34925 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
34926     if ${gl_cv_cc_uninitialized_supported+:} false; then :
34927   $as_echo_n "(cached) " >&6
34928 else
34929
34930       gl_save_CFLAGS="$CFLAGS"
34931       CFLAGS="$CFLAGS -Werror -Wuninitialized"
34932       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34933 /* end confdefs.h.  */
34934
34935 int
34936 main ()
34937 {
34938
34939   ;
34940   return 0;
34941 }
34942 _ACEOF
34943 if ac_fn_c_try_compile "$LINENO"; then :
34944   gl_cv_cc_uninitialized_supported=yes
34945 else
34946   gl_cv_cc_uninitialized_supported=no
34947 fi
34948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34949       CFLAGS="$gl_save_CFLAGS"
34950 fi
34951
34952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
34953 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
34954
34955   fi
34956
34957   # List all gcc warning categories.
34958   gl_manywarn_set=
34959   for gl_manywarn_item in \
34960     -W \
34961     -Wabi \
34962     -Waddress \
34963     -Waggressive-loop-optimizations \
34964     -Wall \
34965     -Warray-bounds \
34966     -Wattributes \
34967     -Wbad-function-cast \
34968     -Wbuiltin-macro-redefined \
34969     -Wcast-align \
34970     -Wchar-subscripts \
34971     -Wclobbered \
34972     -Wcomment \
34973     -Wcomments \
34974     -Wcoverage-mismatch \
34975     -Wcpp \
34976     -Wdeprecated \
34977     -Wdeprecated-declarations \
34978     -Wdisabled-optimization \
34979     -Wdiv-by-zero \
34980     -Wdouble-promotion \
34981     -Wempty-body \
34982     -Wendif-labels \
34983     -Wenum-compare \
34984     -Wextra \
34985     -Wformat-contains-nul \
34986     -Wformat-extra-args \
34987     -Wformat-nonliteral \
34988     -Wformat-security \
34989     -Wformat-y2k \
34990     -Wformat-zero-length \
34991     -Wfree-nonheap-object \
34992     -Wignored-qualifiers \
34993     -Wimplicit \
34994     -Wimplicit-function-declaration \
34995     -Wimplicit-int \
34996     -Winit-self \
34997     -Winline \
34998     -Wint-to-pointer-cast \
34999     -Winvalid-memory-model \
35000     -Winvalid-pch \
35001     -Wjump-misses-init \
35002     -Wlogical-op \
35003     -Wmain \
35004     -Wmaybe-uninitialized \
35005     -Wmissing-braces \
35006     -Wmissing-declarations \
35007     -Wmissing-field-initializers \
35008     -Wmissing-include-dirs \
35009     -Wmissing-parameter-type \
35010     -Wmissing-prototypes \
35011     -Wmultichar \
35012     -Wnarrowing \
35013     -Wnested-externs \
35014     -Wnonnull \
35015     -Wnormalized=nfc \
35016     -Wold-style-declaration \
35017     -Wold-style-definition \
35018     -Woverflow \
35019     -Woverlength-strings \
35020     -Woverride-init \
35021     -Wpacked \
35022     -Wpacked-bitfield-compat \
35023     -Wparentheses \
35024     -Wpointer-arith \
35025     -Wpointer-sign \
35026     -Wpointer-to-int-cast \
35027     -Wpragmas \
35028     -Wreturn-local-addr \
35029     -Wreturn-type \
35030     -Wsequence-point \
35031     -Wshadow \
35032     -Wsizeof-pointer-memaccess \
35033     -Wstack-protector \
35034     -Wstrict-aliasing \
35035     -Wstrict-overflow \
35036     -Wstrict-prototypes \
35037     -Wsuggest-attribute=const \
35038     -Wsuggest-attribute=format \
35039     -Wsuggest-attribute=noreturn \
35040     -Wsuggest-attribute=pure \
35041     -Wswitch \
35042     -Wswitch-default \
35043     -Wsync-nand \
35044     -Wsystem-headers \
35045     -Wtrampolines \
35046     -Wtrigraphs \
35047     -Wtype-limits \
35048     -Wuninitialized \
35049     -Wunknown-pragmas \
35050     -Wunsafe-loop-optimizations \
35051     -Wunused \
35052     -Wunused-but-set-parameter \
35053     -Wunused-but-set-variable \
35054     -Wunused-function \
35055     -Wunused-label \
35056     -Wunused-local-typedefs \
35057     -Wunused-macros \
35058     -Wunused-parameter \
35059     -Wunused-result \
35060     -Wunused-value \
35061     -Wunused-variable \
35062     -Wvarargs \
35063     -Wvariadic-macros \
35064     -Wvector-operation-performance \
35065     -Wvla \
35066     -Wvolatile-register-var \
35067     -Wwrite-strings \
35068     -fdiagnostics-show-option \
35069     -funit-at-a-time \
35070     \
35071     ; do
35072     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
35073   done
35074
35075   # Disable specific options as needed.
35076   if test "$gl_cv_cc_nomfi_needed" = yes; then
35077     gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
35078   fi
35079
35080   if test "$gl_cv_cc_uninitialized_supported" = no; then
35081     gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
35082   fi
35083
35084   ws=$gl_manywarn_set
35085
35086
35087   gl_warn_set=
35088   set x $ws; shift
35089   for gl_warn_item
35090   do
35091     case " $nw " in
35092       *" $gl_warn_item "*)
35093         ;;
35094       *)
35095         gl_warn_set="$gl_warn_set $gl_warn_item"
35096         ;;
35097     esac
35098   done
35099   ws=$gl_warn_set
35100
35101   for w in $ws; do
35102
35103 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
35104 gl_positive="$w"
35105 case $gl_positive in
35106   -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
35107 esac
35108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
35109 $as_echo_n "checking whether C compiler handles $w... " >&6; }
35110 if eval \${$as_gl_Warn+:} false; then :
35111   $as_echo_n "(cached) " >&6
35112 else
35113
35114   gl_save_compiler_FLAGS="$CFLAGS"
35115   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
35116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35117 /* end confdefs.h.  */
35118
35119 int
35120 main ()
35121 {
35122
35123   ;
35124   return 0;
35125 }
35126 _ACEOF
35127 if ac_fn_c_try_link "$LINENO"; then :
35128   eval "$as_gl_Warn=yes"
35129 else
35130   eval "$as_gl_Warn=no"
35131 fi
35132 rm -f core conftest.err conftest.$ac_objext \
35133     conftest$ac_exeext conftest.$ac_ext
35134   CFLAGS="$gl_save_compiler_FLAGS"
35135
35136 fi
35137 eval ac_res=\$$as_gl_Warn
35138                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35139 $as_echo "$ac_res" >&6; }
35140 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
35141   as_fn_append WARN_CFLAGS " $w"
35142 fi
35143
35144
35145   done
35146
35147
35148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
35149 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
35150 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
35151   $as_echo_n "(cached) " >&6
35152 else
35153
35154   gl_save_compiler_FLAGS="$CFLAGS"
35155   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
35156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35157 /* end confdefs.h.  */
35158
35159 int
35160 main ()
35161 {
35162
35163   ;
35164   return 0;
35165 }
35166 _ACEOF
35167 if ac_fn_c_try_link "$LINENO"; then :
35168   gl_cv_warn_c__Wno_missing_field_initializers=yes
35169 else
35170   gl_cv_warn_c__Wno_missing_field_initializers=no
35171 fi
35172 rm -f core conftest.err conftest.$ac_objext \
35173     conftest$ac_exeext conftest.$ac_ext
35174   CFLAGS="$gl_save_compiler_FLAGS"
35175
35176 fi
35177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
35178 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
35179 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
35180   as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
35181 fi
35182
35183  # We need this one
35184
35185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-y2k" >&5
35186 $as_echo_n "checking whether C compiler handles -Wno-format-y2k... " >&6; }
35187 if ${gl_cv_warn_c__Wno_format_y2k+:} false; then :
35188   $as_echo_n "(cached) " >&6
35189 else
35190
35191   gl_save_compiler_FLAGS="$CFLAGS"
35192   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-y2k"
35193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35194 /* end confdefs.h.  */
35195
35196 int
35197 main ()
35198 {
35199
35200   ;
35201   return 0;
35202 }
35203 _ACEOF
35204 if ac_fn_c_try_link "$LINENO"; then :
35205   gl_cv_warn_c__Wno_format_y2k=yes
35206 else
35207   gl_cv_warn_c__Wno_format_y2k=no
35208 fi
35209 rm -f core conftest.err conftest.$ac_objext \
35210     conftest$ac_exeext conftest.$ac_ext
35211   CFLAGS="$gl_save_compiler_FLAGS"
35212
35213 fi
35214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_y2k" >&5
35215 $as_echo "$gl_cv_warn_c__Wno_format_y2k" >&6; }
35216 if test "x$gl_cv_warn_c__Wno_format_y2k" = xyes; then :
35217   as_fn_append WARN_CFLAGS " -Wno-format-y2k"
35218 fi
35219
35220      # Too many warnings for now
35221
35222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
35223 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
35224 if ${gl_cv_warn_c__Wno_unused_value+:} false; then :
35225   $as_echo_n "(cached) " >&6
35226 else
35227
35228   gl_save_compiler_FLAGS="$CFLAGS"
35229   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-value"
35230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35231 /* end confdefs.h.  */
35232
35233 int
35234 main ()
35235 {
35236
35237   ;
35238   return 0;
35239 }
35240 _ACEOF
35241 if ac_fn_c_try_link "$LINENO"; then :
35242   gl_cv_warn_c__Wno_unused_value=yes
35243 else
35244   gl_cv_warn_c__Wno_unused_value=no
35245 fi
35246 rm -f core conftest.err conftest.$ac_objext \
35247     conftest$ac_exeext conftest.$ac_ext
35248   CFLAGS="$gl_save_compiler_FLAGS"
35249
35250 fi
35251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
35252 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
35253 if test "x$gl_cv_warn_c__Wno_unused_value" = xyes; then :
35254   as_fn_append WARN_CFLAGS " -Wno-unused-value"
35255 fi
35256
35257  # warnings for things we don't want to get
35258
35259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-result" >&5
35260 $as_echo_n "checking whether C compiler handles -Wno-unused-result... " >&6; }
35261 if ${gl_cv_warn_c__Wno_unused_result+:} false; then :
35262   $as_echo_n "(cached) " >&6
35263 else
35264
35265   gl_save_compiler_FLAGS="$CFLAGS"
35266   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-result"
35267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35268 /* end confdefs.h.  */
35269
35270 int
35271 main ()
35272 {
35273
35274   ;
35275   return 0;
35276 }
35277 _ACEOF
35278 if ac_fn_c_try_link "$LINENO"; then :
35279   gl_cv_warn_c__Wno_unused_result=yes
35280 else
35281   gl_cv_warn_c__Wno_unused_result=no
35282 fi
35283 rm -f core conftest.err conftest.$ac_objext \
35284     conftest$ac_exeext conftest.$ac_ext
35285   CFLAGS="$gl_save_compiler_FLAGS"
35286
35287 fi
35288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_result" >&5
35289 $as_echo "$gl_cv_warn_c__Wno_unused_result" >&6; }
35290 if test "x$gl_cv_warn_c__Wno_unused_result" = xyes; then :
35291   as_fn_append WARN_CFLAGS " -Wno-unused-result"
35292 fi
35293
35294  # warnings for things we don't want to get
35295
35296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
35297 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
35298 if ${gl_cv_warn_c__Wno_unused_parameter+:} false; then :
35299   $as_echo_n "(cached) " >&6
35300 else
35301
35302   gl_save_compiler_FLAGS="$CFLAGS"
35303   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
35304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35305 /* end confdefs.h.  */
35306
35307 int
35308 main ()
35309 {
35310
35311   ;
35312   return 0;
35313 }
35314 _ACEOF
35315 if ac_fn_c_try_link "$LINENO"; then :
35316   gl_cv_warn_c__Wno_unused_parameter=yes
35317 else
35318   gl_cv_warn_c__Wno_unused_parameter=no
35319 fi
35320 rm -f core conftest.err conftest.$ac_objext \
35321     conftest$ac_exeext conftest.$ac_ext
35322   CFLAGS="$gl_save_compiler_FLAGS"
35323
35324 fi
35325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
35326 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
35327 if test "x$gl_cv_warn_c__Wno_unused_parameter" = xyes; then :
35328   as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
35329 fi
35330
35331  # Too many warnings for now
35332
35333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-stack-protector" >&5
35334 $as_echo_n "checking whether C compiler handles -Wno-stack-protector... " >&6; }
35335 if ${gl_cv_warn_c__Wno_stack_protector+:} false; then :
35336   $as_echo_n "(cached) " >&6
35337 else
35338
35339   gl_save_compiler_FLAGS="$CFLAGS"
35340   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstack-protector"
35341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35342 /* end confdefs.h.  */
35343
35344 int
35345 main ()
35346 {
35347
35348   ;
35349   return 0;
35350 }
35351 _ACEOF
35352 if ac_fn_c_try_link "$LINENO"; then :
35353   gl_cv_warn_c__Wno_stack_protector=yes
35354 else
35355   gl_cv_warn_c__Wno_stack_protector=no
35356 fi
35357 rm -f core conftest.err conftest.$ac_objext \
35358     conftest$ac_exeext conftest.$ac_ext
35359   CFLAGS="$gl_save_compiler_FLAGS"
35360
35361 fi
35362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_stack_protector" >&5
35363 $as_echo "$gl_cv_warn_c__Wno_stack_protector" >&6; }
35364 if test "x$gl_cv_warn_c__Wno_stack_protector" = xyes; then :
35365   as_fn_append WARN_CFLAGS " -Wno-stack-protector"
35366 fi
35367
35368   # Some functions cannot be protected
35369
35370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-int-to-pointer-cast" >&5
35371 $as_echo_n "checking whether C compiler handles -Wno-int-to-pointer-cast... " >&6; }
35372 if ${gl_cv_warn_c__Wno_int_to_pointer_cast+:} false; then :
35373   $as_echo_n "(cached) " >&6
35374 else
35375
35376   gl_save_compiler_FLAGS="$CFLAGS"
35377   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wint-to-pointer-cast"
35378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35379 /* end confdefs.h.  */
35380
35381 int
35382 main ()
35383 {
35384
35385   ;
35386   return 0;
35387 }
35388 _ACEOF
35389 if ac_fn_c_try_link "$LINENO"; then :
35390   gl_cv_warn_c__Wno_int_to_pointer_cast=yes
35391 else
35392   gl_cv_warn_c__Wno_int_to_pointer_cast=no
35393 fi
35394 rm -f core conftest.err conftest.$ac_objext \
35395     conftest$ac_exeext conftest.$ac_ext
35396   CFLAGS="$gl_save_compiler_FLAGS"
35397
35398 fi
35399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_int_to_pointer_cast" >&5
35400 $as_echo "$gl_cv_warn_c__Wno_int_to_pointer_cast" >&6; }
35401 if test "x$gl_cv_warn_c__Wno_int_to_pointer_cast" = xyes; then :
35402   as_fn_append WARN_CFLAGS " -Wno-int-to-pointer-cast"
35403 fi
35404
35405   # Some files cannot be compiled with that (gl_fd_to_handle)
35406
35407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
35408 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
35409 if ${gl_cv_warn_c__fdiagnostics_show_option+:} false; then :
35410   $as_echo_n "(cached) " >&6
35411 else
35412
35413   gl_save_compiler_FLAGS="$CFLAGS"
35414   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
35415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35416 /* end confdefs.h.  */
35417
35418 int
35419 main ()
35420 {
35421
35422   ;
35423   return 0;
35424 }
35425 _ACEOF
35426 if ac_fn_c_try_link "$LINENO"; then :
35427   gl_cv_warn_c__fdiagnostics_show_option=yes
35428 else
35429   gl_cv_warn_c__fdiagnostics_show_option=no
35430 fi
35431 rm -f core conftest.err conftest.$ac_objext \
35432     conftest$ac_exeext conftest.$ac_ext
35433   CFLAGS="$gl_save_compiler_FLAGS"
35434
35435 fi
35436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
35437 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
35438 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes; then :
35439   as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
35440 fi
35441
35442
35443 fi
35444
35445
35446
35447
35448
35449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
35450 $as_echo_n "checking whether ln -s works... " >&6; }
35451 LN_S=$as_ln_s
35452 if test "$LN_S" = "ln -s"; then
35453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35454 $as_echo "yes" >&6; }
35455 else
35456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
35457 $as_echo "no, using $LN_S" >&6; }
35458 fi
35459
35460 case `pwd` in
35461   *\ * | *\     *)
35462     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
35463 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
35464 esac
35465
35466
35467
35468 macro_version='2.4.2'
35469 macro_revision='1.3337'
35470
35471
35472
35473
35474
35475
35476
35477
35478
35479
35480
35481
35482
35483 ltmain="$ac_aux_dir/ltmain.sh"
35484
35485 # Backslashify metacharacters that are still active within
35486 # double-quoted strings.
35487 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
35488
35489 # Same as above, but do not quote variable references.
35490 double_quote_subst='s/\(["`\\]\)/\\\1/g'
35491
35492 # Sed substitution to delay expansion of an escaped shell variable in a
35493 # double_quote_subst'ed string.
35494 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
35495
35496 # Sed substitution to delay expansion of an escaped single quote.
35497 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
35498
35499 # Sed substitution to avoid accidental globbing in evaled expressions
35500 no_glob_subst='s/\*/\\\*/g'
35501
35502 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35503 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
35504 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
35505
35506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
35507 $as_echo_n "checking how to print strings... " >&6; }
35508 # Test print first, because it will be a builtin if present.
35509 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
35510    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
35511   ECHO='print -r --'
35512 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
35513   ECHO='printf %s\n'
35514 else
35515   # Use this function as a fallback that always works.
35516   func_fallback_echo ()
35517   {
35518     eval 'cat <<_LTECHO_EOF
35519 $1
35520 _LTECHO_EOF'
35521   }
35522   ECHO='func_fallback_echo'
35523 fi
35524
35525 # func_echo_all arg...
35526 # Invoke $ECHO with all args, space-separated.
35527 func_echo_all ()
35528 {
35529     $ECHO ""
35530 }
35531
35532 case "$ECHO" in
35533   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
35534 $as_echo "printf" >&6; } ;;
35535   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
35536 $as_echo "print -r" >&6; } ;;
35537   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
35538 $as_echo "cat" >&6; } ;;
35539 esac
35540
35541
35542
35543
35544
35545
35546
35547
35548
35549
35550
35551
35552
35553
35554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
35555 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
35556 if ${ac_cv_path_SED+:} false; then :
35557   $as_echo_n "(cached) " >&6
35558 else
35559             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
35560      for ac_i in 1 2 3 4 5 6 7; do
35561        ac_script="$ac_script$as_nl$ac_script"
35562      done
35563      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
35564      { ac_script=; unset ac_script;}
35565      if test -z "$SED"; then
35566   ac_path_SED_found=false
35567   # Loop through the user's path and test for each of PROGNAME-LIST
35568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35569 for as_dir in $PATH
35570 do
35571   IFS=$as_save_IFS
35572   test -z "$as_dir" && as_dir=.
35573     for ac_prog in sed gsed; do
35574     for ac_exec_ext in '' $ac_executable_extensions; do
35575       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
35576       as_fn_executable_p "$ac_path_SED" || continue
35577 # Check for GNU ac_path_SED and select it if it is found.
35578   # Check for GNU $ac_path_SED
35579 case `"$ac_path_SED" --version 2>&1` in
35580 *GNU*)
35581   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
35582 *)
35583   ac_count=0
35584   $as_echo_n 0123456789 >"conftest.in"
35585   while :
35586   do
35587     cat "conftest.in" "conftest.in" >"conftest.tmp"
35588     mv "conftest.tmp" "conftest.in"
35589     cp "conftest.in" "conftest.nl"
35590     $as_echo '' >> "conftest.nl"
35591     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
35592     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
35593     as_fn_arith $ac_count + 1 && ac_count=$as_val
35594     if test $ac_count -gt ${ac_path_SED_max-0}; then
35595       # Best one so far, save it but keep looking for a better one
35596       ac_cv_path_SED="$ac_path_SED"
35597       ac_path_SED_max=$ac_count
35598     fi
35599     # 10*(2^10) chars as input seems more than enough
35600     test $ac_count -gt 10 && break
35601   done
35602   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
35603 esac
35604
35605       $ac_path_SED_found && break 3
35606     done
35607   done
35608   done
35609 IFS=$as_save_IFS
35610   if test -z "$ac_cv_path_SED"; then
35611     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
35612   fi
35613 else
35614   ac_cv_path_SED=$SED
35615 fi
35616
35617 fi
35618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
35619 $as_echo "$ac_cv_path_SED" >&6; }
35620  SED="$ac_cv_path_SED"
35621   rm -f conftest.sed
35622
35623 test -z "$SED" && SED=sed
35624 Xsed="$SED -e 1s/^X//"
35625
35626
35627
35628
35629
35630
35631
35632
35633
35634
35635
35636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
35637 $as_echo_n "checking for fgrep... " >&6; }
35638 if ${ac_cv_path_FGREP+:} false; then :
35639   $as_echo_n "(cached) " >&6
35640 else
35641   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
35642    then ac_cv_path_FGREP="$GREP -F"
35643    else
35644      if test -z "$FGREP"; then
35645   ac_path_FGREP_found=false
35646   # Loop through the user's path and test for each of PROGNAME-LIST
35647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
35649 do
35650   IFS=$as_save_IFS
35651   test -z "$as_dir" && as_dir=.
35652     for ac_prog in fgrep; do
35653     for ac_exec_ext in '' $ac_executable_extensions; do
35654       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
35655       as_fn_executable_p "$ac_path_FGREP" || continue
35656 # Check for GNU ac_path_FGREP and select it if it is found.
35657   # Check for GNU $ac_path_FGREP
35658 case `"$ac_path_FGREP" --version 2>&1` in
35659 *GNU*)
35660   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
35661 *)
35662   ac_count=0
35663   $as_echo_n 0123456789 >"conftest.in"
35664   while :
35665   do
35666     cat "conftest.in" "conftest.in" >"conftest.tmp"
35667     mv "conftest.tmp" "conftest.in"
35668     cp "conftest.in" "conftest.nl"
35669     $as_echo 'FGREP' >> "conftest.nl"
35670     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
35671     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
35672     as_fn_arith $ac_count + 1 && ac_count=$as_val
35673     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
35674       # Best one so far, save it but keep looking for a better one
35675       ac_cv_path_FGREP="$ac_path_FGREP"
35676       ac_path_FGREP_max=$ac_count
35677     fi
35678     # 10*(2^10) chars as input seems more than enough
35679     test $ac_count -gt 10 && break
35680   done
35681   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
35682 esac
35683
35684       $ac_path_FGREP_found && break 3
35685     done
35686   done
35687   done
35688 IFS=$as_save_IFS
35689   if test -z "$ac_cv_path_FGREP"; then
35690     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
35691   fi
35692 else
35693   ac_cv_path_FGREP=$FGREP
35694 fi
35695
35696    fi
35697 fi
35698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
35699 $as_echo "$ac_cv_path_FGREP" >&6; }
35700  FGREP="$ac_cv_path_FGREP"
35701
35702
35703 test -z "$GREP" && GREP=grep
35704
35705
35706
35707
35708
35709
35710
35711
35712
35713
35714
35715
35716
35717
35718
35719
35720
35721
35722
35723 # Check whether --with-gnu-ld was given.
35724 if test "${with_gnu_ld+set}" = set; then :
35725   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
35726 else
35727   with_gnu_ld=no
35728 fi
35729
35730 ac_prog=ld
35731 if test "$GCC" = yes; then
35732   # Check if gcc -print-prog-name=ld gives a path.
35733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
35734 $as_echo_n "checking for ld used by $CC... " >&6; }
35735   case $host in
35736   *-*-mingw*)
35737     # gcc leaves a trailing carriage return which upsets mingw
35738     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
35739   *)
35740     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
35741   esac
35742   case $ac_prog in
35743     # Accept absolute paths.
35744     [\\/]* | ?:[\\/]*)
35745       re_direlt='/[^/][^/]*/\.\./'
35746       # Canonicalize the pathname of ld
35747       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
35748       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
35749         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
35750       done
35751       test -z "$LD" && LD="$ac_prog"
35752       ;;
35753   "")
35754     # If it fails, then pretend we aren't using GCC.
35755     ac_prog=ld
35756     ;;
35757   *)
35758     # If it is relative, then search for the first ld in PATH.
35759     with_gnu_ld=unknown
35760     ;;
35761   esac
35762 elif test "$with_gnu_ld" = yes; then
35763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
35764 $as_echo_n "checking for GNU ld... " >&6; }
35765 else
35766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
35767 $as_echo_n "checking for non-GNU ld... " >&6; }
35768 fi
35769 if ${lt_cv_path_LD+:} false; then :
35770   $as_echo_n "(cached) " >&6
35771 else
35772   if test -z "$LD"; then
35773   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
35774   for ac_dir in $PATH; do
35775     IFS="$lt_save_ifs"
35776     test -z "$ac_dir" && ac_dir=.
35777     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
35778       lt_cv_path_LD="$ac_dir/$ac_prog"
35779       # Check to see if the program is GNU ld.  I'd rather use --version,
35780       # but apparently some variants of GNU ld only accept -v.
35781       # Break only if it was the GNU/non-GNU ld that we prefer.
35782       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
35783       *GNU* | *'with BFD'*)
35784         test "$with_gnu_ld" != no && break
35785         ;;
35786       *)
35787         test "$with_gnu_ld" != yes && break
35788         ;;
35789       esac
35790     fi
35791   done
35792   IFS="$lt_save_ifs"
35793 else
35794   lt_cv_path_LD="$LD" # Let the user override the test with a path.
35795 fi
35796 fi
35797
35798 LD="$lt_cv_path_LD"
35799 if test -n "$LD"; then
35800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
35801 $as_echo "$LD" >&6; }
35802 else
35803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35804 $as_echo "no" >&6; }
35805 fi
35806 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
35807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
35808 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
35809 if ${lt_cv_prog_gnu_ld+:} false; then :
35810   $as_echo_n "(cached) " >&6
35811 else
35812   # I'd rather use --version here, but apparently some GNU lds only accept -v.
35813 case `$LD -v 2>&1 </dev/null` in
35814 *GNU* | *'with BFD'*)
35815   lt_cv_prog_gnu_ld=yes
35816   ;;
35817 *)
35818   lt_cv_prog_gnu_ld=no
35819   ;;
35820 esac
35821 fi
35822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
35823 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
35824 with_gnu_ld=$lt_cv_prog_gnu_ld
35825
35826
35827
35828
35829
35830
35831
35832
35833
35834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
35835 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
35836 if ${lt_cv_path_NM+:} false; then :
35837   $as_echo_n "(cached) " >&6
35838 else
35839   if test -n "$NM"; then
35840   # Let the user override the test.
35841   lt_cv_path_NM="$NM"
35842 else
35843   lt_nm_to_check="${ac_tool_prefix}nm"
35844   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
35845     lt_nm_to_check="$lt_nm_to_check nm"
35846   fi
35847   for lt_tmp_nm in $lt_nm_to_check; do
35848     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
35849     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
35850       IFS="$lt_save_ifs"
35851       test -z "$ac_dir" && ac_dir=.
35852       tmp_nm="$ac_dir/$lt_tmp_nm"
35853       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
35854         # Check to see if the nm accepts a BSD-compat flag.
35855         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
35856         #   nm: unknown option "B" ignored
35857         # Tru64's nm complains that /dev/null is an invalid object file
35858         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
35859         */dev/null* | *'Invalid file or object type'*)
35860           lt_cv_path_NM="$tmp_nm -B"
35861           break
35862           ;;
35863         *)
35864           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
35865           */dev/null*)
35866             lt_cv_path_NM="$tmp_nm -p"
35867             break
35868             ;;
35869           *)
35870             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
35871             continue # so that we can try to find one that supports BSD flags
35872             ;;
35873           esac
35874           ;;
35875         esac
35876       fi
35877     done
35878     IFS="$lt_save_ifs"
35879   done
35880   : ${lt_cv_path_NM=no}
35881 fi
35882 fi
35883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
35884 $as_echo "$lt_cv_path_NM" >&6; }
35885 if test "$lt_cv_path_NM" != "no"; then
35886   NM="$lt_cv_path_NM"
35887 else
35888   # Didn't find any BSD compatible name lister, look for dumpbin.
35889   if test -n "$DUMPBIN"; then :
35890     # Let the user override the test.
35891   else
35892     if test -n "$ac_tool_prefix"; then
35893   for ac_prog in dumpbin "link -dump"
35894   do
35895     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
35896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
35897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35898 $as_echo_n "checking for $ac_word... " >&6; }
35899 if ${ac_cv_prog_DUMPBIN+:} false; then :
35900   $as_echo_n "(cached) " >&6
35901 else
35902   if test -n "$DUMPBIN"; then
35903   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
35904 else
35905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35906 for as_dir in $PATH
35907 do
35908   IFS=$as_save_IFS
35909   test -z "$as_dir" && as_dir=.
35910     for ac_exec_ext in '' $ac_executable_extensions; do
35911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35912     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
35913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35914     break 2
35915   fi
35916 done
35917   done
35918 IFS=$as_save_IFS
35919
35920 fi
35921 fi
35922 DUMPBIN=$ac_cv_prog_DUMPBIN
35923 if test -n "$DUMPBIN"; then
35924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
35925 $as_echo "$DUMPBIN" >&6; }
35926 else
35927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35928 $as_echo "no" >&6; }
35929 fi
35930
35931
35932     test -n "$DUMPBIN" && break
35933   done
35934 fi
35935 if test -z "$DUMPBIN"; then
35936   ac_ct_DUMPBIN=$DUMPBIN
35937   for ac_prog in dumpbin "link -dump"
35938 do
35939   # Extract the first word of "$ac_prog", so it can be a program name with args.
35940 set dummy $ac_prog; ac_word=$2
35941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35942 $as_echo_n "checking for $ac_word... " >&6; }
35943 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
35944   $as_echo_n "(cached) " >&6
35945 else
35946   if test -n "$ac_ct_DUMPBIN"; then
35947   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
35948 else
35949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35950 for as_dir in $PATH
35951 do
35952   IFS=$as_save_IFS
35953   test -z "$as_dir" && as_dir=.
35954     for ac_exec_ext in '' $ac_executable_extensions; do
35955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35956     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
35957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35958     break 2
35959   fi
35960 done
35961   done
35962 IFS=$as_save_IFS
35963
35964 fi
35965 fi
35966 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
35967 if test -n "$ac_ct_DUMPBIN"; then
35968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
35969 $as_echo "$ac_ct_DUMPBIN" >&6; }
35970 else
35971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35972 $as_echo "no" >&6; }
35973 fi
35974
35975
35976   test -n "$ac_ct_DUMPBIN" && break
35977 done
35978
35979   if test "x$ac_ct_DUMPBIN" = x; then
35980     DUMPBIN=":"
35981   else
35982     case $cross_compiling:$ac_tool_warned in
35983 yes:)
35984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
35985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
35986 ac_tool_warned=yes ;;
35987 esac
35988     DUMPBIN=$ac_ct_DUMPBIN
35989   fi
35990 fi
35991
35992     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
35993     *COFF*)
35994       DUMPBIN="$DUMPBIN -symbols"
35995       ;;
35996     *)
35997       DUMPBIN=:
35998       ;;
35999     esac
36000   fi
36001
36002   if test "$DUMPBIN" != ":"; then
36003     NM="$DUMPBIN"
36004   fi
36005 fi
36006 test -z "$NM" && NM=nm
36007
36008
36009
36010
36011
36012
36013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
36014 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
36015 if ${lt_cv_nm_interface+:} false; then :
36016   $as_echo_n "(cached) " >&6
36017 else
36018   lt_cv_nm_interface="BSD nm"
36019   echo "int some_variable = 0;" > conftest.$ac_ext
36020   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
36021   (eval "$ac_compile" 2>conftest.err)
36022   cat conftest.err >&5
36023   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
36024   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
36025   cat conftest.err >&5
36026   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
36027   cat conftest.out >&5
36028   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
36029     lt_cv_nm_interface="MS dumpbin"
36030   fi
36031   rm -f conftest*
36032 fi
36033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
36034 $as_echo "$lt_cv_nm_interface" >&6; }
36035
36036 # find the maximum length of command line arguments
36037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
36038 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
36039 if ${lt_cv_sys_max_cmd_len+:} false; then :
36040   $as_echo_n "(cached) " >&6
36041 else
36042     i=0
36043   teststring="ABCD"
36044
36045   case $build_os in
36046   msdosdjgpp*)
36047     # On DJGPP, this test can blow up pretty badly due to problems in libc
36048     # (any single argument exceeding 2000 bytes causes a buffer overrun
36049     # during glob expansion).  Even if it were fixed, the result of this
36050     # check would be larger than it should be.
36051     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
36052     ;;
36053
36054   gnu*)
36055     # Under GNU Hurd, this test is not required because there is
36056     # no limit to the length of command line arguments.
36057     # Libtool will interpret -1 as no limit whatsoever
36058     lt_cv_sys_max_cmd_len=-1;
36059     ;;
36060
36061   cygwin* | mingw* | cegcc*)
36062     # On Win9x/ME, this test blows up -- it succeeds, but takes
36063     # about 5 minutes as the teststring grows exponentially.
36064     # Worse, since 9x/ME are not pre-emptively multitasking,
36065     # you end up with a "frozen" computer, even though with patience
36066     # the test eventually succeeds (with a max line length of 256k).
36067     # Instead, let's just punt: use the minimum linelength reported by
36068     # all of the supported platforms: 8192 (on NT/2K/XP).
36069     lt_cv_sys_max_cmd_len=8192;
36070     ;;
36071
36072   mint*)
36073     # On MiNT this can take a long time and run out of memory.
36074     lt_cv_sys_max_cmd_len=8192;
36075     ;;
36076
36077   amigaos*)
36078     # On AmigaOS with pdksh, this test takes hours, literally.
36079     # So we just punt and use a minimum line length of 8192.
36080     lt_cv_sys_max_cmd_len=8192;
36081     ;;
36082
36083   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
36084     # This has been around since 386BSD, at least.  Likely further.
36085     if test -x /sbin/sysctl; then
36086       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
36087     elif test -x /usr/sbin/sysctl; then
36088       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
36089     else
36090       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
36091     fi
36092     # And add a safety zone
36093     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
36094     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
36095     ;;
36096
36097   interix*)
36098     # We know the value 262144 and hardcode it with a safety zone (like BSD)
36099     lt_cv_sys_max_cmd_len=196608
36100     ;;
36101
36102   os2*)
36103     # The test takes a long time on OS/2.
36104     lt_cv_sys_max_cmd_len=8192
36105     ;;
36106
36107   osf*)
36108     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
36109     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
36110     # nice to cause kernel panics so lets avoid the loop below.
36111     # First set a reasonable default.
36112     lt_cv_sys_max_cmd_len=16384
36113     #
36114     if test -x /sbin/sysconfig; then
36115       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
36116         *1*) lt_cv_sys_max_cmd_len=-1 ;;
36117       esac
36118     fi
36119     ;;
36120   sco3.2v5*)
36121     lt_cv_sys_max_cmd_len=102400
36122     ;;
36123   sysv5* | sco5v6* | sysv4.2uw2*)
36124     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
36125     if test -n "$kargmax"; then
36126       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
36127     else
36128       lt_cv_sys_max_cmd_len=32768
36129     fi
36130     ;;
36131   *)
36132     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
36133     if test -n "$lt_cv_sys_max_cmd_len" && \
36134         test undefined != "$lt_cv_sys_max_cmd_len"; then
36135       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
36136       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
36137     else
36138       # Make teststring a little bigger before we do anything with it.
36139       # a 1K string should be a reasonable start.
36140       for i in 1 2 3 4 5 6 7 8 ; do
36141         teststring=$teststring$teststring
36142       done
36143       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
36144       # If test is not a shell built-in, we'll probably end up computing a
36145       # maximum length that is only half of the actual maximum length, but
36146       # we can't tell.
36147       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
36148                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
36149               test $i != 17 # 1/2 MB should be enough
36150       do
36151         i=`expr $i + 1`
36152         teststring=$teststring$teststring
36153       done
36154       # Only check the string length outside the loop.
36155       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
36156       teststring=
36157       # Add a significant safety factor because C++ compilers can tack on
36158       # massive amounts of additional arguments before passing them to the
36159       # linker.  It appears as though 1/2 is a usable value.
36160       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
36161     fi
36162     ;;
36163   esac
36164
36165 fi
36166
36167 if test -n $lt_cv_sys_max_cmd_len ; then
36168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
36169 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
36170 else
36171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
36172 $as_echo "none" >&6; }
36173 fi
36174 max_cmd_len=$lt_cv_sys_max_cmd_len
36175
36176
36177
36178
36179
36180
36181 : ${CP="cp -f"}
36182 : ${MV="mv -f"}
36183 : ${RM="rm -f"}
36184
36185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
36186 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
36187 # Try some XSI features
36188 xsi_shell=no
36189 ( _lt_dummy="a/b/c"
36190   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
36191       = c,a/b,b/c, \
36192     && eval 'test $(( 1 + 1 )) -eq 2 \
36193     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
36194   && xsi_shell=yes
36195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
36196 $as_echo "$xsi_shell" >&6; }
36197
36198
36199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
36200 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
36201 lt_shell_append=no
36202 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
36203     >/dev/null 2>&1 \
36204   && lt_shell_append=yes
36205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
36206 $as_echo "$lt_shell_append" >&6; }
36207
36208
36209 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36210   lt_unset=unset
36211 else
36212   lt_unset=false
36213 fi
36214
36215
36216
36217
36218
36219 # test EBCDIC or ASCII
36220 case `echo X|tr X '\101'` in
36221  A) # ASCII based system
36222     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
36223   lt_SP2NL='tr \040 \012'
36224   lt_NL2SP='tr \015\012 \040\040'
36225   ;;
36226  *) # EBCDIC based system
36227   lt_SP2NL='tr \100 \n'
36228   lt_NL2SP='tr \r\n \100\100'
36229   ;;
36230 esac
36231
36232
36233
36234
36235
36236
36237
36238
36239
36240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
36241 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
36242 if ${lt_cv_to_host_file_cmd+:} false; then :
36243   $as_echo_n "(cached) " >&6
36244 else
36245   case $host in
36246   *-*-mingw* )
36247     case $build in
36248       *-*-mingw* ) # actually msys
36249         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
36250         ;;
36251       *-*-cygwin* )
36252         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
36253         ;;
36254       * ) # otherwise, assume *nix
36255         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
36256         ;;
36257     esac
36258     ;;
36259   *-*-cygwin* )
36260     case $build in
36261       *-*-mingw* ) # actually msys
36262         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
36263         ;;
36264       *-*-cygwin* )
36265         lt_cv_to_host_file_cmd=func_convert_file_noop
36266         ;;
36267       * ) # otherwise, assume *nix
36268         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
36269         ;;
36270     esac
36271     ;;
36272   * ) # unhandled hosts (and "normal" native builds)
36273     lt_cv_to_host_file_cmd=func_convert_file_noop
36274     ;;
36275 esac
36276
36277 fi
36278
36279 to_host_file_cmd=$lt_cv_to_host_file_cmd
36280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
36281 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
36282
36283
36284
36285
36286
36287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
36288 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
36289 if ${lt_cv_to_tool_file_cmd+:} false; then :
36290   $as_echo_n "(cached) " >&6
36291 else
36292   #assume ordinary cross tools, or native build.
36293 lt_cv_to_tool_file_cmd=func_convert_file_noop
36294 case $host in
36295   *-*-mingw* )
36296     case $build in
36297       *-*-mingw* ) # actually msys
36298         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
36299         ;;
36300     esac
36301     ;;
36302 esac
36303
36304 fi
36305
36306 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
36308 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
36309
36310
36311
36312
36313
36314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
36315 $as_echo_n "checking for $LD option to reload object files... " >&6; }
36316 if ${lt_cv_ld_reload_flag+:} false; then :
36317   $as_echo_n "(cached) " >&6
36318 else
36319   lt_cv_ld_reload_flag='-r'
36320 fi
36321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
36322 $as_echo "$lt_cv_ld_reload_flag" >&6; }
36323 reload_flag=$lt_cv_ld_reload_flag
36324 case $reload_flag in
36325 "" | " "*) ;;
36326 *) reload_flag=" $reload_flag" ;;
36327 esac
36328 reload_cmds='$LD$reload_flag -o $output$reload_objs'
36329 case $host_os in
36330   cygwin* | mingw* | pw32* | cegcc*)
36331     if test "$GCC" != yes; then
36332       reload_cmds=false
36333     fi
36334     ;;
36335   darwin*)
36336     if test "$GCC" = yes; then
36337       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
36338     else
36339       reload_cmds='$LD$reload_flag -o $output$reload_objs'
36340     fi
36341     ;;
36342 esac
36343
36344
36345
36346
36347
36348
36349
36350
36351
36352 if test -n "$ac_tool_prefix"; then
36353   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
36354 set dummy ${ac_tool_prefix}objdump; ac_word=$2
36355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36356 $as_echo_n "checking for $ac_word... " >&6; }
36357 if ${ac_cv_prog_OBJDUMP+:} false; then :
36358   $as_echo_n "(cached) " >&6
36359 else
36360   if test -n "$OBJDUMP"; then
36361   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
36362 else
36363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36364 for as_dir in $PATH
36365 do
36366   IFS=$as_save_IFS
36367   test -z "$as_dir" && as_dir=.
36368     for ac_exec_ext in '' $ac_executable_extensions; do
36369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36370     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
36371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36372     break 2
36373   fi
36374 done
36375   done
36376 IFS=$as_save_IFS
36377
36378 fi
36379 fi
36380 OBJDUMP=$ac_cv_prog_OBJDUMP
36381 if test -n "$OBJDUMP"; then
36382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
36383 $as_echo "$OBJDUMP" >&6; }
36384 else
36385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36386 $as_echo "no" >&6; }
36387 fi
36388
36389
36390 fi
36391 if test -z "$ac_cv_prog_OBJDUMP"; then
36392   ac_ct_OBJDUMP=$OBJDUMP
36393   # Extract the first word of "objdump", so it can be a program name with args.
36394 set dummy objdump; ac_word=$2
36395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36396 $as_echo_n "checking for $ac_word... " >&6; }
36397 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
36398   $as_echo_n "(cached) " >&6
36399 else
36400   if test -n "$ac_ct_OBJDUMP"; then
36401   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
36402 else
36403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36404 for as_dir in $PATH
36405 do
36406   IFS=$as_save_IFS
36407   test -z "$as_dir" && as_dir=.
36408     for ac_exec_ext in '' $ac_executable_extensions; do
36409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36410     ac_cv_prog_ac_ct_OBJDUMP="objdump"
36411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36412     break 2
36413   fi
36414 done
36415   done
36416 IFS=$as_save_IFS
36417
36418 fi
36419 fi
36420 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
36421 if test -n "$ac_ct_OBJDUMP"; then
36422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
36423 $as_echo "$ac_ct_OBJDUMP" >&6; }
36424 else
36425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36426 $as_echo "no" >&6; }
36427 fi
36428
36429   if test "x$ac_ct_OBJDUMP" = x; then
36430     OBJDUMP="false"
36431   else
36432     case $cross_compiling:$ac_tool_warned in
36433 yes:)
36434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36436 ac_tool_warned=yes ;;
36437 esac
36438     OBJDUMP=$ac_ct_OBJDUMP
36439   fi
36440 else
36441   OBJDUMP="$ac_cv_prog_OBJDUMP"
36442 fi
36443
36444 test -z "$OBJDUMP" && OBJDUMP=objdump
36445
36446
36447
36448
36449
36450
36451
36452
36453
36454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
36455 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
36456 if ${lt_cv_deplibs_check_method+:} false; then :
36457   $as_echo_n "(cached) " >&6
36458 else
36459   lt_cv_file_magic_cmd='$MAGIC_CMD'
36460 lt_cv_file_magic_test_file=
36461 lt_cv_deplibs_check_method='unknown'
36462 # Need to set the preceding variable on all platforms that support
36463 # interlibrary dependencies.
36464 # 'none' -- dependencies not supported.
36465 # `unknown' -- same as none, but documents that we really don't know.
36466 # 'pass_all' -- all dependencies passed with no checks.
36467 # 'test_compile' -- check by making test program.
36468 # 'file_magic [[regex]]' -- check by looking for files in library path
36469 # which responds to the $file_magic_cmd with a given extended regex.
36470 # If you have `file' or equivalent on your system and you're not sure
36471 # whether `pass_all' will *always* work, you probably want this one.
36472
36473 case $host_os in
36474 aix[4-9]*)
36475   lt_cv_deplibs_check_method=pass_all
36476   ;;
36477
36478 beos*)
36479   lt_cv_deplibs_check_method=pass_all
36480   ;;
36481
36482 bsdi[45]*)
36483   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
36484   lt_cv_file_magic_cmd='/usr/bin/file -L'
36485   lt_cv_file_magic_test_file=/shlib/libc.so
36486   ;;
36487
36488 cygwin*)
36489   # func_win32_libid is a shell function defined in ltmain.sh
36490   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
36491   lt_cv_file_magic_cmd='func_win32_libid'
36492   ;;
36493
36494 mingw* | pw32*)
36495   # Base MSYS/MinGW do not provide the 'file' command needed by
36496   # func_win32_libid shell function, so use a weaker test based on 'objdump',
36497   # unless we find 'file', for example because we are cross-compiling.
36498   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
36499   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
36500     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
36501     lt_cv_file_magic_cmd='func_win32_libid'
36502   else
36503     # Keep this pattern in sync with the one in func_win32_libid.
36504     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
36505     lt_cv_file_magic_cmd='$OBJDUMP -f'
36506   fi
36507   ;;
36508
36509 cegcc*)
36510   # use the weaker test based on 'objdump'. See mingw*.
36511   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
36512   lt_cv_file_magic_cmd='$OBJDUMP -f'
36513   ;;
36514
36515 darwin* | rhapsody*)
36516   lt_cv_deplibs_check_method=pass_all
36517   ;;
36518
36519 freebsd* | dragonfly*)
36520   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
36521     case $host_cpu in
36522     i*86 )
36523       # Not sure whether the presence of OpenBSD here was a mistake.
36524       # Let's accept both of them until this is cleared up.
36525       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
36526       lt_cv_file_magic_cmd=/usr/bin/file
36527       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
36528       ;;
36529     esac
36530   else
36531     lt_cv_deplibs_check_method=pass_all
36532   fi
36533   ;;
36534
36535 haiku*)
36536   lt_cv_deplibs_check_method=pass_all
36537   ;;
36538
36539 hpux10.20* | hpux11*)
36540   lt_cv_file_magic_cmd=/usr/bin/file
36541   case $host_cpu in
36542   ia64*)
36543     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
36544     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
36545     ;;
36546   hppa*64*)
36547     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]'
36548     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
36549     ;;
36550   *)
36551     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
36552     lt_cv_file_magic_test_file=/usr/lib/libc.sl
36553     ;;
36554   esac
36555   ;;
36556
36557 interix[3-9]*)
36558   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
36559   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
36560   ;;
36561
36562 irix5* | irix6* | nonstopux*)
36563   case $LD in
36564   *-32|*"-32 ") libmagic=32-bit;;
36565   *-n32|*"-n32 ") libmagic=N32;;
36566   *-64|*"-64 ") libmagic=64-bit;;
36567   *) libmagic=never-match;;
36568   esac
36569   lt_cv_deplibs_check_method=pass_all
36570   ;;
36571
36572 # This must be glibc/ELF.
36573 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
36574   lt_cv_deplibs_check_method=pass_all
36575   ;;
36576
36577 netbsd* | netbsdelf*-gnu)
36578   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
36579     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
36580   else
36581     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
36582   fi
36583   ;;
36584
36585 newos6*)
36586   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
36587   lt_cv_file_magic_cmd=/usr/bin/file
36588   lt_cv_file_magic_test_file=/usr/lib/libnls.so
36589   ;;
36590
36591 *nto* | *qnx*)
36592   lt_cv_deplibs_check_method=pass_all
36593   ;;
36594
36595 openbsd*)
36596   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
36597     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
36598   else
36599     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
36600   fi
36601   ;;
36602
36603 osf3* | osf4* | osf5*)
36604   lt_cv_deplibs_check_method=pass_all
36605   ;;
36606
36607 rdos*)
36608   lt_cv_deplibs_check_method=pass_all
36609   ;;
36610
36611 solaris*)
36612   lt_cv_deplibs_check_method=pass_all
36613   ;;
36614
36615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
36616   lt_cv_deplibs_check_method=pass_all
36617   ;;
36618
36619 sysv4 | sysv4.3*)
36620   case $host_vendor in
36621   motorola)
36622     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]'
36623     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
36624     ;;
36625   ncr)
36626     lt_cv_deplibs_check_method=pass_all
36627     ;;
36628   sequent)
36629     lt_cv_file_magic_cmd='/bin/file'
36630     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
36631     ;;
36632   sni)
36633     lt_cv_file_magic_cmd='/bin/file'
36634     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
36635     lt_cv_file_magic_test_file=/lib/libc.so
36636     ;;
36637   siemens)
36638     lt_cv_deplibs_check_method=pass_all
36639     ;;
36640   pc)
36641     lt_cv_deplibs_check_method=pass_all
36642     ;;
36643   esac
36644   ;;
36645
36646 tpf*)
36647   lt_cv_deplibs_check_method=pass_all
36648   ;;
36649 esac
36650
36651 fi
36652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
36653 $as_echo "$lt_cv_deplibs_check_method" >&6; }
36654
36655 file_magic_glob=
36656 want_nocaseglob=no
36657 if test "$build" = "$host"; then
36658   case $host_os in
36659   mingw* | pw32*)
36660     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
36661       want_nocaseglob=yes
36662     else
36663       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
36664     fi
36665     ;;
36666   esac
36667 fi
36668
36669 file_magic_cmd=$lt_cv_file_magic_cmd
36670 deplibs_check_method=$lt_cv_deplibs_check_method
36671 test -z "$deplibs_check_method" && deplibs_check_method=unknown
36672
36673
36674
36675
36676
36677
36678
36679
36680
36681
36682
36683
36684
36685
36686
36687
36688
36689
36690
36691
36692
36693
36694 if test -n "$ac_tool_prefix"; then
36695   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
36696 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
36697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36698 $as_echo_n "checking for $ac_word... " >&6; }
36699 if ${ac_cv_prog_DLLTOOL+:} false; then :
36700   $as_echo_n "(cached) " >&6
36701 else
36702   if test -n "$DLLTOOL"; then
36703   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
36704 else
36705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36706 for as_dir in $PATH
36707 do
36708   IFS=$as_save_IFS
36709   test -z "$as_dir" && as_dir=.
36710     for ac_exec_ext in '' $ac_executable_extensions; do
36711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36712     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
36713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36714     break 2
36715   fi
36716 done
36717   done
36718 IFS=$as_save_IFS
36719
36720 fi
36721 fi
36722 DLLTOOL=$ac_cv_prog_DLLTOOL
36723 if test -n "$DLLTOOL"; then
36724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
36725 $as_echo "$DLLTOOL" >&6; }
36726 else
36727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36728 $as_echo "no" >&6; }
36729 fi
36730
36731
36732 fi
36733 if test -z "$ac_cv_prog_DLLTOOL"; then
36734   ac_ct_DLLTOOL=$DLLTOOL
36735   # Extract the first word of "dlltool", so it can be a program name with args.
36736 set dummy dlltool; ac_word=$2
36737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36738 $as_echo_n "checking for $ac_word... " >&6; }
36739 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
36740   $as_echo_n "(cached) " >&6
36741 else
36742   if test -n "$ac_ct_DLLTOOL"; then
36743   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
36744 else
36745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36746 for as_dir in $PATH
36747 do
36748   IFS=$as_save_IFS
36749   test -z "$as_dir" && as_dir=.
36750     for ac_exec_ext in '' $ac_executable_extensions; do
36751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36752     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
36753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36754     break 2
36755   fi
36756 done
36757   done
36758 IFS=$as_save_IFS
36759
36760 fi
36761 fi
36762 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
36763 if test -n "$ac_ct_DLLTOOL"; then
36764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
36765 $as_echo "$ac_ct_DLLTOOL" >&6; }
36766 else
36767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36768 $as_echo "no" >&6; }
36769 fi
36770
36771   if test "x$ac_ct_DLLTOOL" = x; then
36772     DLLTOOL="false"
36773   else
36774     case $cross_compiling:$ac_tool_warned in
36775 yes:)
36776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36778 ac_tool_warned=yes ;;
36779 esac
36780     DLLTOOL=$ac_ct_DLLTOOL
36781   fi
36782 else
36783   DLLTOOL="$ac_cv_prog_DLLTOOL"
36784 fi
36785
36786 test -z "$DLLTOOL" && DLLTOOL=dlltool
36787
36788
36789
36790
36791
36792
36793
36794
36795
36796
36797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
36798 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
36799 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
36800   $as_echo_n "(cached) " >&6
36801 else
36802   lt_cv_sharedlib_from_linklib_cmd='unknown'
36803
36804 case $host_os in
36805 cygwin* | mingw* | pw32* | cegcc*)
36806   # two different shell functions defined in ltmain.sh
36807   # decide which to use based on capabilities of $DLLTOOL
36808   case `$DLLTOOL --help 2>&1` in
36809   *--identify-strict*)
36810     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
36811     ;;
36812   *)
36813     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
36814     ;;
36815   esac
36816   ;;
36817 *)
36818   # fallback: assume linklib IS sharedlib
36819   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
36820   ;;
36821 esac
36822
36823 fi
36824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
36825 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
36826 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
36827 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
36828
36829
36830
36831
36832
36833
36834
36835 if test -n "$ac_tool_prefix"; then
36836   for ac_prog in ar
36837   do
36838     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
36839 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36841 $as_echo_n "checking for $ac_word... " >&6; }
36842 if ${ac_cv_prog_AR+:} false; then :
36843   $as_echo_n "(cached) " >&6
36844 else
36845   if test -n "$AR"; then
36846   ac_cv_prog_AR="$AR" # Let the user override the test.
36847 else
36848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36849 for as_dir in $PATH
36850 do
36851   IFS=$as_save_IFS
36852   test -z "$as_dir" && as_dir=.
36853     for ac_exec_ext in '' $ac_executable_extensions; do
36854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36855     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
36856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36857     break 2
36858   fi
36859 done
36860   done
36861 IFS=$as_save_IFS
36862
36863 fi
36864 fi
36865 AR=$ac_cv_prog_AR
36866 if test -n "$AR"; then
36867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
36868 $as_echo "$AR" >&6; }
36869 else
36870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36871 $as_echo "no" >&6; }
36872 fi
36873
36874
36875     test -n "$AR" && break
36876   done
36877 fi
36878 if test -z "$AR"; then
36879   ac_ct_AR=$AR
36880   for ac_prog in ar
36881 do
36882   # Extract the first word of "$ac_prog", so it can be a program name with args.
36883 set dummy $ac_prog; ac_word=$2
36884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36885 $as_echo_n "checking for $ac_word... " >&6; }
36886 if ${ac_cv_prog_ac_ct_AR+:} false; then :
36887   $as_echo_n "(cached) " >&6
36888 else
36889   if test -n "$ac_ct_AR"; then
36890   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
36891 else
36892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36893 for as_dir in $PATH
36894 do
36895   IFS=$as_save_IFS
36896   test -z "$as_dir" && as_dir=.
36897     for ac_exec_ext in '' $ac_executable_extensions; do
36898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36899     ac_cv_prog_ac_ct_AR="$ac_prog"
36900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36901     break 2
36902   fi
36903 done
36904   done
36905 IFS=$as_save_IFS
36906
36907 fi
36908 fi
36909 ac_ct_AR=$ac_cv_prog_ac_ct_AR
36910 if test -n "$ac_ct_AR"; then
36911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
36912 $as_echo "$ac_ct_AR" >&6; }
36913 else
36914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36915 $as_echo "no" >&6; }
36916 fi
36917
36918
36919   test -n "$ac_ct_AR" && break
36920 done
36921
36922   if test "x$ac_ct_AR" = x; then
36923     AR="false"
36924   else
36925     case $cross_compiling:$ac_tool_warned in
36926 yes:)
36927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36929 ac_tool_warned=yes ;;
36930 esac
36931     AR=$ac_ct_AR
36932   fi
36933 fi
36934
36935 : ${AR=ar}
36936 : ${AR_FLAGS=cru}
36937
36938
36939
36940
36941
36942
36943
36944
36945
36946
36947
36948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
36949 $as_echo_n "checking for archiver @FILE support... " >&6; }
36950 if ${lt_cv_ar_at_file+:} false; then :
36951   $as_echo_n "(cached) " >&6
36952 else
36953   lt_cv_ar_at_file=no
36954    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36955 /* end confdefs.h.  */
36956
36957 int
36958 main ()
36959 {
36960
36961   ;
36962   return 0;
36963 }
36964 _ACEOF
36965 if ac_fn_c_try_compile "$LINENO"; then :
36966   echo conftest.$ac_objext > conftest.lst
36967       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
36968       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
36969   (eval $lt_ar_try) 2>&5
36970   ac_status=$?
36971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36972   test $ac_status = 0; }
36973       if test "$ac_status" -eq 0; then
36974         # Ensure the archiver fails upon bogus file names.
36975         rm -f conftest.$ac_objext libconftest.a
36976         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
36977   (eval $lt_ar_try) 2>&5
36978   ac_status=$?
36979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36980   test $ac_status = 0; }
36981         if test "$ac_status" -ne 0; then
36982           lt_cv_ar_at_file=@
36983         fi
36984       fi
36985       rm -f conftest.* libconftest.a
36986
36987 fi
36988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36989
36990 fi
36991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
36992 $as_echo "$lt_cv_ar_at_file" >&6; }
36993
36994 if test "x$lt_cv_ar_at_file" = xno; then
36995   archiver_list_spec=
36996 else
36997   archiver_list_spec=$lt_cv_ar_at_file
36998 fi
36999
37000
37001
37002
37003
37004
37005
37006 if test -n "$ac_tool_prefix"; then
37007   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37008 set dummy ${ac_tool_prefix}strip; ac_word=$2
37009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37010 $as_echo_n "checking for $ac_word... " >&6; }
37011 if ${ac_cv_prog_STRIP+:} false; then :
37012   $as_echo_n "(cached) " >&6
37013 else
37014   if test -n "$STRIP"; then
37015   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37016 else
37017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37018 for as_dir in $PATH
37019 do
37020   IFS=$as_save_IFS
37021   test -z "$as_dir" && as_dir=.
37022     for ac_exec_ext in '' $ac_executable_extensions; do
37023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37024     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
37025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37026     break 2
37027   fi
37028 done
37029   done
37030 IFS=$as_save_IFS
37031
37032 fi
37033 fi
37034 STRIP=$ac_cv_prog_STRIP
37035 if test -n "$STRIP"; then
37036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
37037 $as_echo "$STRIP" >&6; }
37038 else
37039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37040 $as_echo "no" >&6; }
37041 fi
37042
37043
37044 fi
37045 if test -z "$ac_cv_prog_STRIP"; then
37046   ac_ct_STRIP=$STRIP
37047   # Extract the first word of "strip", so it can be a program name with args.
37048 set dummy strip; ac_word=$2
37049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37050 $as_echo_n "checking for $ac_word... " >&6; }
37051 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
37052   $as_echo_n "(cached) " >&6
37053 else
37054   if test -n "$ac_ct_STRIP"; then
37055   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37056 else
37057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37058 for as_dir in $PATH
37059 do
37060   IFS=$as_save_IFS
37061   test -z "$as_dir" && as_dir=.
37062     for ac_exec_ext in '' $ac_executable_extensions; do
37063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37064     ac_cv_prog_ac_ct_STRIP="strip"
37065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37066     break 2
37067   fi
37068 done
37069   done
37070 IFS=$as_save_IFS
37071
37072 fi
37073 fi
37074 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37075 if test -n "$ac_ct_STRIP"; then
37076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
37077 $as_echo "$ac_ct_STRIP" >&6; }
37078 else
37079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37080 $as_echo "no" >&6; }
37081 fi
37082
37083   if test "x$ac_ct_STRIP" = x; then
37084     STRIP=":"
37085   else
37086     case $cross_compiling:$ac_tool_warned in
37087 yes:)
37088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37090 ac_tool_warned=yes ;;
37091 esac
37092     STRIP=$ac_ct_STRIP
37093   fi
37094 else
37095   STRIP="$ac_cv_prog_STRIP"
37096 fi
37097
37098 test -z "$STRIP" && STRIP=:
37099
37100
37101
37102
37103
37104
37105 if test -n "$ac_tool_prefix"; then
37106   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37107 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37109 $as_echo_n "checking for $ac_word... " >&6; }
37110 if ${ac_cv_prog_RANLIB+:} false; then :
37111   $as_echo_n "(cached) " >&6
37112 else
37113   if test -n "$RANLIB"; then
37114   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37115 else
37116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37117 for as_dir in $PATH
37118 do
37119   IFS=$as_save_IFS
37120   test -z "$as_dir" && as_dir=.
37121     for ac_exec_ext in '' $ac_executable_extensions; do
37122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37123     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37125     break 2
37126   fi
37127 done
37128   done
37129 IFS=$as_save_IFS
37130
37131 fi
37132 fi
37133 RANLIB=$ac_cv_prog_RANLIB
37134 if test -n "$RANLIB"; then
37135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
37136 $as_echo "$RANLIB" >&6; }
37137 else
37138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37139 $as_echo "no" >&6; }
37140 fi
37141
37142
37143 fi
37144 if test -z "$ac_cv_prog_RANLIB"; then
37145   ac_ct_RANLIB=$RANLIB
37146   # Extract the first word of "ranlib", so it can be a program name with args.
37147 set dummy ranlib; ac_word=$2
37148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37149 $as_echo_n "checking for $ac_word... " >&6; }
37150 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
37151   $as_echo_n "(cached) " >&6
37152 else
37153   if test -n "$ac_ct_RANLIB"; then
37154   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37155 else
37156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37157 for as_dir in $PATH
37158 do
37159   IFS=$as_save_IFS
37160   test -z "$as_dir" && as_dir=.
37161     for ac_exec_ext in '' $ac_executable_extensions; do
37162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37163     ac_cv_prog_ac_ct_RANLIB="ranlib"
37164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37165     break 2
37166   fi
37167 done
37168   done
37169 IFS=$as_save_IFS
37170
37171 fi
37172 fi
37173 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37174 if test -n "$ac_ct_RANLIB"; then
37175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
37176 $as_echo "$ac_ct_RANLIB" >&6; }
37177 else
37178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37179 $as_echo "no" >&6; }
37180 fi
37181
37182   if test "x$ac_ct_RANLIB" = x; then
37183     RANLIB=":"
37184   else
37185     case $cross_compiling:$ac_tool_warned in
37186 yes:)
37187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37189 ac_tool_warned=yes ;;
37190 esac
37191     RANLIB=$ac_ct_RANLIB
37192   fi
37193 else
37194   RANLIB="$ac_cv_prog_RANLIB"
37195 fi
37196
37197 test -z "$RANLIB" && RANLIB=:
37198
37199
37200
37201
37202
37203
37204 # Determine commands to create old-style static archives.
37205 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
37206 old_postinstall_cmds='chmod 644 $oldlib'
37207 old_postuninstall_cmds=
37208
37209 if test -n "$RANLIB"; then
37210   case $host_os in
37211   openbsd*)
37212     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
37213     ;;
37214   *)
37215     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
37216     ;;
37217   esac
37218   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
37219 fi
37220
37221 case $host_os in
37222   darwin*)
37223     lock_old_archive_extraction=yes ;;
37224   *)
37225     lock_old_archive_extraction=no ;;
37226 esac
37227
37228
37229
37230
37231
37232
37233
37234
37235
37236
37237
37238
37239
37240
37241
37242
37243
37244
37245
37246
37247
37248
37249
37250
37251
37252
37253
37254
37255
37256
37257
37258
37259
37260
37261
37262
37263
37264
37265
37266 # If no C compiler was specified, use CC.
37267 LTCC=${LTCC-"$CC"}
37268
37269 # If no C compiler flags were specified, use CFLAGS.
37270 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
37271
37272 # Allow CC to be a program name with arguments.
37273 compiler=$CC
37274
37275
37276 # Check for command to grab the raw symbol name followed by C symbol from nm.
37277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
37278 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
37279 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
37280   $as_echo_n "(cached) " >&6
37281 else
37282
37283 # These are sane defaults that work on at least a few old systems.
37284 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
37285
37286 # Character class describing NM global symbol codes.
37287 symcode='[BCDEGRST]'
37288
37289 # Regexp to match symbols that can be accessed directly from C.
37290 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
37291
37292 # Define system-specific variables.
37293 case $host_os in
37294 aix*)
37295   symcode='[BCDT]'
37296   ;;
37297 cygwin* | mingw* | pw32* | cegcc*)
37298   symcode='[ABCDGISTW]'
37299   ;;
37300 hpux*)
37301   if test "$host_cpu" = ia64; then
37302     symcode='[ABCDEGRST]'
37303   fi
37304   ;;
37305 irix* | nonstopux*)
37306   symcode='[BCDEGRST]'
37307   ;;
37308 osf*)
37309   symcode='[BCDEGQRST]'
37310   ;;
37311 solaris*)
37312   symcode='[BDRT]'
37313   ;;
37314 sco3.2v5*)
37315   symcode='[DT]'
37316   ;;
37317 sysv4.2uw2*)
37318   symcode='[DT]'
37319   ;;
37320 sysv5* | sco5v6* | unixware* | OpenUNIX*)
37321   symcode='[ABDT]'
37322   ;;
37323 sysv4)
37324   symcode='[DFNSTU]'
37325   ;;
37326 esac
37327
37328 # If we're using GNU nm, then use its standard symbol codes.
37329 case `$NM -V 2>&1` in
37330 *GNU* | *'with BFD'*)
37331   symcode='[ABCDGIRSTW]' ;;
37332 esac
37333
37334 # Transform an extracted symbol line into a proper C declaration.
37335 # Some systems (esp. on ia64) link data and code symbols differently,
37336 # so use this general approach.
37337 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
37338
37339 # Transform an extracted symbol line into symbol name and symbol address
37340 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
37341 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
37342
37343 # Handle CRLF in mingw tool chain
37344 opt_cr=
37345 case $build_os in
37346 mingw*)
37347   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
37348   ;;
37349 esac
37350
37351 # Try without a prefix underscore, then with it.
37352 for ac_symprfx in "" "_"; do
37353
37354   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
37355   symxfrm="\\1 $ac_symprfx\\2 \\2"
37356
37357   # Write the raw and C identifiers.
37358   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
37359     # Fake it for dumpbin and say T for any non-static function
37360     # and D for any global variable.
37361     # Also find C++ and __fastcall symbols from MSVC++,
37362     # which start with @ or ?.
37363     lt_cv_sys_global_symbol_pipe="$AWK '"\
37364 "     {last_section=section; section=\$ 3};"\
37365 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
37366 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
37367 "     \$ 0!~/External *\|/{next};"\
37368 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
37369 "     {if(hide[section]) next};"\
37370 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
37371 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
37372 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
37373 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
37374 "     ' prfx=^$ac_symprfx"
37375   else
37376     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
37377   fi
37378   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
37379
37380   # Check to see that the pipe works correctly.
37381   pipe_works=no
37382
37383   rm -f conftest*
37384   cat > conftest.$ac_ext <<_LT_EOF
37385 #ifdef __cplusplus
37386 extern "C" {
37387 #endif
37388 char nm_test_var;
37389 void nm_test_func(void);
37390 void nm_test_func(void){}
37391 #ifdef __cplusplus
37392 }
37393 #endif
37394 int main(){nm_test_var='a';nm_test_func();return(0);}
37395 _LT_EOF
37396
37397   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37398   (eval $ac_compile) 2>&5
37399   ac_status=$?
37400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37401   test $ac_status = 0; }; then
37402     # Now try to grab the symbols.
37403     nlist=conftest.nm
37404     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
37405   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
37406   ac_status=$?
37407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37408   test $ac_status = 0; } && test -s "$nlist"; then
37409       # Try sorting and uniquifying the output.
37410       if sort "$nlist" | uniq > "$nlist"T; then
37411         mv -f "$nlist"T "$nlist"
37412       else
37413         rm -f "$nlist"T
37414       fi
37415
37416       # Make sure that we snagged all the symbols we need.
37417       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
37418         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
37419           cat <<_LT_EOF > conftest.$ac_ext
37420 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
37421 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
37422 /* DATA imports from DLLs on WIN32 con't be const, because runtime
37423    relocations are performed -- see ld's documentation on pseudo-relocs.  */
37424 # define LT_DLSYM_CONST
37425 #elif defined(__osf__)
37426 /* This system does not cope well with relocations in const data.  */
37427 # define LT_DLSYM_CONST
37428 #else
37429 # define LT_DLSYM_CONST const
37430 #endif
37431
37432 #ifdef __cplusplus
37433 extern "C" {
37434 #endif
37435
37436 _LT_EOF
37437           # Now generate the symbol file.
37438           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
37439
37440           cat <<_LT_EOF >> conftest.$ac_ext
37441
37442 /* The mapping between symbol names and symbols.  */
37443 LT_DLSYM_CONST struct {
37444   const char *name;
37445   void       *address;
37446 }
37447 lt__PROGRAM__LTX_preloaded_symbols[] =
37448 {
37449   { "@PROGRAM@", (void *) 0 },
37450 _LT_EOF
37451           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
37452           cat <<\_LT_EOF >> conftest.$ac_ext
37453   {0, (void *) 0}
37454 };
37455
37456 /* This works around a problem in FreeBSD linker */
37457 #ifdef FREEBSD_WORKAROUND
37458 static const void *lt_preloaded_setup() {
37459   return lt__PROGRAM__LTX_preloaded_symbols;
37460 }
37461 #endif
37462
37463 #ifdef __cplusplus
37464 }
37465 #endif
37466 _LT_EOF
37467           # Now try linking the two files.
37468           mv conftest.$ac_objext conftstm.$ac_objext
37469           lt_globsym_save_LIBS=$LIBS
37470           lt_globsym_save_CFLAGS=$CFLAGS
37471           LIBS="conftstm.$ac_objext"
37472           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
37473           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
37474   (eval $ac_link) 2>&5
37475   ac_status=$?
37476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37477   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
37478             pipe_works=yes
37479           fi
37480           LIBS=$lt_globsym_save_LIBS
37481           CFLAGS=$lt_globsym_save_CFLAGS
37482         else
37483           echo "cannot find nm_test_func in $nlist" >&5
37484         fi
37485       else
37486         echo "cannot find nm_test_var in $nlist" >&5
37487       fi
37488     else
37489       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
37490     fi
37491   else
37492     echo "$progname: failed program was:" >&5
37493     cat conftest.$ac_ext >&5
37494   fi
37495   rm -rf conftest* conftst*
37496
37497   # Do not use the global_symbol_pipe unless it works.
37498   if test "$pipe_works" = yes; then
37499     break
37500   else
37501     lt_cv_sys_global_symbol_pipe=
37502   fi
37503 done
37504
37505 fi
37506
37507 if test -z "$lt_cv_sys_global_symbol_pipe"; then
37508   lt_cv_sys_global_symbol_to_cdecl=
37509 fi
37510 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
37511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
37512 $as_echo "failed" >&6; }
37513 else
37514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
37515 $as_echo "ok" >&6; }
37516 fi
37517
37518 # Response file support.
37519 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
37520   nm_file_list_spec='@'
37521 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
37522   nm_file_list_spec='@'
37523 fi
37524
37525
37526
37527
37528
37529
37530
37531
37532
37533
37534
37535
37536
37537
37538
37539
37540
37541
37542
37543
37544
37545
37546
37547
37548
37549
37550
37551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
37552 $as_echo_n "checking for sysroot... " >&6; }
37553
37554 # Check whether --with-sysroot was given.
37555 if test "${with_sysroot+set}" = set; then :
37556   withval=$with_sysroot;
37557 else
37558   with_sysroot=no
37559 fi
37560
37561
37562 lt_sysroot=
37563 case ${with_sysroot} in #(
37564  yes)
37565    if test "$GCC" = yes; then
37566      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
37567    fi
37568    ;; #(
37569  /*)
37570    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
37571    ;; #(
37572  no|'')
37573    ;; #(
37574  *)
37575    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
37576 $as_echo "${with_sysroot}" >&6; }
37577    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
37578    ;;
37579 esac
37580
37581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
37582 $as_echo "${lt_sysroot:-no}" >&6; }
37583
37584
37585
37586
37587
37588 # Check whether --enable-libtool-lock was given.
37589 if test "${enable_libtool_lock+set}" = set; then :
37590   enableval=$enable_libtool_lock;
37591 fi
37592
37593 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
37594
37595 # Some flags need to be propagated to the compiler or linker for good
37596 # libtool support.
37597 case $host in
37598 ia64-*-hpux*)
37599   # Find out which ABI we are using.
37600   echo 'int i;' > conftest.$ac_ext
37601   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37602   (eval $ac_compile) 2>&5
37603   ac_status=$?
37604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37605   test $ac_status = 0; }; then
37606     case `/usr/bin/file conftest.$ac_objext` in
37607       *ELF-32*)
37608         HPUX_IA64_MODE="32"
37609         ;;
37610       *ELF-64*)
37611         HPUX_IA64_MODE="64"
37612         ;;
37613     esac
37614   fi
37615   rm -rf conftest*
37616   ;;
37617 *-*-irix6*)
37618   # Find out which ABI we are using.
37619   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
37620   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37621   (eval $ac_compile) 2>&5
37622   ac_status=$?
37623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37624   test $ac_status = 0; }; then
37625     if test "$lt_cv_prog_gnu_ld" = yes; then
37626       case `/usr/bin/file conftest.$ac_objext` in
37627         *32-bit*)
37628           LD="${LD-ld} -melf32bsmip"
37629           ;;
37630         *N32*)
37631           LD="${LD-ld} -melf32bmipn32"
37632           ;;
37633         *64-bit*)
37634           LD="${LD-ld} -melf64bmip"
37635         ;;
37636       esac
37637     else
37638       case `/usr/bin/file conftest.$ac_objext` in
37639         *32-bit*)
37640           LD="${LD-ld} -32"
37641           ;;
37642         *N32*)
37643           LD="${LD-ld} -n32"
37644           ;;
37645         *64-bit*)
37646           LD="${LD-ld} -64"
37647           ;;
37648       esac
37649     fi
37650   fi
37651   rm -rf conftest*
37652   ;;
37653
37654 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
37655 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
37656   # Find out which ABI we are using.
37657   echo 'int i;' > conftest.$ac_ext
37658   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37659   (eval $ac_compile) 2>&5
37660   ac_status=$?
37661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37662   test $ac_status = 0; }; then
37663     case `/usr/bin/file conftest.o` in
37664       *32-bit*)
37665         case $host in
37666           x86_64-*kfreebsd*-gnu)
37667             LD="${LD-ld} -m elf_i386_fbsd"
37668             ;;
37669           x86_64-*linux*)
37670             case `/usr/bin/file conftest.o` in
37671               *x86-64*)
37672                 LD="${LD-ld} -m elf32_x86_64"
37673                 ;;
37674               *)
37675                 LD="${LD-ld} -m elf_i386"
37676                 ;;
37677             esac
37678             ;;
37679           powerpc64le-*)
37680             LD="${LD-ld} -m elf32lppclinux"
37681             ;;
37682           powerpc64-*)
37683             LD="${LD-ld} -m elf32ppclinux"
37684             ;;
37685           s390x-*linux*)
37686             LD="${LD-ld} -m elf_s390"
37687             ;;
37688           sparc64-*linux*)
37689             LD="${LD-ld} -m elf32_sparc"
37690             ;;
37691         esac
37692         ;;
37693       *64-bit*)
37694         case $host in
37695           x86_64-*kfreebsd*-gnu)
37696             LD="${LD-ld} -m elf_x86_64_fbsd"
37697             ;;
37698           x86_64-*linux*)
37699             LD="${LD-ld} -m elf_x86_64"
37700             ;;
37701           powerpcle-*)
37702             LD="${LD-ld} -m elf64lppc"
37703             ;;
37704           powerpc-*)
37705             LD="${LD-ld} -m elf64ppc"
37706             ;;
37707           s390*-*linux*|s390*-*tpf*)
37708             LD="${LD-ld} -m elf64_s390"
37709             ;;
37710           sparc*-*linux*)
37711             LD="${LD-ld} -m elf64_sparc"
37712             ;;
37713         esac
37714         ;;
37715     esac
37716   fi
37717   rm -rf conftest*
37718   ;;
37719
37720 *-*-sco3.2v5*)
37721   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
37722   SAVE_CFLAGS="$CFLAGS"
37723   CFLAGS="$CFLAGS -belf"
37724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
37725 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
37726 if ${lt_cv_cc_needs_belf+:} false; then :
37727   $as_echo_n "(cached) " >&6
37728 else
37729   ac_ext=c
37730 ac_cpp='$CPP $CPPFLAGS'
37731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37734
37735      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37736 /* end confdefs.h.  */
37737
37738 int
37739 main ()
37740 {
37741
37742   ;
37743   return 0;
37744 }
37745 _ACEOF
37746 if ac_fn_c_try_link "$LINENO"; then :
37747   lt_cv_cc_needs_belf=yes
37748 else
37749   lt_cv_cc_needs_belf=no
37750 fi
37751 rm -f core conftest.err conftest.$ac_objext \
37752     conftest$ac_exeext conftest.$ac_ext
37753      ac_ext=c
37754 ac_cpp='$CPP $CPPFLAGS'
37755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37758
37759 fi
37760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
37761 $as_echo "$lt_cv_cc_needs_belf" >&6; }
37762   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
37763     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
37764     CFLAGS="$SAVE_CFLAGS"
37765   fi
37766   ;;
37767 *-*solaris*)
37768   # Find out which ABI we are using.
37769   echo 'int i;' > conftest.$ac_ext
37770   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37771   (eval $ac_compile) 2>&5
37772   ac_status=$?
37773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37774   test $ac_status = 0; }; then
37775     case `/usr/bin/file conftest.o` in
37776     *64-bit*)
37777       case $lt_cv_prog_gnu_ld in
37778       yes*)
37779         case $host in
37780         i?86-*-solaris*)
37781           LD="${LD-ld} -m elf_x86_64"
37782           ;;
37783         sparc*-*-solaris*)
37784           LD="${LD-ld} -m elf64_sparc"
37785           ;;
37786         esac
37787         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
37788         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
37789           LD="${LD-ld}_sol2"
37790         fi
37791         ;;
37792       *)
37793         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
37794           LD="${LD-ld} -64"
37795         fi
37796         ;;
37797       esac
37798       ;;
37799     esac
37800   fi
37801   rm -rf conftest*
37802   ;;
37803 esac
37804
37805 need_locks="$enable_libtool_lock"
37806
37807 if test -n "$ac_tool_prefix"; then
37808   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
37809 set dummy ${ac_tool_prefix}mt; ac_word=$2
37810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37811 $as_echo_n "checking for $ac_word... " >&6; }
37812 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
37813   $as_echo_n "(cached) " >&6
37814 else
37815   if test -n "$MANIFEST_TOOL"; then
37816   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
37817 else
37818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37819 for as_dir in $PATH
37820 do
37821   IFS=$as_save_IFS
37822   test -z "$as_dir" && as_dir=.
37823     for ac_exec_ext in '' $ac_executable_extensions; do
37824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37825     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
37826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37827     break 2
37828   fi
37829 done
37830   done
37831 IFS=$as_save_IFS
37832
37833 fi
37834 fi
37835 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
37836 if test -n "$MANIFEST_TOOL"; then
37837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
37838 $as_echo "$MANIFEST_TOOL" >&6; }
37839 else
37840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37841 $as_echo "no" >&6; }
37842 fi
37843
37844
37845 fi
37846 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
37847   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
37848   # Extract the first word of "mt", so it can be a program name with args.
37849 set dummy mt; ac_word=$2
37850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37851 $as_echo_n "checking for $ac_word... " >&6; }
37852 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
37853   $as_echo_n "(cached) " >&6
37854 else
37855   if test -n "$ac_ct_MANIFEST_TOOL"; then
37856   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
37857 else
37858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37859 for as_dir in $PATH
37860 do
37861   IFS=$as_save_IFS
37862   test -z "$as_dir" && as_dir=.
37863     for ac_exec_ext in '' $ac_executable_extensions; do
37864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37865     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
37866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37867     break 2
37868   fi
37869 done
37870   done
37871 IFS=$as_save_IFS
37872
37873 fi
37874 fi
37875 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
37876 if test -n "$ac_ct_MANIFEST_TOOL"; then
37877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
37878 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
37879 else
37880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37881 $as_echo "no" >&6; }
37882 fi
37883
37884   if test "x$ac_ct_MANIFEST_TOOL" = x; then
37885     MANIFEST_TOOL=":"
37886   else
37887     case $cross_compiling:$ac_tool_warned in
37888 yes:)
37889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37891 ac_tool_warned=yes ;;
37892 esac
37893     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
37894   fi
37895 else
37896   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
37897 fi
37898
37899 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
37900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
37901 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
37902 if ${lt_cv_path_mainfest_tool+:} false; then :
37903   $as_echo_n "(cached) " >&6
37904 else
37905   lt_cv_path_mainfest_tool=no
37906   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
37907   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
37908   cat conftest.err >&5
37909   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
37910     lt_cv_path_mainfest_tool=yes
37911   fi
37912   rm -f conftest*
37913 fi
37914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
37915 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
37916 if test "x$lt_cv_path_mainfest_tool" != xyes; then
37917   MANIFEST_TOOL=:
37918 fi
37919
37920
37921
37922
37923
37924
37925   case $host_os in
37926     rhapsody* | darwin*)
37927     if test -n "$ac_tool_prefix"; then
37928   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
37929 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
37930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37931 $as_echo_n "checking for $ac_word... " >&6; }
37932 if ${ac_cv_prog_DSYMUTIL+:} false; then :
37933   $as_echo_n "(cached) " >&6
37934 else
37935   if test -n "$DSYMUTIL"; then
37936   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
37937 else
37938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37939 for as_dir in $PATH
37940 do
37941   IFS=$as_save_IFS
37942   test -z "$as_dir" && as_dir=.
37943     for ac_exec_ext in '' $ac_executable_extensions; do
37944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37945     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
37946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37947     break 2
37948   fi
37949 done
37950   done
37951 IFS=$as_save_IFS
37952
37953 fi
37954 fi
37955 DSYMUTIL=$ac_cv_prog_DSYMUTIL
37956 if test -n "$DSYMUTIL"; then
37957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
37958 $as_echo "$DSYMUTIL" >&6; }
37959 else
37960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37961 $as_echo "no" >&6; }
37962 fi
37963
37964
37965 fi
37966 if test -z "$ac_cv_prog_DSYMUTIL"; then
37967   ac_ct_DSYMUTIL=$DSYMUTIL
37968   # Extract the first word of "dsymutil", so it can be a program name with args.
37969 set dummy dsymutil; ac_word=$2
37970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37971 $as_echo_n "checking for $ac_word... " >&6; }
37972 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
37973   $as_echo_n "(cached) " >&6
37974 else
37975   if test -n "$ac_ct_DSYMUTIL"; then
37976   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
37977 else
37978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37979 for as_dir in $PATH
37980 do
37981   IFS=$as_save_IFS
37982   test -z "$as_dir" && as_dir=.
37983     for ac_exec_ext in '' $ac_executable_extensions; do
37984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37985     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
37986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37987     break 2
37988   fi
37989 done
37990   done
37991 IFS=$as_save_IFS
37992
37993 fi
37994 fi
37995 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
37996 if test -n "$ac_ct_DSYMUTIL"; then
37997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
37998 $as_echo "$ac_ct_DSYMUTIL" >&6; }
37999 else
38000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38001 $as_echo "no" >&6; }
38002 fi
38003
38004   if test "x$ac_ct_DSYMUTIL" = x; then
38005     DSYMUTIL=":"
38006   else
38007     case $cross_compiling:$ac_tool_warned in
38008 yes:)
38009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38011 ac_tool_warned=yes ;;
38012 esac
38013     DSYMUTIL=$ac_ct_DSYMUTIL
38014   fi
38015 else
38016   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
38017 fi
38018
38019     if test -n "$ac_tool_prefix"; then
38020   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
38021 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
38022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38023 $as_echo_n "checking for $ac_word... " >&6; }
38024 if ${ac_cv_prog_NMEDIT+:} false; then :
38025   $as_echo_n "(cached) " >&6
38026 else
38027   if test -n "$NMEDIT"; then
38028   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
38029 else
38030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38031 for as_dir in $PATH
38032 do
38033   IFS=$as_save_IFS
38034   test -z "$as_dir" && as_dir=.
38035     for ac_exec_ext in '' $ac_executable_extensions; do
38036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38037     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
38038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38039     break 2
38040   fi
38041 done
38042   done
38043 IFS=$as_save_IFS
38044
38045 fi
38046 fi
38047 NMEDIT=$ac_cv_prog_NMEDIT
38048 if test -n "$NMEDIT"; then
38049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
38050 $as_echo "$NMEDIT" >&6; }
38051 else
38052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38053 $as_echo "no" >&6; }
38054 fi
38055
38056
38057 fi
38058 if test -z "$ac_cv_prog_NMEDIT"; then
38059   ac_ct_NMEDIT=$NMEDIT
38060   # Extract the first word of "nmedit", so it can be a program name with args.
38061 set dummy nmedit; ac_word=$2
38062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38063 $as_echo_n "checking for $ac_word... " >&6; }
38064 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
38065   $as_echo_n "(cached) " >&6
38066 else
38067   if test -n "$ac_ct_NMEDIT"; then
38068   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
38069 else
38070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38071 for as_dir in $PATH
38072 do
38073   IFS=$as_save_IFS
38074   test -z "$as_dir" && as_dir=.
38075     for ac_exec_ext in '' $ac_executable_extensions; do
38076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38077     ac_cv_prog_ac_ct_NMEDIT="nmedit"
38078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38079     break 2
38080   fi
38081 done
38082   done
38083 IFS=$as_save_IFS
38084
38085 fi
38086 fi
38087 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
38088 if test -n "$ac_ct_NMEDIT"; then
38089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
38090 $as_echo "$ac_ct_NMEDIT" >&6; }
38091 else
38092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38093 $as_echo "no" >&6; }
38094 fi
38095
38096   if test "x$ac_ct_NMEDIT" = x; then
38097     NMEDIT=":"
38098   else
38099     case $cross_compiling:$ac_tool_warned in
38100 yes:)
38101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38103 ac_tool_warned=yes ;;
38104 esac
38105     NMEDIT=$ac_ct_NMEDIT
38106   fi
38107 else
38108   NMEDIT="$ac_cv_prog_NMEDIT"
38109 fi
38110
38111     if test -n "$ac_tool_prefix"; then
38112   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
38113 set dummy ${ac_tool_prefix}lipo; ac_word=$2
38114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38115 $as_echo_n "checking for $ac_word... " >&6; }
38116 if ${ac_cv_prog_LIPO+:} false; then :
38117   $as_echo_n "(cached) " >&6
38118 else
38119   if test -n "$LIPO"; then
38120   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
38121 else
38122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38123 for as_dir in $PATH
38124 do
38125   IFS=$as_save_IFS
38126   test -z "$as_dir" && as_dir=.
38127     for ac_exec_ext in '' $ac_executable_extensions; do
38128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38129     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
38130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38131     break 2
38132   fi
38133 done
38134   done
38135 IFS=$as_save_IFS
38136
38137 fi
38138 fi
38139 LIPO=$ac_cv_prog_LIPO
38140 if test -n "$LIPO"; then
38141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
38142 $as_echo "$LIPO" >&6; }
38143 else
38144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38145 $as_echo "no" >&6; }
38146 fi
38147
38148
38149 fi
38150 if test -z "$ac_cv_prog_LIPO"; then
38151   ac_ct_LIPO=$LIPO
38152   # Extract the first word of "lipo", so it can be a program name with args.
38153 set dummy lipo; ac_word=$2
38154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38155 $as_echo_n "checking for $ac_word... " >&6; }
38156 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
38157   $as_echo_n "(cached) " >&6
38158 else
38159   if test -n "$ac_ct_LIPO"; then
38160   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
38161 else
38162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38163 for as_dir in $PATH
38164 do
38165   IFS=$as_save_IFS
38166   test -z "$as_dir" && as_dir=.
38167     for ac_exec_ext in '' $ac_executable_extensions; do
38168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38169     ac_cv_prog_ac_ct_LIPO="lipo"
38170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38171     break 2
38172   fi
38173 done
38174   done
38175 IFS=$as_save_IFS
38176
38177 fi
38178 fi
38179 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
38180 if test -n "$ac_ct_LIPO"; then
38181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
38182 $as_echo "$ac_ct_LIPO" >&6; }
38183 else
38184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38185 $as_echo "no" >&6; }
38186 fi
38187
38188   if test "x$ac_ct_LIPO" = x; then
38189     LIPO=":"
38190   else
38191     case $cross_compiling:$ac_tool_warned in
38192 yes:)
38193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38195 ac_tool_warned=yes ;;
38196 esac
38197     LIPO=$ac_ct_LIPO
38198   fi
38199 else
38200   LIPO="$ac_cv_prog_LIPO"
38201 fi
38202
38203     if test -n "$ac_tool_prefix"; then
38204   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
38205 set dummy ${ac_tool_prefix}otool; ac_word=$2
38206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38207 $as_echo_n "checking for $ac_word... " >&6; }
38208 if ${ac_cv_prog_OTOOL+:} false; then :
38209   $as_echo_n "(cached) " >&6
38210 else
38211   if test -n "$OTOOL"; then
38212   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
38213 else
38214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38215 for as_dir in $PATH
38216 do
38217   IFS=$as_save_IFS
38218   test -z "$as_dir" && as_dir=.
38219     for ac_exec_ext in '' $ac_executable_extensions; do
38220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38221     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
38222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38223     break 2
38224   fi
38225 done
38226   done
38227 IFS=$as_save_IFS
38228
38229 fi
38230 fi
38231 OTOOL=$ac_cv_prog_OTOOL
38232 if test -n "$OTOOL"; then
38233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
38234 $as_echo "$OTOOL" >&6; }
38235 else
38236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38237 $as_echo "no" >&6; }
38238 fi
38239
38240
38241 fi
38242 if test -z "$ac_cv_prog_OTOOL"; then
38243   ac_ct_OTOOL=$OTOOL
38244   # Extract the first word of "otool", so it can be a program name with args.
38245 set dummy otool; ac_word=$2
38246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38247 $as_echo_n "checking for $ac_word... " >&6; }
38248 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
38249   $as_echo_n "(cached) " >&6
38250 else
38251   if test -n "$ac_ct_OTOOL"; then
38252   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
38253 else
38254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38255 for as_dir in $PATH
38256 do
38257   IFS=$as_save_IFS
38258   test -z "$as_dir" && as_dir=.
38259     for ac_exec_ext in '' $ac_executable_extensions; do
38260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38261     ac_cv_prog_ac_ct_OTOOL="otool"
38262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38263     break 2
38264   fi
38265 done
38266   done
38267 IFS=$as_save_IFS
38268
38269 fi
38270 fi
38271 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
38272 if test -n "$ac_ct_OTOOL"; then
38273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
38274 $as_echo "$ac_ct_OTOOL" >&6; }
38275 else
38276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38277 $as_echo "no" >&6; }
38278 fi
38279
38280   if test "x$ac_ct_OTOOL" = x; then
38281     OTOOL=":"
38282   else
38283     case $cross_compiling:$ac_tool_warned in
38284 yes:)
38285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38287 ac_tool_warned=yes ;;
38288 esac
38289     OTOOL=$ac_ct_OTOOL
38290   fi
38291 else
38292   OTOOL="$ac_cv_prog_OTOOL"
38293 fi
38294
38295     if test -n "$ac_tool_prefix"; then
38296   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
38297 set dummy ${ac_tool_prefix}otool64; ac_word=$2
38298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38299 $as_echo_n "checking for $ac_word... " >&6; }
38300 if ${ac_cv_prog_OTOOL64+:} false; then :
38301   $as_echo_n "(cached) " >&6
38302 else
38303   if test -n "$OTOOL64"; then
38304   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
38305 else
38306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38307 for as_dir in $PATH
38308 do
38309   IFS=$as_save_IFS
38310   test -z "$as_dir" && as_dir=.
38311     for ac_exec_ext in '' $ac_executable_extensions; do
38312   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38313     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
38314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38315     break 2
38316   fi
38317 done
38318   done
38319 IFS=$as_save_IFS
38320
38321 fi
38322 fi
38323 OTOOL64=$ac_cv_prog_OTOOL64
38324 if test -n "$OTOOL64"; then
38325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
38326 $as_echo "$OTOOL64" >&6; }
38327 else
38328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38329 $as_echo "no" >&6; }
38330 fi
38331
38332
38333 fi
38334 if test -z "$ac_cv_prog_OTOOL64"; then
38335   ac_ct_OTOOL64=$OTOOL64
38336   # Extract the first word of "otool64", so it can be a program name with args.
38337 set dummy otool64; ac_word=$2
38338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38339 $as_echo_n "checking for $ac_word... " >&6; }
38340 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
38341   $as_echo_n "(cached) " >&6
38342 else
38343   if test -n "$ac_ct_OTOOL64"; then
38344   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
38345 else
38346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38347 for as_dir in $PATH
38348 do
38349   IFS=$as_save_IFS
38350   test -z "$as_dir" && as_dir=.
38351     for ac_exec_ext in '' $ac_executable_extensions; do
38352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38353     ac_cv_prog_ac_ct_OTOOL64="otool64"
38354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38355     break 2
38356   fi
38357 done
38358   done
38359 IFS=$as_save_IFS
38360
38361 fi
38362 fi
38363 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
38364 if test -n "$ac_ct_OTOOL64"; then
38365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
38366 $as_echo "$ac_ct_OTOOL64" >&6; }
38367 else
38368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38369 $as_echo "no" >&6; }
38370 fi
38371
38372   if test "x$ac_ct_OTOOL64" = x; then
38373     OTOOL64=":"
38374   else
38375     case $cross_compiling:$ac_tool_warned in
38376 yes:)
38377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38379 ac_tool_warned=yes ;;
38380 esac
38381     OTOOL64=$ac_ct_OTOOL64
38382   fi
38383 else
38384   OTOOL64="$ac_cv_prog_OTOOL64"
38385 fi
38386
38387
38388
38389
38390
38391
38392
38393
38394
38395
38396
38397
38398
38399
38400
38401
38402
38403
38404
38405
38406
38407
38408
38409
38410
38411
38412
38413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
38414 $as_echo_n "checking for -single_module linker flag... " >&6; }
38415 if ${lt_cv_apple_cc_single_mod+:} false; then :
38416   $as_echo_n "(cached) " >&6
38417 else
38418   lt_cv_apple_cc_single_mod=no
38419       if test -z "${LT_MULTI_MODULE}"; then
38420         # By default we will add the -single_module flag. You can override
38421         # by either setting the environment variable LT_MULTI_MODULE
38422         # non-empty at configure time, or by adding -multi_module to the
38423         # link flags.
38424         rm -rf libconftest.dylib*
38425         echo "int foo(void){return 1;}" > conftest.c
38426         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
38427 -dynamiclib -Wl,-single_module conftest.c" >&5
38428         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
38429           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
38430         _lt_result=$?
38431         # If there is a non-empty error log, and "single_module"
38432         # appears in it, assume the flag caused a linker warning
38433         if test -s conftest.err && $GREP single_module conftest.err; then
38434           cat conftest.err >&5
38435         # Otherwise, if the output was created with a 0 exit code from
38436         # the compiler, it worked.
38437         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
38438           lt_cv_apple_cc_single_mod=yes
38439         else
38440           cat conftest.err >&5
38441         fi
38442         rm -rf libconftest.dylib*
38443         rm -f conftest.*
38444       fi
38445 fi
38446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
38447 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
38448
38449     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
38450 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
38451 if ${lt_cv_ld_exported_symbols_list+:} false; then :
38452   $as_echo_n "(cached) " >&6
38453 else
38454   lt_cv_ld_exported_symbols_list=no
38455       save_LDFLAGS=$LDFLAGS
38456       echo "_main" > conftest.sym
38457       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
38458       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38459 /* end confdefs.h.  */
38460
38461 int
38462 main ()
38463 {
38464
38465   ;
38466   return 0;
38467 }
38468 _ACEOF
38469 if ac_fn_c_try_link "$LINENO"; then :
38470   lt_cv_ld_exported_symbols_list=yes
38471 else
38472   lt_cv_ld_exported_symbols_list=no
38473 fi
38474 rm -f core conftest.err conftest.$ac_objext \
38475     conftest$ac_exeext conftest.$ac_ext
38476         LDFLAGS="$save_LDFLAGS"
38477
38478 fi
38479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
38480 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
38481
38482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
38483 $as_echo_n "checking for -force_load linker flag... " >&6; }
38484 if ${lt_cv_ld_force_load+:} false; then :
38485   $as_echo_n "(cached) " >&6
38486 else
38487   lt_cv_ld_force_load=no
38488       cat > conftest.c << _LT_EOF
38489 int forced_loaded() { return 2;}
38490 _LT_EOF
38491       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
38492       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
38493       echo "$AR cru libconftest.a conftest.o" >&5
38494       $AR cru libconftest.a conftest.o 2>&5
38495       echo "$RANLIB libconftest.a" >&5
38496       $RANLIB libconftest.a 2>&5
38497       cat > conftest.c << _LT_EOF
38498 int main() { return 0;}
38499 _LT_EOF
38500       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
38501       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
38502       _lt_result=$?
38503       if test -s conftest.err && $GREP force_load conftest.err; then
38504         cat conftest.err >&5
38505       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
38506         lt_cv_ld_force_load=yes
38507       else
38508         cat conftest.err >&5
38509       fi
38510         rm -f conftest.err libconftest.a conftest conftest.c
38511         rm -rf conftest.dSYM
38512
38513 fi
38514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
38515 $as_echo "$lt_cv_ld_force_load" >&6; }
38516     case $host_os in
38517     rhapsody* | darwin1.[012])
38518       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
38519     darwin1.*)
38520       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
38521     darwin*) # darwin 5.x on
38522       # if running on 10.5 or later, the deployment target defaults
38523       # to the OS version, if on x86, and 10.4, the deployment
38524       # target defaults to 10.4. Don't you love it?
38525       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
38526         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
38527           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
38528         10.[012]*)
38529           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
38530         10.*)
38531           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
38532       esac
38533     ;;
38534   esac
38535     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
38536       _lt_dar_single_mod='$single_module'
38537     fi
38538     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
38539       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
38540     else
38541       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
38542     fi
38543     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
38544       _lt_dsymutil='~$DSYMUTIL $lib || :'
38545     else
38546       _lt_dsymutil=
38547     fi
38548     ;;
38549   esac
38550
38551 for ac_header in dlfcn.h
38552 do :
38553   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
38554 "
38555 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
38556   cat >>confdefs.h <<_ACEOF
38557 #define HAVE_DLFCN_H 1
38558 _ACEOF
38559
38560 fi
38561
38562 done
38563
38564
38565
38566 func_stripname_cnf ()
38567 {
38568   case ${2} in
38569   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
38570   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
38571   esac
38572 } # func_stripname_cnf
38573
38574
38575
38576
38577
38578 # Set options
38579 # Check whether --enable-static was given.
38580 if test "${enable_static+set}" = set; then :
38581   enableval=$enable_static; p=${PACKAGE-default}
38582     case $enableval in
38583     yes) enable_static=yes ;;
38584     no) enable_static=no ;;
38585     *)
38586      enable_static=no
38587       # Look at the argument we got.  We use all the common list separators.
38588       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
38589       for pkg in $enableval; do
38590         IFS="$lt_save_ifs"
38591         if test "X$pkg" = "X$p"; then
38592           enable_static=yes
38593         fi
38594       done
38595       IFS="$lt_save_ifs"
38596       ;;
38597     esac
38598 else
38599   enable_static=no
38600 fi
38601
38602
38603
38604
38605
38606
38607
38608
38609
38610
38611         enable_dlopen=no
38612
38613
38614   enable_win32_dll=no
38615
38616
38617             # Check whether --enable-shared was given.
38618 if test "${enable_shared+set}" = set; then :
38619   enableval=$enable_shared; p=${PACKAGE-default}
38620     case $enableval in
38621     yes) enable_shared=yes ;;
38622     no) enable_shared=no ;;
38623     *)
38624       enable_shared=no
38625       # Look at the argument we got.  We use all the common list separators.
38626       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
38627       for pkg in $enableval; do
38628         IFS="$lt_save_ifs"
38629         if test "X$pkg" = "X$p"; then
38630           enable_shared=yes
38631         fi
38632       done
38633       IFS="$lt_save_ifs"
38634       ;;
38635     esac
38636 else
38637   enable_shared=yes
38638 fi
38639
38640
38641
38642
38643
38644
38645
38646
38647
38648
38649
38650 # Check whether --with-pic was given.
38651 if test "${with_pic+set}" = set; then :
38652   withval=$with_pic; lt_p=${PACKAGE-default}
38653     case $withval in
38654     yes|no) pic_mode=$withval ;;
38655     *)
38656       pic_mode=default
38657       # Look at the argument we got.  We use all the common list separators.
38658       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
38659       for lt_pkg in $withval; do
38660         IFS="$lt_save_ifs"
38661         if test "X$lt_pkg" = "X$lt_p"; then
38662           pic_mode=yes
38663         fi
38664       done
38665       IFS="$lt_save_ifs"
38666       ;;
38667     esac
38668 else
38669   pic_mode=default
38670 fi
38671
38672
38673 test -z "$pic_mode" && pic_mode=default
38674
38675
38676
38677
38678
38679
38680
38681   # Check whether --enable-fast-install was given.
38682 if test "${enable_fast_install+set}" = set; then :
38683   enableval=$enable_fast_install; p=${PACKAGE-default}
38684     case $enableval in
38685     yes) enable_fast_install=yes ;;
38686     no) enable_fast_install=no ;;
38687     *)
38688       enable_fast_install=no
38689       # Look at the argument we got.  We use all the common list separators.
38690       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
38691       for pkg in $enableval; do
38692         IFS="$lt_save_ifs"
38693         if test "X$pkg" = "X$p"; then
38694           enable_fast_install=yes
38695         fi
38696       done
38697       IFS="$lt_save_ifs"
38698       ;;
38699     esac
38700 else
38701   enable_fast_install=yes
38702 fi
38703
38704
38705
38706
38707
38708
38709
38710
38711
38712
38713
38714 # This can be used to rebuild libtool when needed
38715 LIBTOOL_DEPS="$ltmain"
38716
38717 # Always use our own libtool.
38718 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
38719
38720
38721
38722
38723
38724
38725
38726
38727
38728
38729
38730
38731
38732
38733
38734
38735
38736
38737
38738
38739
38740
38741
38742
38743
38744
38745
38746
38747
38748
38749 test -z "$LN_S" && LN_S="ln -s"
38750
38751
38752
38753
38754
38755
38756
38757
38758
38759
38760
38761
38762
38763
38764 if test -n "${ZSH_VERSION+set}" ; then
38765    setopt NO_GLOB_SUBST
38766 fi
38767
38768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
38769 $as_echo_n "checking for objdir... " >&6; }
38770 if ${lt_cv_objdir+:} false; then :
38771   $as_echo_n "(cached) " >&6
38772 else
38773   rm -f .libs 2>/dev/null
38774 mkdir .libs 2>/dev/null
38775 if test -d .libs; then
38776   lt_cv_objdir=.libs
38777 else
38778   # MS-DOS does not allow filenames that begin with a dot.
38779   lt_cv_objdir=_libs
38780 fi
38781 rmdir .libs 2>/dev/null
38782 fi
38783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
38784 $as_echo "$lt_cv_objdir" >&6; }
38785 objdir=$lt_cv_objdir
38786
38787
38788
38789
38790
38791 cat >>confdefs.h <<_ACEOF
38792 #define LT_OBJDIR "$lt_cv_objdir/"
38793 _ACEOF
38794
38795
38796
38797
38798 case $host_os in
38799 aix3*)
38800   # AIX sometimes has problems with the GCC collect2 program.  For some
38801   # reason, if we set the COLLECT_NAMES environment variable, the problems
38802   # vanish in a puff of smoke.
38803   if test "X${COLLECT_NAMES+set}" != Xset; then
38804     COLLECT_NAMES=
38805     export COLLECT_NAMES
38806   fi
38807   ;;
38808 esac
38809
38810 # Global variables:
38811 ofile=libtool
38812 can_build_shared=yes
38813
38814 # All known linkers require a `.a' archive for static linking (except MSVC,
38815 # which needs '.lib').
38816 libext=a
38817
38818 with_gnu_ld="$lt_cv_prog_gnu_ld"
38819
38820 old_CC="$CC"
38821 old_CFLAGS="$CFLAGS"
38822
38823 # Set sane defaults for various variables
38824 test -z "$CC" && CC=cc
38825 test -z "$LTCC" && LTCC=$CC
38826 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
38827 test -z "$LD" && LD=ld
38828 test -z "$ac_objext" && ac_objext=o
38829
38830 for cc_temp in $compiler""; do
38831   case $cc_temp in
38832     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
38833     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
38834     \-*) ;;
38835     *) break;;
38836   esac
38837 done
38838 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
38839
38840
38841 # Only perform the check for file, if the check method requires it
38842 test -z "$MAGIC_CMD" && MAGIC_CMD=file
38843 case $deplibs_check_method in
38844 file_magic*)
38845   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
38846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
38847 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
38848 if ${lt_cv_path_MAGIC_CMD+:} false; then :
38849   $as_echo_n "(cached) " >&6
38850 else
38851   case $MAGIC_CMD in
38852 [\\/*] |  ?:[\\/]*)
38853   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
38854   ;;
38855 *)
38856   lt_save_MAGIC_CMD="$MAGIC_CMD"
38857   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
38858   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
38859   for ac_dir in $ac_dummy; do
38860     IFS="$lt_save_ifs"
38861     test -z "$ac_dir" && ac_dir=.
38862     if test -f $ac_dir/${ac_tool_prefix}file; then
38863       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
38864       if test -n "$file_magic_test_file"; then
38865         case $deplibs_check_method in
38866         "file_magic "*)
38867           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
38868           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
38869           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
38870             $EGREP "$file_magic_regex" > /dev/null; then
38871             :
38872           else
38873             cat <<_LT_EOF 1>&2
38874
38875 *** Warning: the command libtool uses to detect shared libraries,
38876 *** $file_magic_cmd, produces output that libtool cannot recognize.
38877 *** The result is that libtool may fail to recognize shared libraries
38878 *** as such.  This will affect the creation of libtool libraries that
38879 *** depend on shared libraries, but programs linked with such libtool
38880 *** libraries will work regardless of this problem.  Nevertheless, you
38881 *** may want to report the problem to your system manager and/or to
38882 *** bug-libtool@gnu.org
38883
38884 _LT_EOF
38885           fi ;;
38886         esac
38887       fi
38888       break
38889     fi
38890   done
38891   IFS="$lt_save_ifs"
38892   MAGIC_CMD="$lt_save_MAGIC_CMD"
38893   ;;
38894 esac
38895 fi
38896
38897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
38898 if test -n "$MAGIC_CMD"; then
38899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
38900 $as_echo "$MAGIC_CMD" >&6; }
38901 else
38902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38903 $as_echo "no" >&6; }
38904 fi
38905
38906
38907
38908
38909
38910 if test -z "$lt_cv_path_MAGIC_CMD"; then
38911   if test -n "$ac_tool_prefix"; then
38912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
38913 $as_echo_n "checking for file... " >&6; }
38914 if ${lt_cv_path_MAGIC_CMD+:} false; then :
38915   $as_echo_n "(cached) " >&6
38916 else
38917   case $MAGIC_CMD in
38918 [\\/*] |  ?:[\\/]*)
38919   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
38920   ;;
38921 *)
38922   lt_save_MAGIC_CMD="$MAGIC_CMD"
38923   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
38924   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
38925   for ac_dir in $ac_dummy; do
38926     IFS="$lt_save_ifs"
38927     test -z "$ac_dir" && ac_dir=.
38928     if test -f $ac_dir/file; then
38929       lt_cv_path_MAGIC_CMD="$ac_dir/file"
38930       if test -n "$file_magic_test_file"; then
38931         case $deplibs_check_method in
38932         "file_magic "*)
38933           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
38934           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
38935           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
38936             $EGREP "$file_magic_regex" > /dev/null; then
38937             :
38938           else
38939             cat <<_LT_EOF 1>&2
38940
38941 *** Warning: the command libtool uses to detect shared libraries,
38942 *** $file_magic_cmd, produces output that libtool cannot recognize.
38943 *** The result is that libtool may fail to recognize shared libraries
38944 *** as such.  This will affect the creation of libtool libraries that
38945 *** depend on shared libraries, but programs linked with such libtool
38946 *** libraries will work regardless of this problem.  Nevertheless, you
38947 *** may want to report the problem to your system manager and/or to
38948 *** bug-libtool@gnu.org
38949
38950 _LT_EOF
38951           fi ;;
38952         esac
38953       fi
38954       break
38955     fi
38956   done
38957   IFS="$lt_save_ifs"
38958   MAGIC_CMD="$lt_save_MAGIC_CMD"
38959   ;;
38960 esac
38961 fi
38962
38963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
38964 if test -n "$MAGIC_CMD"; then
38965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
38966 $as_echo "$MAGIC_CMD" >&6; }
38967 else
38968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38969 $as_echo "no" >&6; }
38970 fi
38971
38972
38973   else
38974     MAGIC_CMD=:
38975   fi
38976 fi
38977
38978   fi
38979   ;;
38980 esac
38981
38982 # Use C for the default configuration in the libtool script
38983
38984 lt_save_CC="$CC"
38985 ac_ext=c
38986 ac_cpp='$CPP $CPPFLAGS'
38987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38990
38991
38992 # Source file extension for C test sources.
38993 ac_ext=c
38994
38995 # Object file extension for compiled C test sources.
38996 objext=o
38997 objext=$objext
38998
38999 # Code to be used in simple compile tests
39000 lt_simple_compile_test_code="int some_variable = 0;"
39001
39002 # Code to be used in simple link tests
39003 lt_simple_link_test_code='int main(){return(0);}'
39004
39005
39006
39007
39008
39009
39010
39011 # If no C compiler was specified, use CC.
39012 LTCC=${LTCC-"$CC"}
39013
39014 # If no C compiler flags were specified, use CFLAGS.
39015 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
39016
39017 # Allow CC to be a program name with arguments.
39018 compiler=$CC
39019
39020 # Save the default compiler, since it gets overwritten when the other
39021 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
39022 compiler_DEFAULT=$CC
39023
39024 # save warnings/boilerplate of simple test code
39025 ac_outfile=conftest.$ac_objext
39026 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
39027 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
39028 _lt_compiler_boilerplate=`cat conftest.err`
39029 $RM conftest*
39030
39031 ac_outfile=conftest.$ac_objext
39032 echo "$lt_simple_link_test_code" >conftest.$ac_ext
39033 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
39034 _lt_linker_boilerplate=`cat conftest.err`
39035 $RM -r conftest*
39036
39037
39038 ## CAVEAT EMPTOR:
39039 ## There is no encapsulation within the following macros, do not change
39040 ## the running order or otherwise move them around unless you know exactly
39041 ## what you are doing...
39042 if test -n "$compiler"; then
39043
39044 lt_prog_compiler_no_builtin_flag=
39045
39046 if test "$GCC" = yes; then
39047   case $cc_basename in
39048   nvcc*)
39049     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
39050   *)
39051     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
39052   esac
39053
39054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
39055 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
39056 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
39057   $as_echo_n "(cached) " >&6
39058 else
39059   lt_cv_prog_compiler_rtti_exceptions=no
39060    ac_outfile=conftest.$ac_objext
39061    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
39062    lt_compiler_flag="-fno-rtti -fno-exceptions"
39063    # Insert the option either (1) after the last *FLAGS variable, or
39064    # (2) before a word containing "conftest.", or (3) at the end.
39065    # Note that $ac_compile itself does not contain backslashes and begins
39066    # with a dollar sign (not a hyphen), so the echo should work correctly.
39067    # The option is referenced via a variable to avoid confusing sed.
39068    lt_compile=`echo "$ac_compile" | $SED \
39069    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39071    -e 's:$: $lt_compiler_flag:'`
39072    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
39073    (eval "$lt_compile" 2>conftest.err)
39074    ac_status=$?
39075    cat conftest.err >&5
39076    echo "$as_me:$LINENO: \$? = $ac_status" >&5
39077    if (exit $ac_status) && test -s "$ac_outfile"; then
39078      # The compiler can only warn and ignore the option if not recognized
39079      # So say no if there are warnings other than the usual output.
39080      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
39081      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
39082      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
39083        lt_cv_prog_compiler_rtti_exceptions=yes
39084      fi
39085    fi
39086    $RM conftest*
39087
39088 fi
39089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
39090 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
39091
39092 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
39093     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
39094 else
39095     :
39096 fi
39097
39098 fi
39099
39100
39101
39102
39103
39104
39105   lt_prog_compiler_wl=
39106 lt_prog_compiler_pic=
39107 lt_prog_compiler_static=
39108
39109
39110   if test "$GCC" = yes; then
39111     lt_prog_compiler_wl='-Wl,'
39112     lt_prog_compiler_static='-static'
39113
39114     case $host_os in
39115       aix*)
39116       # All AIX code is PIC.
39117       if test "$host_cpu" = ia64; then
39118         # AIX 5 now supports IA64 processor
39119         lt_prog_compiler_static='-Bstatic'
39120       fi
39121       ;;
39122
39123     amigaos*)
39124       case $host_cpu in
39125       powerpc)
39126             # see comment about AmigaOS4 .so support
39127             lt_prog_compiler_pic='-fPIC'
39128         ;;
39129       m68k)
39130             # FIXME: we need at least 68020 code to build shared libraries, but
39131             # adding the `-m68020' flag to GCC prevents building anything better,
39132             # like `-m68040'.
39133             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
39134         ;;
39135       esac
39136       ;;
39137
39138     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
39139       # PIC is the default for these OSes.
39140       ;;
39141
39142     mingw* | cygwin* | pw32* | os2* | cegcc*)
39143       # This hack is so that the source file can tell whether it is being
39144       # built for inclusion in a dll (and should export symbols for example).
39145       # Although the cygwin gcc ignores -fPIC, still need this for old-style
39146       # (--disable-auto-import) libraries
39147       lt_prog_compiler_pic='-DDLL_EXPORT'
39148       ;;
39149
39150     darwin* | rhapsody*)
39151       # PIC is the default on this platform
39152       # Common symbols not allowed in MH_DYLIB files
39153       lt_prog_compiler_pic='-fno-common'
39154       ;;
39155
39156     haiku*)
39157       # PIC is the default for Haiku.
39158       # The "-static" flag exists, but is broken.
39159       lt_prog_compiler_static=
39160       ;;
39161
39162     hpux*)
39163       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
39164       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
39165       # sets the default TLS model and affects inlining.
39166       case $host_cpu in
39167       hppa*64*)
39168         # +Z the default
39169         ;;
39170       *)
39171         lt_prog_compiler_pic='-fPIC'
39172         ;;
39173       esac
39174       ;;
39175
39176     interix[3-9]*)
39177       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
39178       # Instead, we relocate shared libraries at runtime.
39179       ;;
39180
39181     msdosdjgpp*)
39182       # Just because we use GCC doesn't mean we suddenly get shared libraries
39183       # on systems that don't support them.
39184       lt_prog_compiler_can_build_shared=no
39185       enable_shared=no
39186       ;;
39187
39188     *nto* | *qnx*)
39189       # QNX uses GNU C++, but need to define -shared option too, otherwise
39190       # it will coredump.
39191       lt_prog_compiler_pic='-fPIC -shared'
39192       ;;
39193
39194     sysv4*MP*)
39195       if test -d /usr/nec; then
39196         lt_prog_compiler_pic=-Kconform_pic
39197       fi
39198       ;;
39199
39200     *)
39201       lt_prog_compiler_pic='-fPIC'
39202       ;;
39203     esac
39204
39205     case $cc_basename in
39206     nvcc*) # Cuda Compiler Driver 2.2
39207       lt_prog_compiler_wl='-Xlinker '
39208       if test -n "$lt_prog_compiler_pic"; then
39209         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
39210       fi
39211       ;;
39212     esac
39213   else
39214     # PORTME Check for flag to pass linker flags through the system compiler.
39215     case $host_os in
39216     aix*)
39217       lt_prog_compiler_wl='-Wl,'
39218       if test "$host_cpu" = ia64; then
39219         # AIX 5 now supports IA64 processor
39220         lt_prog_compiler_static='-Bstatic'
39221       else
39222         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
39223       fi
39224       ;;
39225
39226     mingw* | cygwin* | pw32* | os2* | cegcc*)
39227       # This hack is so that the source file can tell whether it is being
39228       # built for inclusion in a dll (and should export symbols for example).
39229       lt_prog_compiler_pic='-DDLL_EXPORT'
39230       ;;
39231
39232     hpux9* | hpux10* | hpux11*)
39233       lt_prog_compiler_wl='-Wl,'
39234       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
39235       # not for PA HP-UX.
39236       case $host_cpu in
39237       hppa*64*|ia64*)
39238         # +Z the default
39239         ;;
39240       *)
39241         lt_prog_compiler_pic='+Z'
39242         ;;
39243       esac
39244       # Is there a better lt_prog_compiler_static that works with the bundled CC?
39245       lt_prog_compiler_static='${wl}-a ${wl}archive'
39246       ;;
39247
39248     irix5* | irix6* | nonstopux*)
39249       lt_prog_compiler_wl='-Wl,'
39250       # PIC (with -KPIC) is the default.
39251       lt_prog_compiler_static='-non_shared'
39252       ;;
39253
39254     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
39255       case $cc_basename in
39256       # old Intel for x86_64 which still supported -KPIC.
39257       ecc*)
39258         lt_prog_compiler_wl='-Wl,'
39259         lt_prog_compiler_pic='-KPIC'
39260         lt_prog_compiler_static='-static'
39261         ;;
39262       # icc used to be incompatible with GCC.
39263       # ICC 10 doesn't accept -KPIC any more.
39264       icc* | ifort*)
39265         lt_prog_compiler_wl='-Wl,'
39266         lt_prog_compiler_pic='-fPIC'
39267         lt_prog_compiler_static='-static'
39268         ;;
39269       # Lahey Fortran 8.1.
39270       lf95*)
39271         lt_prog_compiler_wl='-Wl,'
39272         lt_prog_compiler_pic='--shared'
39273         lt_prog_compiler_static='--static'
39274         ;;
39275       nagfor*)
39276         # NAG Fortran compiler
39277         lt_prog_compiler_wl='-Wl,-Wl,,'
39278         lt_prog_compiler_pic='-PIC'
39279         lt_prog_compiler_static='-Bstatic'
39280         ;;
39281       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
39282         # Portland Group compilers (*not* the Pentium gcc compiler,
39283         # which looks to be a dead project)
39284         lt_prog_compiler_wl='-Wl,'
39285         lt_prog_compiler_pic='-fpic'
39286         lt_prog_compiler_static='-Bstatic'
39287         ;;
39288       ccc*)
39289         lt_prog_compiler_wl='-Wl,'
39290         # All Alpha code is PIC.
39291         lt_prog_compiler_static='-non_shared'
39292         ;;
39293       xl* | bgxl* | bgf* | mpixl*)
39294         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
39295         lt_prog_compiler_wl='-Wl,'
39296         lt_prog_compiler_pic='-qpic'
39297         lt_prog_compiler_static='-qstaticlink'
39298         ;;
39299       *)
39300         case `$CC -V 2>&1 | sed 5q` in
39301         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
39302           # Sun Fortran 8.3 passes all unrecognized flags to the linker
39303           lt_prog_compiler_pic='-KPIC'
39304           lt_prog_compiler_static='-Bstatic'
39305           lt_prog_compiler_wl=''
39306           ;;
39307         *Sun\ F* | *Sun*Fortran*)
39308           lt_prog_compiler_pic='-KPIC'
39309           lt_prog_compiler_static='-Bstatic'
39310           lt_prog_compiler_wl='-Qoption ld '
39311           ;;
39312         *Sun\ C*)
39313           # Sun C 5.9
39314           lt_prog_compiler_pic='-KPIC'
39315           lt_prog_compiler_static='-Bstatic'
39316           lt_prog_compiler_wl='-Wl,'
39317           ;;
39318         *Intel*\ [CF]*Compiler*)
39319           lt_prog_compiler_wl='-Wl,'
39320           lt_prog_compiler_pic='-fPIC'
39321           lt_prog_compiler_static='-static'
39322           ;;
39323         *Portland\ Group*)
39324           lt_prog_compiler_wl='-Wl,'
39325           lt_prog_compiler_pic='-fpic'
39326           lt_prog_compiler_static='-Bstatic'
39327           ;;
39328         esac
39329         ;;
39330       esac
39331       ;;
39332
39333     newsos6)
39334       lt_prog_compiler_pic='-KPIC'
39335       lt_prog_compiler_static='-Bstatic'
39336       ;;
39337
39338     *nto* | *qnx*)
39339       # QNX uses GNU C++, but need to define -shared option too, otherwise
39340       # it will coredump.
39341       lt_prog_compiler_pic='-fPIC -shared'
39342       ;;
39343
39344     osf3* | osf4* | osf5*)
39345       lt_prog_compiler_wl='-Wl,'
39346       # All OSF/1 code is PIC.
39347       lt_prog_compiler_static='-non_shared'
39348       ;;
39349
39350     rdos*)
39351       lt_prog_compiler_static='-non_shared'
39352       ;;
39353
39354     solaris*)
39355       lt_prog_compiler_pic='-KPIC'
39356       lt_prog_compiler_static='-Bstatic'
39357       case $cc_basename in
39358       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
39359         lt_prog_compiler_wl='-Qoption ld ';;
39360       *)
39361         lt_prog_compiler_wl='-Wl,';;
39362       esac
39363       ;;
39364
39365     sunos4*)
39366       lt_prog_compiler_wl='-Qoption ld '
39367       lt_prog_compiler_pic='-PIC'
39368       lt_prog_compiler_static='-Bstatic'
39369       ;;
39370
39371     sysv4 | sysv4.2uw2* | sysv4.3*)
39372       lt_prog_compiler_wl='-Wl,'
39373       lt_prog_compiler_pic='-KPIC'
39374       lt_prog_compiler_static='-Bstatic'
39375       ;;
39376
39377     sysv4*MP*)
39378       if test -d /usr/nec ;then
39379         lt_prog_compiler_pic='-Kconform_pic'
39380         lt_prog_compiler_static='-Bstatic'
39381       fi
39382       ;;
39383
39384     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
39385       lt_prog_compiler_wl='-Wl,'
39386       lt_prog_compiler_pic='-KPIC'
39387       lt_prog_compiler_static='-Bstatic'
39388       ;;
39389
39390     unicos*)
39391       lt_prog_compiler_wl='-Wl,'
39392       lt_prog_compiler_can_build_shared=no
39393       ;;
39394
39395     uts4*)
39396       lt_prog_compiler_pic='-pic'
39397       lt_prog_compiler_static='-Bstatic'
39398       ;;
39399
39400     *)
39401       lt_prog_compiler_can_build_shared=no
39402       ;;
39403     esac
39404   fi
39405
39406 case $host_os in
39407   # For platforms which do not support PIC, -DPIC is meaningless:
39408   *djgpp*)
39409     lt_prog_compiler_pic=
39410     ;;
39411   *)
39412     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
39413     ;;
39414 esac
39415
39416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
39417 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
39418 if ${lt_cv_prog_compiler_pic+:} false; then :
39419   $as_echo_n "(cached) " >&6
39420 else
39421   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
39422 fi
39423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
39424 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
39425 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
39426
39427 #
39428 # Check to make sure the PIC flag actually works.
39429 #
39430 if test -n "$lt_prog_compiler_pic"; then
39431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
39432 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
39433 if ${lt_cv_prog_compiler_pic_works+:} false; then :
39434   $as_echo_n "(cached) " >&6
39435 else
39436   lt_cv_prog_compiler_pic_works=no
39437    ac_outfile=conftest.$ac_objext
39438    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
39439    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
39440    # Insert the option either (1) after the last *FLAGS variable, or
39441    # (2) before a word containing "conftest.", or (3) at the end.
39442    # Note that $ac_compile itself does not contain backslashes and begins
39443    # with a dollar sign (not a hyphen), so the echo should work correctly.
39444    # The option is referenced via a variable to avoid confusing sed.
39445    lt_compile=`echo "$ac_compile" | $SED \
39446    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39447    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39448    -e 's:$: $lt_compiler_flag:'`
39449    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
39450    (eval "$lt_compile" 2>conftest.err)
39451    ac_status=$?
39452    cat conftest.err >&5
39453    echo "$as_me:$LINENO: \$? = $ac_status" >&5
39454    if (exit $ac_status) && test -s "$ac_outfile"; then
39455      # The compiler can only warn and ignore the option if not recognized
39456      # So say no if there are warnings other than the usual output.
39457      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
39458      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
39459      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
39460        lt_cv_prog_compiler_pic_works=yes
39461      fi
39462    fi
39463    $RM conftest*
39464
39465 fi
39466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
39467 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
39468
39469 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
39470     case $lt_prog_compiler_pic in
39471      "" | " "*) ;;
39472      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
39473      esac
39474 else
39475     lt_prog_compiler_pic=
39476      lt_prog_compiler_can_build_shared=no
39477 fi
39478
39479 fi
39480
39481
39482
39483
39484
39485
39486
39487
39488
39489
39490
39491 #
39492 # Check to make sure the static flag actually works.
39493 #
39494 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
39495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
39496 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
39497 if ${lt_cv_prog_compiler_static_works+:} false; then :
39498   $as_echo_n "(cached) " >&6
39499 else
39500   lt_cv_prog_compiler_static_works=no
39501    save_LDFLAGS="$LDFLAGS"
39502    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
39503    echo "$lt_simple_link_test_code" > conftest.$ac_ext
39504    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
39505      # The linker can only warn and ignore the option if not recognized
39506      # So say no if there are warnings
39507      if test -s conftest.err; then
39508        # Append any errors to the config.log.
39509        cat conftest.err 1>&5
39510        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
39511        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
39512        if diff conftest.exp conftest.er2 >/dev/null; then
39513          lt_cv_prog_compiler_static_works=yes
39514        fi
39515      else
39516        lt_cv_prog_compiler_static_works=yes
39517      fi
39518    fi
39519    $RM -r conftest*
39520    LDFLAGS="$save_LDFLAGS"
39521
39522 fi
39523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
39524 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
39525
39526 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
39527     :
39528 else
39529     lt_prog_compiler_static=
39530 fi
39531
39532
39533
39534
39535
39536
39537
39538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
39539 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
39540 if ${lt_cv_prog_compiler_c_o+:} false; then :
39541   $as_echo_n "(cached) " >&6
39542 else
39543   lt_cv_prog_compiler_c_o=no
39544    $RM -r conftest 2>/dev/null
39545    mkdir conftest
39546    cd conftest
39547    mkdir out
39548    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
39549
39550    lt_compiler_flag="-o out/conftest2.$ac_objext"
39551    # Insert the option either (1) after the last *FLAGS variable, or
39552    # (2) before a word containing "conftest.", or (3) at the end.
39553    # Note that $ac_compile itself does not contain backslashes and begins
39554    # with a dollar sign (not a hyphen), so the echo should work correctly.
39555    lt_compile=`echo "$ac_compile" | $SED \
39556    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39557    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39558    -e 's:$: $lt_compiler_flag:'`
39559    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
39560    (eval "$lt_compile" 2>out/conftest.err)
39561    ac_status=$?
39562    cat out/conftest.err >&5
39563    echo "$as_me:$LINENO: \$? = $ac_status" >&5
39564    if (exit $ac_status) && test -s out/conftest2.$ac_objext
39565    then
39566      # The compiler can only warn and ignore the option if not recognized
39567      # So say no if there are warnings
39568      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
39569      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
39570      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
39571        lt_cv_prog_compiler_c_o=yes
39572      fi
39573    fi
39574    chmod u+w . 2>&5
39575    $RM conftest*
39576    # SGI C++ compiler will create directory out/ii_files/ for
39577    # template instantiation
39578    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
39579    $RM out/* && rmdir out
39580    cd ..
39581    $RM -r conftest
39582    $RM conftest*
39583
39584 fi
39585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
39586 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
39587
39588
39589
39590
39591
39592
39593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
39594 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
39595 if ${lt_cv_prog_compiler_c_o+:} false; then :
39596   $as_echo_n "(cached) " >&6
39597 else
39598   lt_cv_prog_compiler_c_o=no
39599    $RM -r conftest 2>/dev/null
39600    mkdir conftest
39601    cd conftest
39602    mkdir out
39603    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
39604
39605    lt_compiler_flag="-o out/conftest2.$ac_objext"
39606    # Insert the option either (1) after the last *FLAGS variable, or
39607    # (2) before a word containing "conftest.", or (3) at the end.
39608    # Note that $ac_compile itself does not contain backslashes and begins
39609    # with a dollar sign (not a hyphen), so the echo should work correctly.
39610    lt_compile=`echo "$ac_compile" | $SED \
39611    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39612    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39613    -e 's:$: $lt_compiler_flag:'`
39614    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
39615    (eval "$lt_compile" 2>out/conftest.err)
39616    ac_status=$?
39617    cat out/conftest.err >&5
39618    echo "$as_me:$LINENO: \$? = $ac_status" >&5
39619    if (exit $ac_status) && test -s out/conftest2.$ac_objext
39620    then
39621      # The compiler can only warn and ignore the option if not recognized
39622      # So say no if there are warnings
39623      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
39624      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
39625      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
39626        lt_cv_prog_compiler_c_o=yes
39627      fi
39628    fi
39629    chmod u+w . 2>&5
39630    $RM conftest*
39631    # SGI C++ compiler will create directory out/ii_files/ for
39632    # template instantiation
39633    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
39634    $RM out/* && rmdir out
39635    cd ..
39636    $RM -r conftest
39637    $RM conftest*
39638
39639 fi
39640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
39641 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
39642
39643
39644
39645
39646 hard_links="nottested"
39647 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
39648   # do not overwrite the value of need_locks provided by the user
39649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
39650 $as_echo_n "checking if we can lock with hard links... " >&6; }
39651   hard_links=yes
39652   $RM conftest*
39653   ln conftest.a conftest.b 2>/dev/null && hard_links=no
39654   touch conftest.a
39655   ln conftest.a conftest.b 2>&5 || hard_links=no
39656   ln conftest.a conftest.b 2>/dev/null && hard_links=no
39657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
39658 $as_echo "$hard_links" >&6; }
39659   if test "$hard_links" = no; then
39660     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
39661 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
39662     need_locks=warn
39663   fi
39664 else
39665   need_locks=no
39666 fi
39667
39668
39669
39670
39671
39672
39673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
39674 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
39675
39676   runpath_var=
39677   allow_undefined_flag=
39678   always_export_symbols=no
39679   archive_cmds=
39680   archive_expsym_cmds=
39681   compiler_needs_object=no
39682   enable_shared_with_static_runtimes=no
39683   export_dynamic_flag_spec=
39684   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
39685   hardcode_automatic=no
39686   hardcode_direct=no
39687   hardcode_direct_absolute=no
39688   hardcode_libdir_flag_spec=
39689   hardcode_libdir_separator=
39690   hardcode_minus_L=no
39691   hardcode_shlibpath_var=unsupported
39692   inherit_rpath=no
39693   link_all_deplibs=unknown
39694   module_cmds=
39695   module_expsym_cmds=
39696   old_archive_from_new_cmds=
39697   old_archive_from_expsyms_cmds=
39698   thread_safe_flag_spec=
39699   whole_archive_flag_spec=
39700   # include_expsyms should be a list of space-separated symbols to be *always*
39701   # included in the symbol list
39702   include_expsyms=
39703   # exclude_expsyms can be an extended regexp of symbols to exclude
39704   # it will be wrapped by ` (' and `)$', so one must not match beginning or
39705   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
39706   # as well as any symbol that contains `d'.
39707   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
39708   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
39709   # platforms (ab)use it in PIC code, but their linkers get confused if
39710   # the symbol is explicitly referenced.  Since portable code cannot
39711   # rely on this symbol name, it's probably fine to never include it in
39712   # preloaded symbol tables.
39713   # Exclude shared library initialization/finalization symbols.
39714   extract_expsyms_cmds=
39715
39716   case $host_os in
39717   cygwin* | mingw* | pw32* | cegcc*)
39718     # FIXME: the MSVC++ port hasn't been tested in a loooong time
39719     # When not using gcc, we currently assume that we are using
39720     # Microsoft Visual C++.
39721     if test "$GCC" != yes; then
39722       with_gnu_ld=no
39723     fi
39724     ;;
39725   interix*)
39726     # we just hope/assume this is gcc and not c89 (= MSVC++)
39727     with_gnu_ld=yes
39728     ;;
39729   openbsd*)
39730     with_gnu_ld=no
39731     ;;
39732   linux* | k*bsd*-gnu | gnu*)
39733     link_all_deplibs=no
39734     ;;
39735   esac
39736
39737   ld_shlibs=yes
39738
39739   # On some targets, GNU ld is compatible enough with the native linker
39740   # that we're better off using the native interface for both.
39741   lt_use_gnu_ld_interface=no
39742   if test "$with_gnu_ld" = yes; then
39743     case $host_os in
39744       aix*)
39745         # The AIX port of GNU ld has always aspired to compatibility
39746         # with the native linker.  However, as the warning in the GNU ld
39747         # block says, versions before 2.19.5* couldn't really create working
39748         # shared libraries, regardless of the interface used.
39749         case `$LD -v 2>&1` in
39750           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
39751           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
39752           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
39753           *)
39754             lt_use_gnu_ld_interface=yes
39755             ;;
39756         esac
39757         ;;
39758       *)
39759         lt_use_gnu_ld_interface=yes
39760         ;;
39761     esac
39762   fi
39763
39764   if test "$lt_use_gnu_ld_interface" = yes; then
39765     # If archive_cmds runs LD, not CC, wlarc should be empty
39766     wlarc='${wl}'
39767
39768     # Set some defaults for GNU ld with shared library support. These
39769     # are reset later if shared libraries are not supported. Putting them
39770     # here allows them to be overridden if necessary.
39771     runpath_var=LD_RUN_PATH
39772     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
39773     export_dynamic_flag_spec='${wl}--export-dynamic'
39774     # ancient GNU ld didn't support --whole-archive et. al.
39775     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
39776       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
39777     else
39778       whole_archive_flag_spec=
39779     fi
39780     supports_anon_versioning=no
39781     case `$LD -v 2>&1` in
39782       *GNU\ gold*) supports_anon_versioning=yes ;;
39783       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
39784       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
39785       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
39786       *\ 2.11.*) ;; # other 2.11 versions
39787       *) supports_anon_versioning=yes ;;
39788     esac
39789
39790     # See if GNU ld supports shared libraries.
39791     case $host_os in
39792     aix[3-9]*)
39793       # On AIX/PPC, the GNU linker is very broken
39794       if test "$host_cpu" != ia64; then
39795         ld_shlibs=no
39796         cat <<_LT_EOF 1>&2
39797
39798 *** Warning: the GNU linker, at least up to release 2.19, is reported
39799 *** to be unable to reliably create shared libraries on AIX.
39800 *** Therefore, libtool is disabling shared libraries support.  If you
39801 *** really care for shared libraries, you may want to install binutils
39802 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
39803 *** You will then need to restart the configuration process.
39804
39805 _LT_EOF
39806       fi
39807       ;;
39808
39809     amigaos*)
39810       case $host_cpu in
39811       powerpc)
39812             # see comment about AmigaOS4 .so support
39813             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
39814             archive_expsym_cmds=''
39815         ;;
39816       m68k)
39817             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)'
39818             hardcode_libdir_flag_spec='-L$libdir'
39819             hardcode_minus_L=yes
39820         ;;
39821       esac
39822       ;;
39823
39824     beos*)
39825       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
39826         allow_undefined_flag=unsupported
39827         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
39828         # support --undefined.  This deserves some investigation.  FIXME
39829         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
39830       else
39831         ld_shlibs=no
39832       fi
39833       ;;
39834
39835     cygwin* | mingw* | pw32* | cegcc*)
39836       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
39837       # as there is no search path for DLLs.
39838       hardcode_libdir_flag_spec='-L$libdir'
39839       export_dynamic_flag_spec='${wl}--export-all-symbols'
39840       allow_undefined_flag=unsupported
39841       always_export_symbols=no
39842       enable_shared_with_static_runtimes=yes
39843       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'
39844       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
39845
39846       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
39847         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
39848         # If the export-symbols file already is a .def file (1st line
39849         # is EXPORTS), use it as is; otherwise, prepend...
39850         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
39851           cp $export_symbols $output_objdir/$soname.def;
39852         else
39853           echo EXPORTS > $output_objdir/$soname.def;
39854           cat $export_symbols >> $output_objdir/$soname.def;
39855         fi~
39856         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
39857       else
39858         ld_shlibs=no
39859       fi
39860       ;;
39861
39862     haiku*)
39863       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
39864       link_all_deplibs=yes
39865       ;;
39866
39867     interix[3-9]*)
39868       hardcode_direct=no
39869       hardcode_shlibpath_var=no
39870       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
39871       export_dynamic_flag_spec='${wl}-E'
39872       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
39873       # Instead, shared libraries are loaded at an image base (0x10000000 by
39874       # default) and relocated if they conflict, which is a slow very memory
39875       # consuming and fragmenting process.  To avoid this, we pick a random,
39876       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
39877       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
39878       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
39879       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'
39880       ;;
39881
39882     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
39883       tmp_diet=no
39884       if test "$host_os" = linux-dietlibc; then
39885         case $cc_basename in
39886           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
39887         esac
39888       fi
39889       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
39890          && test "$tmp_diet" = no
39891       then
39892         tmp_addflag=' $pic_flag'
39893         tmp_sharedflag='-shared'
39894         case $cc_basename,$host_cpu in
39895         pgcc*)                          # Portland Group C compiler
39896           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'
39897           tmp_addflag=' $pic_flag'
39898           ;;
39899         pgf77* | pgf90* | pgf95* | pgfortran*)
39900                                         # Portland Group f77 and f90 compilers
39901           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'
39902           tmp_addflag=' $pic_flag -Mnomain' ;;
39903         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
39904           tmp_addflag=' -i_dynamic' ;;
39905         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
39906           tmp_addflag=' -i_dynamic -nofor_main' ;;
39907         ifc* | ifort*)                  # Intel Fortran compiler
39908           tmp_addflag=' -nofor_main' ;;
39909         lf95*)                          # Lahey Fortran 8.1
39910           whole_archive_flag_spec=
39911           tmp_sharedflag='--shared' ;;
39912         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
39913           tmp_sharedflag='-qmkshrobj'
39914           tmp_addflag= ;;
39915         nvcc*)  # Cuda Compiler Driver 2.2
39916           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'
39917           compiler_needs_object=yes
39918           ;;
39919         esac
39920         case `$CC -V 2>&1 | sed 5q` in
39921         *Sun\ C*)                       # Sun C 5.9
39922           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'
39923           compiler_needs_object=yes
39924           tmp_sharedflag='-G' ;;
39925         *Sun\ F*)                       # Sun Fortran 8.3
39926           tmp_sharedflag='-G' ;;
39927         esac
39928         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
39929
39930         if test "x$supports_anon_versioning" = xyes; then
39931           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
39932             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
39933             echo "local: *; };" >> $output_objdir/$libname.ver~
39934             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
39935         fi
39936
39937         case $cc_basename in
39938         xlf* | bgf* | bgxlf* | mpixlf*)
39939           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
39940           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
39941           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
39942           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
39943           if test "x$supports_anon_versioning" = xyes; then
39944             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
39945               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
39946               echo "local: *; };" >> $output_objdir/$libname.ver~
39947               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
39948           fi
39949           ;;
39950         esac
39951       else
39952         ld_shlibs=no
39953       fi
39954       ;;
39955
39956     netbsd* | netbsdelf*-gnu)
39957       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
39958         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
39959         wlarc=
39960       else
39961         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
39962         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
39963       fi
39964       ;;
39965
39966     solaris*)
39967       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
39968         ld_shlibs=no
39969         cat <<_LT_EOF 1>&2
39970
39971 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
39972 *** create shared libraries on Solaris systems.  Therefore, libtool
39973 *** is disabling shared libraries support.  We urge you to upgrade GNU
39974 *** binutils to release 2.9.1 or newer.  Another option is to modify
39975 *** your PATH or compiler configuration so that the native linker is
39976 *** used, and then restart.
39977
39978 _LT_EOF
39979       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
39980         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
39981         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
39982       else
39983         ld_shlibs=no
39984       fi
39985       ;;
39986
39987     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
39988       case `$LD -v 2>&1` in
39989         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
39990         ld_shlibs=no
39991         cat <<_LT_EOF 1>&2
39992
39993 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
39994 *** reliably create shared libraries on SCO systems.  Therefore, libtool
39995 *** is disabling shared libraries support.  We urge you to upgrade GNU
39996 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
39997 *** your PATH or compiler configuration so that the native linker is
39998 *** used, and then restart.
39999
40000 _LT_EOF
40001         ;;
40002         *)
40003           # For security reasons, it is highly recommended that you always
40004           # use absolute paths for naming shared libraries, and exclude the
40005           # DT_RUNPATH tag from executables and libraries.  But doing so
40006           # requires that you compile everything twice, which is a pain.
40007           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
40008             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
40009             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40010             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
40011           else
40012             ld_shlibs=no
40013           fi
40014         ;;
40015       esac
40016       ;;
40017
40018     sunos4*)
40019       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
40020       wlarc=
40021       hardcode_direct=yes
40022       hardcode_shlibpath_var=no
40023       ;;
40024
40025     *)
40026       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
40027         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40028         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
40029       else
40030         ld_shlibs=no
40031       fi
40032       ;;
40033     esac
40034
40035     if test "$ld_shlibs" = no; then
40036       runpath_var=
40037       hardcode_libdir_flag_spec=
40038       export_dynamic_flag_spec=
40039       whole_archive_flag_spec=
40040     fi
40041   else
40042     # PORTME fill in a description of your system's linker (not GNU ld)
40043     case $host_os in
40044     aix3*)
40045       allow_undefined_flag=unsupported
40046       always_export_symbols=yes
40047       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'
40048       # Note: this linker hardcodes the directories in LIBPATH if there
40049       # are no directories specified by -L.
40050       hardcode_minus_L=yes
40051       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
40052         # Neither direct hardcoding nor static linking is supported with a
40053         # broken collect2.
40054         hardcode_direct=unsupported
40055       fi
40056       ;;
40057
40058     aix[4-9]*)
40059       if test "$host_cpu" = ia64; then
40060         # On IA64, the linker does run time linking by default, so we don't
40061         # have to do anything special.
40062         aix_use_runtimelinking=no
40063         exp_sym_flag='-Bexport'
40064         no_entry_flag=""
40065       else
40066         # If we're using GNU nm, then we don't want the "-C" option.
40067         # -C means demangle to AIX nm, but means don't demangle with GNU nm
40068         # Also, AIX nm treats weak defined symbols like other global
40069         # defined symbols, whereas GNU nm marks them as "W".
40070         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
40071           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
40072         else
40073           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
40074         fi
40075         aix_use_runtimelinking=no
40076
40077         # Test if we are trying to use run time linking or normal
40078         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
40079         # need to do runtime linking.
40080         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
40081           for ld_flag in $LDFLAGS; do
40082           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
40083             aix_use_runtimelinking=yes
40084             break
40085           fi
40086           done
40087           ;;
40088         esac
40089
40090         exp_sym_flag='-bexport'
40091         no_entry_flag='-bnoentry'
40092       fi
40093
40094       # When large executables or shared objects are built, AIX ld can
40095       # have problems creating the table of contents.  If linking a library
40096       # or program results in "error TOC overflow" add -mminimal-toc to
40097       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
40098       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
40099
40100       archive_cmds=''
40101       hardcode_direct=yes
40102       hardcode_direct_absolute=yes
40103       hardcode_libdir_separator=':'
40104       link_all_deplibs=yes
40105       file_list_spec='${wl}-f,'
40106
40107       if test "$GCC" = yes; then
40108         case $host_os in aix4.[012]|aix4.[012].*)
40109         # We only want to do this on AIX 4.2 and lower, the check
40110         # below for broken collect2 doesn't work under 4.3+
40111           collect2name=`${CC} -print-prog-name=collect2`
40112           if test -f "$collect2name" &&
40113            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
40114           then
40115           # We have reworked collect2
40116           :
40117           else
40118           # We have old collect2
40119           hardcode_direct=unsupported
40120           # It fails to find uninstalled libraries when the uninstalled
40121           # path is not listed in the libpath.  Setting hardcode_minus_L
40122           # to unsupported forces relinking
40123           hardcode_minus_L=yes
40124           hardcode_libdir_flag_spec='-L$libdir'
40125           hardcode_libdir_separator=
40126           fi
40127           ;;
40128         esac
40129         shared_flag='-shared'
40130         if test "$aix_use_runtimelinking" = yes; then
40131           shared_flag="$shared_flag "'${wl}-G'
40132         fi
40133         link_all_deplibs=no
40134       else
40135         # not using gcc
40136         if test "$host_cpu" = ia64; then
40137         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
40138         # chokes on -Wl,-G. The following line is correct:
40139           shared_flag='-G'
40140         else
40141           if test "$aix_use_runtimelinking" = yes; then
40142             shared_flag='${wl}-G'
40143           else
40144             shared_flag='${wl}-bM:SRE'
40145           fi
40146         fi
40147       fi
40148
40149       export_dynamic_flag_spec='${wl}-bexpall'
40150       # It seems that -bexpall does not export symbols beginning with
40151       # underscore (_), so it is better to generate a list of symbols to export.
40152       always_export_symbols=yes
40153       if test "$aix_use_runtimelinking" = yes; then
40154         # Warning - without using the other runtime loading flags (-brtl),
40155         # -berok will link without error, but may produce a broken library.
40156         allow_undefined_flag='-berok'
40157         # Determine the default libpath from the value encoded in an
40158         # empty executable.
40159         if test "${lt_cv_aix_libpath+set}" = set; then
40160   aix_libpath=$lt_cv_aix_libpath
40161 else
40162   if ${lt_cv_aix_libpath_+:} false; then :
40163   $as_echo_n "(cached) " >&6
40164 else
40165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40166 /* end confdefs.h.  */
40167
40168 int
40169 main ()
40170 {
40171
40172   ;
40173   return 0;
40174 }
40175 _ACEOF
40176 if ac_fn_c_try_link "$LINENO"; then :
40177
40178   lt_aix_libpath_sed='
40179       /Import File Strings/,/^$/ {
40180           /^0/ {
40181               s/^0  *\([^ ]*\) *$/\1/
40182               p
40183           }
40184       }'
40185   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40186   # Check for a 64-bit object if we didn't find anything.
40187   if test -z "$lt_cv_aix_libpath_"; then
40188     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40189   fi
40190 fi
40191 rm -f core conftest.err conftest.$ac_objext \
40192     conftest$ac_exeext conftest.$ac_ext
40193   if test -z "$lt_cv_aix_libpath_"; then
40194     lt_cv_aix_libpath_="/usr/lib:/lib"
40195   fi
40196
40197 fi
40198
40199   aix_libpath=$lt_cv_aix_libpath_
40200 fi
40201
40202         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
40203         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
40204       else
40205         if test "$host_cpu" = ia64; then
40206           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
40207           allow_undefined_flag="-z nodefs"
40208           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"
40209         else
40210          # Determine the default libpath from the value encoded in an
40211          # empty executable.
40212          if test "${lt_cv_aix_libpath+set}" = set; then
40213   aix_libpath=$lt_cv_aix_libpath
40214 else
40215   if ${lt_cv_aix_libpath_+:} false; then :
40216   $as_echo_n "(cached) " >&6
40217 else
40218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40219 /* end confdefs.h.  */
40220
40221 int
40222 main ()
40223 {
40224
40225   ;
40226   return 0;
40227 }
40228 _ACEOF
40229 if ac_fn_c_try_link "$LINENO"; then :
40230
40231   lt_aix_libpath_sed='
40232       /Import File Strings/,/^$/ {
40233           /^0/ {
40234               s/^0  *\([^ ]*\) *$/\1/
40235               p
40236           }
40237       }'
40238   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40239   # Check for a 64-bit object if we didn't find anything.
40240   if test -z "$lt_cv_aix_libpath_"; then
40241     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40242   fi
40243 fi
40244 rm -f core conftest.err conftest.$ac_objext \
40245     conftest$ac_exeext conftest.$ac_ext
40246   if test -z "$lt_cv_aix_libpath_"; then
40247     lt_cv_aix_libpath_="/usr/lib:/lib"
40248   fi
40249
40250 fi
40251
40252   aix_libpath=$lt_cv_aix_libpath_
40253 fi
40254
40255          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
40256           # Warning - without using the other run time loading flags,
40257           # -berok will link without error, but may produce a broken library.
40258           no_undefined_flag=' ${wl}-bernotok'
40259           allow_undefined_flag=' ${wl}-berok'
40260           if test "$with_gnu_ld" = yes; then
40261             # We only use this code for GNU lds that support --whole-archive.
40262             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
40263           else
40264             # Exported symbols can be pulled into shared objects from archives
40265             whole_archive_flag_spec='$convenience'
40266           fi
40267           archive_cmds_need_lc=yes
40268           # This is similar to how AIX traditionally builds its shared libraries.
40269           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
40270         fi
40271       fi
40272       ;;
40273
40274     amigaos*)
40275       case $host_cpu in
40276       powerpc)
40277             # see comment about AmigaOS4 .so support
40278             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40279             archive_expsym_cmds=''
40280         ;;
40281       m68k)
40282             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)'
40283             hardcode_libdir_flag_spec='-L$libdir'
40284             hardcode_minus_L=yes
40285         ;;
40286       esac
40287       ;;
40288
40289     bsdi[45]*)
40290       export_dynamic_flag_spec=-rdynamic
40291       ;;
40292
40293     cygwin* | mingw* | pw32* | cegcc*)
40294       # When not using gcc, we currently assume that we are using
40295       # Microsoft Visual C++.
40296       # hardcode_libdir_flag_spec is actually meaningless, as there is
40297       # no search path for DLLs.
40298       case $cc_basename in
40299       cl*)
40300         # Native MSVC
40301         hardcode_libdir_flag_spec=' '
40302         allow_undefined_flag=unsupported
40303         always_export_symbols=yes
40304         file_list_spec='@'
40305         # Tell ltmain to make .lib files, not .a files.
40306         libext=lib
40307         # Tell ltmain to make .dll files, not .so files.
40308         shrext_cmds=".dll"
40309         # FIXME: Setting linknames here is a bad hack.
40310         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
40311         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
40312             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
40313           else
40314             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
40315           fi~
40316           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
40317           linknames='
40318         # The linker will not automatically build a static lib if we build a DLL.
40319         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
40320         enable_shared_with_static_runtimes=yes
40321         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
40322         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
40323         # Don't use ranlib
40324         old_postinstall_cmds='chmod 644 $oldlib'
40325         postlink_cmds='lt_outputfile="@OUTPUT@"~
40326           lt_tool_outputfile="@TOOL_OUTPUT@"~
40327           case $lt_outputfile in
40328             *.exe|*.EXE) ;;
40329             *)
40330               lt_outputfile="$lt_outputfile.exe"
40331               lt_tool_outputfile="$lt_tool_outputfile.exe"
40332               ;;
40333           esac~
40334           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
40335             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
40336             $RM "$lt_outputfile.manifest";
40337           fi'
40338         ;;
40339       *)
40340         # Assume MSVC wrapper
40341         hardcode_libdir_flag_spec=' '
40342         allow_undefined_flag=unsupported
40343         # Tell ltmain to make .lib files, not .a files.
40344         libext=lib
40345         # Tell ltmain to make .dll files, not .so files.
40346         shrext_cmds=".dll"
40347         # FIXME: Setting linknames here is a bad hack.
40348         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
40349         # The linker will automatically build a .lib file if we build a DLL.
40350         old_archive_from_new_cmds='true'
40351         # FIXME: Should let the user specify the lib program.
40352         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
40353         enable_shared_with_static_runtimes=yes
40354         ;;
40355       esac
40356       ;;
40357
40358     darwin* | rhapsody*)
40359
40360
40361   archive_cmds_need_lc=no
40362   hardcode_direct=no
40363   hardcode_automatic=yes
40364   hardcode_shlibpath_var=unsupported
40365   if test "$lt_cv_ld_force_load" = "yes"; then
40366     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\"`'
40367
40368   else
40369     whole_archive_flag_spec=''
40370   fi
40371   link_all_deplibs=yes
40372   allow_undefined_flag="$_lt_dar_allow_undefined"
40373   case $cc_basename in
40374      ifort*) _lt_dar_can_shared=yes ;;
40375      *) _lt_dar_can_shared=$GCC ;;
40376   esac
40377   if test "$_lt_dar_can_shared" = "yes"; then
40378     output_verbose_link_cmd=func_echo_all
40379     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
40380     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
40381     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}"
40382     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}"
40383
40384   else
40385   ld_shlibs=no
40386   fi
40387
40388       ;;
40389
40390     dgux*)
40391       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40392       hardcode_libdir_flag_spec='-L$libdir'
40393       hardcode_shlibpath_var=no
40394       ;;
40395
40396     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
40397     # support.  Future versions do this automatically, but an explicit c++rt0.o
40398     # does not break anything, and helps significantly (at the cost of a little
40399     # extra space).
40400     freebsd2.2*)
40401       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
40402       hardcode_libdir_flag_spec='-R$libdir'
40403       hardcode_direct=yes
40404       hardcode_shlibpath_var=no
40405       ;;
40406
40407     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
40408     freebsd2.*)
40409       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
40410       hardcode_direct=yes
40411       hardcode_minus_L=yes
40412       hardcode_shlibpath_var=no
40413       ;;
40414
40415     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
40416     freebsd* | dragonfly*)
40417       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
40418       hardcode_libdir_flag_spec='-R$libdir'
40419       hardcode_direct=yes
40420       hardcode_shlibpath_var=no
40421       ;;
40422
40423     hpux9*)
40424       if test "$GCC" = yes; then
40425         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
40426       else
40427         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
40428       fi
40429       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
40430       hardcode_libdir_separator=:
40431       hardcode_direct=yes
40432
40433       # hardcode_minus_L: Not really in the search PATH,
40434       # but as the default location of the library.
40435       hardcode_minus_L=yes
40436       export_dynamic_flag_spec='${wl}-E'
40437       ;;
40438
40439     hpux10*)
40440       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
40441         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40442       else
40443         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
40444       fi
40445       if test "$with_gnu_ld" = no; then
40446         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
40447         hardcode_libdir_separator=:
40448         hardcode_direct=yes
40449         hardcode_direct_absolute=yes
40450         export_dynamic_flag_spec='${wl}-E'
40451         # hardcode_minus_L: Not really in the search PATH,
40452         # but as the default location of the library.
40453         hardcode_minus_L=yes
40454       fi
40455       ;;
40456
40457     hpux11*)
40458       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
40459         case $host_cpu in
40460         hppa*64*)
40461           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
40462           ;;
40463         ia64*)
40464           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
40465           ;;
40466         *)
40467           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40468           ;;
40469         esac
40470       else
40471         case $host_cpu in
40472         hppa*64*)
40473           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
40474           ;;
40475         ia64*)
40476           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
40477           ;;
40478         *)
40479
40480           # Older versions of the 11.00 compiler do not understand -b yet
40481           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
40482           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
40483 $as_echo_n "checking if $CC understands -b... " >&6; }
40484 if ${lt_cv_prog_compiler__b+:} false; then :
40485   $as_echo_n "(cached) " >&6
40486 else
40487   lt_cv_prog_compiler__b=no
40488    save_LDFLAGS="$LDFLAGS"
40489    LDFLAGS="$LDFLAGS -b"
40490    echo "$lt_simple_link_test_code" > conftest.$ac_ext
40491    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
40492      # The linker can only warn and ignore the option if not recognized
40493      # So say no if there are warnings
40494      if test -s conftest.err; then
40495        # Append any errors to the config.log.
40496        cat conftest.err 1>&5
40497        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
40498        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
40499        if diff conftest.exp conftest.er2 >/dev/null; then
40500          lt_cv_prog_compiler__b=yes
40501        fi
40502      else
40503        lt_cv_prog_compiler__b=yes
40504      fi
40505    fi
40506    $RM -r conftest*
40507    LDFLAGS="$save_LDFLAGS"
40508
40509 fi
40510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
40511 $as_echo "$lt_cv_prog_compiler__b" >&6; }
40512
40513 if test x"$lt_cv_prog_compiler__b" = xyes; then
40514     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40515 else
40516     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
40517 fi
40518
40519           ;;
40520         esac
40521       fi
40522       if test "$with_gnu_ld" = no; then
40523         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
40524         hardcode_libdir_separator=:
40525
40526         case $host_cpu in
40527         hppa*64*|ia64*)
40528           hardcode_direct=no
40529           hardcode_shlibpath_var=no
40530           ;;
40531         *)
40532           hardcode_direct=yes
40533           hardcode_direct_absolute=yes
40534           export_dynamic_flag_spec='${wl}-E'
40535
40536           # hardcode_minus_L: Not really in the search PATH,
40537           # but as the default location of the library.
40538           hardcode_minus_L=yes
40539           ;;
40540         esac
40541       fi
40542       ;;
40543
40544     irix5* | irix6* | nonstopux*)
40545       if test "$GCC" = yes; then
40546         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'
40547         # Try to use the -exported_symbol ld option, if it does not
40548         # work, assume that -exports_file does not work either and
40549         # implicitly export all symbols.
40550         # This should be the same for all languages, so no per-tag cache variable.
40551         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
40552 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
40553 if ${lt_cv_irix_exported_symbol+:} false; then :
40554   $as_echo_n "(cached) " >&6
40555 else
40556   save_LDFLAGS="$LDFLAGS"
40557            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
40558            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40559 /* end confdefs.h.  */
40560 int foo (void) { return 0; }
40561 _ACEOF
40562 if ac_fn_c_try_link "$LINENO"; then :
40563   lt_cv_irix_exported_symbol=yes
40564 else
40565   lt_cv_irix_exported_symbol=no
40566 fi
40567 rm -f core conftest.err conftest.$ac_objext \
40568     conftest$ac_exeext conftest.$ac_ext
40569            LDFLAGS="$save_LDFLAGS"
40570 fi
40571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
40572 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
40573         if test "$lt_cv_irix_exported_symbol" = yes; then
40574           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'
40575         fi
40576       else
40577         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'
40578         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'
40579       fi
40580       archive_cmds_need_lc='no'
40581       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
40582       hardcode_libdir_separator=:
40583       inherit_rpath=yes
40584       link_all_deplibs=yes
40585       ;;
40586
40587     netbsd* | netbsdelf*-gnu)
40588       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
40589         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
40590       else
40591         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
40592       fi
40593       hardcode_libdir_flag_spec='-R$libdir'
40594       hardcode_direct=yes
40595       hardcode_shlibpath_var=no
40596       ;;
40597
40598     newsos6)
40599       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40600       hardcode_direct=yes
40601       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
40602       hardcode_libdir_separator=:
40603       hardcode_shlibpath_var=no
40604       ;;
40605
40606     *nto* | *qnx*)
40607       ;;
40608
40609     openbsd*)
40610       if test -f /usr/libexec/ld.so; then
40611         hardcode_direct=yes
40612         hardcode_shlibpath_var=no
40613         hardcode_direct_absolute=yes
40614         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
40615           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
40616           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
40617           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
40618           export_dynamic_flag_spec='${wl}-E'
40619         else
40620           case $host_os in
40621            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
40622              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
40623              hardcode_libdir_flag_spec='-R$libdir'
40624              ;;
40625            *)
40626              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
40627              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
40628              ;;
40629           esac
40630         fi
40631       else
40632         ld_shlibs=no
40633       fi
40634       ;;
40635
40636     os2*)
40637       hardcode_libdir_flag_spec='-L$libdir'
40638       hardcode_minus_L=yes
40639       allow_undefined_flag=unsupported
40640       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
40641       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
40642       ;;
40643
40644     osf3*)
40645       if test "$GCC" = yes; then
40646         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
40647         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'
40648       else
40649         allow_undefined_flag=' -expect_unresolved \*'
40650         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'
40651       fi
40652       archive_cmds_need_lc='no'
40653       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
40654       hardcode_libdir_separator=:
40655       ;;
40656
40657     osf4* | osf5*)      # as osf3* with the addition of -msym flag
40658       if test "$GCC" = yes; then
40659         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
40660         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'
40661         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
40662       else
40663         allow_undefined_flag=' -expect_unresolved \*'
40664         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'
40665         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~
40666         $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'
40667
40668         # Both c and cxx compiler support -rpath directly
40669         hardcode_libdir_flag_spec='-rpath $libdir'
40670       fi
40671       archive_cmds_need_lc='no'
40672       hardcode_libdir_separator=:
40673       ;;
40674
40675     solaris*)
40676       no_undefined_flag=' -z defs'
40677       if test "$GCC" = yes; then
40678         wlarc='${wl}'
40679         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
40680         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
40681           $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'
40682       else
40683         case `$CC -V 2>&1` in
40684         *"Compilers 5.0"*)
40685           wlarc=''
40686           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
40687           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
40688           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
40689           ;;
40690         *)
40691           wlarc='${wl}'
40692           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
40693           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
40694           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
40695           ;;
40696         esac
40697       fi
40698       hardcode_libdir_flag_spec='-R$libdir'
40699       hardcode_shlibpath_var=no
40700       case $host_os in
40701       solaris2.[0-5] | solaris2.[0-5].*) ;;
40702       *)
40703         # The compiler driver will combine and reorder linker options,
40704         # but understands `-z linker_flag'.  GCC discards it without `$wl',
40705         # but is careful enough not to reorder.
40706         # Supported since Solaris 2.6 (maybe 2.5.1?)
40707         if test "$GCC" = yes; then
40708           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
40709         else
40710           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
40711         fi
40712         ;;
40713       esac
40714       link_all_deplibs=yes
40715       ;;
40716
40717     sunos4*)
40718       if test "x$host_vendor" = xsequent; then
40719         # Use $CC to link under sequent, because it throws in some extra .o
40720         # files that make .init and .fini sections work.
40721         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
40722       else
40723         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
40724       fi
40725       hardcode_libdir_flag_spec='-L$libdir'
40726       hardcode_direct=yes
40727       hardcode_minus_L=yes
40728       hardcode_shlibpath_var=no
40729       ;;
40730
40731     sysv4)
40732       case $host_vendor in
40733         sni)
40734           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40735           hardcode_direct=yes # is this really true???
40736         ;;
40737         siemens)
40738           ## LD is ld it makes a PLAMLIB
40739           ## CC just makes a GrossModule.
40740           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
40741           reload_cmds='$CC -r -o $output$reload_objs'
40742           hardcode_direct=no
40743         ;;
40744         motorola)
40745           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40746           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
40747         ;;
40748       esac
40749       runpath_var='LD_RUN_PATH'
40750       hardcode_shlibpath_var=no
40751       ;;
40752
40753     sysv4.3*)
40754       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40755       hardcode_shlibpath_var=no
40756       export_dynamic_flag_spec='-Bexport'
40757       ;;
40758
40759     sysv4*MP*)
40760       if test -d /usr/nec; then
40761         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40762         hardcode_shlibpath_var=no
40763         runpath_var=LD_RUN_PATH
40764         hardcode_runpath_var=yes
40765         ld_shlibs=yes
40766       fi
40767       ;;
40768
40769     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
40770       no_undefined_flag='${wl}-z,text'
40771       archive_cmds_need_lc=no
40772       hardcode_shlibpath_var=no
40773       runpath_var='LD_RUN_PATH'
40774
40775       if test "$GCC" = yes; then
40776         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40777         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40778       else
40779         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40780         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40781       fi
40782       ;;
40783
40784     sysv5* | sco3.2v5* | sco5v6*)
40785       # Note: We can NOT use -z defs as we might desire, because we do not
40786       # link with -lc, and that would cause any symbols used from libc to
40787       # always be unresolved, which means just about no library would
40788       # ever link correctly.  If we're not using GNU ld we use -z text
40789       # though, which does catch some bad symbols but isn't as heavy-handed
40790       # as -z defs.
40791       no_undefined_flag='${wl}-z,text'
40792       allow_undefined_flag='${wl}-z,nodefs'
40793       archive_cmds_need_lc=no
40794       hardcode_shlibpath_var=no
40795       hardcode_libdir_flag_spec='${wl}-R,$libdir'
40796       hardcode_libdir_separator=':'
40797       link_all_deplibs=yes
40798       export_dynamic_flag_spec='${wl}-Bexport'
40799       runpath_var='LD_RUN_PATH'
40800
40801       if test "$GCC" = yes; then
40802         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40803         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40804       else
40805         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40806         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40807       fi
40808       ;;
40809
40810     uts4*)
40811       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40812       hardcode_libdir_flag_spec='-L$libdir'
40813       hardcode_shlibpath_var=no
40814       ;;
40815
40816     *)
40817       ld_shlibs=no
40818       ;;
40819     esac
40820
40821     if test x$host_vendor = xsni; then
40822       case $host in
40823       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
40824         export_dynamic_flag_spec='${wl}-Blargedynsym'
40825         ;;
40826       esac
40827     fi
40828   fi
40829
40830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
40831 $as_echo "$ld_shlibs" >&6; }
40832 test "$ld_shlibs" = no && can_build_shared=no
40833
40834 with_gnu_ld=$with_gnu_ld
40835
40836
40837
40838
40839
40840
40841
40842
40843
40844
40845
40846
40847
40848
40849
40850 #
40851 # Do we need to explicitly link libc?
40852 #
40853 case "x$archive_cmds_need_lc" in
40854 x|xyes)
40855   # Assume -lc should be added
40856   archive_cmds_need_lc=yes
40857
40858   if test "$enable_shared" = yes && test "$GCC" = yes; then
40859     case $archive_cmds in
40860     *'~'*)
40861       # FIXME: we may have to deal with multi-command sequences.
40862       ;;
40863     '$CC '*)
40864       # Test whether the compiler implicitly links with -lc since on some
40865       # systems, -lgcc has to come before -lc. If gcc already passes -lc
40866       # to ld, don't add -lc before -lgcc.
40867       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
40868 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
40869 if ${lt_cv_archive_cmds_need_lc+:} false; then :
40870   $as_echo_n "(cached) " >&6
40871 else
40872   $RM conftest*
40873         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
40874
40875         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
40876   (eval $ac_compile) 2>&5
40877   ac_status=$?
40878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40879   test $ac_status = 0; } 2>conftest.err; then
40880           soname=conftest
40881           lib=conftest
40882           libobjs=conftest.$ac_objext
40883           deplibs=
40884           wl=$lt_prog_compiler_wl
40885           pic_flag=$lt_prog_compiler_pic
40886           compiler_flags=-v
40887           linker_flags=-v
40888           verstring=
40889           output_objdir=.
40890           libname=conftest
40891           lt_save_allow_undefined_flag=$allow_undefined_flag
40892           allow_undefined_flag=
40893           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
40894   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
40895   ac_status=$?
40896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40897   test $ac_status = 0; }
40898           then
40899             lt_cv_archive_cmds_need_lc=no
40900           else
40901             lt_cv_archive_cmds_need_lc=yes
40902           fi
40903           allow_undefined_flag=$lt_save_allow_undefined_flag
40904         else
40905           cat conftest.err 1>&5
40906         fi
40907         $RM conftest*
40908
40909 fi
40910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
40911 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
40912       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
40913       ;;
40914     esac
40915   fi
40916   ;;
40917 esac
40918
40919
40920
40921
40922
40923
40924
40925
40926
40927
40928
40929
40930
40931
40932
40933
40934
40935
40936
40937
40938
40939
40940
40941
40942
40943
40944
40945
40946
40947
40948
40949
40950
40951
40952
40953
40954
40955
40956
40957
40958
40959
40960
40961
40962
40963
40964
40965
40966
40967
40968
40969
40970
40971
40972
40973
40974
40975
40976
40977
40978
40979
40980
40981
40982
40983
40984
40985
40986
40987
40988
40989
40990
40991
40992
40993
40994
40995
40996
40997
40998
40999
41000
41001
41002
41003
41004
41005
41006
41007
41008
41009
41010
41011
41012
41013
41014
41015
41016
41017
41018
41019
41020
41021
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031
41032
41033
41034
41035
41036
41037
41038
41039
41040
41041
41042
41043
41044
41045
41046
41047
41048
41049
41050
41051
41052
41053
41054
41055
41056
41057
41058
41059
41060
41061
41062
41063
41064
41065
41066
41067
41068
41069
41070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
41071 $as_echo_n "checking dynamic linker characteristics... " >&6; }
41072
41073 if test "$GCC" = yes; then
41074   case $host_os in
41075     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
41076     *) lt_awk_arg="/^libraries:/" ;;
41077   esac
41078   case $host_os in
41079     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
41080     *) lt_sed_strip_eq="s,=/,/,g" ;;
41081   esac
41082   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
41083   case $lt_search_path_spec in
41084   *\;*)
41085     # if the path contains ";" then we assume it to be the separator
41086     # otherwise default to the standard path separator (i.e. ":") - it is
41087     # assumed that no part of a normal pathname contains ";" but that should
41088     # okay in the real world where ";" in dirpaths is itself problematic.
41089     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
41090     ;;
41091   *)
41092     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
41093     ;;
41094   esac
41095   # Ok, now we have the path, separated by spaces, we can step through it
41096   # and add multilib dir if necessary.
41097   lt_tmp_lt_search_path_spec=
41098   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
41099   for lt_sys_path in $lt_search_path_spec; do
41100     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
41101       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
41102     else
41103       test -d "$lt_sys_path" && \
41104         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
41105     fi
41106   done
41107   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
41108 BEGIN {RS=" "; FS="/|\n";} {
41109   lt_foo="";
41110   lt_count=0;
41111   for (lt_i = NF; lt_i > 0; lt_i--) {
41112     if ($lt_i != "" && $lt_i != ".") {
41113       if ($lt_i == "..") {
41114         lt_count++;
41115       } else {
41116         if (lt_count == 0) {
41117           lt_foo="/" $lt_i lt_foo;
41118         } else {
41119           lt_count--;
41120         }
41121       }
41122     }
41123   }
41124   if (lt_foo != "") { lt_freq[lt_foo]++; }
41125   if (lt_freq[lt_foo] == 1) { print lt_foo; }
41126 }'`
41127   # AWK program above erroneously prepends '/' to C:/dos/paths
41128   # for these hosts.
41129   case $host_os in
41130     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
41131       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
41132   esac
41133   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
41134 else
41135   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
41136 fi
41137 library_names_spec=
41138 libname_spec='lib$name'
41139 soname_spec=
41140 shrext_cmds=".so"
41141 postinstall_cmds=
41142 postuninstall_cmds=
41143 finish_cmds=
41144 finish_eval=
41145 shlibpath_var=
41146 shlibpath_overrides_runpath=unknown
41147 version_type=none
41148 dynamic_linker="$host_os ld.so"
41149 sys_lib_dlsearch_path_spec="/lib /usr/lib"
41150 need_lib_prefix=unknown
41151 hardcode_into_libs=no
41152
41153 # when you set need_version to no, make sure it does not cause -set_version
41154 # flags to be left without arguments
41155 need_version=unknown
41156
41157 case $host_os in
41158 aix3*)
41159   version_type=linux # correct to gnu/linux during the next big refactor
41160   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
41161   shlibpath_var=LIBPATH
41162
41163   # AIX 3 has no versioning support, so we append a major version to the name.
41164   soname_spec='${libname}${release}${shared_ext}$major'
41165   ;;
41166
41167 aix[4-9]*)
41168   version_type=linux # correct to gnu/linux during the next big refactor
41169   need_lib_prefix=no
41170   need_version=no
41171   hardcode_into_libs=yes
41172   if test "$host_cpu" = ia64; then
41173     # AIX 5 supports IA64
41174     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
41175     shlibpath_var=LD_LIBRARY_PATH
41176   else
41177     # With GCC up to 2.95.x, collect2 would create an import file
41178     # for dependence libraries.  The import file would start with
41179     # the line `#! .'.  This would cause the generated library to
41180     # depend on `.', always an invalid library.  This was fixed in
41181     # development snapshots of GCC prior to 3.0.
41182     case $host_os in
41183       aix4 | aix4.[01] | aix4.[01].*)
41184       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
41185            echo ' yes '
41186            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
41187         :
41188       else
41189         can_build_shared=no
41190       fi
41191       ;;
41192     esac
41193     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
41194     # soname into executable. Probably we can add versioning support to
41195     # collect2, so additional links can be useful in future.
41196     if test "$aix_use_runtimelinking" = yes; then
41197       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
41198       # instead of lib<name>.a to let people know that these are not
41199       # typical AIX shared libraries.
41200       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41201     else
41202       # We preserve .a as extension for shared libraries through AIX4.2
41203       # and later when we are not doing run time linking.
41204       library_names_spec='${libname}${release}.a $libname.a'
41205       soname_spec='${libname}${release}${shared_ext}$major'
41206     fi
41207     shlibpath_var=LIBPATH
41208   fi
41209   ;;
41210
41211 amigaos*)
41212   case $host_cpu in
41213   powerpc)
41214     # Since July 2007 AmigaOS4 officially supports .so libraries.
41215     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
41216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41217     ;;
41218   m68k)
41219     library_names_spec='$libname.ixlibrary $libname.a'
41220     # Create ${libname}_ixlibrary.a entries in /sys/libs.
41221     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
41222     ;;
41223   esac
41224   ;;
41225
41226 beos*)
41227   library_names_spec='${libname}${shared_ext}'
41228   dynamic_linker="$host_os ld.so"
41229   shlibpath_var=LIBRARY_PATH
41230   ;;
41231
41232 bsdi[45]*)
41233   version_type=linux # correct to gnu/linux during the next big refactor
41234   need_version=no
41235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41236   soname_spec='${libname}${release}${shared_ext}$major'
41237   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
41238   shlibpath_var=LD_LIBRARY_PATH
41239   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
41240   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
41241   # the default ld.so.conf also contains /usr/contrib/lib and
41242   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
41243   # libtool to hard-code these into programs
41244   ;;
41245
41246 cygwin* | mingw* | pw32* | cegcc*)
41247   version_type=windows
41248   shrext_cmds=".dll"
41249   need_version=no
41250   need_lib_prefix=no
41251
41252   case $GCC,$cc_basename in
41253   yes,*)
41254     # gcc
41255     library_names_spec='$libname.dll.a'
41256     # DLL is installed to $(libdir)/../bin by postinstall_cmds
41257     postinstall_cmds='base_file=`basename \${file}`~
41258       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
41259       dldir=$destdir/`dirname \$dlpath`~
41260       test -d \$dldir || mkdir -p \$dldir~
41261       $install_prog $dir/$dlname \$dldir/$dlname~
41262       chmod a+x \$dldir/$dlname~
41263       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
41264         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
41265       fi'
41266     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
41267       dlpath=$dir/\$dldll~
41268        $RM \$dlpath'
41269     shlibpath_overrides_runpath=yes
41270
41271     case $host_os in
41272     cygwin*)
41273       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
41274       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41275
41276       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
41277       ;;
41278     mingw* | cegcc*)
41279       # MinGW DLLs use traditional 'lib' prefix
41280       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41281       ;;
41282     pw32*)
41283       # pw32 DLLs use 'pw' prefix rather than 'lib'
41284       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41285       ;;
41286     esac
41287     dynamic_linker='Win32 ld.exe'
41288     ;;
41289
41290   *,cl*)
41291     # Native MSVC
41292     libname_spec='$name'
41293     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41294     library_names_spec='${libname}.dll.lib'
41295
41296     case $build_os in
41297     mingw*)
41298       sys_lib_search_path_spec=
41299       lt_save_ifs=$IFS
41300       IFS=';'
41301       for lt_path in $LIB
41302       do
41303         IFS=$lt_save_ifs
41304         # Let DOS variable expansion print the short 8.3 style file name.
41305         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
41306         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
41307       done
41308       IFS=$lt_save_ifs
41309       # Convert to MSYS style.
41310       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
41311       ;;
41312     cygwin*)
41313       # Convert to unix form, then to dos form, then back to unix form
41314       # but this time dos style (no spaces!) so that the unix form looks
41315       # like /cygdrive/c/PROGRA~1:/cygdr...
41316       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
41317       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
41318       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
41319       ;;
41320     *)
41321       sys_lib_search_path_spec="$LIB"
41322       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
41323         # It is most probably a Windows format PATH.
41324         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
41325       else
41326         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
41327       fi
41328       # FIXME: find the short name or the path components, as spaces are
41329       # common. (e.g. "Program Files" -> "PROGRA~1")
41330       ;;
41331     esac
41332
41333     # DLL is installed to $(libdir)/../bin by postinstall_cmds
41334     postinstall_cmds='base_file=`basename \${file}`~
41335       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
41336       dldir=$destdir/`dirname \$dlpath`~
41337       test -d \$dldir || mkdir -p \$dldir~
41338       $install_prog $dir/$dlname \$dldir/$dlname'
41339     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
41340       dlpath=$dir/\$dldll~
41341        $RM \$dlpath'
41342     shlibpath_overrides_runpath=yes
41343     dynamic_linker='Win32 link.exe'
41344     ;;
41345
41346   *)
41347     # Assume MSVC wrapper
41348     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
41349     dynamic_linker='Win32 ld.exe'
41350     ;;
41351   esac
41352   # FIXME: first we should search . and the directory the executable is in
41353   shlibpath_var=PATH
41354   ;;
41355
41356 darwin* | rhapsody*)
41357   dynamic_linker="$host_os dyld"
41358   version_type=darwin
41359   need_lib_prefix=no
41360   need_version=no
41361   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
41362   soname_spec='${libname}${release}${major}$shared_ext'
41363   shlibpath_overrides_runpath=yes
41364   shlibpath_var=DYLD_LIBRARY_PATH
41365   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
41366
41367   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
41368   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
41369   ;;
41370
41371 dgux*)
41372   version_type=linux # correct to gnu/linux during the next big refactor
41373   need_lib_prefix=no
41374   need_version=no
41375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
41376   soname_spec='${libname}${release}${shared_ext}$major'
41377   shlibpath_var=LD_LIBRARY_PATH
41378   ;;
41379
41380 freebsd* | dragonfly*)
41381   # DragonFly does not have aout.  When/if they implement a new
41382   # versioning mechanism, adjust this.
41383   if test -x /usr/bin/objformat; then
41384     objformat=`/usr/bin/objformat`
41385   else
41386     case $host_os in
41387     freebsd[23].*) objformat=aout ;;
41388     *) objformat=elf ;;
41389     esac
41390   fi
41391   version_type=freebsd-$objformat
41392   case $version_type in
41393     freebsd-elf*)
41394       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
41395       need_version=no
41396       need_lib_prefix=no
41397       ;;
41398     freebsd-*)
41399       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
41400       need_version=yes
41401       ;;
41402   esac
41403   shlibpath_var=LD_LIBRARY_PATH
41404   case $host_os in
41405   freebsd2.*)
41406     shlibpath_overrides_runpath=yes
41407     ;;
41408   freebsd3.[01]* | freebsdelf3.[01]*)
41409     shlibpath_overrides_runpath=yes
41410     hardcode_into_libs=yes
41411     ;;
41412   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
41413   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
41414     shlibpath_overrides_runpath=no
41415     hardcode_into_libs=yes
41416     ;;
41417   *) # from 4.6 on, and DragonFly
41418     shlibpath_overrides_runpath=yes
41419     hardcode_into_libs=yes
41420     ;;
41421   esac
41422   ;;
41423
41424 haiku*)
41425   version_type=linux # correct to gnu/linux during the next big refactor
41426   need_lib_prefix=no
41427   need_version=no
41428   dynamic_linker="$host_os runtime_loader"
41429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
41430   soname_spec='${libname}${release}${shared_ext}$major'
41431   shlibpath_var=LIBRARY_PATH
41432   shlibpath_overrides_runpath=yes
41433   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
41434   hardcode_into_libs=yes
41435   ;;
41436
41437 hpux9* | hpux10* | hpux11*)
41438   # Give a soname corresponding to the major version so that dld.sl refuses to
41439   # link against other versions.
41440   version_type=sunos
41441   need_lib_prefix=no
41442   need_version=no
41443   case $host_cpu in
41444   ia64*)
41445     shrext_cmds='.so'
41446     hardcode_into_libs=yes
41447     dynamic_linker="$host_os dld.so"
41448     shlibpath_var=LD_LIBRARY_PATH
41449     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
41450     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41451     soname_spec='${libname}${release}${shared_ext}$major'
41452     if test "X$HPUX_IA64_MODE" = X32; then
41453       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
41454     else
41455       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
41456     fi
41457     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
41458     ;;
41459   hppa*64*)
41460     shrext_cmds='.sl'
41461     hardcode_into_libs=yes
41462     dynamic_linker="$host_os dld.sl"
41463     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
41464     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
41465     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41466     soname_spec='${libname}${release}${shared_ext}$major'
41467     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
41468     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
41469     ;;
41470   *)
41471     shrext_cmds='.sl'
41472     dynamic_linker="$host_os dld.sl"
41473     shlibpath_var=SHLIB_PATH
41474     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
41475     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41476     soname_spec='${libname}${release}${shared_ext}$major'
41477     ;;
41478   esac
41479   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
41480   postinstall_cmds='chmod 555 $lib'
41481   # or fails outright, so override atomically:
41482   install_override_mode=555
41483   ;;
41484
41485 interix[3-9]*)
41486   version_type=linux # correct to gnu/linux during the next big refactor
41487   need_lib_prefix=no
41488   need_version=no
41489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
41490   soname_spec='${libname}${release}${shared_ext}$major'
41491   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
41492   shlibpath_var=LD_LIBRARY_PATH
41493   shlibpath_overrides_runpath=no
41494   hardcode_into_libs=yes
41495   ;;
41496
41497 irix5* | irix6* | nonstopux*)
41498   case $host_os in
41499     nonstopux*) version_type=nonstopux ;;
41500     *)
41501         if test "$lt_cv_prog_gnu_ld" = yes; then
41502                 version_type=linux # correct to gnu/linux during the next big refactor
41503         else
41504                 version_type=irix
41505         fi ;;
41506   esac
41507   need_lib_prefix=no
41508   need_version=no
41509   soname_spec='${libname}${release}${shared_ext}$major'
41510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
41511   case $host_os in
41512   irix5* | nonstopux*)
41513     libsuff= shlibsuff=
41514     ;;
41515   *)
41516     case $LD in # libtool.m4 will add one of these switches to LD
41517     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
41518       libsuff= shlibsuff= libmagic=32-bit;;
41519     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
41520       libsuff=32 shlibsuff=N32 libmagic=N32;;
41521     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
41522       libsuff=64 shlibsuff=64 libmagic=64-bit;;
41523     *) libsuff= shlibsuff= libmagic=never-match;;
41524     esac
41525     ;;
41526   esac
41527   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
41528   shlibpath_overrides_runpath=no
41529   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
41530   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
41531   hardcode_into_libs=yes
41532   ;;
41533
41534 # No shared lib support for Linux oldld, aout, or coff.
41535 linux*oldld* | linux*aout* | linux*coff*)
41536   dynamic_linker=no
41537   ;;
41538
41539 # This must be glibc/ELF.
41540 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
41541   version_type=linux # correct to gnu/linux during the next big refactor
41542   need_lib_prefix=no
41543   need_version=no
41544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41545   soname_spec='${libname}${release}${shared_ext}$major'
41546   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
41547   shlibpath_var=LD_LIBRARY_PATH
41548   shlibpath_overrides_runpath=no
41549
41550   # Some binutils ld are patched to set DT_RUNPATH
41551   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
41552   $as_echo_n "(cached) " >&6
41553 else
41554   lt_cv_shlibpath_overrides_runpath=no
41555     save_LDFLAGS=$LDFLAGS
41556     save_libdir=$libdir
41557     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
41558          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
41559     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41560 /* end confdefs.h.  */
41561
41562 int
41563 main ()
41564 {
41565
41566   ;
41567   return 0;
41568 }
41569 _ACEOF
41570 if ac_fn_c_try_link "$LINENO"; then :
41571   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
41572   lt_cv_shlibpath_overrides_runpath=yes
41573 fi
41574 fi
41575 rm -f core conftest.err conftest.$ac_objext \
41576     conftest$ac_exeext conftest.$ac_ext
41577     LDFLAGS=$save_LDFLAGS
41578     libdir=$save_libdir
41579
41580 fi
41581
41582   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
41583
41584   # This implies no fast_install, which is unacceptable.
41585   # Some rework will be needed to allow for fast_install
41586   # before this can be enabled.
41587   hardcode_into_libs=yes
41588
41589   # Append ld.so.conf contents to the search path
41590   if test -f /etc/ld.so.conf; then
41591     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' ' '`
41592     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
41593   fi
41594
41595   # We used to test for /lib/ld.so.1 and disable shared libraries on
41596   # powerpc, because MkLinux only supported shared libraries with the
41597   # GNU dynamic linker.  Since this was broken with cross compilers,
41598   # most powerpc-linux boxes support dynamic linking these days and
41599   # people can always --disable-shared, the test was removed, and we
41600   # assume the GNU/Linux dynamic linker is in use.
41601   dynamic_linker='GNU/Linux ld.so'
41602   ;;
41603
41604 netbsdelf*-gnu)
41605   version_type=linux
41606   need_lib_prefix=no
41607   need_version=no
41608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
41609   soname_spec='${libname}${release}${shared_ext}$major'
41610   shlibpath_var=LD_LIBRARY_PATH
41611   shlibpath_overrides_runpath=no
41612   hardcode_into_libs=yes
41613   dynamic_linker='NetBSD ld.elf_so'
41614   ;;
41615
41616 netbsd*)
41617   version_type=sunos
41618   need_lib_prefix=no
41619   need_version=no
41620   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
41621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
41622     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
41623     dynamic_linker='NetBSD (a.out) ld.so'
41624   else
41625     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
41626     soname_spec='${libname}${release}${shared_ext}$major'
41627     dynamic_linker='NetBSD ld.elf_so'
41628   fi
41629   shlibpath_var=LD_LIBRARY_PATH
41630   shlibpath_overrides_runpath=yes
41631   hardcode_into_libs=yes
41632   ;;
41633
41634 newsos6)
41635   version_type=linux # correct to gnu/linux during the next big refactor
41636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41637   shlibpath_var=LD_LIBRARY_PATH
41638   shlibpath_overrides_runpath=yes
41639   ;;
41640
41641 *nto* | *qnx*)
41642   version_type=qnx
41643   need_lib_prefix=no
41644   need_version=no
41645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41646   soname_spec='${libname}${release}${shared_ext}$major'
41647   shlibpath_var=LD_LIBRARY_PATH
41648   shlibpath_overrides_runpath=no
41649   hardcode_into_libs=yes
41650   dynamic_linker='ldqnx.so'
41651   ;;
41652
41653 openbsd*)
41654   version_type=sunos
41655   sys_lib_dlsearch_path_spec="/usr/lib"
41656   need_lib_prefix=no
41657   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
41658   case $host_os in
41659     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
41660     *)                          need_version=no  ;;
41661   esac
41662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
41663   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
41664   shlibpath_var=LD_LIBRARY_PATH
41665   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
41666     case $host_os in
41667       openbsd2.[89] | openbsd2.[89].*)
41668         shlibpath_overrides_runpath=no
41669         ;;
41670       *)
41671         shlibpath_overrides_runpath=yes
41672         ;;
41673       esac
41674   else
41675     shlibpath_overrides_runpath=yes
41676   fi
41677   ;;
41678
41679 os2*)
41680   libname_spec='$name'
41681   shrext_cmds=".dll"
41682   need_lib_prefix=no
41683   library_names_spec='$libname${shared_ext} $libname.a'
41684   dynamic_linker='OS/2 ld.exe'
41685   shlibpath_var=LIBPATH
41686   ;;
41687
41688 osf3* | osf4* | osf5*)
41689   version_type=osf
41690   need_lib_prefix=no
41691   need_version=no
41692   soname_spec='${libname}${release}${shared_ext}$major'
41693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41694   shlibpath_var=LD_LIBRARY_PATH
41695   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
41696   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
41697   ;;
41698
41699 rdos*)
41700   dynamic_linker=no
41701   ;;
41702
41703 solaris*)
41704   version_type=linux # correct to gnu/linux during the next big refactor
41705   need_lib_prefix=no
41706   need_version=no
41707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41708   soname_spec='${libname}${release}${shared_ext}$major'
41709   shlibpath_var=LD_LIBRARY_PATH
41710   shlibpath_overrides_runpath=yes
41711   hardcode_into_libs=yes
41712   # ldd complains unless libraries are executable
41713   postinstall_cmds='chmod +x $lib'
41714   ;;
41715
41716 sunos4*)
41717   version_type=sunos
41718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
41719   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
41720   shlibpath_var=LD_LIBRARY_PATH
41721   shlibpath_overrides_runpath=yes
41722   if test "$with_gnu_ld" = yes; then
41723     need_lib_prefix=no
41724   fi
41725   need_version=yes
41726   ;;
41727
41728 sysv4 | sysv4.3*)
41729   version_type=linux # correct to gnu/linux during the next big refactor
41730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41731   soname_spec='${libname}${release}${shared_ext}$major'
41732   shlibpath_var=LD_LIBRARY_PATH
41733   case $host_vendor in
41734     sni)
41735       shlibpath_overrides_runpath=no
41736       need_lib_prefix=no
41737       runpath_var=LD_RUN_PATH
41738       ;;
41739     siemens)
41740       need_lib_prefix=no
41741       ;;
41742     motorola)
41743       need_lib_prefix=no
41744       need_version=no
41745       shlibpath_overrides_runpath=no
41746       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
41747       ;;
41748   esac
41749   ;;
41750
41751 sysv4*MP*)
41752   if test -d /usr/nec ;then
41753     version_type=linux # correct to gnu/linux during the next big refactor
41754     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
41755     soname_spec='$libname${shared_ext}.$major'
41756     shlibpath_var=LD_LIBRARY_PATH
41757   fi
41758   ;;
41759
41760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
41761   version_type=freebsd-elf
41762   need_lib_prefix=no
41763   need_version=no
41764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
41765   soname_spec='${libname}${release}${shared_ext}$major'
41766   shlibpath_var=LD_LIBRARY_PATH
41767   shlibpath_overrides_runpath=yes
41768   hardcode_into_libs=yes
41769   if test "$with_gnu_ld" = yes; then
41770     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
41771   else
41772     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
41773     case $host_os in
41774       sco3.2v5*)
41775         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
41776         ;;
41777     esac
41778   fi
41779   sys_lib_dlsearch_path_spec='/usr/lib'
41780   ;;
41781
41782 tpf*)
41783   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
41784   version_type=linux # correct to gnu/linux during the next big refactor
41785   need_lib_prefix=no
41786   need_version=no
41787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41788   shlibpath_var=LD_LIBRARY_PATH
41789   shlibpath_overrides_runpath=no
41790   hardcode_into_libs=yes
41791   ;;
41792
41793 uts4*)
41794   version_type=linux # correct to gnu/linux during the next big refactor
41795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41796   soname_spec='${libname}${release}${shared_ext}$major'
41797   shlibpath_var=LD_LIBRARY_PATH
41798   ;;
41799
41800 *)
41801   dynamic_linker=no
41802   ;;
41803 esac
41804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
41805 $as_echo "$dynamic_linker" >&6; }
41806 test "$dynamic_linker" = no && can_build_shared=no
41807
41808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
41809 if test "$GCC" = yes; then
41810   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
41811 fi
41812
41813 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
41814   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
41815 fi
41816 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
41817   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
41818 fi
41819
41820
41821
41822
41823
41824
41825
41826
41827
41828
41829
41830
41831
41832
41833
41834
41835
41836
41837
41838
41839
41840
41841
41842
41843
41844
41845
41846
41847
41848
41849
41850
41851
41852
41853
41854
41855
41856
41857
41858
41859
41860
41861
41862
41863
41864
41865
41866
41867
41868
41869
41870
41871
41872
41873
41874
41875
41876
41877
41878
41879
41880
41881
41882
41883
41884
41885
41886
41887
41888
41889
41890
41891
41892
41893
41894
41895
41896
41897
41898
41899
41900
41901
41902
41903
41904
41905
41906
41907
41908
41909
41910
41911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
41912 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
41913 hardcode_action=
41914 if test -n "$hardcode_libdir_flag_spec" ||
41915    test -n "$runpath_var" ||
41916    test "X$hardcode_automatic" = "Xyes" ; then
41917
41918   # We can hardcode non-existent directories.
41919   if test "$hardcode_direct" != no &&
41920      # If the only mechanism to avoid hardcoding is shlibpath_var, we
41921      # have to relink, otherwise we might link with an installed library
41922      # when we should be linking with a yet-to-be-installed one
41923      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
41924      test "$hardcode_minus_L" != no; then
41925     # Linking always hardcodes the temporary library directory.
41926     hardcode_action=relink
41927   else
41928     # We can link without hardcoding, and we can hardcode nonexisting dirs.
41929     hardcode_action=immediate
41930   fi
41931 else
41932   # We cannot hardcode anything, or else we can only hardcode existing
41933   # directories.
41934   hardcode_action=unsupported
41935 fi
41936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
41937 $as_echo "$hardcode_action" >&6; }
41938
41939 if test "$hardcode_action" = relink ||
41940    test "$inherit_rpath" = yes; then
41941   # Fast installation is not supported
41942   enable_fast_install=no
41943 elif test "$shlibpath_overrides_runpath" = yes ||
41944      test "$enable_shared" = no; then
41945   # Fast installation is not necessary
41946   enable_fast_install=needless
41947 fi
41948
41949
41950
41951
41952
41953
41954   if test "x$enable_dlopen" != xyes; then
41955   enable_dlopen=unknown
41956   enable_dlopen_self=unknown
41957   enable_dlopen_self_static=unknown
41958 else
41959   lt_cv_dlopen=no
41960   lt_cv_dlopen_libs=
41961
41962   case $host_os in
41963   beos*)
41964     lt_cv_dlopen="load_add_on"
41965     lt_cv_dlopen_libs=
41966     lt_cv_dlopen_self=yes
41967     ;;
41968
41969   mingw* | pw32* | cegcc*)
41970     lt_cv_dlopen="LoadLibrary"
41971     lt_cv_dlopen_libs=
41972     ;;
41973
41974   cygwin*)
41975     lt_cv_dlopen="dlopen"
41976     lt_cv_dlopen_libs=
41977     ;;
41978
41979   darwin*)
41980   # if libdl is installed we need to link against it
41981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
41982 $as_echo_n "checking for dlopen in -ldl... " >&6; }
41983 if ${ac_cv_lib_dl_dlopen+:} false; then :
41984   $as_echo_n "(cached) " >&6
41985 else
41986   ac_check_lib_save_LIBS=$LIBS
41987 LIBS="-ldl  $LIBS"
41988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41989 /* end confdefs.h.  */
41990
41991 /* Override any GCC internal prototype to avoid an error.
41992    Use char because int might match the return type of a GCC
41993    builtin and then its argument prototype would still apply.  */
41994 #ifdef __cplusplus
41995 extern "C"
41996 #endif
41997 char dlopen ();
41998 int
41999 main ()
42000 {
42001 return dlopen ();
42002   ;
42003   return 0;
42004 }
42005 _ACEOF
42006 if ac_fn_c_try_link "$LINENO"; then :
42007   ac_cv_lib_dl_dlopen=yes
42008 else
42009   ac_cv_lib_dl_dlopen=no
42010 fi
42011 rm -f core conftest.err conftest.$ac_objext \
42012     conftest$ac_exeext conftest.$ac_ext
42013 LIBS=$ac_check_lib_save_LIBS
42014 fi
42015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
42016 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
42017 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
42018   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
42019 else
42020
42021     lt_cv_dlopen="dyld"
42022     lt_cv_dlopen_libs=
42023     lt_cv_dlopen_self=yes
42024
42025 fi
42026
42027     ;;
42028
42029   *)
42030     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
42031 if test "x$ac_cv_func_shl_load" = xyes; then :
42032   lt_cv_dlopen="shl_load"
42033 else
42034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
42035 $as_echo_n "checking for shl_load in -ldld... " >&6; }
42036 if ${ac_cv_lib_dld_shl_load+:} false; then :
42037   $as_echo_n "(cached) " >&6
42038 else
42039   ac_check_lib_save_LIBS=$LIBS
42040 LIBS="-ldld  $LIBS"
42041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42042 /* end confdefs.h.  */
42043
42044 /* Override any GCC internal prototype to avoid an error.
42045    Use char because int might match the return type of a GCC
42046    builtin and then its argument prototype would still apply.  */
42047 #ifdef __cplusplus
42048 extern "C"
42049 #endif
42050 char shl_load ();
42051 int
42052 main ()
42053 {
42054 return shl_load ();
42055   ;
42056   return 0;
42057 }
42058 _ACEOF
42059 if ac_fn_c_try_link "$LINENO"; then :
42060   ac_cv_lib_dld_shl_load=yes
42061 else
42062   ac_cv_lib_dld_shl_load=no
42063 fi
42064 rm -f core conftest.err conftest.$ac_objext \
42065     conftest$ac_exeext conftest.$ac_ext
42066 LIBS=$ac_check_lib_save_LIBS
42067 fi
42068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
42069 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
42070 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
42071   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
42072 else
42073   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
42074 if test "x$ac_cv_func_dlopen" = xyes; then :
42075   lt_cv_dlopen="dlopen"
42076 else
42077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
42078 $as_echo_n "checking for dlopen in -ldl... " >&6; }
42079 if ${ac_cv_lib_dl_dlopen+:} false; then :
42080   $as_echo_n "(cached) " >&6
42081 else
42082   ac_check_lib_save_LIBS=$LIBS
42083 LIBS="-ldl  $LIBS"
42084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42085 /* end confdefs.h.  */
42086
42087 /* Override any GCC internal prototype to avoid an error.
42088    Use char because int might match the return type of a GCC
42089    builtin and then its argument prototype would still apply.  */
42090 #ifdef __cplusplus
42091 extern "C"
42092 #endif
42093 char dlopen ();
42094 int
42095 main ()
42096 {
42097 return dlopen ();
42098   ;
42099   return 0;
42100 }
42101 _ACEOF
42102 if ac_fn_c_try_link "$LINENO"; then :
42103   ac_cv_lib_dl_dlopen=yes
42104 else
42105   ac_cv_lib_dl_dlopen=no
42106 fi
42107 rm -f core conftest.err conftest.$ac_objext \
42108     conftest$ac_exeext conftest.$ac_ext
42109 LIBS=$ac_check_lib_save_LIBS
42110 fi
42111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
42112 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
42113 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
42114   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
42115 else
42116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
42117 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
42118 if ${ac_cv_lib_svld_dlopen+:} false; then :
42119   $as_echo_n "(cached) " >&6
42120 else
42121   ac_check_lib_save_LIBS=$LIBS
42122 LIBS="-lsvld  $LIBS"
42123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42124 /* end confdefs.h.  */
42125
42126 /* Override any GCC internal prototype to avoid an error.
42127    Use char because int might match the return type of a GCC
42128    builtin and then its argument prototype would still apply.  */
42129 #ifdef __cplusplus
42130 extern "C"
42131 #endif
42132 char dlopen ();
42133 int
42134 main ()
42135 {
42136 return dlopen ();
42137   ;
42138   return 0;
42139 }
42140 _ACEOF
42141 if ac_fn_c_try_link "$LINENO"; then :
42142   ac_cv_lib_svld_dlopen=yes
42143 else
42144   ac_cv_lib_svld_dlopen=no
42145 fi
42146 rm -f core conftest.err conftest.$ac_objext \
42147     conftest$ac_exeext conftest.$ac_ext
42148 LIBS=$ac_check_lib_save_LIBS
42149 fi
42150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
42151 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
42152 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
42153   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
42154 else
42155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
42156 $as_echo_n "checking for dld_link in -ldld... " >&6; }
42157 if ${ac_cv_lib_dld_dld_link+:} false; then :
42158   $as_echo_n "(cached) " >&6
42159 else
42160   ac_check_lib_save_LIBS=$LIBS
42161 LIBS="-ldld  $LIBS"
42162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42163 /* end confdefs.h.  */
42164
42165 /* Override any GCC internal prototype to avoid an error.
42166    Use char because int might match the return type of a GCC
42167    builtin and then its argument prototype would still apply.  */
42168 #ifdef __cplusplus
42169 extern "C"
42170 #endif
42171 char dld_link ();
42172 int
42173 main ()
42174 {
42175 return dld_link ();
42176   ;
42177   return 0;
42178 }
42179 _ACEOF
42180 if ac_fn_c_try_link "$LINENO"; then :
42181   ac_cv_lib_dld_dld_link=yes
42182 else
42183   ac_cv_lib_dld_dld_link=no
42184 fi
42185 rm -f core conftest.err conftest.$ac_objext \
42186     conftest$ac_exeext conftest.$ac_ext
42187 LIBS=$ac_check_lib_save_LIBS
42188 fi
42189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
42190 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
42191 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
42192   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
42193 fi
42194
42195
42196 fi
42197
42198
42199 fi
42200
42201
42202 fi
42203
42204
42205 fi
42206
42207
42208 fi
42209
42210     ;;
42211   esac
42212
42213   if test "x$lt_cv_dlopen" != xno; then
42214     enable_dlopen=yes
42215   else
42216     enable_dlopen=no
42217   fi
42218
42219   case $lt_cv_dlopen in
42220   dlopen)
42221     save_CPPFLAGS="$CPPFLAGS"
42222     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
42223
42224     save_LDFLAGS="$LDFLAGS"
42225     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
42226
42227     save_LIBS="$LIBS"
42228     LIBS="$lt_cv_dlopen_libs $LIBS"
42229
42230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
42231 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
42232 if ${lt_cv_dlopen_self+:} false; then :
42233   $as_echo_n "(cached) " >&6
42234 else
42235           if test "$cross_compiling" = yes; then :
42236   lt_cv_dlopen_self=cross
42237 else
42238   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
42239   lt_status=$lt_dlunknown
42240   cat > conftest.$ac_ext <<_LT_EOF
42241 #line $LINENO "configure"
42242 #include "confdefs.h"
42243
42244 #if HAVE_DLFCN_H
42245 #include <dlfcn.h>
42246 #endif
42247
42248 #include <stdio.h>
42249
42250 #ifdef RTLD_GLOBAL
42251 #  define LT_DLGLOBAL           RTLD_GLOBAL
42252 #else
42253 #  ifdef DL_GLOBAL
42254 #    define LT_DLGLOBAL         DL_GLOBAL
42255 #  else
42256 #    define LT_DLGLOBAL         0
42257 #  endif
42258 #endif
42259
42260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
42261    find out it does not work in some platform. */
42262 #ifndef LT_DLLAZY_OR_NOW
42263 #  ifdef RTLD_LAZY
42264 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
42265 #  else
42266 #    ifdef DL_LAZY
42267 #      define LT_DLLAZY_OR_NOW          DL_LAZY
42268 #    else
42269 #      ifdef RTLD_NOW
42270 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
42271 #      else
42272 #        ifdef DL_NOW
42273 #          define LT_DLLAZY_OR_NOW      DL_NOW
42274 #        else
42275 #          define LT_DLLAZY_OR_NOW      0
42276 #        endif
42277 #      endif
42278 #    endif
42279 #  endif
42280 #endif
42281
42282 /* When -fvisbility=hidden is used, assume the code has been annotated
42283    correspondingly for the symbols needed.  */
42284 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
42285 int fnord () __attribute__((visibility("default")));
42286 #endif
42287
42288 int fnord () { return 42; }
42289 int main ()
42290 {
42291   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
42292   int status = $lt_dlunknown;
42293
42294   if (self)
42295     {
42296       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
42297       else
42298         {
42299           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
42300           else puts (dlerror ());
42301         }
42302       /* dlclose (self); */
42303     }
42304   else
42305     puts (dlerror ());
42306
42307   return status;
42308 }
42309 _LT_EOF
42310   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
42311   (eval $ac_link) 2>&5
42312   ac_status=$?
42313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42314   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
42315     (./conftest; exit; ) >&5 2>/dev/null
42316     lt_status=$?
42317     case x$lt_status in
42318       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
42319       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
42320       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
42321     esac
42322   else :
42323     # compilation failed
42324     lt_cv_dlopen_self=no
42325   fi
42326 fi
42327 rm -fr conftest*
42328
42329
42330 fi
42331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
42332 $as_echo "$lt_cv_dlopen_self" >&6; }
42333
42334     if test "x$lt_cv_dlopen_self" = xyes; then
42335       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
42336       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
42337 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
42338 if ${lt_cv_dlopen_self_static+:} false; then :
42339   $as_echo_n "(cached) " >&6
42340 else
42341           if test "$cross_compiling" = yes; then :
42342   lt_cv_dlopen_self_static=cross
42343 else
42344   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
42345   lt_status=$lt_dlunknown
42346   cat > conftest.$ac_ext <<_LT_EOF
42347 #line $LINENO "configure"
42348 #include "confdefs.h"
42349
42350 #if HAVE_DLFCN_H
42351 #include <dlfcn.h>
42352 #endif
42353
42354 #include <stdio.h>
42355
42356 #ifdef RTLD_GLOBAL
42357 #  define LT_DLGLOBAL           RTLD_GLOBAL
42358 #else
42359 #  ifdef DL_GLOBAL
42360 #    define LT_DLGLOBAL         DL_GLOBAL
42361 #  else
42362 #    define LT_DLGLOBAL         0
42363 #  endif
42364 #endif
42365
42366 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
42367    find out it does not work in some platform. */
42368 #ifndef LT_DLLAZY_OR_NOW
42369 #  ifdef RTLD_LAZY
42370 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
42371 #  else
42372 #    ifdef DL_LAZY
42373 #      define LT_DLLAZY_OR_NOW          DL_LAZY
42374 #    else
42375 #      ifdef RTLD_NOW
42376 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
42377 #      else
42378 #        ifdef DL_NOW
42379 #          define LT_DLLAZY_OR_NOW      DL_NOW
42380 #        else
42381 #          define LT_DLLAZY_OR_NOW      0
42382 #        endif
42383 #      endif
42384 #    endif
42385 #  endif
42386 #endif
42387
42388 /* When -fvisbility=hidden is used, assume the code has been annotated
42389    correspondingly for the symbols needed.  */
42390 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
42391 int fnord () __attribute__((visibility("default")));
42392 #endif
42393
42394 int fnord () { return 42; }
42395 int main ()
42396 {
42397   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
42398   int status = $lt_dlunknown;
42399
42400   if (self)
42401     {
42402       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
42403       else
42404         {
42405           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
42406           else puts (dlerror ());
42407         }
42408       /* dlclose (self); */
42409     }
42410   else
42411     puts (dlerror ());
42412
42413   return status;
42414 }
42415 _LT_EOF
42416   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
42417   (eval $ac_link) 2>&5
42418   ac_status=$?
42419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42420   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
42421     (./conftest; exit; ) >&5 2>/dev/null
42422     lt_status=$?
42423     case x$lt_status in
42424       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
42425       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
42426       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
42427     esac
42428   else :
42429     # compilation failed
42430     lt_cv_dlopen_self_static=no
42431   fi
42432 fi
42433 rm -fr conftest*
42434
42435
42436 fi
42437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
42438 $as_echo "$lt_cv_dlopen_self_static" >&6; }
42439     fi
42440
42441     CPPFLAGS="$save_CPPFLAGS"
42442     LDFLAGS="$save_LDFLAGS"
42443     LIBS="$save_LIBS"
42444     ;;
42445   esac
42446
42447   case $lt_cv_dlopen_self in
42448   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
42449   *) enable_dlopen_self=unknown ;;
42450   esac
42451
42452   case $lt_cv_dlopen_self_static in
42453   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
42454   *) enable_dlopen_self_static=unknown ;;
42455   esac
42456 fi
42457
42458
42459
42460
42461
42462
42463
42464
42465
42466
42467
42468
42469
42470
42471
42472
42473
42474 striplib=
42475 old_striplib=
42476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
42477 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
42478 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
42479   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
42480   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
42481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42482 $as_echo "yes" >&6; }
42483 else
42484 # FIXME - insert some real tests, host_os isn't really good enough
42485   case $host_os in
42486   darwin*)
42487     if test -n "$STRIP" ; then
42488       striplib="$STRIP -x"
42489       old_striplib="$STRIP -S"
42490       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42491 $as_echo "yes" >&6; }
42492     else
42493       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42494 $as_echo "no" >&6; }
42495     fi
42496     ;;
42497   *)
42498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42499 $as_echo "no" >&6; }
42500     ;;
42501   esac
42502 fi
42503
42504
42505
42506
42507
42508
42509
42510
42511
42512
42513
42514
42515   # Report which library types will actually be built
42516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
42517 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
42518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
42519 $as_echo "$can_build_shared" >&6; }
42520
42521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
42522 $as_echo_n "checking whether to build shared libraries... " >&6; }
42523   test "$can_build_shared" = "no" && enable_shared=no
42524
42525   # On AIX, shared libraries and static libraries use the same namespace, and
42526   # are all built from PIC.
42527   case $host_os in
42528   aix3*)
42529     test "$enable_shared" = yes && enable_static=no
42530     if test -n "$RANLIB"; then
42531       archive_cmds="$archive_cmds~\$RANLIB \$lib"
42532       postinstall_cmds='$RANLIB $lib'
42533     fi
42534     ;;
42535
42536   aix[4-9]*)
42537     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
42538       test "$enable_shared" = yes && enable_static=no
42539     fi
42540     ;;
42541   esac
42542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
42543 $as_echo "$enable_shared" >&6; }
42544
42545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
42546 $as_echo_n "checking whether to build static libraries... " >&6; }
42547   # Make sure either enable_shared or enable_static is yes.
42548   test "$enable_shared" = yes || enable_static=yes
42549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
42550 $as_echo "$enable_static" >&6; }
42551
42552
42553
42554
42555 fi
42556 ac_ext=c
42557 ac_cpp='$CPP $CPPFLAGS'
42558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42561
42562 CC="$lt_save_CC"
42563
42564       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
42565     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
42566     (test "X$CXX" != "Xg++"))) ; then
42567   ac_ext=cpp
42568 ac_cpp='$CXXCPP $CPPFLAGS'
42569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
42573 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
42574 if test -z "$CXXCPP"; then
42575   if ${ac_cv_prog_CXXCPP+:} false; then :
42576   $as_echo_n "(cached) " >&6
42577 else
42578       # Double quotes because CXXCPP needs to be expanded
42579     for CXXCPP in "$CXX -E" "/lib/cpp"
42580     do
42581       ac_preproc_ok=false
42582 for ac_cxx_preproc_warn_flag in '' yes
42583 do
42584   # Use a header file that comes with gcc, so configuring glibc
42585   # with a fresh cross-compiler works.
42586   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42587   # <limits.h> exists even on freestanding compilers.
42588   # On the NeXT, cc -E runs the code through the compiler's parser,
42589   # not just through cpp. "Syntax error" is here to catch this case.
42590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42591 /* end confdefs.h.  */
42592 #ifdef __STDC__
42593 # include <limits.h>
42594 #else
42595 # include <assert.h>
42596 #endif
42597                      Syntax error
42598 _ACEOF
42599 if ac_fn_cxx_try_cpp "$LINENO"; then :
42600
42601 else
42602   # Broken: fails on valid input.
42603 continue
42604 fi
42605 rm -f conftest.err conftest.i conftest.$ac_ext
42606
42607   # OK, works on sane cases.  Now check whether nonexistent headers
42608   # can be detected and how.
42609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42610 /* end confdefs.h.  */
42611 #include <ac_nonexistent.h>
42612 _ACEOF
42613 if ac_fn_cxx_try_cpp "$LINENO"; then :
42614   # Broken: success on invalid input.
42615 continue
42616 else
42617   # Passes both tests.
42618 ac_preproc_ok=:
42619 break
42620 fi
42621 rm -f conftest.err conftest.i conftest.$ac_ext
42622
42623 done
42624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
42625 rm -f conftest.i conftest.err conftest.$ac_ext
42626 if $ac_preproc_ok; then :
42627   break
42628 fi
42629
42630     done
42631     ac_cv_prog_CXXCPP=$CXXCPP
42632
42633 fi
42634   CXXCPP=$ac_cv_prog_CXXCPP
42635 else
42636   ac_cv_prog_CXXCPP=$CXXCPP
42637 fi
42638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
42639 $as_echo "$CXXCPP" >&6; }
42640 ac_preproc_ok=false
42641 for ac_cxx_preproc_warn_flag in '' yes
42642 do
42643   # Use a header file that comes with gcc, so configuring glibc
42644   # with a fresh cross-compiler works.
42645   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42646   # <limits.h> exists even on freestanding compilers.
42647   # On the NeXT, cc -E runs the code through the compiler's parser,
42648   # not just through cpp. "Syntax error" is here to catch this case.
42649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42650 /* end confdefs.h.  */
42651 #ifdef __STDC__
42652 # include <limits.h>
42653 #else
42654 # include <assert.h>
42655 #endif
42656                      Syntax error
42657 _ACEOF
42658 if ac_fn_cxx_try_cpp "$LINENO"; then :
42659
42660 else
42661   # Broken: fails on valid input.
42662 continue
42663 fi
42664 rm -f conftest.err conftest.i conftest.$ac_ext
42665
42666   # OK, works on sane cases.  Now check whether nonexistent headers
42667   # can be detected and how.
42668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42669 /* end confdefs.h.  */
42670 #include <ac_nonexistent.h>
42671 _ACEOF
42672 if ac_fn_cxx_try_cpp "$LINENO"; then :
42673   # Broken: success on invalid input.
42674 continue
42675 else
42676   # Passes both tests.
42677 ac_preproc_ok=:
42678 break
42679 fi
42680 rm -f conftest.err conftest.i conftest.$ac_ext
42681
42682 done
42683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
42684 rm -f conftest.i conftest.err conftest.$ac_ext
42685 if $ac_preproc_ok; then :
42686
42687 else
42688   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42690 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
42691 See \`config.log' for more details" "$LINENO" 5; }
42692 fi
42693
42694 ac_ext=c
42695 ac_cpp='$CPP $CPPFLAGS'
42696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42699
42700 else
42701   _lt_caught_CXX_error=yes
42702 fi
42703
42704 ac_ext=cpp
42705 ac_cpp='$CXXCPP $CPPFLAGS'
42706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42709
42710 archive_cmds_need_lc_CXX=no
42711 allow_undefined_flag_CXX=
42712 always_export_symbols_CXX=no
42713 archive_expsym_cmds_CXX=
42714 compiler_needs_object_CXX=no
42715 export_dynamic_flag_spec_CXX=
42716 hardcode_direct_CXX=no
42717 hardcode_direct_absolute_CXX=no
42718 hardcode_libdir_flag_spec_CXX=
42719 hardcode_libdir_separator_CXX=
42720 hardcode_minus_L_CXX=no
42721 hardcode_shlibpath_var_CXX=unsupported
42722 hardcode_automatic_CXX=no
42723 inherit_rpath_CXX=no
42724 module_cmds_CXX=
42725 module_expsym_cmds_CXX=
42726 link_all_deplibs_CXX=unknown
42727 old_archive_cmds_CXX=$old_archive_cmds
42728 reload_flag_CXX=$reload_flag
42729 reload_cmds_CXX=$reload_cmds
42730 no_undefined_flag_CXX=
42731 whole_archive_flag_spec_CXX=
42732 enable_shared_with_static_runtimes_CXX=no
42733
42734 # Source file extension for C++ test sources.
42735 ac_ext=cpp
42736
42737 # Object file extension for compiled C++ test sources.
42738 objext=o
42739 objext_CXX=$objext
42740
42741 # No sense in running all these tests if we already determined that
42742 # the CXX compiler isn't working.  Some variables (like enable_shared)
42743 # are currently assumed to apply to all compilers on this platform,
42744 # and will be corrupted by setting them based on a non-working compiler.
42745 if test "$_lt_caught_CXX_error" != yes; then
42746   # Code to be used in simple compile tests
42747   lt_simple_compile_test_code="int some_variable = 0;"
42748
42749   # Code to be used in simple link tests
42750   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
42751
42752   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
42753
42754
42755
42756
42757
42758
42759 # If no C compiler was specified, use CC.
42760 LTCC=${LTCC-"$CC"}
42761
42762 # If no C compiler flags were specified, use CFLAGS.
42763 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42764
42765 # Allow CC to be a program name with arguments.
42766 compiler=$CC
42767
42768
42769   # save warnings/boilerplate of simple test code
42770   ac_outfile=conftest.$ac_objext
42771 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
42772 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
42773 _lt_compiler_boilerplate=`cat conftest.err`
42774 $RM conftest*
42775
42776   ac_outfile=conftest.$ac_objext
42777 echo "$lt_simple_link_test_code" >conftest.$ac_ext
42778 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
42779 _lt_linker_boilerplate=`cat conftest.err`
42780 $RM -r conftest*
42781
42782
42783   # Allow CC to be a program name with arguments.
42784   lt_save_CC=$CC
42785   lt_save_CFLAGS=$CFLAGS
42786   lt_save_LD=$LD
42787   lt_save_GCC=$GCC
42788   GCC=$GXX
42789   lt_save_with_gnu_ld=$with_gnu_ld
42790   lt_save_path_LD=$lt_cv_path_LD
42791   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
42792     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
42793   else
42794     $as_unset lt_cv_prog_gnu_ld
42795   fi
42796   if test -n "${lt_cv_path_LDCXX+set}"; then
42797     lt_cv_path_LD=$lt_cv_path_LDCXX
42798   else
42799     $as_unset lt_cv_path_LD
42800   fi
42801   test -z "${LDCXX+set}" || LD=$LDCXX
42802   CC=${CXX-"c++"}
42803   CFLAGS=$CXXFLAGS
42804   compiler=$CC
42805   compiler_CXX=$CC
42806   for cc_temp in $compiler""; do
42807   case $cc_temp in
42808     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
42809     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
42810     \-*) ;;
42811     *) break;;
42812   esac
42813 done
42814 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
42815
42816
42817   if test -n "$compiler"; then
42818     # We don't want -fno-exception when compiling C++ code, so set the
42819     # no_builtin_flag separately
42820     if test "$GXX" = yes; then
42821       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
42822     else
42823       lt_prog_compiler_no_builtin_flag_CXX=
42824     fi
42825
42826     if test "$GXX" = yes; then
42827       # Set up default GNU C++ configuration
42828
42829
42830
42831 # Check whether --with-gnu-ld was given.
42832 if test "${with_gnu_ld+set}" = set; then :
42833   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
42834 else
42835   with_gnu_ld=no
42836 fi
42837
42838 ac_prog=ld
42839 if test "$GCC" = yes; then
42840   # Check if gcc -print-prog-name=ld gives a path.
42841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
42842 $as_echo_n "checking for ld used by $CC... " >&6; }
42843   case $host in
42844   *-*-mingw*)
42845     # gcc leaves a trailing carriage return which upsets mingw
42846     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
42847   *)
42848     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
42849   esac
42850   case $ac_prog in
42851     # Accept absolute paths.
42852     [\\/]* | ?:[\\/]*)
42853       re_direlt='/[^/][^/]*/\.\./'
42854       # Canonicalize the pathname of ld
42855       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
42856       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
42857         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
42858       done
42859       test -z "$LD" && LD="$ac_prog"
42860       ;;
42861   "")
42862     # If it fails, then pretend we aren't using GCC.
42863     ac_prog=ld
42864     ;;
42865   *)
42866     # If it is relative, then search for the first ld in PATH.
42867     with_gnu_ld=unknown
42868     ;;
42869   esac
42870 elif test "$with_gnu_ld" = yes; then
42871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
42872 $as_echo_n "checking for GNU ld... " >&6; }
42873 else
42874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
42875 $as_echo_n "checking for non-GNU ld... " >&6; }
42876 fi
42877 if ${lt_cv_path_LD+:} false; then :
42878   $as_echo_n "(cached) " >&6
42879 else
42880   if test -z "$LD"; then
42881   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
42882   for ac_dir in $PATH; do
42883     IFS="$lt_save_ifs"
42884     test -z "$ac_dir" && ac_dir=.
42885     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
42886       lt_cv_path_LD="$ac_dir/$ac_prog"
42887       # Check to see if the program is GNU ld.  I'd rather use --version,
42888       # but apparently some variants of GNU ld only accept -v.
42889       # Break only if it was the GNU/non-GNU ld that we prefer.
42890       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
42891       *GNU* | *'with BFD'*)
42892         test "$with_gnu_ld" != no && break
42893         ;;
42894       *)
42895         test "$with_gnu_ld" != yes && break
42896         ;;
42897       esac
42898     fi
42899   done
42900   IFS="$lt_save_ifs"
42901 else
42902   lt_cv_path_LD="$LD" # Let the user override the test with a path.
42903 fi
42904 fi
42905
42906 LD="$lt_cv_path_LD"
42907 if test -n "$LD"; then
42908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
42909 $as_echo "$LD" >&6; }
42910 else
42911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42912 $as_echo "no" >&6; }
42913 fi
42914 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
42915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
42916 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
42917 if ${lt_cv_prog_gnu_ld+:} false; then :
42918   $as_echo_n "(cached) " >&6
42919 else
42920   # I'd rather use --version here, but apparently some GNU lds only accept -v.
42921 case `$LD -v 2>&1 </dev/null` in
42922 *GNU* | *'with BFD'*)
42923   lt_cv_prog_gnu_ld=yes
42924   ;;
42925 *)
42926   lt_cv_prog_gnu_ld=no
42927   ;;
42928 esac
42929 fi
42930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
42931 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
42932 with_gnu_ld=$lt_cv_prog_gnu_ld
42933
42934
42935
42936
42937
42938
42939
42940       # Check if GNU C++ uses GNU ld as the underlying linker, since the
42941       # archiving commands below assume that GNU ld is being used.
42942       if test "$with_gnu_ld" = yes; then
42943         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
42944         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
42945
42946         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
42947         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
42948
42949         # If archive_cmds runs LD, not CC, wlarc should be empty
42950         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
42951         #     investigate it a little bit more. (MM)
42952         wlarc='${wl}'
42953
42954         # ancient GNU ld didn't support --whole-archive et. al.
42955         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
42956           $GREP 'no-whole-archive' > /dev/null; then
42957           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
42958         else
42959           whole_archive_flag_spec_CXX=
42960         fi
42961       else
42962         with_gnu_ld=no
42963         wlarc=
42964
42965         # A generic and very simple default shared library creation
42966         # command for GNU C++ for the case where it uses the native
42967         # linker, instead of GNU ld.  If possible, this setting should
42968         # overridden to take advantage of the native linker features on
42969         # the platform it is being used on.
42970         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
42971       fi
42972
42973       # Commands to make compiler produce verbose output that lists
42974       # what "hidden" libraries, object files and flags are used when
42975       # linking a shared library.
42976       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
42977
42978     else
42979       GXX=no
42980       with_gnu_ld=no
42981       wlarc=
42982     fi
42983
42984     # PORTME: fill in a description of your system's C++ link characteristics
42985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
42986 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
42987     ld_shlibs_CXX=yes
42988     case $host_os in
42989       aix3*)
42990         # FIXME: insert proper C++ library support
42991         ld_shlibs_CXX=no
42992         ;;
42993       aix[4-9]*)
42994         if test "$host_cpu" = ia64; then
42995           # On IA64, the linker does run time linking by default, so we don't
42996           # have to do anything special.
42997           aix_use_runtimelinking=no
42998           exp_sym_flag='-Bexport'
42999           no_entry_flag=""
43000         else
43001           aix_use_runtimelinking=no
43002
43003           # Test if we are trying to use run time linking or normal
43004           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
43005           # need to do runtime linking.
43006           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
43007             for ld_flag in $LDFLAGS; do
43008               case $ld_flag in
43009               *-brtl*)
43010                 aix_use_runtimelinking=yes
43011                 break
43012                 ;;
43013               esac
43014             done
43015             ;;
43016           esac
43017
43018           exp_sym_flag='-bexport'
43019           no_entry_flag='-bnoentry'
43020         fi
43021
43022         # When large executables or shared objects are built, AIX ld can
43023         # have problems creating the table of contents.  If linking a library
43024         # or program results in "error TOC overflow" add -mminimal-toc to
43025         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
43026         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
43027
43028         archive_cmds_CXX=''
43029         hardcode_direct_CXX=yes
43030         hardcode_direct_absolute_CXX=yes
43031         hardcode_libdir_separator_CXX=':'
43032         link_all_deplibs_CXX=yes
43033         file_list_spec_CXX='${wl}-f,'
43034
43035         if test "$GXX" = yes; then
43036           case $host_os in aix4.[012]|aix4.[012].*)
43037           # We only want to do this on AIX 4.2 and lower, the check
43038           # below for broken collect2 doesn't work under 4.3+
43039           collect2name=`${CC} -print-prog-name=collect2`
43040           if test -f "$collect2name" &&
43041              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
43042           then
43043             # We have reworked collect2
43044             :
43045           else
43046             # We have old collect2
43047             hardcode_direct_CXX=unsupported
43048             # It fails to find uninstalled libraries when the uninstalled
43049             # path is not listed in the libpath.  Setting hardcode_minus_L
43050             # to unsupported forces relinking
43051             hardcode_minus_L_CXX=yes
43052             hardcode_libdir_flag_spec_CXX='-L$libdir'
43053             hardcode_libdir_separator_CXX=
43054           fi
43055           esac
43056           shared_flag='-shared'
43057           if test "$aix_use_runtimelinking" = yes; then
43058             shared_flag="$shared_flag "'${wl}-G'
43059           fi
43060         else
43061           # not using gcc
43062           if test "$host_cpu" = ia64; then
43063           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
43064           # chokes on -Wl,-G. The following line is correct:
43065           shared_flag='-G'
43066           else
43067             if test "$aix_use_runtimelinking" = yes; then
43068               shared_flag='${wl}-G'
43069             else
43070               shared_flag='${wl}-bM:SRE'
43071             fi
43072           fi
43073         fi
43074
43075         export_dynamic_flag_spec_CXX='${wl}-bexpall'
43076         # It seems that -bexpall does not export symbols beginning with
43077         # underscore (_), so it is better to generate a list of symbols to
43078         # export.
43079         always_export_symbols_CXX=yes
43080         if test "$aix_use_runtimelinking" = yes; then
43081           # Warning - without using the other runtime loading flags (-brtl),
43082           # -berok will link without error, but may produce a broken library.
43083           allow_undefined_flag_CXX='-berok'
43084           # Determine the default libpath from the value encoded in an empty
43085           # executable.
43086           if test "${lt_cv_aix_libpath+set}" = set; then
43087   aix_libpath=$lt_cv_aix_libpath
43088 else
43089   if ${lt_cv_aix_libpath__CXX+:} false; then :
43090   $as_echo_n "(cached) " >&6
43091 else
43092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43093 /* end confdefs.h.  */
43094
43095 int
43096 main ()
43097 {
43098
43099   ;
43100   return 0;
43101 }
43102 _ACEOF
43103 if ac_fn_cxx_try_link "$LINENO"; then :
43104
43105   lt_aix_libpath_sed='
43106       /Import File Strings/,/^$/ {
43107           /^0/ {
43108               s/^0  *\([^ ]*\) *$/\1/
43109               p
43110           }
43111       }'
43112   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
43113   # Check for a 64-bit object if we didn't find anything.
43114   if test -z "$lt_cv_aix_libpath__CXX"; then
43115     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
43116   fi
43117 fi
43118 rm -f core conftest.err conftest.$ac_objext \
43119     conftest$ac_exeext conftest.$ac_ext
43120   if test -z "$lt_cv_aix_libpath__CXX"; then
43121     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
43122   fi
43123
43124 fi
43125
43126   aix_libpath=$lt_cv_aix_libpath__CXX
43127 fi
43128
43129           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
43130
43131           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
43132         else
43133           if test "$host_cpu" = ia64; then
43134             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
43135             allow_undefined_flag_CXX="-z nodefs"
43136             archive_expsym_cmds_CXX="\$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"
43137           else
43138             # Determine the default libpath from the value encoded in an
43139             # empty executable.
43140             if test "${lt_cv_aix_libpath+set}" = set; then
43141   aix_libpath=$lt_cv_aix_libpath
43142 else
43143   if ${lt_cv_aix_libpath__CXX+:} false; then :
43144   $as_echo_n "(cached) " >&6
43145 else
43146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43147 /* end confdefs.h.  */
43148
43149 int
43150 main ()
43151 {
43152
43153   ;
43154   return 0;
43155 }
43156 _ACEOF
43157 if ac_fn_cxx_try_link "$LINENO"; then :
43158
43159   lt_aix_libpath_sed='
43160       /Import File Strings/,/^$/ {
43161           /^0/ {
43162               s/^0  *\([^ ]*\) *$/\1/
43163               p
43164           }
43165       }'
43166   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
43167   # Check for a 64-bit object if we didn't find anything.
43168   if test -z "$lt_cv_aix_libpath__CXX"; then
43169     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
43170   fi
43171 fi
43172 rm -f core conftest.err conftest.$ac_objext \
43173     conftest$ac_exeext conftest.$ac_ext
43174   if test -z "$lt_cv_aix_libpath__CXX"; then
43175     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
43176   fi
43177
43178 fi
43179
43180   aix_libpath=$lt_cv_aix_libpath__CXX
43181 fi
43182
43183             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
43184             # Warning - without using the other run time loading flags,
43185             # -berok will link without error, but may produce a broken library.
43186             no_undefined_flag_CXX=' ${wl}-bernotok'
43187             allow_undefined_flag_CXX=' ${wl}-berok'
43188             if test "$with_gnu_ld" = yes; then
43189               # We only use this code for GNU lds that support --whole-archive.
43190               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
43191             else
43192               # Exported symbols can be pulled into shared objects from archives
43193               whole_archive_flag_spec_CXX='$convenience'
43194             fi
43195             archive_cmds_need_lc_CXX=yes
43196             # This is similar to how AIX traditionally builds its shared
43197             # libraries.
43198             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
43199           fi
43200         fi
43201         ;;
43202
43203       beos*)
43204         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
43205           allow_undefined_flag_CXX=unsupported
43206           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
43207           # support --undefined.  This deserves some investigation.  FIXME
43208           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43209         else
43210           ld_shlibs_CXX=no
43211         fi
43212         ;;
43213
43214       chorus*)
43215         case $cc_basename in
43216           *)
43217           # FIXME: insert proper C++ library support
43218           ld_shlibs_CXX=no
43219           ;;
43220         esac
43221         ;;
43222
43223       cygwin* | mingw* | pw32* | cegcc*)
43224         case $GXX,$cc_basename in
43225         ,cl* | no,cl*)
43226           # Native MSVC
43227           # hardcode_libdir_flag_spec is actually meaningless, as there is
43228           # no search path for DLLs.
43229           hardcode_libdir_flag_spec_CXX=' '
43230           allow_undefined_flag_CXX=unsupported
43231           always_export_symbols_CXX=yes
43232           file_list_spec_CXX='@'
43233           # Tell ltmain to make .lib files, not .a files.
43234           libext=lib
43235           # Tell ltmain to make .dll files, not .so files.
43236           shrext_cmds=".dll"
43237           # FIXME: Setting linknames here is a bad hack.
43238           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
43239           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
43240               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
43241             else
43242               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
43243             fi~
43244             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
43245             linknames='
43246           # The linker will not automatically build a static lib if we build a DLL.
43247           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
43248           enable_shared_with_static_runtimes_CXX=yes
43249           # Don't use ranlib
43250           old_postinstall_cmds_CXX='chmod 644 $oldlib'
43251           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
43252             lt_tool_outputfile="@TOOL_OUTPUT@"~
43253             case $lt_outputfile in
43254               *.exe|*.EXE) ;;
43255               *)
43256                 lt_outputfile="$lt_outputfile.exe"
43257                 lt_tool_outputfile="$lt_tool_outputfile.exe"
43258                 ;;
43259             esac~
43260             func_to_tool_file "$lt_outputfile"~
43261             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
43262               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
43263               $RM "$lt_outputfile.manifest";
43264             fi'
43265           ;;
43266         *)
43267           # g++
43268           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
43269           # as there is no search path for DLLs.
43270           hardcode_libdir_flag_spec_CXX='-L$libdir'
43271           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
43272           allow_undefined_flag_CXX=unsupported
43273           always_export_symbols_CXX=no
43274           enable_shared_with_static_runtimes_CXX=yes
43275
43276           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
43277             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
43278             # If the export-symbols file already is a .def file (1st line
43279             # is EXPORTS), use it as is; otherwise, prepend...
43280             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
43281               cp $export_symbols $output_objdir/$soname.def;
43282             else
43283               echo EXPORTS > $output_objdir/$soname.def;
43284               cat $export_symbols >> $output_objdir/$soname.def;
43285             fi~
43286             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
43287           else
43288             ld_shlibs_CXX=no
43289           fi
43290           ;;
43291         esac
43292         ;;
43293       darwin* | rhapsody*)
43294
43295
43296   archive_cmds_need_lc_CXX=no
43297   hardcode_direct_CXX=no
43298   hardcode_automatic_CXX=yes
43299   hardcode_shlibpath_var_CXX=unsupported
43300   if test "$lt_cv_ld_force_load" = "yes"; then
43301     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
43302
43303   else
43304     whole_archive_flag_spec_CXX=''
43305   fi
43306   link_all_deplibs_CXX=yes
43307   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
43308   case $cc_basename in
43309      ifort*) _lt_dar_can_shared=yes ;;
43310      *) _lt_dar_can_shared=$GCC ;;
43311   esac
43312   if test "$_lt_dar_can_shared" = "yes"; then
43313     output_verbose_link_cmd=func_echo_all
43314     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
43315     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
43316     archive_expsym_cmds_CXX="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}"
43317     module_expsym_cmds_CXX="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}"
43318        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
43319       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
43320       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
43321     fi
43322
43323   else
43324   ld_shlibs_CXX=no
43325   fi
43326
43327         ;;
43328
43329       dgux*)
43330         case $cc_basename in
43331           ec++*)
43332             # FIXME: insert proper C++ library support
43333             ld_shlibs_CXX=no
43334             ;;
43335           ghcx*)
43336             # Green Hills C++ Compiler
43337             # FIXME: insert proper C++ library support
43338             ld_shlibs_CXX=no
43339             ;;
43340           *)
43341             # FIXME: insert proper C++ library support
43342             ld_shlibs_CXX=no
43343             ;;
43344         esac
43345         ;;
43346
43347       freebsd2.*)
43348         # C++ shared libraries reported to be fairly broken before
43349         # switch to ELF
43350         ld_shlibs_CXX=no
43351         ;;
43352
43353       freebsd-elf*)
43354         archive_cmds_need_lc_CXX=no
43355         ;;
43356
43357       freebsd* | dragonfly*)
43358         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
43359         # conventions
43360         ld_shlibs_CXX=yes
43361         ;;
43362
43363       haiku*)
43364         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43365         link_all_deplibs_CXX=yes
43366         ;;
43367
43368       hpux9*)
43369         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
43370         hardcode_libdir_separator_CXX=:
43371         export_dynamic_flag_spec_CXX='${wl}-E'
43372         hardcode_direct_CXX=yes
43373         hardcode_minus_L_CXX=yes # Not in the search PATH,
43374                                              # but as the default
43375                                              # location of the library.
43376
43377         case $cc_basename in
43378           CC*)
43379             # FIXME: insert proper C++ library support
43380             ld_shlibs_CXX=no
43381             ;;
43382           aCC*)
43383             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
43384             # Commands to make compiler produce verbose output that lists
43385             # what "hidden" libraries, object files and flags are used when
43386             # linking a shared library.
43387             #
43388             # There doesn't appear to be a way to prevent this compiler from
43389             # explicitly linking system object files so we need to strip them
43390             # from the output so that they don't get included in the library
43391             # dependencies.
43392             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
43393             ;;
43394           *)
43395             if test "$GXX" = yes; then
43396               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
43397             else
43398               # FIXME: insert proper C++ library support
43399               ld_shlibs_CXX=no
43400             fi
43401             ;;
43402         esac
43403         ;;
43404
43405       hpux10*|hpux11*)
43406         if test $with_gnu_ld = no; then
43407           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
43408           hardcode_libdir_separator_CXX=:
43409
43410           case $host_cpu in
43411             hppa*64*|ia64*)
43412               ;;
43413             *)
43414               export_dynamic_flag_spec_CXX='${wl}-E'
43415               ;;
43416           esac
43417         fi
43418         case $host_cpu in
43419           hppa*64*|ia64*)
43420             hardcode_direct_CXX=no
43421             hardcode_shlibpath_var_CXX=no
43422             ;;
43423           *)
43424             hardcode_direct_CXX=yes
43425             hardcode_direct_absolute_CXX=yes
43426             hardcode_minus_L_CXX=yes # Not in the search PATH,
43427                                                  # but as the default
43428                                                  # location of the library.
43429             ;;
43430         esac
43431
43432         case $cc_basename in
43433           CC*)
43434             # FIXME: insert proper C++ library support
43435             ld_shlibs_CXX=no
43436             ;;
43437           aCC*)
43438             case $host_cpu in
43439               hppa*64*)
43440                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43441                 ;;
43442               ia64*)
43443                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43444                 ;;
43445               *)
43446                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43447                 ;;
43448             esac
43449             # Commands to make compiler produce verbose output that lists
43450             # what "hidden" libraries, object files and flags are used when
43451             # linking a shared library.
43452             #
43453             # There doesn't appear to be a way to prevent this compiler from
43454             # explicitly linking system object files so we need to strip them
43455             # from the output so that they don't get included in the library
43456             # dependencies.
43457             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
43458             ;;
43459           *)
43460             if test "$GXX" = yes; then
43461               if test $with_gnu_ld = no; then
43462                 case $host_cpu in
43463                   hppa*64*)
43464                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43465                     ;;
43466                   ia64*)
43467                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43468                     ;;
43469                   *)
43470                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43471                     ;;
43472                 esac
43473               fi
43474             else
43475               # FIXME: insert proper C++ library support
43476               ld_shlibs_CXX=no
43477             fi
43478             ;;
43479         esac
43480         ;;
43481
43482       interix[3-9]*)
43483         hardcode_direct_CXX=no
43484         hardcode_shlibpath_var_CXX=no
43485         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
43486         export_dynamic_flag_spec_CXX='${wl}-E'
43487         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
43488         # Instead, shared libraries are loaded at an image base (0x10000000 by
43489         # default) and relocated if they conflict, which is a slow very memory
43490         # consuming and fragmenting process.  To avoid this, we pick a random,
43491         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
43492         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
43493         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
43494         archive_expsym_cmds_CXX='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'
43495         ;;
43496       irix5* | irix6*)
43497         case $cc_basename in
43498           CC*)
43499             # SGI C++
43500             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
43501
43502             # Archives containing C++ object files must be created using
43503             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
43504             # necessary to make sure instantiated templates are included
43505             # in the archive.
43506             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
43507             ;;
43508           *)
43509             if test "$GXX" = yes; then
43510               if test "$with_gnu_ld" = no; then
43511                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
43512               else
43513                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
43514               fi
43515             fi
43516             link_all_deplibs_CXX=yes
43517             ;;
43518         esac
43519         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
43520         hardcode_libdir_separator_CXX=:
43521         inherit_rpath_CXX=yes
43522         ;;
43523
43524       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
43525         case $cc_basename in
43526           KCC*)
43527             # Kuck and Associates, Inc. (KAI) C++ Compiler
43528
43529             # KCC will only create a shared library if the output file
43530             # ends with ".so" (or ".sl" for HP-UX), so rename the library
43531             # to its proper name (with version) after linking.
43532             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
43533             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
43534             # Commands to make compiler produce verbose output that lists
43535             # what "hidden" libraries, object files and flags are used when
43536             # linking a shared library.
43537             #
43538             # There doesn't appear to be a way to prevent this compiler from
43539             # explicitly linking system object files so we need to strip them
43540             # from the output so that they don't get included in the library
43541             # dependencies.
43542             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
43543
43544             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
43545             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
43546
43547             # Archives containing C++ object files must be created using
43548             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
43549             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
43550             ;;
43551           icpc* | ecpc* )
43552             # Intel C++
43553             with_gnu_ld=yes
43554             # version 8.0 and above of icpc choke on multiply defined symbols
43555             # if we add $predep_objects and $postdep_objects, however 7.1 and
43556             # earlier do not add the objects themselves.
43557             case `$CC -V 2>&1` in
43558               *"Version 7."*)
43559                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
43560                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
43561                 ;;
43562               *)  # Version 8.0 or newer
43563                 tmp_idyn=
43564                 case $host_cpu in
43565                   ia64*) tmp_idyn=' -i_dynamic';;
43566                 esac
43567                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43568                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
43569                 ;;
43570             esac
43571             archive_cmds_need_lc_CXX=no
43572             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
43573             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
43574             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
43575             ;;
43576           pgCC* | pgcpp*)
43577             # Portland Group C++ compiler
43578             case `$CC -V` in
43579             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
43580               prelink_cmds_CXX='tpldir=Template.dir~
43581                 rm -rf $tpldir~
43582                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
43583                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
43584               old_archive_cmds_CXX='tpldir=Template.dir~
43585                 rm -rf $tpldir~
43586                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
43587                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
43588                 $RANLIB $oldlib'
43589               archive_cmds_CXX='tpldir=Template.dir~
43590                 rm -rf $tpldir~
43591                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
43592                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
43593               archive_expsym_cmds_CXX='tpldir=Template.dir~
43594                 rm -rf $tpldir~
43595                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
43596                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
43597               ;;
43598             *) # Version 6 and above use weak symbols
43599               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
43600               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
43601               ;;
43602             esac
43603
43604             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
43605             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
43606             whole_archive_flag_spec_CXX='${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'
43607             ;;
43608           cxx*)
43609             # Compaq C++
43610             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
43611             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
43612
43613             runpath_var=LD_RUN_PATH
43614             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
43615             hardcode_libdir_separator_CXX=:
43616
43617             # Commands to make compiler produce verbose output that lists
43618             # what "hidden" libraries, object files and flags are used when
43619             # linking a shared library.
43620             #
43621             # There doesn't appear to be a way to prevent this compiler from
43622             # explicitly linking system object files so we need to strip them
43623             # from the output so that they don't get included in the library
43624             # dependencies.
43625             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
43626             ;;
43627           xl* | mpixl* | bgxl*)
43628             # IBM XL 8.0 on PPC, with GNU ld
43629             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
43630             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
43631             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43632             if test "x$supports_anon_versioning" = xyes; then
43633               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
43634                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
43635                 echo "local: *; };" >> $output_objdir/$libname.ver~
43636                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
43637             fi
43638             ;;
43639           *)
43640             case `$CC -V 2>&1 | sed 5q` in
43641             *Sun\ C*)
43642               # Sun C++ 5.9
43643               no_undefined_flag_CXX=' -zdefs'
43644               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43645               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
43646               hardcode_libdir_flag_spec_CXX='-R$libdir'
43647               whole_archive_flag_spec_CXX='${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'
43648               compiler_needs_object_CXX=yes
43649
43650               # Not sure whether something based on
43651               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
43652               # would be better.
43653               output_verbose_link_cmd='func_echo_all'
43654
43655               # Archives containing C++ object files must be created using
43656               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
43657               # necessary to make sure instantiated templates are included
43658               # in the archive.
43659               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
43660               ;;
43661             esac
43662             ;;
43663         esac
43664         ;;
43665
43666       lynxos*)
43667         # FIXME: insert proper C++ library support
43668         ld_shlibs_CXX=no
43669         ;;
43670
43671       m88k*)
43672         # FIXME: insert proper C++ library support
43673         ld_shlibs_CXX=no
43674         ;;
43675
43676       mvs*)
43677         case $cc_basename in
43678           cxx*)
43679             # FIXME: insert proper C++ library support
43680             ld_shlibs_CXX=no
43681             ;;
43682           *)
43683             # FIXME: insert proper C++ library support
43684             ld_shlibs_CXX=no
43685             ;;
43686         esac
43687         ;;
43688
43689       netbsd*)
43690         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
43691           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
43692           wlarc=
43693           hardcode_libdir_flag_spec_CXX='-R$libdir'
43694           hardcode_direct_CXX=yes
43695           hardcode_shlibpath_var_CXX=no
43696         fi
43697         # Workaround some broken pre-1.5 toolchains
43698         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
43699         ;;
43700
43701       *nto* | *qnx*)
43702         ld_shlibs_CXX=yes
43703         ;;
43704
43705       openbsd2*)
43706         # C++ shared libraries are fairly broken
43707         ld_shlibs_CXX=no
43708         ;;
43709
43710       openbsd*)
43711         if test -f /usr/libexec/ld.so; then
43712           hardcode_direct_CXX=yes
43713           hardcode_shlibpath_var_CXX=no
43714           hardcode_direct_absolute_CXX=yes
43715           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
43716           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
43717           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
43718             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
43719             export_dynamic_flag_spec_CXX='${wl}-E'
43720             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
43721           fi
43722           output_verbose_link_cmd=func_echo_all
43723         else
43724           ld_shlibs_CXX=no
43725         fi
43726         ;;
43727
43728       osf3* | osf4* | osf5*)
43729         case $cc_basename in
43730           KCC*)
43731             # Kuck and Associates, Inc. (KAI) C++ Compiler
43732
43733             # KCC will only create a shared library if the output file
43734             # ends with ".so" (or ".sl" for HP-UX), so rename the library
43735             # to its proper name (with version) after linking.
43736             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
43737
43738             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
43739             hardcode_libdir_separator_CXX=:
43740
43741             # Archives containing C++ object files must be created using
43742             # the KAI C++ compiler.
43743             case $host in
43744               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
43745               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
43746             esac
43747             ;;
43748           RCC*)
43749             # Rational C++ 2.4.1
43750             # FIXME: insert proper C++ library support
43751             ld_shlibs_CXX=no
43752             ;;
43753           cxx*)
43754             case $host in
43755               osf3*)
43756                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
43757                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
43758                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
43759                 ;;
43760               *)
43761                 allow_undefined_flag_CXX=' -expect_unresolved \*'
43762                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
43763                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
43764                   echo "-hidden">> $lib.exp~
43765                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
43766                   $RM $lib.exp'
43767                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
43768                 ;;
43769             esac
43770
43771             hardcode_libdir_separator_CXX=:
43772
43773             # Commands to make compiler produce verbose output that lists
43774             # what "hidden" libraries, object files and flags are used when
43775             # linking a shared library.
43776             #
43777             # There doesn't appear to be a way to prevent this compiler from
43778             # explicitly linking system object files so we need to strip them
43779             # from the output so that they don't get included in the library
43780             # dependencies.
43781             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
43782             ;;
43783           *)
43784             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
43785               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
43786               case $host in
43787                 osf3*)
43788                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
43789                   ;;
43790                 *)
43791                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
43792                   ;;
43793               esac
43794
43795               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
43796               hardcode_libdir_separator_CXX=:
43797
43798               # Commands to make compiler produce verbose output that lists
43799               # what "hidden" libraries, object files and flags are used when
43800               # linking a shared library.
43801               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
43802
43803             else
43804               # FIXME: insert proper C++ library support
43805               ld_shlibs_CXX=no
43806             fi
43807             ;;
43808         esac
43809         ;;
43810
43811       psos*)
43812         # FIXME: insert proper C++ library support
43813         ld_shlibs_CXX=no
43814         ;;
43815
43816       sunos4*)
43817         case $cc_basename in
43818           CC*)
43819             # Sun C++ 4.x
43820             # FIXME: insert proper C++ library support
43821             ld_shlibs_CXX=no
43822             ;;
43823           lcc*)
43824             # Lucid
43825             # FIXME: insert proper C++ library support
43826             ld_shlibs_CXX=no
43827             ;;
43828           *)
43829             # FIXME: insert proper C++ library support
43830             ld_shlibs_CXX=no
43831             ;;
43832         esac
43833         ;;
43834
43835       solaris*)
43836         case $cc_basename in
43837           CC* | sunCC*)
43838             # Sun C++ 4.2, 5.x and Centerline C++
43839             archive_cmds_need_lc_CXX=yes
43840             no_undefined_flag_CXX=' -zdefs'
43841             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43842             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
43843               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
43844
43845             hardcode_libdir_flag_spec_CXX='-R$libdir'
43846             hardcode_shlibpath_var_CXX=no
43847             case $host_os in
43848               solaris2.[0-5] | solaris2.[0-5].*) ;;
43849               *)
43850                 # The compiler driver will combine and reorder linker options,
43851                 # but understands `-z linker_flag'.
43852                 # Supported since Solaris 2.6 (maybe 2.5.1?)
43853                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
43854                 ;;
43855             esac
43856             link_all_deplibs_CXX=yes
43857
43858             output_verbose_link_cmd='func_echo_all'
43859
43860             # Archives containing C++ object files must be created using
43861             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
43862             # necessary to make sure instantiated templates are included
43863             # in the archive.
43864             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
43865             ;;
43866           gcx*)
43867             # Green Hills C++ Compiler
43868             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
43869
43870             # The C++ compiler must be used to create the archive.
43871             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
43872             ;;
43873           *)
43874             # GNU C++ compiler with Solaris linker
43875             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
43876               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
43877               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
43878                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
43879                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
43880                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
43881
43882                 # Commands to make compiler produce verbose output that lists
43883                 # what "hidden" libraries, object files and flags are used when
43884                 # linking a shared library.
43885                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
43886               else
43887                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
43888                 # platform.
43889                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
43890                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
43891                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
43892
43893                 # Commands to make compiler produce verbose output that lists
43894                 # what "hidden" libraries, object files and flags are used when
43895                 # linking a shared library.
43896                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
43897               fi
43898
43899               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
43900               case $host_os in
43901                 solaris2.[0-5] | solaris2.[0-5].*) ;;
43902                 *)
43903                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
43904                   ;;
43905               esac
43906             fi
43907             ;;
43908         esac
43909         ;;
43910
43911     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
43912       no_undefined_flag_CXX='${wl}-z,text'
43913       archive_cmds_need_lc_CXX=no
43914       hardcode_shlibpath_var_CXX=no
43915       runpath_var='LD_RUN_PATH'
43916
43917       case $cc_basename in
43918         CC*)
43919           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43920           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43921           ;;
43922         *)
43923           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43924           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43925           ;;
43926       esac
43927       ;;
43928
43929       sysv5* | sco3.2v5* | sco5v6*)
43930         # Note: We can NOT use -z defs as we might desire, because we do not
43931         # link with -lc, and that would cause any symbols used from libc to
43932         # always be unresolved, which means just about no library would
43933         # ever link correctly.  If we're not using GNU ld we use -z text
43934         # though, which does catch some bad symbols but isn't as heavy-handed
43935         # as -z defs.
43936         no_undefined_flag_CXX='${wl}-z,text'
43937         allow_undefined_flag_CXX='${wl}-z,nodefs'
43938         archive_cmds_need_lc_CXX=no
43939         hardcode_shlibpath_var_CXX=no
43940         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
43941         hardcode_libdir_separator_CXX=':'
43942         link_all_deplibs_CXX=yes
43943         export_dynamic_flag_spec_CXX='${wl}-Bexport'
43944         runpath_var='LD_RUN_PATH'
43945
43946         case $cc_basename in
43947           CC*)
43948             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43949             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43950             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
43951               '"$old_archive_cmds_CXX"
43952             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
43953               '"$reload_cmds_CXX"
43954             ;;
43955           *)
43956             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43957             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43958             ;;
43959         esac
43960       ;;
43961
43962       tandem*)
43963         case $cc_basename in
43964           NCC*)
43965             # NonStop-UX NCC 3.20
43966             # FIXME: insert proper C++ library support
43967             ld_shlibs_CXX=no
43968             ;;
43969           *)
43970             # FIXME: insert proper C++ library support
43971             ld_shlibs_CXX=no
43972             ;;
43973         esac
43974         ;;
43975
43976       vxworks*)
43977         # FIXME: insert proper C++ library support
43978         ld_shlibs_CXX=no
43979         ;;
43980
43981       *)
43982         # FIXME: insert proper C++ library support
43983         ld_shlibs_CXX=no
43984         ;;
43985     esac
43986
43987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
43988 $as_echo "$ld_shlibs_CXX" >&6; }
43989     test "$ld_shlibs_CXX" = no && can_build_shared=no
43990
43991     GCC_CXX="$GXX"
43992     LD_CXX="$LD"
43993
43994     ## CAVEAT EMPTOR:
43995     ## There is no encapsulation within the following macros, do not change
43996     ## the running order or otherwise move them around unless you know exactly
43997     ## what you are doing...
43998     # Dependencies to place before and after the object being linked:
43999 predep_objects_CXX=
44000 postdep_objects_CXX=
44001 predeps_CXX=
44002 postdeps_CXX=
44003 compiler_lib_search_path_CXX=
44004
44005 cat > conftest.$ac_ext <<_LT_EOF
44006 class Foo
44007 {
44008 public:
44009   Foo (void) { a = 0; }
44010 private:
44011   int a;
44012 };
44013 _LT_EOF
44014
44015
44016 _lt_libdeps_save_CFLAGS=$CFLAGS
44017 case "$CC $CFLAGS " in #(
44018 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
44019 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
44020 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
44021 esac
44022
44023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
44024   (eval $ac_compile) 2>&5
44025   ac_status=$?
44026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44027   test $ac_status = 0; }; then
44028   # Parse the compiler output and extract the necessary
44029   # objects, libraries and library flags.
44030
44031   # Sentinel used to keep track of whether or not we are before
44032   # the conftest object file.
44033   pre_test_object_deps_done=no
44034
44035   for p in `eval "$output_verbose_link_cmd"`; do
44036     case ${prev}${p} in
44037
44038     -L* | -R* | -l*)
44039        # Some compilers place space between "-{L,R}" and the path.
44040        # Remove the space.
44041        if test $p = "-L" ||
44042           test $p = "-R"; then
44043          prev=$p
44044          continue
44045        fi
44046
44047        # Expand the sysroot to ease extracting the directories later.
44048        if test -z "$prev"; then
44049          case $p in
44050          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
44051          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
44052          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
44053          esac
44054        fi
44055        case $p in
44056        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
44057        esac
44058        if test "$pre_test_object_deps_done" = no; then
44059          case ${prev} in
44060          -L | -R)
44061            # Internal compiler library paths should come after those
44062            # provided the user.  The postdeps already come after the
44063            # user supplied libs so there is no need to process them.
44064            if test -z "$compiler_lib_search_path_CXX"; then
44065              compiler_lib_search_path_CXX="${prev}${p}"
44066            else
44067              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
44068            fi
44069            ;;
44070          # The "-l" case would never come before the object being
44071          # linked, so don't bother handling this case.
44072          esac
44073        else
44074          if test -z "$postdeps_CXX"; then
44075            postdeps_CXX="${prev}${p}"
44076          else
44077            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
44078          fi
44079        fi
44080        prev=
44081        ;;
44082
44083     *.lto.$objext) ;; # Ignore GCC LTO objects
44084     *.$objext)
44085        # This assumes that the test object file only shows up
44086        # once in the compiler output.
44087        if test "$p" = "conftest.$objext"; then
44088          pre_test_object_deps_done=yes
44089          continue
44090        fi
44091
44092        if test "$pre_test_object_deps_done" = no; then
44093          if test -z "$predep_objects_CXX"; then
44094            predep_objects_CXX="$p"
44095          else
44096            predep_objects_CXX="$predep_objects_CXX $p"
44097          fi
44098        else
44099          if test -z "$postdep_objects_CXX"; then
44100            postdep_objects_CXX="$p"
44101          else
44102            postdep_objects_CXX="$postdep_objects_CXX $p"
44103          fi
44104        fi
44105        ;;
44106
44107     *) ;; # Ignore the rest.
44108
44109     esac
44110   done
44111
44112   # Clean up.
44113   rm -f a.out a.exe
44114 else
44115   echo "libtool.m4: error: problem compiling CXX test program"
44116 fi
44117
44118 $RM -f confest.$objext
44119 CFLAGS=$_lt_libdeps_save_CFLAGS
44120
44121 # PORTME: override above test on systems where it is broken
44122 case $host_os in
44123 interix[3-9]*)
44124   # Interix 3.5 installs completely hosed .la files for C++, so rather than
44125   # hack all around it, let's just trust "g++" to DTRT.
44126   predep_objects_CXX=
44127   postdep_objects_CXX=
44128   postdeps_CXX=
44129   ;;
44130
44131 linux*)
44132   case `$CC -V 2>&1 | sed 5q` in
44133   *Sun\ C*)
44134     # Sun C++ 5.9
44135
44136     # The more standards-conforming stlport4 library is
44137     # incompatible with the Cstd library. Avoid specifying
44138     # it if it's in CXXFLAGS. Ignore libCrun as
44139     # -library=stlport4 depends on it.
44140     case " $CXX $CXXFLAGS " in
44141     *" -library=stlport4 "*)
44142       solaris_use_stlport4=yes
44143       ;;
44144     esac
44145
44146     if test "$solaris_use_stlport4" != yes; then
44147       postdeps_CXX='-library=Cstd -library=Crun'
44148     fi
44149     ;;
44150   esac
44151   ;;
44152
44153 solaris*)
44154   case $cc_basename in
44155   CC* | sunCC*)
44156     # The more standards-conforming stlport4 library is
44157     # incompatible with the Cstd library. Avoid specifying
44158     # it if it's in CXXFLAGS. Ignore libCrun as
44159     # -library=stlport4 depends on it.
44160     case " $CXX $CXXFLAGS " in
44161     *" -library=stlport4 "*)
44162       solaris_use_stlport4=yes
44163       ;;
44164     esac
44165
44166     # Adding this requires a known-good setup of shared libraries for
44167     # Sun compiler versions before 5.6, else PIC objects from an old
44168     # archive will be linked into the output, leading to subtle bugs.
44169     if test "$solaris_use_stlport4" != yes; then
44170       postdeps_CXX='-library=Cstd -library=Crun'
44171     fi
44172     ;;
44173   esac
44174   ;;
44175 esac
44176
44177
44178 case " $postdeps_CXX " in
44179 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
44180 esac
44181  compiler_lib_search_dirs_CXX=
44182 if test -n "${compiler_lib_search_path_CXX}"; then
44183  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
44184 fi
44185
44186
44187
44188
44189
44190
44191
44192
44193
44194
44195
44196
44197
44198
44199
44200
44201
44202
44203
44204
44205
44206
44207
44208
44209
44210
44211
44212
44213
44214
44215
44216     lt_prog_compiler_wl_CXX=
44217 lt_prog_compiler_pic_CXX=
44218 lt_prog_compiler_static_CXX=
44219
44220
44221   # C++ specific cases for pic, static, wl, etc.
44222   if test "$GXX" = yes; then
44223     lt_prog_compiler_wl_CXX='-Wl,'
44224     lt_prog_compiler_static_CXX='-static'
44225
44226     case $host_os in
44227     aix*)
44228       # All AIX code is PIC.
44229       if test "$host_cpu" = ia64; then
44230         # AIX 5 now supports IA64 processor
44231         lt_prog_compiler_static_CXX='-Bstatic'
44232       fi
44233       ;;
44234
44235     amigaos*)
44236       case $host_cpu in
44237       powerpc)
44238             # see comment about AmigaOS4 .so support
44239             lt_prog_compiler_pic_CXX='-fPIC'
44240         ;;
44241       m68k)
44242             # FIXME: we need at least 68020 code to build shared libraries, but
44243             # adding the `-m68020' flag to GCC prevents building anything better,
44244             # like `-m68040'.
44245             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
44246         ;;
44247       esac
44248       ;;
44249
44250     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
44251       # PIC is the default for these OSes.
44252       ;;
44253     mingw* | cygwin* | os2* | pw32* | cegcc*)
44254       # This hack is so that the source file can tell whether it is being
44255       # built for inclusion in a dll (and should export symbols for example).
44256       # Although the cygwin gcc ignores -fPIC, still need this for old-style
44257       # (--disable-auto-import) libraries
44258       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
44259       ;;
44260     darwin* | rhapsody*)
44261       # PIC is the default on this platform
44262       # Common symbols not allowed in MH_DYLIB files
44263       lt_prog_compiler_pic_CXX='-fno-common'
44264       ;;
44265     *djgpp*)
44266       # DJGPP does not support shared libraries at all
44267       lt_prog_compiler_pic_CXX=
44268       ;;
44269     haiku*)
44270       # PIC is the default for Haiku.
44271       # The "-static" flag exists, but is broken.
44272       lt_prog_compiler_static_CXX=
44273       ;;
44274     interix[3-9]*)
44275       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
44276       # Instead, we relocate shared libraries at runtime.
44277       ;;
44278     sysv4*MP*)
44279       if test -d /usr/nec; then
44280         lt_prog_compiler_pic_CXX=-Kconform_pic
44281       fi
44282       ;;
44283     hpux*)
44284       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
44285       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
44286       # sets the default TLS model and affects inlining.
44287       case $host_cpu in
44288       hppa*64*)
44289         ;;
44290       *)
44291         lt_prog_compiler_pic_CXX='-fPIC'
44292         ;;
44293       esac
44294       ;;
44295     *qnx* | *nto*)
44296       # QNX uses GNU C++, but need to define -shared option too, otherwise
44297       # it will coredump.
44298       lt_prog_compiler_pic_CXX='-fPIC -shared'
44299       ;;
44300     *)
44301       lt_prog_compiler_pic_CXX='-fPIC'
44302       ;;
44303     esac
44304   else
44305     case $host_os in
44306       aix[4-9]*)
44307         # All AIX code is PIC.
44308         if test "$host_cpu" = ia64; then
44309           # AIX 5 now supports IA64 processor
44310           lt_prog_compiler_static_CXX='-Bstatic'
44311         else
44312           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
44313         fi
44314         ;;
44315       chorus*)
44316         case $cc_basename in
44317         cxch68*)
44318           # Green Hills C++ Compiler
44319           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
44320           ;;
44321         esac
44322         ;;
44323       mingw* | cygwin* | os2* | pw32* | cegcc*)
44324         # This hack is so that the source file can tell whether it is being
44325         # built for inclusion in a dll (and should export symbols for example).
44326         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
44327         ;;
44328       dgux*)
44329         case $cc_basename in
44330           ec++*)
44331             lt_prog_compiler_pic_CXX='-KPIC'
44332             ;;
44333           ghcx*)
44334             # Green Hills C++ Compiler
44335             lt_prog_compiler_pic_CXX='-pic'
44336             ;;
44337           *)
44338             ;;
44339         esac
44340         ;;
44341       freebsd* | dragonfly*)
44342         # FreeBSD uses GNU C++
44343         ;;
44344       hpux9* | hpux10* | hpux11*)
44345         case $cc_basename in
44346           CC*)
44347             lt_prog_compiler_wl_CXX='-Wl,'
44348             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
44349             if test "$host_cpu" != ia64; then
44350               lt_prog_compiler_pic_CXX='+Z'
44351             fi
44352             ;;
44353           aCC*)
44354             lt_prog_compiler_wl_CXX='-Wl,'
44355             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
44356             case $host_cpu in
44357             hppa*64*|ia64*)
44358               # +Z the default
44359               ;;
44360             *)
44361               lt_prog_compiler_pic_CXX='+Z'
44362               ;;
44363             esac
44364             ;;
44365           *)
44366             ;;
44367         esac
44368         ;;
44369       interix*)
44370         # This is c89, which is MS Visual C++ (no shared libs)
44371         # Anyone wants to do a port?
44372         ;;
44373       irix5* | irix6* | nonstopux*)
44374         case $cc_basename in
44375           CC*)
44376             lt_prog_compiler_wl_CXX='-Wl,'
44377             lt_prog_compiler_static_CXX='-non_shared'
44378             # CC pic flag -KPIC is the default.
44379             ;;
44380           *)
44381             ;;
44382         esac
44383         ;;
44384       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
44385         case $cc_basename in
44386           KCC*)
44387             # KAI C++ Compiler
44388             lt_prog_compiler_wl_CXX='--backend -Wl,'
44389             lt_prog_compiler_pic_CXX='-fPIC'
44390             ;;
44391           ecpc* )
44392             # old Intel C++ for x86_64 which still supported -KPIC.
44393             lt_prog_compiler_wl_CXX='-Wl,'
44394             lt_prog_compiler_pic_CXX='-KPIC'
44395             lt_prog_compiler_static_CXX='-static'
44396             ;;
44397           icpc* )
44398             # Intel C++, used to be incompatible with GCC.
44399             # ICC 10 doesn't accept -KPIC any more.
44400             lt_prog_compiler_wl_CXX='-Wl,'
44401             lt_prog_compiler_pic_CXX='-fPIC'
44402             lt_prog_compiler_static_CXX='-static'
44403             ;;
44404           pgCC* | pgcpp*)
44405             # Portland Group C++ compiler
44406             lt_prog_compiler_wl_CXX='-Wl,'
44407             lt_prog_compiler_pic_CXX='-fpic'
44408             lt_prog_compiler_static_CXX='-Bstatic'
44409             ;;
44410           cxx*)
44411             # Compaq C++
44412             # Make sure the PIC flag is empty.  It appears that all Alpha
44413             # Linux and Compaq Tru64 Unix objects are PIC.
44414             lt_prog_compiler_pic_CXX=
44415             lt_prog_compiler_static_CXX='-non_shared'
44416             ;;
44417           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
44418             # IBM XL 8.0, 9.0 on PPC and BlueGene
44419             lt_prog_compiler_wl_CXX='-Wl,'
44420             lt_prog_compiler_pic_CXX='-qpic'
44421             lt_prog_compiler_static_CXX='-qstaticlink'
44422             ;;
44423           *)
44424             case `$CC -V 2>&1 | sed 5q` in
44425             *Sun\ C*)
44426               # Sun C++ 5.9
44427               lt_prog_compiler_pic_CXX='-KPIC'
44428               lt_prog_compiler_static_CXX='-Bstatic'
44429               lt_prog_compiler_wl_CXX='-Qoption ld '
44430               ;;
44431             esac
44432             ;;
44433         esac
44434         ;;
44435       lynxos*)
44436         ;;
44437       m88k*)
44438         ;;
44439       mvs*)
44440         case $cc_basename in
44441           cxx*)
44442             lt_prog_compiler_pic_CXX='-W c,exportall'
44443             ;;
44444           *)
44445             ;;
44446         esac
44447         ;;
44448       netbsd* | netbsdelf*-gnu)
44449         ;;
44450       *qnx* | *nto*)
44451         # QNX uses GNU C++, but need to define -shared option too, otherwise
44452         # it will coredump.
44453         lt_prog_compiler_pic_CXX='-fPIC -shared'
44454         ;;
44455       osf3* | osf4* | osf5*)
44456         case $cc_basename in
44457           KCC*)
44458             lt_prog_compiler_wl_CXX='--backend -Wl,'
44459             ;;
44460           RCC*)
44461             # Rational C++ 2.4.1
44462             lt_prog_compiler_pic_CXX='-pic'
44463             ;;
44464           cxx*)
44465             # Digital/Compaq C++
44466             lt_prog_compiler_wl_CXX='-Wl,'
44467             # Make sure the PIC flag is empty.  It appears that all Alpha
44468             # Linux and Compaq Tru64 Unix objects are PIC.
44469             lt_prog_compiler_pic_CXX=
44470             lt_prog_compiler_static_CXX='-non_shared'
44471             ;;
44472           *)
44473             ;;
44474         esac
44475         ;;
44476       psos*)
44477         ;;
44478       solaris*)
44479         case $cc_basename in
44480           CC* | sunCC*)
44481             # Sun C++ 4.2, 5.x and Centerline C++
44482             lt_prog_compiler_pic_CXX='-KPIC'
44483             lt_prog_compiler_static_CXX='-Bstatic'
44484             lt_prog_compiler_wl_CXX='-Qoption ld '
44485             ;;
44486           gcx*)
44487             # Green Hills C++ Compiler
44488             lt_prog_compiler_pic_CXX='-PIC'
44489             ;;
44490           *)
44491             ;;
44492         esac
44493         ;;
44494       sunos4*)
44495         case $cc_basename in
44496           CC*)
44497             # Sun C++ 4.x
44498             lt_prog_compiler_pic_CXX='-pic'
44499             lt_prog_compiler_static_CXX='-Bstatic'
44500             ;;
44501           lcc*)
44502             # Lucid
44503             lt_prog_compiler_pic_CXX='-pic'
44504             ;;
44505           *)
44506             ;;
44507         esac
44508         ;;
44509       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
44510         case $cc_basename in
44511           CC*)
44512             lt_prog_compiler_wl_CXX='-Wl,'
44513             lt_prog_compiler_pic_CXX='-KPIC'
44514             lt_prog_compiler_static_CXX='-Bstatic'
44515             ;;
44516         esac
44517         ;;
44518       tandem*)
44519         case $cc_basename in
44520           NCC*)
44521             # NonStop-UX NCC 3.20
44522             lt_prog_compiler_pic_CXX='-KPIC'
44523             ;;
44524           *)
44525             ;;
44526         esac
44527         ;;
44528       vxworks*)
44529         ;;
44530       *)
44531         lt_prog_compiler_can_build_shared_CXX=no
44532         ;;
44533     esac
44534   fi
44535
44536 case $host_os in
44537   # For platforms which do not support PIC, -DPIC is meaningless:
44538   *djgpp*)
44539     lt_prog_compiler_pic_CXX=
44540     ;;
44541   *)
44542     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
44543     ;;
44544 esac
44545
44546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
44547 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
44548 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
44549   $as_echo_n "(cached) " >&6
44550 else
44551   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
44552 fi
44553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
44554 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
44555 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
44556
44557 #
44558 # Check to make sure the PIC flag actually works.
44559 #
44560 if test -n "$lt_prog_compiler_pic_CXX"; then
44561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
44562 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
44563 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
44564   $as_echo_n "(cached) " >&6
44565 else
44566   lt_cv_prog_compiler_pic_works_CXX=no
44567    ac_outfile=conftest.$ac_objext
44568    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
44569    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
44570    # Insert the option either (1) after the last *FLAGS variable, or
44571    # (2) before a word containing "conftest.", or (3) at the end.
44572    # Note that $ac_compile itself does not contain backslashes and begins
44573    # with a dollar sign (not a hyphen), so the echo should work correctly.
44574    # The option is referenced via a variable to avoid confusing sed.
44575    lt_compile=`echo "$ac_compile" | $SED \
44576    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44577    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44578    -e 's:$: $lt_compiler_flag:'`
44579    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
44580    (eval "$lt_compile" 2>conftest.err)
44581    ac_status=$?
44582    cat conftest.err >&5
44583    echo "$as_me:$LINENO: \$? = $ac_status" >&5
44584    if (exit $ac_status) && test -s "$ac_outfile"; then
44585      # The compiler can only warn and ignore the option if not recognized
44586      # So say no if there are warnings other than the usual output.
44587      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
44588      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
44589      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
44590        lt_cv_prog_compiler_pic_works_CXX=yes
44591      fi
44592    fi
44593    $RM conftest*
44594
44595 fi
44596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
44597 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
44598
44599 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
44600     case $lt_prog_compiler_pic_CXX in
44601      "" | " "*) ;;
44602      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
44603      esac
44604 else
44605     lt_prog_compiler_pic_CXX=
44606      lt_prog_compiler_can_build_shared_CXX=no
44607 fi
44608
44609 fi
44610
44611
44612
44613
44614
44615 #
44616 # Check to make sure the static flag actually works.
44617 #
44618 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
44619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
44620 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
44621 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
44622   $as_echo_n "(cached) " >&6
44623 else
44624   lt_cv_prog_compiler_static_works_CXX=no
44625    save_LDFLAGS="$LDFLAGS"
44626    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
44627    echo "$lt_simple_link_test_code" > conftest.$ac_ext
44628    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
44629      # The linker can only warn and ignore the option if not recognized
44630      # So say no if there are warnings
44631      if test -s conftest.err; then
44632        # Append any errors to the config.log.
44633        cat conftest.err 1>&5
44634        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
44635        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
44636        if diff conftest.exp conftest.er2 >/dev/null; then
44637          lt_cv_prog_compiler_static_works_CXX=yes
44638        fi
44639      else
44640        lt_cv_prog_compiler_static_works_CXX=yes
44641      fi
44642    fi
44643    $RM -r conftest*
44644    LDFLAGS="$save_LDFLAGS"
44645
44646 fi
44647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
44648 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
44649
44650 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
44651     :
44652 else
44653     lt_prog_compiler_static_CXX=
44654 fi
44655
44656
44657
44658
44659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
44660 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
44661 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
44662   $as_echo_n "(cached) " >&6
44663 else
44664   lt_cv_prog_compiler_c_o_CXX=no
44665    $RM -r conftest 2>/dev/null
44666    mkdir conftest
44667    cd conftest
44668    mkdir out
44669    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
44670
44671    lt_compiler_flag="-o out/conftest2.$ac_objext"
44672    # Insert the option either (1) after the last *FLAGS variable, or
44673    # (2) before a word containing "conftest.", or (3) at the end.
44674    # Note that $ac_compile itself does not contain backslashes and begins
44675    # with a dollar sign (not a hyphen), so the echo should work correctly.
44676    lt_compile=`echo "$ac_compile" | $SED \
44677    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44678    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44679    -e 's:$: $lt_compiler_flag:'`
44680    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
44681    (eval "$lt_compile" 2>out/conftest.err)
44682    ac_status=$?
44683    cat out/conftest.err >&5
44684    echo "$as_me:$LINENO: \$? = $ac_status" >&5
44685    if (exit $ac_status) && test -s out/conftest2.$ac_objext
44686    then
44687      # The compiler can only warn and ignore the option if not recognized
44688      # So say no if there are warnings
44689      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
44690      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
44691      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
44692        lt_cv_prog_compiler_c_o_CXX=yes
44693      fi
44694    fi
44695    chmod u+w . 2>&5
44696    $RM conftest*
44697    # SGI C++ compiler will create directory out/ii_files/ for
44698    # template instantiation
44699    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
44700    $RM out/* && rmdir out
44701    cd ..
44702    $RM -r conftest
44703    $RM conftest*
44704
44705 fi
44706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
44707 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
44708
44709
44710
44711     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
44712 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
44713 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
44714   $as_echo_n "(cached) " >&6
44715 else
44716   lt_cv_prog_compiler_c_o_CXX=no
44717    $RM -r conftest 2>/dev/null
44718    mkdir conftest
44719    cd conftest
44720    mkdir out
44721    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
44722
44723    lt_compiler_flag="-o out/conftest2.$ac_objext"
44724    # Insert the option either (1) after the last *FLAGS variable, or
44725    # (2) before a word containing "conftest.", or (3) at the end.
44726    # Note that $ac_compile itself does not contain backslashes and begins
44727    # with a dollar sign (not a hyphen), so the echo should work correctly.
44728    lt_compile=`echo "$ac_compile" | $SED \
44729    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44730    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44731    -e 's:$: $lt_compiler_flag:'`
44732    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
44733    (eval "$lt_compile" 2>out/conftest.err)
44734    ac_status=$?
44735    cat out/conftest.err >&5
44736    echo "$as_me:$LINENO: \$? = $ac_status" >&5
44737    if (exit $ac_status) && test -s out/conftest2.$ac_objext
44738    then
44739      # The compiler can only warn and ignore the option if not recognized
44740      # So say no if there are warnings
44741      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
44742      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
44743      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
44744        lt_cv_prog_compiler_c_o_CXX=yes
44745      fi
44746    fi
44747    chmod u+w . 2>&5
44748    $RM conftest*
44749    # SGI C++ compiler will create directory out/ii_files/ for
44750    # template instantiation
44751    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
44752    $RM out/* && rmdir out
44753    cd ..
44754    $RM -r conftest
44755    $RM conftest*
44756
44757 fi
44758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
44759 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
44760
44761
44762
44763
44764 hard_links="nottested"
44765 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
44766   # do not overwrite the value of need_locks provided by the user
44767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
44768 $as_echo_n "checking if we can lock with hard links... " >&6; }
44769   hard_links=yes
44770   $RM conftest*
44771   ln conftest.a conftest.b 2>/dev/null && hard_links=no
44772   touch conftest.a
44773   ln conftest.a conftest.b 2>&5 || hard_links=no
44774   ln conftest.a conftest.b 2>/dev/null && hard_links=no
44775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
44776 $as_echo "$hard_links" >&6; }
44777   if test "$hard_links" = no; then
44778     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
44779 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
44780     need_locks=warn
44781   fi
44782 else
44783   need_locks=no
44784 fi
44785
44786
44787
44788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
44789 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
44790
44791   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
44792   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
44793   case $host_os in
44794   aix[4-9]*)
44795     # If we're using GNU nm, then we don't want the "-C" option.
44796     # -C means demangle to AIX nm, but means don't demangle with GNU nm
44797     # Also, AIX nm treats weak defined symbols like other global defined
44798     # symbols, whereas GNU nm marks them as "W".
44799     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
44800       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
44801     else
44802       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
44803     fi
44804     ;;
44805   pw32*)
44806     export_symbols_cmds_CXX="$ltdll_cmds"
44807     ;;
44808   cygwin* | mingw* | cegcc*)
44809     case $cc_basename in
44810     cl*)
44811       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
44812       ;;
44813     *)
44814       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
44815       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
44816       ;;
44817     esac
44818     ;;
44819   linux* | k*bsd*-gnu | gnu*)
44820     link_all_deplibs_CXX=no
44821     ;;
44822   *)
44823     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
44824     ;;
44825   esac
44826
44827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
44828 $as_echo "$ld_shlibs_CXX" >&6; }
44829 test "$ld_shlibs_CXX" = no && can_build_shared=no
44830
44831 with_gnu_ld_CXX=$with_gnu_ld
44832
44833
44834
44835
44836
44837
44838 #
44839 # Do we need to explicitly link libc?
44840 #
44841 case "x$archive_cmds_need_lc_CXX" in
44842 x|xyes)
44843   # Assume -lc should be added
44844   archive_cmds_need_lc_CXX=yes
44845
44846   if test "$enable_shared" = yes && test "$GCC" = yes; then
44847     case $archive_cmds_CXX in
44848     *'~'*)
44849       # FIXME: we may have to deal with multi-command sequences.
44850       ;;
44851     '$CC '*)
44852       # Test whether the compiler implicitly links with -lc since on some
44853       # systems, -lgcc has to come before -lc. If gcc already passes -lc
44854       # to ld, don't add -lc before -lgcc.
44855       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
44856 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
44857 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
44858   $as_echo_n "(cached) " >&6
44859 else
44860   $RM conftest*
44861         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
44862
44863         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
44864   (eval $ac_compile) 2>&5
44865   ac_status=$?
44866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44867   test $ac_status = 0; } 2>conftest.err; then
44868           soname=conftest
44869           lib=conftest
44870           libobjs=conftest.$ac_objext
44871           deplibs=
44872           wl=$lt_prog_compiler_wl_CXX
44873           pic_flag=$lt_prog_compiler_pic_CXX
44874           compiler_flags=-v
44875           linker_flags=-v
44876           verstring=
44877           output_objdir=.
44878           libname=conftest
44879           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
44880           allow_undefined_flag_CXX=
44881           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
44882   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
44883   ac_status=$?
44884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44885   test $ac_status = 0; }
44886           then
44887             lt_cv_archive_cmds_need_lc_CXX=no
44888           else
44889             lt_cv_archive_cmds_need_lc_CXX=yes
44890           fi
44891           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
44892         else
44893           cat conftest.err 1>&5
44894         fi
44895         $RM conftest*
44896
44897 fi
44898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
44899 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
44900       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
44901       ;;
44902     esac
44903   fi
44904   ;;
44905 esac
44906
44907
44908
44909
44910
44911
44912
44913
44914
44915
44916
44917
44918
44919
44920
44921
44922
44923
44924
44925
44926
44927
44928
44929
44930
44931
44932
44933
44934
44935
44936
44937
44938
44939
44940
44941
44942
44943
44944
44945
44946
44947
44948
44949
44950
44951
44952
44953
44954
44955
44956
44957
44958
44959
44960
44961
44962
44963
44964
44965
44966
44967
44968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
44969 $as_echo_n "checking dynamic linker characteristics... " >&6; }
44970
44971 library_names_spec=
44972 libname_spec='lib$name'
44973 soname_spec=
44974 shrext_cmds=".so"
44975 postinstall_cmds=
44976 postuninstall_cmds=
44977 finish_cmds=
44978 finish_eval=
44979 shlibpath_var=
44980 shlibpath_overrides_runpath=unknown
44981 version_type=none
44982 dynamic_linker="$host_os ld.so"
44983 sys_lib_dlsearch_path_spec="/lib /usr/lib"
44984 need_lib_prefix=unknown
44985 hardcode_into_libs=no
44986
44987 # when you set need_version to no, make sure it does not cause -set_version
44988 # flags to be left without arguments
44989 need_version=unknown
44990
44991 case $host_os in
44992 aix3*)
44993   version_type=linux # correct to gnu/linux during the next big refactor
44994   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
44995   shlibpath_var=LIBPATH
44996
44997   # AIX 3 has no versioning support, so we append a major version to the name.
44998   soname_spec='${libname}${release}${shared_ext}$major'
44999   ;;
45000
45001 aix[4-9]*)
45002   version_type=linux # correct to gnu/linux during the next big refactor
45003   need_lib_prefix=no
45004   need_version=no
45005   hardcode_into_libs=yes
45006   if test "$host_cpu" = ia64; then
45007     # AIX 5 supports IA64
45008     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
45009     shlibpath_var=LD_LIBRARY_PATH
45010   else
45011     # With GCC up to 2.95.x, collect2 would create an import file
45012     # for dependence libraries.  The import file would start with
45013     # the line `#! .'.  This would cause the generated library to
45014     # depend on `.', always an invalid library.  This was fixed in
45015     # development snapshots of GCC prior to 3.0.
45016     case $host_os in
45017       aix4 | aix4.[01] | aix4.[01].*)
45018       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
45019            echo ' yes '
45020            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
45021         :
45022       else
45023         can_build_shared=no
45024       fi
45025       ;;
45026     esac
45027     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
45028     # soname into executable. Probably we can add versioning support to
45029     # collect2, so additional links can be useful in future.
45030     if test "$aix_use_runtimelinking" = yes; then
45031       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
45032       # instead of lib<name>.a to let people know that these are not
45033       # typical AIX shared libraries.
45034       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45035     else
45036       # We preserve .a as extension for shared libraries through AIX4.2
45037       # and later when we are not doing run time linking.
45038       library_names_spec='${libname}${release}.a $libname.a'
45039       soname_spec='${libname}${release}${shared_ext}$major'
45040     fi
45041     shlibpath_var=LIBPATH
45042   fi
45043   ;;
45044
45045 amigaos*)
45046   case $host_cpu in
45047   powerpc)
45048     # Since July 2007 AmigaOS4 officially supports .so libraries.
45049     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
45050     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45051     ;;
45052   m68k)
45053     library_names_spec='$libname.ixlibrary $libname.a'
45054     # Create ${libname}_ixlibrary.a entries in /sys/libs.
45055     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
45056     ;;
45057   esac
45058   ;;
45059
45060 beos*)
45061   library_names_spec='${libname}${shared_ext}'
45062   dynamic_linker="$host_os ld.so"
45063   shlibpath_var=LIBRARY_PATH
45064   ;;
45065
45066 bsdi[45]*)
45067   version_type=linux # correct to gnu/linux during the next big refactor
45068   need_version=no
45069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45070   soname_spec='${libname}${release}${shared_ext}$major'
45071   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
45072   shlibpath_var=LD_LIBRARY_PATH
45073   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
45074   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
45075   # the default ld.so.conf also contains /usr/contrib/lib and
45076   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
45077   # libtool to hard-code these into programs
45078   ;;
45079
45080 cygwin* | mingw* | pw32* | cegcc*)
45081   version_type=windows
45082   shrext_cmds=".dll"
45083   need_version=no
45084   need_lib_prefix=no
45085
45086   case $GCC,$cc_basename in
45087   yes,*)
45088     # gcc
45089     library_names_spec='$libname.dll.a'
45090     # DLL is installed to $(libdir)/../bin by postinstall_cmds
45091     postinstall_cmds='base_file=`basename \${file}`~
45092       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
45093       dldir=$destdir/`dirname \$dlpath`~
45094       test -d \$dldir || mkdir -p \$dldir~
45095       $install_prog $dir/$dlname \$dldir/$dlname~
45096       chmod a+x \$dldir/$dlname~
45097       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
45098         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
45099       fi'
45100     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
45101       dlpath=$dir/\$dldll~
45102        $RM \$dlpath'
45103     shlibpath_overrides_runpath=yes
45104
45105     case $host_os in
45106     cygwin*)
45107       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
45108       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45109
45110       ;;
45111     mingw* | cegcc*)
45112       # MinGW DLLs use traditional 'lib' prefix
45113       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45114       ;;
45115     pw32*)
45116       # pw32 DLLs use 'pw' prefix rather than 'lib'
45117       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45118       ;;
45119     esac
45120     dynamic_linker='Win32 ld.exe'
45121     ;;
45122
45123   *,cl*)
45124     # Native MSVC
45125     libname_spec='$name'
45126     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45127     library_names_spec='${libname}.dll.lib'
45128
45129     case $build_os in
45130     mingw*)
45131       sys_lib_search_path_spec=
45132       lt_save_ifs=$IFS
45133       IFS=';'
45134       for lt_path in $LIB
45135       do
45136         IFS=$lt_save_ifs
45137         # Let DOS variable expansion print the short 8.3 style file name.
45138         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
45139         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
45140       done
45141       IFS=$lt_save_ifs
45142       # Convert to MSYS style.
45143       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
45144       ;;
45145     cygwin*)
45146       # Convert to unix form, then to dos form, then back to unix form
45147       # but this time dos style (no spaces!) so that the unix form looks
45148       # like /cygdrive/c/PROGRA~1:/cygdr...
45149       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
45150       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
45151       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
45152       ;;
45153     *)
45154       sys_lib_search_path_spec="$LIB"
45155       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
45156         # It is most probably a Windows format PATH.
45157         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
45158       else
45159         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
45160       fi
45161       # FIXME: find the short name or the path components, as spaces are
45162       # common. (e.g. "Program Files" -> "PROGRA~1")
45163       ;;
45164     esac
45165
45166     # DLL is installed to $(libdir)/../bin by postinstall_cmds
45167     postinstall_cmds='base_file=`basename \${file}`~
45168       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
45169       dldir=$destdir/`dirname \$dlpath`~
45170       test -d \$dldir || mkdir -p \$dldir~
45171       $install_prog $dir/$dlname \$dldir/$dlname'
45172     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
45173       dlpath=$dir/\$dldll~
45174        $RM \$dlpath'
45175     shlibpath_overrides_runpath=yes
45176     dynamic_linker='Win32 link.exe'
45177     ;;
45178
45179   *)
45180     # Assume MSVC wrapper
45181     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
45182     dynamic_linker='Win32 ld.exe'
45183     ;;
45184   esac
45185   # FIXME: first we should search . and the directory the executable is in
45186   shlibpath_var=PATH
45187   ;;
45188
45189 darwin* | rhapsody*)
45190   dynamic_linker="$host_os dyld"
45191   version_type=darwin
45192   need_lib_prefix=no
45193   need_version=no
45194   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
45195   soname_spec='${libname}${release}${major}$shared_ext'
45196   shlibpath_overrides_runpath=yes
45197   shlibpath_var=DYLD_LIBRARY_PATH
45198   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
45199
45200   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
45201   ;;
45202
45203 dgux*)
45204   version_type=linux # correct to gnu/linux during the next big refactor
45205   need_lib_prefix=no
45206   need_version=no
45207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
45208   soname_spec='${libname}${release}${shared_ext}$major'
45209   shlibpath_var=LD_LIBRARY_PATH
45210   ;;
45211
45212 freebsd* | dragonfly*)
45213   # DragonFly does not have aout.  When/if they implement a new
45214   # versioning mechanism, adjust this.
45215   if test -x /usr/bin/objformat; then
45216     objformat=`/usr/bin/objformat`
45217   else
45218     case $host_os in
45219     freebsd[23].*) objformat=aout ;;
45220     *) objformat=elf ;;
45221     esac
45222   fi
45223   version_type=freebsd-$objformat
45224   case $version_type in
45225     freebsd-elf*)
45226       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
45227       need_version=no
45228       need_lib_prefix=no
45229       ;;
45230     freebsd-*)
45231       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
45232       need_version=yes
45233       ;;
45234   esac
45235   shlibpath_var=LD_LIBRARY_PATH
45236   case $host_os in
45237   freebsd2.*)
45238     shlibpath_overrides_runpath=yes
45239     ;;
45240   freebsd3.[01]* | freebsdelf3.[01]*)
45241     shlibpath_overrides_runpath=yes
45242     hardcode_into_libs=yes
45243     ;;
45244   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
45245   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
45246     shlibpath_overrides_runpath=no
45247     hardcode_into_libs=yes
45248     ;;
45249   *) # from 4.6 on, and DragonFly
45250     shlibpath_overrides_runpath=yes
45251     hardcode_into_libs=yes
45252     ;;
45253   esac
45254   ;;
45255
45256 haiku*)
45257   version_type=linux # correct to gnu/linux during the next big refactor
45258   need_lib_prefix=no
45259   need_version=no
45260   dynamic_linker="$host_os runtime_loader"
45261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
45262   soname_spec='${libname}${release}${shared_ext}$major'
45263   shlibpath_var=LIBRARY_PATH
45264   shlibpath_overrides_runpath=yes
45265   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
45266   hardcode_into_libs=yes
45267   ;;
45268
45269 hpux9* | hpux10* | hpux11*)
45270   # Give a soname corresponding to the major version so that dld.sl refuses to
45271   # link against other versions.
45272   version_type=sunos
45273   need_lib_prefix=no
45274   need_version=no
45275   case $host_cpu in
45276   ia64*)
45277     shrext_cmds='.so'
45278     hardcode_into_libs=yes
45279     dynamic_linker="$host_os dld.so"
45280     shlibpath_var=LD_LIBRARY_PATH
45281     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
45282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45283     soname_spec='${libname}${release}${shared_ext}$major'
45284     if test "X$HPUX_IA64_MODE" = X32; then
45285       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
45286     else
45287       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
45288     fi
45289     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
45290     ;;
45291   hppa*64*)
45292     shrext_cmds='.sl'
45293     hardcode_into_libs=yes
45294     dynamic_linker="$host_os dld.sl"
45295     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
45296     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
45297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45298     soname_spec='${libname}${release}${shared_ext}$major'
45299     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
45300     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
45301     ;;
45302   *)
45303     shrext_cmds='.sl'
45304     dynamic_linker="$host_os dld.sl"
45305     shlibpath_var=SHLIB_PATH
45306     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
45307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45308     soname_spec='${libname}${release}${shared_ext}$major'
45309     ;;
45310   esac
45311   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
45312   postinstall_cmds='chmod 555 $lib'
45313   # or fails outright, so override atomically:
45314   install_override_mode=555
45315   ;;
45316
45317 interix[3-9]*)
45318   version_type=linux # correct to gnu/linux during the next big refactor
45319   need_lib_prefix=no
45320   need_version=no
45321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
45322   soname_spec='${libname}${release}${shared_ext}$major'
45323   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
45324   shlibpath_var=LD_LIBRARY_PATH
45325   shlibpath_overrides_runpath=no
45326   hardcode_into_libs=yes
45327   ;;
45328
45329 irix5* | irix6* | nonstopux*)
45330   case $host_os in
45331     nonstopux*) version_type=nonstopux ;;
45332     *)
45333         if test "$lt_cv_prog_gnu_ld" = yes; then
45334                 version_type=linux # correct to gnu/linux during the next big refactor
45335         else
45336                 version_type=irix
45337         fi ;;
45338   esac
45339   need_lib_prefix=no
45340   need_version=no
45341   soname_spec='${libname}${release}${shared_ext}$major'
45342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
45343   case $host_os in
45344   irix5* | nonstopux*)
45345     libsuff= shlibsuff=
45346     ;;
45347   *)
45348     case $LD in # libtool.m4 will add one of these switches to LD
45349     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
45350       libsuff= shlibsuff= libmagic=32-bit;;
45351     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
45352       libsuff=32 shlibsuff=N32 libmagic=N32;;
45353     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
45354       libsuff=64 shlibsuff=64 libmagic=64-bit;;
45355     *) libsuff= shlibsuff= libmagic=never-match;;
45356     esac
45357     ;;
45358   esac
45359   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
45360   shlibpath_overrides_runpath=no
45361   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
45362   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
45363   hardcode_into_libs=yes
45364   ;;
45365
45366 # No shared lib support for Linux oldld, aout, or coff.
45367 linux*oldld* | linux*aout* | linux*coff*)
45368   dynamic_linker=no
45369   ;;
45370
45371 # This must be glibc/ELF.
45372 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
45373   version_type=linux # correct to gnu/linux during the next big refactor
45374   need_lib_prefix=no
45375   need_version=no
45376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45377   soname_spec='${libname}${release}${shared_ext}$major'
45378   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
45379   shlibpath_var=LD_LIBRARY_PATH
45380   shlibpath_overrides_runpath=no
45381
45382   # Some binutils ld are patched to set DT_RUNPATH
45383   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
45384   $as_echo_n "(cached) " >&6
45385 else
45386   lt_cv_shlibpath_overrides_runpath=no
45387     save_LDFLAGS=$LDFLAGS
45388     save_libdir=$libdir
45389     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
45390          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
45391     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45392 /* end confdefs.h.  */
45393
45394 int
45395 main ()
45396 {
45397
45398   ;
45399   return 0;
45400 }
45401 _ACEOF
45402 if ac_fn_cxx_try_link "$LINENO"; then :
45403   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
45404   lt_cv_shlibpath_overrides_runpath=yes
45405 fi
45406 fi
45407 rm -f core conftest.err conftest.$ac_objext \
45408     conftest$ac_exeext conftest.$ac_ext
45409     LDFLAGS=$save_LDFLAGS
45410     libdir=$save_libdir
45411
45412 fi
45413
45414   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
45415
45416   # This implies no fast_install, which is unacceptable.
45417   # Some rework will be needed to allow for fast_install
45418   # before this can be enabled.
45419   hardcode_into_libs=yes
45420
45421   # Append ld.so.conf contents to the search path
45422   if test -f /etc/ld.so.conf; then
45423     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' ' '`
45424     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
45425   fi
45426
45427   # We used to test for /lib/ld.so.1 and disable shared libraries on
45428   # powerpc, because MkLinux only supported shared libraries with the
45429   # GNU dynamic linker.  Since this was broken with cross compilers,
45430   # most powerpc-linux boxes support dynamic linking these days and
45431   # people can always --disable-shared, the test was removed, and we
45432   # assume the GNU/Linux dynamic linker is in use.
45433   dynamic_linker='GNU/Linux ld.so'
45434   ;;
45435
45436 netbsdelf*-gnu)
45437   version_type=linux
45438   need_lib_prefix=no
45439   need_version=no
45440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
45441   soname_spec='${libname}${release}${shared_ext}$major'
45442   shlibpath_var=LD_LIBRARY_PATH
45443   shlibpath_overrides_runpath=no
45444   hardcode_into_libs=yes
45445   dynamic_linker='NetBSD ld.elf_so'
45446   ;;
45447
45448 netbsd*)
45449   version_type=sunos
45450   need_lib_prefix=no
45451   need_version=no
45452   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
45453     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
45454     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
45455     dynamic_linker='NetBSD (a.out) ld.so'
45456   else
45457     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
45458     soname_spec='${libname}${release}${shared_ext}$major'
45459     dynamic_linker='NetBSD ld.elf_so'
45460   fi
45461   shlibpath_var=LD_LIBRARY_PATH
45462   shlibpath_overrides_runpath=yes
45463   hardcode_into_libs=yes
45464   ;;
45465
45466 newsos6)
45467   version_type=linux # correct to gnu/linux during the next big refactor
45468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45469   shlibpath_var=LD_LIBRARY_PATH
45470   shlibpath_overrides_runpath=yes
45471   ;;
45472
45473 *nto* | *qnx*)
45474   version_type=qnx
45475   need_lib_prefix=no
45476   need_version=no
45477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45478   soname_spec='${libname}${release}${shared_ext}$major'
45479   shlibpath_var=LD_LIBRARY_PATH
45480   shlibpath_overrides_runpath=no
45481   hardcode_into_libs=yes
45482   dynamic_linker='ldqnx.so'
45483   ;;
45484
45485 openbsd*)
45486   version_type=sunos
45487   sys_lib_dlsearch_path_spec="/usr/lib"
45488   need_lib_prefix=no
45489   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
45490   case $host_os in
45491     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
45492     *)                          need_version=no  ;;
45493   esac
45494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
45495   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
45496   shlibpath_var=LD_LIBRARY_PATH
45497   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
45498     case $host_os in
45499       openbsd2.[89] | openbsd2.[89].*)
45500         shlibpath_overrides_runpath=no
45501         ;;
45502       *)
45503         shlibpath_overrides_runpath=yes
45504         ;;
45505       esac
45506   else
45507     shlibpath_overrides_runpath=yes
45508   fi
45509   ;;
45510
45511 os2*)
45512   libname_spec='$name'
45513   shrext_cmds=".dll"
45514   need_lib_prefix=no
45515   library_names_spec='$libname${shared_ext} $libname.a'
45516   dynamic_linker='OS/2 ld.exe'
45517   shlibpath_var=LIBPATH
45518   ;;
45519
45520 osf3* | osf4* | osf5*)
45521   version_type=osf
45522   need_lib_prefix=no
45523   need_version=no
45524   soname_spec='${libname}${release}${shared_ext}$major'
45525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45526   shlibpath_var=LD_LIBRARY_PATH
45527   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
45528   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
45529   ;;
45530
45531 rdos*)
45532   dynamic_linker=no
45533   ;;
45534
45535 solaris*)
45536   version_type=linux # correct to gnu/linux during the next big refactor
45537   need_lib_prefix=no
45538   need_version=no
45539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45540   soname_spec='${libname}${release}${shared_ext}$major'
45541   shlibpath_var=LD_LIBRARY_PATH
45542   shlibpath_overrides_runpath=yes
45543   hardcode_into_libs=yes
45544   # ldd complains unless libraries are executable
45545   postinstall_cmds='chmod +x $lib'
45546   ;;
45547
45548 sunos4*)
45549   version_type=sunos
45550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
45551   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
45552   shlibpath_var=LD_LIBRARY_PATH
45553   shlibpath_overrides_runpath=yes
45554   if test "$with_gnu_ld" = yes; then
45555     need_lib_prefix=no
45556   fi
45557   need_version=yes
45558   ;;
45559
45560 sysv4 | sysv4.3*)
45561   version_type=linux # correct to gnu/linux during the next big refactor
45562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45563   soname_spec='${libname}${release}${shared_ext}$major'
45564   shlibpath_var=LD_LIBRARY_PATH
45565   case $host_vendor in
45566     sni)
45567       shlibpath_overrides_runpath=no
45568       need_lib_prefix=no
45569       runpath_var=LD_RUN_PATH
45570       ;;
45571     siemens)
45572       need_lib_prefix=no
45573       ;;
45574     motorola)
45575       need_lib_prefix=no
45576       need_version=no
45577       shlibpath_overrides_runpath=no
45578       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
45579       ;;
45580   esac
45581   ;;
45582
45583 sysv4*MP*)
45584   if test -d /usr/nec ;then
45585     version_type=linux # correct to gnu/linux during the next big refactor
45586     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
45587     soname_spec='$libname${shared_ext}.$major'
45588     shlibpath_var=LD_LIBRARY_PATH
45589   fi
45590   ;;
45591
45592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
45593   version_type=freebsd-elf
45594   need_lib_prefix=no
45595   need_version=no
45596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
45597   soname_spec='${libname}${release}${shared_ext}$major'
45598   shlibpath_var=LD_LIBRARY_PATH
45599   shlibpath_overrides_runpath=yes
45600   hardcode_into_libs=yes
45601   if test "$with_gnu_ld" = yes; then
45602     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
45603   else
45604     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
45605     case $host_os in
45606       sco3.2v5*)
45607         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
45608         ;;
45609     esac
45610   fi
45611   sys_lib_dlsearch_path_spec='/usr/lib'
45612   ;;
45613
45614 tpf*)
45615   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
45616   version_type=linux # correct to gnu/linux during the next big refactor
45617   need_lib_prefix=no
45618   need_version=no
45619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45620   shlibpath_var=LD_LIBRARY_PATH
45621   shlibpath_overrides_runpath=no
45622   hardcode_into_libs=yes
45623   ;;
45624
45625 uts4*)
45626   version_type=linux # correct to gnu/linux during the next big refactor
45627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45628   soname_spec='${libname}${release}${shared_ext}$major'
45629   shlibpath_var=LD_LIBRARY_PATH
45630   ;;
45631
45632 *)
45633   dynamic_linker=no
45634   ;;
45635 esac
45636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
45637 $as_echo "$dynamic_linker" >&6; }
45638 test "$dynamic_linker" = no && can_build_shared=no
45639
45640 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
45641 if test "$GCC" = yes; then
45642   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
45643 fi
45644
45645 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
45646   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
45647 fi
45648 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
45649   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
45650 fi
45651
45652
45653
45654
45655
45656
45657
45658
45659
45660
45661
45662
45663
45664
45665
45666
45667
45668
45669
45670
45671
45672
45673
45674
45675
45676
45677
45678
45679
45680
45681
45682
45683
45684
45685
45686
45687
45688
45689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
45690 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
45691 hardcode_action_CXX=
45692 if test -n "$hardcode_libdir_flag_spec_CXX" ||
45693    test -n "$runpath_var_CXX" ||
45694    test "X$hardcode_automatic_CXX" = "Xyes" ; then
45695
45696   # We can hardcode non-existent directories.
45697   if test "$hardcode_direct_CXX" != no &&
45698      # If the only mechanism to avoid hardcoding is shlibpath_var, we
45699      # have to relink, otherwise we might link with an installed library
45700      # when we should be linking with a yet-to-be-installed one
45701      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
45702      test "$hardcode_minus_L_CXX" != no; then
45703     # Linking always hardcodes the temporary library directory.
45704     hardcode_action_CXX=relink
45705   else
45706     # We can link without hardcoding, and we can hardcode nonexisting dirs.
45707     hardcode_action_CXX=immediate
45708   fi
45709 else
45710   # We cannot hardcode anything, or else we can only hardcode existing
45711   # directories.
45712   hardcode_action_CXX=unsupported
45713 fi
45714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
45715 $as_echo "$hardcode_action_CXX" >&6; }
45716
45717 if test "$hardcode_action_CXX" = relink ||
45718    test "$inherit_rpath_CXX" = yes; then
45719   # Fast installation is not supported
45720   enable_fast_install=no
45721 elif test "$shlibpath_overrides_runpath" = yes ||
45722      test "$enable_shared" = no; then
45723   # Fast installation is not necessary
45724   enable_fast_install=needless
45725 fi
45726
45727
45728
45729
45730
45731
45732
45733   fi # test -n "$compiler"
45734
45735   CC=$lt_save_CC
45736   CFLAGS=$lt_save_CFLAGS
45737   LDCXX=$LD
45738   LD=$lt_save_LD
45739   GCC=$lt_save_GCC
45740   with_gnu_ld=$lt_save_with_gnu_ld
45741   lt_cv_path_LDCXX=$lt_cv_path_LD
45742   lt_cv_path_LD=$lt_save_path_LD
45743   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
45744   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
45745 fi # test "$_lt_caught_CXX_error" != yes
45746
45747 ac_ext=c
45748 ac_cpp='$CPP $CPPFLAGS'
45749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45752
45753
45754
45755
45756
45757
45758
45759
45760
45761
45762
45763
45764
45765
45766
45767         ac_config_commands="$ac_config_commands libtool"
45768
45769
45770
45771
45772 # Only expand once:
45773
45774
45775
45776
45777
45778 # Check whether --enable-self-checks was given.
45779 if test "${enable_self_checks+set}" = set; then :
45780   enableval=$enable_self_checks; enable_self_checks=$enableval
45781 else
45782   enable_self_checks=no
45783 fi
45784
45785
45786 # Check whether --enable-fips140-mode was given.
45787 if test "${enable_fips140_mode+set}" = set; then :
45788   enableval=$enable_fips140_mode; enable_fips=$enableval
45789 else
45790   enable_fips=no
45791 fi
45792
45793  if test "$enable_fips" = "yes"; then
45794   ENABLE_FIPS140_TRUE=
45795   ENABLE_FIPS140_FALSE='#'
45796 else
45797   ENABLE_FIPS140_TRUE='#'
45798   ENABLE_FIPS140_FALSE=
45799 fi
45800
45801 if  test "$enable_fips" = "yes" ;then
45802
45803
45804
45805
45806
45807
45808
45809
45810
45811
45812
45813
45814
45815     use_additional=yes
45816
45817   acl_save_prefix="$prefix"
45818   prefix="$acl_final_prefix"
45819   acl_save_exec_prefix="$exec_prefix"
45820   exec_prefix="$acl_final_exec_prefix"
45821
45822     eval additional_includedir=\"$includedir\"
45823     eval additional_libdir=\"$libdir\"
45824
45825   exec_prefix="$acl_save_exec_prefix"
45826   prefix="$acl_save_prefix"
45827
45828
45829 # Check whether --with-libdl-prefix was given.
45830 if test "${with_libdl_prefix+set}" = set; then :
45831   withval=$with_libdl_prefix;
45832     if test "X$withval" = "Xno"; then
45833       use_additional=no
45834     else
45835       if test "X$withval" = "X"; then
45836
45837   acl_save_prefix="$prefix"
45838   prefix="$acl_final_prefix"
45839   acl_save_exec_prefix="$exec_prefix"
45840   exec_prefix="$acl_final_exec_prefix"
45841
45842           eval additional_includedir=\"$includedir\"
45843           eval additional_libdir=\"$libdir\"
45844
45845   exec_prefix="$acl_save_exec_prefix"
45846   prefix="$acl_save_prefix"
45847
45848       else
45849         additional_includedir="$withval/include"
45850         additional_libdir="$withval/$acl_libdirstem"
45851         if test "$acl_libdirstem2" != "$acl_libdirstem" \
45852            && ! test -d "$withval/$acl_libdirstem"; then
45853           additional_libdir="$withval/$acl_libdirstem2"
45854         fi
45855       fi
45856     fi
45857
45858 fi
45859
45860       LIBDL=
45861   LTLIBDL=
45862   INCDL=
45863   LIBDL_PREFIX=
45864       HAVE_LIBDL=
45865   rpathdirs=
45866   ltrpathdirs=
45867   names_already_handled=
45868   names_next_round='dl '
45869   while test -n "$names_next_round"; do
45870     names_this_round="$names_next_round"
45871     names_next_round=
45872     for name in $names_this_round; do
45873       already_handled=
45874       for n in $names_already_handled; do
45875         if test "$n" = "$name"; then
45876           already_handled=yes
45877           break
45878         fi
45879       done
45880       if test -z "$already_handled"; then
45881         names_already_handled="$names_already_handled $name"
45882                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
45883         eval value=\"\$HAVE_LIB$uppername\"
45884         if test -n "$value"; then
45885           if test "$value" = yes; then
45886             eval value=\"\$LIB$uppername\"
45887             test -z "$value" || LIBDL="${LIBDL}${LIBDL:+ }$value"
45888             eval value=\"\$LTLIB$uppername\"
45889             test -z "$value" || LTLIBDL="${LTLIBDL}${LTLIBDL:+ }$value"
45890           else
45891                                     :
45892           fi
45893         else
45894                               found_dir=
45895           found_la=
45896           found_so=
45897           found_a=
45898           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
45899           if test -n "$acl_shlibext"; then
45900             shrext=".$acl_shlibext"             # typically: shrext=.so
45901           else
45902             shrext=
45903           fi
45904           if test $use_additional = yes; then
45905             dir="$additional_libdir"
45906                                     if test -n "$acl_shlibext"; then
45907               if test -f "$dir/$libname$shrext"; then
45908                 found_dir="$dir"
45909                 found_so="$dir/$libname$shrext"
45910               else
45911                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
45912                   ver=`(cd "$dir" && \
45913                         for f in "$libname$shrext".*; do echo "$f"; done \
45914                         | sed -e "s,^$libname$shrext\\\\.,," \
45915                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
45916                         | sed 1q ) 2>/dev/null`
45917                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
45918                     found_dir="$dir"
45919                     found_so="$dir/$libname$shrext.$ver"
45920                   fi
45921                 else
45922                   eval library_names=\"$acl_library_names_spec\"
45923                   for f in $library_names; do
45924                     if test -f "$dir/$f"; then
45925                       found_dir="$dir"
45926                       found_so="$dir/$f"
45927                       break
45928                     fi
45929                   done
45930                 fi
45931               fi
45932             fi
45933                         if test "X$found_dir" = "X"; then
45934               if test -f "$dir/$libname.$acl_libext"; then
45935                 found_dir="$dir"
45936                 found_a="$dir/$libname.$acl_libext"
45937               fi
45938             fi
45939             if test "X$found_dir" != "X"; then
45940               if test -f "$dir/$libname.la"; then
45941                 found_la="$dir/$libname.la"
45942               fi
45943             fi
45944           fi
45945           if test "X$found_dir" = "X"; then
45946             for x in $LDFLAGS $LTLIBDL; do
45947
45948   acl_save_prefix="$prefix"
45949   prefix="$acl_final_prefix"
45950   acl_save_exec_prefix="$exec_prefix"
45951   exec_prefix="$acl_final_exec_prefix"
45952   eval x=\"$x\"
45953   exec_prefix="$acl_save_exec_prefix"
45954   prefix="$acl_save_prefix"
45955
45956               case "$x" in
45957                 -L*)
45958                   dir=`echo "X$x" | sed -e 's/^X-L//'`
45959                                     if test -n "$acl_shlibext"; then
45960                     if test -f "$dir/$libname$shrext"; then
45961                       found_dir="$dir"
45962                       found_so="$dir/$libname$shrext"
45963                     else
45964                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
45965                         ver=`(cd "$dir" && \
45966                               for f in "$libname$shrext".*; do echo "$f"; done \
45967                               | sed -e "s,^$libname$shrext\\\\.,," \
45968                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
45969                               | sed 1q ) 2>/dev/null`
45970                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
45971                           found_dir="$dir"
45972                           found_so="$dir/$libname$shrext.$ver"
45973                         fi
45974                       else
45975                         eval library_names=\"$acl_library_names_spec\"
45976                         for f in $library_names; do
45977                           if test -f "$dir/$f"; then
45978                             found_dir="$dir"
45979                             found_so="$dir/$f"
45980                             break
45981                           fi
45982                         done
45983                       fi
45984                     fi
45985                   fi
45986                                     if test "X$found_dir" = "X"; then
45987                     if test -f "$dir/$libname.$acl_libext"; then
45988                       found_dir="$dir"
45989                       found_a="$dir/$libname.$acl_libext"
45990                     fi
45991                   fi
45992                   if test "X$found_dir" != "X"; then
45993                     if test -f "$dir/$libname.la"; then
45994                       found_la="$dir/$libname.la"
45995                     fi
45996                   fi
45997                   ;;
45998               esac
45999               if test "X$found_dir" != "X"; then
46000                 break
46001               fi
46002             done
46003           fi
46004           if test "X$found_dir" != "X"; then
46005                         LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-L$found_dir -l$name"
46006             if test "X$found_so" != "X"; then
46007                                                         if test "$enable_rpath" = no \
46008                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
46009                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
46010                                 LIBDL="${LIBDL}${LIBDL:+ }$found_so"
46011               else
46012                                                                                 haveit=
46013                 for x in $ltrpathdirs; do
46014                   if test "X$x" = "X$found_dir"; then
46015                     haveit=yes
46016                     break
46017                   fi
46018                 done
46019                 if test -z "$haveit"; then
46020                   ltrpathdirs="$ltrpathdirs $found_dir"
46021                 fi
46022                                 if test "$acl_hardcode_direct" = yes; then
46023                                                       LIBDL="${LIBDL}${LIBDL:+ }$found_so"
46024                 else
46025                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
46026                                                             LIBDL="${LIBDL}${LIBDL:+ }$found_so"
46027                                                             haveit=
46028                     for x in $rpathdirs; do
46029                       if test "X$x" = "X$found_dir"; then
46030                         haveit=yes
46031                         break
46032                       fi
46033                     done
46034                     if test -z "$haveit"; then
46035                       rpathdirs="$rpathdirs $found_dir"
46036                     fi
46037                   else
46038                                                                                 haveit=
46039                     for x in $LDFLAGS $LIBDL; do
46040
46041   acl_save_prefix="$prefix"
46042   prefix="$acl_final_prefix"
46043   acl_save_exec_prefix="$exec_prefix"
46044   exec_prefix="$acl_final_exec_prefix"
46045   eval x=\"$x\"
46046   exec_prefix="$acl_save_exec_prefix"
46047   prefix="$acl_save_prefix"
46048
46049                       if test "X$x" = "X-L$found_dir"; then
46050                         haveit=yes
46051                         break
46052                       fi
46053                     done
46054                     if test -z "$haveit"; then
46055                       LIBDL="${LIBDL}${LIBDL:+ }-L$found_dir"
46056                     fi
46057                     if test "$acl_hardcode_minus_L" != no; then
46058                                                                                         LIBDL="${LIBDL}${LIBDL:+ }$found_so"
46059                     else
46060                                                                                                                                                                                 LIBDL="${LIBDL}${LIBDL:+ }-l$name"
46061                     fi
46062                   fi
46063                 fi
46064               fi
46065             else
46066               if test "X$found_a" != "X"; then
46067                                 LIBDL="${LIBDL}${LIBDL:+ }$found_a"
46068               else
46069                                                 LIBDL="${LIBDL}${LIBDL:+ }-L$found_dir -l$name"
46070               fi
46071             fi
46072                         additional_includedir=
46073             case "$found_dir" in
46074               */$acl_libdirstem | */$acl_libdirstem/)
46075                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
46076                 if test "$name" = 'dl'; then
46077                   LIBDL_PREFIX="$basedir"
46078                 fi
46079                 additional_includedir="$basedir/include"
46080                 ;;
46081               */$acl_libdirstem2 | */$acl_libdirstem2/)
46082                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
46083                 if test "$name" = 'dl'; then
46084                   LIBDL_PREFIX="$basedir"
46085                 fi
46086                 additional_includedir="$basedir/include"
46087                 ;;
46088             esac
46089             if test "X$additional_includedir" != "X"; then
46090                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
46091                 haveit=
46092                 if test "X$additional_includedir" = "X/usr/local/include"; then
46093                   if test -n "$GCC"; then
46094                     case $host_os in
46095                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
46096                     esac
46097                   fi
46098                 fi
46099                 if test -z "$haveit"; then
46100                   for x in $CPPFLAGS $INCDL; do
46101
46102   acl_save_prefix="$prefix"
46103   prefix="$acl_final_prefix"
46104   acl_save_exec_prefix="$exec_prefix"
46105   exec_prefix="$acl_final_exec_prefix"
46106   eval x=\"$x\"
46107   exec_prefix="$acl_save_exec_prefix"
46108   prefix="$acl_save_prefix"
46109
46110                     if test "X$x" = "X-I$additional_includedir"; then
46111                       haveit=yes
46112                       break
46113                     fi
46114                   done
46115                   if test -z "$haveit"; then
46116                     if test -d "$additional_includedir"; then
46117                                             INCDL="${INCDL}${INCDL:+ }-I$additional_includedir"
46118                     fi
46119                   fi
46120                 fi
46121               fi
46122             fi
46123                         if test -n "$found_la"; then
46124                                                         save_libdir="$libdir"
46125               case "$found_la" in
46126                 */* | *\\*) . "$found_la" ;;
46127                 *) . "./$found_la" ;;
46128               esac
46129               libdir="$save_libdir"
46130                             for dep in $dependency_libs; do
46131                 case "$dep" in
46132                   -L*)
46133                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
46134                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
46135                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
46136                       haveit=
46137                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
46138                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
46139                         if test -n "$GCC"; then
46140                           case $host_os in
46141                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
46142                           esac
46143                         fi
46144                       fi
46145                       if test -z "$haveit"; then
46146                         haveit=
46147                         for x in $LDFLAGS $LIBDL; do
46148
46149   acl_save_prefix="$prefix"
46150   prefix="$acl_final_prefix"
46151   acl_save_exec_prefix="$exec_prefix"
46152   exec_prefix="$acl_final_exec_prefix"
46153   eval x=\"$x\"
46154   exec_prefix="$acl_save_exec_prefix"
46155   prefix="$acl_save_prefix"
46156
46157                           if test "X$x" = "X-L$additional_libdir"; then
46158                             haveit=yes
46159                             break
46160                           fi
46161                         done
46162                         if test -z "$haveit"; then
46163                           if test -d "$additional_libdir"; then
46164                                                         LIBDL="${LIBDL}${LIBDL:+ }-L$additional_libdir"
46165                           fi
46166                         fi
46167                         haveit=
46168                         for x in $LDFLAGS $LTLIBDL; do
46169
46170   acl_save_prefix="$prefix"
46171   prefix="$acl_final_prefix"
46172   acl_save_exec_prefix="$exec_prefix"
46173   exec_prefix="$acl_final_exec_prefix"
46174   eval x=\"$x\"
46175   exec_prefix="$acl_save_exec_prefix"
46176   prefix="$acl_save_prefix"
46177
46178                           if test "X$x" = "X-L$additional_libdir"; then
46179                             haveit=yes
46180                             break
46181                           fi
46182                         done
46183                         if test -z "$haveit"; then
46184                           if test -d "$additional_libdir"; then
46185                                                         LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-L$additional_libdir"
46186                           fi
46187                         fi
46188                       fi
46189                     fi
46190                     ;;
46191                   -R*)
46192                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
46193                     if test "$enable_rpath" != no; then
46194                                                                   haveit=
46195                       for x in $rpathdirs; do
46196                         if test "X$x" = "X$dir"; then
46197                           haveit=yes
46198                           break
46199                         fi
46200                       done
46201                       if test -z "$haveit"; then
46202                         rpathdirs="$rpathdirs $dir"
46203                       fi
46204                                                                   haveit=
46205                       for x in $ltrpathdirs; do
46206                         if test "X$x" = "X$dir"; then
46207                           haveit=yes
46208                           break
46209                         fi
46210                       done
46211                       if test -z "$haveit"; then
46212                         ltrpathdirs="$ltrpathdirs $dir"
46213                       fi
46214                     fi
46215                     ;;
46216                   -l*)
46217                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
46218                     ;;
46219                   *.la)
46220                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
46221                     ;;
46222                   *)
46223                                         LIBDL="${LIBDL}${LIBDL:+ }$dep"
46224                     LTLIBDL="${LTLIBDL}${LTLIBDL:+ }$dep"
46225                     ;;
46226                 esac
46227               done
46228             fi
46229           else
46230                                                             LIBDL="${LIBDL}${LIBDL:+ }-l$name"
46231             LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-l$name"
46232           fi
46233         fi
46234       fi
46235     done
46236   done
46237   if test "X$rpathdirs" != "X"; then
46238     if test -n "$acl_hardcode_libdir_separator"; then
46239                         alldirs=
46240       for found_dir in $rpathdirs; do
46241         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
46242       done
46243             acl_save_libdir="$libdir"
46244       libdir="$alldirs"
46245       eval flag=\"$acl_hardcode_libdir_flag_spec\"
46246       libdir="$acl_save_libdir"
46247       LIBDL="${LIBDL}${LIBDL:+ }$flag"
46248     else
46249             for found_dir in $rpathdirs; do
46250         acl_save_libdir="$libdir"
46251         libdir="$found_dir"
46252         eval flag=\"$acl_hardcode_libdir_flag_spec\"
46253         libdir="$acl_save_libdir"
46254         LIBDL="${LIBDL}${LIBDL:+ }$flag"
46255       done
46256     fi
46257   fi
46258   if test "X$ltrpathdirs" != "X"; then
46259             for found_dir in $ltrpathdirs; do
46260       LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-R$found_dir"
46261     done
46262   fi
46263
46264
46265
46266
46267
46268
46269
46270         ac_save_CPPFLAGS="$CPPFLAGS"
46271
46272   for element in $INCDL; do
46273     haveit=
46274     for x in $CPPFLAGS; do
46275
46276   acl_save_prefix="$prefix"
46277   prefix="$acl_final_prefix"
46278   acl_save_exec_prefix="$exec_prefix"
46279   exec_prefix="$acl_final_exec_prefix"
46280   eval x=\"$x\"
46281   exec_prefix="$acl_save_exec_prefix"
46282   prefix="$acl_save_prefix"
46283
46284       if test "X$x" = "X$element"; then
46285         haveit=yes
46286         break
46287       fi
46288     done
46289     if test -z "$haveit"; then
46290       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
46291     fi
46292   done
46293
46294
46295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdl" >&5
46296 $as_echo_n "checking for libdl... " >&6; }
46297 if ${ac_cv_libdl+:} false; then :
46298   $as_echo_n "(cached) " >&6
46299 else
46300
46301     ac_save_LIBS="$LIBS"
46302                                 case " $LIBDL" in
46303       *" -l"*) LIBS="$LIBS $LIBDL" ;;
46304       *)       LIBS="$LIBDL $LIBS" ;;
46305     esac
46306     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46307 /* end confdefs.h.  */
46308 #include <dlfcn.h>
46309 int
46310 main ()
46311 {
46312 dladdr (0, 0);
46313   ;
46314   return 0;
46315 }
46316 _ACEOF
46317 if ac_fn_c_try_link "$LINENO"; then :
46318   ac_cv_libdl=yes
46319 else
46320   ac_cv_libdl='no'
46321 fi
46322 rm -f core conftest.err conftest.$ac_objext \
46323     conftest$ac_exeext conftest.$ac_ext
46324     LIBS="$ac_save_LIBS"
46325
46326 fi
46327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libdl" >&5
46328 $as_echo "$ac_cv_libdl" >&6; }
46329   if test "$ac_cv_libdl" = yes; then
46330     HAVE_LIBDL=yes
46331
46332 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
46333
46334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libdl" >&5
46335 $as_echo_n "checking how to link with libdl... " >&6; }
46336     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBDL" >&5
46337 $as_echo "$LIBDL" >&6; }
46338   else
46339     HAVE_LIBDL=no
46340             CPPFLAGS="$ac_save_CPPFLAGS"
46341     LIBDL=
46342     LTLIBDL=
46343     LIBDL_PREFIX=
46344   fi
46345
46346
46347
46348
46349
46350
46351
46352   if test "x$HAVE_LIBDL" = "xyes";then
46353     enable_self_checks=yes
46354
46355
46356 $as_echo "#define ENABLE_FIPS140 1" >>confdefs.h
46357
46358
46359     FIPS140_LIBS=$LIBDL
46360
46361   else
46362     enable_fips=no
46363     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
46364 ***
46365 *** This system is not supported in FIPS140 mode.
46366 *** libdl and dladdr() are required.
46367 *** " >&5
46368 $as_echo "$as_me: WARNING:
46369 ***
46370 *** This system is not supported in FIPS140 mode.
46371 *** libdl and dladdr() are required.
46372 *** " >&2;}
46373   fi
46374 fi
46375
46376 # Check whether --enable-non-suiteb-curves was given.
46377 if test "${enable_non_suiteb_curves+set}" = set; then :
46378   enableval=$enable_non_suiteb_curves; enable_non_suiteb=$enableval
46379 else
46380   enable_non_suiteb=yes
46381 fi
46382
46383 if  test "$enable_non_suiteb" = "yes" ;then
46384
46385 $as_echo "#define ENABLE_NON_SUITEB_CURVES 1" >>confdefs.h
46386
46387 fi
46388
46389  if test "$enable_self_checks" = "yes"; then
46390   ENABLE_SELF_CHECKS_TRUE=
46391   ENABLE_SELF_CHECKS_FALSE='#'
46392 else
46393   ENABLE_SELF_CHECKS_TRUE='#'
46394   ENABLE_SELF_CHECKS_FALSE=
46395 fi
46396
46397 if  test "$enable_self_checks" = "yes" ;then
46398
46399 $as_echo "#define ENABLE_SELF_CHECKS 1" >>confdefs.h
46400
46401 fi
46402
46403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build libdane" >&5
46404 $as_echo_n "checking whether to build libdane... " >&6; }
46405 # Check whether --enable-libdane was given.
46406 if test "${enable_libdane+set}" = set; then :
46407   enableval=$enable_libdane; enable_dane=$enableval
46408 else
46409   enable_dane=yes
46410 fi
46411
46412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dane" >&5
46413 $as_echo "$enable_dane" >&6; }
46414
46415 if test "$enable_dane" != "no"; then
46416     LIBS="$oldlibs -lunbound"
46417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unbound library" >&5
46418 $as_echo_n "checking for unbound library... " >&6; }
46419     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46420 /* end confdefs.h.  */
46421
46422                    #include <unbound.h>
46423 int
46424 main ()
46425 {
46426
46427                    struct ub_ctx* ctx;
46428                    ctx = ub_ctx_create();
46429   ;
46430   return 0;
46431 }
46432 _ACEOF
46433 if ac_fn_c_try_link "$LINENO"; then :
46434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46435 $as_echo "yes" >&6; }
46436                    UNBOUND_LIBS=-lunbound
46437
46438
46439
46440 $as_echo "#define HAVE_DANE 1" >>confdefs.h
46441
46442                    enable_dane=yes
46443 else
46444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46445 $as_echo "no" >&6; }
46446                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
46447 ***
46448 *** libunbound was not found. Libdane will not be built.
46449 *** " >&5
46450 $as_echo "$as_me: WARNING:
46451 ***
46452 *** libunbound was not found. Libdane will not be built.
46453 *** " >&2;}
46454                   enable_dane=no
46455 fi
46456 rm -f core conftest.err conftest.$ac_objext \
46457     conftest$ac_exeext conftest.$ac_ext
46458     LIBS="$oldlibs"
46459 fi
46460
46461  if test "$enable_dane" = "yes"; then
46462   ENABLE_DANE_TRUE=
46463   ENABLE_DANE_FALSE='#'
46464 else
46465   ENABLE_DANE_TRUE='#'
46466   ENABLE_DANE_FALSE=
46467 fi
46468
46469
46470
46471 # Check whether --with-unbound-root-key-file was given.
46472 if test "${with_unbound_root_key_file+set}" = set; then :
46473   withval=$with_unbound_root_key_file; unbound_root_key_file="$withval"
46474 else
46475   if test "$have_win" = yes; then
46476     unbound_root_key_file="C:\\Program Files\\Unbound\\root.key"
46477 else
46478     if test -f /var/lib/unbound/root.key;then
46479         unbound_root_key_file="/var/lib/unbound/root.key"
46480     else
46481         unbound_root_key_file="/etc/unbound/root.key"
46482     fi
46483 fi
46484
46485 fi
46486
46487
46488
46489 cat >>confdefs.h <<_ACEOF
46490 #define UNBOUND_ROOT_KEY_FILE "$unbound_root_key_file"
46491 _ACEOF
46492
46493
46494
46495 # Check whether --with-system-priority-file was given.
46496 if test "${with_system_priority_file+set}" = set; then :
46497   withval=$with_system_priority_file; system_priority_file="$withval"
46498 else
46499   system_priority_file="/etc/gnutls/default-priorities"
46500
46501 fi
46502
46503
46504
46505 cat >>confdefs.h <<_ACEOF
46506 #define SYSTEM_PRIORITY_FILE "$system_priority_file"
46507 _ACEOF
46508
46509
46510 P11_KIT_MINIMUM=0.20.0
46511
46512 # Check whether --with-p11-kit was given.
46513 if test "${with_p11_kit+set}" = set; then :
46514   withval=$with_p11_kit;
46515 fi
46516
46517 if test "$with_p11_kit" != "no"; then
46518
46519 pkg_failed=no
46520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for P11_KIT" >&5
46521 $as_echo_n "checking for P11_KIT... " >&6; }
46522
46523 if test -n "$PKG_CONFIG"; then
46524     if test -n "$P11_KIT_CFLAGS"; then
46525         pkg_cv_P11_KIT_CFLAGS="$P11_KIT_CFLAGS"
46526     else
46527         if test -n "$PKG_CONFIG" && \
46528     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= \$P11_KIT_MINIMUM\""; } >&5
46529   ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM") 2>&5
46530   ac_status=$?
46531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46532   test $ac_status = 0; }; then
46533   pkg_cv_P11_KIT_CFLAGS=`$PKG_CONFIG --cflags "p11-kit-1 >= $P11_KIT_MINIMUM" 2>/dev/null`
46534 else
46535   pkg_failed=yes
46536 fi
46537     fi
46538 else
46539         pkg_failed=untried
46540 fi
46541 if test -n "$PKG_CONFIG"; then
46542     if test -n "$P11_KIT_LIBS"; then
46543         pkg_cv_P11_KIT_LIBS="$P11_KIT_LIBS"
46544     else
46545         if test -n "$PKG_CONFIG" && \
46546     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= \$P11_KIT_MINIMUM\""; } >&5
46547   ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM") 2>&5
46548   ac_status=$?
46549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46550   test $ac_status = 0; }; then
46551   pkg_cv_P11_KIT_LIBS=`$PKG_CONFIG --libs "p11-kit-1 >= $P11_KIT_MINIMUM" 2>/dev/null`
46552 else
46553   pkg_failed=yes
46554 fi
46555     fi
46556 else
46557         pkg_failed=untried
46558 fi
46559
46560
46561
46562 if test $pkg_failed = yes; then
46563
46564 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46565         _pkg_short_errors_supported=yes
46566 else
46567         _pkg_short_errors_supported=no
46568 fi
46569         if test $_pkg_short_errors_supported = yes; then
46570                 P11_KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM"`
46571         else
46572                 P11_KIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM"`
46573         fi
46574         # Put the nasty error message in config.log where it belongs
46575         echo "$P11_KIT_PKG_ERRORS" >&5
46576
46577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46578 $as_echo "no" >&6; }
46579                 with_p11_kit=no
46580 elif test $pkg_failed = untried; then
46581         with_p11_kit=no
46582 else
46583         P11_KIT_CFLAGS=$pkg_cv_P11_KIT_CFLAGS
46584         P11_KIT_LIBS=$pkg_cv_P11_KIT_LIBS
46585         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46586 $as_echo "yes" >&6; }
46587         with_p11_kit=yes
46588 fi
46589         if test "$with_p11_kit" != "no";then
46590
46591 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
46592
46593                 if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
46594                         GNUTLS_REQUIRES_PRIVATE="Requires.private: p11-kit-1"
46595                 else
46596                         GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, p11-kit-1"
46597                 fi
46598         else
46599                 with_p11_kit=no
46600                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
46601 ***
46602 *** p11-kit >= $P11_KIT_MINIMUM was not found. PKCS #11 support will be disabled.
46603 *** You may get it from http://p11-glue.freedesktop.org/p11-kit.html
46604 *** " >&5
46605 $as_echo "$as_me: WARNING:
46606 ***
46607 *** p11-kit >= $P11_KIT_MINIMUM was not found. PKCS #11 support will be disabled.
46608 *** You may get it from http://p11-glue.freedesktop.org/p11-kit.html
46609 *** " >&2;}
46610         fi
46611 fi
46612
46613  if test "$with_p11_kit" != "no"; then
46614   ENABLE_PKCS11_TRUE=
46615   ENABLE_PKCS11_FALSE='#'
46616 else
46617   ENABLE_PKCS11_TRUE='#'
46618   ENABLE_PKCS11_FALSE=
46619 fi
46620
46621
46622
46623 # Check whether --with-tpm was given.
46624 if test "${with_tpm+set}" = set; then :
46625   withval=$with_tpm; with_tpm=$withval
46626 else
46627   with_tpm=yes
46628 fi
46629
46630 if test "$with_tpm" != "no"; then
46631     LIBS="$oldlibs -ltspi"
46632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tss library" >&5
46633 $as_echo_n "checking for tss library... " >&6; }
46634     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46635 /* end confdefs.h.  */
46636
46637                    #include <trousers/tss.h>
46638                    #include <trousers/trousers.h>
46639 int
46640 main ()
46641 {
46642
46643                    int err = Tspi_Context_Create((void *)0);
46644                    Trspi_Error_String(err);
46645   ;
46646   return 0;
46647 }
46648 _ACEOF
46649 if ac_fn_c_try_link "$LINENO"; then :
46650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46651 $as_echo "yes" >&6; }
46652                    TSS_LIBS=-ltspi
46653
46654
46655
46656 $as_echo "#define HAVE_TROUSERS 1" >>confdefs.h
46657
46658                    with_tpm=yes
46659 else
46660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46661 $as_echo "no" >&6; }
46662                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
46663 ***
46664 *** trousers was not found. TPM support will be disabled.
46665 *** " >&5
46666 $as_echo "$as_me: WARNING:
46667 ***
46668 *** trousers was not found. TPM support will be disabled.
46669 *** " >&2;}
46670                   with_tpm=no
46671 fi
46672 rm -f core conftest.err conftest.$ac_objext \
46673     conftest$ac_exeext conftest.$ac_ext
46674     LIBS="$oldlibs"
46675 fi
46676
46677  if test "$with_tpm" != "no"; then
46678   ENABLE_TROUSERS_TRUE=
46679   ENABLE_TROUSERS_FALSE='#'
46680 else
46681   ENABLE_TROUSERS_TRUE='#'
46682   ENABLE_TROUSERS_FALSE=
46683 fi
46684
46685
46686
46687
46688   ac_header_dirent=no
46689 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
46690   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
46691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
46692 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
46693 if eval \${$as_ac_Header+:} false; then :
46694   $as_echo_n "(cached) " >&6
46695 else
46696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46697 /* end confdefs.h.  */
46698 #include <sys/types.h>
46699 #include <$ac_hdr>
46700
46701 int
46702 main ()
46703 {
46704 if ((DIR *) 0)
46705 return 0;
46706   ;
46707   return 0;
46708 }
46709 _ACEOF
46710 if ac_fn_c_try_compile "$LINENO"; then :
46711   eval "$as_ac_Header=yes"
46712 else
46713   eval "$as_ac_Header=no"
46714 fi
46715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46716 fi
46717 eval ac_res=\$$as_ac_Header
46718                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46719 $as_echo "$ac_res" >&6; }
46720 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46721   cat >>confdefs.h <<_ACEOF
46722 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
46723 _ACEOF
46724
46725 ac_header_dirent=$ac_hdr; break
46726 fi
46727
46728 done
46729 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
46730 if test $ac_header_dirent = dirent.h; then
46731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
46732 $as_echo_n "checking for library containing opendir... " >&6; }
46733 if ${ac_cv_search_opendir+:} false; then :
46734   $as_echo_n "(cached) " >&6
46735 else
46736   ac_func_search_save_LIBS=$LIBS
46737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46738 /* end confdefs.h.  */
46739
46740 /* Override any GCC internal prototype to avoid an error.
46741    Use char because int might match the return type of a GCC
46742    builtin and then its argument prototype would still apply.  */
46743 #ifdef __cplusplus
46744 extern "C"
46745 #endif
46746 char opendir ();
46747 int
46748 main ()
46749 {
46750 return opendir ();
46751   ;
46752   return 0;
46753 }
46754 _ACEOF
46755 for ac_lib in '' dir; do
46756   if test -z "$ac_lib"; then
46757     ac_res="none required"
46758   else
46759     ac_res=-l$ac_lib
46760     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
46761   fi
46762   if ac_fn_c_try_link "$LINENO"; then :
46763   ac_cv_search_opendir=$ac_res
46764 fi
46765 rm -f core conftest.err conftest.$ac_objext \
46766     conftest$ac_exeext
46767   if ${ac_cv_search_opendir+:} false; then :
46768   break
46769 fi
46770 done
46771 if ${ac_cv_search_opendir+:} false; then :
46772
46773 else
46774   ac_cv_search_opendir=no
46775 fi
46776 rm conftest.$ac_ext
46777 LIBS=$ac_func_search_save_LIBS
46778 fi
46779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
46780 $as_echo "$ac_cv_search_opendir" >&6; }
46781 ac_res=$ac_cv_search_opendir
46782 if test "$ac_res" != no; then :
46783   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
46784
46785 fi
46786
46787 else
46788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
46789 $as_echo_n "checking for library containing opendir... " >&6; }
46790 if ${ac_cv_search_opendir+:} false; then :
46791   $as_echo_n "(cached) " >&6
46792 else
46793   ac_func_search_save_LIBS=$LIBS
46794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46795 /* end confdefs.h.  */
46796
46797 /* Override any GCC internal prototype to avoid an error.
46798    Use char because int might match the return type of a GCC
46799    builtin and then its argument prototype would still apply.  */
46800 #ifdef __cplusplus
46801 extern "C"
46802 #endif
46803 char opendir ();
46804 int
46805 main ()
46806 {
46807 return opendir ();
46808   ;
46809   return 0;
46810 }
46811 _ACEOF
46812 for ac_lib in '' x; do
46813   if test -z "$ac_lib"; then
46814     ac_res="none required"
46815   else
46816     ac_res=-l$ac_lib
46817     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
46818   fi
46819   if ac_fn_c_try_link "$LINENO"; then :
46820   ac_cv_search_opendir=$ac_res
46821 fi
46822 rm -f core conftest.err conftest.$ac_objext \
46823     conftest$ac_exeext
46824   if ${ac_cv_search_opendir+:} false; then :
46825   break
46826 fi
46827 done
46828 if ${ac_cv_search_opendir+:} false; then :
46829
46830 else
46831   ac_cv_search_opendir=no
46832 fi
46833 rm conftest.$ac_ext
46834 LIBS=$ac_func_search_save_LIBS
46835 fi
46836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
46837 $as_echo "$ac_cv_search_opendir" >&6; }
46838 ac_res=$ac_cv_search_opendir
46839 if test "$ac_res" != no; then :
46840   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
46841
46842 fi
46843
46844 fi
46845
46846
46847   # =================
46848   # AC_CHECK_HEADERS
46849   # =================
46850   for ac_header in  \
46851       sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
46852       sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
46853       sys/un.h      sys/wait.h    dlfcn.h       errno.h \
46854       fcntl.h       libgen.h      libintl.h     memory.h \
46855       netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
46856       unistd.h      utime.h
46857 do :
46858   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46859 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46860 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46861   cat >>confdefs.h <<_ACEOF
46862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46863 _ACEOF
46864
46865 fi
46866
46867 done
46868
46869
46870   for ac_header in stdarg.h     varargs.h
46871 do :
46872   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46873 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46874 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46875   cat >>confdefs.h <<_ACEOF
46876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46877 _ACEOF
46878  lo_have_arg_hdr=true;break
46879 else
46880   lo_have_arg_hdr=false
46881 fi
46882
46883 done
46884
46885
46886   for ac_header in string.h     strings.h
46887 do :
46888   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46889 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46890 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46891   cat >>confdefs.h <<_ACEOF
46892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46893 _ACEOF
46894  lo_have_str_hdr=true;break
46895 else
46896   lo_have_str_hdr=false
46897 fi
46898
46899 done
46900
46901
46902   for ac_header in limits.h     sys/limits.h  values.h
46903 do :
46904   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46905 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46906 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46907   cat >>confdefs.h <<_ACEOF
46908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46909 _ACEOF
46910  lo_have_lim_hdr=true;break
46911 else
46912   lo_have_lim_hdr=false
46913 fi
46914
46915 done
46916
46917
46918   for ac_header in inttypes.h   stdint.h
46919 do :
46920   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46921 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46922 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46923   cat >>confdefs.h <<_ACEOF
46924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46925 _ACEOF
46926  lo_have_typ_hdr=true;break
46927 else
46928   lo_have_typ_hdr=false
46929 fi
46930
46931 done
46932
46933
46934   # ----------------------------------------------------------------------
46935   # check for various programs used during the build.
46936   # On OS/X, "wchar.h" needs "runetype.h" to work properly.
46937   # ----------------------------------------------------------------------
46938   for ac_header in runetype.h wchar.h
46939 do :
46940   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46941 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
46942   $ac_includes_default
46943   #if HAVE_RUNETYPE_H
46944   # include <runetype.h>
46945   #endif
46946
46947 "
46948 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46949   cat >>confdefs.h <<_ACEOF
46950 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46951 _ACEOF
46952
46953 fi
46954
46955 done
46956
46957
46958   # Check whether --enable-nls was given.
46959 if test "${enable_nls+set}" = set; then :
46960   enableval=$enable_nls;
46961 fi
46962
46963   if test "x$enable_nls" != "xno" && \
46964   test "X${ac_cv_header_libintl_h}" = Xyes; then :
46965
46966
46967 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
46968
46969 fi
46970
46971   # --------------------------------------------
46972   # Verify certain entries from AC_CHECK_HEADERS
46973   # --------------------------------------------
46974   ${lo_have_arg_hdr} || \
46975     as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
46976
46977   ${lo_have_str_hdr} || \
46978     as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
46979
46980   ${lo_have_lim_hdr} || \
46981     as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
46982
46983   ${lo_have_typ_hdr} || \
46984     as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
46985
46986   for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
46987   do eval as_ac_var=\${ac_cv_header_${f}_h}
46988      test "X${as_ac_var}" = Xyes || {
46989        as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
46990      }
46991   done
46992   test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
46993     echo '#include <stdint.h>' > inttypes.h
46994
46995   # ----------------------------------------------------------------------
46996   # Checks for typedefs
46997   # ----------------------------------------------------------------------
46998   ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
46999 if test "x$ac_cv_type_wchar_t" = xyes; then :
47000
47001 cat >>confdefs.h <<_ACEOF
47002 #define HAVE_WCHAR_T 1
47003 _ACEOF
47004
47005
47006 fi
47007
47008   ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
47009     $ac_includes_default
47010     #if HAVE_RUNETYPE_H
47011     # include <runetype.h>
47012     #endif
47013     #if HAVE_WCHAR_H
47014     # include <wchar.h>
47015     #endif
47016
47017 "
47018 if test "x$ac_cv_type_wint_t" = xyes; then :
47019
47020 cat >>confdefs.h <<_ACEOF
47021 #define HAVE_WINT_T 1
47022 _ACEOF
47023
47024
47025 fi
47026
47027   ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
47028 if test "x$ac_cv_type_int8_t" = xyes; then :
47029
47030 cat >>confdefs.h <<_ACEOF
47031 #define HAVE_INT8_T 1
47032 _ACEOF
47033
47034
47035 fi
47036 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
47037 if test "x$ac_cv_type_uint8_t" = xyes; then :
47038
47039 cat >>confdefs.h <<_ACEOF
47040 #define HAVE_UINT8_T 1
47041 _ACEOF
47042
47043
47044 fi
47045 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
47046 if test "x$ac_cv_type_int16_t" = xyes; then :
47047
47048 cat >>confdefs.h <<_ACEOF
47049 #define HAVE_INT16_T 1
47050 _ACEOF
47051
47052
47053 fi
47054 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
47055 if test "x$ac_cv_type_uint16_t" = xyes; then :
47056
47057 cat >>confdefs.h <<_ACEOF
47058 #define HAVE_UINT16_T 1
47059 _ACEOF
47060
47061
47062 fi
47063 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
47064 if test "x$ac_cv_type_int32_t" = xyes; then :
47065
47066 cat >>confdefs.h <<_ACEOF
47067 #define HAVE_INT32_T 1
47068 _ACEOF
47069
47070
47071 fi
47072 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
47073 if test "x$ac_cv_type_uint32_t" = xyes; then :
47074
47075 cat >>confdefs.h <<_ACEOF
47076 #define HAVE_UINT32_T 1
47077 _ACEOF
47078
47079
47080 fi
47081 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
47082 if test "x$ac_cv_type_intptr_t" = xyes; then :
47083
47084 cat >>confdefs.h <<_ACEOF
47085 #define HAVE_INTPTR_T 1
47086 _ACEOF
47087
47088
47089 fi
47090 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
47091 if test "x$ac_cv_type_uintptr_t" = xyes; then :
47092
47093 cat >>confdefs.h <<_ACEOF
47094 #define HAVE_UINTPTR_T 1
47095 _ACEOF
47096
47097
47098 fi
47099 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
47100 if test "x$ac_cv_type_uint_t" = xyes; then :
47101
47102 cat >>confdefs.h <<_ACEOF
47103 #define HAVE_UINT_T 1
47104 _ACEOF
47105
47106
47107 fi
47108 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
47109 if test "x$ac_cv_type_pid_t" = xyes; then :
47110
47111 cat >>confdefs.h <<_ACEOF
47112 #define HAVE_PID_T 1
47113 _ACEOF
47114
47115
47116 fi
47117 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
47118 if test "x$ac_cv_type_size_t" = xyes; then :
47119
47120 cat >>confdefs.h <<_ACEOF
47121 #define HAVE_SIZE_T 1
47122 _ACEOF
47123
47124
47125 fi
47126
47127   # The cast to long int works around a bug in the HP C Compiler
47128 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47129 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47130 # This bug is HP SR number 8606223364.
47131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
47132 $as_echo_n "checking size of char*... " >&6; }
47133 if ${ac_cv_sizeof_charp+:} false; then :
47134   $as_echo_n "(cached) " >&6
47135 else
47136   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :
47137
47138 else
47139   if test "$ac_cv_type_charp" = yes; then
47140      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47142 as_fn_error 77 "cannot compute sizeof (char*)
47143 See \`config.log' for more details" "$LINENO" 5; }
47144    else
47145      ac_cv_sizeof_charp=0
47146    fi
47147 fi
47148
47149 fi
47150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
47151 $as_echo "$ac_cv_sizeof_charp" >&6; }
47152
47153
47154
47155 cat >>confdefs.h <<_ACEOF
47156 #define SIZEOF_CHARP $ac_cv_sizeof_charp
47157 _ACEOF
47158
47159
47160   # The cast to long int works around a bug in the HP C Compiler
47161 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47162 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47163 # This bug is HP SR number 8606223364.
47164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
47165 $as_echo_n "checking size of int... " >&6; }
47166 if ${ac_cv_sizeof_int+:} false; then :
47167   $as_echo_n "(cached) " >&6
47168 else
47169   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
47170
47171 else
47172   if test "$ac_cv_type_int" = yes; then
47173      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47175 as_fn_error 77 "cannot compute sizeof (int)
47176 See \`config.log' for more details" "$LINENO" 5; }
47177    else
47178      ac_cv_sizeof_int=0
47179    fi
47180 fi
47181
47182 fi
47183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
47184 $as_echo "$ac_cv_sizeof_int" >&6; }
47185
47186
47187
47188 cat >>confdefs.h <<_ACEOF
47189 #define SIZEOF_INT $ac_cv_sizeof_int
47190 _ACEOF
47191
47192
47193   # The cast to long int works around a bug in the HP C Compiler
47194 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47195 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47196 # This bug is HP SR number 8606223364.
47197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
47198 $as_echo_n "checking size of long... " >&6; }
47199 if ${ac_cv_sizeof_long+:} false; then :
47200   $as_echo_n "(cached) " >&6
47201 else
47202   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
47203
47204 else
47205   if test "$ac_cv_type_long" = yes; then
47206      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47208 as_fn_error 77 "cannot compute sizeof (long)
47209 See \`config.log' for more details" "$LINENO" 5; }
47210    else
47211      ac_cv_sizeof_long=0
47212    fi
47213 fi
47214
47215 fi
47216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
47217 $as_echo "$ac_cv_sizeof_long" >&6; }
47218
47219
47220
47221 cat >>confdefs.h <<_ACEOF
47222 #define SIZEOF_LONG $ac_cv_sizeof_long
47223 _ACEOF
47224
47225
47226   # The cast to long int works around a bug in the HP C Compiler
47227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47229 # This bug is HP SR number 8606223364.
47230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
47231 $as_echo_n "checking size of short... " >&6; }
47232 if ${ac_cv_sizeof_short+:} false; then :
47233   $as_echo_n "(cached) " >&6
47234 else
47235   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
47236
47237 else
47238   if test "$ac_cv_type_short" = yes; then
47239      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47241 as_fn_error 77 "cannot compute sizeof (short)
47242 See \`config.log' for more details" "$LINENO" 5; }
47243    else
47244      ac_cv_sizeof_short=0
47245    fi
47246 fi
47247
47248 fi
47249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
47250 $as_echo "$ac_cv_sizeof_short" >&6; }
47251
47252
47253
47254 cat >>confdefs.h <<_ACEOF
47255 #define SIZEOF_SHORT $ac_cv_sizeof_short
47256 _ACEOF
47257
47258
47259
47260   # ------------
47261   # AC_CHECK_LIB
47262   # ------------
47263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
47264 $as_echo_n "checking for pathfind in -lgen... " >&6; }
47265 if ${ac_cv_lib_gen_pathfind+:} false; then :
47266   $as_echo_n "(cached) " >&6
47267 else
47268   ac_check_lib_save_LIBS=$LIBS
47269 LIBS="-lgen  $LIBS"
47270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47271 /* end confdefs.h.  */
47272
47273 /* Override any GCC internal prototype to avoid an error.
47274    Use char because int might match the return type of a GCC
47275    builtin and then its argument prototype would still apply.  */
47276 #ifdef __cplusplus
47277 extern "C"
47278 #endif
47279 char pathfind ();
47280 int
47281 main ()
47282 {
47283 return pathfind ();
47284   ;
47285   return 0;
47286 }
47287 _ACEOF
47288 if ac_fn_c_try_link "$LINENO"; then :
47289   ac_cv_lib_gen_pathfind=yes
47290 else
47291   ac_cv_lib_gen_pathfind=no
47292 fi
47293 rm -f core conftest.err conftest.$ac_objext \
47294     conftest$ac_exeext conftest.$ac_ext
47295 LIBS=$ac_check_lib_save_LIBS
47296 fi
47297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
47298 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
47299 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
47300   cat >>confdefs.h <<_ACEOF
47301 #define HAVE_LIBGEN 1
47302 _ACEOF
47303
47304   LIBS="-lgen $LIBS"
47305
47306 fi
47307
47308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
47309 $as_echo_n "checking for gettext in -lintl... " >&6; }
47310 if ${ac_cv_lib_intl_gettext+:} false; then :
47311   $as_echo_n "(cached) " >&6
47312 else
47313   ac_check_lib_save_LIBS=$LIBS
47314 LIBS="-lintl  $LIBS"
47315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47316 /* end confdefs.h.  */
47317
47318 /* Override any GCC internal prototype to avoid an error.
47319    Use char because int might match the return type of a GCC
47320    builtin and then its argument prototype would still apply.  */
47321 #ifdef __cplusplus
47322 extern "C"
47323 #endif
47324 char gettext ();
47325 int
47326 main ()
47327 {
47328 return gettext ();
47329   ;
47330   return 0;
47331 }
47332 _ACEOF
47333 if ac_fn_c_try_link "$LINENO"; then :
47334   ac_cv_lib_intl_gettext=yes
47335 else
47336   ac_cv_lib_intl_gettext=no
47337 fi
47338 rm -f core conftest.err conftest.$ac_objext \
47339     conftest$ac_exeext conftest.$ac_ext
47340 LIBS=$ac_check_lib_save_LIBS
47341 fi
47342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
47343 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
47344 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
47345   cat >>confdefs.h <<_ACEOF
47346 #define HAVE_LIBINTL 1
47347 _ACEOF
47348
47349   LIBS="-lintl $LIBS"
47350
47351 fi
47352
47353   for ac_func in vprintf
47354 do :
47355   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
47356 if test "x$ac_cv_func_vprintf" = xyes; then :
47357   cat >>confdefs.h <<_ACEOF
47358 #define HAVE_VPRINTF 1
47359 _ACEOF
47360
47361 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
47362 if test "x$ac_cv_func__doprnt" = xyes; then :
47363
47364 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
47365
47366 fi
47367
47368 fi
47369 done
47370
47371
47372   for ac_header in vfork.h
47373 do :
47374   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
47375 if test "x$ac_cv_header_vfork_h" = xyes; then :
47376   cat >>confdefs.h <<_ACEOF
47377 #define HAVE_VFORK_H 1
47378 _ACEOF
47379
47380 fi
47381
47382 done
47383
47384 for ac_func in fork vfork
47385 do :
47386   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47387 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
47388 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
47389   cat >>confdefs.h <<_ACEOF
47390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47391 _ACEOF
47392
47393 fi
47394 done
47395
47396 if test "x$ac_cv_func_fork" = xyes; then
47397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
47398 $as_echo_n "checking for working fork... " >&6; }
47399 if ${ac_cv_func_fork_works+:} false; then :
47400   $as_echo_n "(cached) " >&6
47401 else
47402   if test "$cross_compiling" = yes; then :
47403   ac_cv_func_fork_works=cross
47404 else
47405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47406 /* end confdefs.h.  */
47407 $ac_includes_default
47408 int
47409 main ()
47410 {
47411
47412           /* By Ruediger Kuhlmann. */
47413           return fork () < 0;
47414
47415   ;
47416   return 0;
47417 }
47418 _ACEOF
47419 if ac_fn_c_try_run "$LINENO"; then :
47420   ac_cv_func_fork_works=yes
47421 else
47422   ac_cv_func_fork_works=no
47423 fi
47424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47425   conftest.$ac_objext conftest.beam conftest.$ac_ext
47426 fi
47427
47428 fi
47429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
47430 $as_echo "$ac_cv_func_fork_works" >&6; }
47431
47432 else
47433   ac_cv_func_fork_works=$ac_cv_func_fork
47434 fi
47435 if test "x$ac_cv_func_fork_works" = xcross; then
47436   case $host in
47437     *-*-amigaos* | *-*-msdosdjgpp*)
47438       # Override, as these systems have only a dummy fork() stub
47439       ac_cv_func_fork_works=no
47440       ;;
47441     *)
47442       ac_cv_func_fork_works=yes
47443       ;;
47444   esac
47445   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
47446 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
47447 fi
47448 ac_cv_func_vfork_works=$ac_cv_func_vfork
47449 if test "x$ac_cv_func_vfork" = xyes; then
47450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
47451 $as_echo_n "checking for working vfork... " >&6; }
47452 if ${ac_cv_func_vfork_works+:} false; then :
47453   $as_echo_n "(cached) " >&6
47454 else
47455   if test "$cross_compiling" = yes; then :
47456   ac_cv_func_vfork_works=cross
47457 else
47458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47459 /* end confdefs.h.  */
47460 /* Thanks to Paul Eggert for this test.  */
47461 $ac_includes_default
47462 #include <sys/wait.h>
47463 #ifdef HAVE_VFORK_H
47464 # include <vfork.h>
47465 #endif
47466 /* On some sparc systems, changes by the child to local and incoming
47467    argument registers are propagated back to the parent.  The compiler
47468    is told about this with #include <vfork.h>, but some compilers
47469    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
47470    static variable whose address is put into a register that is
47471    clobbered by the vfork.  */
47472 static void
47473 #ifdef __cplusplus
47474 sparc_address_test (int arg)
47475 # else
47476 sparc_address_test (arg) int arg;
47477 #endif
47478 {
47479   static pid_t child;
47480   if (!child) {
47481     child = vfork ();
47482     if (child < 0) {
47483       perror ("vfork");
47484       _exit(2);
47485     }
47486     if (!child) {
47487       arg = getpid();
47488       write(-1, "", 0);
47489       _exit (arg);
47490     }
47491   }
47492 }
47493
47494 int
47495 main ()
47496 {
47497   pid_t parent = getpid ();
47498   pid_t child;
47499
47500   sparc_address_test (0);
47501
47502   child = vfork ();
47503
47504   if (child == 0) {
47505     /* Here is another test for sparc vfork register problems.  This
47506        test uses lots of local variables, at least as many local
47507        variables as main has allocated so far including compiler
47508        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
47509        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
47510        reuse the register of parent for one of the local variables,
47511        since it will think that parent can't possibly be used any more
47512        in this routine.  Assigning to the local variable will thus
47513        munge parent in the parent process.  */
47514     pid_t
47515       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
47516       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
47517     /* Convince the compiler that p..p7 are live; otherwise, it might
47518        use the same hardware register for all 8 local variables.  */
47519     if (p != p1 || p != p2 || p != p3 || p != p4
47520         || p != p5 || p != p6 || p != p7)
47521       _exit(1);
47522
47523     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
47524        from child file descriptors.  If the child closes a descriptor
47525        before it execs or exits, this munges the parent's descriptor
47526        as well.  Test for this by closing stdout in the child.  */
47527     _exit(close(fileno(stdout)) != 0);
47528   } else {
47529     int status;
47530     struct stat st;
47531
47532     while (wait(&status) != child)
47533       ;
47534     return (
47535          /* Was there some problem with vforking?  */
47536          child < 0
47537
47538          /* Did the child fail?  (This shouldn't happen.)  */
47539          || status
47540
47541          /* Did the vfork/compiler bug occur?  */
47542          || parent != getpid()
47543
47544          /* Did the file descriptor bug occur?  */
47545          || fstat(fileno(stdout), &st) != 0
47546          );
47547   }
47548 }
47549 _ACEOF
47550 if ac_fn_c_try_run "$LINENO"; then :
47551   ac_cv_func_vfork_works=yes
47552 else
47553   ac_cv_func_vfork_works=no
47554 fi
47555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47556   conftest.$ac_objext conftest.beam conftest.$ac_ext
47557 fi
47558
47559 fi
47560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
47561 $as_echo "$ac_cv_func_vfork_works" >&6; }
47562
47563 fi;
47564 if test "x$ac_cv_func_fork_works" = xcross; then
47565   ac_cv_func_vfork_works=$ac_cv_func_vfork
47566   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
47567 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
47568 fi
47569
47570 if test "x$ac_cv_func_vfork_works" = xyes; then
47571
47572 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
47573
47574 else
47575
47576 $as_echo "#define vfork fork" >>confdefs.h
47577
47578 fi
47579 if test "x$ac_cv_func_fork_works" = xyes; then
47580
47581 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
47582
47583 fi
47584
47585   for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
47586                  strrchr strsignal fchmod fstat chmod
47587 do :
47588   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47589 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
47590 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
47591   cat >>confdefs.h <<_ACEOF
47592 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47593 _ACEOF
47594
47595 fi
47596 done
47597
47598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
47599 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
47600 if ${ac_cv_path_SED+:} false; then :
47601   $as_echo_n "(cached) " >&6
47602 else
47603             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
47604      for ac_i in 1 2 3 4 5 6 7; do
47605        ac_script="$ac_script$as_nl$ac_script"
47606      done
47607      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
47608      { ac_script=; unset ac_script;}
47609      if test -z "$SED"; then
47610   ac_path_SED_found=false
47611   # Loop through the user's path and test for each of PROGNAME-LIST
47612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47613 for as_dir in $PATH
47614 do
47615   IFS=$as_save_IFS
47616   test -z "$as_dir" && as_dir=.
47617     for ac_prog in sed gsed; do
47618     for ac_exec_ext in '' $ac_executable_extensions; do
47619       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
47620       as_fn_executable_p "$ac_path_SED" || continue
47621 # Check for GNU ac_path_SED and select it if it is found.
47622   # Check for GNU $ac_path_SED
47623 case `"$ac_path_SED" --version 2>&1` in
47624 *GNU*)
47625   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
47626 *)
47627   ac_count=0
47628   $as_echo_n 0123456789 >"conftest.in"
47629   while :
47630   do
47631     cat "conftest.in" "conftest.in" >"conftest.tmp"
47632     mv "conftest.tmp" "conftest.in"
47633     cp "conftest.in" "conftest.nl"
47634     $as_echo '' >> "conftest.nl"
47635     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
47636     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
47637     as_fn_arith $ac_count + 1 && ac_count=$as_val
47638     if test $ac_count -gt ${ac_path_SED_max-0}; then
47639       # Best one so far, save it but keep looking for a better one
47640       ac_cv_path_SED="$ac_path_SED"
47641       ac_path_SED_max=$ac_count
47642     fi
47643     # 10*(2^10) chars as input seems more than enough
47644     test $ac_count -gt 10 && break
47645   done
47646   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
47647 esac
47648
47649       $ac_path_SED_found && break 3
47650     done
47651   done
47652   done
47653 IFS=$as_save_IFS
47654   if test -z "$ac_cv_path_SED"; then
47655     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
47656   fi
47657 else
47658   ac_cv_path_SED=$SED
47659 fi
47660
47661 fi
47662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
47663 $as_echo "$ac_cv_path_SED" >&6; }
47664  SED="$ac_cv_path_SED"
47665   rm -f conftest.sed
47666
47667   while :
47668   do
47669       POSIX_SHELL=`which bash`
47670       test -x "$POSIX_SHELL" && break
47671       POSIX_SHELL=`which dash`
47672       test -x "$POSIX_SHELL" && break
47673       POSIX_SHELL=/usr/xpg4/bin/sh
47674       test -x "$POSIX_SHELL" && break
47675       POSIX_SHELL=`/bin/sh -c '
47676           exec 2>/dev/null
47677           if ! true ; then exit 1 ; fi
47678           echo /bin/sh'`
47679       test -x "$POSIX_SHELL" && break
47680       as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
47681   done
47682
47683 cat >>confdefs.h <<_ACEOF
47684 #define POSIX_SHELL "${POSIX_SHELL}"
47685 _ACEOF
47686
47687
47688
47689
47690
47691   LIBOPTS_BUILD_BLOCKED=''
47692
47693
47694   NEED_LIBOPTS_DIR=''
47695
47696   # Check whether --enable-local-libopts was given.
47697 if test "${enable_local_libopts+set}" = set; then :
47698   enableval=$enable_local_libopts;
47699     if test x$enableval = xyes ; then
47700        { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
47701 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
47702        LIBOPTS_CFLAGS='-I$(top_srcdir)/src/libopts'
47703        NEED_LIBOPTS_DIR=true
47704        LIBOPTS_LDADD='$(top_builddir)/src/libopts/libopts.la'
47705     fi
47706 fi
47707
47708
47709   # Check whether --enable-libopts-install was given.
47710 if test "${enable_libopts_install+set}" = set; then :
47711   enableval=$enable_libopts_install;
47712 fi
47713
47714    if test "X${enable_libopts_install}" = Xyes; then
47715   INSTALL_LIBOPTS_TRUE=
47716   INSTALL_LIBOPTS_FALSE='#'
47717 else
47718   INSTALL_LIBOPTS_TRUE='#'
47719   INSTALL_LIBOPTS_FALSE=
47720 fi
47721
47722
47723   if test -z "${NEED_LIBOPTS_DIR}" ; then
47724      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
47725 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
47726
47727 # Check whether --with-autoopts-config was given.
47728 if test "${with_autoopts_config+set}" = set; then :
47729   withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
47730 else
47731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
47732 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
47733 if ${lo_cv_with_autoopts_config+:} false; then :
47734   $as_echo_n "(cached) " >&6
47735 else
47736   if autoopts-config --help 2>/dev/null 1>&2
47737         then lo_cv_with_autoopts_config=autoopts-config
47738         elif libopts-config --help 2>/dev/null 1>&2
47739         then lo_cv_with_autoopts_config=libopts-config
47740         else lo_cv_with_autoopts_config=no ; fi
47741 fi
47742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
47743 $as_echo "$lo_cv_with_autoopts_config" >&6; }
47744
47745 fi
47746  # end of AC_ARG_WITH
47747
47748      if ${lo_cv_test_autoopts+:} false; then :
47749   $as_echo_n "(cached) " >&6
47750 else
47751
47752         if test -z "${lo_cv_with_autoopts_config}" \
47753                 -o X"${lo_cv_with_autoopts_config}" = Xno
47754         then
47755            if autoopts-config --help 2>/dev/null 1>&2
47756            then lo_cv_with_autoopts_config=autoopts-config
47757            elif libopts-config --help 2>/dev/null 1>&2
47758            then lo_cv_with_autoopts_config=libopts-config
47759            else lo_cv_with_autoopts_config=false ; fi
47760         fi
47761         lo_cv_test_autoopts=`
47762             ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
47763         if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
47764         then lo_cv_test_autoopts=no ; fi
47765
47766 fi
47767  # end of CACHE_VAL
47768      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
47769 $as_echo "${lo_cv_test_autoopts}" >&6; }
47770
47771      if test "X${lo_cv_test_autoopts}" != Xno
47772      then
47773         LIBOPTS_LDADD="${lo_cv_test_autoopts}"
47774         LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
47775      else
47776         LIBOPTS_LDADD='$(top_builddir)/src/libopts/libopts.la'
47777         LIBOPTS_CFLAGS='-I$(top_srcdir)/src/libopts'
47778         NEED_LIBOPTS_DIR=true
47779      fi
47780   fi # end of if test -z "${NEED_LIBOPTS_DIR}"
47781   if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
47782     NEED_LIBOPTS_DIR=''
47783   fi
47784    if test -n "${NEED_LIBOPTS_DIR}"; then
47785   NEED_LIBOPTS_TRUE=
47786   NEED_LIBOPTS_FALSE='#'
47787 else
47788   NEED_LIBOPTS_TRUE='#'
47789   NEED_LIBOPTS_FALSE=
47790 fi
47791
47792
47793
47794   LIBOPTS_DIR=src/libopts
47795
47796
47797 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
47798
47799
47800     if test -z "$NEED_LIBOPTS_TRUE"; then :
47801
47802
47803
47804   # Check to see if a reg expr header is specified.
47805
47806
47807 # Check whether --with-regex-header was given.
47808 if test "${with_regex_header+set}" = set; then :
47809   withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
47810 else
47811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
47812 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
47813 if ${libopts_cv_with_regex_header+:} false; then :
47814   $as_echo_n "(cached) " >&6
47815 else
47816   libopts_cv_with_regex_header=no
47817 fi
47818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
47819 $as_echo "$libopts_cv_with_regex_header" >&6; }
47820
47821 fi
47822  # end of AC_ARG_WITH
47823   if test "X${libopts_cv_with_regex_header}" != Xno
47824   then
47825     cat >>confdefs.h <<_ACEOF
47826 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
47827 _ACEOF
47828
47829   else
47830
47831 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
47832
47833   fi
47834
47835
47836
47837   # Check to see if a working libregex can be found.
47838
47839
47840 # Check whether --with-libregex was given.
47841 if test "${with_libregex+set}" = set; then :
47842   withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
47843 else
47844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
47845 $as_echo_n "checking whether with-libregex was specified... " >&6; }
47846 if ${libopts_cv_with_libregex_root+:} false; then :
47847   $as_echo_n "(cached) " >&6
47848 else
47849   libopts_cv_with_libregex_root=no
47850 fi
47851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
47852 $as_echo "$libopts_cv_with_libregex_root" >&6; }
47853
47854 fi
47855  # end of AC_ARG_WITH libregex
47856
47857   if test "${with_libregex+set}" = set && \
47858      test "X${withval}" = Xno
47859   then ## disabled by request
47860     libopts_cv_with_libregex_root=no
47861     libopts_cv_with_libregex_cflags=no
47862     libopts_cv_with_libregex_libs=no
47863   else
47864
47865
47866 # Check whether --with-libregex-cflags was given.
47867 if test "${with_libregex_cflags+set}" = set; then :
47868   withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
47869 else
47870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
47871 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
47872 if ${libopts_cv_with_libregex_cflags+:} false; then :
47873   $as_echo_n "(cached) " >&6
47874 else
47875   libopts_cv_with_libregex_cflags=no
47876 fi
47877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
47878 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
47879
47880 fi
47881  # end of AC_ARG_WITH libregex-cflags
47882
47883
47884 # Check whether --with-libregex-libs was given.
47885 if test "${with_libregex_libs+set}" = set; then :
47886   withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
47887 else
47888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
47889 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
47890 if ${libopts_cv_with_libregex_libs+:} false; then :
47891   $as_echo_n "(cached) " >&6
47892 else
47893   libopts_cv_with_libregex_libs=no
47894 fi
47895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
47896 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
47897
47898 fi
47899  # end of AC_ARG_WITH libregex-libs
47900
47901   case "X${libopts_cv_with_libregex_cflags}" in
47902   Xyes|Xno|X )
47903     case "X${libopts_cv_with_libregex_root}" in
47904     Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
47905     * )        libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
47906     esac
47907   esac
47908   case "X${libopts_cv_with_libregex_libs}" in
47909   Xyes|Xno|X )
47910     case "X${libopts_cv_with_libregex_root}" in
47911     Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
47912     * )        libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
47913     esac
47914   esac
47915   libopts_save_CPPFLAGS="${CPPFLAGS}"
47916   libopts_save_LIBS="${LIBS}"
47917   case "X${libopts_cv_with_libregex_cflags}" in
47918   Xyes|Xno|X )
47919     libopts_cv_with_libregex_cflags="" ;;
47920   * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
47921   esac
47922   case "X${libopts_cv_with_libregex_libs}" in
47923   Xyes|Xno|X )
47924     libopts_cv_with_libregex_libs="" ;;
47925   * )
47926     LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
47927   esac
47928   LIBREGEX_CFLAGS=""
47929   LIBREGEX_LIBS=""
47930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
47931 $as_echo_n "checking whether libregex functions properly... " >&6; }
47932   if ${libopts_cv_with_libregex+:} false; then :
47933   $as_echo_n "(cached) " >&6
47934 else
47935
47936   if test "$cross_compiling" = yes; then :
47937   libopts_cv_with_libregex=no
47938 else
47939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47940 /* end confdefs.h.  */
47941 #include <stdio.h>
47942 #include <stdlib.h>
47943 #include <sys/types.h>
47944 #include REGEX_HEADER
47945 static regex_t re;
47946 void comp_re( char const* pzPat ) {
47947   int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
47948   if (res == 0) return;
47949   exit( res ); }
47950 int main() {
47951   regmatch_t m[2];
47952   comp_re( "^.*\$"   );
47953   comp_re( "()|no.*" );
47954   comp_re( "."       );
47955   if (regexec( &re, "X", 2, m, 0 ) != 0)  return 1;
47956   if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
47957     fputs( "error: regex -->.<-- did not match\n", stderr );
47958     return 1;
47959   }
47960   return 0; }
47961 _ACEOF
47962 if ac_fn_c_try_run "$LINENO"; then :
47963   libopts_cv_with_libregex=yes
47964 else
47965   libopts_cv_with_libregex=no
47966 fi
47967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47968   conftest.$ac_objext conftest.beam conftest.$ac_ext
47969 fi
47970  # end of AC_RUN_IFELSE
47971
47972 fi
47973  # end of AC_CACHE_VAL for libopts_cv_with_libregex
47974   fi ## disabled by request
47975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
47976 $as_echo "${libopts_cv_with_libregex}" >&6; }
47977   if test "X${libopts_cv_with_libregex}" != Xno
47978   then
47979
47980 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
47981
47982   else
47983     CPPFLAGS="${libopts_save_CPPFLAGS}"
47984     LIBS="${libopts_save_LIBS}"
47985     libopts_cv_with_libregex_root=no
47986 libopts_cv_with_libregex_cflags=no
47987 libopts_cv_with_libregex_libs=no
47988 libopts_cv_with_libregex=no
47989   fi
47990
47991
47992
47993   # Check to see if pathfind(3) works.
47994
47995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
47996 $as_echo_n "checking whether pathfind(3) works... " >&6; }
47997   if ${libopts_cv_run_pathfind+:} false; then :
47998   $as_echo_n "(cached) " >&6
47999 else
48000
48001   if test "$cross_compiling" = yes; then :
48002   libopts_cv_run_pathfind=no
48003
48004 else
48005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48006 /* end confdefs.h.  */
48007 #include <string.h>
48008 #include <stdlib.h>
48009 int main (int argc, char** argv) {
48010    char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
48011    return (pz == 0) ? 1 : 0;
48012 }
48013 _ACEOF
48014 if ac_fn_c_try_run "$LINENO"; then :
48015   libopts_cv_run_pathfind=yes
48016 else
48017   libopts_cv_run_pathfind=no
48018 fi
48019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48020   conftest.$ac_objext conftest.beam conftest.$ac_ext
48021 fi
48022  # end of RUN_IFELSE
48023
48024 fi
48025  # end of AC_CACHE_VAL for libopts_cv_run_pathfind
48026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
48027 $as_echo "${libopts_cv_run_pathfind}" >&6; }
48028   if test "X${libopts_cv_run_pathfind}" != Xno
48029   then
48030
48031 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
48032
48033   fi
48034
48035
48036
48037   # Check to see if /dev/zero is readable device.
48038
48039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
48040 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
48041   if ${libopts_cv_test_dev_zero+:} false; then :
48042   $as_echo_n "(cached) " >&6
48043 else
48044
48045     libopts_cv_test_dev_zero=`exec 2> /dev/null
48046 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
48047 test -z "${dzero}" && exit 1
48048 echo ${dzero}`
48049     if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
48050     then libopts_cv_test_dev_zero=no
48051     fi
48052
48053 fi
48054  # end of CACHE_VAL of libopts_cv_test_dev_zero
48055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
48056 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
48057   if test "X${libopts_cv_test_dev_zero}" != Xno
48058   then
48059
48060 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
48061
48062   fi
48063
48064
48065
48066   # Check to see if we have a functional realpath(3C).
48067
48068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
48069 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
48070   if ${libopts_cv_run_realpath+:} false; then :
48071   $as_echo_n "(cached) " >&6
48072 else
48073
48074   if test "$cross_compiling" = yes; then :
48075   libopts_cv_run_realpath=no
48076
48077 else
48078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48079 /* end confdefs.h.  */
48080 #include <limits.h>
48081 #include <stdlib.h>
48082 int main (int argc, char** argv) {
48083 #ifndef PATH_MAX
48084 choke me!!
48085 #else
48086    char zPath[PATH_MAX+1];
48087 #endif
48088    char *pz = realpath(argv[0], zPath);
48089    return (pz == zPath) ? 0 : 1;
48090 }
48091 _ACEOF
48092 if ac_fn_c_try_run "$LINENO"; then :
48093   libopts_cv_run_realpath=yes
48094 else
48095   libopts_cv_run_realpath=no
48096 fi
48097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48098   conftest.$ac_objext conftest.beam conftest.$ac_ext
48099 fi
48100  # end of RUN_IFELSE
48101
48102 fi
48103  # end of AC_CACHE_VAL for libopts_cv_run_realpath
48104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
48105 $as_echo "${libopts_cv_run_realpath}" >&6; }
48106   if test "X${libopts_cv_run_realpath}" != Xno
48107   then
48108
48109 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
48110
48111   fi
48112
48113
48114
48115   # Check to see if strftime() works.
48116
48117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
48118 $as_echo_n "checking whether strftime() works... " >&6; }
48119   if ${libopts_cv_run_strftime+:} false; then :
48120   $as_echo_n "(cached) " >&6
48121 else
48122
48123   if test "$cross_compiling" = yes; then :
48124   libopts_cv_run_strftime=no
48125
48126 else
48127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48128 /* end confdefs.h.  */
48129 #include <time.h>
48130 #include <string.h>
48131 char t_buf[ 64 ];
48132 int main() {
48133   static char const z[] = "Thursday Aug 28 240";
48134   struct tm tm;
48135   tm.tm_sec   = 36;  /* seconds after the minute [0, 61]  */
48136   tm.tm_min   = 44;  /* minutes after the hour [0, 59] */
48137   tm.tm_hour  = 12;  /* hour since midnight [0, 23] */
48138   tm.tm_mday  = 28;  /* day of the month [1, 31] */
48139   tm.tm_mon   =  7;  /* months since January [0, 11] */
48140   tm.tm_year  = 86;  /* years since 1900 */
48141   tm.tm_wday  =  4;  /* days since Sunday [0, 6] */
48142   tm.tm_yday  = 239; /* days since January 1 [0, 365] */
48143   tm.tm_isdst =  1;  /* flag for daylight savings time */
48144   strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
48145   return (strcmp( t_buf, z ) != 0); }
48146 _ACEOF
48147 if ac_fn_c_try_run "$LINENO"; then :
48148   libopts_cv_run_strftime=yes
48149 else
48150   libopts_cv_run_strftime=no
48151 fi
48152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48153   conftest.$ac_objext conftest.beam conftest.$ac_ext
48154 fi
48155  # end of RUN_IFELSE
48156
48157 fi
48158  # end of AC_CACHE_VAL for libopts_cv_run_strftime
48159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
48160 $as_echo "${libopts_cv_run_strftime}" >&6; }
48161   if test "X${libopts_cv_run_strftime}" != Xno
48162   then
48163
48164 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
48165
48166   fi
48167
48168
48169
48170   # Check to see if fopen accepts "b" mode.
48171
48172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
48173 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
48174   if ${libopts_cv_run_fopen_binary+:} false; then :
48175   $as_echo_n "(cached) " >&6
48176 else
48177
48178   if test "$cross_compiling" = yes; then :
48179   libopts_cv_run_fopen_binary=no
48180
48181 else
48182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48183 /* end confdefs.h.  */
48184 #include <stdio.h>
48185 int main (int argc, char** argv) {
48186 FILE* fp = fopen("conftest.$ac_ext", "rb");
48187 return (fp == NULL) ? 1 : fclose(fp); }
48188 _ACEOF
48189 if ac_fn_c_try_run "$LINENO"; then :
48190   libopts_cv_run_fopen_binary=yes
48191 else
48192   libopts_cv_run_fopen_binary=no
48193 fi
48194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48195   conftest.$ac_objext conftest.beam conftest.$ac_ext
48196 fi
48197  # end of RUN_IFELSE
48198
48199 fi
48200  # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
48201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
48202 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
48203   if test "X${libopts_cv_run_fopen_binary}" != Xno
48204   then
48205
48206 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
48207
48208   else
48209
48210 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
48211
48212   fi
48213
48214
48215
48216   # Check to see if fopen accepts "t" mode.
48217
48218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
48219 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
48220   if ${libopts_cv_run_fopen_text+:} false; then :
48221   $as_echo_n "(cached) " >&6
48222 else
48223
48224   if test "$cross_compiling" = yes; then :
48225   libopts_cv_run_fopen_text=no
48226
48227 else
48228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48229 /* end confdefs.h.  */
48230 #include <stdio.h>
48231 int main (int argc, char** argv) {
48232 FILE* fp = fopen("conftest.$ac_ext", "rt");
48233 return (fp == NULL) ? 1 : fclose(fp); }
48234 _ACEOF
48235 if ac_fn_c_try_run "$LINENO"; then :
48236   libopts_cv_run_fopen_text=yes
48237 else
48238   libopts_cv_run_fopen_text=no
48239 fi
48240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48241   conftest.$ac_objext conftest.beam conftest.$ac_ext
48242 fi
48243  # end of RUN_IFELSE
48244
48245 fi
48246  # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
48247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
48248 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
48249   if test "X${libopts_cv_run_fopen_text}" != Xno
48250   then
48251
48252 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
48253
48254   else
48255
48256 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
48257
48258   fi
48259
48260
48261
48262   # Check to see if not wanting optional option args.
48263
48264   # Check whether --enable-optional-args was given.
48265 if test "${enable_optional_args+set}" = set; then :
48266   enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
48267 else
48268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
48269 $as_echo_n "checking whether not wanting optional option args... " >&6; }
48270 if ${libopts_cv_enable_optional_args+:} false; then :
48271   $as_echo_n "(cached) " >&6
48272 else
48273   libopts_cv_enable_optional_args=yes
48274 fi
48275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
48276 $as_echo "$libopts_cv_enable_optional_args" >&6; }
48277
48278 fi
48279  # end of AC_ARG_ENABLE
48280   if test "X${libopts_cv_enable_optional_args}" = Xno
48281   then
48282
48283 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
48284
48285   fi
48286
48287
48288
48289
48290
48291           fi
48292   ac_config_files="$ac_config_files src/libopts/Makefile"
48293
48294   # end of AC_DEFUN of LIBOPTS_CHECK
48295
48296 if test "$NEED_LIBOPTS_DIR" = "true";then
48297                 missing_baks=
48298         for i in ${srcdir}/src/*-args.c.bak ${srcdir}/src/*-args.h.bak; do
48299                 nam=`echo $i|sed 's/.bak//g'`
48300                 if test -f $i;then
48301                         cp -f $i $nam
48302                 else
48303                         missing_baks=true
48304                 fi
48305         done
48306         if test -z "$missing_baks"; then
48307                 AUTOGEN=/bin/true
48308
48309         fi
48310         enable_local_libopts=yes
48311 else
48312         enable_local_libopts=no
48313 fi
48314  if test "$enable_local_libopts" = "yes"; then
48315   NEED_LIBOPTS_TRUE=
48316   NEED_LIBOPTS_FALSE='#'
48317 else
48318   NEED_LIBOPTS_TRUE='#'
48319   NEED_LIBOPTS_FALSE=
48320 fi
48321
48322
48323 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "
48324     #include <sys/types.h>
48325
48326 "
48327 if test "x$ac_cv_type_ssize_t" = xyes; then :
48328
48329     DEFINE_SSIZE_T="#include <sys/types.h>"
48330
48331
48332 else
48333
48334
48335 $as_echo "#define NO_SSIZE_T 1" >>confdefs.h
48336
48337     DEFINE_SSIZE_T="typedef int ssize_t;"
48338
48339
48340 fi
48341
48342
48343 # For minitasn1.
48344 # The cast to long int works around a bug in the HP C Compiler
48345 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48346 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48347 # This bug is HP SR number 8606223364.
48348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
48349 $as_echo_n "checking size of unsigned long int... " >&6; }
48350 if ${ac_cv_sizeof_unsigned_long_int+:} false; then :
48351   $as_echo_n "(cached) " >&6
48352 else
48353   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int"        "$ac_includes_default"; then :
48354
48355 else
48356   if test "$ac_cv_type_unsigned_long_int" = yes; then
48357      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
48358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
48359 as_fn_error 77 "cannot compute sizeof (unsigned long int)
48360 See \`config.log' for more details" "$LINENO" 5; }
48361    else
48362      ac_cv_sizeof_unsigned_long_int=0
48363    fi
48364 fi
48365
48366 fi
48367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
48368 $as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
48369
48370
48371
48372 cat >>confdefs.h <<_ACEOF
48373 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
48374 _ACEOF
48375
48376
48377 # The cast to long int works around a bug in the HP C Compiler
48378 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48379 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48380 # This bug is HP SR number 8606223364.
48381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
48382 $as_echo_n "checking size of unsigned int... " >&6; }
48383 if ${ac_cv_sizeof_unsigned_int+:} false; then :
48384   $as_echo_n "(cached) " >&6
48385 else
48386   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
48387
48388 else
48389   if test "$ac_cv_type_unsigned_int" = yes; then
48390      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
48391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
48392 as_fn_error 77 "cannot compute sizeof (unsigned int)
48393 See \`config.log' for more details" "$LINENO" 5; }
48394    else
48395      ac_cv_sizeof_unsigned_int=0
48396    fi
48397 fi
48398
48399 fi
48400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
48401 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
48402
48403
48404
48405 cat >>confdefs.h <<_ACEOF
48406 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
48407 _ACEOF
48408
48409
48410
48411
48412 # Check whether --with-zlib was given.
48413 if test "${with_zlib+set}" = set; then :
48414   withval=$with_zlib; ac_zlib=$withval
48415 else
48416   ac_zlib=yes
48417 fi
48418
48419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include zlib compression support" >&5
48420 $as_echo_n "checking whether to include zlib compression support... " >&6; }
48421 if test x$ac_zlib != xno; then
48422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48423 $as_echo "yes" >&6; }
48424
48425
48426
48427
48428
48429
48430
48431
48432
48433
48434
48435
48436
48437     use_additional=yes
48438
48439   acl_save_prefix="$prefix"
48440   prefix="$acl_final_prefix"
48441   acl_save_exec_prefix="$exec_prefix"
48442   exec_prefix="$acl_final_exec_prefix"
48443
48444     eval additional_includedir=\"$includedir\"
48445     eval additional_libdir=\"$libdir\"
48446
48447   exec_prefix="$acl_save_exec_prefix"
48448   prefix="$acl_save_prefix"
48449
48450
48451 # Check whether --with-libz-prefix was given.
48452 if test "${with_libz_prefix+set}" = set; then :
48453   withval=$with_libz_prefix;
48454     if test "X$withval" = "Xno"; then
48455       use_additional=no
48456     else
48457       if test "X$withval" = "X"; then
48458
48459   acl_save_prefix="$prefix"
48460   prefix="$acl_final_prefix"
48461   acl_save_exec_prefix="$exec_prefix"
48462   exec_prefix="$acl_final_exec_prefix"
48463
48464           eval additional_includedir=\"$includedir\"
48465           eval additional_libdir=\"$libdir\"
48466
48467   exec_prefix="$acl_save_exec_prefix"
48468   prefix="$acl_save_prefix"
48469
48470       else
48471         additional_includedir="$withval/include"
48472         additional_libdir="$withval/$acl_libdirstem"
48473         if test "$acl_libdirstem2" != "$acl_libdirstem" \
48474            && ! test -d "$withval/$acl_libdirstem"; then
48475           additional_libdir="$withval/$acl_libdirstem2"
48476         fi
48477       fi
48478     fi
48479
48480 fi
48481
48482       LIBZ=
48483   LTLIBZ=
48484   INCZ=
48485   LIBZ_PREFIX=
48486       HAVE_LIBZ=
48487   rpathdirs=
48488   ltrpathdirs=
48489   names_already_handled=
48490   names_next_round='z '
48491   while test -n "$names_next_round"; do
48492     names_this_round="$names_next_round"
48493     names_next_round=
48494     for name in $names_this_round; do
48495       already_handled=
48496       for n in $names_already_handled; do
48497         if test "$n" = "$name"; then
48498           already_handled=yes
48499           break
48500         fi
48501       done
48502       if test -z "$already_handled"; then
48503         names_already_handled="$names_already_handled $name"
48504                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
48505         eval value=\"\$HAVE_LIB$uppername\"
48506         if test -n "$value"; then
48507           if test "$value" = yes; then
48508             eval value=\"\$LIB$uppername\"
48509             test -z "$value" || LIBZ="${LIBZ}${LIBZ:+ }$value"
48510             eval value=\"\$LTLIB$uppername\"
48511             test -z "$value" || LTLIBZ="${LTLIBZ}${LTLIBZ:+ }$value"
48512           else
48513                                     :
48514           fi
48515         else
48516                               found_dir=
48517           found_la=
48518           found_so=
48519           found_a=
48520           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
48521           if test -n "$acl_shlibext"; then
48522             shrext=".$acl_shlibext"             # typically: shrext=.so
48523           else
48524             shrext=
48525           fi
48526           if test $use_additional = yes; then
48527             dir="$additional_libdir"
48528                                     if test -n "$acl_shlibext"; then
48529               if test -f "$dir/$libname$shrext"; then
48530                 found_dir="$dir"
48531                 found_so="$dir/$libname$shrext"
48532               else
48533                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
48534                   ver=`(cd "$dir" && \
48535                         for f in "$libname$shrext".*; do echo "$f"; done \
48536                         | sed -e "s,^$libname$shrext\\\\.,," \
48537                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
48538                         | sed 1q ) 2>/dev/null`
48539                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
48540                     found_dir="$dir"
48541                     found_so="$dir/$libname$shrext.$ver"
48542                   fi
48543                 else
48544                   eval library_names=\"$acl_library_names_spec\"
48545                   for f in $library_names; do
48546                     if test -f "$dir/$f"; then
48547                       found_dir="$dir"
48548                       found_so="$dir/$f"
48549                       break
48550                     fi
48551                   done
48552                 fi
48553               fi
48554             fi
48555                         if test "X$found_dir" = "X"; then
48556               if test -f "$dir/$libname.$acl_libext"; then
48557                 found_dir="$dir"
48558                 found_a="$dir/$libname.$acl_libext"
48559               fi
48560             fi
48561             if test "X$found_dir" != "X"; then
48562               if test -f "$dir/$libname.la"; then
48563                 found_la="$dir/$libname.la"
48564               fi
48565             fi
48566           fi
48567           if test "X$found_dir" = "X"; then
48568             for x in $LDFLAGS $LTLIBZ; do
48569
48570   acl_save_prefix="$prefix"
48571   prefix="$acl_final_prefix"
48572   acl_save_exec_prefix="$exec_prefix"
48573   exec_prefix="$acl_final_exec_prefix"
48574   eval x=\"$x\"
48575   exec_prefix="$acl_save_exec_prefix"
48576   prefix="$acl_save_prefix"
48577
48578               case "$x" in
48579                 -L*)
48580                   dir=`echo "X$x" | sed -e 's/^X-L//'`
48581                                     if test -n "$acl_shlibext"; then
48582                     if test -f "$dir/$libname$shrext"; then
48583                       found_dir="$dir"
48584                       found_so="$dir/$libname$shrext"
48585                     else
48586                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
48587                         ver=`(cd "$dir" && \
48588                               for f in "$libname$shrext".*; do echo "$f"; done \
48589                               | sed -e "s,^$libname$shrext\\\\.,," \
48590                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
48591                               | sed 1q ) 2>/dev/null`
48592                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
48593                           found_dir="$dir"
48594                           found_so="$dir/$libname$shrext.$ver"
48595                         fi
48596                       else
48597                         eval library_names=\"$acl_library_names_spec\"
48598                         for f in $library_names; do
48599                           if test -f "$dir/$f"; then
48600                             found_dir="$dir"
48601                             found_so="$dir/$f"
48602                             break
48603                           fi
48604                         done
48605                       fi
48606                     fi
48607                   fi
48608                                     if test "X$found_dir" = "X"; then
48609                     if test -f "$dir/$libname.$acl_libext"; then
48610                       found_dir="$dir"
48611                       found_a="$dir/$libname.$acl_libext"
48612                     fi
48613                   fi
48614                   if test "X$found_dir" != "X"; then
48615                     if test -f "$dir/$libname.la"; then
48616                       found_la="$dir/$libname.la"
48617                     fi
48618                   fi
48619                   ;;
48620               esac
48621               if test "X$found_dir" != "X"; then
48622                 break
48623               fi
48624             done
48625           fi
48626           if test "X$found_dir" != "X"; then
48627                         LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-L$found_dir -l$name"
48628             if test "X$found_so" != "X"; then
48629                                                         if test "$enable_rpath" = no \
48630                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
48631                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
48632                                 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
48633               else
48634                                                                                 haveit=
48635                 for x in $ltrpathdirs; do
48636                   if test "X$x" = "X$found_dir"; then
48637                     haveit=yes
48638                     break
48639                   fi
48640                 done
48641                 if test -z "$haveit"; then
48642                   ltrpathdirs="$ltrpathdirs $found_dir"
48643                 fi
48644                                 if test "$acl_hardcode_direct" = yes; then
48645                                                       LIBZ="${LIBZ}${LIBZ:+ }$found_so"
48646                 else
48647                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
48648                                                             LIBZ="${LIBZ}${LIBZ:+ }$found_so"
48649                                                             haveit=
48650                     for x in $rpathdirs; do
48651                       if test "X$x" = "X$found_dir"; then
48652                         haveit=yes
48653                         break
48654                       fi
48655                     done
48656                     if test -z "$haveit"; then
48657                       rpathdirs="$rpathdirs $found_dir"
48658                     fi
48659                   else
48660                                                                                 haveit=
48661                     for x in $LDFLAGS $LIBZ; do
48662
48663   acl_save_prefix="$prefix"
48664   prefix="$acl_final_prefix"
48665   acl_save_exec_prefix="$exec_prefix"
48666   exec_prefix="$acl_final_exec_prefix"
48667   eval x=\"$x\"
48668   exec_prefix="$acl_save_exec_prefix"
48669   prefix="$acl_save_prefix"
48670
48671                       if test "X$x" = "X-L$found_dir"; then
48672                         haveit=yes
48673                         break
48674                       fi
48675                     done
48676                     if test -z "$haveit"; then
48677                       LIBZ="${LIBZ}${LIBZ:+ }-L$found_dir"
48678                     fi
48679                     if test "$acl_hardcode_minus_L" != no; then
48680                                                                                         LIBZ="${LIBZ}${LIBZ:+ }$found_so"
48681                     else
48682                                                                                                                                                                                 LIBZ="${LIBZ}${LIBZ:+ }-l$name"
48683                     fi
48684                   fi
48685                 fi
48686               fi
48687             else
48688               if test "X$found_a" != "X"; then
48689                                 LIBZ="${LIBZ}${LIBZ:+ }$found_a"
48690               else
48691                                                 LIBZ="${LIBZ}${LIBZ:+ }-L$found_dir -l$name"
48692               fi
48693             fi
48694                         additional_includedir=
48695             case "$found_dir" in
48696               */$acl_libdirstem | */$acl_libdirstem/)
48697                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
48698                 if test "$name" = 'z'; then
48699                   LIBZ_PREFIX="$basedir"
48700                 fi
48701                 additional_includedir="$basedir/include"
48702                 ;;
48703               */$acl_libdirstem2 | */$acl_libdirstem2/)
48704                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
48705                 if test "$name" = 'z'; then
48706                   LIBZ_PREFIX="$basedir"
48707                 fi
48708                 additional_includedir="$basedir/include"
48709                 ;;
48710             esac
48711             if test "X$additional_includedir" != "X"; then
48712                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
48713                 haveit=
48714                 if test "X$additional_includedir" = "X/usr/local/include"; then
48715                   if test -n "$GCC"; then
48716                     case $host_os in
48717                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
48718                     esac
48719                   fi
48720                 fi
48721                 if test -z "$haveit"; then
48722                   for x in $CPPFLAGS $INCZ; do
48723
48724   acl_save_prefix="$prefix"
48725   prefix="$acl_final_prefix"
48726   acl_save_exec_prefix="$exec_prefix"
48727   exec_prefix="$acl_final_exec_prefix"
48728   eval x=\"$x\"
48729   exec_prefix="$acl_save_exec_prefix"
48730   prefix="$acl_save_prefix"
48731
48732                     if test "X$x" = "X-I$additional_includedir"; then
48733                       haveit=yes
48734                       break
48735                     fi
48736                   done
48737                   if test -z "$haveit"; then
48738                     if test -d "$additional_includedir"; then
48739                                             INCZ="${INCZ}${INCZ:+ }-I$additional_includedir"
48740                     fi
48741                   fi
48742                 fi
48743               fi
48744             fi
48745                         if test -n "$found_la"; then
48746                                                         save_libdir="$libdir"
48747               case "$found_la" in
48748                 */* | *\\*) . "$found_la" ;;
48749                 *) . "./$found_la" ;;
48750               esac
48751               libdir="$save_libdir"
48752                             for dep in $dependency_libs; do
48753                 case "$dep" in
48754                   -L*)
48755                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
48756                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
48757                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
48758                       haveit=
48759                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
48760                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
48761                         if test -n "$GCC"; then
48762                           case $host_os in
48763                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
48764                           esac
48765                         fi
48766                       fi
48767                       if test -z "$haveit"; then
48768                         haveit=
48769                         for x in $LDFLAGS $LIBZ; do
48770
48771   acl_save_prefix="$prefix"
48772   prefix="$acl_final_prefix"
48773   acl_save_exec_prefix="$exec_prefix"
48774   exec_prefix="$acl_final_exec_prefix"
48775   eval x=\"$x\"
48776   exec_prefix="$acl_save_exec_prefix"
48777   prefix="$acl_save_prefix"
48778
48779                           if test "X$x" = "X-L$additional_libdir"; then
48780                             haveit=yes
48781                             break
48782                           fi
48783                         done
48784                         if test -z "$haveit"; then
48785                           if test -d "$additional_libdir"; then
48786                                                         LIBZ="${LIBZ}${LIBZ:+ }-L$additional_libdir"
48787                           fi
48788                         fi
48789                         haveit=
48790                         for x in $LDFLAGS $LTLIBZ; do
48791
48792   acl_save_prefix="$prefix"
48793   prefix="$acl_final_prefix"
48794   acl_save_exec_prefix="$exec_prefix"
48795   exec_prefix="$acl_final_exec_prefix"
48796   eval x=\"$x\"
48797   exec_prefix="$acl_save_exec_prefix"
48798   prefix="$acl_save_prefix"
48799
48800                           if test "X$x" = "X-L$additional_libdir"; then
48801                             haveit=yes
48802                             break
48803                           fi
48804                         done
48805                         if test -z "$haveit"; then
48806                           if test -d "$additional_libdir"; then
48807                                                         LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-L$additional_libdir"
48808                           fi
48809                         fi
48810                       fi
48811                     fi
48812                     ;;
48813                   -R*)
48814                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
48815                     if test "$enable_rpath" != no; then
48816                                                                   haveit=
48817                       for x in $rpathdirs; do
48818                         if test "X$x" = "X$dir"; then
48819                           haveit=yes
48820                           break
48821                         fi
48822                       done
48823                       if test -z "$haveit"; then
48824                         rpathdirs="$rpathdirs $dir"
48825                       fi
48826                                                                   haveit=
48827                       for x in $ltrpathdirs; do
48828                         if test "X$x" = "X$dir"; then
48829                           haveit=yes
48830                           break
48831                         fi
48832                       done
48833                       if test -z "$haveit"; then
48834                         ltrpathdirs="$ltrpathdirs $dir"
48835                       fi
48836                     fi
48837                     ;;
48838                   -l*)
48839                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
48840                     ;;
48841                   *.la)
48842                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
48843                     ;;
48844                   *)
48845                                         LIBZ="${LIBZ}${LIBZ:+ }$dep"
48846                     LTLIBZ="${LTLIBZ}${LTLIBZ:+ }$dep"
48847                     ;;
48848                 esac
48849               done
48850             fi
48851           else
48852                                                             LIBZ="${LIBZ}${LIBZ:+ }-l$name"
48853             LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-l$name"
48854           fi
48855         fi
48856       fi
48857     done
48858   done
48859   if test "X$rpathdirs" != "X"; then
48860     if test -n "$acl_hardcode_libdir_separator"; then
48861                         alldirs=
48862       for found_dir in $rpathdirs; do
48863         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
48864       done
48865             acl_save_libdir="$libdir"
48866       libdir="$alldirs"
48867       eval flag=\"$acl_hardcode_libdir_flag_spec\"
48868       libdir="$acl_save_libdir"
48869       LIBZ="${LIBZ}${LIBZ:+ }$flag"
48870     else
48871             for found_dir in $rpathdirs; do
48872         acl_save_libdir="$libdir"
48873         libdir="$found_dir"
48874         eval flag=\"$acl_hardcode_libdir_flag_spec\"
48875         libdir="$acl_save_libdir"
48876         LIBZ="${LIBZ}${LIBZ:+ }$flag"
48877       done
48878     fi
48879   fi
48880   if test "X$ltrpathdirs" != "X"; then
48881             for found_dir in $ltrpathdirs; do
48882       LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-R$found_dir"
48883     done
48884   fi
48885
48886
48887
48888
48889
48890
48891
48892         ac_save_CPPFLAGS="$CPPFLAGS"
48893
48894   for element in $INCZ; do
48895     haveit=
48896     for x in $CPPFLAGS; do
48897
48898   acl_save_prefix="$prefix"
48899   prefix="$acl_final_prefix"
48900   acl_save_exec_prefix="$exec_prefix"
48901   exec_prefix="$acl_final_exec_prefix"
48902   eval x=\"$x\"
48903   exec_prefix="$acl_save_exec_prefix"
48904   prefix="$acl_save_prefix"
48905
48906       if test "X$x" = "X$element"; then
48907         haveit=yes
48908         break
48909       fi
48910     done
48911     if test -z "$haveit"; then
48912       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
48913     fi
48914   done
48915
48916
48917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libz" >&5
48918 $as_echo_n "checking for libz... " >&6; }
48919 if ${ac_cv_libz+:} false; then :
48920   $as_echo_n "(cached) " >&6
48921 else
48922
48923     ac_save_LIBS="$LIBS"
48924                                 case " $LIBZ" in
48925       *" -l"*) LIBS="$LIBS $LIBZ" ;;
48926       *)       LIBS="$LIBZ $LIBS" ;;
48927     esac
48928     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48929 /* end confdefs.h.  */
48930 #include <zlib.h>
48931 int
48932 main ()
48933 {
48934 compress (0, 0, 0, 0);
48935   ;
48936   return 0;
48937 }
48938 _ACEOF
48939 if ac_fn_c_try_link "$LINENO"; then :
48940   ac_cv_libz=yes
48941 else
48942   ac_cv_libz='no'
48943 fi
48944 rm -f core conftest.err conftest.$ac_objext \
48945     conftest$ac_exeext conftest.$ac_ext
48946     LIBS="$ac_save_LIBS"
48947
48948 fi
48949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libz" >&5
48950 $as_echo "$ac_cv_libz" >&6; }
48951   if test "$ac_cv_libz" = yes; then
48952     HAVE_LIBZ=yes
48953
48954 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
48955
48956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libz" >&5
48957 $as_echo_n "checking how to link with libz... " >&6; }
48958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBZ" >&5
48959 $as_echo "$LIBZ" >&6; }
48960   else
48961     HAVE_LIBZ=no
48962             CPPFLAGS="$ac_save_CPPFLAGS"
48963     LIBZ=
48964     LTLIBZ=
48965     LIBZ_PREFIX=
48966   fi
48967
48968
48969
48970
48971
48972
48973
48974  if test x$ac_cv_libz != xyes; then
48975    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***
48976 *** ZLIB was not found. You will not be able to use ZLIB compression." >&5
48977 $as_echo "$as_me: WARNING: ***
48978 *** ZLIB was not found. You will not be able to use ZLIB compression." >&2;}
48979  fi
48980 else
48981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48982 $as_echo "no" >&6; }
48983 fi
48984
48985 if test -n "$PKG_CONFIG" && \
48986     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
48987   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
48988   ac_status=$?
48989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48990   test $ac_status = 0; }; then
48991   ZLIB_HAS_PKGCONFIG=y
48992 else
48993   ZLIB_HAS_PKGCONFIG=n
48994 fi
48995
48996 if test x$ac_zlib != xno; then
48997   if test "$ZLIB_HAS_PKGCONFIG" = "y" ; then
48998     if test "x$GNUTLS_REQUIRES_PRIVATE" = x; then
48999       GNUTLS_REQUIRES_PRIVATE="Requires.private: zlib"
49000     else
49001       GNUTLS_REQUIRES_PRIVATE="$GNUTLS_REQUIRES_PRIVATE, zlib"
49002     fi
49003   fi
49004 fi
49005
49006
49007
49008
49009
49010 # Check whether --with-default-trust-store-pkcs11 was given.
49011 if test "${with_default_trust_store_pkcs11+set}" = set; then :
49012   withval=$with_default_trust_store_pkcs11;
49013 fi
49014
49015
49016 if test "x$with_default_trust_store_pkcs11" != x; then
49017   if test "x$with_p11_kit" = xno; then
49018     as_fn_error $? "cannot use pkcs11 store without p11-kit" "$LINENO" 5
49019   fi
49020
49021 cat >>confdefs.h <<_ACEOF
49022 #define DEFAULT_TRUST_STORE_PKCS11 "$with_default_trust_store_pkcs11"
49023 _ACEOF
49024
49025 fi
49026
49027
49028 # Check whether --with-default-trust-store-file was given.
49029 if test "${with_default_trust_store_file+set}" = set; then :
49030   withval=$with_default_trust_store_file; with_default_trust_store_file="$withval"
49031 else
49032   if test "$build" = "$host" && test x$with_default_trust_store_pkcs11 = x;then
49033   for i in \
49034     /etc/ssl/ca-bundle.pem \
49035     /etc/ssl/certs/ca-certificates.crt \
49036     /etc/pki/tls/cert.pem \
49037     /usr/local/share/certs/ca-root-nss.crt \
49038     /etc/ssl/cert.pem
49039     do
49040     if test -e "$i"; then
49041       with_default_trust_store_file="$i"
49042       break
49043     fi
49044   done
49045   fi
49046
49047 fi
49048
49049
49050 if test "$with_default_trust_store_file" = "no";then
49051   with_default_trust_store_file=""
49052 fi
49053
49054
49055 # Check whether --with-default-crl-file was given.
49056 if test "${with_default_crl_file+set}" = set; then :
49057   withval=$with_default_crl_file;
49058 fi
49059
49060
49061
49062 # Check whether --with-default-blacklist-file was given.
49063 if test "${with_default_blacklist_file+set}" = set; then :
49064   withval=$with_default_blacklist_file;
49065 fi
49066
49067
49068 if test "x$with_default_trust_store_file" != x; then
49069
49070 cat >>confdefs.h <<_ACEOF
49071 #define DEFAULT_TRUST_STORE_FILE "$with_default_trust_store_file"
49072 _ACEOF
49073
49074 fi
49075
49076 if test "x$with_default_crl_file" != x; then
49077
49078 cat >>confdefs.h <<_ACEOF
49079 #define DEFAULT_CRL_FILE "$with_default_crl_file"
49080 _ACEOF
49081
49082 fi
49083
49084 if test "x$with_default_blacklist_file" != x; then
49085
49086 cat >>confdefs.h <<_ACEOF
49087 #define DEFAULT_BLACKLIST_FILE "$with_default_blacklist_file"
49088 _ACEOF
49089
49090 fi
49091
49092 opt_guile_bindings=yes
49093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building Guile bindings" >&5
49094 $as_echo_n "checking whether building Guile bindings... " >&6; }
49095 # Check whether --enable-guile was given.
49096 if test "${enable_guile+set}" = set; then :
49097   enableval=$enable_guile; opt_guile_bindings=$enableval
49098 fi
49099
49100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_guile_bindings" >&5
49101 $as_echo "$opt_guile_bindings" >&6; }
49102
49103
49104 # Check whether --with-guile-site-dir was given.
49105 if test "${with_guile_site_dir+set}" = set; then :
49106   withval=$with_guile_site_dir;
49107 fi
49108
49109
49110 if test "$opt_guile_bindings" = "yes"; then
49111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
49112 *** Detecting GNU Guile...
49113 " >&5
49114 $as_echo "***
49115 *** Detecting GNU Guile...
49116 " >&6; }
49117
49118    # Extract the first word of "guile-snarf", so it can be a program name with args.
49119 set dummy guile-snarf; ac_word=$2
49120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49121 $as_echo_n "checking for $ac_word... " >&6; }
49122 if ${ac_cv_path_guile_snarf+:} false; then :
49123   $as_echo_n "(cached) " >&6
49124 else
49125   case $guile_snarf in
49126   [\\/]* | ?:[\\/]*)
49127   ac_cv_path_guile_snarf="$guile_snarf" # Let the user override the test with a path.
49128   ;;
49129   *)
49130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49131 for as_dir in $PATH
49132 do
49133   IFS=$as_save_IFS
49134   test -z "$as_dir" && as_dir=.
49135     for ac_exec_ext in '' $ac_executable_extensions; do
49136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49137     ac_cv_path_guile_snarf="$as_dir/$ac_word$ac_exec_ext"
49138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49139     break 2
49140   fi
49141 done
49142   done
49143 IFS=$as_save_IFS
49144
49145   ;;
49146 esac
49147 fi
49148 guile_snarf=$ac_cv_path_guile_snarf
49149 if test -n "$guile_snarf"; then
49150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_snarf" >&5
49151 $as_echo "$guile_snarf" >&6; }
49152 else
49153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49154 $as_echo "no" >&6; }
49155 fi
49156
49157
49158    if test "x$guile_snarf" = "x"; then
49159       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`guile-snarf' from Guile 1.8 not found.  Guile bindings not built." >&5
49160 $as_echo "$as_me: WARNING: \`guile-snarf' from Guile 1.8 not found.  Guile bindings not built." >&2;}
49161       opt_guile_bindings=no
49162    else
49163       # Extract the first word of "guile", so it can be a program name with args.
49164 set dummy guile; ac_word=$2
49165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49166 $as_echo_n "checking for $ac_word... " >&6; }
49167 if ${ac_cv_path_GUILE+:} false; then :
49168   $as_echo_n "(cached) " >&6
49169 else
49170   case $GUILE in
49171   [\\/]* | ?:[\\/]*)
49172   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
49173   ;;
49174   *)
49175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49176 for as_dir in $PATH
49177 do
49178   IFS=$as_save_IFS
49179   test -z "$as_dir" && as_dir=.
49180     for ac_exec_ext in '' $ac_executable_extensions; do
49181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49182     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
49183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49184     break 2
49185   fi
49186 done
49187   done
49188 IFS=$as_save_IFS
49189
49190   ;;
49191 esac
49192 fi
49193 GUILE=$ac_cv_path_GUILE
49194 if test -n "$GUILE"; then
49195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
49196 $as_echo "$GUILE" >&6; }
49197 else
49198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49199 $as_echo "no" >&6; }
49200 fi
49201
49202
49203   if test "$GUILE" = "" ; then
49204       as_fn_error $? "guile required but not found" "$LINENO" 5
49205   fi
49206
49207   # Extract the first word of "guile-config", so it can be a program name with args.
49208 set dummy guile-config; ac_word=$2
49209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49210 $as_echo_n "checking for $ac_word... " >&6; }
49211 if ${ac_cv_path_GUILE_CONFIG+:} false; then :
49212   $as_echo_n "(cached) " >&6
49213 else
49214   case $GUILE_CONFIG in
49215   [\\/]* | ?:[\\/]*)
49216   ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
49217   ;;
49218   *)
49219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49220 for as_dir in $PATH
49221 do
49222   IFS=$as_save_IFS
49223   test -z "$as_dir" && as_dir=.
49224     for ac_exec_ext in '' $ac_executable_extensions; do
49225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49226     ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49228     break 2
49229   fi
49230 done
49231   done
49232 IFS=$as_save_IFS
49233
49234   ;;
49235 esac
49236 fi
49237 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
49238 if test -n "$GUILE_CONFIG"; then
49239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
49240 $as_echo "$GUILE_CONFIG" >&6; }
49241 else
49242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49243 $as_echo "no" >&6; }
49244 fi
49245
49246
49247   if test "$GUILE_CONFIG" = "" ; then
49248       as_fn_error $? "guile-config required but not found" "$LINENO" 5
49249   fi
49250
49251   # Extract the first word of "guile-tools", so it can be a program name with args.
49252 set dummy guile-tools; ac_word=$2
49253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49254 $as_echo_n "checking for $ac_word... " >&6; }
49255 if ${ac_cv_path_GUILE_TOOLS+:} false; then :
49256   $as_echo_n "(cached) " >&6
49257 else
49258   case $GUILE_TOOLS in
49259   [\\/]* | ?:[\\/]*)
49260   ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
49261   ;;
49262   *)
49263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49264 for as_dir in $PATH
49265 do
49266   IFS=$as_save_IFS
49267   test -z "$as_dir" && as_dir=.
49268     for ac_exec_ext in '' $ac_executable_extensions; do
49269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49270     ac_cv_path_GUILE_TOOLS="$as_dir/$ac_word$ac_exec_ext"
49271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49272     break 2
49273   fi
49274 done
49275   done
49276 IFS=$as_save_IFS
49277
49278   ;;
49279 esac
49280 fi
49281 GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
49282 if test -n "$GUILE_TOOLS"; then
49283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
49284 $as_echo "$GUILE_TOOLS" >&6; }
49285 else
49286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49287 $as_echo "no" >&6; }
49288 fi
49289
49290
49291
49292
49293         { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile compile flags" >&5
49294 $as_echo_n "checking libguile compile flags... " >&6; }
49295   GUILE_CFLAGS="`$GUILE_CONFIG compile`"
49296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CFLAGS" >&5
49297 $as_echo "$GUILE_CFLAGS" >&6; }
49298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile link flags" >&5
49299 $as_echo_n "checking libguile link flags... " >&6; }
49300   GUILE_LDFLAGS="`$GUILE_CONFIG link`"
49301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LDFLAGS" >&5
49302 $as_echo "$GUILE_LDFLAGS" >&6; }
49303
49304
49305
49306
49307       save_CFLAGS="$CFLAGS"
49308       save_LIBS="$LIBS"
49309       CFLAGS="$CFLAGS $GUILE_CFLAGS"
49310       LIBS="$LIBS $GUILE_LDFLAGS"
49311       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU Guile is recent enough" >&5
49312 $as_echo_n "checking whether GNU Guile is recent enough... " >&6; }
49313       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49314 /* end confdefs.h.  */
49315
49316 int
49317 main ()
49318 {
49319 scm_from_locale_string ("")
49320   ;
49321   return 0;
49322 }
49323 _ACEOF
49324 if ac_fn_c_try_link "$LINENO"; then :
49325
49326 else
49327   opt_guile_bindings=no
49328 fi
49329 rm -f core conftest.err conftest.$ac_objext \
49330     conftest$ac_exeext conftest.$ac_ext
49331       CFLAGS="$save_CFLAGS"
49332       LIBS="$save_LIBS"
49333
49334       if test "$opt_guile_bindings" = "yes"; then
49335         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49336 $as_echo "yes" >&6; }
49337         case "x$with_guile_site_dir" in
49338              xno)
49339                 # Use the default $(GUILE_SITE).
49340                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile site directory" >&5
49341 $as_echo_n "checking for Guile site directory... " >&6; }
49342   GUILE_SITE=`$GUILE_CONFIG info pkgdatadir`/site
49343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_SITE" >&5
49344 $as_echo "$GUILE_SITE" >&6; }
49345
49346
49347                 ;;
49348              x|xyes)
49349                 # Automatically derive $(GUILE_SITE) from $(pkgdatadir).  This
49350                 # hack is used to allow `distcheck' to work (see
49351                 # `DISTCHECK_CONFIGURE_FLAGS' in the top-level `Makefile.am').
49352                 GUILE_SITE="\$(datadir)/guile/site"
49353
49354                 ;;
49355              *)
49356                 # Use the user-specified directory as $(GUILE_SITE).
49357                 GUILE_SITE="$with_guile_site_dir"
49358
49359                 ;;
49360         esac
49361         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports -fgnu89-inline" >&5
49362 $as_echo_n "checking whether gcc supports -fgnu89-inline... " >&6; }
49363         _gcc_cflags_save="$CFLAGS"
49364         CFLAGS="${CFLAGS} -fgnu89-inline"
49365         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49366 /* end confdefs.h.  */
49367
49368 int
49369 main ()
49370 {
49371
49372   ;
49373   return 0;
49374 }
49375 _ACEOF
49376 if ac_fn_c_try_compile "$LINENO"; then :
49377   gnu89_inline=yes
49378 else
49379   gnu89_inline=no
49380 fi
49381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnu89_inline" >&5
49383 $as_echo "$gnu89_inline" >&6; }
49384         CFLAGS="$_gcc_cflags_save"
49385
49386         # Optional Guile functions.
49387         save_CFLAGS="$CFLAGS"
49388         save_LIBS="$LIBS"
49389         CFLAGS="$CFLAGS $GUILE_CFLAGS"
49390         LIBS="$LIBS $GUILE_LDFLAGS"
49391         for ac_func in scm_gc_malloc_pointerless
49392 do :
49393   ac_fn_c_check_func "$LINENO" "scm_gc_malloc_pointerless" "ac_cv_func_scm_gc_malloc_pointerless"
49394 if test "x$ac_cv_func_scm_gc_malloc_pointerless" = xyes; then :
49395   cat >>confdefs.h <<_ACEOF
49396 #define HAVE_SCM_GC_MALLOC_POINTERLESS 1
49397 _ACEOF
49398
49399 fi
49400 done
49401
49402         CFLAGS="$save_CFLAGS"
49403         LIBS="$save_LIBS"
49404
49405         # The place where guile-gnutls.la will go.
49406         { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Guile effective version" >&5
49407 $as_echo_n "checking the Guile effective version... " >&6; }
49408         guile_effective_version="`$GUILE -c '(display (effective-version))'`"
49409         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_effective_version" >&5
49410 $as_echo "$guile_effective_version" >&6; }
49411         guileextensiondir="$libdir/guile/$guile_effective_version"
49412
49413       else
49414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49415 $as_echo "no" >&6; }
49416         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A sufficiently recent GNU Guile not found.  Guile bindings not built." >&5
49417 $as_echo "$as_me: WARNING: A sufficiently recent GNU Guile not found.  Guile bindings not built." >&2;}
49418         opt_guile_bindings=no
49419       fi
49420    fi
49421 fi
49422  if test "$opt_guile_bindings" = "yes"; then
49423   HAVE_GUILE_TRUE=
49424   HAVE_GUILE_FALSE='#'
49425 else
49426   HAVE_GUILE_TRUE='#'
49427   HAVE_GUILE_FALSE=
49428 fi
49429
49430
49431 LIBGNUTLS_LIBS="-L${libdir} -lgnutls $LIBS"
49432 LIBGNUTLS_CFLAGS="-I${includedir}"
49433
49434
49435
49436  if test "$gnutls_needs_librt" = "yes"; then
49437   NEEDS_LIBRT_TRUE=
49438   NEEDS_LIBRT_FALSE='#'
49439 else
49440   NEEDS_LIBRT_TRUE='#'
49441   NEEDS_LIBRT_FALSE=
49442 fi
49443
49444
49445
49446 $as_echo "#define GNUTLS_COMPAT_H 1" >>confdefs.h
49447
49448
49449 $as_echo "#define GNUTLS_INTERNAL_BUILD 1" >>confdefs.h
49450
49451
49452
49453 $as_echo "#define fread_file _gnutls_fread_file" >>confdefs.h
49454
49455
49456 $as_echo "#define read_file _gnutls_read_file" >>confdefs.h
49457
49458
49459 $as_echo "#define read_binary_file _gnutls_read_binary_file" >>confdefs.h
49460
49461
49462    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
49463 *** Checking dependencies for crywrap...
49464 " >&5
49465 $as_echo "***
49466 *** Checking dependencies for crywrap...
49467 " >&6; }
49468
49469 crywrap=no
49470
49471 if test "$have_win" != "yes"; then
49472
49473 for ac_header in arpa/inet.h netinet/in.h sys/select.h sys/types.h sys/wait.h
49474 do :
49475   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
49476 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
49477 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
49478   cat >>confdefs.h <<_ACEOF
49479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
49480 _ACEOF
49481
49482 fi
49483
49484 done
49485
49486
49487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
49488 $as_echo_n "checking return type of signal handlers... " >&6; }
49489 if ${ac_cv_type_signal+:} false; then :
49490   $as_echo_n "(cached) " >&6
49491 else
49492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49493 /* end confdefs.h.  */
49494 #include <sys/types.h>
49495 #include <signal.h>
49496
49497 int
49498 main ()
49499 {
49500 return *(signal (0, 0)) (0) == 1;
49501   ;
49502   return 0;
49503 }
49504 _ACEOF
49505 if ac_fn_c_try_compile "$LINENO"; then :
49506   ac_cv_type_signal=int
49507 else
49508   ac_cv_type_signal=void
49509 fi
49510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49511 fi
49512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
49513 $as_echo "$ac_cv_type_signal" >&6; }
49514
49515 cat >>confdefs.h <<_ACEOF
49516 #define RETSIGTYPE $ac_cv_type_signal
49517 _ACEOF
49518
49519
49520 for ac_header in sys/select.h sys/socket.h
49521 do :
49522   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
49523 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
49524 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
49525   cat >>confdefs.h <<_ACEOF
49526 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
49527 _ACEOF
49528
49529 fi
49530
49531 done
49532
49533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
49534 $as_echo_n "checking types of arguments for select... " >&6; }
49535 if ${ac_cv_func_select_args+:} false; then :
49536   $as_echo_n "(cached) " >&6
49537 else
49538   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
49539  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
49540   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
49541    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49542 /* end confdefs.h.  */
49543 $ac_includes_default
49544 #ifdef HAVE_SYS_SELECT_H
49545 # include <sys/select.h>
49546 #endif
49547 #ifdef HAVE_SYS_SOCKET_H
49548 # include <sys/socket.h>
49549 #endif
49550
49551 int
49552 main ()
49553 {
49554 extern int select ($ac_arg1,
49555                                             $ac_arg234, $ac_arg234, $ac_arg234,
49556                                             $ac_arg5);
49557   ;
49558   return 0;
49559 }
49560 _ACEOF
49561 if ac_fn_c_try_compile "$LINENO"; then :
49562   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
49563 fi
49564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49565   done
49566  done
49567 done
49568 # Provide a safe default value.
49569 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
49570
49571 fi
49572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
49573 $as_echo "$ac_cv_func_select_args" >&6; }
49574 ac_save_IFS=$IFS; IFS=','
49575 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
49576 IFS=$ac_save_IFS
49577 shift
49578
49579 cat >>confdefs.h <<_ACEOF
49580 #define SELECT_TYPE_ARG1 $1
49581 _ACEOF
49582
49583
49584 cat >>confdefs.h <<_ACEOF
49585 #define SELECT_TYPE_ARG234 ($2)
49586 _ACEOF
49587
49588
49589 cat >>confdefs.h <<_ACEOF
49590 #define SELECT_TYPE_ARG5 ($3)
49591 _ACEOF
49592
49593 rm -f conftest*
49594
49595 for ac_func in alarm atexit dup2 epoll_create kqueue memchr memset munmap \
49596                 putenv regcomp scandir select socket strcasecmp strchr \
49597                 strdup strerror strncasecmp strrchr strstr strtoul uname
49598 do :
49599   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49600 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
49601 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
49602   cat >>confdefs.h <<_ACEOF
49603 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49604 _ACEOF
49605
49606 fi
49607 done
49608
49609
49610 # Check whether --enable-crywrap was given.
49611 if test "${enable_crywrap+set}" = set; then :
49612   enableval=$enable_crywrap;
49613 fi
49614
49615
49616  libidn=no
49617
49618  if test "x$enable_crywrap" != "xno" ; then
49619
49620 pkg_failed=no
49621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBIDN" >&5
49622 $as_echo_n "checking for LIBIDN... " >&6; }
49623
49624 if test -n "$PKG_CONFIG"; then
49625     if test -n "$LIBIDN_CFLAGS"; then
49626         pkg_cv_LIBIDN_CFLAGS="$LIBIDN_CFLAGS"
49627     else
49628         if test -n "$PKG_CONFIG" && \
49629     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5
49630   ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5
49631   ac_status=$?
49632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49633   test $ac_status = 0; }; then
49634   pkg_cv_LIBIDN_CFLAGS=`$PKG_CONFIG --cflags "libidn >= 0.0.0" 2>/dev/null`
49635 else
49636   pkg_failed=yes
49637 fi
49638     fi
49639 else
49640         pkg_failed=untried
49641 fi
49642 if test -n "$PKG_CONFIG"; then
49643     if test -n "$LIBIDN_LIBS"; then
49644         pkg_cv_LIBIDN_LIBS="$LIBIDN_LIBS"
49645     else
49646         if test -n "$PKG_CONFIG" && \
49647     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5
49648   ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5
49649   ac_status=$?
49650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49651   test $ac_status = 0; }; then
49652   pkg_cv_LIBIDN_LIBS=`$PKG_CONFIG --libs "libidn >= 0.0.0" 2>/dev/null`
49653 else
49654   pkg_failed=yes
49655 fi
49656     fi
49657 else
49658         pkg_failed=untried
49659 fi
49660
49661
49662
49663 if test $pkg_failed = yes; then
49664
49665 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49666         _pkg_short_errors_supported=yes
49667 else
49668         _pkg_short_errors_supported=no
49669 fi
49670         if test $_pkg_short_errors_supported = yes; then
49671                 LIBIDN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libidn >= 0.0.0"`
49672         else
49673                 LIBIDN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libidn >= 0.0.0"`
49674         fi
49675         # Put the nasty error message in config.log where it belongs
49676         echo "$LIBIDN_PKG_ERRORS" >&5
49677
49678         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49679 $as_echo "no" >&6; }
49680                 libidn=no
49681 elif test $pkg_failed = untried; then
49682         libidn=no
49683 else
49684         LIBIDN_CFLAGS=$pkg_cv_LIBIDN_CFLAGS
49685         LIBIDN_LIBS=$pkg_cv_LIBIDN_LIBS
49686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49687 $as_echo "yes" >&6; }
49688         libidn=yes
49689 fi
49690         for ac_func in argp_usage
49691 do :
49692   ac_fn_c_check_func "$LINENO" "argp_usage" "ac_cv_func_argp_usage"
49693 if test "x$ac_cv_func_argp_usage" = xyes; then :
49694   cat >>confdefs.h <<_ACEOF
49695 #define HAVE_ARGP_USAGE 1
49696 _ACEOF
49697  ac_argp=yes
49698 else
49699   ac_argp=no
49700 fi
49701 done
49702
49703  fi
49704
49705  if test "x$libidn" != "xno" && test "$ac_cv_func_daemon" != "no" && test "$ac_argp" != "no";then
49706   crywrap=yes
49707  fi
49708
49709 fi
49710
49711  if test "x$crywrap" != "xno"; then
49712   ENABLE_CRYWRAP_TRUE=
49713   ENABLE_CRYWRAP_FALSE='#'
49714 else
49715   ENABLE_CRYWRAP_TRUE='#'
49716   ENABLE_CRYWRAP_FALSE=
49717 fi
49718
49719
49720
49721 YEAR=`date +%Y`
49722 YEAR=$YEAR
49723
49724
49725 ac_config_files="$ac_config_files guile/pre-inst-guile"
49726
49727 ac_config_files="$ac_config_files Makefile doc/Makefile doc/credentials/Makefile doc/credentials/openpgp/Makefile doc/credentials/srp/Makefile doc/credentials/x509/Makefile doc/cyclo/Makefile doc/doxygen/Doxyfile doc/examples/Makefile doc/latex/Makefile doc/manpages/Makefile doc/reference/Makefile doc/reference/version.xml doc/scripts/Makefile extra/Makefile extra/includes/Makefile libdane/Makefile libdane/includes/Makefile libdane/gnutls-dane.pc gl/Makefile gl/tests/Makefile guile/Makefile guile/modules/Makefile guile/src/Makefile guile/tests/Makefile lib/Makefile lib/accelerated/Makefile lib/accelerated/x86/Makefile lib/algorithms/Makefile lib/auth/Makefile lib/ext/Makefile lib/extras/Makefile lib/gnutls.pc lib/includes/Makefile lib/includes/gnutls/gnutls.h lib/minitasn1/Makefile lib/nettle/Makefile lib/opencdk/Makefile lib/openpgp/Makefile lib/x509/Makefile po/Makefile.in src/Makefile src/crywrap/Makefile src/gl/Makefile tests/Makefile tests/cert-tests/Makefile tests/dsa/Makefile tests/dtls/Makefile tests/srp/Makefile tests/ecdsa/Makefile tests/key-tests/Makefile tests/openpgp-certs/Makefile tests/pkcs1-padding/Makefile tests/pkcs12-decode/Makefile tests/pkcs8-decode/Makefile tests/rsa-md5-collision/Makefile tests/safe-renegotiation/Makefile tests/scripts/Makefile tests/sha2/Makefile tests/slow/Makefile tests/suite/Makefile tests/userid/Makefile"
49728
49729
49730 cat >confcache <<\_ACEOF
49731 # This file is a shell script that caches the results of configure
49732 # tests run on this system so they can be shared between configure
49733 # scripts and configure runs, see configure's option --config-cache.
49734 # It is not useful on other systems.  If it contains results you don't
49735 # want to keep, you may remove or edit it.
49736 #
49737 # config.status only pays attention to the cache file if you give it
49738 # the --recheck option to rerun configure.
49739 #
49740 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49741 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49742 # following values.
49743
49744 _ACEOF
49745
49746 # The following way of writing the cache mishandles newlines in values,
49747 # but we know of no workaround that is simple, portable, and efficient.
49748 # So, we kill variables containing newlines.
49749 # Ultrix sh set writes to stderr and can't be redirected directly,
49750 # and sets the high bit in the cache file unless we assign to the vars.
49751 (
49752   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
49753     eval ac_val=\$$ac_var
49754     case $ac_val in #(
49755     *${as_nl}*)
49756       case $ac_var in #(
49757       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
49758 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
49759       esac
49760       case $ac_var in #(
49761       _ | IFS | as_nl) ;; #(
49762       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
49763       *) { eval $ac_var=; unset $ac_var;} ;;
49764       esac ;;
49765     esac
49766   done
49767
49768   (set) 2>&1 |
49769     case $as_nl`(ac_space=' '; set) 2>&1` in #(
49770     *${as_nl}ac_space=\ *)
49771       # `set' does not quote correctly, so add quotes: double-quote
49772       # substitution turns \\\\ into \\, and sed turns \\ into \.
49773       sed -n \
49774         "s/'/'\\\\''/g;
49775           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49776       ;; #(
49777     *)
49778       # `set' quotes correctly as required by POSIX, so do not add quotes.
49779       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
49780       ;;
49781     esac |
49782     sort
49783 ) |
49784   sed '
49785      /^ac_cv_env_/b end
49786      t clear
49787      :clear
49788      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49789      t end
49790      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49791      :end' >>confcache
49792 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
49793   if test -w "$cache_file"; then
49794     if test "x$cache_file" != "x/dev/null"; then
49795       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
49796 $as_echo "$as_me: updating cache $cache_file" >&6;}
49797       if test ! -f "$cache_file" || test -h "$cache_file"; then
49798         cat confcache >"$cache_file"
49799       else
49800         case $cache_file in #(
49801         */* | ?:*)
49802           mv -f confcache "$cache_file"$$ &&
49803           mv -f "$cache_file"$$ "$cache_file" ;; #(
49804         *)
49805           mv -f confcache "$cache_file" ;;
49806         esac
49807       fi
49808     fi
49809   else
49810     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
49811 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
49812   fi
49813 fi
49814 rm -f confcache
49815
49816 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49817 # Let make expand exec_prefix.
49818 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49819
49820 DEFS=-DHAVE_CONFIG_H
49821
49822 ac_libobjs=
49823 ac_ltlibobjs=
49824 U=
49825 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49826   # 1. Remove the extension, and $U if already installed.
49827   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
49828   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
49829   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
49830   #    will be set to the directory where LIBOBJS objects are built.
49831   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
49832   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
49833 done
49834 LIBOBJS=$ac_libobjs
49835
49836 LTLIBOBJS=$ac_ltlibobjs
49837
49838
49839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
49840 $as_echo_n "checking that generated files are newer than configure... " >&6; }
49841    if test -n "$am_sleep_pid"; then
49842      # Hide warnings about reused PIDs.
49843      wait $am_sleep_pid 2>/dev/null
49844    fi
49845    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
49846 $as_echo "done" >&6; }
49847  if test -n "$EXEEXT"; then
49848   am__EXEEXT_TRUE=
49849   am__EXEEXT_FALSE='#'
49850 else
49851   am__EXEEXT_TRUE='#'
49852   am__EXEEXT_FALSE=
49853 fi
49854
49855 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
49856   as_fn_error $? "conditional \"AMDEP\" was never defined.
49857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49858 fi
49859 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
49860   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
49861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49862 fi
49863 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
49864   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
49865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49866 fi
49867 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
49868   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
49869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49870 fi
49871 if test -z "${ENABLE_CXX_TRUE}" && test -z "${ENABLE_CXX_FALSE}"; then
49872   as_fn_error $? "conditional \"ENABLE_CXX\" was never defined.
49873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49874 fi
49875 if test -z "${WANT_TEST_SUITE_TRUE}" && test -z "${WANT_TEST_SUITE_FALSE}"; then
49876   as_fn_error $? "conditional \"WANT_TEST_SUITE\" was never defined.
49877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49878 fi
49879 if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
49880   as_fn_error $? "conditional \"WINDOWS\" was never defined.
49881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49882 fi
49883 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
49884   as_fn_error $? "conditional \"MACOSX\" was never defined.
49885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49886 fi
49887 if test -z "${ELF_TRUE}" && test -z "${ELF_FALSE}"; then
49888   as_fn_error $? "conditional \"ELF\" was never defined.
49889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49890 fi
49891 if test -z "${ASM_X86_64_TRUE}" && test -z "${ASM_X86_64_FALSE}"; then
49892   as_fn_error $? "conditional \"ASM_X86_64\" was never defined.
49893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49894 fi
49895 if test -z "${ASM_X86_32_TRUE}" && test -z "${ASM_X86_32_FALSE}"; then
49896   as_fn_error $? "conditional \"ASM_X86_32\" was never defined.
49897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49898 fi
49899 if test -z "${ASM_X86_TRUE}" && test -z "${ASM_X86_FALSE}"; then
49900   as_fn_error $? "conditional \"ASM_X86\" was never defined.
49901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49902 fi
49903 if test -z "${HAVE_GCC_GNU89_INLINE_OPTION_TRUE}" && test -z "${HAVE_GCC_GNU89_INLINE_OPTION_FALSE}"; then
49904   as_fn_error $? "conditional \"HAVE_GCC_GNU89_INLINE_OPTION\" was never defined.
49905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49906 fi
49907 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
49908   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
49909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49910 fi
49911 if test -z "${ENABLE_NETTLE_TRUE}" && test -z "${ENABLE_NETTLE_FALSE}"; then
49912   as_fn_error $? "conditional \"ENABLE_NETTLE\" was never defined.
49913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49914 fi
49915 if test -z "${ENABLE_MINITASN1_TRUE}" && test -z "${ENABLE_MINITASN1_FALSE}"; then
49916   as_fn_error $? "conditional \"ENABLE_MINITASN1\" was never defined.
49917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49918 fi
49919 if test -z "${ENABLE_DTLS_SRTP_TRUE}" && test -z "${ENABLE_DTLS_SRTP_FALSE}"; then
49920   as_fn_error $? "conditional \"ENABLE_DTLS_SRTP\" was never defined.
49921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49922 fi
49923 if test -z "${ENABLE_ALPN_TRUE}" && test -z "${ENABLE_ALPN_FALSE}"; then
49924   as_fn_error $? "conditional \"ENABLE_ALPN\" was never defined.
49925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49926 fi
49927 if test -z "${ENABLE_RSA_EXPORT_TRUE}" && test -z "${ENABLE_RSA_EXPORT_FALSE}"; then
49928   as_fn_error $? "conditional \"ENABLE_RSA_EXPORT\" was never defined.
49929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49930 fi
49931 if test -z "${ENABLE_HEARTBEAT_TRUE}" && test -z "${ENABLE_HEARTBEAT_FALSE}"; then
49932   as_fn_error $? "conditional \"ENABLE_HEARTBEAT\" was never defined.
49933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49934 fi
49935 if test -z "${ENABLE_SRP_TRUE}" && test -z "${ENABLE_SRP_FALSE}"; then
49936   as_fn_error $? "conditional \"ENABLE_SRP\" was never defined.
49937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49938 fi
49939 if test -z "${ENABLE_PSK_TRUE}" && test -z "${ENABLE_PSK_FALSE}"; then
49940   as_fn_error $? "conditional \"ENABLE_PSK\" was never defined.
49941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49942 fi
49943 if test -z "${ENABLE_ANON_TRUE}" && test -z "${ENABLE_ANON_FALSE}"; then
49944   as_fn_error $? "conditional \"ENABLE_ANON\" was never defined.
49945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49946 fi
49947 if test -z "${ENABLE_DHE_TRUE}" && test -z "${ENABLE_DHE_FALSE}"; then
49948   as_fn_error $? "conditional \"ENABLE_DHE\" was never defined.
49949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49950 fi
49951 if test -z "${ENABLE_ECDHE_TRUE}" && test -z "${ENABLE_ECDHE_FALSE}"; then
49952   as_fn_error $? "conditional \"ENABLE_ECDHE\" was never defined.
49953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49954 fi
49955 if test -z "${ENABLE_OPENPGP_TRUE}" && test -z "${ENABLE_OPENPGP_FALSE}"; then
49956   as_fn_error $? "conditional \"ENABLE_OPENPGP\" was never defined.
49957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49958 fi
49959 if test -z "${ENABLE_OCSP_TRUE}" && test -z "${ENABLE_OCSP_FALSE}"; then
49960   as_fn_error $? "conditional \"ENABLE_OCSP\" was never defined.
49961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49962 fi
49963 if test -z "${ENABLE_SESSION_TICKETS_TRUE}" && test -z "${ENABLE_SESSION_TICKETS_FALSE}"; then
49964   as_fn_error $? "conditional \"ENABLE_SESSION_TICKETS\" was never defined.
49965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49966 fi
49967 if test -z "${ENABLE_OPENSSL_TRUE}" && test -z "${ENABLE_OPENSSL_FALSE}"; then
49968   as_fn_error $? "conditional \"ENABLE_OPENSSL\" was never defined.
49969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49970 fi
49971 if test -z "${ENABLE_DOC_TRUE}" && test -z "${ENABLE_DOC_FALSE}"; then
49972   as_fn_error $? "conditional \"ENABLE_DOC\" was never defined.
49973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49974 fi
49975 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
49976   as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
49977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49978 fi
49979 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
49980   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
49981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49982 fi
49983 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
49984   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
49985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49986 fi
49987 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
49988   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
49989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49990 fi
49991 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
49992   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
49993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49994 fi
49995 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
49996   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
49997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49998 fi
49999
50000 if test -z "${HAVE_FORK_TRUE}" && test -z "${HAVE_FORK_FALSE}"; then
50001   as_fn_error $? "conditional \"HAVE_FORK\" was never defined.
50002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50003 fi
50004 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
50005   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
50006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50007 fi
50008 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
50009   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
50010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50011 fi
50012 if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
50013   as_fn_error $? "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
50014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50015 fi
50016 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
50017   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
50018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50019 fi
50020 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
50021   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
50022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50023 fi
50024 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
50025   as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
50026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50027 fi
50028 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
50029   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
50030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50031 fi
50032 CONFIG_INCLUDE=config.h
50033
50034 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
50035   as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
50036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50037 fi
50038 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
50039   as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
50040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50041 fi
50042 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
50043   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
50044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50045 fi
50046 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
50047   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
50048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50049 fi
50050 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
50051   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
50052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50053 fi
50054
50055
50056     gl_libobjs=
50057     gl_ltlibobjs=
50058     if test -n "$gl_LIBOBJS"; then
50059       # Remove the extension.
50060       sed_drop_objext='s/\.o$//;s/\.obj$//'
50061       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
50062         gl_libobjs="$gl_libobjs $i.$ac_objext"
50063         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
50064       done
50065     fi
50066     gl_LIBOBJS=$gl_libobjs
50067
50068     gl_LTLIBOBJS=$gl_ltlibobjs
50069
50070
50071
50072     gltests_libobjs=
50073     gltests_ltlibobjs=
50074     if test -n "$gltests_LIBOBJS"; then
50075       # Remove the extension.
50076       sed_drop_objext='s/\.o$//;s/\.obj$//'
50077       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
50078         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
50079         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
50080       done
50081     fi
50082     gltests_LIBOBJS=$gltests_libobjs
50083
50084     gltests_LTLIBOBJS=$gltests_ltlibobjs
50085
50086
50087 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
50088   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
50089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50090 fi
50091 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
50092   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
50093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50094 fi
50095 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
50096   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
50097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50098 fi
50099 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
50100   as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
50101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50102 fi
50103 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
50104   as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
50105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50106 fi
50107 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
50108   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
50109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50110 fi
50111 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
50112   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
50113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50114 fi
50115
50116     ggl_libobjs=
50117     ggl_ltlibobjs=
50118     if test -n "$ggl_LIBOBJS"; then
50119       # Remove the extension.
50120       sed_drop_objext='s/\.o$//;s/\.obj$//'
50121       for i in `for i in $ggl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
50122         ggl_libobjs="$ggl_libobjs $i.$ac_objext"
50123         ggl_ltlibobjs="$ggl_ltlibobjs $i.lo"
50124       done
50125     fi
50126     ggl_LIBOBJS=$ggl_libobjs
50127
50128     ggl_LTLIBOBJS=$ggl_ltlibobjs
50129
50130
50131
50132     ggltests_libobjs=
50133     ggltests_ltlibobjs=
50134     if test -n "$ggltests_LIBOBJS"; then
50135       # Remove the extension.
50136       sed_drop_objext='s/\.o$//;s/\.obj$//'
50137       for i in `for i in $ggltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
50138         ggltests_libobjs="$ggltests_libobjs $i.$ac_objext"
50139         ggltests_ltlibobjs="$ggltests_ltlibobjs $i.lo"
50140       done
50141     fi
50142     ggltests_LIBOBJS=$ggltests_libobjs
50143
50144     ggltests_LTLIBOBJS=$ggltests_ltlibobjs
50145
50146
50147 if test -z "${ENABLE_FIPS140_TRUE}" && test -z "${ENABLE_FIPS140_FALSE}"; then
50148   as_fn_error $? "conditional \"ENABLE_FIPS140\" was never defined.
50149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50150 fi
50151 if test -z "${ENABLE_SELF_CHECKS_TRUE}" && test -z "${ENABLE_SELF_CHECKS_FALSE}"; then
50152   as_fn_error $? "conditional \"ENABLE_SELF_CHECKS\" was never defined.
50153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50154 fi
50155 if test -z "${ENABLE_DANE_TRUE}" && test -z "${ENABLE_DANE_FALSE}"; then
50156   as_fn_error $? "conditional \"ENABLE_DANE\" was never defined.
50157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50158 fi
50159 if test -z "${ENABLE_PKCS11_TRUE}" && test -z "${ENABLE_PKCS11_FALSE}"; then
50160   as_fn_error $? "conditional \"ENABLE_PKCS11\" was never defined.
50161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50162 fi
50163 if test -z "${ENABLE_TROUSERS_TRUE}" && test -z "${ENABLE_TROUSERS_FALSE}"; then
50164   as_fn_error $? "conditional \"ENABLE_TROUSERS\" was never defined.
50165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50166 fi
50167 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
50168   as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
50169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50170 fi
50171 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
50172   as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
50173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50174 fi
50175 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
50176   as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
50177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50178 fi
50179 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
50180   as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
50181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50182 fi
50183 if test -z "${NEEDS_LIBRT_TRUE}" && test -z "${NEEDS_LIBRT_FALSE}"; then
50184   as_fn_error $? "conditional \"NEEDS_LIBRT\" was never defined.
50185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50186 fi
50187 if test -z "${ENABLE_CRYWRAP_TRUE}" && test -z "${ENABLE_CRYWRAP_FALSE}"; then
50188   as_fn_error $? "conditional \"ENABLE_CRYWRAP\" was never defined.
50189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50190 fi
50191
50192 : "${CONFIG_STATUS=./config.status}"
50193 ac_write_fail=0
50194 ac_clean_files_save=$ac_clean_files
50195 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
50197 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
50198 as_write_fail=0
50199 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
50200 #! $SHELL
50201 # Generated by $as_me.
50202 # Run this file to recreate the current configuration.
50203 # Compiler output produced by configure, useful for debugging
50204 # configure, is in config.log if it exists.
50205
50206 debug=false
50207 ac_cs_recheck=false
50208 ac_cs_silent=false
50209
50210 SHELL=\${CONFIG_SHELL-$SHELL}
50211 export SHELL
50212 _ASEOF
50213 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
50214 ## -------------------- ##
50215 ## M4sh Initialization. ##
50216 ## -------------------- ##
50217
50218 # Be more Bourne compatible
50219 DUALCASE=1; export DUALCASE # for MKS sh
50220 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
50221   emulate sh
50222   NULLCMD=:
50223   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
50224   # is contrary to our usage.  Disable this feature.
50225   alias -g '${1+"$@"}'='"$@"'
50226   setopt NO_GLOB_SUBST
50227 else
50228   case `(set -o) 2>/dev/null` in #(
50229   *posix*) :
50230     set -o posix ;; #(
50231   *) :
50232      ;;
50233 esac
50234 fi
50235
50236
50237 as_nl='
50238 '
50239 export as_nl
50240 # Printing a long string crashes Solaris 7 /usr/bin/printf.
50241 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
50242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50243 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50244 # Prefer a ksh shell builtin over an external printf program on Solaris,
50245 # but without wasting forks for bash or zsh.
50246 if test -z "$BASH_VERSION$ZSH_VERSION" \
50247     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50248   as_echo='print -r --'
50249   as_echo_n='print -rn --'
50250 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50251   as_echo='printf %s\n'
50252   as_echo_n='printf %s'
50253 else
50254   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
50255     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
50256     as_echo_n='/usr/ucb/echo -n'
50257   else
50258     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
50259     as_echo_n_body='eval
50260       arg=$1;
50261       case $arg in #(
50262       *"$as_nl"*)
50263         expr "X$arg" : "X\\(.*\\)$as_nl";
50264         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
50265       esac;
50266       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
50267     '
50268     export as_echo_n_body
50269     as_echo_n='sh -c $as_echo_n_body as_echo'
50270   fi
50271   export as_echo_body
50272   as_echo='sh -c $as_echo_body as_echo'
50273 fi
50274
50275 # The user is always right.
50276 if test "${PATH_SEPARATOR+set}" != set; then
50277   PATH_SEPARATOR=:
50278   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
50279     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
50280       PATH_SEPARATOR=';'
50281   }
50282 fi
50283
50284
50285 # IFS
50286 # We need space, tab and new line, in precisely that order.  Quoting is
50287 # there to prevent editors from complaining about space-tab.
50288 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
50289 # splitting by setting IFS to empty value.)
50290 IFS=" ""        $as_nl"
50291
50292 # Find who we are.  Look in the path if we contain no directory separator.
50293 as_myself=
50294 case $0 in #((
50295   *[\\/]* ) as_myself=$0 ;;
50296   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50297 for as_dir in $PATH
50298 do
50299   IFS=$as_save_IFS
50300   test -z "$as_dir" && as_dir=.
50301     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50302   done
50303 IFS=$as_save_IFS
50304
50305      ;;
50306 esac
50307 # We did not find ourselves, most probably we were run as `sh COMMAND'
50308 # in which case we are not to be found in the path.
50309 if test "x$as_myself" = x; then
50310   as_myself=$0
50311 fi
50312 if test ! -f "$as_myself"; then
50313   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
50314   exit 1
50315 fi
50316
50317 # Unset variables that we do not need and which cause bugs (e.g. in
50318 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
50319 # suppresses any "Segmentation fault" message there.  '((' could
50320 # trigger a bug in pdksh 5.2.14.
50321 for as_var in BASH_ENV ENV MAIL MAILPATH
50322 do eval test x\${$as_var+set} = xset \
50323   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
50324 done
50325 PS1='$ '
50326 PS2='> '
50327 PS4='+ '
50328
50329 # NLS nuisances.
50330 LC_ALL=C
50331 export LC_ALL
50332 LANGUAGE=C
50333 export LANGUAGE
50334
50335 # CDPATH.
50336 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
50337
50338
50339 # as_fn_error STATUS ERROR [LINENO LOG_FD]
50340 # ----------------------------------------
50341 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
50342 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
50343 # script with STATUS, using 1 if that was 0.
50344 as_fn_error ()
50345 {
50346   as_status=$1; test $as_status -eq 0 && as_status=1
50347   if test "$4"; then
50348     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
50349     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
50350   fi
50351   $as_echo "$as_me: error: $2" >&2
50352   as_fn_exit $as_status
50353 } # as_fn_error
50354
50355
50356 # as_fn_set_status STATUS
50357 # -----------------------
50358 # Set $? to STATUS, without forking.
50359 as_fn_set_status ()
50360 {
50361   return $1
50362 } # as_fn_set_status
50363
50364 # as_fn_exit STATUS
50365 # -----------------
50366 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
50367 as_fn_exit ()
50368 {
50369   set +e
50370   as_fn_set_status $1
50371   exit $1
50372 } # as_fn_exit
50373
50374 # as_fn_unset VAR
50375 # ---------------
50376 # Portably unset VAR.
50377 as_fn_unset ()
50378 {
50379   { eval $1=; unset $1;}
50380 }
50381 as_unset=as_fn_unset
50382 # as_fn_append VAR VALUE
50383 # ----------------------
50384 # Append the text in VALUE to the end of the definition contained in VAR. Take
50385 # advantage of any shell optimizations that allow amortized linear growth over
50386 # repeated appends, instead of the typical quadratic growth present in naive
50387 # implementations.
50388 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
50389   eval 'as_fn_append ()
50390   {
50391     eval $1+=\$2
50392   }'
50393 else
50394   as_fn_append ()
50395   {
50396     eval $1=\$$1\$2
50397   }
50398 fi # as_fn_append
50399
50400 # as_fn_arith ARG...
50401 # ------------------
50402 # Perform arithmetic evaluation on the ARGs, and store the result in the
50403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
50404 # must be portable across $(()) and expr.
50405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
50406   eval 'as_fn_arith ()
50407   {
50408     as_val=$(( $* ))
50409   }'
50410 else
50411   as_fn_arith ()
50412   {
50413     as_val=`expr "$@" || test $? -eq 1`
50414   }
50415 fi # as_fn_arith
50416
50417
50418 if expr a : '\(a\)' >/dev/null 2>&1 &&
50419    test "X`expr 00001 : '.*\(...\)'`" = X001; then
50420   as_expr=expr
50421 else
50422   as_expr=false
50423 fi
50424
50425 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
50426   as_basename=basename
50427 else
50428   as_basename=false
50429 fi
50430
50431 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
50432   as_dirname=dirname
50433 else
50434   as_dirname=false
50435 fi
50436
50437 as_me=`$as_basename -- "$0" ||
50438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50439          X"$0" : 'X\(//\)$' \| \
50440          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
50441 $as_echo X/"$0" |
50442     sed '/^.*\/\([^/][^/]*\)\/*$/{
50443             s//\1/
50444             q
50445           }
50446           /^X\/\(\/\/\)$/{
50447             s//\1/
50448             q
50449           }
50450           /^X\/\(\/\).*/{
50451             s//\1/
50452             q
50453           }
50454           s/.*/./; q'`
50455
50456 # Avoid depending upon Character Ranges.
50457 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50458 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50459 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50460 as_cr_digits='0123456789'
50461 as_cr_alnum=$as_cr_Letters$as_cr_digits
50462
50463 ECHO_C= ECHO_N= ECHO_T=
50464 case `echo -n x` in #(((((
50465 -n*)
50466   case `echo 'xy\c'` in
50467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
50468   xy)  ECHO_C='\c';;
50469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
50470        ECHO_T=' ';;
50471   esac;;
50472 *)
50473   ECHO_N='-n';;
50474 esac
50475
50476 rm -f conf$$ conf$$.exe conf$$.file
50477 if test -d conf$$.dir; then
50478   rm -f conf$$.dir/conf$$.file
50479 else
50480   rm -f conf$$.dir
50481   mkdir conf$$.dir 2>/dev/null
50482 fi
50483 if (echo >conf$$.file) 2>/dev/null; then
50484   if ln -s conf$$.file conf$$ 2>/dev/null; then
50485     as_ln_s='ln -s'
50486     # ... but there are two gotchas:
50487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
50488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
50489     # In both cases, we have to default to `cp -pR'.
50490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
50491       as_ln_s='cp -pR'
50492   elif ln conf$$.file conf$$ 2>/dev/null; then
50493     as_ln_s=ln
50494   else
50495     as_ln_s='cp -pR'
50496   fi
50497 else
50498   as_ln_s='cp -pR'
50499 fi
50500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
50501 rmdir conf$$.dir 2>/dev/null
50502
50503
50504 # as_fn_mkdir_p
50505 # -------------
50506 # Create "$as_dir" as a directory, including parents if necessary.
50507 as_fn_mkdir_p ()
50508 {
50509
50510   case $as_dir in #(
50511   -*) as_dir=./$as_dir;;
50512   esac
50513   test -d "$as_dir" || eval $as_mkdir_p || {
50514     as_dirs=
50515     while :; do
50516       case $as_dir in #(
50517       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
50518       *) as_qdir=$as_dir;;
50519       esac
50520       as_dirs="'$as_qdir' $as_dirs"
50521       as_dir=`$as_dirname -- "$as_dir" ||
50522 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50523          X"$as_dir" : 'X\(//\)[^/]' \| \
50524          X"$as_dir" : 'X\(//\)$' \| \
50525          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
50526 $as_echo X"$as_dir" |
50527     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50528             s//\1/
50529             q
50530           }
50531           /^X\(\/\/\)[^/].*/{
50532             s//\1/
50533             q
50534           }
50535           /^X\(\/\/\)$/{
50536             s//\1/
50537             q
50538           }
50539           /^X\(\/\).*/{
50540             s//\1/
50541             q
50542           }
50543           s/.*/./; q'`
50544       test -d "$as_dir" && break
50545     done
50546     test -z "$as_dirs" || eval "mkdir $as_dirs"
50547   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
50548
50549
50550 } # as_fn_mkdir_p
50551 if mkdir -p . 2>/dev/null; then
50552   as_mkdir_p='mkdir -p "$as_dir"'
50553 else
50554   test -d ./-p && rmdir ./-p
50555   as_mkdir_p=false
50556 fi
50557
50558
50559 # as_fn_executable_p FILE
50560 # -----------------------
50561 # Test if FILE is an executable regular file.
50562 as_fn_executable_p ()
50563 {
50564   test -f "$1" && test -x "$1"
50565 } # as_fn_executable_p
50566 as_test_x='test -x'
50567 as_executable_p=as_fn_executable_p
50568
50569 # Sed expression to map a string onto a valid CPP name.
50570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
50571
50572 # Sed expression to map a string onto a valid variable name.
50573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
50574
50575
50576 exec 6>&1
50577 ## ----------------------------------- ##
50578 ## Main body of $CONFIG_STATUS script. ##
50579 ## ----------------------------------- ##
50580 _ASEOF
50581 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
50582
50583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50584 # Save the log message, to keep $0 and so on meaningful, and to
50585 # report actual input values of CONFIG_FILES etc. instead of their
50586 # values after options handling.
50587 ac_log="
50588 This file was extended by GnuTLS $as_me 3.3.5, which was
50589 generated by GNU Autoconf 2.69.  Invocation command line was
50590
50591   CONFIG_FILES    = $CONFIG_FILES
50592   CONFIG_HEADERS  = $CONFIG_HEADERS
50593   CONFIG_LINKS    = $CONFIG_LINKS
50594   CONFIG_COMMANDS = $CONFIG_COMMANDS
50595   $ $0 $@
50596
50597 on `(hostname || uname -n) 2>/dev/null | sed 1q`
50598 "
50599
50600 _ACEOF
50601
50602 case $ac_config_files in *"
50603 "*) set x $ac_config_files; shift; ac_config_files=$*;;
50604 esac
50605
50606 case $ac_config_headers in *"
50607 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
50608 esac
50609
50610
50611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50612 # Files that config.status was made for.
50613 config_files="$ac_config_files"
50614 config_headers="$ac_config_headers"
50615 config_links="$ac_config_links"
50616 config_commands="$ac_config_commands"
50617
50618 _ACEOF
50619
50620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50621 ac_cs_usage="\
50622 \`$as_me' instantiates files and other configuration actions
50623 from templates according to the current configuration.  Unless the files
50624 and actions are specified as TAGs, all are instantiated by default.
50625
50626 Usage: $0 [OPTION]... [TAG]...
50627
50628   -h, --help       print this help, then exit
50629   -V, --version    print version number and configuration settings, then exit
50630       --config     print configuration, then exit
50631   -q, --quiet, --silent
50632                    do not print progress messages
50633   -d, --debug      don't remove temporary files
50634       --recheck    update $as_me by reconfiguring in the same conditions
50635       --file=FILE[:TEMPLATE]
50636                    instantiate the configuration file FILE
50637       --header=FILE[:TEMPLATE]
50638                    instantiate the configuration header FILE
50639
50640 Configuration files:
50641 $config_files
50642
50643 Configuration headers:
50644 $config_headers
50645
50646 Configuration links:
50647 $config_links
50648
50649 Configuration commands:
50650 $config_commands
50651
50652 Report bugs to <bugs@gnutls.org>."
50653
50654 _ACEOF
50655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50656 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
50657 ac_cs_version="\\
50658 GnuTLS config.status 3.3.5
50659 configured by $0, generated by GNU Autoconf 2.69,
50660   with options \\"\$ac_cs_config\\"
50661
50662 Copyright (C) 2012 Free Software Foundation, Inc.
50663 This config.status script is free software; the Free Software Foundation
50664 gives unlimited permission to copy, distribute and modify it."
50665
50666 ac_pwd='$ac_pwd'
50667 srcdir='$srcdir'
50668 INSTALL='$INSTALL'
50669 MKDIR_P='$MKDIR_P'
50670 AWK='$AWK'
50671 test -n "\$AWK" || AWK=awk
50672 _ACEOF
50673
50674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50675 # The default lists apply if the user does not specify any file.
50676 ac_need_defaults=:
50677 while test $# != 0
50678 do
50679   case $1 in
50680   --*=?*)
50681     ac_option=`expr "X$1" : 'X\([^=]*\)='`
50682     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
50683     ac_shift=:
50684     ;;
50685   --*=)
50686     ac_option=`expr "X$1" : 'X\([^=]*\)='`
50687     ac_optarg=
50688     ac_shift=:
50689     ;;
50690   *)
50691     ac_option=$1
50692     ac_optarg=$2
50693     ac_shift=shift
50694     ;;
50695   esac
50696
50697   case $ac_option in
50698   # Handling of the options.
50699   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50700     ac_cs_recheck=: ;;
50701   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
50702     $as_echo "$ac_cs_version"; exit ;;
50703   --config | --confi | --conf | --con | --co | --c )
50704     $as_echo "$ac_cs_config"; exit ;;
50705   --debug | --debu | --deb | --de | --d | -d )
50706     debug=: ;;
50707   --file | --fil | --fi | --f )
50708     $ac_shift
50709     case $ac_optarg in
50710     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
50711     '') as_fn_error $? "missing file argument" ;;
50712     esac
50713     as_fn_append CONFIG_FILES " '$ac_optarg'"
50714     ac_need_defaults=false;;
50715   --header | --heade | --head | --hea )
50716     $ac_shift
50717     case $ac_optarg in
50718     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
50719     esac
50720     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
50721     ac_need_defaults=false;;
50722   --he | --h)
50723     # Conflict between --help and --header
50724     as_fn_error $? "ambiguous option: \`$1'
50725 Try \`$0 --help' for more information.";;
50726   --help | --hel | -h )
50727     $as_echo "$ac_cs_usage"; exit ;;
50728   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50729   | -silent | --silent | --silen | --sile | --sil | --si | --s)
50730     ac_cs_silent=: ;;
50731
50732   # This is an error.
50733   -*) as_fn_error $? "unrecognized option: \`$1'
50734 Try \`$0 --help' for more information." ;;
50735
50736   *) as_fn_append ac_config_targets " $1"
50737      ac_need_defaults=false ;;
50738
50739   esac
50740   shift
50741 done
50742
50743 ac_configure_extra_args=
50744
50745 if $ac_cs_silent; then
50746   exec 6>/dev/null
50747   ac_configure_extra_args="$ac_configure_extra_args --silent"
50748 fi
50749
50750 _ACEOF
50751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50752 if \$ac_cs_recheck; then
50753   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50754   shift
50755   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
50756   CONFIG_SHELL='$SHELL'
50757   export CONFIG_SHELL
50758   exec "\$@"
50759 fi
50760
50761 _ACEOF
50762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50763 exec 5>>config.log
50764 {
50765   echo
50766   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50767 ## Running $as_me. ##
50768 _ASBOX
50769   $as_echo "$ac_log"
50770 } >&5
50771
50772 _ACEOF
50773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50774 #
50775 # INIT-COMMANDS
50776 #
50777 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
50778 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
50779     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
50780     # from automake < 1.5.
50781     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
50782     # Capture the value of LINGUAS because we need it to compute CATALOGS.
50783     LINGUAS="${LINGUAS-%UNSET%}"
50784
50785 GNUmakefile=$GNUmakefile
50786
50787
50788 # The HP-UX ksh and POSIX shell print the target directory to stdout
50789 # if CDPATH is set.
50790 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
50791
50792 sed_quote_subst='$sed_quote_subst'
50793 double_quote_subst='$double_quote_subst'
50794 delay_variable_subst='$delay_variable_subst'
50795 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
50796 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
50797 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
50798 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
50799 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
50800 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
50801 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
50802 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
50803 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
50804 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
50805 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
50806 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
50807 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
50808 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
50809 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
50810 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
50811 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
50812 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
50813 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
50814 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
50815 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
50816 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
50817 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
50818 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
50819 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
50820 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
50821 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
50822 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
50823 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
50824 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
50825 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
50826 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
50827 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
50828 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
50829 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
50830 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
50831 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
50832 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
50833 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
50834 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
50835 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
50836 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
50837 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
50838 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
50839 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
50840 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
50841 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
50842 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
50843 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
50844 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
50845 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
50846 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
50847 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
50848 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
50849 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
50850 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
50851 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"`'
50852 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
50853 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
50854 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
50855 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
50856 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
50857 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
50858 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
50859 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
50860 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
50861 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
50862 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
50863 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
50864 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
50865 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
50866 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
50867 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
50868 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
50869 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
50870 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
50871 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
50872 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
50873 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
50874 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
50875 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
50876 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
50877 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
50878 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
50879 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
50880 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
50881 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
50882 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
50883 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
50884 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
50885 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
50886 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
50887 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
50888 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
50889 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
50890 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
50891 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
50892 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
50893 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
50894 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
50895 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
50896 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
50897 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
50898 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
50899 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
50900 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
50901 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
50902 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
50903 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
50904 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
50905 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
50906 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
50907 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
50908 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
50909 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
50910 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
50911 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
50912 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
50913 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
50914 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
50915 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
50916 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
50917 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
50918 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
50919 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
50920 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
50921 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
50922 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
50923 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
50924 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
50925 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
50926 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
50927 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
50928 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
50929 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
50930 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
50931 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
50932 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
50933 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50934 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50935 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
50936 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
50937 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
50938 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
50939 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
50940 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
50941 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
50942 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
50943 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
50944 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
50945 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
50946 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
50947 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50948 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50949 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50950 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50951 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50952 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50953 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
50954 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
50955 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
50956 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
50957 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
50958 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
50959 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
50960 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
50961 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
50962 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
50963 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
50964 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
50965 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
50966 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50967 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
50968 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
50969 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50970 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50971 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
50972 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
50973 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
50974 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
50975 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
50976 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
50977 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
50978 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
50979
50980 LTCC='$LTCC'
50981 LTCFLAGS='$LTCFLAGS'
50982 compiler='$compiler_DEFAULT'
50983
50984 # A function that is used when there is no print builtin or printf.
50985 func_fallback_echo ()
50986 {
50987   eval 'cat <<_LTECHO_EOF
50988 \$1
50989 _LTECHO_EOF'
50990 }
50991
50992 # Quote evaled strings.
50993 for var in SHELL \
50994 ECHO \
50995 PATH_SEPARATOR \
50996 SED \
50997 GREP \
50998 EGREP \
50999 FGREP \
51000 LD \
51001 NM \
51002 LN_S \
51003 lt_SP2NL \
51004 lt_NL2SP \
51005 reload_flag \
51006 OBJDUMP \
51007 deplibs_check_method \
51008 file_magic_cmd \
51009 file_magic_glob \
51010 want_nocaseglob \
51011 DLLTOOL \
51012 sharedlib_from_linklib_cmd \
51013 AR \
51014 AR_FLAGS \
51015 archiver_list_spec \
51016 STRIP \
51017 RANLIB \
51018 CC \
51019 CFLAGS \
51020 compiler \
51021 lt_cv_sys_global_symbol_pipe \
51022 lt_cv_sys_global_symbol_to_cdecl \
51023 lt_cv_sys_global_symbol_to_c_name_address \
51024 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
51025 nm_file_list_spec \
51026 lt_prog_compiler_no_builtin_flag \
51027 lt_prog_compiler_pic \
51028 lt_prog_compiler_wl \
51029 lt_prog_compiler_static \
51030 lt_cv_prog_compiler_c_o \
51031 need_locks \
51032 MANIFEST_TOOL \
51033 DSYMUTIL \
51034 NMEDIT \
51035 LIPO \
51036 OTOOL \
51037 OTOOL64 \
51038 shrext_cmds \
51039 export_dynamic_flag_spec \
51040 whole_archive_flag_spec \
51041 compiler_needs_object \
51042 with_gnu_ld \
51043 allow_undefined_flag \
51044 no_undefined_flag \
51045 hardcode_libdir_flag_spec \
51046 hardcode_libdir_separator \
51047 exclude_expsyms \
51048 include_expsyms \
51049 file_list_spec \
51050 variables_saved_for_relink \
51051 libname_spec \
51052 library_names_spec \
51053 soname_spec \
51054 install_override_mode \
51055 finish_eval \
51056 old_striplib \
51057 striplib \
51058 compiler_lib_search_dirs \
51059 predep_objects \
51060 postdep_objects \
51061 predeps \
51062 postdeps \
51063 compiler_lib_search_path \
51064 LD_CXX \
51065 reload_flag_CXX \
51066 compiler_CXX \
51067 lt_prog_compiler_no_builtin_flag_CXX \
51068 lt_prog_compiler_pic_CXX \
51069 lt_prog_compiler_wl_CXX \
51070 lt_prog_compiler_static_CXX \
51071 lt_cv_prog_compiler_c_o_CXX \
51072 export_dynamic_flag_spec_CXX \
51073 whole_archive_flag_spec_CXX \
51074 compiler_needs_object_CXX \
51075 with_gnu_ld_CXX \
51076 allow_undefined_flag_CXX \
51077 no_undefined_flag_CXX \
51078 hardcode_libdir_flag_spec_CXX \
51079 hardcode_libdir_separator_CXX \
51080 exclude_expsyms_CXX \
51081 include_expsyms_CXX \
51082 file_list_spec_CXX \
51083 compiler_lib_search_dirs_CXX \
51084 predep_objects_CXX \
51085 postdep_objects_CXX \
51086 predeps_CXX \
51087 postdeps_CXX \
51088 compiler_lib_search_path_CXX; do
51089     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
51090     *[\\\\\\\`\\"\\\$]*)
51091       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
51092       ;;
51093     *)
51094       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
51095       ;;
51096     esac
51097 done
51098
51099 # Double-quote double-evaled strings.
51100 for var in reload_cmds \
51101 old_postinstall_cmds \
51102 old_postuninstall_cmds \
51103 old_archive_cmds \
51104 extract_expsyms_cmds \
51105 old_archive_from_new_cmds \
51106 old_archive_from_expsyms_cmds \
51107 archive_cmds \
51108 archive_expsym_cmds \
51109 module_cmds \
51110 module_expsym_cmds \
51111 export_symbols_cmds \
51112 prelink_cmds \
51113 postlink_cmds \
51114 postinstall_cmds \
51115 postuninstall_cmds \
51116 finish_cmds \
51117 sys_lib_search_path_spec \
51118 sys_lib_dlsearch_path_spec \
51119 reload_cmds_CXX \
51120 old_archive_cmds_CXX \
51121 old_archive_from_new_cmds_CXX \
51122 old_archive_from_expsyms_cmds_CXX \
51123 archive_cmds_CXX \
51124 archive_expsym_cmds_CXX \
51125 module_cmds_CXX \
51126 module_expsym_cmds_CXX \
51127 export_symbols_cmds_CXX \
51128 prelink_cmds_CXX \
51129 postlink_cmds_CXX; do
51130     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
51131     *[\\\\\\\`\\"\\\$]*)
51132       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
51133       ;;
51134     *)
51135       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
51136       ;;
51137     esac
51138 done
51139
51140 ac_aux_dir='$ac_aux_dir'
51141 xsi_shell='$xsi_shell'
51142 lt_shell_append='$lt_shell_append'
51143
51144 # See if we are running on zsh, and set the options which allow our
51145 # commands through without removal of \ escapes INIT.
51146 if test -n "\${ZSH_VERSION+set}" ; then
51147    setopt NO_GLOB_SUBST
51148 fi
51149
51150
51151     PACKAGE='$PACKAGE'
51152     VERSION='$VERSION'
51153     TIMESTAMP='$TIMESTAMP'
51154     RM='$RM'
51155     ofile='$ofile'
51156
51157
51158
51159
51160
51161
51162 _ACEOF
51163
51164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51165
51166 # Handling of arguments.
51167 for ac_config_target in $ac_config_targets
51168 do
51169   case $ac_config_target in
51170     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
51171     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51172     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
51173     "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
51174     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
51175     "src/libopts/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopts/Makefile" ;;
51176     "guile/pre-inst-guile") CONFIG_FILES="$CONFIG_FILES guile/pre-inst-guile" ;;
51177     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51178     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
51179     "doc/credentials/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/Makefile" ;;
51180     "doc/credentials/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/openpgp/Makefile" ;;
51181     "doc/credentials/srp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/srp/Makefile" ;;
51182     "doc/credentials/x509/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/x509/Makefile" ;;
51183     "doc/cyclo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/cyclo/Makefile" ;;
51184     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
51185     "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
51186     "doc/latex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/latex/Makefile" ;;
51187     "doc/manpages/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpages/Makefile" ;;
51188     "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
51189     "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;;
51190     "doc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/scripts/Makefile" ;;
51191     "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;;
51192     "extra/includes/Makefile") CONFIG_FILES="$CONFIG_FILES extra/includes/Makefile" ;;
51193     "libdane/Makefile") CONFIG_FILES="$CONFIG_FILES libdane/Makefile" ;;
51194     "libdane/includes/Makefile") CONFIG_FILES="$CONFIG_FILES libdane/includes/Makefile" ;;
51195     "libdane/gnutls-dane.pc") CONFIG_FILES="$CONFIG_FILES libdane/gnutls-dane.pc" ;;
51196     "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
51197     "gl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gl/tests/Makefile" ;;
51198     "guile/Makefile") CONFIG_FILES="$CONFIG_FILES guile/Makefile" ;;
51199     "guile/modules/Makefile") CONFIG_FILES="$CONFIG_FILES guile/modules/Makefile" ;;
51200     "guile/src/Makefile") CONFIG_FILES="$CONFIG_FILES guile/src/Makefile" ;;
51201     "guile/tests/Makefile") CONFIG_FILES="$CONFIG_FILES guile/tests/Makefile" ;;
51202     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
51203     "lib/accelerated/Makefile") CONFIG_FILES="$CONFIG_FILES lib/accelerated/Makefile" ;;
51204     "lib/accelerated/x86/Makefile") CONFIG_FILES="$CONFIG_FILES lib/accelerated/x86/Makefile" ;;
51205     "lib/algorithms/Makefile") CONFIG_FILES="$CONFIG_FILES lib/algorithms/Makefile" ;;
51206     "lib/auth/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
51207     "lib/ext/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ext/Makefile" ;;
51208     "lib/extras/Makefile") CONFIG_FILES="$CONFIG_FILES lib/extras/Makefile" ;;
51209     "lib/gnutls.pc") CONFIG_FILES="$CONFIG_FILES lib/gnutls.pc" ;;
51210     "lib/includes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/includes/Makefile" ;;
51211     "lib/includes/gnutls/gnutls.h") CONFIG_FILES="$CONFIG_FILES lib/includes/gnutls/gnutls.h" ;;
51212     "lib/minitasn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/minitasn1/Makefile" ;;
51213     "lib/nettle/Makefile") CONFIG_FILES="$CONFIG_FILES lib/nettle/Makefile" ;;
51214     "lib/opencdk/Makefile") CONFIG_FILES="$CONFIG_FILES lib/opencdk/Makefile" ;;
51215     "lib/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/openpgp/Makefile" ;;
51216     "lib/x509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/x509/Makefile" ;;
51217     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
51218     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
51219     "src/crywrap/Makefile") CONFIG_FILES="$CONFIG_FILES src/crywrap/Makefile" ;;
51220     "src/gl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gl/Makefile" ;;
51221     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
51222     "tests/cert-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cert-tests/Makefile" ;;
51223     "tests/dsa/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dsa/Makefile" ;;
51224     "tests/dtls/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dtls/Makefile" ;;
51225     "tests/srp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/srp/Makefile" ;;
51226     "tests/ecdsa/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ecdsa/Makefile" ;;
51227     "tests/key-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/key-tests/Makefile" ;;
51228     "tests/openpgp-certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp-certs/Makefile" ;;
51229     "tests/pkcs1-padding/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs1-padding/Makefile" ;;
51230     "tests/pkcs12-decode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs12-decode/Makefile" ;;
51231     "tests/pkcs8-decode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs8-decode/Makefile" ;;
51232     "tests/rsa-md5-collision/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rsa-md5-collision/Makefile" ;;
51233     "tests/safe-renegotiation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/safe-renegotiation/Makefile" ;;
51234     "tests/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/scripts/Makefile" ;;
51235     "tests/sha2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sha2/Makefile" ;;
51236     "tests/slow/Makefile") CONFIG_FILES="$CONFIG_FILES tests/slow/Makefile" ;;
51237     "tests/suite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/suite/Makefile" ;;
51238     "tests/userid/Makefile") CONFIG_FILES="$CONFIG_FILES tests/userid/Makefile" ;;
51239
51240   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
51241   esac
51242 done
51243
51244
51245 # If the user did not use the arguments to specify the items to instantiate,
51246 # then the envvar interface is used.  Set only those that are not.
51247 # We use the long form for the default assignment because of an extremely
51248 # bizarre bug on SunOS 4.1.3.
51249 if $ac_need_defaults; then
51250   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51251   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51252   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
51253   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51254 fi
51255
51256 # Have a temporary directory for convenience.  Make it in the build tree
51257 # simply because there is no reason against having it here, and in addition,
51258 # creating and moving files from /tmp can sometimes cause problems.
51259 # Hook for its removal unless debugging.
51260 # Note that there is a small window in which the directory will not be cleaned:
51261 # after its creation but before its name has been assigned to `$tmp'.
51262 $debug ||
51263 {
51264   tmp= ac_tmp=
51265   trap 'exit_status=$?
51266   : "${ac_tmp:=$tmp}"
51267   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
51268 ' 0
51269   trap 'as_fn_exit 1' 1 2 13 15
51270 }
51271 # Create a (secure) tmp directory for tmp files.
51272
51273 {
51274   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51275   test -d "$tmp"
51276 }  ||
51277 {
51278   tmp=./conf$$-$RANDOM
51279   (umask 077 && mkdir "$tmp")
51280 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
51281 ac_tmp=$tmp
51282
51283 # Set up the scripts for CONFIG_FILES section.
51284 # No need to generate them if there are no CONFIG_FILES.
51285 # This happens for instance with `./config.status config.h'.
51286 if test -n "$CONFIG_FILES"; then
51287
51288
51289 ac_cr=`echo X | tr X '\015'`
51290 # On cygwin, bash can eat \r inside `` if the user requested igncr.
51291 # But we know of no other shell where ac_cr would be empty at this
51292 # point, so we can use a bashism as a fallback.
51293 if test "x$ac_cr" = x; then
51294   eval ac_cr=\$\'\\r\'
51295 fi
51296 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
51297 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
51298   ac_cs_awk_cr='\\r'
51299 else
51300   ac_cs_awk_cr=$ac_cr
51301 fi
51302
51303 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
51304 _ACEOF
51305
51306
51307 {
51308   echo "cat >conf$$subs.awk <<_ACEOF" &&
51309   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
51310   echo "_ACEOF"
51311 } >conf$$subs.sh ||
51312   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
51313 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
51314 ac_delim='%!_!# '
51315 for ac_last_try in false false false false false :; do
51316   . ./conf$$subs.sh ||
51317     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
51318
51319   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
51320   if test $ac_delim_n = $ac_delim_num; then
51321     break
51322   elif $ac_last_try; then
51323     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
51324   else
51325     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51326   fi
51327 done
51328 rm -f conf$$subs.sh
51329
51330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51331 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
51332 _ACEOF
51333 sed -n '
51334 h
51335 s/^/S["/; s/!.*/"]=/
51336 p
51337 g
51338 s/^[^!]*!//
51339 :repl
51340 t repl
51341 s/'"$ac_delim"'$//
51342 t delim
51343 :nl
51344 h
51345 s/\(.\{148\}\)..*/\1/
51346 t more1
51347 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
51348 p
51349 n
51350 b repl
51351 :more1
51352 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
51353 p
51354 g
51355 s/.\{148\}//
51356 t nl
51357 :delim
51358 h
51359 s/\(.\{148\}\)..*/\1/
51360 t more2
51361 s/["\\]/\\&/g; s/^/"/; s/$/"/
51362 p
51363 b
51364 :more2
51365 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
51366 p
51367 g
51368 s/.\{148\}//
51369 t delim
51370 ' <conf$$subs.awk | sed '
51371 /^[^""]/{
51372   N
51373   s/\n//
51374 }
51375 ' >>$CONFIG_STATUS || ac_write_fail=1
51376 rm -f conf$$subs.awk
51377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51378 _ACAWK
51379 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
51380   for (key in S) S_is_set[key] = 1
51381   FS = "\a"
51382
51383 }
51384 {
51385   line = $ 0
51386   nfields = split(line, field, "@")
51387   substed = 0
51388   len = length(field[1])
51389   for (i = 2; i < nfields; i++) {
51390     key = field[i]
51391     keylen = length(key)
51392     if (S_is_set[key]) {
51393       value = S[key]
51394       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
51395       len += length(value) + length(field[++i])
51396       substed = 1
51397     } else
51398       len += 1 + keylen
51399   }
51400
51401   print line
51402 }
51403
51404 _ACAWK
51405 _ACEOF
51406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51407 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
51408   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
51409 else
51410   cat
51411 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
51412   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
51413 _ACEOF
51414
51415 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
51416 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
51417 # trailing colons and then remove the whole line if VPATH becomes empty
51418 # (actually we leave an empty line to preserve line numbers).
51419 if test "x$srcdir" = x.; then
51420   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
51421 h
51422 s///
51423 s/^/:/
51424 s/[      ]*$/:/
51425 s/:\$(srcdir):/:/g
51426 s/:\${srcdir}:/:/g
51427 s/:@srcdir@:/:/g
51428 s/^:*//
51429 s/:*$//
51430 x
51431 s/\(=[   ]*\).*/\1/
51432 G
51433 s/\n//
51434 s/^[^=]*=[       ]*$//
51435 }'
51436 fi
51437
51438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51439 fi # test -n "$CONFIG_FILES"
51440
51441 # Set up the scripts for CONFIG_HEADERS section.
51442 # No need to generate them if there are no CONFIG_HEADERS.
51443 # This happens for instance with `./config.status Makefile'.
51444 if test -n "$CONFIG_HEADERS"; then
51445 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
51446 BEGIN {
51447 _ACEOF
51448
51449 # Transform confdefs.h into an awk script `defines.awk', embedded as
51450 # here-document in config.status, that substitutes the proper values into
51451 # config.h.in to produce config.h.
51452
51453 # Create a delimiter string that does not exist in confdefs.h, to ease
51454 # handling of long lines.
51455 ac_delim='%!_!# '
51456 for ac_last_try in false false :; do
51457   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
51458   if test -z "$ac_tt"; then
51459     break
51460   elif $ac_last_try; then
51461     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
51462   else
51463     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51464   fi
51465 done
51466
51467 # For the awk script, D is an array of macro values keyed by name,
51468 # likewise P contains macro parameters if any.  Preserve backslash
51469 # newline sequences.
51470
51471 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
51472 sed -n '
51473 s/.\{148\}/&'"$ac_delim"'/g
51474 t rset
51475 :rset
51476 s/^[     ]*#[    ]*define[       ][      ]*/ /
51477 t def
51478 d
51479 :def
51480 s/\\$//
51481 t bsnl
51482 s/["\\]/\\&/g
51483 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
51484 D["\1"]=" \3"/p
51485 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
51486 d
51487 :bsnl
51488 s/["\\]/\\&/g
51489 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
51490 D["\1"]=" \3\\\\\\n"\\/p
51491 t cont
51492 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
51493 t cont
51494 d
51495 :cont
51496 n
51497 s/.\{148\}/&'"$ac_delim"'/g
51498 t clear
51499 :clear
51500 s/\\$//
51501 t bsnlc
51502 s/["\\]/\\&/g; s/^/"/; s/$/"/p
51503 d
51504 :bsnlc
51505 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
51506 b cont
51507 ' <confdefs.h | sed '
51508 s/'"$ac_delim"'/"\\\
51509 "/g' >>$CONFIG_STATUS || ac_write_fail=1
51510
51511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51512   for (key in D) D_is_set[key] = 1
51513   FS = "\a"
51514 }
51515 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
51516   line = \$ 0
51517   split(line, arg, " ")
51518   if (arg[1] == "#") {
51519     defundef = arg[2]
51520     mac1 = arg[3]
51521   } else {
51522     defundef = substr(arg[1], 2)
51523     mac1 = arg[2]
51524   }
51525   split(mac1, mac2, "(") #)
51526   macro = mac2[1]
51527   prefix = substr(line, 1, index(line, defundef) - 1)
51528   if (D_is_set[macro]) {
51529     # Preserve the white space surrounding the "#".
51530     print prefix "define", macro P[macro] D[macro]
51531     next
51532   } else {
51533     # Replace #undef with comments.  This is necessary, for example,
51534     # in the case of _POSIX_SOURCE, which is predefined and required
51535     # on some systems where configure will not decide to define it.
51536     if (defundef == "undef") {
51537       print "/*", prefix defundef, macro, "*/"
51538       next
51539     }
51540   }
51541 }
51542 { print }
51543 _ACAWK
51544 _ACEOF
51545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51546   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
51547 fi # test -n "$CONFIG_HEADERS"
51548
51549
51550 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
51551 shift
51552 for ac_tag
51553 do
51554   case $ac_tag in
51555   :[FHLC]) ac_mode=$ac_tag; continue;;
51556   esac
51557   case $ac_mode$ac_tag in
51558   :[FHL]*:*);;
51559   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
51560   :[FH]-) ac_tag=-:-;;
51561   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
51562   esac
51563   ac_save_IFS=$IFS
51564   IFS=:
51565   set x $ac_tag
51566   IFS=$ac_save_IFS
51567   shift
51568   ac_file=$1
51569   shift
51570
51571   case $ac_mode in
51572   :L) ac_source=$1;;
51573   :[FH])
51574     ac_file_inputs=
51575     for ac_f
51576     do
51577       case $ac_f in
51578       -) ac_f="$ac_tmp/stdin";;
51579       *) # Look for the file first in the build tree, then in the source tree
51580          # (if the path is not absolute).  The absolute path cannot be DOS-style,
51581          # because $ac_f cannot contain `:'.
51582          test -f "$ac_f" ||
51583            case $ac_f in
51584            [\\/$]*) false;;
51585            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
51586            esac ||
51587            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
51588       esac
51589       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
51590       as_fn_append ac_file_inputs " '$ac_f'"
51591     done
51592
51593     # Let's still pretend it is `configure' which instantiates (i.e., don't
51594     # use $as_me), people would be surprised to read:
51595     #    /* config.h.  Generated by config.status.  */
51596     configure_input='Generated from '`
51597           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
51598         `' by configure.'
51599     if test x"$ac_file" != x-; then
51600       configure_input="$ac_file.  $configure_input"
51601       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
51602 $as_echo "$as_me: creating $ac_file" >&6;}
51603     fi
51604     # Neutralize special characters interpreted by sed in replacement strings.
51605     case $configure_input in #(
51606     *\&* | *\|* | *\\* )
51607        ac_sed_conf_input=`$as_echo "$configure_input" |
51608        sed 's/[\\\\&|]/\\\\&/g'`;; #(
51609     *) ac_sed_conf_input=$configure_input;;
51610     esac
51611
51612     case $ac_tag in
51613     *:-:* | *:-) cat >"$ac_tmp/stdin" \
51614       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
51615     esac
51616     ;;
51617   esac
51618
51619   ac_dir=`$as_dirname -- "$ac_file" ||
51620 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51621          X"$ac_file" : 'X\(//\)[^/]' \| \
51622          X"$ac_file" : 'X\(//\)$' \| \
51623          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
51624 $as_echo X"$ac_file" |
51625     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51626             s//\1/
51627             q
51628           }
51629           /^X\(\/\/\)[^/].*/{
51630             s//\1/
51631             q
51632           }
51633           /^X\(\/\/\)$/{
51634             s//\1/
51635             q
51636           }
51637           /^X\(\/\).*/{
51638             s//\1/
51639             q
51640           }
51641           s/.*/./; q'`
51642   as_dir="$ac_dir"; as_fn_mkdir_p
51643   ac_builddir=.
51644
51645 case "$ac_dir" in
51646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
51647 *)
51648   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
51649   # A ".." for each directory in $ac_dir_suffix.
51650   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
51651   case $ac_top_builddir_sub in
51652   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
51653   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
51654   esac ;;
51655 esac
51656 ac_abs_top_builddir=$ac_pwd
51657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
51658 # for backward compatibility:
51659 ac_top_builddir=$ac_top_build_prefix
51660
51661 case $srcdir in
51662   .)  # We are building in place.
51663     ac_srcdir=.
51664     ac_top_srcdir=$ac_top_builddir_sub
51665     ac_abs_top_srcdir=$ac_pwd ;;
51666   [\\/]* | ?:[\\/]* )  # Absolute name.
51667     ac_srcdir=$srcdir$ac_dir_suffix;
51668     ac_top_srcdir=$srcdir
51669     ac_abs_top_srcdir=$srcdir ;;
51670   *) # Relative name.
51671     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
51672     ac_top_srcdir=$ac_top_build_prefix$srcdir
51673     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
51674 esac
51675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
51676
51677
51678   case $ac_mode in
51679   :F)
51680   #
51681   # CONFIG_FILE
51682   #
51683
51684   case $INSTALL in
51685   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51686   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
51687   esac
51688   ac_MKDIR_P=$MKDIR_P
51689   case $MKDIR_P in
51690   [\\/$]* | ?:[\\/]* ) ;;
51691   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
51692   esac
51693 _ACEOF
51694
51695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51696 # If the template does not know about datarootdir, expand it.
51697 # FIXME: This hack should be removed a few years after 2.60.
51698 ac_datarootdir_hack=; ac_datarootdir_seen=
51699 ac_sed_dataroot='
51700 /datarootdir/ {
51701   p
51702   q
51703 }
51704 /@datadir@/p
51705 /@docdir@/p
51706 /@infodir@/p
51707 /@localedir@/p
51708 /@mandir@/p'
51709 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
51710 *datarootdir*) ac_datarootdir_seen=yes;;
51711 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
51712   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
51713 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
51714 _ACEOF
51715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51716   ac_datarootdir_hack='
51717   s&@datadir@&$datadir&g
51718   s&@docdir@&$docdir&g
51719   s&@infodir@&$infodir&g
51720   s&@localedir@&$localedir&g
51721   s&@mandir@&$mandir&g
51722   s&\\\${datarootdir}&$datarootdir&g' ;;
51723 esac
51724 _ACEOF
51725
51726 # Neutralize VPATH when `$srcdir' = `.'.
51727 # Shell code in configure.ac might set extrasub.
51728 # FIXME: do we really want to maintain this feature?
51729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51730 ac_sed_extra="$ac_vpsub
51731 $extrasub
51732 _ACEOF
51733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51734 :t
51735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51736 s|@configure_input@|$ac_sed_conf_input|;t t
51737 s&@top_builddir@&$ac_top_builddir_sub&;t t
51738 s&@top_build_prefix@&$ac_top_build_prefix&;t t
51739 s&@srcdir@&$ac_srcdir&;t t
51740 s&@abs_srcdir@&$ac_abs_srcdir&;t t
51741 s&@top_srcdir@&$ac_top_srcdir&;t t
51742 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
51743 s&@builddir@&$ac_builddir&;t t
51744 s&@abs_builddir@&$ac_abs_builddir&;t t
51745 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
51746 s&@INSTALL@&$ac_INSTALL&;t t
51747 s&@MKDIR_P@&$ac_MKDIR_P&;t t
51748 $ac_datarootdir_hack
51749 "
51750 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
51751   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
51752
51753 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
51754   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
51755   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
51756       "$ac_tmp/out"`; test -z "$ac_out"; } &&
51757   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51758 which seems to be undefined.  Please make sure it is defined" >&5
51759 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51760 which seems to be undefined.  Please make sure it is defined" >&2;}
51761
51762   rm -f "$ac_tmp/stdin"
51763   case $ac_file in
51764   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
51765   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
51766   esac \
51767   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
51768  ;;
51769   :H)
51770   #
51771   # CONFIG_HEADER
51772   #
51773   if test x"$ac_file" != x-; then
51774     {
51775       $as_echo "/* $configure_input  */" \
51776       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
51777     } >"$ac_tmp/config.h" \
51778       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
51779     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
51780       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
51781 $as_echo "$as_me: $ac_file is unchanged" >&6;}
51782     else
51783       rm -f "$ac_file"
51784       mv "$ac_tmp/config.h" "$ac_file" \
51785         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
51786     fi
51787   else
51788     $as_echo "/* $configure_input  */" \
51789       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
51790       || as_fn_error $? "could not create -" "$LINENO" 5
51791   fi
51792 # Compute "$ac_file"'s index in $config_headers.
51793 _am_arg="$ac_file"
51794 _am_stamp_count=1
51795 for _am_header in $config_headers :; do
51796   case $_am_header in
51797     $_am_arg | $_am_arg:* )
51798       break ;;
51799     * )
51800       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
51801   esac
51802 done
51803 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
51804 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51805          X"$_am_arg" : 'X\(//\)[^/]' \| \
51806          X"$_am_arg" : 'X\(//\)$' \| \
51807          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
51808 $as_echo X"$_am_arg" |
51809     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51810             s//\1/
51811             q
51812           }
51813           /^X\(\/\/\)[^/].*/{
51814             s//\1/
51815             q
51816           }
51817           /^X\(\/\/\)$/{
51818             s//\1/
51819             q
51820           }
51821           /^X\(\/\).*/{
51822             s//\1/
51823             q
51824           }
51825           s/.*/./; q'`/stamp-h$_am_stamp_count
51826  ;;
51827   :L)
51828   #
51829   # CONFIG_LINK
51830   #
51831
51832   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
51833     :
51834   else
51835     # Prefer the file from the source tree if names are identical.
51836     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
51837       ac_source=$srcdir/$ac_source
51838     fi
51839
51840     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
51841 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
51842
51843     if test ! -r "$ac_source"; then
51844       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
51845     fi
51846     rm -f "$ac_file"
51847
51848     # Try a relative symlink, then a hard link, then a copy.
51849     case $ac_source in
51850     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
51851         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
51852     esac
51853     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
51854       ln "$ac_source" "$ac_file" 2>/dev/null ||
51855       cp -p "$ac_source" "$ac_file" ||
51856       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
51857   fi
51858  ;;
51859   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
51860 $as_echo "$as_me: executing $ac_file commands" >&6;}
51861  ;;
51862   esac
51863
51864
51865   case $ac_file$ac_mode in
51866     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
51867   # Older Autoconf quotes --file arguments for eval, but not when files
51868   # are listed without --file.  Let's play safe and only enable the eval
51869   # if we detect the quoting.
51870   case $CONFIG_FILES in
51871   *\'*) eval set x "$CONFIG_FILES" ;;
51872   *)   set x $CONFIG_FILES ;;
51873   esac
51874   shift
51875   for mf
51876   do
51877     # Strip MF so we end up with the name of the file.
51878     mf=`echo "$mf" | sed -e 's/:.*$//'`
51879     # Check whether this is an Automake generated Makefile or not.
51880     # We used to match only the files named 'Makefile.in', but
51881     # some people rename them; so instead we look at the file content.
51882     # Grep'ing the first line is not enough: some people post-process
51883     # each Makefile.in and add a new line on top of each file to say so.
51884     # Grep'ing the whole file is not good either: AIX grep has a line
51885     # limit of 2048, but all sed's we know have understand at least 4000.
51886     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
51887       dirpart=`$as_dirname -- "$mf" ||
51888 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51889          X"$mf" : 'X\(//\)[^/]' \| \
51890          X"$mf" : 'X\(//\)$' \| \
51891          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
51892 $as_echo X"$mf" |
51893     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51894             s//\1/
51895             q
51896           }
51897           /^X\(\/\/\)[^/].*/{
51898             s//\1/
51899             q
51900           }
51901           /^X\(\/\/\)$/{
51902             s//\1/
51903             q
51904           }
51905           /^X\(\/\).*/{
51906             s//\1/
51907             q
51908           }
51909           s/.*/./; q'`
51910     else
51911       continue
51912     fi
51913     # Extract the definition of DEPDIR, am__include, and am__quote
51914     # from the Makefile without running 'make'.
51915     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
51916     test -z "$DEPDIR" && continue
51917     am__include=`sed -n 's/^am__include = //p' < "$mf"`
51918     test -z "$am__include" && continue
51919     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
51920     # Find all dependency output files, they are included files with
51921     # $(DEPDIR) in their names.  We invoke sed twice because it is the
51922     # simplest approach to changing $(DEPDIR) to its actual value in the
51923     # expansion.
51924     for file in `sed -n "
51925       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
51926          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
51927       # Make sure the directory exists.
51928       test -f "$dirpart/$file" && continue
51929       fdir=`$as_dirname -- "$file" ||
51930 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51931          X"$file" : 'X\(//\)[^/]' \| \
51932          X"$file" : 'X\(//\)$' \| \
51933          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
51934 $as_echo X"$file" |
51935     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51936             s//\1/
51937             q
51938           }
51939           /^X\(\/\/\)[^/].*/{
51940             s//\1/
51941             q
51942           }
51943           /^X\(\/\/\)$/{
51944             s//\1/
51945             q
51946           }
51947           /^X\(\/\).*/{
51948             s//\1/
51949             q
51950           }
51951           s/.*/./; q'`
51952       as_dir=$dirpart/$fdir; as_fn_mkdir_p
51953       # echo "creating $dirpart/$file"
51954       echo '# dummy' > "$dirpart/$file"
51955     done
51956   done
51957 }
51958  ;;
51959     "po-directories":C)
51960     for ac_file in $CONFIG_FILES; do
51961       # Support "outfile[:infile[:infile...]]"
51962       case "$ac_file" in
51963         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
51964       esac
51965       # PO directories have a Makefile.in generated from Makefile.in.in.
51966       case "$ac_file" in */Makefile.in)
51967         # Adjust a relative srcdir.
51968         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
51969         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
51970         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
51971         # In autoconf-2.13 it is called $ac_given_srcdir.
51972         # In autoconf-2.50 it is called $srcdir.
51973         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
51974         case "$ac_given_srcdir" in
51975           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
51976           /*) top_srcdir="$ac_given_srcdir" ;;
51977           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
51978         esac
51979         # Treat a directory as a PO directory if and only if it has a
51980         # POTFILES.in file. This allows packages to have multiple PO
51981         # directories under different names or in different locations.
51982         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
51983           rm -f "$ac_dir/POTFILES"
51984           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
51985           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
51986           POMAKEFILEDEPS="POTFILES.in"
51987           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
51988           # on $ac_dir but don't depend on user-specified configuration
51989           # parameters.
51990           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
51991             # The LINGUAS file contains the set of available languages.
51992             if test -n "$OBSOLETE_ALL_LINGUAS"; then
51993               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
51994             fi
51995             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
51996             # Hide the ALL_LINGUAS assigment from automake < 1.5.
51997             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
51998             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
51999           else
52000             # The set of available languages was given in configure.in.
52001             # Hide the ALL_LINGUAS assigment from automake < 1.5.
52002             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
52003           fi
52004           # Compute POFILES
52005           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
52006           # Compute UPDATEPOFILES
52007           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
52008           # Compute DUMMYPOFILES
52009           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
52010           # Compute GMOFILES
52011           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
52012           case "$ac_given_srcdir" in
52013             .) srcdirpre= ;;
52014             *) srcdirpre='$(srcdir)/' ;;
52015           esac
52016           POFILES=
52017           UPDATEPOFILES=
52018           DUMMYPOFILES=
52019           GMOFILES=
52020           for lang in $ALL_LINGUAS; do
52021             POFILES="$POFILES $srcdirpre$lang.po"
52022             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
52023             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
52024             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
52025           done
52026           # CATALOGS depends on both $ac_dir and the user's LINGUAS
52027           # environment variable.
52028           INST_LINGUAS=
52029           if test -n "$ALL_LINGUAS"; then
52030             for presentlang in $ALL_LINGUAS; do
52031               useit=no
52032               if test "%UNSET%" != "$LINGUAS"; then
52033                 desiredlanguages="$LINGUAS"
52034               else
52035                 desiredlanguages="$ALL_LINGUAS"
52036               fi
52037               for desiredlang in $desiredlanguages; do
52038                 # Use the presentlang catalog if desiredlang is
52039                 #   a. equal to presentlang, or
52040                 #   b. a variant of presentlang (because in this case,
52041                 #      presentlang can be used as a fallback for messages
52042                 #      which are not translated in the desiredlang catalog).
52043                 case "$desiredlang" in
52044                   "$presentlang"*) useit=yes;;
52045                 esac
52046               done
52047               if test $useit = yes; then
52048                 INST_LINGUAS="$INST_LINGUAS $presentlang"
52049               fi
52050             done
52051           fi
52052           CATALOGS=
52053           if test -n "$INST_LINGUAS"; then
52054             for lang in $INST_LINGUAS; do
52055               CATALOGS="$CATALOGS $lang.gmo"
52056             done
52057           fi
52058           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
52059           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"
52060           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
52061             if test -f "$f"; then
52062               case "$f" in
52063                 *.orig | *.bak | *~) ;;
52064                 *) cat "$f" >> "$ac_dir/Makefile" ;;
52065               esac
52066             fi
52067           done
52068         fi
52069         ;;
52070       esac
52071     done ;;
52072     "libtool":C)
52073
52074     # See if we are running on zsh, and set the options which allow our
52075     # commands through without removal of \ escapes.
52076     if test -n "${ZSH_VERSION+set}" ; then
52077       setopt NO_GLOB_SUBST
52078     fi
52079
52080     cfgfile="${ofile}T"
52081     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
52082     $RM "$cfgfile"
52083
52084     cat <<_LT_EOF >> "$cfgfile"
52085 #! $SHELL
52086
52087 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
52088 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
52089 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
52090 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
52091 #
52092 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
52093 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
52094 #                 Foundation, Inc.
52095 #   Written by Gordon Matzigkeit, 1996
52096 #
52097 #   This file is part of GNU Libtool.
52098 #
52099 # GNU Libtool is free software; you can redistribute it and/or
52100 # modify it under the terms of the GNU General Public License as
52101 # published by the Free Software Foundation; either version 2 of
52102 # the License, or (at your option) any later version.
52103 #
52104 # As a special exception to the GNU General Public License,
52105 # if you distribute this file as part of a program or library that
52106 # is built using GNU Libtool, you may include this file under the
52107 # same distribution terms that you use for the rest of that program.
52108 #
52109 # GNU Libtool is distributed in the hope that it will be useful,
52110 # but WITHOUT ANY WARRANTY; without even the implied warranty of
52111 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
52112 # GNU General Public License for more details.
52113 #
52114 # You should have received a copy of the GNU General Public License
52115 # along with GNU Libtool; see the file COPYING.  If not, a copy
52116 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
52117 # obtained by writing to the Free Software Foundation, Inc.,
52118 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
52119
52120
52121 # The names of the tagged configurations supported by this script.
52122 available_tags="CXX "
52123
52124 # ### BEGIN LIBTOOL CONFIG
52125
52126 # Which release of libtool.m4 was used?
52127 macro_version=$macro_version
52128 macro_revision=$macro_revision
52129
52130 # Whether or not to build static libraries.
52131 build_old_libs=$enable_static
52132
52133 # Whether or not to build shared libraries.
52134 build_libtool_libs=$enable_shared
52135
52136 # What type of objects to build.
52137 pic_mode=$pic_mode
52138
52139 # Whether or not to optimize for fast installation.
52140 fast_install=$enable_fast_install
52141
52142 # Shell to use when invoking shell scripts.
52143 SHELL=$lt_SHELL
52144
52145 # An echo program that protects backslashes.
52146 ECHO=$lt_ECHO
52147
52148 # The PATH separator for the build system.
52149 PATH_SEPARATOR=$lt_PATH_SEPARATOR
52150
52151 # The host system.
52152 host_alias=$host_alias
52153 host=$host
52154 host_os=$host_os
52155
52156 # The build system.
52157 build_alias=$build_alias
52158 build=$build
52159 build_os=$build_os
52160
52161 # A sed program that does not truncate output.
52162 SED=$lt_SED
52163
52164 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
52165 Xsed="\$SED -e 1s/^X//"
52166
52167 # A grep program that handles long lines.
52168 GREP=$lt_GREP
52169
52170 # An ERE matcher.
52171 EGREP=$lt_EGREP
52172
52173 # A literal string matcher.
52174 FGREP=$lt_FGREP
52175
52176 # A BSD- or MS-compatible name lister.
52177 NM=$lt_NM
52178
52179 # Whether we need soft or hard links.
52180 LN_S=$lt_LN_S
52181
52182 # What is the maximum length of a command?
52183 max_cmd_len=$max_cmd_len
52184
52185 # Object file suffix (normally "o").
52186 objext=$ac_objext
52187
52188 # Executable file suffix (normally "").
52189 exeext=$exeext
52190
52191 # whether the shell understands "unset".
52192 lt_unset=$lt_unset
52193
52194 # turn spaces into newlines.
52195 SP2NL=$lt_lt_SP2NL
52196
52197 # turn newlines into spaces.
52198 NL2SP=$lt_lt_NL2SP
52199
52200 # convert \$build file names to \$host format.
52201 to_host_file_cmd=$lt_cv_to_host_file_cmd
52202
52203 # convert \$build files to toolchain format.
52204 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
52205
52206 # An object symbol dumper.
52207 OBJDUMP=$lt_OBJDUMP
52208
52209 # Method to check whether dependent libraries are shared objects.
52210 deplibs_check_method=$lt_deplibs_check_method
52211
52212 # Command to use when deplibs_check_method = "file_magic".
52213 file_magic_cmd=$lt_file_magic_cmd
52214
52215 # How to find potential files when deplibs_check_method = "file_magic".
52216 file_magic_glob=$lt_file_magic_glob
52217
52218 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
52219 want_nocaseglob=$lt_want_nocaseglob
52220
52221 # DLL creation program.
52222 DLLTOOL=$lt_DLLTOOL
52223
52224 # Command to associate shared and link libraries.
52225 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
52226
52227 # The archiver.
52228 AR=$lt_AR
52229
52230 # Flags to create an archive.
52231 AR_FLAGS=$lt_AR_FLAGS
52232
52233 # How to feed a file listing to the archiver.
52234 archiver_list_spec=$lt_archiver_list_spec
52235
52236 # A symbol stripping program.
52237 STRIP=$lt_STRIP
52238
52239 # Commands used to install an old-style archive.
52240 RANLIB=$lt_RANLIB
52241 old_postinstall_cmds=$lt_old_postinstall_cmds
52242 old_postuninstall_cmds=$lt_old_postuninstall_cmds
52243
52244 # Whether to use a lock for old archive extraction.
52245 lock_old_archive_extraction=$lock_old_archive_extraction
52246
52247 # A C compiler.
52248 LTCC=$lt_CC
52249
52250 # LTCC compiler flags.
52251 LTCFLAGS=$lt_CFLAGS
52252
52253 # Take the output of nm and produce a listing of raw symbols and C names.
52254 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
52255
52256 # Transform the output of nm in a proper C declaration.
52257 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
52258
52259 # Transform the output of nm in a C name address pair.
52260 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
52261
52262 # Transform the output of nm in a C name address pair when lib prefix is needed.
52263 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
52264
52265 # Specify filename containing input files for \$NM.
52266 nm_file_list_spec=$lt_nm_file_list_spec
52267
52268 # The root where to search for dependent libraries,and in which our libraries should be installed.
52269 lt_sysroot=$lt_sysroot
52270
52271 # The name of the directory that contains temporary libtool files.
52272 objdir=$objdir
52273
52274 # Used to examine libraries when file_magic_cmd begins with "file".
52275 MAGIC_CMD=$MAGIC_CMD
52276
52277 # Must we lock files when doing compilation?
52278 need_locks=$lt_need_locks
52279
52280 # Manifest tool.
52281 MANIFEST_TOOL=$lt_MANIFEST_TOOL
52282
52283 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
52284 DSYMUTIL=$lt_DSYMUTIL
52285
52286 # Tool to change global to local symbols on Mac OS X.
52287 NMEDIT=$lt_NMEDIT
52288
52289 # Tool to manipulate fat objects and archives on Mac OS X.
52290 LIPO=$lt_LIPO
52291
52292 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
52293 OTOOL=$lt_OTOOL
52294
52295 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
52296 OTOOL64=$lt_OTOOL64
52297
52298 # Old archive suffix (normally "a").
52299 libext=$libext
52300
52301 # Shared library suffix (normally ".so").
52302 shrext_cmds=$lt_shrext_cmds
52303
52304 # The commands to extract the exported symbol list from a shared archive.
52305 extract_expsyms_cmds=$lt_extract_expsyms_cmds
52306
52307 # Variables whose values should be saved in libtool wrapper scripts and
52308 # restored at link time.
52309 variables_saved_for_relink=$lt_variables_saved_for_relink
52310
52311 # Do we need the "lib" prefix for modules?
52312 need_lib_prefix=$need_lib_prefix
52313
52314 # Do we need a version for libraries?
52315 need_version=$need_version
52316
52317 # Library versioning type.
52318 version_type=$version_type
52319
52320 # Shared library runtime path variable.
52321 runpath_var=$runpath_var
52322
52323 # Shared library path variable.
52324 shlibpath_var=$shlibpath_var
52325
52326 # Is shlibpath searched before the hard-coded library search path?
52327 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
52328
52329 # Format of library name prefix.
52330 libname_spec=$lt_libname_spec
52331
52332 # List of archive names.  First name is the real one, the rest are links.
52333 # The last name is the one that the linker finds with -lNAME
52334 library_names_spec=$lt_library_names_spec
52335
52336 # The coded name of the library, if different from the real name.
52337 soname_spec=$lt_soname_spec
52338
52339 # Permission mode override for installation of shared libraries.
52340 install_override_mode=$lt_install_override_mode
52341
52342 # Command to use after installation of a shared archive.
52343 postinstall_cmds=$lt_postinstall_cmds
52344
52345 # Command to use after uninstallation of a shared archive.
52346 postuninstall_cmds=$lt_postuninstall_cmds
52347
52348 # Commands used to finish a libtool library installation in a directory.
52349 finish_cmds=$lt_finish_cmds
52350
52351 # As "finish_cmds", except a single script fragment to be evaled but
52352 # not shown.
52353 finish_eval=$lt_finish_eval
52354
52355 # Whether we should hardcode library paths into libraries.
52356 hardcode_into_libs=$hardcode_into_libs
52357
52358 # Compile-time system search path for libraries.
52359 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
52360
52361 # Run-time system search path for libraries.
52362 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
52363
52364 # Whether dlopen is supported.
52365 dlopen_support=$enable_dlopen
52366
52367 # Whether dlopen of programs is supported.
52368 dlopen_self=$enable_dlopen_self
52369
52370 # Whether dlopen of statically linked programs is supported.
52371 dlopen_self_static=$enable_dlopen_self_static
52372
52373 # Commands to strip libraries.
52374 old_striplib=$lt_old_striplib
52375 striplib=$lt_striplib
52376
52377
52378 # The linker used to build libraries.
52379 LD=$lt_LD
52380
52381 # How to create reloadable object files.
52382 reload_flag=$lt_reload_flag
52383 reload_cmds=$lt_reload_cmds
52384
52385 # Commands used to build an old-style archive.
52386 old_archive_cmds=$lt_old_archive_cmds
52387
52388 # A language specific compiler.
52389 CC=$lt_compiler
52390
52391 # Is the compiler the GNU compiler?
52392 with_gcc=$GCC
52393
52394 # Compiler flag to turn off builtin functions.
52395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
52396
52397 # Additional compiler flags for building library objects.
52398 pic_flag=$lt_lt_prog_compiler_pic
52399
52400 # How to pass a linker flag through the compiler.
52401 wl=$lt_lt_prog_compiler_wl
52402
52403 # Compiler flag to prevent dynamic linking.
52404 link_static_flag=$lt_lt_prog_compiler_static
52405
52406 # Does compiler simultaneously support -c and -o options?
52407 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
52408
52409 # Whether or not to add -lc for building shared libraries.
52410 build_libtool_need_lc=$archive_cmds_need_lc
52411
52412 # Whether or not to disallow shared libs when runtime libs are static.
52413 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
52414
52415 # Compiler flag to allow reflexive dlopens.
52416 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
52417
52418 # Compiler flag to generate shared objects directly from archives.
52419 whole_archive_flag_spec=$lt_whole_archive_flag_spec
52420
52421 # Whether the compiler copes with passing no objects directly.
52422 compiler_needs_object=$lt_compiler_needs_object
52423
52424 # Create an old-style archive from a shared archive.
52425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
52426
52427 # Create a temporary old-style archive to link instead of a shared archive.
52428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
52429
52430 # Commands used to build a shared archive.
52431 archive_cmds=$lt_archive_cmds
52432 archive_expsym_cmds=$lt_archive_expsym_cmds
52433
52434 # Commands used to build a loadable module if different from building
52435 # a shared archive.
52436 module_cmds=$lt_module_cmds
52437 module_expsym_cmds=$lt_module_expsym_cmds
52438
52439 # Whether we are building with GNU ld or not.
52440 with_gnu_ld=$lt_with_gnu_ld
52441
52442 # Flag that allows shared libraries with undefined symbols to be built.
52443 allow_undefined_flag=$lt_allow_undefined_flag
52444
52445 # Flag that enforces no undefined symbols.
52446 no_undefined_flag=$lt_no_undefined_flag
52447
52448 # Flag to hardcode \$libdir into a binary during linking.
52449 # This must work even if \$libdir does not exist
52450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
52451
52452 # Whether we need a single "-rpath" flag with a separated argument.
52453 hardcode_libdir_separator=$lt_hardcode_libdir_separator
52454
52455 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
52456 # DIR into the resulting binary.
52457 hardcode_direct=$hardcode_direct
52458
52459 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
52460 # DIR into the resulting binary and the resulting library dependency is
52461 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
52462 # library is relocated.
52463 hardcode_direct_absolute=$hardcode_direct_absolute
52464
52465 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
52466 # into the resulting binary.
52467 hardcode_minus_L=$hardcode_minus_L
52468
52469 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
52470 # into the resulting binary.
52471 hardcode_shlibpath_var=$hardcode_shlibpath_var
52472
52473 # Set to "yes" if building a shared library automatically hardcodes DIR
52474 # into the library and all subsequent libraries and executables linked
52475 # against it.
52476 hardcode_automatic=$hardcode_automatic
52477
52478 # Set to yes if linker adds runtime paths of dependent libraries
52479 # to runtime path list.
52480 inherit_rpath=$inherit_rpath
52481
52482 # Whether libtool must link a program against all its dependency libraries.
52483 link_all_deplibs=$link_all_deplibs
52484
52485 # Set to "yes" if exported symbols are required.
52486 always_export_symbols=$always_export_symbols
52487
52488 # The commands to list exported symbols.
52489 export_symbols_cmds=$lt_export_symbols_cmds
52490
52491 # Symbols that should not be listed in the preloaded symbols.
52492 exclude_expsyms=$lt_exclude_expsyms
52493
52494 # Symbols that must always be exported.
52495 include_expsyms=$lt_include_expsyms
52496
52497 # Commands necessary for linking programs (against libraries) with templates.
52498 prelink_cmds=$lt_prelink_cmds
52499
52500 # Commands necessary for finishing linking programs.
52501 postlink_cmds=$lt_postlink_cmds
52502
52503 # Specify filename containing input files.
52504 file_list_spec=$lt_file_list_spec
52505
52506 # How to hardcode a shared library path into an executable.
52507 hardcode_action=$hardcode_action
52508
52509 # The directories searched by this compiler when creating a shared library.
52510 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
52511
52512 # Dependencies to place before and after the objects being linked to
52513 # create a shared library.
52514 predep_objects=$lt_predep_objects
52515 postdep_objects=$lt_postdep_objects
52516 predeps=$lt_predeps
52517 postdeps=$lt_postdeps
52518
52519 # The library search path used internally by the compiler when linking
52520 # a shared library.
52521 compiler_lib_search_path=$lt_compiler_lib_search_path
52522
52523 # ### END LIBTOOL CONFIG
52524
52525 _LT_EOF
52526
52527   case $host_os in
52528   aix3*)
52529     cat <<\_LT_EOF >> "$cfgfile"
52530 # AIX sometimes has problems with the GCC collect2 program.  For some
52531 # reason, if we set the COLLECT_NAMES environment variable, the problems
52532 # vanish in a puff of smoke.
52533 if test "X${COLLECT_NAMES+set}" != Xset; then
52534   COLLECT_NAMES=
52535   export COLLECT_NAMES
52536 fi
52537 _LT_EOF
52538     ;;
52539   esac
52540
52541
52542 ltmain="$ac_aux_dir/ltmain.sh"
52543
52544
52545   # We use sed instead of cat because bash on DJGPP gets confused if
52546   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
52547   # text mode, it properly converts lines to CR/LF.  This bash problem
52548   # is reportedly fixed, but why not run on old versions too?
52549   sed '$q' "$ltmain" >> "$cfgfile" \
52550      || (rm -f "$cfgfile"; exit 1)
52551
52552   if test x"$xsi_shell" = xyes; then
52553   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
52554 func_dirname ()\
52555 {\
52556 \    case ${1} in\
52557 \      */*) func_dirname_result="${1%/*}${2}" ;;\
52558 \      *  ) func_dirname_result="${3}" ;;\
52559 \    esac\
52560 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
52561   && mv -f "$cfgfile.tmp" "$cfgfile" \
52562     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52563 test 0 -eq $? || _lt_function_replace_fail=:
52564
52565
52566   sed -e '/^func_basename ()$/,/^} # func_basename /c\
52567 func_basename ()\
52568 {\
52569 \    func_basename_result="${1##*/}"\
52570 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
52571   && mv -f "$cfgfile.tmp" "$cfgfile" \
52572     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52573 test 0 -eq $? || _lt_function_replace_fail=:
52574
52575
52576   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
52577 func_dirname_and_basename ()\
52578 {\
52579 \    case ${1} in\
52580 \      */*) func_dirname_result="${1%/*}${2}" ;;\
52581 \      *  ) func_dirname_result="${3}" ;;\
52582 \    esac\
52583 \    func_basename_result="${1##*/}"\
52584 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
52585   && mv -f "$cfgfile.tmp" "$cfgfile" \
52586     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52587 test 0 -eq $? || _lt_function_replace_fail=:
52588
52589
52590   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
52591 func_stripname ()\
52592 {\
52593 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
52594 \    # positional parameters, so assign one to ordinary parameter first.\
52595 \    func_stripname_result=${3}\
52596 \    func_stripname_result=${func_stripname_result#"${1}"}\
52597 \    func_stripname_result=${func_stripname_result%"${2}"}\
52598 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
52599   && mv -f "$cfgfile.tmp" "$cfgfile" \
52600     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52601 test 0 -eq $? || _lt_function_replace_fail=:
52602
52603
52604   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
52605 func_split_long_opt ()\
52606 {\
52607 \    func_split_long_opt_name=${1%%=*}\
52608 \    func_split_long_opt_arg=${1#*=}\
52609 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
52610   && mv -f "$cfgfile.tmp" "$cfgfile" \
52611     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52612 test 0 -eq $? || _lt_function_replace_fail=:
52613
52614
52615   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
52616 func_split_short_opt ()\
52617 {\
52618 \    func_split_short_opt_arg=${1#??}\
52619 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
52620 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
52621   && mv -f "$cfgfile.tmp" "$cfgfile" \
52622     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52623 test 0 -eq $? || _lt_function_replace_fail=:
52624
52625
52626   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
52627 func_lo2o ()\
52628 {\
52629 \    case ${1} in\
52630 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
52631 \      *)    func_lo2o_result=${1} ;;\
52632 \    esac\
52633 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
52634   && mv -f "$cfgfile.tmp" "$cfgfile" \
52635     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52636 test 0 -eq $? || _lt_function_replace_fail=:
52637
52638
52639   sed -e '/^func_xform ()$/,/^} # func_xform /c\
52640 func_xform ()\
52641 {\
52642     func_xform_result=${1%.*}.lo\
52643 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
52644   && mv -f "$cfgfile.tmp" "$cfgfile" \
52645     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52646 test 0 -eq $? || _lt_function_replace_fail=:
52647
52648
52649   sed -e '/^func_arith ()$/,/^} # func_arith /c\
52650 func_arith ()\
52651 {\
52652     func_arith_result=$(( $* ))\
52653 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
52654   && mv -f "$cfgfile.tmp" "$cfgfile" \
52655     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52656 test 0 -eq $? || _lt_function_replace_fail=:
52657
52658
52659   sed -e '/^func_len ()$/,/^} # func_len /c\
52660 func_len ()\
52661 {\
52662     func_len_result=${#1}\
52663 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
52664   && mv -f "$cfgfile.tmp" "$cfgfile" \
52665     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52666 test 0 -eq $? || _lt_function_replace_fail=:
52667
52668 fi
52669
52670 if test x"$lt_shell_append" = xyes; then
52671   sed -e '/^func_append ()$/,/^} # func_append /c\
52672 func_append ()\
52673 {\
52674     eval "${1}+=\\${2}"\
52675 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
52676   && mv -f "$cfgfile.tmp" "$cfgfile" \
52677     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52678 test 0 -eq $? || _lt_function_replace_fail=:
52679
52680
52681   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
52682 func_append_quoted ()\
52683 {\
52684 \    func_quote_for_eval "${2}"\
52685 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
52686 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
52687   && mv -f "$cfgfile.tmp" "$cfgfile" \
52688     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52689 test 0 -eq $? || _lt_function_replace_fail=:
52690
52691
52692   # Save a `func_append' function call where possible by direct use of '+='
52693   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
52694     && mv -f "$cfgfile.tmp" "$cfgfile" \
52695       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52696   test 0 -eq $? || _lt_function_replace_fail=:
52697 else
52698   # Save a `func_append' function call even when '+=' is not available
52699   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
52700     && mv -f "$cfgfile.tmp" "$cfgfile" \
52701       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52702   test 0 -eq $? || _lt_function_replace_fail=:
52703 fi
52704
52705 if test x"$_lt_function_replace_fail" = x":"; then
52706   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
52707 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
52708 fi
52709
52710
52711    mv -f "$cfgfile" "$ofile" ||
52712     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
52713   chmod +x "$ofile"
52714
52715
52716     cat <<_LT_EOF >> "$ofile"
52717
52718 # ### BEGIN LIBTOOL TAG CONFIG: CXX
52719
52720 # The linker used to build libraries.
52721 LD=$lt_LD_CXX
52722
52723 # How to create reloadable object files.
52724 reload_flag=$lt_reload_flag_CXX
52725 reload_cmds=$lt_reload_cmds_CXX
52726
52727 # Commands used to build an old-style archive.
52728 old_archive_cmds=$lt_old_archive_cmds_CXX
52729
52730 # A language specific compiler.
52731 CC=$lt_compiler_CXX
52732
52733 # Is the compiler the GNU compiler?
52734 with_gcc=$GCC_CXX
52735
52736 # Compiler flag to turn off builtin functions.
52737 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
52738
52739 # Additional compiler flags for building library objects.
52740 pic_flag=$lt_lt_prog_compiler_pic_CXX
52741
52742 # How to pass a linker flag through the compiler.
52743 wl=$lt_lt_prog_compiler_wl_CXX
52744
52745 # Compiler flag to prevent dynamic linking.
52746 link_static_flag=$lt_lt_prog_compiler_static_CXX
52747
52748 # Does compiler simultaneously support -c and -o options?
52749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
52750
52751 # Whether or not to add -lc for building shared libraries.
52752 build_libtool_need_lc=$archive_cmds_need_lc_CXX
52753
52754 # Whether or not to disallow shared libs when runtime libs are static.
52755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
52756
52757 # Compiler flag to allow reflexive dlopens.
52758 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
52759
52760 # Compiler flag to generate shared objects directly from archives.
52761 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
52762
52763 # Whether the compiler copes with passing no objects directly.
52764 compiler_needs_object=$lt_compiler_needs_object_CXX
52765
52766 # Create an old-style archive from a shared archive.
52767 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
52768
52769 # Create a temporary old-style archive to link instead of a shared archive.
52770 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
52771
52772 # Commands used to build a shared archive.
52773 archive_cmds=$lt_archive_cmds_CXX
52774 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
52775
52776 # Commands used to build a loadable module if different from building
52777 # a shared archive.
52778 module_cmds=$lt_module_cmds_CXX
52779 module_expsym_cmds=$lt_module_expsym_cmds_CXX
52780
52781 # Whether we are building with GNU ld or not.
52782 with_gnu_ld=$lt_with_gnu_ld_CXX
52783
52784 # Flag that allows shared libraries with undefined symbols to be built.
52785 allow_undefined_flag=$lt_allow_undefined_flag_CXX
52786
52787 # Flag that enforces no undefined symbols.
52788 no_undefined_flag=$lt_no_undefined_flag_CXX
52789
52790 # Flag to hardcode \$libdir into a binary during linking.
52791 # This must work even if \$libdir does not exist
52792 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
52793
52794 # Whether we need a single "-rpath" flag with a separated argument.
52795 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
52796
52797 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
52798 # DIR into the resulting binary.
52799 hardcode_direct=$hardcode_direct_CXX
52800
52801 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
52802 # DIR into the resulting binary and the resulting library dependency is
52803 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
52804 # library is relocated.
52805 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
52806
52807 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
52808 # into the resulting binary.
52809 hardcode_minus_L=$hardcode_minus_L_CXX
52810
52811 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
52812 # into the resulting binary.
52813 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
52814
52815 # Set to "yes" if building a shared library automatically hardcodes DIR
52816 # into the library and all subsequent libraries and executables linked
52817 # against it.
52818 hardcode_automatic=$hardcode_automatic_CXX
52819
52820 # Set to yes if linker adds runtime paths of dependent libraries
52821 # to runtime path list.
52822 inherit_rpath=$inherit_rpath_CXX
52823
52824 # Whether libtool must link a program against all its dependency libraries.
52825 link_all_deplibs=$link_all_deplibs_CXX
52826
52827 # Set to "yes" if exported symbols are required.
52828 always_export_symbols=$always_export_symbols_CXX
52829
52830 # The commands to list exported symbols.
52831 export_symbols_cmds=$lt_export_symbols_cmds_CXX
52832
52833 # Symbols that should not be listed in the preloaded symbols.
52834 exclude_expsyms=$lt_exclude_expsyms_CXX
52835
52836 # Symbols that must always be exported.
52837 include_expsyms=$lt_include_expsyms_CXX
52838
52839 # Commands necessary for linking programs (against libraries) with templates.
52840 prelink_cmds=$lt_prelink_cmds_CXX
52841
52842 # Commands necessary for finishing linking programs.
52843 postlink_cmds=$lt_postlink_cmds_CXX
52844
52845 # Specify filename containing input files.
52846 file_list_spec=$lt_file_list_spec_CXX
52847
52848 # How to hardcode a shared library path into an executable.
52849 hardcode_action=$hardcode_action_CXX
52850
52851 # The directories searched by this compiler when creating a shared library.
52852 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
52853
52854 # Dependencies to place before and after the objects being linked to
52855 # create a shared library.
52856 predep_objects=$lt_predep_objects_CXX
52857 postdep_objects=$lt_postdep_objects_CXX
52858 predeps=$lt_predeps_CXX
52859 postdeps=$lt_postdeps_CXX
52860
52861 # The library search path used internally by the compiler when linking
52862 # a shared library.
52863 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
52864
52865 # ### END LIBTOOL TAG CONFIG: CXX
52866 _LT_EOF
52867
52868  ;;
52869     "guile/pre-inst-guile":F) chmod +x guile/pre-inst-guile ;;
52870
52871   esac
52872 done # for ac_tag
52873
52874
52875 as_fn_exit 0
52876 _ACEOF
52877 ac_clean_files=$ac_clean_files_save
52878
52879 test $ac_write_fail = 0 ||
52880   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
52881
52882
52883 # configure is writing to config.log, and then calls config.status.
52884 # config.status does its own redirection, appending to config.log.
52885 # Unfortunately, on DOS this fails, as config.log is still kept open
52886 # by configure, so config.status won't be able to write to it; its
52887 # output is simply discarded.  So we exec the FD to /dev/null,
52888 # effectively closing config.log, so it can be properly (re)opened and
52889 # appended to by config.status.  When coming back to configure, we
52890 # need to make the FD available again.
52891 if test "$no_create" != yes; then
52892   ac_cs_success=:
52893   ac_config_status_args=
52894   test "$silent" = yes &&
52895     ac_config_status_args="$ac_config_status_args --quiet"
52896   exec 5>/dev/null
52897   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52898   exec 5>>config.log
52899   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52900   # would make configure fail if this is the last instruction.
52901   $ac_cs_success || as_fn_exit 1
52902 fi
52903 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
52904   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
52905 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
52906 fi
52907
52908
52909 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
52910
52911   version:              ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
52912   Host/Target system:   ${host}
52913   Build system:         ${build}
52914   Install prefix:       ${prefix}
52915   Compiler:             ${CC}
52916   CFlags:               ${CFLAGS}
52917   Library types:        Shared=${enable_shared}, Static=${enable_static}
52918   Local libopts:        ${enable_local_libopts}
52919   Local libtasn1:       ${included_libtasn1}
52920   Use nettle-mini:      ${mini_nettle}
52921 " >&5
52922 $as_echo "$as_me: summary of build options:
52923
52924   version:              ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
52925   Host/Target system:   ${host}
52926   Build system:         ${build}
52927   Install prefix:       ${prefix}
52928   Compiler:             ${CC}
52929   CFlags:               ${CFLAGS}
52930   Library types:        Shared=${enable_shared}, Static=${enable_static}
52931   Local libopts:        ${enable_local_libopts}
52932   Local libtasn1:       ${included_libtasn1}
52933   Use nettle-mini:      ${mini_nettle}
52934 " >&6;}
52935
52936 { $as_echo "$as_me:${as_lineno-$LINENO}: External hardware support:
52937
52938   /dev/crypto:          $enable_cryptodev
52939   Hardware accel:       $hw_accel
52940   PKCS#11 support:      $with_p11_kit
52941   TPM support:          $with_tpm
52942 " >&5
52943 $as_echo "$as_me: External hardware support:
52944
52945   /dev/crypto:          $enable_cryptodev
52946   Hardware accel:       $hw_accel
52947   PKCS#11 support:      $with_p11_kit
52948   TPM support:          $with_tpm
52949 " >&6;}
52950
52951 { $as_echo "$as_me:${as_lineno-$LINENO}: Optional features:
52952 (note that included applications might not compile properly
52953 if features are disabled)
52954
52955   DTLS-SRTP support:    $ac_enable_srtp
52956   ALPN support:         $ac_enable_alpn
52957   OCSP support:         $ac_enable_ocsp
52958   Ses. ticket support:  $ac_enable_session_tickets
52959   OpenPGP support:      $ac_enable_openpgp
52960   SRP support:          $ac_enable_srp
52961   PSK support:          $ac_enable_psk
52962   DHE support:          $ac_enable_dhe
52963   ECDHE support:        $ac_enable_ecdhe
52964   RSA-EXPORT support:   $ac_enable_rsa_export
52965   Anon auth support:    $ac_enable_anon
52966   Heartbeat support:    $ac_enable_heartbeat
52967   Unicode support:      $ac_have_unicode
52968   Self checks:          $enable_self_checks
52969   Non-SuiteB curves:    $enable_non_suiteb
52970   FIPS140 mode:         $enable_fips
52971 " >&5
52972 $as_echo "$as_me: Optional features:
52973 (note that included applications might not compile properly
52974 if features are disabled)
52975
52976   DTLS-SRTP support:    $ac_enable_srtp
52977   ALPN support:         $ac_enable_alpn
52978   OCSP support:         $ac_enable_ocsp
52979   Ses. ticket support:  $ac_enable_session_tickets
52980   OpenPGP support:      $ac_enable_openpgp
52981   SRP support:          $ac_enable_srp
52982   PSK support:          $ac_enable_psk
52983   DHE support:          $ac_enable_dhe
52984   ECDHE support:        $ac_enable_ecdhe
52985   RSA-EXPORT support:   $ac_enable_rsa_export
52986   Anon auth support:    $ac_enable_anon
52987   Heartbeat support:    $ac_enable_heartbeat
52988   Unicode support:      $ac_have_unicode
52989   Self checks:          $enable_self_checks
52990   Non-SuiteB curves:    $enable_non_suiteb
52991   FIPS140 mode:         $enable_fips
52992 " >&6;}
52993
52994 { $as_echo "$as_me:${as_lineno-$LINENO}: Optional applications:
52995
52996   crywrap app:          $libidn
52997 " >&5
52998 $as_echo "$as_me: Optional applications:
52999
53000   crywrap app:          $libidn
53001 " >&6;}
53002
53003 { $as_echo "$as_me:${as_lineno-$LINENO}: Optional libraries:
53004
53005   Guile wrappers:       $opt_guile_bindings
53006   C++ library:          $use_cxx
53007   DANE library:         $enable_dane
53008   OpenSSL compat:       $enable_openssl
53009 " >&5
53010 $as_echo "$as_me: Optional libraries:
53011
53012   Guile wrappers:       $opt_guile_bindings
53013   C++ library:          $use_cxx
53014   DANE library:         $enable_dane
53015   OpenSSL compat:       $enable_openssl
53016 " >&6;}
53017
53018 { $as_echo "$as_me:${as_lineno-$LINENO}: System files:
53019
53020   Trust store pkcs11:   $with_default_trust_store_pkcs11
53021   Trust store file:     $with_default_trust_store_file
53022   Blacklist file:       $with_default_blacklist_file
53023   CRL file:             $with_default_crl_file
53024   Priority file:        $system_priority_file
53025   DNSSEC root key file: $unbound_root_key_file
53026 " >&5
53027 $as_echo "$as_me: System files:
53028
53029   Trust store pkcs11:   $with_default_trust_store_pkcs11
53030   Trust store file:     $with_default_trust_store_file
53031   Blacklist file:       $with_default_blacklist_file
53032   CRL file:             $with_default_crl_file
53033   Priority file:        $system_priority_file
53034   DNSSEC root key file: $unbound_root_key_file
53035 " >&6;}
53036
53037 if test ! -f "$unbound_root_key_file"; then
53038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
53039 ***
53040 *** The DNSSEC root key file in $unbound_root_key_file was not found.
53041 *** This file is needed for the verification of DNSSEC responses.
53042 *** Use the command: unbound-anchor -a \"$unbound_root_key_file\"
53043 *** to generate or update it.
53044 *** " >&5
53045 $as_echo "$as_me: WARNING:
53046 ***
53047 *** The DNSSEC root key file in $unbound_root_key_file was not found.
53048 *** This file is needed for the verification of DNSSEC responses.
53049 *** Use the command: unbound-anchor -a \"$unbound_root_key_file\"
53050 *** to generate or update it.
53051 *** " >&2;}
53052 fi