Tizen 2.0 Release
[external/libgnutls26.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for GnuTLS 2.12.20.
4 #
5 # Report bugs to <bug-gnutls@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     PATH=/empty FPATH=/empty; export PATH FPATH
184     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-gnutls@gnu.org
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
253 $0: have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='GnuTLS'
572 PACKAGE_TARNAME='gnutls'
573 PACKAGE_VERSION='2.12.20'
574 PACKAGE_STRING='GnuTLS 2.12.20'
575 PACKAGE_BUGREPORT='bug-gnutls@gnu.org'
576 PACKAGE_URL=''
577
578 # Factoring default headers for most tests.
579 ac_includes_default="\
580 #include <stdio.h>
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
583 #endif
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
586 #endif
587 #ifdef STDC_HEADERS
588 # include <stdlib.h>
589 # include <stddef.h>
590 #else
591 # ifdef HAVE_STDLIB_H
592 #  include <stdlib.h>
593 # endif
594 #endif
595 #ifdef HAVE_STRING_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597 #  include <memory.h>
598 # endif
599 # include <string.h>
600 #endif
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
603 #endif
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
606 #endif
607 #ifdef HAVE_STDINT_H
608 # include <stdint.h>
609 #endif
610 #ifdef HAVE_UNISTD_H
611 # include <unistd.h>
612 #endif"
613
614 gl_use_threads_default=
615 gl_header_list=
616 gl_func_list=
617 enable_option_checking=no
618 ac_subst_vars='gltests_LTLIBOBJS
619 gltests_LIBOBJS
620 gl_LTLIBOBJS
621 gl_LIBOBJS
622 CONFIG_INCLUDE
623 am__EXEEXT_FALSE
624 am__EXEEXT_TRUE
625 LTLIBOBJS
626 LIBOBJS
627 subdirs
628 WSTACK_CFLAGS
629 WERROR_CFLAGS
630 LIBTESTS_LIBDEPS
631 YIELD_LIB
632 abs_aux_dir
633 NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H
634 NEXT_SYS_IOCTL_H
635 HAVE_SYS_IOCTL_H
636 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
637 NEXT_INTTYPES_H
638 UINT64_MAX_EQ_ULONG_MAX
639 UINT32_MAX_LT_UINTMAX_MAX
640 PRIPTR_PREFIX
641 PRI_MACROS_BROKEN
642 INT64_MAX_EQ_LONG_MAX
643 INT32_MAX_LT_INTMAX_MAX
644 REPLACE_STRTOIMAX
645 HAVE_DECL_STRTOUMAX
646 HAVE_DECL_STRTOIMAX
647 HAVE_DECL_IMAXDIV
648 HAVE_DECL_IMAXABS
649 GNULIB_STRTOUMAX
650 GNULIB_STRTOIMAX
651 GNULIB_IMAXDIV
652 GNULIB_IMAXABS
653 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
654 NEXT_FCNTL_H
655 REPLACE_OPENAT
656 REPLACE_OPEN
657 REPLACE_FCNTL
658 HAVE_OPENAT
659 HAVE_FCNTL
660 GNULIB_OPENAT
661 GNULIB_OPEN
662 GNULIB_NONBLOCKING
663 GNULIB_FCNTL
664 gltests_WITNESS
665 HAVE_WINT_T
666 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
667 NEXT_WCHAR_H
668 REPLACE_WCSWIDTH
669 REPLACE_WCWIDTH
670 REPLACE_WCSNRTOMBS
671 REPLACE_WCSRTOMBS
672 REPLACE_WCRTOMB
673 REPLACE_MBSNRTOWCS
674 REPLACE_MBSRTOWCS
675 REPLACE_MBRLEN
676 REPLACE_MBRTOWC
677 REPLACE_MBSINIT
678 REPLACE_WCTOB
679 REPLACE_BTOWC
680 REPLACE_MBSTATE_T
681 HAVE_DECL_WCWIDTH
682 HAVE_DECL_WCTOB
683 HAVE_WCSWIDTH
684 HAVE_WCSTOK
685 HAVE_WCSSTR
686 HAVE_WCSPBRK
687 HAVE_WCSSPN
688 HAVE_WCSCSPN
689 HAVE_WCSRCHR
690 HAVE_WCSCHR
691 HAVE_WCSDUP
692 HAVE_WCSXFRM
693 HAVE_WCSCOLL
694 HAVE_WCSNCASECMP
695 HAVE_WCSCASECMP
696 HAVE_WCSNCMP
697 HAVE_WCSCMP
698 HAVE_WCSNCAT
699 HAVE_WCSCAT
700 HAVE_WCPNCPY
701 HAVE_WCSNCPY
702 HAVE_WCPCPY
703 HAVE_WCSCPY
704 HAVE_WCSNLEN
705 HAVE_WCSLEN
706 HAVE_WMEMSET
707 HAVE_WMEMMOVE
708 HAVE_WMEMCPY
709 HAVE_WMEMCMP
710 HAVE_WMEMCHR
711 HAVE_WCSNRTOMBS
712 HAVE_WCSRTOMBS
713 HAVE_WCRTOMB
714 HAVE_MBSNRTOWCS
715 HAVE_MBSRTOWCS
716 HAVE_MBRLEN
717 HAVE_MBRTOWC
718 HAVE_MBSINIT
719 HAVE_BTOWC
720 GNULIB_WCSWIDTH
721 GNULIB_WCSTOK
722 GNULIB_WCSSTR
723 GNULIB_WCSPBRK
724 GNULIB_WCSSPN
725 GNULIB_WCSCSPN
726 GNULIB_WCSRCHR
727 GNULIB_WCSCHR
728 GNULIB_WCSDUP
729 GNULIB_WCSXFRM
730 GNULIB_WCSCOLL
731 GNULIB_WCSNCASECMP
732 GNULIB_WCSCASECMP
733 GNULIB_WCSNCMP
734 GNULIB_WCSCMP
735 GNULIB_WCSNCAT
736 GNULIB_WCSCAT
737 GNULIB_WCPNCPY
738 GNULIB_WCSNCPY
739 GNULIB_WCPCPY
740 GNULIB_WCSCPY
741 GNULIB_WCSNLEN
742 GNULIB_WCSLEN
743 GNULIB_WMEMSET
744 GNULIB_WMEMMOVE
745 GNULIB_WMEMCPY
746 GNULIB_WMEMCMP
747 GNULIB_WMEMCHR
748 GNULIB_WCWIDTH
749 GNULIB_WCSNRTOMBS
750 GNULIB_WCSRTOMBS
751 GNULIB_WCRTOMB
752 GNULIB_MBSNRTOWCS
753 GNULIB_MBSRTOWCS
754 GNULIB_MBRLEN
755 GNULIB_MBRTOWC
756 GNULIB_MBSINIT
757 GNULIB_WCTOB
758 GNULIB_BTOWC
759 WARN_CFLAGS
760 VALGRIND
761 HAVE_UNISTD_H
762 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
763 NEXT_UNISTD_H
764 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
765 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
766 TIME_H_DEFINES_STRUCT_TIMESPEC
767 NEXT_AS_FIRST_DIRECTIVE_TIME_H
768 NEXT_TIME_H
769 REPLACE_TIMEGM
770 REPLACE_NANOSLEEP
771 REPLACE_MKTIME
772 REPLACE_LOCALTIME_R
773 HAVE_TIMEGM
774 HAVE_STRPTIME
775 HAVE_NANOSLEEP
776 HAVE_DECL_LOCALTIME_R
777 GNULIB_TIME_R
778 GNULIB_TIMEGM
779 GNULIB_STRPTIME
780 GNULIB_NANOSLEEP
781 GNULIB_MKTIME
782 HAVE_SYS_UIO_H
783 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
784 NEXT_SYS_UIO_H
785 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
786 NEXT_SYS_TYPES_H
787 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
788 NEXT_SYS_STAT_H
789 NEXT_AS_FIRST_DIRECTIVE_STRING_H
790 NEXT_STRING_H
791 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
792 NEXT_STDLIB_H
793 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
794 NEXT_STDIO_H
795 GL_GENERATE_STDINT_H_FALSE
796 GL_GENERATE_STDINT_H_TRUE
797 STDINT_H
798 WINT_T_SUFFIX
799 WCHAR_T_SUFFIX
800 SIG_ATOMIC_T_SUFFIX
801 SIZE_T_SUFFIX
802 PTRDIFF_T_SUFFIX
803 HAVE_SIGNED_WINT_T
804 HAVE_SIGNED_WCHAR_T
805 HAVE_SIGNED_SIG_ATOMIC_T
806 BITSIZEOF_WINT_T
807 BITSIZEOF_WCHAR_T
808 BITSIZEOF_SIG_ATOMIC_T
809 BITSIZEOF_SIZE_T
810 BITSIZEOF_PTRDIFF_T
811 HAVE_SYS_BITYPES_H
812 HAVE_SYS_INTTYPES_H
813 HAVE_STDINT_H
814 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
815 NEXT_STDINT_H
816 HAVE_SYS_TYPES_H
817 HAVE_INTTYPES_H
818 HAVE_WCHAR_H
819 HAVE_UNSIGNED_LONG_LONG_INT
820 HAVE_LONG_LONG_INT
821 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
822 NEXT_STDDEF_H
823 GL_GENERATE_STDDEF_H_FALSE
824 GL_GENERATE_STDDEF_H_TRUE
825 STDDEF_H
826 HAVE_WCHAR_T
827 REPLACE_NULL
828 HAVE__BOOL
829 GL_GENERATE_STDBOOL_H_FALSE
830 GL_GENERATE_STDBOOL_H_TRUE
831 STDBOOL_H
832 GL_GENERATE_STDARG_H_FALSE
833 GL_GENERATE_STDARG_H_TRUE
834 STDARG_H
835 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
836 NEXT_STDARG_H
837 GL_GENERATE_STDALIGN_H_FALSE
838 GL_GENERATE_STDALIGN_H_TRUE
839 STDALIGN_H
840 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
841 NEXT_SIGNAL_H
842 REPLACE_RAISE
843 REPLACE_PTHREAD_SIGMASK
844 HAVE_SIGHANDLER_T
845 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
846 HAVE_STRUCT_SIGACTION_SA_SIGACTION
847 HAVE_SIGACTION
848 HAVE_SIGINFO_T
849 HAVE_SIGSET_T
850 HAVE_RAISE
851 HAVE_PTHREAD_SIGMASK
852 HAVE_POSIX_SIGNALBLOCKING
853 GNULIB_SIGACTION
854 GNULIB_SIGPROCMASK
855 GNULIB_SIGNAL_H_SIGPIPE
856 GNULIB_RAISE
857 GNULIB_PTHREAD_SIGMASK
858 LIB_SELECT
859 HAVE_SYS_SELECT_H
860 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
861 NEXT_SYS_SELECT_H
862 REPLACE_SELECT
863 REPLACE_PSELECT
864 HAVE_PSELECT
865 GNULIB_SELECT
866 GNULIB_PSELECT
867 LTLIBREADLINE
868 LIBREADLINE
869 PMCCABE
870 GL_GENERATE_NETINET_IN_H_FALSE
871 GL_GENERATE_NETINET_IN_H_TRUE
872 NETINET_IN_H
873 HAVE_NETINET_IN_H
874 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
875 NEXT_NETINET_IN_H
876 APPLE_UNIVERSAL_BUILD
877 UNDEFINE_STRTOK_R
878 REPLACE_STRTOK_R
879 REPLACE_STRSIGNAL
880 REPLACE_STRNLEN
881 REPLACE_STRNDUP
882 REPLACE_STRNCAT
883 REPLACE_STRERROR_R
884 REPLACE_STRERROR
885 REPLACE_STRCHRNUL
886 REPLACE_STRCASESTR
887 REPLACE_STRSTR
888 REPLACE_STRDUP
889 REPLACE_STPNCPY
890 REPLACE_MEMMEM
891 REPLACE_MEMCHR
892 HAVE_STRVERSCMP
893 HAVE_DECL_STRSIGNAL
894 HAVE_DECL_STRERROR_R
895 HAVE_DECL_STRTOK_R
896 HAVE_STRCASESTR
897 HAVE_STRSEP
898 HAVE_STRPBRK
899 HAVE_DECL_STRNLEN
900 HAVE_DECL_STRNDUP
901 HAVE_DECL_STRDUP
902 HAVE_STRCHRNUL
903 HAVE_STPNCPY
904 HAVE_STPCPY
905 HAVE_RAWMEMCHR
906 HAVE_DECL_MEMRCHR
907 HAVE_MEMPCPY
908 HAVE_DECL_MEMMEM
909 HAVE_MEMCHR
910 HAVE_FFSLL
911 HAVE_FFSL
912 HAVE_MBSLEN
913 GNULIB_STRVERSCMP
914 GNULIB_STRSIGNAL
915 GNULIB_STRERROR_R
916 GNULIB_STRERROR
917 GNULIB_MBSTOK_R
918 GNULIB_MBSSEP
919 GNULIB_MBSSPN
920 GNULIB_MBSPBRK
921 GNULIB_MBSCSPN
922 GNULIB_MBSCASESTR
923 GNULIB_MBSPCASECMP
924 GNULIB_MBSNCASECMP
925 GNULIB_MBSCASECMP
926 GNULIB_MBSSTR
927 GNULIB_MBSRCHR
928 GNULIB_MBSCHR
929 GNULIB_MBSNLEN
930 GNULIB_MBSLEN
931 GNULIB_STRTOK_R
932 GNULIB_STRCASESTR
933 GNULIB_STRSTR
934 GNULIB_STRSEP
935 GNULIB_STRPBRK
936 GNULIB_STRNLEN
937 GNULIB_STRNDUP
938 GNULIB_STRNCAT
939 GNULIB_STRDUP
940 GNULIB_STRCHRNUL
941 GNULIB_STPNCPY
942 GNULIB_STPCPY
943 GNULIB_RAWMEMCHR
944 GNULIB_MEMRCHR
945 GNULIB_MEMPCPY
946 GNULIB_MEMMEM
947 GNULIB_MEMCHR
948 GNULIB_FFSLL
949 GNULIB_FFSL
950 REPLACE_WCTOMB
951 REPLACE_UNSETENV
952 REPLACE_STRTOD
953 REPLACE_SETENV
954 REPLACE_REALPATH
955 REPLACE_REALLOC
956 REPLACE_RANDOM_R
957 REPLACE_PUTENV
958 REPLACE_PTSNAME_R
959 REPLACE_MKSTEMP
960 REPLACE_MBTOWC
961 REPLACE_MALLOC
962 REPLACE_CANONICALIZE_FILE_NAME
963 REPLACE_CALLOC
964 HAVE_DECL_UNSETENV
965 HAVE_UNLOCKPT
966 HAVE_SYS_LOADAVG_H
967 HAVE_STRUCT_RANDOM_DATA
968 HAVE_STRTOULL
969 HAVE_STRTOLL
970 HAVE_STRTOD
971 HAVE_DECL_SETENV
972 HAVE_SETENV
973 HAVE_RPMATCH
974 HAVE_REALPATH
975 HAVE_RANDOM_R
976 HAVE_RANDOM_H
977 HAVE_RANDOM
978 HAVE_PTSNAME_R
979 HAVE_PTSNAME
980 HAVE_POSIX_OPENPT
981 HAVE_MKSTEMPS
982 HAVE_MKSTEMP
983 HAVE_MKOSTEMPS
984 HAVE_MKOSTEMP
985 HAVE_MKDTEMP
986 HAVE_GRANTPT
987 HAVE_GETSUBOPT
988 HAVE_DECL_GETLOADAVG
989 HAVE_CANONICALIZE_FILE_NAME
990 HAVE_ATOLL
991 HAVE__EXIT
992 GNULIB_WCTOMB
993 GNULIB_UNSETENV
994 GNULIB_UNLOCKPT
995 GNULIB_SYSTEM_POSIX
996 GNULIB_STRTOULL
997 GNULIB_STRTOLL
998 GNULIB_STRTOD
999 GNULIB_SETENV
1000 GNULIB_RPMATCH
1001 GNULIB_REALPATH
1002 GNULIB_REALLOC_POSIX
1003 GNULIB_RANDOM_R
1004 GNULIB_RANDOM
1005 GNULIB_PUTENV
1006 GNULIB_PTSNAME_R
1007 GNULIB_PTSNAME
1008 GNULIB_POSIX_OPENPT
1009 GNULIB_MKSTEMPS
1010 GNULIB_MKSTEMP
1011 GNULIB_MKOSTEMPS
1012 GNULIB_MKOSTEMP
1013 GNULIB_MKDTEMP
1014 GNULIB_MBTOWC
1015 GNULIB_MALLOC_POSIX
1016 GNULIB_GRANTPT
1017 GNULIB_GETSUBOPT
1018 GNULIB_GETLOADAVG
1019 GNULIB_CANONICALIZE_FILE_NAME
1020 GNULIB_CALLOC_POSIX
1021 GNULIB_ATOLL
1022 GNULIB__EXIT
1023 LTLIBMULTITHREAD
1024 LIBMULTITHREAD
1025 LTLIBTHREAD
1026 LIBTHREAD
1027 LIBPTH_PREFIX
1028 LTLIBPTH
1029 LIBPTH
1030 INET_PTON_LIB
1031 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1032 NEXT_SYS_TIME_H
1033 REPLACE_STRUCT_TIMEVAL
1034 REPLACE_GETTIMEOFDAY
1035 HAVE_SYS_TIME_H
1036 HAVE_STRUCT_TIMEVAL
1037 HAVE_GETTIMEOFDAY
1038 GNULIB_GETTIMEOFDAY
1039 LTLIBINTL
1040 LIBINTL
1041 GETADDRINFO_LIB
1042 INET_NTOP_LIB
1043 SERVENT_LIB
1044 HOSTENT_LIB
1045 HAVE_NETDB_H
1046 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
1047 NEXT_NETDB_H
1048 REPLACE_GAI_STRERROR
1049 HAVE_DECL_GETNAMEINFO
1050 HAVE_DECL_GETADDRINFO
1051 HAVE_DECL_GAI_STRERROR
1052 HAVE_DECL_FREEADDRINFO
1053 HAVE_STRUCT_ADDRINFO
1054 GNULIB_GETADDRINFO
1055 REPLACE_UTIMENSAT
1056 REPLACE_STAT
1057 REPLACE_MKNOD
1058 REPLACE_MKFIFO
1059 REPLACE_MKDIR
1060 REPLACE_LSTAT
1061 REPLACE_FUTIMENS
1062 REPLACE_FSTATAT
1063 REPLACE_FSTAT
1064 HAVE_UTIMENSAT
1065 HAVE_MKNODAT
1066 HAVE_MKNOD
1067 HAVE_MKFIFOAT
1068 HAVE_MKFIFO
1069 HAVE_MKDIRAT
1070 HAVE_LSTAT
1071 HAVE_LCHMOD
1072 HAVE_FUTIMENS
1073 HAVE_FSTATAT
1074 HAVE_FCHMODAT
1075 GNULIB_UTIMENSAT
1076 GNULIB_STAT
1077 GNULIB_MKNODAT
1078 GNULIB_MKNOD
1079 GNULIB_MKFIFOAT
1080 GNULIB_MKFIFO
1081 GNULIB_MKDIRAT
1082 GNULIB_LSTAT
1083 GNULIB_LCHMOD
1084 GNULIB_FUTIMENS
1085 GNULIB_FSTATAT
1086 GNULIB_FSTAT
1087 GNULIB_FCHMODAT
1088 REPLACE_VSPRINTF
1089 REPLACE_VSNPRINTF
1090 REPLACE_VPRINTF
1091 REPLACE_VFPRINTF
1092 REPLACE_VDPRINTF
1093 REPLACE_VASPRINTF
1094 REPLACE_TMPFILE
1095 REPLACE_STDIO_WRITE_FUNCS
1096 REPLACE_STDIO_READ_FUNCS
1097 REPLACE_SPRINTF
1098 REPLACE_SNPRINTF
1099 REPLACE_RENAMEAT
1100 REPLACE_RENAME
1101 REPLACE_REMOVE
1102 REPLACE_PRINTF
1103 REPLACE_POPEN
1104 REPLACE_PERROR
1105 REPLACE_OBSTACK_PRINTF
1106 REPLACE_GETLINE
1107 REPLACE_GETDELIM
1108 REPLACE_FTELLO
1109 REPLACE_FTELL
1110 REPLACE_FSEEKO
1111 REPLACE_FSEEK
1112 REPLACE_FREOPEN
1113 REPLACE_FPURGE
1114 REPLACE_FPRINTF
1115 REPLACE_FOPEN
1116 REPLACE_FFLUSH
1117 REPLACE_FDOPEN
1118 REPLACE_FCLOSE
1119 REPLACE_DPRINTF
1120 HAVE_VDPRINTF
1121 HAVE_VASPRINTF
1122 HAVE_RENAMEAT
1123 HAVE_POPEN
1124 HAVE_PCLOSE
1125 HAVE_FTELLO
1126 HAVE_FSEEKO
1127 HAVE_DPRINTF
1128 HAVE_DECL_VSNPRINTF
1129 HAVE_DECL_SNPRINTF
1130 HAVE_DECL_OBSTACK_PRINTF
1131 HAVE_DECL_GETLINE
1132 HAVE_DECL_GETDELIM
1133 HAVE_DECL_FTELLO
1134 HAVE_DECL_FSEEKO
1135 HAVE_DECL_FPURGE
1136 GNULIB_VSPRINTF_POSIX
1137 GNULIB_VSNPRINTF
1138 GNULIB_VPRINTF_POSIX
1139 GNULIB_VPRINTF
1140 GNULIB_VFPRINTF_POSIX
1141 GNULIB_VFPRINTF
1142 GNULIB_VDPRINTF
1143 GNULIB_VSCANF
1144 GNULIB_VFSCANF
1145 GNULIB_VASPRINTF
1146 GNULIB_TMPFILE
1147 GNULIB_STDIO_H_SIGPIPE
1148 GNULIB_STDIO_H_NONBLOCKING
1149 GNULIB_SPRINTF_POSIX
1150 GNULIB_SNPRINTF
1151 GNULIB_SCANF
1152 GNULIB_RENAMEAT
1153 GNULIB_RENAME
1154 GNULIB_REMOVE
1155 GNULIB_PUTS
1156 GNULIB_PUTCHAR
1157 GNULIB_PUTC
1158 GNULIB_PRINTF_POSIX
1159 GNULIB_PRINTF
1160 GNULIB_POPEN
1161 GNULIB_PERROR
1162 GNULIB_PCLOSE
1163 GNULIB_OBSTACK_PRINTF_POSIX
1164 GNULIB_OBSTACK_PRINTF
1165 GNULIB_GETS
1166 GNULIB_GETLINE
1167 GNULIB_GETDELIM
1168 GNULIB_GETCHAR
1169 GNULIB_GETC
1170 GNULIB_FWRITE
1171 GNULIB_FTELLO
1172 GNULIB_FTELL
1173 GNULIB_FSEEKO
1174 GNULIB_FSEEK
1175 GNULIB_FSCANF
1176 GNULIB_FREOPEN
1177 GNULIB_FREAD
1178 GNULIB_FPUTS
1179 GNULIB_FPUTC
1180 GNULIB_FPURGE
1181 GNULIB_FPRINTF_POSIX
1182 GNULIB_FPRINTF
1183 GNULIB_FOPEN
1184 GNULIB_FGETS
1185 GNULIB_FGETC
1186 GNULIB_FFLUSH
1187 GNULIB_FDOPEN
1188 GNULIB_FCLOSE
1189 GNULIB_DPRINTF
1190 REPLACE_ITOLD
1191 GL_GENERATE_FLOAT_H_FALSE
1192 GL_GENERATE_FLOAT_H_TRUE
1193 FLOAT_H
1194 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1195 NEXT_FLOAT_H
1196 EOVERFLOW_VALUE
1197 EOVERFLOW_HIDDEN
1198 ENOLINK_VALUE
1199 ENOLINK_HIDDEN
1200 EMULTIHOP_VALUE
1201 EMULTIHOP_HIDDEN
1202 GL_GENERATE_ERRNO_H_FALSE
1203 GL_GENERATE_ERRNO_H_TRUE
1204 ERRNO_H
1205 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1206 NEXT_ERRNO_H
1207 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1208 LIB_CLOCK_GETTIME
1209 HAVE_FEATURES_H
1210 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1211 NEXT_ARPA_INET_H
1212 HAVE_ARPA_INET_H
1213 REPLACE_INET_PTON
1214 REPLACE_INET_NTOP
1215 HAVE_DECL_INET_PTON
1216 HAVE_DECL_INET_NTOP
1217 GNULIB_INET_PTON
1218 GNULIB_INET_NTOP
1219 GL_GENERATE_ALLOCA_H_FALSE
1220 GL_GENERATE_ALLOCA_H_TRUE
1221 ALLOCA_H
1222 ALLOCA
1223 LTALLOCA
1224 HAVE_WS2TCPIP_H
1225 HAVE_SYS_SOCKET_H
1226 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1227 NEXT_SYS_SOCKET_H
1228 PRAGMA_COLUMNS
1229 PRAGMA_SYSTEM_HEADER
1230 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1231 INCLUDE_NEXT
1232 HAVE_ACCEPT4
1233 HAVE_SA_FAMILY_T
1234 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1235 HAVE_STRUCT_SOCKADDR_STORAGE
1236 GNULIB_ACCEPT4
1237 GNULIB_SHUTDOWN
1238 GNULIB_SETSOCKOPT
1239 GNULIB_SENDTO
1240 GNULIB_RECVFROM
1241 GNULIB_SEND
1242 GNULIB_RECV
1243 GNULIB_LISTEN
1244 GNULIB_GETSOCKOPT
1245 GNULIB_GETSOCKNAME
1246 GNULIB_GETPEERNAME
1247 GNULIB_BIND
1248 GNULIB_ACCEPT
1249 GNULIB_CONNECT
1250 GNULIB_SOCKET
1251 GL_COND_LIBTOOL_FALSE
1252 GL_COND_LIBTOOL_TRUE
1253 CXXCPP
1254 OTOOL64
1255 OTOOL
1256 LIPO
1257 NMEDIT
1258 DSYMUTIL
1259 MANIFEST_TOOL
1260 ac_ct_AR
1261 NM
1262 ac_ct_DUMPBIN
1263 DUMPBIN
1264 LD
1265 FGREP
1266 SED
1267 LIBTOOL
1268 OBJDUMP
1269 DLLTOOL
1270 AS
1271 HAVE_LIBCFG_FALSE
1272 HAVE_LIBCFG_TRUE
1273 HAVE_GCC_FALSE
1274 HAVE_GCC_TRUE
1275 HAVE_GCC_GNU89_INLINE_OPTION_FALSE
1276 HAVE_GCC_GNU89_INLINE_OPTION_TRUE
1277 HAVE_GUILE_FALSE
1278 HAVE_GUILE_TRUE
1279 GUILE_SITE
1280 GUILE_LDFLAGS
1281 GUILE_CFLAGS
1282 GUILE_TOOLS
1283 GUILE_CONFIG
1284 GUILE
1285 guile_snarf
1286 P11_KIT_LIBS
1287 P11_KIT_CFLAGS
1288 ENABLE_PKCS11_FALSE
1289 ENABLE_PKCS11_TRUE
1290 HAVE_FORK_FALSE
1291 HAVE_FORK_TRUE
1292 LIBSOCKET
1293 HAVE_WINSOCK2_H
1294 REPLACE_IOCTL
1295 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1296 SYS_IOCTL_H_HAVE_WINSOCK2_H
1297 GNULIB_IOCTL
1298 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1299 UNISTD_H_HAVE_WINSOCK2_H
1300 REPLACE_WRITE
1301 REPLACE_USLEEP
1302 REPLACE_UNLINKAT
1303 REPLACE_UNLINK
1304 REPLACE_TTYNAME_R
1305 REPLACE_SYMLINK
1306 REPLACE_SLEEP
1307 REPLACE_RMDIR
1308 REPLACE_READLINK
1309 REPLACE_READ
1310 REPLACE_PWRITE
1311 REPLACE_PREAD
1312 REPLACE_LSEEK
1313 REPLACE_LINKAT
1314 REPLACE_LINK
1315 REPLACE_LCHOWN
1316 REPLACE_ISATTY
1317 REPLACE_GETPAGESIZE
1318 REPLACE_GETGROUPS
1319 REPLACE_GETLOGIN_R
1320 REPLACE_GETDOMAINNAME
1321 REPLACE_GETCWD
1322 REPLACE_FCHOWNAT
1323 REPLACE_DUP2
1324 REPLACE_DUP
1325 REPLACE_CLOSE
1326 REPLACE_CHOWN
1327 HAVE_SYS_PARAM_H
1328 HAVE_OS_H
1329 HAVE_DECL_TTYNAME_R
1330 HAVE_DECL_SETHOSTNAME
1331 HAVE_DECL_GETUSERSHELL
1332 HAVE_DECL_GETPAGESIZE
1333 HAVE_DECL_GETLOGIN_R
1334 HAVE_DECL_GETDOMAINNAME
1335 HAVE_DECL_FDATASYNC
1336 HAVE_DECL_FCHDIR
1337 HAVE_DECL_ENVIRON
1338 HAVE_USLEEP
1339 HAVE_UNLINKAT
1340 HAVE_SYMLINKAT
1341 HAVE_SYMLINK
1342 HAVE_SLEEP
1343 HAVE_SETHOSTNAME
1344 HAVE_READLINKAT
1345 HAVE_READLINK
1346 HAVE_PWRITE
1347 HAVE_PREAD
1348 HAVE_PIPE2
1349 HAVE_PIPE
1350 HAVE_LINKAT
1351 HAVE_LINK
1352 HAVE_LCHOWN
1353 HAVE_GROUP_MEMBER
1354 HAVE_GETPAGESIZE
1355 HAVE_GETLOGIN
1356 HAVE_GETHOSTNAME
1357 HAVE_GETGROUPS
1358 HAVE_GETDTABLESIZE
1359 HAVE_FTRUNCATE
1360 HAVE_FSYNC
1361 HAVE_FDATASYNC
1362 HAVE_FCHOWNAT
1363 HAVE_FCHDIR
1364 HAVE_FACCESSAT
1365 HAVE_EUIDACCESS
1366 HAVE_DUP3
1367 HAVE_DUP2
1368 HAVE_CHOWN
1369 GNULIB_WRITE
1370 GNULIB_USLEEP
1371 GNULIB_UNLINKAT
1372 GNULIB_UNLINK
1373 GNULIB_UNISTD_H_SIGPIPE
1374 GNULIB_UNISTD_H_NONBLOCKING
1375 GNULIB_TTYNAME_R
1376 GNULIB_SYMLINKAT
1377 GNULIB_SYMLINK
1378 GNULIB_SLEEP
1379 GNULIB_SETHOSTNAME
1380 GNULIB_RMDIR
1381 GNULIB_READLINKAT
1382 GNULIB_READLINK
1383 GNULIB_READ
1384 GNULIB_PWRITE
1385 GNULIB_PREAD
1386 GNULIB_PIPE2
1387 GNULIB_PIPE
1388 GNULIB_LSEEK
1389 GNULIB_LINKAT
1390 GNULIB_LINK
1391 GNULIB_LCHOWN
1392 GNULIB_ISATTY
1393 GNULIB_GROUP_MEMBER
1394 GNULIB_GETUSERSHELL
1395 GNULIB_GETPAGESIZE
1396 GNULIB_GETLOGIN_R
1397 GNULIB_GETLOGIN
1398 GNULIB_GETHOSTNAME
1399 GNULIB_GETGROUPS
1400 GNULIB_GETDTABLESIZE
1401 GNULIB_GETDOMAINNAME
1402 GNULIB_GETCWD
1403 GNULIB_FTRUNCATE
1404 GNULIB_FSYNC
1405 GNULIB_FDATASYNC
1406 GNULIB_FCHOWNAT
1407 GNULIB_FCHDIR
1408 GNULIB_FACCESSAT
1409 GNULIB_EUIDACCESS
1410 GNULIB_ENVIRON
1411 GNULIB_DUP3
1412 GNULIB_DUP2
1413 GNULIB_DUP
1414 GNULIB_CLOSE
1415 GNULIB_CHOWN
1416 GNULIB_CHDIR
1417 ENABLE_OPENSSL_FALSE
1418 ENABLE_OPENSSL_TRUE
1419 ENABLE_SESSION_TICKET_FALSE
1420 ENABLE_SESSION_TICKET_TRUE
1421 ENABLE_OPENPGP_FALSE
1422 ENABLE_OPENPGP_TRUE
1423 ENABLE_PKI_FALSE
1424 ENABLE_PKI_TRUE
1425 ENABLE_ANON_FALSE
1426 ENABLE_ANON_TRUE
1427 ENABLE_PSK_FALSE
1428 ENABLE_PSK_TRUE
1429 ENABLE_SRP_FALSE
1430 ENABLE_SRP_TRUE
1431 ENABLE_OPRFI_FALSE
1432 ENABLE_OPRFI_TRUE
1433 USE_LZO_FALSE
1434 USE_LZO_TRUE
1435 LZO_LIBS
1436 ENABLE_MINITASN1_FALSE
1437 ENABLE_MINITASN1_TRUE
1438 LIBTASN1_PREFIX
1439 LTLIBTASN1
1440 LIBTASN1
1441 HAVE_LIBTASN1
1442 ENABLE_NETTLE_FALSE
1443 ENABLE_NETTLE_TRUE
1444 NETTLE_LIBS
1445 LIBNETTLE_PREFIX
1446 LTLIBNETTLE
1447 LIBNETTLE
1448 HAVE_LIBNETTLE
1449 LIBGCRYPT_PREFIX
1450 LTLIBGCRYPT
1451 LIBGCRYPT
1452 HAVE_LIBGCRYPT
1453 DLL_VERSION
1454 CXX_LT_AGE
1455 CXX_LT_REVISION
1456 CXX_LT_CURRENT
1457 LT_SSL_AGE
1458 LT_SSL_REVISION
1459 LT_SSL_CURRENT
1460 LT_AGE
1461 LT_REVISION
1462 LT_CURRENT
1463 WANT_TEST_SUITE_FALSE
1464 WANT_TEST_SUITE_TRUE
1465 ENABLE_CXX_FALSE
1466 ENABLE_CXX_TRUE
1467 am__fastdepCXX_FALSE
1468 am__fastdepCXX_TRUE
1469 CXXDEPMODE
1470 ac_ct_CXX
1471 CXXFLAGS
1472 CXX
1473 host_os
1474 host_vendor
1475 host_cpu
1476 host
1477 build_os
1478 build_vendor
1479 build_cpu
1480 build
1481 RANLIB
1482 ARFLAGS
1483 AR
1484 EGREP
1485 GREP
1486 CPP
1487 GAA
1488 GTK_DOC_USE_REBASE_FALSE
1489 GTK_DOC_USE_REBASE_TRUE
1490 GTK_DOC_USE_LIBTOOL_FALSE
1491 GTK_DOC_USE_LIBTOOL_TRUE
1492 GTK_DOC_BUILD_PDF_FALSE
1493 GTK_DOC_BUILD_PDF_TRUE
1494 GTK_DOC_BUILD_HTML_FALSE
1495 GTK_DOC_BUILD_HTML_TRUE
1496 ENABLE_GTK_DOC_FALSE
1497 ENABLE_GTK_DOC_TRUE
1498 PKG_CONFIG
1499 HTML_DIR
1500 GTKDOC_MKPDF
1501 GTKDOC_REBASE
1502 GTKDOC_CHECK
1503 LN_S
1504 am__fastdepCC_FALSE
1505 am__fastdepCC_TRUE
1506 CCDEPMODE
1507 am__nodep
1508 AMDEPBACKSLASH
1509 AMDEP_FALSE
1510 AMDEP_TRUE
1511 am__quote
1512 am__include
1513 DEPDIR
1514 OBJEXT
1515 EXEEXT
1516 ac_ct_CC
1517 CPPFLAGS
1518 LDFLAGS
1519 CFLAGS
1520 CC
1521 AM_BACKSLASH
1522 AM_DEFAULT_VERBOSITY
1523 AM_DEFAULT_V
1524 AM_V
1525 am__untar
1526 am__tar
1527 AMTAR
1528 am__leading_dot
1529 SET_MAKE
1530 AWK
1531 mkdir_p
1532 MKDIR_P
1533 INSTALL_STRIP_PROGRAM
1534 STRIP
1535 install_sh
1536 MAKEINFO
1537 AUTOHEADER
1538 AUTOMAKE
1539 AUTOCONF
1540 ACLOCAL
1541 VERSION
1542 PACKAGE
1543 CYGPATH_W
1544 am__isrc
1545 INSTALL_DATA
1546 INSTALL_SCRIPT
1547 INSTALL_PROGRAM
1548 target_alias
1549 host_alias
1550 build_alias
1551 LIBS
1552 ECHO_T
1553 ECHO_N
1554 ECHO_C
1555 DEFS
1556 mandir
1557 localedir
1558 libdir
1559 psdir
1560 pdfdir
1561 dvidir
1562 htmldir
1563 infodir
1564 docdir
1565 oldincludedir
1566 includedir
1567 localstatedir
1568 sharedstatedir
1569 sysconfdir
1570 datadir
1571 datarootdir
1572 libexecdir
1573 sbindir
1574 bindir
1575 program_transform_name
1576 prefix
1577 exec_prefix
1578 PACKAGE_URL
1579 PACKAGE_BUGREPORT
1580 PACKAGE_STRING
1581 PACKAGE_VERSION
1582 PACKAGE_TARNAME
1583 PACKAGE_NAME
1584 PATH_SEPARATOR
1585 SHELL'
1586 ac_subst_files=''
1587 ac_user_opts='
1588 enable_option_checking
1589 enable_silent_rules
1590 enable_dependency_tracking
1591 with_html_dir
1592 enable_gtk_doc
1593 enable_gtk_doc_html
1594 enable_gtk_doc_pdf
1595 enable_largefile
1596 enable_threads
1597 enable_cxx
1598 with_libgcrypt
1599 with_gnu_ld
1600 enable_rpath
1601 with_libgcrypt_prefix
1602 with_libnettle_prefix
1603 with_included_libtasn1
1604 with_libtasn1_prefix
1605 with_lzo
1606 enable_opaque_prf_input
1607 enable_srp_authentication
1608 enable_psk_authentication
1609 enable_anon_authentication
1610 enable_camellia
1611 enable_extra_pki
1612 enable_openpgp_authentication
1613 enable_session_ticket
1614 enable_cryptodev
1615 enable_openssl_compatibility
1616 with_p11_kit
1617 enable_guile
1618 with___with_guile_site_dir
1619 with_included_libcfg
1620 enable_shared
1621 enable_static
1622 with_pic
1623 enable_fast_install
1624 with_sysroot
1625 enable_libtool_lock
1626 with_libpth_prefix
1627 with_libreadline_prefix
1628 enable_valgrind_tests
1629 with_packager
1630 with_packager_version
1631 with_packager_bug_reports
1632 enable_gcc_warnings
1633 '
1634       ac_precious_vars='build_alias
1635 host_alias
1636 target_alias
1637 CC
1638 CFLAGS
1639 LDFLAGS
1640 LIBS
1641 CPPFLAGS
1642 PKG_CONFIG
1643 CPP
1644 CXX
1645 CXXFLAGS
1646 CCC
1647 P11_KIT_CFLAGS
1648 P11_KIT_LIBS
1649 CXXCPP'
1650 ac_subdirs_all='lib
1651 libextra'
1652
1653 # Initialize some variables set by options.
1654 ac_init_help=
1655 ac_init_version=false
1656 ac_unrecognized_opts=
1657 ac_unrecognized_sep=
1658 # The variables have the same names as the options, with
1659 # dashes changed to underlines.
1660 cache_file=/dev/null
1661 exec_prefix=NONE
1662 no_create=
1663 no_recursion=
1664 prefix=NONE
1665 program_prefix=NONE
1666 program_suffix=NONE
1667 program_transform_name=s,x,x,
1668 silent=
1669 site=
1670 srcdir=
1671 verbose=
1672 x_includes=NONE
1673 x_libraries=NONE
1674
1675 # Installation directory options.
1676 # These are left unexpanded so users can "make install exec_prefix=/foo"
1677 # and all the variables that are supposed to be based on exec_prefix
1678 # by default will actually change.
1679 # Use braces instead of parens because sh, perl, etc. also accept them.
1680 # (The list follows the same order as the GNU Coding Standards.)
1681 bindir='${exec_prefix}/bin'
1682 sbindir='${exec_prefix}/sbin'
1683 libexecdir='${exec_prefix}/libexec'
1684 datarootdir='${prefix}/share'
1685 datadir='${datarootdir}'
1686 sysconfdir='${prefix}/etc'
1687 sharedstatedir='${prefix}/com'
1688 localstatedir='${prefix}/var'
1689 includedir='${prefix}/include'
1690 oldincludedir='/usr/include'
1691 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1692 infodir='${datarootdir}/info'
1693 htmldir='${docdir}'
1694 dvidir='${docdir}'
1695 pdfdir='${docdir}'
1696 psdir='${docdir}'
1697 libdir='${exec_prefix}/lib'
1698 localedir='${datarootdir}/locale'
1699 mandir='${datarootdir}/man'
1700
1701 ac_prev=
1702 ac_dashdash=
1703 for ac_option
1704 do
1705   # If the previous option needs an argument, assign it.
1706   if test -n "$ac_prev"; then
1707     eval $ac_prev=\$ac_option
1708     ac_prev=
1709     continue
1710   fi
1711
1712   case $ac_option in
1713   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1714   *=)   ac_optarg= ;;
1715   *)    ac_optarg=yes ;;
1716   esac
1717
1718   # Accept the important Cygnus configure options, so we can diagnose typos.
1719
1720   case $ac_dashdash$ac_option in
1721   --)
1722     ac_dashdash=yes ;;
1723
1724   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1725     ac_prev=bindir ;;
1726   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1727     bindir=$ac_optarg ;;
1728
1729   -build | --build | --buil | --bui | --bu)
1730     ac_prev=build_alias ;;
1731   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1732     build_alias=$ac_optarg ;;
1733
1734   -cache-file | --cache-file | --cache-fil | --cache-fi \
1735   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1736     ac_prev=cache_file ;;
1737   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1738   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1739     cache_file=$ac_optarg ;;
1740
1741   --config-cache | -C)
1742     cache_file=config.cache ;;
1743
1744   -datadir | --datadir | --datadi | --datad)
1745     ac_prev=datadir ;;
1746   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1747     datadir=$ac_optarg ;;
1748
1749   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1750   | --dataroo | --dataro | --datar)
1751     ac_prev=datarootdir ;;
1752   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1753   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1754     datarootdir=$ac_optarg ;;
1755
1756   -disable-* | --disable-*)
1757     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1758     # Reject names that are not valid shell variable names.
1759     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1760       as_fn_error $? "invalid feature name: $ac_useropt"
1761     ac_useropt_orig=$ac_useropt
1762     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1763     case $ac_user_opts in
1764       *"
1765 "enable_$ac_useropt"
1766 "*) ;;
1767       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1768          ac_unrecognized_sep=', ';;
1769     esac
1770     eval enable_$ac_useropt=no ;;
1771
1772   -docdir | --docdir | --docdi | --doc | --do)
1773     ac_prev=docdir ;;
1774   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1775     docdir=$ac_optarg ;;
1776
1777   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1778     ac_prev=dvidir ;;
1779   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1780     dvidir=$ac_optarg ;;
1781
1782   -enable-* | --enable-*)
1783     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1784     # Reject names that are not valid shell variable names.
1785     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1786       as_fn_error $? "invalid feature name: $ac_useropt"
1787     ac_useropt_orig=$ac_useropt
1788     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1789     case $ac_user_opts in
1790       *"
1791 "enable_$ac_useropt"
1792 "*) ;;
1793       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1794          ac_unrecognized_sep=', ';;
1795     esac
1796     eval enable_$ac_useropt=\$ac_optarg ;;
1797
1798   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1799   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1800   | --exec | --exe | --ex)
1801     ac_prev=exec_prefix ;;
1802   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1803   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1804   | --exec=* | --exe=* | --ex=*)
1805     exec_prefix=$ac_optarg ;;
1806
1807   -gas | --gas | --ga | --g)
1808     # Obsolete; use --with-gas.
1809     with_gas=yes ;;
1810
1811   -help | --help | --hel | --he | -h)
1812     ac_init_help=long ;;
1813   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1814     ac_init_help=recursive ;;
1815   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1816     ac_init_help=short ;;
1817
1818   -host | --host | --hos | --ho)
1819     ac_prev=host_alias ;;
1820   -host=* | --host=* | --hos=* | --ho=*)
1821     host_alias=$ac_optarg ;;
1822
1823   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1824     ac_prev=htmldir ;;
1825   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1826   | --ht=*)
1827     htmldir=$ac_optarg ;;
1828
1829   -includedir | --includedir | --includedi | --included | --include \
1830   | --includ | --inclu | --incl | --inc)
1831     ac_prev=includedir ;;
1832   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1833   | --includ=* | --inclu=* | --incl=* | --inc=*)
1834     includedir=$ac_optarg ;;
1835
1836   -infodir | --infodir | --infodi | --infod | --info | --inf)
1837     ac_prev=infodir ;;
1838   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1839     infodir=$ac_optarg ;;
1840
1841   -libdir | --libdir | --libdi | --libd)
1842     ac_prev=libdir ;;
1843   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1844     libdir=$ac_optarg ;;
1845
1846   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1847   | --libexe | --libex | --libe)
1848     ac_prev=libexecdir ;;
1849   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1850   | --libexe=* | --libex=* | --libe=*)
1851     libexecdir=$ac_optarg ;;
1852
1853   -localedir | --localedir | --localedi | --localed | --locale)
1854     ac_prev=localedir ;;
1855   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1856     localedir=$ac_optarg ;;
1857
1858   -localstatedir | --localstatedir | --localstatedi | --localstated \
1859   | --localstate | --localstat | --localsta | --localst | --locals)
1860     ac_prev=localstatedir ;;
1861   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1862   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1863     localstatedir=$ac_optarg ;;
1864
1865   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1866     ac_prev=mandir ;;
1867   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1868     mandir=$ac_optarg ;;
1869
1870   -nfp | --nfp | --nf)
1871     # Obsolete; use --without-fp.
1872     with_fp=no ;;
1873
1874   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1875   | --no-cr | --no-c | -n)
1876     no_create=yes ;;
1877
1878   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1879   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1880     no_recursion=yes ;;
1881
1882   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1883   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1884   | --oldin | --oldi | --old | --ol | --o)
1885     ac_prev=oldincludedir ;;
1886   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1887   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1888   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1889     oldincludedir=$ac_optarg ;;
1890
1891   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1892     ac_prev=prefix ;;
1893   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1894     prefix=$ac_optarg ;;
1895
1896   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1897   | --program-pre | --program-pr | --program-p)
1898     ac_prev=program_prefix ;;
1899   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1900   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1901     program_prefix=$ac_optarg ;;
1902
1903   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1904   | --program-suf | --program-su | --program-s)
1905     ac_prev=program_suffix ;;
1906   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1907   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1908     program_suffix=$ac_optarg ;;
1909
1910   -program-transform-name | --program-transform-name \
1911   | --program-transform-nam | --program-transform-na \
1912   | --program-transform-n | --program-transform- \
1913   | --program-transform | --program-transfor \
1914   | --program-transfo | --program-transf \
1915   | --program-trans | --program-tran \
1916   | --progr-tra | --program-tr | --program-t)
1917     ac_prev=program_transform_name ;;
1918   -program-transform-name=* | --program-transform-name=* \
1919   | --program-transform-nam=* | --program-transform-na=* \
1920   | --program-transform-n=* | --program-transform-=* \
1921   | --program-transform=* | --program-transfor=* \
1922   | --program-transfo=* | --program-transf=* \
1923   | --program-trans=* | --program-tran=* \
1924   | --progr-tra=* | --program-tr=* | --program-t=*)
1925     program_transform_name=$ac_optarg ;;
1926
1927   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1928     ac_prev=pdfdir ;;
1929   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1930     pdfdir=$ac_optarg ;;
1931
1932   -psdir | --psdir | --psdi | --psd | --ps)
1933     ac_prev=psdir ;;
1934   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1935     psdir=$ac_optarg ;;
1936
1937   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1938   | -silent | --silent | --silen | --sile | --sil)
1939     silent=yes ;;
1940
1941   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1942     ac_prev=sbindir ;;
1943   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1944   | --sbi=* | --sb=*)
1945     sbindir=$ac_optarg ;;
1946
1947   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1948   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1949   | --sharedst | --shareds | --shared | --share | --shar \
1950   | --sha | --sh)
1951     ac_prev=sharedstatedir ;;
1952   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1953   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1954   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1955   | --sha=* | --sh=*)
1956     sharedstatedir=$ac_optarg ;;
1957
1958   -site | --site | --sit)
1959     ac_prev=site ;;
1960   -site=* | --site=* | --sit=*)
1961     site=$ac_optarg ;;
1962
1963   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1964     ac_prev=srcdir ;;
1965   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1966     srcdir=$ac_optarg ;;
1967
1968   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1969   | --syscon | --sysco | --sysc | --sys | --sy)
1970     ac_prev=sysconfdir ;;
1971   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1972   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1973     sysconfdir=$ac_optarg ;;
1974
1975   -target | --target | --targe | --targ | --tar | --ta | --t)
1976     ac_prev=target_alias ;;
1977   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1978     target_alias=$ac_optarg ;;
1979
1980   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1981     verbose=yes ;;
1982
1983   -version | --version | --versio | --versi | --vers | -V)
1984     ac_init_version=: ;;
1985
1986   -with-* | --with-*)
1987     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1988     # Reject names that are not valid shell variable names.
1989     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1990       as_fn_error $? "invalid package name: $ac_useropt"
1991     ac_useropt_orig=$ac_useropt
1992     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1993     case $ac_user_opts in
1994       *"
1995 "with_$ac_useropt"
1996 "*) ;;
1997       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1998          ac_unrecognized_sep=', ';;
1999     esac
2000     eval with_$ac_useropt=\$ac_optarg ;;
2001
2002   -without-* | --without-*)
2003     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2004     # Reject names that are not valid shell variable names.
2005     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2006       as_fn_error $? "invalid package name: $ac_useropt"
2007     ac_useropt_orig=$ac_useropt
2008     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2009     case $ac_user_opts in
2010       *"
2011 "with_$ac_useropt"
2012 "*) ;;
2013       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2014          ac_unrecognized_sep=', ';;
2015     esac
2016     eval with_$ac_useropt=no ;;
2017
2018   --x)
2019     # Obsolete; use --with-x.
2020     with_x=yes ;;
2021
2022   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2023   | --x-incl | --x-inc | --x-in | --x-i)
2024     ac_prev=x_includes ;;
2025   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2026   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2027     x_includes=$ac_optarg ;;
2028
2029   -x-libraries | --x-libraries | --x-librarie | --x-librari \
2030   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2031     ac_prev=x_libraries ;;
2032   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2033   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2034     x_libraries=$ac_optarg ;;
2035
2036   -*) as_fn_error $? "unrecognized option: \`$ac_option'
2037 Try \`$0 --help' for more information"
2038     ;;
2039
2040   *=*)
2041     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2042     # Reject names that are not valid shell variable names.
2043     case $ac_envvar in #(
2044       '' | [0-9]* | *[!_$as_cr_alnum]* )
2045       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2046     esac
2047     eval $ac_envvar=\$ac_optarg
2048     export $ac_envvar ;;
2049
2050   *)
2051     # FIXME: should be removed in autoconf 3.0.
2052     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2053     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2054       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2055     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2056     ;;
2057
2058   esac
2059 done
2060
2061 if test -n "$ac_prev"; then
2062   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2063   as_fn_error $? "missing argument to $ac_option"
2064 fi
2065
2066 if test -n "$ac_unrecognized_opts"; then
2067   case $enable_option_checking in
2068     no) ;;
2069     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2070     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2071   esac
2072 fi
2073
2074 # Check all directory arguments for consistency.
2075 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2076                 datadir sysconfdir sharedstatedir localstatedir includedir \
2077                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2078                 libdir localedir mandir
2079 do
2080   eval ac_val=\$$ac_var
2081   # Remove trailing slashes.
2082   case $ac_val in
2083     */ )
2084       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2085       eval $ac_var=\$ac_val;;
2086   esac
2087   # Be sure to have absolute directory names.
2088   case $ac_val in
2089     [\\/$]* | ?:[\\/]* )  continue;;
2090     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2091   esac
2092   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2093 done
2094
2095 # There might be people who depend on the old broken behavior: `$host'
2096 # used to hold the argument of --host etc.
2097 # FIXME: To remove some day.
2098 build=$build_alias
2099 host=$host_alias
2100 target=$target_alias
2101
2102 # FIXME: To remove some day.
2103 if test "x$host_alias" != x; then
2104   if test "x$build_alias" = x; then
2105     cross_compiling=maybe
2106     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
2107     If a cross compiler is detected then cross compile mode will be used" >&2
2108   elif test "x$build_alias" != "x$host_alias"; then
2109     cross_compiling=yes
2110   fi
2111 fi
2112
2113 ac_tool_prefix=
2114 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2115
2116 test "$silent" = yes && exec 6>/dev/null
2117
2118
2119 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2120 ac_ls_di=`ls -di .` &&
2121 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2122   as_fn_error $? "working directory cannot be determined"
2123 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2124   as_fn_error $? "pwd does not report name of working directory"
2125
2126
2127 # Find the source files, if location was not specified.
2128 if test -z "$srcdir"; then
2129   ac_srcdir_defaulted=yes
2130   # Try the directory containing this script, then the parent directory.
2131   ac_confdir=`$as_dirname -- "$as_myself" ||
2132 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2133          X"$as_myself" : 'X\(//\)[^/]' \| \
2134          X"$as_myself" : 'X\(//\)$' \| \
2135          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2136 $as_echo X"$as_myself" |
2137     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2138             s//\1/
2139             q
2140           }
2141           /^X\(\/\/\)[^/].*/{
2142             s//\1/
2143             q
2144           }
2145           /^X\(\/\/\)$/{
2146             s//\1/
2147             q
2148           }
2149           /^X\(\/\).*/{
2150             s//\1/
2151             q
2152           }
2153           s/.*/./; q'`
2154   srcdir=$ac_confdir
2155   if test ! -r "$srcdir/$ac_unique_file"; then
2156     srcdir=..
2157   fi
2158 else
2159   ac_srcdir_defaulted=no
2160 fi
2161 if test ! -r "$srcdir/$ac_unique_file"; then
2162   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2163   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2164 fi
2165 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2166 ac_abs_confdir=`(
2167         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2168         pwd)`
2169 # When building in place, set srcdir=.
2170 if test "$ac_abs_confdir" = "$ac_pwd"; then
2171   srcdir=.
2172 fi
2173 # Remove unnecessary trailing slashes from srcdir.
2174 # Double slashes in file names in object file debugging info
2175 # mess up M-x gdb in Emacs.
2176 case $srcdir in
2177 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2178 esac
2179 for ac_var in $ac_precious_vars; do
2180   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2181   eval ac_env_${ac_var}_value=\$${ac_var}
2182   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2183   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2184 done
2185
2186 #
2187 # Report the --help message.
2188 #
2189 if test "$ac_init_help" = "long"; then
2190   # Omit some internal or obsolete options to make the list less imposing.
2191   # This message is too long to be a string in the A/UX 3.1 sh.
2192   cat <<_ACEOF
2193 \`configure' configures GnuTLS 2.12.20 to adapt to many kinds of systems.
2194
2195 Usage: $0 [OPTION]... [VAR=VALUE]...
2196
2197 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2198 VAR=VALUE.  See below for descriptions of some of the useful variables.
2199
2200 Defaults for the options are specified in brackets.
2201
2202 Configuration:
2203   -h, --help              display this help and exit
2204       --help=short        display options specific to this package
2205       --help=recursive    display the short help of all the included packages
2206   -V, --version           display version information and exit
2207   -q, --quiet, --silent   do not print \`checking ...' messages
2208       --cache-file=FILE   cache test results in FILE [disabled]
2209   -C, --config-cache      alias for \`--cache-file=config.cache'
2210   -n, --no-create         do not create output files
2211       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2212
2213 Installation directories:
2214   --prefix=PREFIX         install architecture-independent files in PREFIX
2215                           [$ac_default_prefix]
2216   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2217                           [PREFIX]
2218
2219 By default, \`make install' will install all the files in
2220 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2221 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2222 for instance \`--prefix=\$HOME'.
2223
2224 For better control, use the options below.
2225
2226 Fine tuning of the installation directories:
2227   --bindir=DIR            user executables [EPREFIX/bin]
2228   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2229   --libexecdir=DIR        program executables [EPREFIX/libexec]
2230   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2231   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2232   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2233   --libdir=DIR            object code libraries [EPREFIX/lib]
2234   --includedir=DIR        C header files [PREFIX/include]
2235   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2236   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2237   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2238   --infodir=DIR           info documentation [DATAROOTDIR/info]
2239   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2240   --mandir=DIR            man documentation [DATAROOTDIR/man]
2241   --docdir=DIR            documentation root [DATAROOTDIR/doc/gnutls]
2242   --htmldir=DIR           html documentation [DOCDIR]
2243   --dvidir=DIR            dvi documentation [DOCDIR]
2244   --pdfdir=DIR            pdf documentation [DOCDIR]
2245   --psdir=DIR             ps documentation [DOCDIR]
2246 _ACEOF
2247
2248   cat <<\_ACEOF
2249
2250 Program names:
2251   --program-prefix=PREFIX            prepend PREFIX to installed program names
2252   --program-suffix=SUFFIX            append SUFFIX to installed program names
2253   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2254
2255 System types:
2256   --build=BUILD     configure for building on BUILD [guessed]
2257   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2258 _ACEOF
2259 fi
2260
2261 if test -n "$ac_init_help"; then
2262   case $ac_init_help in
2263      short | recursive ) echo "Configuration of GnuTLS 2.12.20:";;
2264    esac
2265   cat <<\_ACEOF
2266
2267 Optional Features:
2268   --disable-option-checking  ignore unrecognized --enable/--with options
2269   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2270   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2271   --enable-silent-rules          less verbose build output (undo: `make V=1')
2272   --disable-silent-rules         verbose build output (undo: `make V=0')
2273   --disable-dependency-tracking  speeds up one-time build
2274   --enable-dependency-tracking   do not reject slow dependency extractors
2275   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
2276   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
2277   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
2278   --disable-largefile     omit support for large files
2279   --enable-threads={posix|solaris|pth|windows}
2280                           specify multithreading API
2281   --disable-threads       build without multithread safety
2282   --disable-cxx           unconditionally disable the C++ library
2283   --disable-rpath         do not hardcode runtime library paths
2284   --enable-opaque-prf-input=DD
2285                           enable Opaque PRF input using DD as extension type
2286   --disable-srp-authentication
2287                           disable the SRP authentication support
2288   --disable-psk-authentication
2289                           disable the PSK authentication support
2290   --disable-anon-authentication
2291                           disable the anonymous authentication support
2292   --disable-camellia      disable Camellia cipher
2293   --disable-extra-pki     only enable the basic PKI stuff
2294   --disable-openpgp-authentication
2295                           disable the OpenPGP authentication support
2296   --disable-session-ticket
2297                           disable the SessionTicket extension support
2298   --enable-cryptodev      enable cryptodev support
2299   --disable-openssl-compatibility
2300                           disable the OpenSSL compatibility support
2301   --enable-guile          build GNU Guile bindings
2302   --enable-shared[=PKGS]  build shared libraries [default=yes]
2303   --enable-static[=PKGS]  build static libraries [default=yes]
2304   --enable-fast-install[=PKGS]
2305                           optimize for fast installation [default=yes]
2306   --disable-libtool-lock  avoid locking (might break parallel builds)
2307   --enable-valgrind-tests run self tests under valgrind
2308   --enable-gcc-warnings   turn on lots of GCC warnings (for developers)
2309
2310 Optional Packages:
2311   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2312   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2313   --with-html-dir=PATH    path to installed docs
2314   --with-libgcrypt        use libgcrypt as crypto library
2315   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2316   --with-libgcrypt-prefix[=DIR]  search for libgcrypt in DIR/include and DIR/lib
2317   --without-libgcrypt-prefix     don't search for libgcrypt in includedir and libdir
2318   --with-libnettle-prefix[=DIR]  search for libnettle in DIR/include and DIR/lib
2319   --without-libnettle-prefix     don't search for libnettle in includedir and libdir
2320   --with-included-libtasn1
2321                           use the included libtasn1
2322   --with-libtasn1-prefix[=DIR]  search for libtasn1 in DIR/include and DIR/lib
2323   --without-libtasn1-prefix     don't search for libtasn1 in includedir and libdir
2324   --with-lzo              use experimental LZO compression
2325   --without-p11-kit       Build without p11-kit and PKCS#11 support
2326   --with-guile-site-dir   use the given directory as the Guile site (use with
2327                           care)
2328   --with-included-libcfg  use the included libcfg+ (certtool only)
2329   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2330                           both]
2331   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2332   --with-sysroot=DIR Search for dependent libraries within DIR
2333                         (or the compiler's sysroot if not specified).
2334   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2335   --without-libpth-prefix     don't search for libpth in includedir and libdir
2336   --with-libreadline-prefix[=DIR]  search for libreadline in DIR/include and DIR/lib
2337   --without-libreadline-prefix     don't search for libreadline in includedir and libdir
2338   --with-packager         String identifying the packager of this software
2339   --with-packager-version Packager-specific version information
2340   --with-packager-bug-reports
2341                           Packager info for bug reports (URL/e-mail/...)
2342
2343 Some influential environment variables:
2344   CC          C compiler command
2345   CFLAGS      C compiler flags
2346   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2347               nonstandard directory <lib dir>
2348   LIBS        libraries to pass to the linker, e.g. -l<library>
2349   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2350               you have headers in a nonstandard directory <include dir>
2351   PKG_CONFIG  path to pkg-config utility
2352   CPP         C preprocessor
2353   CXX         C++ compiler command
2354   CXXFLAGS    C++ compiler flags
2355   P11_KIT_CFLAGS
2356               C compiler flags for P11_KIT, overriding pkg-config
2357   P11_KIT_LIBS
2358               linker flags for P11_KIT, overriding pkg-config
2359   CXXCPP      C++ preprocessor
2360
2361 Use these variables to override the choices made by `configure' or to help
2362 it to find libraries and programs with nonstandard names/locations.
2363
2364 Report bugs to <bug-gnutls@gnu.org>.
2365 _ACEOF
2366 ac_status=$?
2367 fi
2368
2369 if test "$ac_init_help" = "recursive"; then
2370   # If there are subdirs, report their specific --help.
2371   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2372     test -d "$ac_dir" ||
2373       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2374       continue
2375     ac_builddir=.
2376
2377 case "$ac_dir" in
2378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2379 *)
2380   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2381   # A ".." for each directory in $ac_dir_suffix.
2382   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2383   case $ac_top_builddir_sub in
2384   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2385   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2386   esac ;;
2387 esac
2388 ac_abs_top_builddir=$ac_pwd
2389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2390 # for backward compatibility:
2391 ac_top_builddir=$ac_top_build_prefix
2392
2393 case $srcdir in
2394   .)  # We are building in place.
2395     ac_srcdir=.
2396     ac_top_srcdir=$ac_top_builddir_sub
2397     ac_abs_top_srcdir=$ac_pwd ;;
2398   [\\/]* | ?:[\\/]* )  # Absolute name.
2399     ac_srcdir=$srcdir$ac_dir_suffix;
2400     ac_top_srcdir=$srcdir
2401     ac_abs_top_srcdir=$srcdir ;;
2402   *) # Relative name.
2403     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2404     ac_top_srcdir=$ac_top_build_prefix$srcdir
2405     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2406 esac
2407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2408
2409     cd "$ac_dir" || { ac_status=$?; continue; }
2410     # Check for guested configure.
2411     if test -f "$ac_srcdir/configure.gnu"; then
2412       echo &&
2413       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2414     elif test -f "$ac_srcdir/configure"; then
2415       echo &&
2416       $SHELL "$ac_srcdir/configure" --help=recursive
2417     else
2418       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2419     fi || ac_status=$?
2420     cd "$ac_pwd" || { ac_status=$?; break; }
2421   done
2422 fi
2423
2424 test -n "$ac_init_help" && exit $ac_status
2425 if $ac_init_version; then
2426   cat <<\_ACEOF
2427 GnuTLS configure 2.12.20
2428 generated by GNU Autoconf 2.68
2429
2430 Copyright (C) 2010 Free Software Foundation, Inc.
2431 This configure script is free software; the Free Software Foundation
2432 gives unlimited permission to copy, distribute and modify it.
2433 _ACEOF
2434   exit
2435 fi
2436
2437 ## ------------------------ ##
2438 ## Autoconf initialization. ##
2439 ## ------------------------ ##
2440
2441 # ac_fn_c_try_compile LINENO
2442 # --------------------------
2443 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2444 ac_fn_c_try_compile ()
2445 {
2446   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447   rm -f conftest.$ac_objext
2448   if { { ac_try="$ac_compile"
2449 case "(($ac_try" in
2450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451   *) ac_try_echo=$ac_try;;
2452 esac
2453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2454 $as_echo "$ac_try_echo"; } >&5
2455   (eval "$ac_compile") 2>conftest.err
2456   ac_status=$?
2457   if test -s conftest.err; then
2458     grep -v '^ *+' conftest.err >conftest.er1
2459     cat conftest.er1 >&5
2460     mv -f conftest.er1 conftest.err
2461   fi
2462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2463   test $ac_status = 0; } && {
2464          test -z "$ac_c_werror_flag" ||
2465          test ! -s conftest.err
2466        } && test -s conftest.$ac_objext; then :
2467   ac_retval=0
2468 else
2469   $as_echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471
2472         ac_retval=1
2473 fi
2474   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2475   as_fn_set_status $ac_retval
2476
2477 } # ac_fn_c_try_compile
2478
2479 # ac_fn_c_try_cpp LINENO
2480 # ----------------------
2481 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2482 ac_fn_c_try_cpp ()
2483 {
2484   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485   if { { ac_try="$ac_cpp conftest.$ac_ext"
2486 case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2491 $as_echo "$ac_try_echo"; } >&5
2492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2493   ac_status=$?
2494   if test -s conftest.err; then
2495     grep -v '^ *+' conftest.err >conftest.er1
2496     cat conftest.er1 >&5
2497     mv -f conftest.er1 conftest.err
2498   fi
2499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2500   test $ac_status = 0; } > conftest.i && {
2501          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2502          test ! -s conftest.err
2503        }; then :
2504   ac_retval=0
2505 else
2506   $as_echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2508
2509     ac_retval=1
2510 fi
2511   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2512   as_fn_set_status $ac_retval
2513
2514 } # ac_fn_c_try_cpp
2515
2516 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2517 # -------------------------------------------------------
2518 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2519 # the include files in INCLUDES and setting the cache variable VAR
2520 # accordingly.
2521 ac_fn_c_check_header_mongrel ()
2522 {
2523   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524   if eval \${$3+:} false; then :
2525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2526 $as_echo_n "checking for $2... " >&6; }
2527 if eval \${$3+:} false; then :
2528   $as_echo_n "(cached) " >&6
2529 fi
2530 eval ac_res=\$$3
2531                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2532 $as_echo "$ac_res" >&6; }
2533 else
2534   # Is the header compilable?
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2536 $as_echo_n "checking $2 usability... " >&6; }
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h.  */
2539 $4
2540 #include <$2>
2541 _ACEOF
2542 if ac_fn_c_try_compile "$LINENO"; then :
2543   ac_header_compiler=yes
2544 else
2545   ac_header_compiler=no
2546 fi
2547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2549 $as_echo "$ac_header_compiler" >&6; }
2550
2551 # Is the header present?
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2553 $as_echo_n "checking $2 presence... " >&6; }
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h.  */
2556 #include <$2>
2557 _ACEOF
2558 if ac_fn_c_try_cpp "$LINENO"; then :
2559   ac_header_preproc=yes
2560 else
2561   ac_header_preproc=no
2562 fi
2563 rm -f conftest.err conftest.i conftest.$ac_ext
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2565 $as_echo "$ac_header_preproc" >&6; }
2566
2567 # So?  What about this header?
2568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2569   yes:no: )
2570     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2571 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2572     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2573 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2574     ;;
2575   no:yes:* )
2576     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2577 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2578     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2579 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2580     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2581 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2582     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2583 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2584     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2585 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2586 ( $as_echo "## --------------------------------- ##
2587 ## Report this to bug-gnutls@gnu.org ##
2588 ## --------------------------------- ##"
2589      ) | sed "s/^/$as_me: WARNING:     /" >&2
2590     ;;
2591 esac
2592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2593 $as_echo_n "checking for $2... " >&6; }
2594 if eval \${$3+:} false; then :
2595   $as_echo_n "(cached) " >&6
2596 else
2597   eval "$3=\$ac_header_compiler"
2598 fi
2599 eval ac_res=\$$3
2600                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601 $as_echo "$ac_res" >&6; }
2602 fi
2603   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2604
2605 } # ac_fn_c_check_header_mongrel
2606
2607 # ac_fn_c_try_run LINENO
2608 # ----------------------
2609 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2610 # that executables *can* be run.
2611 ac_fn_c_try_run ()
2612 {
2613   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614   if { { ac_try="$ac_link"
2615 case "(($ac_try" in
2616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617   *) ac_try_echo=$ac_try;;
2618 esac
2619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2620 $as_echo "$ac_try_echo"; } >&5
2621   (eval "$ac_link") 2>&5
2622   ac_status=$?
2623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2624   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2625   { { case "(($ac_try" in
2626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627   *) ac_try_echo=$ac_try;;
2628 esac
2629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2630 $as_echo "$ac_try_echo"; } >&5
2631   (eval "$ac_try") 2>&5
2632   ac_status=$?
2633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2634   test $ac_status = 0; }; }; then :
2635   ac_retval=0
2636 else
2637   $as_echo "$as_me: program exited with status $ac_status" >&5
2638        $as_echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2640
2641        ac_retval=$ac_status
2642 fi
2643   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2644   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2645   as_fn_set_status $ac_retval
2646
2647 } # ac_fn_c_try_run
2648
2649 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2650 # -------------------------------------------------------
2651 # Tests whether HEADER exists and can be compiled using the include files in
2652 # INCLUDES, setting the cache variable VAR accordingly.
2653 ac_fn_c_check_header_compile ()
2654 {
2655   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2657 $as_echo_n "checking for $2... " >&6; }
2658 if eval \${$3+:} false; then :
2659   $as_echo_n "(cached) " >&6
2660 else
2661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h.  */
2663 $4
2664 #include <$2>
2665 _ACEOF
2666 if ac_fn_c_try_compile "$LINENO"; then :
2667   eval "$3=yes"
2668 else
2669   eval "$3=no"
2670 fi
2671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672 fi
2673 eval ac_res=\$$3
2674                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675 $as_echo "$ac_res" >&6; }
2676   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2677
2678 } # ac_fn_c_check_header_compile
2679
2680 # ac_fn_c_try_link LINENO
2681 # -----------------------
2682 # Try to link conftest.$ac_ext, and return whether this succeeded.
2683 ac_fn_c_try_link ()
2684 {
2685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2686   rm -f conftest.$ac_objext conftest$ac_exeext
2687   if { { ac_try="$ac_link"
2688 case "(($ac_try" in
2689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690   *) ac_try_echo=$ac_try;;
2691 esac
2692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2693 $as_echo "$ac_try_echo"; } >&5
2694   (eval "$ac_link") 2>conftest.err
2695   ac_status=$?
2696   if test -s conftest.err; then
2697     grep -v '^ *+' conftest.err >conftest.er1
2698     cat conftest.er1 >&5
2699     mv -f conftest.er1 conftest.err
2700   fi
2701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702   test $ac_status = 0; } && {
2703          test -z "$ac_c_werror_flag" ||
2704          test ! -s conftest.err
2705        } && test -s conftest$ac_exeext && {
2706          test "$cross_compiling" = yes ||
2707          $as_test_x conftest$ac_exeext
2708        }; then :
2709   ac_retval=0
2710 else
2711   $as_echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713
2714         ac_retval=1
2715 fi
2716   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2717   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2718   # interfere with the next link command; also delete a directory that is
2719   # left behind by Apple's compiler.  We do this before executing the actions.
2720   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2721   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2722   as_fn_set_status $ac_retval
2723
2724 } # ac_fn_c_try_link
2725
2726 # ac_fn_cxx_try_compile LINENO
2727 # ----------------------------
2728 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2729 ac_fn_cxx_try_compile ()
2730 {
2731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732   rm -f conftest.$ac_objext
2733   if { { ac_try="$ac_compile"
2734 case "(($ac_try" in
2735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736   *) ac_try_echo=$ac_try;;
2737 esac
2738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2739 $as_echo "$ac_try_echo"; } >&5
2740   (eval "$ac_compile") 2>conftest.err
2741   ac_status=$?
2742   if test -s conftest.err; then
2743     grep -v '^ *+' conftest.err >conftest.er1
2744     cat conftest.er1 >&5
2745     mv -f conftest.er1 conftest.err
2746   fi
2747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748   test $ac_status = 0; } && {
2749          test -z "$ac_cxx_werror_flag" ||
2750          test ! -s conftest.err
2751        } && test -s conftest.$ac_objext; then :
2752   ac_retval=0
2753 else
2754   $as_echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757         ac_retval=1
2758 fi
2759   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2760   as_fn_set_status $ac_retval
2761
2762 } # ac_fn_cxx_try_compile
2763
2764 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2765 # --------------------------------------------
2766 # Tries to find the compile-time value of EXPR in a program that includes
2767 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2768 # computed
2769 ac_fn_c_compute_int ()
2770 {
2771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2772   if test "$cross_compiling" = yes; then
2773     # Depending upon the size, compute the lo and hi bounds.
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h.  */
2776 $4
2777 int
2778 main ()
2779 {
2780 static int test_array [1 - 2 * !(($2) >= 0)];
2781 test_array [0] = 0
2782
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 if ac_fn_c_try_compile "$LINENO"; then :
2788   ac_lo=0 ac_mid=0
2789   while :; do
2790     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h.  */
2792 $4
2793 int
2794 main ()
2795 {
2796 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2797 test_array [0] = 0
2798
2799   ;
2800   return 0;
2801 }
2802 _ACEOF
2803 if ac_fn_c_try_compile "$LINENO"; then :
2804   ac_hi=$ac_mid; break
2805 else
2806   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2807                         if test $ac_lo -le $ac_mid; then
2808                           ac_lo= ac_hi=
2809                           break
2810                         fi
2811                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2812 fi
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814   done
2815 else
2816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h.  */
2818 $4
2819 int
2820 main ()
2821 {
2822 static int test_array [1 - 2 * !(($2) < 0)];
2823 test_array [0] = 0
2824
2825   ;
2826   return 0;
2827 }
2828 _ACEOF
2829 if ac_fn_c_try_compile "$LINENO"; then :
2830   ac_hi=-1 ac_mid=-1
2831   while :; do
2832     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833 /* end confdefs.h.  */
2834 $4
2835 int
2836 main ()
2837 {
2838 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2839 test_array [0] = 0
2840
2841   ;
2842   return 0;
2843 }
2844 _ACEOF
2845 if ac_fn_c_try_compile "$LINENO"; then :
2846   ac_lo=$ac_mid; break
2847 else
2848   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2849                         if test $ac_mid -le $ac_hi; then
2850                           ac_lo= ac_hi=
2851                           break
2852                         fi
2853                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2854 fi
2855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2856   done
2857 else
2858   ac_lo= ac_hi=
2859 fi
2860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861 fi
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 # Binary search between lo and hi bounds.
2864 while test "x$ac_lo" != "x$ac_hi"; do
2865   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867 /* end confdefs.h.  */
2868 $4
2869 int
2870 main ()
2871 {
2872 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2873 test_array [0] = 0
2874
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 if ac_fn_c_try_compile "$LINENO"; then :
2880   ac_hi=$ac_mid
2881 else
2882   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2883 fi
2884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885 done
2886 case $ac_lo in #((
2887 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2888 '') ac_retval=1 ;;
2889 esac
2890   else
2891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h.  */
2893 $4
2894 static long int longval () { return $2; }
2895 static unsigned long int ulongval () { return $2; }
2896 #include <stdio.h>
2897 #include <stdlib.h>
2898 int
2899 main ()
2900 {
2901
2902   FILE *f = fopen ("conftest.val", "w");
2903   if (! f)
2904     return 1;
2905   if (($2) < 0)
2906     {
2907       long int i = longval ();
2908       if (i != ($2))
2909         return 1;
2910       fprintf (f, "%ld", i);
2911     }
2912   else
2913     {
2914       unsigned long int i = ulongval ();
2915       if (i != ($2))
2916         return 1;
2917       fprintf (f, "%lu", i);
2918     }
2919   /* Do not output a trailing newline, as this causes \r\n confusion
2920      on some platforms.  */
2921   return ferror (f) || fclose (f) != 0;
2922
2923   ;
2924   return 0;
2925 }
2926 _ACEOF
2927 if ac_fn_c_try_run "$LINENO"; then :
2928   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2929 else
2930   ac_retval=1
2931 fi
2932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2933   conftest.$ac_objext conftest.beam conftest.$ac_ext
2934 rm -f conftest.val
2935
2936   fi
2937   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2938   as_fn_set_status $ac_retval
2939
2940 } # ac_fn_c_compute_int
2941
2942 # ac_fn_c_check_func LINENO FUNC VAR
2943 # ----------------------------------
2944 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2945 ac_fn_c_check_func ()
2946 {
2947   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2949 $as_echo_n "checking for $2... " >&6; }
2950 if eval \${$3+:} false; then :
2951   $as_echo_n "(cached) " >&6
2952 else
2953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954 /* end confdefs.h.  */
2955 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2957 #define $2 innocuous_$2
2958
2959 /* System header to define __stub macros and hopefully few prototypes,
2960     which can conflict with char $2 (); below.
2961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2962     <limits.h> exists even on freestanding compilers.  */
2963
2964 #ifdef __STDC__
2965 # include <limits.h>
2966 #else
2967 # include <assert.h>
2968 #endif
2969
2970 #undef $2
2971
2972 /* Override any GCC internal prototype to avoid an error.
2973    Use char because int might match the return type of a GCC
2974    builtin and then its argument prototype would still apply.  */
2975 #ifdef __cplusplus
2976 extern "C"
2977 #endif
2978 char $2 ();
2979 /* The GNU C library defines this for functions which it implements
2980     to always fail with ENOSYS.  Some functions are actually named
2981     something starting with __ and the normal name is an alias.  */
2982 #if defined __stub_$2 || defined __stub___$2
2983 choke me
2984 #endif
2985
2986 int
2987 main ()
2988 {
2989 return $2 ();
2990   ;
2991   return 0;
2992 }
2993 _ACEOF
2994 if ac_fn_c_try_link "$LINENO"; then :
2995   eval "$3=yes"
2996 else
2997   eval "$3=no"
2998 fi
2999 rm -f core conftest.err conftest.$ac_objext \
3000     conftest$ac_exeext conftest.$ac_ext
3001 fi
3002 eval ac_res=\$$3
3003                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3004 $as_echo "$ac_res" >&6; }
3005   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3006
3007 } # ac_fn_c_check_func
3008
3009 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3010 # -------------------------------------------
3011 # Tests whether TYPE exists after having included INCLUDES, setting cache
3012 # variable VAR accordingly.
3013 ac_fn_c_check_type ()
3014 {
3015   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3017 $as_echo_n "checking for $2... " >&6; }
3018 if eval \${$3+:} false; then :
3019   $as_echo_n "(cached) " >&6
3020 else
3021   eval "$3=no"
3022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023 /* end confdefs.h.  */
3024 $4
3025 int
3026 main ()
3027 {
3028 if (sizeof ($2))
3029          return 0;
3030   ;
3031   return 0;
3032 }
3033 _ACEOF
3034 if ac_fn_c_try_compile "$LINENO"; then :
3035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h.  */
3037 $4
3038 int
3039 main ()
3040 {
3041 if (sizeof (($2)))
3042             return 0;
3043   ;
3044   return 0;
3045 }
3046 _ACEOF
3047 if ac_fn_c_try_compile "$LINENO"; then :
3048
3049 else
3050   eval "$3=yes"
3051 fi
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 fi
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 fi
3056 eval ac_res=\$$3
3057                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3058 $as_echo "$ac_res" >&6; }
3059   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3060
3061 } # ac_fn_c_check_type
3062
3063 # ac_fn_cxx_try_cpp LINENO
3064 # ------------------------
3065 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3066 ac_fn_cxx_try_cpp ()
3067 {
3068   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3069   if { { ac_try="$ac_cpp conftest.$ac_ext"
3070 case "(($ac_try" in
3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072   *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3077   ac_status=$?
3078   if test -s conftest.err; then
3079     grep -v '^ *+' conftest.err >conftest.er1
3080     cat conftest.er1 >&5
3081     mv -f conftest.er1 conftest.err
3082   fi
3083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084   test $ac_status = 0; } > conftest.i && {
3085          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3086          test ! -s conftest.err
3087        }; then :
3088   ac_retval=0
3089 else
3090   $as_echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093     ac_retval=1
3094 fi
3095   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3096   as_fn_set_status $ac_retval
3097
3098 } # ac_fn_cxx_try_cpp
3099
3100 # ac_fn_cxx_try_link LINENO
3101 # -------------------------
3102 # Try to link conftest.$ac_ext, and return whether this succeeded.
3103 ac_fn_cxx_try_link ()
3104 {
3105   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3106   rm -f conftest.$ac_objext conftest$ac_exeext
3107   if { { ac_try="$ac_link"
3108 case "(($ac_try" in
3109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110   *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114   (eval "$ac_link") 2>conftest.err
3115   ac_status=$?
3116   if test -s conftest.err; then
3117     grep -v '^ *+' conftest.err >conftest.er1
3118     cat conftest.er1 >&5
3119     mv -f conftest.er1 conftest.err
3120   fi
3121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122   test $ac_status = 0; } && {
3123          test -z "$ac_cxx_werror_flag" ||
3124          test ! -s conftest.err
3125        } && test -s conftest$ac_exeext && {
3126          test "$cross_compiling" = yes ||
3127          $as_test_x conftest$ac_exeext
3128        }; then :
3129   ac_retval=0
3130 else
3131   $as_echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3133
3134         ac_retval=1
3135 fi
3136   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3137   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3138   # interfere with the next link command; also delete a directory that is
3139   # left behind by Apple's compiler.  We do this before executing the actions.
3140   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3141   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3142   as_fn_set_status $ac_retval
3143
3144 } # ac_fn_cxx_try_link
3145
3146 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3147 # ----------------------------------------------------
3148 # Tries to find if the field MEMBER exists in type AGGR, after including
3149 # INCLUDES, setting cache variable VAR accordingly.
3150 ac_fn_c_check_member ()
3151 {
3152   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3154 $as_echo_n "checking for $2.$3... " >&6; }
3155 if eval \${$4+:} false; then :
3156   $as_echo_n "(cached) " >&6
3157 else
3158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h.  */
3160 $5
3161 int
3162 main ()
3163 {
3164 static $2 ac_aggr;
3165 if (ac_aggr.$3)
3166 return 0;
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 if ac_fn_c_try_compile "$LINENO"; then :
3172   eval "$4=yes"
3173 else
3174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h.  */
3176 $5
3177 int
3178 main ()
3179 {
3180 static $2 ac_aggr;
3181 if (sizeof ac_aggr.$3)
3182 return 0;
3183   ;
3184   return 0;
3185 }
3186 _ACEOF
3187 if ac_fn_c_try_compile "$LINENO"; then :
3188   eval "$4=yes"
3189 else
3190   eval "$4=no"
3191 fi
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 fi
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 fi
3196 eval ac_res=\$$4
3197                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3198 $as_echo "$ac_res" >&6; }
3199   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3200
3201 } # ac_fn_c_check_member
3202
3203 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3204 # ---------------------------------------------
3205 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3206 # accordingly.
3207 ac_fn_c_check_decl ()
3208 {
3209   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3210   as_decl_name=`echo $2|sed 's/ *(.*//'`
3211   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3213 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3214 if eval \${$3+:} false; then :
3215   $as_echo_n "(cached) " >&6
3216 else
3217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h.  */
3219 $4
3220 int
3221 main ()
3222 {
3223 #ifndef $as_decl_name
3224 #ifdef __cplusplus
3225   (void) $as_decl_use;
3226 #else
3227   (void) $as_decl_name;
3228 #endif
3229 #endif
3230
3231   ;
3232   return 0;
3233 }
3234 _ACEOF
3235 if ac_fn_c_try_compile "$LINENO"; then :
3236   eval "$3=yes"
3237 else
3238   eval "$3=no"
3239 fi
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 fi
3242 eval ac_res=\$$3
3243                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3244 $as_echo "$ac_res" >&6; }
3245   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3246
3247 } # ac_fn_c_check_decl
3248 cat >config.log <<_ACEOF
3249 This file contains any messages produced by compilers while
3250 running configure, to aid debugging if configure makes a mistake.
3251
3252 It was created by GnuTLS $as_me 2.12.20, which was
3253 generated by GNU Autoconf 2.68.  Invocation command line was
3254
3255   $ $0 $@
3256
3257 _ACEOF
3258 exec 5>>config.log
3259 {
3260 cat <<_ASUNAME
3261 ## --------- ##
3262 ## Platform. ##
3263 ## --------- ##
3264
3265 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3266 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3267 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3268 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3269 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3270
3271 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3272 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3273
3274 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3275 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3276 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3277 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3278 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3279 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3280 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3281
3282 _ASUNAME
3283
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287   IFS=$as_save_IFS
3288   test -z "$as_dir" && as_dir=.
3289     $as_echo "PATH: $as_dir"
3290   done
3291 IFS=$as_save_IFS
3292
3293 } >&5
3294
3295 cat >&5 <<_ACEOF
3296
3297
3298 ## ----------- ##
3299 ## Core tests. ##
3300 ## ----------- ##
3301
3302 _ACEOF
3303
3304
3305 # Keep a trace of the command line.
3306 # Strip out --no-create and --no-recursion so they do not pile up.
3307 # Strip out --silent because we don't want to record it for future runs.
3308 # Also quote any args containing shell meta-characters.
3309 # Make two passes to allow for proper duplicate-argument suppression.
3310 ac_configure_args=
3311 ac_configure_args0=
3312 ac_configure_args1=
3313 ac_must_keep_next=false
3314 for ac_pass in 1 2
3315 do
3316   for ac_arg
3317   do
3318     case $ac_arg in
3319     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3320     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3321     | -silent | --silent | --silen | --sile | --sil)
3322       continue ;;
3323     *\'*)
3324       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3325     esac
3326     case $ac_pass in
3327     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3328     2)
3329       as_fn_append ac_configure_args1 " '$ac_arg'"
3330       if test $ac_must_keep_next = true; then
3331         ac_must_keep_next=false # Got value, back to normal.
3332       else
3333         case $ac_arg in
3334           *=* | --config-cache | -C | -disable-* | --disable-* \
3335           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3336           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3337           | -with-* | --with-* | -without-* | --without-* | --x)
3338             case "$ac_configure_args0 " in
3339               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3340             esac
3341             ;;
3342           -* ) ac_must_keep_next=true ;;
3343         esac
3344       fi
3345       as_fn_append ac_configure_args " '$ac_arg'"
3346       ;;
3347     esac
3348   done
3349 done
3350 { ac_configure_args0=; unset ac_configure_args0;}
3351 { ac_configure_args1=; unset ac_configure_args1;}
3352
3353 # When interrupted or exit'd, cleanup temporary files, and complete
3354 # config.log.  We remove comments because anyway the quotes in there
3355 # would cause problems or look ugly.
3356 # WARNING: Use '\'' to represent an apostrophe within the trap.
3357 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3358 trap 'exit_status=$?
3359   # Save into config.log some information that might help in debugging.
3360   {
3361     echo
3362
3363     $as_echo "## ---------------- ##
3364 ## Cache variables. ##
3365 ## ---------------- ##"
3366     echo
3367     # The following way of writing the cache mishandles newlines in values,
3368 (
3369   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3370     eval ac_val=\$$ac_var
3371     case $ac_val in #(
3372     *${as_nl}*)
3373       case $ac_var in #(
3374       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3375 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3376       esac
3377       case $ac_var in #(
3378       _ | IFS | as_nl) ;; #(
3379       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3380       *) { eval $ac_var=; unset $ac_var;} ;;
3381       esac ;;
3382     esac
3383   done
3384   (set) 2>&1 |
3385     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3386     *${as_nl}ac_space=\ *)
3387       sed -n \
3388         "s/'\''/'\''\\\\'\'''\''/g;
3389           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3390       ;; #(
3391     *)
3392       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3393       ;;
3394     esac |
3395     sort
3396 )
3397     echo
3398
3399     $as_echo "## ----------------- ##
3400 ## Output variables. ##
3401 ## ----------------- ##"
3402     echo
3403     for ac_var in $ac_subst_vars
3404     do
3405       eval ac_val=\$$ac_var
3406       case $ac_val in
3407       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3408       esac
3409       $as_echo "$ac_var='\''$ac_val'\''"
3410     done | sort
3411     echo
3412
3413     if test -n "$ac_subst_files"; then
3414       $as_echo "## ------------------- ##
3415 ## File substitutions. ##
3416 ## ------------------- ##"
3417       echo
3418       for ac_var in $ac_subst_files
3419       do
3420         eval ac_val=\$$ac_var
3421         case $ac_val in
3422         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3423         esac
3424         $as_echo "$ac_var='\''$ac_val'\''"
3425       done | sort
3426       echo
3427     fi
3428
3429     if test -s confdefs.h; then
3430       $as_echo "## ----------- ##
3431 ## confdefs.h. ##
3432 ## ----------- ##"
3433       echo
3434       cat confdefs.h
3435       echo
3436     fi
3437     test "$ac_signal" != 0 &&
3438       $as_echo "$as_me: caught signal $ac_signal"
3439     $as_echo "$as_me: exit $exit_status"
3440   } >&5
3441   rm -f core *.core core.conftest.* &&
3442     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3443     exit $exit_status
3444 ' 0
3445 for ac_signal in 1 2 13 15; do
3446   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3447 done
3448 ac_signal=0
3449
3450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3451 rm -f -r conftest* confdefs.h
3452
3453 $as_echo "/* confdefs.h */" > confdefs.h
3454
3455 # Predefined preprocessor variables.
3456
3457 cat >>confdefs.h <<_ACEOF
3458 #define PACKAGE_NAME "$PACKAGE_NAME"
3459 _ACEOF
3460
3461 cat >>confdefs.h <<_ACEOF
3462 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3463 _ACEOF
3464
3465 cat >>confdefs.h <<_ACEOF
3466 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3467 _ACEOF
3468
3469 cat >>confdefs.h <<_ACEOF
3470 #define PACKAGE_STRING "$PACKAGE_STRING"
3471 _ACEOF
3472
3473 cat >>confdefs.h <<_ACEOF
3474 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3475 _ACEOF
3476
3477 cat >>confdefs.h <<_ACEOF
3478 #define PACKAGE_URL "$PACKAGE_URL"
3479 _ACEOF
3480
3481
3482 # Let the site file select an alternate cache file if it wants to.
3483 # Prefer an explicitly selected file to automatically selected ones.
3484 ac_site_file1=NONE
3485 ac_site_file2=NONE
3486 if test -n "$CONFIG_SITE"; then
3487   # We do not want a PATH search for config.site.
3488   case $CONFIG_SITE in #((
3489     -*)  ac_site_file1=./$CONFIG_SITE;;
3490     */*) ac_site_file1=$CONFIG_SITE;;
3491     *)   ac_site_file1=./$CONFIG_SITE;;
3492   esac
3493 elif test "x$prefix" != xNONE; then
3494   ac_site_file1=$prefix/share/config.site
3495   ac_site_file2=$prefix/etc/config.site
3496 else
3497   ac_site_file1=$ac_default_prefix/share/config.site
3498   ac_site_file2=$ac_default_prefix/etc/config.site
3499 fi
3500 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3501 do
3502   test "x$ac_site_file" = xNONE && continue
3503   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3504     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3505 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3506     sed 's/^/| /' "$ac_site_file" >&5
3507     . "$ac_site_file" \
3508       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error $? "failed to load site script $ac_site_file
3511 See \`config.log' for more details" "$LINENO" 5; }
3512   fi
3513 done
3514
3515 if test -r "$cache_file"; then
3516   # Some versions of bash will fail to source /dev/null (special files
3517   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3518   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3519     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3520 $as_echo "$as_me: loading cache $cache_file" >&6;}
3521     case $cache_file in
3522       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3523       *)                      . "./$cache_file";;
3524     esac
3525   fi
3526 else
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3528 $as_echo "$as_me: creating cache $cache_file" >&6;}
3529   >$cache_file
3530 fi
3531
3532 gl_header_list="$gl_header_list sys/socket.h"
3533 gl_header_list="$gl_header_list arpa/inet.h"
3534 gl_header_list="$gl_header_list features.h"
3535 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3536 gl_header_list="$gl_header_list netdb.h"
3537 gl_header_list="$gl_header_list netinet/in.h"
3538 gl_func_list="$gl_func_list getdelim"
3539 gl_header_list="$gl_header_list stdio_ext.h"
3540 gl_header_list="$gl_header_list termios.h"
3541 gl_func_list="$gl_func_list __fsetlocking"
3542 gl_func_list="$gl_func_list tcgetattr"
3543 gl_func_list="$gl_func_list tcsetattr"
3544 gl_func_list="$gl_func_list gettimeofday"
3545 gl_func_list="$gl_func_list nanotime"
3546 gl_header_list="$gl_header_list sys/time.h"
3547 gl_header_list="$gl_header_list unistd.h"
3548 gl_header_list="$gl_header_list sys/mman.h"
3549 gl_func_list="$gl_func_list mprotect"
3550 gl_func_list="$gl_func_list strerror_r"
3551 gl_func_list="$gl_func_list __xpg_strerror_r"
3552 gl_header_list="$gl_header_list sys/select.h"
3553 gl_func_list="$gl_func_list snprintf"
3554 gl_header_list="$gl_header_list wchar.h"
3555 gl_header_list="$gl_header_list stdint.h"
3556 gl_func_list="$gl_func_list catgets"
3557 gl_header_list="$gl_header_list sys/stat.h"
3558 gl_header_list="$gl_header_list sys/uio.h"
3559 gl_func_list="$gl_func_list vasnprintf"
3560 gl_func_list="$gl_func_list symlink"
3561 gl_func_list="$gl_func_list ftruncate"
3562 gl_header_list="$gl_header_list inttypes.h"
3563 gl_func_list="$gl_func_list lstat"
3564 gl_header_list="$gl_header_list sys/param.h"
3565 gl_func_list="$gl_func_list pipe"
3566 gl_header_list="$gl_header_list sys/wait.h"
3567 gl_header_list="$gl_header_list sys/ioctl.h"
3568 gl_func_list="$gl_func_list shutdown"
3569 # Check that the precious variables saved in the cache have kept the same
3570 # value.
3571 ac_cache_corrupted=false
3572 for ac_var in $ac_precious_vars; do
3573   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3574   eval ac_new_set=\$ac_env_${ac_var}_set
3575   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3576   eval ac_new_val=\$ac_env_${ac_var}_value
3577   case $ac_old_set,$ac_new_set in
3578     set,)
3579       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3580 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3581       ac_cache_corrupted=: ;;
3582     ,set)
3583       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3584 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3585       ac_cache_corrupted=: ;;
3586     ,);;
3587     *)
3588       if test "x$ac_old_val" != "x$ac_new_val"; then
3589         # differences in whitespace do not lead to failure.
3590         ac_old_val_w=`echo x $ac_old_val`
3591         ac_new_val_w=`echo x $ac_new_val`
3592         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3593           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3594 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3595           ac_cache_corrupted=:
3596         else
3597           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3598 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3599           eval $ac_var=\$ac_old_val
3600         fi
3601         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3602 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3603         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3604 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3605       fi;;
3606   esac
3607   # Pass precious variables to config.status.
3608   if test "$ac_new_set" = set; then
3609     case $ac_new_val in
3610     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3611     *) ac_arg=$ac_var=$ac_new_val ;;
3612     esac
3613     case " $ac_configure_args " in
3614       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3615       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3616     esac
3617   fi
3618 done
3619 if $ac_cache_corrupted; then
3620   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3623 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3624   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3625 fi
3626 ## -------------------- ##
3627 ## Main body of script. ##
3628 ## -------------------- ##
3629
3630 ac_ext=c
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635
3636
3637 ac_aux_dir=
3638 for ac_dir in build-aux "$srcdir"/build-aux; do
3639   if test -f "$ac_dir/install-sh"; then
3640     ac_aux_dir=$ac_dir
3641     ac_install_sh="$ac_aux_dir/install-sh -c"
3642     break
3643   elif test -f "$ac_dir/install.sh"; then
3644     ac_aux_dir=$ac_dir
3645     ac_install_sh="$ac_aux_dir/install.sh -c"
3646     break
3647   elif test -f "$ac_dir/shtool"; then
3648     ac_aux_dir=$ac_dir
3649     ac_install_sh="$ac_aux_dir/shtool install -c"
3650     break
3651   fi
3652 done
3653 if test -z "$ac_aux_dir"; then
3654   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3655 fi
3656
3657 # These three variables are undocumented and unsupported,
3658 # and are intended to be withdrawn in a future Autoconf release.
3659 # They can cause serious problems if a builder's source tree is in a directory
3660 # whose full name contains unusual characters.
3661 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3662 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3663 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3664
3665
3666
3667
3668 am__api_version='1.11'
3669
3670 # Find a good install program.  We prefer a C program (faster),
3671 # so one script is as good as another.  But avoid the broken or
3672 # incompatible versions:
3673 # SysV /etc/install, /usr/sbin/install
3674 # SunOS /usr/etc/install
3675 # IRIX /sbin/install
3676 # AIX /bin/install
3677 # AmigaOS /C/install, which installs bootblocks on floppy discs
3678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3681 # OS/2's system install, which has a completely different semantic
3682 # ./install, which can be erroneously created by make from ./install.sh.
3683 # Reject install programs that cannot install multiple files.
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3685 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3686 if test -z "$INSTALL"; then
3687 if ${ac_cv_path_install+:} false; then :
3688   $as_echo_n "(cached) " >&6
3689 else
3690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3692 do
3693   IFS=$as_save_IFS
3694   test -z "$as_dir" && as_dir=.
3695     # Account for people who put trailing slashes in PATH elements.
3696 case $as_dir/ in #((
3697   ./ | .// | /[cC]/* | \
3698   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3699   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3700   /usr/ucb/* ) ;;
3701   *)
3702     # OSF1 and SCO ODT 3.0 have their own names for install.
3703     # Don't use installbsd from OSF since it installs stuff as root
3704     # by default.
3705     for ac_prog in ginstall scoinst install; do
3706       for ac_exec_ext in '' $ac_executable_extensions; do
3707         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3708           if test $ac_prog = install &&
3709             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3710             # AIX install.  It has an incompatible calling convention.
3711             :
3712           elif test $ac_prog = install &&
3713             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714             # program-specific install script used by HP pwplus--don't use.
3715             :
3716           else
3717             rm -rf conftest.one conftest.two conftest.dir
3718             echo one > conftest.one
3719             echo two > conftest.two
3720             mkdir conftest.dir
3721             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3722               test -s conftest.one && test -s conftest.two &&
3723               test -s conftest.dir/conftest.one &&
3724               test -s conftest.dir/conftest.two
3725             then
3726               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3727               break 3
3728             fi
3729           fi
3730         fi
3731       done
3732     done
3733     ;;
3734 esac
3735
3736   done
3737 IFS=$as_save_IFS
3738
3739 rm -rf conftest.one conftest.two conftest.dir
3740
3741 fi
3742   if test "${ac_cv_path_install+set}" = set; then
3743     INSTALL=$ac_cv_path_install
3744   else
3745     # As a last resort, use the slow shell script.  Don't cache a
3746     # value for INSTALL within a source directory, because that will
3747     # break other packages using the cache if that directory is
3748     # removed, or if the value is a relative name.
3749     INSTALL=$ac_install_sh
3750   fi
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3753 $as_echo "$INSTALL" >&6; }
3754
3755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3756 # It thinks the first close brace ends the variable substitution.
3757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3758
3759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3760
3761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3762
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3764 $as_echo_n "checking whether build environment is sane... " >&6; }
3765 # Just in case
3766 sleep 1
3767 echo timestamp > conftest.file
3768 # Reject unsafe characters in $srcdir or the absolute working directory
3769 # name.  Accept space and tab only in the latter.
3770 am_lf='
3771 '
3772 case `pwd` in
3773   *[\\\"\#\$\&\'\`$am_lf]*)
3774     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3775 esac
3776 case $srcdir in
3777   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3778     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3779 esac
3780
3781 # Do `set' in a subshell so we don't clobber the current shell's
3782 # arguments.  Must try -L first in case configure is actually a
3783 # symlink; some systems play weird games with the mod time of symlinks
3784 # (eg FreeBSD returns the mod time of the symlink's containing
3785 # directory).
3786 if (
3787    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3788    if test "$*" = "X"; then
3789       # -L didn't work.
3790       set X `ls -t "$srcdir/configure" conftest.file`
3791    fi
3792    rm -f conftest.file
3793    if test "$*" != "X $srcdir/configure conftest.file" \
3794       && test "$*" != "X conftest.file $srcdir/configure"; then
3795
3796       # If neither matched, then we have a broken ls.  This can happen
3797       # if, for instance, CONFIG_SHELL is bash and it inherits a
3798       # broken ls alias from the environment.  This has actually
3799       # happened.  Such a system could not be considered "sane".
3800       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3801 alias in your environment" "$LINENO" 5
3802    fi
3803
3804    test "$2" = conftest.file
3805    )
3806 then
3807    # Ok.
3808    :
3809 else
3810    as_fn_error $? "newly created file is older than distributed files!
3811 Check your system clock" "$LINENO" 5
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3814 $as_echo "yes" >&6; }
3815 test "$program_prefix" != NONE &&
3816   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3817 # Use a double $ so make ignores it.
3818 test "$program_suffix" != NONE &&
3819   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3820 # Double any \ or $.
3821 # By default was `s,x,x', remove it if useless.
3822 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3823 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3824
3825 # expand $ac_aux_dir to an absolute path
3826 am_aux_dir=`cd $ac_aux_dir && pwd`
3827
3828 if test x"${MISSING+set}" != xset; then
3829   case $am_aux_dir in
3830   *\ * | *\     *)
3831     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3832   *)
3833     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3834   esac
3835 fi
3836 # Use eval to expand $SHELL
3837 if eval "$MISSING --run true"; then
3838   am_missing_run="$MISSING --run "
3839 else
3840   am_missing_run=
3841   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3842 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3843 fi
3844
3845 if test x"${install_sh}" != xset; then
3846   case $am_aux_dir in
3847   *\ * | *\     *)
3848     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3849   *)
3850     install_sh="\${SHELL} $am_aux_dir/install-sh"
3851   esac
3852 fi
3853
3854 # Installed binaries are usually stripped using `strip' when the user
3855 # run `make install-strip'.  However `strip' might not be the right
3856 # tool to use in cross-compilation environments, therefore Automake
3857 # will honor the `STRIP' environment variable to overrule this program.
3858 if test "$cross_compiling" != no; then
3859   if test -n "$ac_tool_prefix"; then
3860   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3861 set dummy ${ac_tool_prefix}strip; ac_word=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if ${ac_cv_prog_STRIP+:} false; then :
3865   $as_echo_n "(cached) " >&6
3866 else
3867   if test -n "$STRIP"; then
3868   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3869 else
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3872 do
3873   IFS=$as_save_IFS
3874   test -z "$as_dir" && as_dir=.
3875     for ac_exec_ext in '' $ac_executable_extensions; do
3876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3877     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879     break 2
3880   fi
3881 done
3882   done
3883 IFS=$as_save_IFS
3884
3885 fi
3886 fi
3887 STRIP=$ac_cv_prog_STRIP
3888 if test -n "$STRIP"; then
3889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3890 $as_echo "$STRIP" >&6; }
3891 else
3892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3894 fi
3895
3896
3897 fi
3898 if test -z "$ac_cv_prog_STRIP"; then
3899   ac_ct_STRIP=$STRIP
3900   # Extract the first word of "strip", so it can be a program name with args.
3901 set dummy strip; ac_word=$2
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903 $as_echo_n "checking for $ac_word... " >&6; }
3904 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3905   $as_echo_n "(cached) " >&6
3906 else
3907   if test -n "$ac_ct_STRIP"; then
3908   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913   IFS=$as_save_IFS
3914   test -z "$as_dir" && as_dir=.
3915     for ac_exec_ext in '' $ac_executable_extensions; do
3916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917     ac_cv_prog_ac_ct_STRIP="strip"
3918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919     break 2
3920   fi
3921 done
3922   done
3923 IFS=$as_save_IFS
3924
3925 fi
3926 fi
3927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3928 if test -n "$ac_ct_STRIP"; then
3929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3930 $as_echo "$ac_ct_STRIP" >&6; }
3931 else
3932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 $as_echo "no" >&6; }
3934 fi
3935
3936   if test "x$ac_ct_STRIP" = x; then
3937     STRIP=":"
3938   else
3939     case $cross_compiling:$ac_tool_warned in
3940 yes:)
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3943 ac_tool_warned=yes ;;
3944 esac
3945     STRIP=$ac_ct_STRIP
3946   fi
3947 else
3948   STRIP="$ac_cv_prog_STRIP"
3949 fi
3950
3951 fi
3952 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3953
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3955 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3956 if test -z "$MKDIR_P"; then
3957   if ${ac_cv_path_mkdir+:} false; then :
3958   $as_echo_n "(cached) " >&6
3959 else
3960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3962 do
3963   IFS=$as_save_IFS
3964   test -z "$as_dir" && as_dir=.
3965     for ac_prog in mkdir gmkdir; do
3966          for ac_exec_ext in '' $ac_executable_extensions; do
3967            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3968            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3969              'mkdir (GNU coreutils) '* | \
3970              'mkdir (coreutils) '* | \
3971              'mkdir (fileutils) '4.1*)
3972                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3973                break 3;;
3974            esac
3975          done
3976        done
3977   done
3978 IFS=$as_save_IFS
3979
3980 fi
3981
3982   test -d ./--version && rmdir ./--version
3983   if test "${ac_cv_path_mkdir+set}" = set; then
3984     MKDIR_P="$ac_cv_path_mkdir -p"
3985   else
3986     # As a last resort, use the slow shell script.  Don't cache a
3987     # value for MKDIR_P within a source directory, because that will
3988     # break other packages using the cache if that directory is
3989     # removed, or if the value is a relative name.
3990     MKDIR_P="$ac_install_sh -d"
3991   fi
3992 fi
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3994 $as_echo "$MKDIR_P" >&6; }
3995
3996
3997 mkdir_p="$MKDIR_P"
3998 case $mkdir_p in
3999   [\\/$]* | ?:[\\/]*) ;;
4000   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4001 esac
4002
4003 for ac_prog in gawk mawk nawk awk
4004 do
4005   # Extract the first word of "$ac_prog", so it can be a program name with args.
4006 set dummy $ac_prog; ac_word=$2
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008 $as_echo_n "checking for $ac_word... " >&6; }
4009 if ${ac_cv_prog_AWK+:} false; then :
4010   $as_echo_n "(cached) " >&6
4011 else
4012   if test -n "$AWK"; then
4013   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4017 do
4018   IFS=$as_save_IFS
4019   test -z "$as_dir" && as_dir=.
4020     for ac_exec_ext in '' $ac_executable_extensions; do
4021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4022     ac_cv_prog_AWK="$ac_prog"
4023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024     break 2
4025   fi
4026 done
4027   done
4028 IFS=$as_save_IFS
4029
4030 fi
4031 fi
4032 AWK=$ac_cv_prog_AWK
4033 if test -n "$AWK"; then
4034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4035 $as_echo "$AWK" >&6; }
4036 else
4037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4039 fi
4040
4041
4042   test -n "$AWK" && break
4043 done
4044
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4046 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4047 set x ${MAKE-make}
4048 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4049 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4050   $as_echo_n "(cached) " >&6
4051 else
4052   cat >conftest.make <<\_ACEOF
4053 SHELL = /bin/sh
4054 all:
4055         @echo '@@@%%%=$(MAKE)=@@@%%%'
4056 _ACEOF
4057 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4058 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4059   *@@@%%%=?*=@@@%%%*)
4060     eval ac_cv_prog_make_${ac_make}_set=yes;;
4061   *)
4062     eval ac_cv_prog_make_${ac_make}_set=no;;
4063 esac
4064 rm -f conftest.make
4065 fi
4066 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4068 $as_echo "yes" >&6; }
4069   SET_MAKE=
4070 else
4071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072 $as_echo "no" >&6; }
4073   SET_MAKE="MAKE=${MAKE-make}"
4074 fi
4075
4076 rm -rf .tst 2>/dev/null
4077 mkdir .tst 2>/dev/null
4078 if test -d .tst; then
4079   am__leading_dot=.
4080 else
4081   am__leading_dot=_
4082 fi
4083 rmdir .tst 2>/dev/null
4084
4085 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4086   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4087   # is not polluted with repeated "-I."
4088   am__isrc=' -I$(srcdir)'
4089   # test to see if srcdir already configured
4090   if test -f $srcdir/config.status; then
4091     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4092   fi
4093 fi
4094
4095 # test whether we have cygpath
4096 if test -z "$CYGPATH_W"; then
4097   if (cygpath --version) >/dev/null 2>/dev/null; then
4098     CYGPATH_W='cygpath -w'
4099   else
4100     CYGPATH_W=echo
4101   fi
4102 fi
4103
4104
4105 # Define the identity of the package.
4106  PACKAGE='gnutls'
4107  VERSION='2.12.20'
4108
4109
4110 cat >>confdefs.h <<_ACEOF
4111 #define PACKAGE "$PACKAGE"
4112 _ACEOF
4113
4114
4115 cat >>confdefs.h <<_ACEOF
4116 #define VERSION "$VERSION"
4117 _ACEOF
4118
4119 # Some tools Automake needs.
4120
4121 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4122
4123
4124 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4125
4126
4127 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4128
4129
4130 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4131
4132
4133 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4134
4135 # We need awk for the "check" target.  The system "awk" is bad on
4136 # some platforms.
4137 # Always define AMTAR for backward compatibility.  Yes, it's still used
4138 # in the wild :-(  We should find a proper way to deprecate it ...
4139 AMTAR='$${TAR-tar}'
4140
4141 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4142
4143
4144
4145
4146
4147 # Check whether --enable-silent-rules was given.
4148 if test "${enable_silent_rules+set}" = set; then :
4149   enableval=$enable_silent_rules;
4150 fi
4151
4152 case $enable_silent_rules in
4153 yes) AM_DEFAULT_VERBOSITY=0;;
4154 no)  AM_DEFAULT_VERBOSITY=1;;
4155 *)   AM_DEFAULT_VERBOSITY=0;;
4156 esac
4157 am_make=${MAKE-make}
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4159 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4160 if ${am_cv_make_support_nested_variables+:} false; then :
4161   $as_echo_n "(cached) " >&6
4162 else
4163   if $as_echo 'TRUE=$(BAR$(V))
4164 BAR0=false
4165 BAR1=true
4166 V=1
4167 am__doit:
4168         @$(TRUE)
4169 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4170   am_cv_make_support_nested_variables=yes
4171 else
4172   am_cv_make_support_nested_variables=no
4173 fi
4174 fi
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4176 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4177 if test $am_cv_make_support_nested_variables = yes; then
4178     AM_V='$(V)'
4179   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4180 else
4181   AM_V=$AM_DEFAULT_VERBOSITY
4182   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4183 fi
4184 AM_BACKSLASH='\'
4185
4186 ac_config_headers="$ac_config_headers config.h"
4187
4188
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
4190 *** Checking for compilation programs...
4191 " >&5
4192 $as_echo "***
4193 *** Checking for compilation programs...
4194 " >&6; }
4195
4196 ac_ext=c
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 if test -n "$ac_tool_prefix"; then
4202   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4203 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if ${ac_cv_prog_CC+:} false; then :
4207   $as_echo_n "(cached) " >&6
4208 else
4209   if test -n "$CC"; then
4210   ac_cv_prog_CC="$CC" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4214 do
4215   IFS=$as_save_IFS
4216   test -z "$as_dir" && as_dir=.
4217     for ac_exec_ext in '' $ac_executable_extensions; do
4218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221     break 2
4222   fi
4223 done
4224   done
4225 IFS=$as_save_IFS
4226
4227 fi
4228 fi
4229 CC=$ac_cv_prog_CC
4230 if test -n "$CC"; then
4231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4232 $as_echo "$CC" >&6; }
4233 else
4234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4236 fi
4237
4238
4239 fi
4240 if test -z "$ac_cv_prog_CC"; then
4241   ac_ct_CC=$CC
4242   # Extract the first word of "gcc", so it can be a program name with args.
4243 set dummy gcc; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4247   $as_echo_n "(cached) " >&6
4248 else
4249   if test -n "$ac_ct_CC"; then
4250   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257     for ac_exec_ext in '' $ac_executable_extensions; do
4258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259     ac_cv_prog_ac_ct_CC="gcc"
4260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261     break 2
4262   fi
4263 done
4264   done
4265 IFS=$as_save_IFS
4266
4267 fi
4268 fi
4269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4270 if test -n "$ac_ct_CC"; then
4271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4272 $as_echo "$ac_ct_CC" >&6; }
4273 else
4274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276 fi
4277
4278   if test "x$ac_ct_CC" = x; then
4279     CC=""
4280   else
4281     case $cross_compiling:$ac_tool_warned in
4282 yes:)
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285 ac_tool_warned=yes ;;
4286 esac
4287     CC=$ac_ct_CC
4288   fi
4289 else
4290   CC="$ac_cv_prog_CC"
4291 fi
4292
4293 if test -z "$CC"; then
4294           if test -n "$ac_tool_prefix"; then
4295     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4296 set dummy ${ac_tool_prefix}cc; ac_word=$2
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298 $as_echo_n "checking for $ac_word... " >&6; }
4299 if ${ac_cv_prog_CC+:} false; then :
4300   $as_echo_n "(cached) " >&6
4301 else
4302   if test -n "$CC"; then
4303   ac_cv_prog_CC="$CC" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308   IFS=$as_save_IFS
4309   test -z "$as_dir" && as_dir=.
4310     for ac_exec_ext in '' $ac_executable_extensions; do
4311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312     ac_cv_prog_CC="${ac_tool_prefix}cc"
4313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314     break 2
4315   fi
4316 done
4317   done
4318 IFS=$as_save_IFS
4319
4320 fi
4321 fi
4322 CC=$ac_cv_prog_CC
4323 if test -n "$CC"; then
4324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4325 $as_echo "$CC" >&6; }
4326 else
4327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 $as_echo "no" >&6; }
4329 fi
4330
4331
4332   fi
4333 fi
4334 if test -z "$CC"; then
4335   # Extract the first word of "cc", so it can be a program name with args.
4336 set dummy cc; ac_word=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if ${ac_cv_prog_CC+:} false; then :
4340   $as_echo_n "(cached) " >&6
4341 else
4342   if test -n "$CC"; then
4343   ac_cv_prog_CC="$CC" # Let the user override the test.
4344 else
4345   ac_prog_rejected=no
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4348 do
4349   IFS=$as_save_IFS
4350   test -z "$as_dir" && as_dir=.
4351     for ac_exec_ext in '' $ac_executable_extensions; do
4352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4353     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4354        ac_prog_rejected=yes
4355        continue
4356      fi
4357     ac_cv_prog_CC="cc"
4358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359     break 2
4360   fi
4361 done
4362   done
4363 IFS=$as_save_IFS
4364
4365 if test $ac_prog_rejected = yes; then
4366   # We found a bogon in the path, so make sure we never use it.
4367   set dummy $ac_cv_prog_CC
4368   shift
4369   if test $# != 0; then
4370     # We chose a different compiler from the bogus one.
4371     # However, it has the same basename, so the bogon will be chosen
4372     # first if we set CC to just the basename; use the full file name.
4373     shift
4374     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4375   fi
4376 fi
4377 fi
4378 fi
4379 CC=$ac_cv_prog_CC
4380 if test -n "$CC"; then
4381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4382 $as_echo "$CC" >&6; }
4383 else
4384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4386 fi
4387
4388
4389 fi
4390 if test -z "$CC"; then
4391   if test -n "$ac_tool_prefix"; then
4392   for ac_prog in cl.exe
4393   do
4394     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_prog_CC+:} false; then :
4399   $as_echo_n "(cached) " >&6
4400 else
4401   if test -n "$CC"; then
4402   ac_cv_prog_CC="$CC" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407   IFS=$as_save_IFS
4408   test -z "$as_dir" && as_dir=.
4409     for ac_exec_ext in '' $ac_executable_extensions; do
4410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413     break 2
4414   fi
4415 done
4416   done
4417 IFS=$as_save_IFS
4418
4419 fi
4420 fi
4421 CC=$ac_cv_prog_CC
4422 if test -n "$CC"; then
4423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4424 $as_echo "$CC" >&6; }
4425 else
4426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 fi
4429
4430
4431     test -n "$CC" && break
4432   done
4433 fi
4434 if test -z "$CC"; then
4435   ac_ct_CC=$CC
4436   for ac_prog in cl.exe
4437 do
4438   # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy $ac_prog; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4443   $as_echo_n "(cached) " >&6
4444 else
4445   if test -n "$ac_ct_CC"; then
4446   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453     for ac_exec_ext in '' $ac_executable_extensions; do
4454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455     ac_cv_prog_ac_ct_CC="$ac_prog"
4456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457     break 2
4458   fi
4459 done
4460   done
4461 IFS=$as_save_IFS
4462
4463 fi
4464 fi
4465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4466 if test -n "$ac_ct_CC"; then
4467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4468 $as_echo "$ac_ct_CC" >&6; }
4469 else
4470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472 fi
4473
4474
4475   test -n "$ac_ct_CC" && break
4476 done
4477
4478   if test "x$ac_ct_CC" = x; then
4479     CC=""
4480   else
4481     case $cross_compiling:$ac_tool_warned in
4482 yes:)
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4486 esac
4487     CC=$ac_ct_CC
4488   fi
4489 fi
4490
4491 fi
4492
4493
4494 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4496 as_fn_error $? "no acceptable C compiler found in \$PATH
4497 See \`config.log' for more details" "$LINENO" 5; }
4498
4499 # Provide some information about the compiler.
4500 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4501 set X $ac_compile
4502 ac_compiler=$2
4503 for ac_option in --version -v -V -qversion; do
4504   { { ac_try="$ac_compiler $ac_option >&5"
4505 case "(($ac_try" in
4506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507   *) ac_try_echo=$ac_try;;
4508 esac
4509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510 $as_echo "$ac_try_echo"; } >&5
4511   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4512   ac_status=$?
4513   if test -s conftest.err; then
4514     sed '10a\
4515 ... rest of stderr output deleted ...
4516          10q' conftest.err >conftest.er1
4517     cat conftest.er1 >&5
4518   fi
4519   rm -f conftest.er1 conftest.err
4520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521   test $ac_status = 0; }
4522 done
4523
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h.  */
4526
4527 int
4528 main ()
4529 {
4530
4531   ;
4532   return 0;
4533 }
4534 _ACEOF
4535 ac_clean_files_save=$ac_clean_files
4536 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4537 # Try to create an executable without -o first, disregard a.out.
4538 # It will help us diagnose broken compilers, and finding out an intuition
4539 # of exeext.
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4541 $as_echo_n "checking whether the C compiler works... " >&6; }
4542 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4543
4544 # The possible output files:
4545 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4546
4547 ac_rmfiles=
4548 for ac_file in $ac_files
4549 do
4550   case $ac_file in
4551     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4552     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4553   esac
4554 done
4555 rm -f $ac_rmfiles
4556
4557 if { { ac_try="$ac_link_default"
4558 case "(($ac_try" in
4559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560   *) ac_try_echo=$ac_try;;
4561 esac
4562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563 $as_echo "$ac_try_echo"; } >&5
4564   (eval "$ac_link_default") 2>&5
4565   ac_status=$?
4566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567   test $ac_status = 0; }; then :
4568   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4569 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4570 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4571 # so that the user can short-circuit this test for compilers unknown to
4572 # Autoconf.
4573 for ac_file in $ac_files ''
4574 do
4575   test -f "$ac_file" || continue
4576   case $ac_file in
4577     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4578         ;;
4579     [ab].out )
4580         # We found the default executable, but exeext='' is most
4581         # certainly right.
4582         break;;
4583     *.* )
4584         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4585         then :; else
4586            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4587         fi
4588         # We set ac_cv_exeext here because the later test for it is not
4589         # safe: cross compilers may not add the suffix if given an `-o'
4590         # argument, so we may need to know it at that point already.
4591         # Even if this section looks crufty: it has the advantage of
4592         # actually working.
4593         break;;
4594     * )
4595         break;;
4596   esac
4597 done
4598 test "$ac_cv_exeext" = no && ac_cv_exeext=
4599
4600 else
4601   ac_file=''
4602 fi
4603 if test -z "$ac_file"; then :
4604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4606 $as_echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4611 as_fn_error 77 "C compiler cannot create executables
4612 See \`config.log' for more details" "$LINENO" 5; }
4613 else
4614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4615 $as_echo "yes" >&6; }
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4618 $as_echo_n "checking for C compiler default output file name... " >&6; }
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4620 $as_echo "$ac_file" >&6; }
4621 ac_exeext=$ac_cv_exeext
4622
4623 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4624 ac_clean_files=$ac_clean_files_save
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4626 $as_echo_n "checking for suffix of executables... " >&6; }
4627 if { { ac_try="$ac_link"
4628 case "(($ac_try" in
4629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630   *) ac_try_echo=$ac_try;;
4631 esac
4632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4633 $as_echo "$ac_try_echo"; } >&5
4634   (eval "$ac_link") 2>&5
4635   ac_status=$?
4636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4637   test $ac_status = 0; }; then :
4638   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4639 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4640 # work properly (i.e., refer to `conftest.exe'), while it won't with
4641 # `rm'.
4642 for ac_file in conftest.exe conftest conftest.*; do
4643   test -f "$ac_file" || continue
4644   case $ac_file in
4645     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4646     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4647           break;;
4648     * ) break;;
4649   esac
4650 done
4651 else
4652   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4654 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4655 See \`config.log' for more details" "$LINENO" 5; }
4656 fi
4657 rm -f conftest conftest$ac_cv_exeext
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4659 $as_echo "$ac_cv_exeext" >&6; }
4660
4661 rm -f conftest.$ac_ext
4662 EXEEXT=$ac_cv_exeext
4663 ac_exeext=$EXEEXT
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h.  */
4666 #include <stdio.h>
4667 int
4668 main ()
4669 {
4670 FILE *f = fopen ("conftest.out", "w");
4671  return ferror (f) || fclose (f) != 0;
4672
4673   ;
4674   return 0;
4675 }
4676 _ACEOF
4677 ac_clean_files="$ac_clean_files conftest.out"
4678 # Check that the compiler produces executables we can run.  If not, either
4679 # the compiler is broken, or we cross compile.
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4681 $as_echo_n "checking whether we are cross compiling... " >&6; }
4682 if test "$cross_compiling" != yes; then
4683   { { ac_try="$ac_link"
4684 case "(($ac_try" in
4685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686   *) ac_try_echo=$ac_try;;
4687 esac
4688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4689 $as_echo "$ac_try_echo"; } >&5
4690   (eval "$ac_link") 2>&5
4691   ac_status=$?
4692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4693   test $ac_status = 0; }
4694   if { ac_try='./conftest$ac_cv_exeext'
4695   { { case "(($ac_try" in
4696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697   *) ac_try_echo=$ac_try;;
4698 esac
4699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4700 $as_echo "$ac_try_echo"; } >&5
4701   (eval "$ac_try") 2>&5
4702   ac_status=$?
4703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4704   test $ac_status = 0; }; }; then
4705     cross_compiling=no
4706   else
4707     if test "$cross_compiling" = maybe; then
4708         cross_compiling=yes
4709     else
4710         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4712 as_fn_error $? "cannot run C compiled programs.
4713 If you meant to cross compile, use \`--host'.
4714 See \`config.log' for more details" "$LINENO" 5; }
4715     fi
4716   fi
4717 fi
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4719 $as_echo "$cross_compiling" >&6; }
4720
4721 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4722 ac_clean_files=$ac_clean_files_save
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4724 $as_echo_n "checking for suffix of object files... " >&6; }
4725 if ${ac_cv_objext+:} false; then :
4726   $as_echo_n "(cached) " >&6
4727 else
4728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h.  */
4730
4731 int
4732 main ()
4733 {
4734
4735   ;
4736   return 0;
4737 }
4738 _ACEOF
4739 rm -f conftest.o conftest.obj
4740 if { { ac_try="$ac_compile"
4741 case "(($ac_try" in
4742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743   *) ac_try_echo=$ac_try;;
4744 esac
4745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4746 $as_echo "$ac_try_echo"; } >&5
4747   (eval "$ac_compile") 2>&5
4748   ac_status=$?
4749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4750   test $ac_status = 0; }; then :
4751   for ac_file in conftest.o conftest.obj conftest.*; do
4752   test -f "$ac_file" || continue;
4753   case $ac_file in
4754     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4755     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4756        break;;
4757   esac
4758 done
4759 else
4760   $as_echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4762
4763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4765 as_fn_error $? "cannot compute suffix of object files: cannot compile
4766 See \`config.log' for more details" "$LINENO" 5; }
4767 fi
4768 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4771 $as_echo "$ac_cv_objext" >&6; }
4772 OBJEXT=$ac_cv_objext
4773 ac_objext=$OBJEXT
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4775 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4776 if ${ac_cv_c_compiler_gnu+:} false; then :
4777   $as_echo_n "(cached) " >&6
4778 else
4779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h.  */
4781
4782 int
4783 main ()
4784 {
4785 #ifndef __GNUC__
4786        choke me
4787 #endif
4788
4789   ;
4790   return 0;
4791 }
4792 _ACEOF
4793 if ac_fn_c_try_compile "$LINENO"; then :
4794   ac_compiler_gnu=yes
4795 else
4796   ac_compiler_gnu=no
4797 fi
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4800
4801 fi
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4803 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4804 if test $ac_compiler_gnu = yes; then
4805   GCC=yes
4806 else
4807   GCC=
4808 fi
4809 ac_test_CFLAGS=${CFLAGS+set}
4810 ac_save_CFLAGS=$CFLAGS
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4812 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4813 if ${ac_cv_prog_cc_g+:} false; then :
4814   $as_echo_n "(cached) " >&6
4815 else
4816   ac_save_c_werror_flag=$ac_c_werror_flag
4817    ac_c_werror_flag=yes
4818    ac_cv_prog_cc_g=no
4819    CFLAGS="-g"
4820    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h.  */
4822
4823 int
4824 main ()
4825 {
4826
4827   ;
4828   return 0;
4829 }
4830 _ACEOF
4831 if ac_fn_c_try_compile "$LINENO"; then :
4832   ac_cv_prog_cc_g=yes
4833 else
4834   CFLAGS=""
4835       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h.  */
4837
4838 int
4839 main ()
4840 {
4841
4842   ;
4843   return 0;
4844 }
4845 _ACEOF
4846 if ac_fn_c_try_compile "$LINENO"; then :
4847
4848 else
4849   ac_c_werror_flag=$ac_save_c_werror_flag
4850          CFLAGS="-g"
4851          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h.  */
4853
4854 int
4855 main ()
4856 {
4857
4858   ;
4859   return 0;
4860 }
4861 _ACEOF
4862 if ac_fn_c_try_compile "$LINENO"; then :
4863   ac_cv_prog_cc_g=yes
4864 fi
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 fi
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 fi
4869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870    ac_c_werror_flag=$ac_save_c_werror_flag
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4873 $as_echo "$ac_cv_prog_cc_g" >&6; }
4874 if test "$ac_test_CFLAGS" = set; then
4875   CFLAGS=$ac_save_CFLAGS
4876 elif test $ac_cv_prog_cc_g = yes; then
4877   if test "$GCC" = yes; then
4878     CFLAGS="-g -O2"
4879   else
4880     CFLAGS="-g"
4881   fi
4882 else
4883   if test "$GCC" = yes; then
4884     CFLAGS="-O2"
4885   else
4886     CFLAGS=
4887   fi
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4890 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4891 if ${ac_cv_prog_cc_c89+:} false; then :
4892   $as_echo_n "(cached) " >&6
4893 else
4894   ac_cv_prog_cc_c89=no
4895 ac_save_CC=$CC
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h.  */
4898 #include <stdarg.h>
4899 #include <stdio.h>
4900 #include <sys/types.h>
4901 #include <sys/stat.h>
4902 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4903 struct buf { int x; };
4904 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4905 static char *e (p, i)
4906      char **p;
4907      int i;
4908 {
4909   return p[i];
4910 }
4911 static char *f (char * (*g) (char **, int), char **p, ...)
4912 {
4913   char *s;
4914   va_list v;
4915   va_start (v,p);
4916   s = g (p, va_arg (v,int));
4917   va_end (v);
4918   return s;
4919 }
4920
4921 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4922    function prototypes and stuff, but not '\xHH' hex character constants.
4923    These don't provoke an error unfortunately, instead are silently treated
4924    as 'x'.  The following induces an error, until -std is added to get
4925    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4926    array size at least.  It's necessary to write '\x00'==0 to get something
4927    that's true only with -std.  */
4928 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4929
4930 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4931    inside strings and character constants.  */
4932 #define FOO(x) 'x'
4933 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4934
4935 int test (int i, double x);
4936 struct s1 {int (*f) (int a);};
4937 struct s2 {int (*f) (double a);};
4938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4939 int argc;
4940 char **argv;
4941 int
4942 main ()
4943 {
4944 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4945   ;
4946   return 0;
4947 }
4948 _ACEOF
4949 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4950         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4951 do
4952   CC="$ac_save_CC $ac_arg"
4953   if ac_fn_c_try_compile "$LINENO"; then :
4954   ac_cv_prog_cc_c89=$ac_arg
4955 fi
4956 rm -f core conftest.err conftest.$ac_objext
4957   test "x$ac_cv_prog_cc_c89" != "xno" && break
4958 done
4959 rm -f conftest.$ac_ext
4960 CC=$ac_save_CC
4961
4962 fi
4963 # AC_CACHE_VAL
4964 case "x$ac_cv_prog_cc_c89" in
4965   x)
4966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4967 $as_echo "none needed" >&6; } ;;
4968   xno)
4969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4970 $as_echo "unsupported" >&6; } ;;
4971   *)
4972     CC="$CC $ac_cv_prog_cc_c89"
4973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4974 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4975 esac
4976 if test "x$ac_cv_prog_cc_c89" != xno; then :
4977
4978 fi
4979
4980 ac_ext=c
4981 ac_cpp='$CPP $CPPFLAGS'
4982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985 DEPDIR="${am__leading_dot}deps"
4986
4987 ac_config_commands="$ac_config_commands depfiles"
4988
4989
4990 am_make=${MAKE-make}
4991 cat > confinc << 'END'
4992 am__doit:
4993         @echo this is the am__doit target
4994 .PHONY: am__doit
4995 END
4996 # If we don't find an include directive, just comment out the code.
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4998 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4999 am__include="#"
5000 am__quote=
5001 _am_result=none
5002 # First try GNU make style include.
5003 echo "include confinc" > confmf
5004 # Ignore all kinds of additional output from `make'.
5005 case `$am_make -s -f confmf 2> /dev/null` in #(
5006 *the\ am__doit\ target*)
5007   am__include=include
5008   am__quote=
5009   _am_result=GNU
5010   ;;
5011 esac
5012 # Now try BSD make style include.
5013 if test "$am__include" = "#"; then
5014    echo '.include "confinc"' > confmf
5015    case `$am_make -s -f confmf 2> /dev/null` in #(
5016    *the\ am__doit\ target*)
5017      am__include=.include
5018      am__quote="\""
5019      _am_result=BSD
5020      ;;
5021    esac
5022 fi
5023
5024
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5026 $as_echo "$_am_result" >&6; }
5027 rm -f confinc confmf
5028
5029 # Check whether --enable-dependency-tracking was given.
5030 if test "${enable_dependency_tracking+set}" = set; then :
5031   enableval=$enable_dependency_tracking;
5032 fi
5033
5034 if test "x$enable_dependency_tracking" != xno; then
5035   am_depcomp="$ac_aux_dir/depcomp"
5036   AMDEPBACKSLASH='\'
5037   am__nodep='_no'
5038 fi
5039  if test "x$enable_dependency_tracking" != xno; then
5040   AMDEP_TRUE=
5041   AMDEP_FALSE='#'
5042 else
5043   AMDEP_TRUE='#'
5044   AMDEP_FALSE=
5045 fi
5046
5047
5048
5049 depcc="$CC"   am_compiler_list=
5050
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5052 $as_echo_n "checking dependency style of $depcc... " >&6; }
5053 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5054   $as_echo_n "(cached) " >&6
5055 else
5056   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5057   # We make a subdir and do the tests there.  Otherwise we can end up
5058   # making bogus files that we don't know about and never remove.  For
5059   # instance it was reported that on HP-UX the gcc test will end up
5060   # making a dummy file named `D' -- because `-MD' means `put the output
5061   # in D'.
5062   rm -rf conftest.dir
5063   mkdir conftest.dir
5064   # Copy depcomp to subdir because otherwise we won't find it if we're
5065   # using a relative directory.
5066   cp "$am_depcomp" conftest.dir
5067   cd conftest.dir
5068   # We will build objects and dependencies in a subdirectory because
5069   # it helps to detect inapplicable dependency modes.  For instance
5070   # both Tru64's cc and ICC support -MD to output dependencies as a
5071   # side effect of compilation, but ICC will put the dependencies in
5072   # the current directory while Tru64 will put them in the object
5073   # directory.
5074   mkdir sub
5075
5076   am_cv_CC_dependencies_compiler_type=none
5077   if test "$am_compiler_list" = ""; then
5078      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5079   fi
5080   am__universal=false
5081   case " $depcc " in #(
5082      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5083      esac
5084
5085   for depmode in $am_compiler_list; do
5086     # Setup a source with many dependencies, because some compilers
5087     # like to wrap large dependency lists on column 80 (with \), and
5088     # we should not choose a depcomp mode which is confused by this.
5089     #
5090     # We need to recreate these files for each test, as the compiler may
5091     # overwrite some of them when testing with obscure command lines.
5092     # This happens at least with the AIX C compiler.
5093     : > sub/conftest.c
5094     for i in 1 2 3 4 5 6; do
5095       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5096       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5097       # Solaris 8's {/usr,}/bin/sh.
5098       touch sub/conftst$i.h
5099     done
5100     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5101
5102     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5103     # mode.  It turns out that the SunPro C++ compiler does not properly
5104     # handle `-M -o', and we need to detect this.  Also, some Intel
5105     # versions had trouble with output in subdirs
5106     am__obj=sub/conftest.${OBJEXT-o}
5107     am__minus_obj="-o $am__obj"
5108     case $depmode in
5109     gcc)
5110       # This depmode causes a compiler race in universal mode.
5111       test "$am__universal" = false || continue
5112       ;;
5113     nosideeffect)
5114       # after this tag, mechanisms are not by side-effect, so they'll
5115       # only be used when explicitly requested
5116       if test "x$enable_dependency_tracking" = xyes; then
5117         continue
5118       else
5119         break
5120       fi
5121       ;;
5122     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5123       # This compiler won't grok `-c -o', but also, the minuso test has
5124       # not run yet.  These depmodes are late enough in the game, and
5125       # so weak that their functioning should not be impacted.
5126       am__obj=conftest.${OBJEXT-o}
5127       am__minus_obj=
5128       ;;
5129     none) break ;;
5130     esac
5131     if depmode=$depmode \
5132        source=sub/conftest.c object=$am__obj \
5133        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5134        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5135          >/dev/null 2>conftest.err &&
5136        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5137        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5138        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5139        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5140       # icc doesn't choke on unknown options, it will just issue warnings
5141       # or remarks (even with -Werror).  So we grep stderr for any message
5142       # that says an option was ignored or not supported.
5143       # When given -MP, icc 7.0 and 7.1 complain thusly:
5144       #   icc: Command line warning: ignoring option '-M'; no argument required
5145       # The diagnosis changed in icc 8.0:
5146       #   icc: Command line remark: option '-MP' not supported
5147       if (grep 'ignoring option' conftest.err ||
5148           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5149         am_cv_CC_dependencies_compiler_type=$depmode
5150         break
5151       fi
5152     fi
5153   done
5154
5155   cd ..
5156   rm -rf conftest.dir
5157 else
5158   am_cv_CC_dependencies_compiler_type=none
5159 fi
5160
5161 fi
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5163 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5164 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5165
5166  if
5167   test "x$enable_dependency_tracking" != xno \
5168   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5169   am__fastdepCC_TRUE=
5170   am__fastdepCC_FALSE='#'
5171 else
5172   am__fastdepCC_TRUE='#'
5173   am__fastdepCC_FALSE=
5174 fi
5175
5176
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5178 $as_echo_n "checking whether ln -s works... " >&6; }
5179 LN_S=$as_ln_s
5180 if test "$LN_S" = "ln -s"; then
5181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5182 $as_echo "yes" >&6; }
5183 else
5184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5185 $as_echo "no, using $LN_S" >&6; }
5186 fi
5187
5188
5189
5190 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5191         if test -n "$ac_tool_prefix"; then
5192   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5193 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5197   $as_echo_n "(cached) " >&6
5198 else
5199   case $PKG_CONFIG in
5200   [\\/]* | ?:[\\/]*)
5201   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5202   ;;
5203   *)
5204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207   IFS=$as_save_IFS
5208   test -z "$as_dir" && as_dir=.
5209     for ac_exec_ext in '' $ac_executable_extensions; do
5210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5211     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213     break 2
5214   fi
5215 done
5216   done
5217 IFS=$as_save_IFS
5218
5219   ;;
5220 esac
5221 fi
5222 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5223 if test -n "$PKG_CONFIG"; then
5224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5225 $as_echo "$PKG_CONFIG" >&6; }
5226 else
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5229 fi
5230
5231
5232 fi
5233 if test -z "$ac_cv_path_PKG_CONFIG"; then
5234   ac_pt_PKG_CONFIG=$PKG_CONFIG
5235   # Extract the first word of "pkg-config", so it can be a program name with args.
5236 set dummy pkg-config; ac_word=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5240   $as_echo_n "(cached) " >&6
5241 else
5242   case $ac_pt_PKG_CONFIG in
5243   [\\/]* | ?:[\\/]*)
5244   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5245   ;;
5246   *)
5247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5249 do
5250   IFS=$as_save_IFS
5251   test -z "$as_dir" && as_dir=.
5252     for ac_exec_ext in '' $ac_executable_extensions; do
5253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5254     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256     break 2
5257   fi
5258 done
5259   done
5260 IFS=$as_save_IFS
5261
5262   ;;
5263 esac
5264 fi
5265 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5266 if test -n "$ac_pt_PKG_CONFIG"; then
5267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5268 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5269 else
5270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 fi
5273
5274   if test "x$ac_pt_PKG_CONFIG" = x; then
5275     PKG_CONFIG=""
5276   else
5277     case $cross_compiling:$ac_tool_warned in
5278 yes:)
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281 ac_tool_warned=yes ;;
5282 esac
5283     PKG_CONFIG=$ac_pt_PKG_CONFIG
5284   fi
5285 else
5286   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5287 fi
5288
5289 fi
5290 if test -n "$PKG_CONFIG"; then
5291         _pkg_min_version=0.9.0
5292         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5293 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5294         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5295                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5296 $as_echo "yes" >&6; }
5297         else
5298                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5300                 PKG_CONFIG=""
5301         fi
5302
5303 fi
5304
5305
5306     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
5307 set dummy gtkdoc-check; ac_word=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
5311   $as_echo_n "(cached) " >&6
5312 else
5313   case $GTKDOC_CHECK in
5314   [\\/]* | ?:[\\/]*)
5315   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
5316   ;;
5317   *)
5318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321   IFS=$as_save_IFS
5322   test -z "$as_dir" && as_dir=.
5323     for ac_exec_ext in '' $ac_executable_extensions; do
5324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
5326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327     break 2
5328   fi
5329 done
5330   done
5331 IFS=$as_save_IFS
5332
5333   ;;
5334 esac
5335 fi
5336 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
5337 if test -n "$GTKDOC_CHECK"; then
5338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
5339 $as_echo "$GTKDOC_CHECK" >&6; }
5340 else
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5343 fi
5344
5345
5346   for ac_prog in gtkdoc-rebase
5347 do
5348   # Extract the first word of "$ac_prog", so it can be a program name with args.
5349 set dummy $ac_prog; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
5353   $as_echo_n "(cached) " >&6
5354 else
5355   case $GTKDOC_REBASE in
5356   [\\/]* | ?:[\\/]*)
5357   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
5358   ;;
5359   *)
5360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365     for ac_exec_ext in '' $ac_executable_extensions; do
5366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
5368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369     break 2
5370   fi
5371 done
5372   done
5373 IFS=$as_save_IFS
5374
5375   ;;
5376 esac
5377 fi
5378 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
5379 if test -n "$GTKDOC_REBASE"; then
5380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
5381 $as_echo "$GTKDOC_REBASE" >&6; }
5382 else
5383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5385 fi
5386
5387
5388   test -n "$GTKDOC_REBASE" && break
5389 done
5390 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
5391
5392   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
5393 set dummy gtkdoc-mkpdf; ac_word=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
5397   $as_echo_n "(cached) " >&6
5398 else
5399   case $GTKDOC_MKPDF in
5400   [\\/]* | ?:[\\/]*)
5401   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
5402   ;;
5403   *)
5404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407   IFS=$as_save_IFS
5408   test -z "$as_dir" && as_dir=.
5409     for ac_exec_ext in '' $ac_executable_extensions; do
5410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
5412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413     break 2
5414   fi
5415 done
5416   done
5417 IFS=$as_save_IFS
5418
5419   ;;
5420 esac
5421 fi
5422 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
5423 if test -n "$GTKDOC_MKPDF"; then
5424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
5425 $as_echo "$GTKDOC_MKPDF" >&6; }
5426 else
5427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5429 fi
5430
5431
5432
5433
5434 # Check whether --with-html-dir was given.
5435 if test "${with_html_dir+set}" = set; then :
5436   withval=$with_html_dir;
5437 else
5438   with_html_dir='${datadir}/gtk-doc/html'
5439 fi
5440
5441   HTML_DIR="$with_html_dir"
5442
5443
5444     # Check whether --enable-gtk-doc was given.
5445 if test "${enable_gtk_doc+set}" = set; then :
5446   enableval=$enable_gtk_doc;
5447 else
5448   enable_gtk_doc=no
5449 fi
5450
5451
5452   if test x$enable_gtk_doc = xyes; then
5453     if test -n "$PKG_CONFIG" && \
5454     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.1\""; } >&5
5455   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.1") 2>&5
5456   ac_status=$?
5457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5458   test $ac_status = 0; }; then
5459   :
5460 else
5461   as_fn_error $? "You need to have gtk-doc >= 1.1 installed to build $PACKAGE_NAME" "$LINENO" 5
5462 fi
5463   fi
5464
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
5466 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
5467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
5468 $as_echo "$enable_gtk_doc" >&6; }
5469
5470     # Check whether --enable-gtk-doc-html was given.
5471 if test "${enable_gtk_doc_html+set}" = set; then :
5472   enableval=$enable_gtk_doc_html;
5473 else
5474   enable_gtk_doc_html=yes
5475 fi
5476
5477     # Check whether --enable-gtk-doc-pdf was given.
5478 if test "${enable_gtk_doc_pdf+set}" = set; then :
5479   enableval=$enable_gtk_doc_pdf;
5480 else
5481   enable_gtk_doc_pdf=no
5482 fi
5483
5484
5485   if test -z "$GTKDOC_MKPDF"; then
5486     enable_gtk_doc_pdf=no
5487   fi
5488
5489
5490    if test x$enable_gtk_doc = xyes; then
5491   ENABLE_GTK_DOC_TRUE=
5492   ENABLE_GTK_DOC_FALSE='#'
5493 else
5494   ENABLE_GTK_DOC_TRUE='#'
5495   ENABLE_GTK_DOC_FALSE=
5496 fi
5497
5498    if test x$enable_gtk_doc_html = xyes; then
5499   GTK_DOC_BUILD_HTML_TRUE=
5500   GTK_DOC_BUILD_HTML_FALSE='#'
5501 else
5502   GTK_DOC_BUILD_HTML_TRUE='#'
5503   GTK_DOC_BUILD_HTML_FALSE=
5504 fi
5505
5506    if test x$enable_gtk_doc_pdf = xyes; then
5507   GTK_DOC_BUILD_PDF_TRUE=
5508   GTK_DOC_BUILD_PDF_FALSE='#'
5509 else
5510   GTK_DOC_BUILD_PDF_TRUE='#'
5511   GTK_DOC_BUILD_PDF_FALSE=
5512 fi
5513
5514    if test -n "$LIBTOOL"; then
5515   GTK_DOC_USE_LIBTOOL_TRUE=
5516   GTK_DOC_USE_LIBTOOL_FALSE='#'
5517 else
5518   GTK_DOC_USE_LIBTOOL_TRUE='#'
5519   GTK_DOC_USE_LIBTOOL_FALSE=
5520 fi
5521
5522    if test -n "$GTKDOC_REBASE"; then
5523   GTK_DOC_USE_REBASE_TRUE=
5524   GTK_DOC_USE_REBASE_FALSE='#'
5525 else
5526   GTK_DOC_USE_REBASE_TRUE='#'
5527   GTK_DOC_USE_REBASE_FALSE=
5528 fi
5529
5530
5531 # Extract the first word of "gaa", so it can be a program name with args.
5532 set dummy gaa; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_path_GAA+:} false; then :
5536   $as_echo_n "(cached) " >&6
5537 else
5538   case $GAA in
5539   [\\/]* | ?:[\\/]*)
5540   ac_cv_path_GAA="$GAA" # Let the user override the test with a path.
5541   ;;
5542   *)
5543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546   IFS=$as_save_IFS
5547   test -z "$as_dir" && as_dir=.
5548     for ac_exec_ext in '' $ac_executable_extensions; do
5549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550     ac_cv_path_GAA="$as_dir/$ac_word$ac_exec_ext"
5551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552     break 2
5553   fi
5554 done
5555   done
5556 IFS=$as_save_IFS
5557
5558   ;;
5559 esac
5560 fi
5561 GAA=$ac_cv_path_GAA
5562 if test -n "$GAA"; then
5563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAA" >&5
5564 $as_echo "$GAA" >&6; }
5565 else
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5568 fi
5569
5570
5571 if test "x$GAA" = "x"; then
5572    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***
5573 *** GAA was not found.  It is only needed if you wish to modify
5574 *** the source code or command-line description files.  In this case,
5575 *** you may want to get it from http://gaa.sourceforge.net/ and
5576 *** read doc/README.gaa.
5577 ***" >&5
5578 $as_echo "$as_me: WARNING: ***
5579 *** GAA was not found.  It is only needed if you wish to modify
5580 *** the source code or command-line description files.  In this case,
5581 *** you may want to get it from http://gaa.sourceforge.net/ and
5582 *** read doc/README.gaa.
5583 ***" >&2;}
5584 fi
5585
5586
5587 ac_ext=c
5588 ac_cpp='$CPP $CPPFLAGS'
5589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5593 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5594 # On Suns, sometimes $CPP names a directory.
5595 if test -n "$CPP" && test -d "$CPP"; then
5596   CPP=
5597 fi
5598 if test -z "$CPP"; then
5599   if ${ac_cv_prog_CPP+:} false; then :
5600   $as_echo_n "(cached) " >&6
5601 else
5602       # Double quotes because CPP needs to be expanded
5603     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5604     do
5605       ac_preproc_ok=false
5606 for ac_c_preproc_warn_flag in '' yes
5607 do
5608   # Use a header file that comes with gcc, so configuring glibc
5609   # with a fresh cross-compiler works.
5610   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5611   # <limits.h> exists even on freestanding compilers.
5612   # On the NeXT, cc -E runs the code through the compiler's parser,
5613   # not just through cpp. "Syntax error" is here to catch this case.
5614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h.  */
5616 #ifdef __STDC__
5617 # include <limits.h>
5618 #else
5619 # include <assert.h>
5620 #endif
5621                      Syntax error
5622 _ACEOF
5623 if ac_fn_c_try_cpp "$LINENO"; then :
5624
5625 else
5626   # Broken: fails on valid input.
5627 continue
5628 fi
5629 rm -f conftest.err conftest.i conftest.$ac_ext
5630
5631   # OK, works on sane cases.  Now check whether nonexistent headers
5632   # can be detected and how.
5633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h.  */
5635 #include <ac_nonexistent.h>
5636 _ACEOF
5637 if ac_fn_c_try_cpp "$LINENO"; then :
5638   # Broken: success on invalid input.
5639 continue
5640 else
5641   # Passes both tests.
5642 ac_preproc_ok=:
5643 break
5644 fi
5645 rm -f conftest.err conftest.i conftest.$ac_ext
5646
5647 done
5648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5649 rm -f conftest.i conftest.err conftest.$ac_ext
5650 if $ac_preproc_ok; then :
5651   break
5652 fi
5653
5654     done
5655     ac_cv_prog_CPP=$CPP
5656
5657 fi
5658   CPP=$ac_cv_prog_CPP
5659 else
5660   ac_cv_prog_CPP=$CPP
5661 fi
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5663 $as_echo "$CPP" >&6; }
5664 ac_preproc_ok=false
5665 for ac_c_preproc_warn_flag in '' yes
5666 do
5667   # Use a header file that comes with gcc, so configuring glibc
5668   # with a fresh cross-compiler works.
5669   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5670   # <limits.h> exists even on freestanding compilers.
5671   # On the NeXT, cc -E runs the code through the compiler's parser,
5672   # not just through cpp. "Syntax error" is here to catch this case.
5673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h.  */
5675 #ifdef __STDC__
5676 # include <limits.h>
5677 #else
5678 # include <assert.h>
5679 #endif
5680                      Syntax error
5681 _ACEOF
5682 if ac_fn_c_try_cpp "$LINENO"; then :
5683
5684 else
5685   # Broken: fails on valid input.
5686 continue
5687 fi
5688 rm -f conftest.err conftest.i conftest.$ac_ext
5689
5690   # OK, works on sane cases.  Now check whether nonexistent headers
5691   # can be detected and how.
5692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h.  */
5694 #include <ac_nonexistent.h>
5695 _ACEOF
5696 if ac_fn_c_try_cpp "$LINENO"; then :
5697   # Broken: success on invalid input.
5698 continue
5699 else
5700   # Passes both tests.
5701 ac_preproc_ok=:
5702 break
5703 fi
5704 rm -f conftest.err conftest.i conftest.$ac_ext
5705
5706 done
5707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5708 rm -f conftest.i conftest.err conftest.$ac_ext
5709 if $ac_preproc_ok; then :
5710
5711 else
5712   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5714 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5715 See \`config.log' for more details" "$LINENO" 5; }
5716 fi
5717
5718 ac_ext=c
5719 ac_cpp='$CPP $CPPFLAGS'
5720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5723
5724
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5726 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5727 if ${ac_cv_path_GREP+:} false; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   if test -z "$GREP"; then
5731   ac_path_GREP_found=false
5732   # Loop through the user's path and test for each of PROGNAME-LIST
5733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5735 do
5736   IFS=$as_save_IFS
5737   test -z "$as_dir" && as_dir=.
5738     for ac_prog in grep ggrep; do
5739     for ac_exec_ext in '' $ac_executable_extensions; do
5740       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5741       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5742 # Check for GNU ac_path_GREP and select it if it is found.
5743   # Check for GNU $ac_path_GREP
5744 case `"$ac_path_GREP" --version 2>&1` in
5745 *GNU*)
5746   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5747 *)
5748   ac_count=0
5749   $as_echo_n 0123456789 >"conftest.in"
5750   while :
5751   do
5752     cat "conftest.in" "conftest.in" >"conftest.tmp"
5753     mv "conftest.tmp" "conftest.in"
5754     cp "conftest.in" "conftest.nl"
5755     $as_echo 'GREP' >> "conftest.nl"
5756     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5757     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5758     as_fn_arith $ac_count + 1 && ac_count=$as_val
5759     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5760       # Best one so far, save it but keep looking for a better one
5761       ac_cv_path_GREP="$ac_path_GREP"
5762       ac_path_GREP_max=$ac_count
5763     fi
5764     # 10*(2^10) chars as input seems more than enough
5765     test $ac_count -gt 10 && break
5766   done
5767   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5768 esac
5769
5770       $ac_path_GREP_found && break 3
5771     done
5772   done
5773   done
5774 IFS=$as_save_IFS
5775   if test -z "$ac_cv_path_GREP"; then
5776     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5777   fi
5778 else
5779   ac_cv_path_GREP=$GREP
5780 fi
5781
5782 fi
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5784 $as_echo "$ac_cv_path_GREP" >&6; }
5785  GREP="$ac_cv_path_GREP"
5786
5787
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5789 $as_echo_n "checking for egrep... " >&6; }
5790 if ${ac_cv_path_EGREP+:} false; then :
5791   $as_echo_n "(cached) " >&6
5792 else
5793   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5794    then ac_cv_path_EGREP="$GREP -E"
5795    else
5796      if test -z "$EGREP"; then
5797   ac_path_EGREP_found=false
5798   # Loop through the user's path and test for each of PROGNAME-LIST
5799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804     for ac_prog in egrep; do
5805     for ac_exec_ext in '' $ac_executable_extensions; do
5806       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5807       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5808 # Check for GNU ac_path_EGREP and select it if it is found.
5809   # Check for GNU $ac_path_EGREP
5810 case `"$ac_path_EGREP" --version 2>&1` in
5811 *GNU*)
5812   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5813 *)
5814   ac_count=0
5815   $as_echo_n 0123456789 >"conftest.in"
5816   while :
5817   do
5818     cat "conftest.in" "conftest.in" >"conftest.tmp"
5819     mv "conftest.tmp" "conftest.in"
5820     cp "conftest.in" "conftest.nl"
5821     $as_echo 'EGREP' >> "conftest.nl"
5822     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5823     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5824     as_fn_arith $ac_count + 1 && ac_count=$as_val
5825     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5826       # Best one so far, save it but keep looking for a better one
5827       ac_cv_path_EGREP="$ac_path_EGREP"
5828       ac_path_EGREP_max=$ac_count
5829     fi
5830     # 10*(2^10) chars as input seems more than enough
5831     test $ac_count -gt 10 && break
5832   done
5833   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5834 esac
5835
5836       $ac_path_EGREP_found && break 3
5837     done
5838   done
5839   done
5840 IFS=$as_save_IFS
5841   if test -z "$ac_cv_path_EGREP"; then
5842     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5843   fi
5844 else
5845   ac_cv_path_EGREP=$EGREP
5846 fi
5847
5848    fi
5849 fi
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5851 $as_echo "$ac_cv_path_EGREP" >&6; }
5852  EGREP="$ac_cv_path_EGREP"
5853
5854
5855
5856
5857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5858 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5859 if ${gl_cv_c_amsterdam_compiler+:} false; then :
5860   $as_echo_n "(cached) " >&6
5861 else
5862
5863       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h.  */
5865
5866 #ifdef __ACK__
5867 Amsterdam
5868 #endif
5869
5870 _ACEOF
5871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5872   $EGREP "Amsterdam" >/dev/null 2>&1; then :
5873   gl_cv_c_amsterdam_compiler=yes
5874 else
5875   gl_cv_c_amsterdam_compiler=no
5876 fi
5877 rm -f conftest*
5878
5879
5880 fi
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5882 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5883   if test -z "$AR"; then
5884     if test $gl_cv_c_amsterdam_compiler = yes; then
5885       AR='cc -c.a'
5886       if test -z "$ARFLAGS"; then
5887         ARFLAGS='-o'
5888       fi
5889     else
5890                   if test -n "$ac_tool_prefix"; then
5891   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5892 set dummy ${ac_tool_prefix}ar; ac_word=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if ${ac_cv_prog_AR+:} false; then :
5896   $as_echo_n "(cached) " >&6
5897 else
5898   if test -n "$AR"; then
5899   ac_cv_prog_AR="$AR" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904   IFS=$as_save_IFS
5905   test -z "$as_dir" && as_dir=.
5906     for ac_exec_ext in '' $ac_executable_extensions; do
5907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908     ac_cv_prog_AR="${ac_tool_prefix}ar"
5909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913   done
5914 IFS=$as_save_IFS
5915
5916 fi
5917 fi
5918 AR=$ac_cv_prog_AR
5919 if test -n "$AR"; then
5920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5921 $as_echo "$AR" >&6; }
5922 else
5923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5925 fi
5926
5927
5928 fi
5929 if test -z "$ac_cv_prog_AR"; then
5930   ac_ct_AR=$AR
5931   # Extract the first word of "ar", so it can be a program name with args.
5932 set dummy ar; ac_word=$2
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5936   $as_echo_n "(cached) " >&6
5937 else
5938   if test -n "$ac_ct_AR"; then
5939   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944   IFS=$as_save_IFS
5945   test -z "$as_dir" && as_dir=.
5946     for ac_exec_ext in '' $ac_executable_extensions; do
5947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5948     ac_cv_prog_ac_ct_AR="ar"
5949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950     break 2
5951   fi
5952 done
5953   done
5954 IFS=$as_save_IFS
5955
5956 fi
5957 fi
5958 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5959 if test -n "$ac_ct_AR"; then
5960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5961 $as_echo "$ac_ct_AR" >&6; }
5962 else
5963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964 $as_echo "no" >&6; }
5965 fi
5966
5967   if test "x$ac_ct_AR" = x; then
5968     AR="ar"
5969   else
5970     case $cross_compiling:$ac_tool_warned in
5971 yes:)
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974 ac_tool_warned=yes ;;
5975 esac
5976     AR=$ac_ct_AR
5977   fi
5978 else
5979   AR="$ac_cv_prog_AR"
5980 fi
5981
5982       if test -z "$ARFLAGS"; then
5983         ARFLAGS='cru'
5984       fi
5985     fi
5986   else
5987     if test -z "$ARFLAGS"; then
5988       ARFLAGS='cru'
5989     fi
5990   fi
5991
5992
5993   if test -z "$RANLIB"; then
5994     if test $gl_cv_c_amsterdam_compiler = yes; then
5995       RANLIB=':'
5996     else
5997             if test -n "$ac_tool_prefix"; then
5998   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001 $as_echo_n "checking for $ac_word... " >&6; }
6002 if ${ac_cv_prog_RANLIB+:} false; then :
6003   $as_echo_n "(cached) " >&6
6004 else
6005   if test -n "$RANLIB"; then
6006   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013     for ac_exec_ext in '' $ac_executable_extensions; do
6014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020   done
6021 IFS=$as_save_IFS
6022
6023 fi
6024 fi
6025 RANLIB=$ac_cv_prog_RANLIB
6026 if test -n "$RANLIB"; then
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6028 $as_echo "$RANLIB" >&6; }
6029 else
6030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 $as_echo "no" >&6; }
6032 fi
6033
6034
6035 fi
6036 if test -z "$ac_cv_prog_RANLIB"; then
6037   ac_ct_RANLIB=$RANLIB
6038   # Extract the first word of "ranlib", so it can be a program name with args.
6039 set dummy ranlib; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6043   $as_echo_n "(cached) " >&6
6044 else
6045   if test -n "$ac_ct_RANLIB"; then
6046   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051   IFS=$as_save_IFS
6052   test -z "$as_dir" && as_dir=.
6053     for ac_exec_ext in '' $ac_executable_extensions; do
6054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055     ac_cv_prog_ac_ct_RANLIB="ranlib"
6056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057     break 2
6058   fi
6059 done
6060   done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6066 if test -n "$ac_ct_RANLIB"; then
6067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6068 $as_echo "$ac_ct_RANLIB" >&6; }
6069 else
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6072 fi
6073
6074   if test "x$ac_ct_RANLIB" = x; then
6075     RANLIB=":"
6076   else
6077     case $cross_compiling:$ac_tool_warned in
6078 yes:)
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081 ac_tool_warned=yes ;;
6082 esac
6083     RANLIB=$ac_ct_RANLIB
6084   fi
6085 else
6086   RANLIB="$ac_cv_prog_RANLIB"
6087 fi
6088
6089     fi
6090   fi
6091
6092
6093 if test "x$CC" != xcc; then
6094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6095 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6096 else
6097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6098 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6099 fi
6100 set dummy $CC; ac_cc=`$as_echo "$2" |
6101                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6102 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
6103   $as_echo_n "(cached) " >&6
6104 else
6105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h.  */
6107
6108 int
6109 main ()
6110 {
6111
6112   ;
6113   return 0;
6114 }
6115 _ACEOF
6116 # Make sure it works both with $CC and with simple cc.
6117 # We do the test twice because some compilers refuse to overwrite an
6118 # existing .o file with -o, though they will create one.
6119 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6120 rm -f conftest2.*
6121 if { { case "(($ac_try" in
6122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123   *) ac_try_echo=$ac_try;;
6124 esac
6125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6126 $as_echo "$ac_try_echo"; } >&5
6127   (eval "$ac_try") 2>&5
6128   ac_status=$?
6129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6130   test $ac_status = 0; } &&
6131    test -f conftest2.$ac_objext && { { case "(($ac_try" in
6132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133   *) ac_try_echo=$ac_try;;
6134 esac
6135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6136 $as_echo "$ac_try_echo"; } >&5
6137   (eval "$ac_try") 2>&5
6138   ac_status=$?
6139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6140   test $ac_status = 0; };
6141 then
6142   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6143   if test "x$CC" != xcc; then
6144     # Test first that cc exists at all.
6145     if { ac_try='cc -c conftest.$ac_ext >&5'
6146   { { case "(($ac_try" in
6147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148   *) ac_try_echo=$ac_try;;
6149 esac
6150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6151 $as_echo "$ac_try_echo"; } >&5
6152   (eval "$ac_try") 2>&5
6153   ac_status=$?
6154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6155   test $ac_status = 0; }; }; then
6156       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6157       rm -f conftest2.*
6158       if { { case "(($ac_try" in
6159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160   *) ac_try_echo=$ac_try;;
6161 esac
6162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6163 $as_echo "$ac_try_echo"; } >&5
6164   (eval "$ac_try") 2>&5
6165   ac_status=$?
6166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6167   test $ac_status = 0; } &&
6168          test -f conftest2.$ac_objext && { { case "(($ac_try" in
6169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170   *) ac_try_echo=$ac_try;;
6171 esac
6172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6173 $as_echo "$ac_try_echo"; } >&5
6174   (eval "$ac_try") 2>&5
6175   ac_status=$?
6176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6177   test $ac_status = 0; };
6178       then
6179         # cc works too.
6180         :
6181       else
6182         # cc exists but doesn't like -o.
6183         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6184       fi
6185     fi
6186   fi
6187 else
6188   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6189 fi
6190 rm -f core conftest*
6191
6192 fi
6193 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6195 $as_echo "yes" >&6; }
6196 else
6197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6199
6200 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6201
6202 fi
6203
6204 # FIXME: we rely on the cache variable name because
6205 # there is no other way.
6206 set dummy $CC
6207 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6208 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6209 if test "$am_t" != yes; then
6210    # Losing compiler, so override with the script.
6211    # FIXME: It is wrong to rewrite CC.
6212    # But if we don't then we get into trouble of one sort or another.
6213    # A longer-term fix would be to have automake use am__CC in this case,
6214    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6215    CC="$am_aux_dir/compile $CC"
6216 fi
6217
6218
6219 # Make sure we can run config.sub.
6220 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6221   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6222
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6224 $as_echo_n "checking build system type... " >&6; }
6225 if ${ac_cv_build+:} false; then :
6226   $as_echo_n "(cached) " >&6
6227 else
6228   ac_build_alias=$build_alias
6229 test "x$ac_build_alias" = x &&
6230   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6231 test "x$ac_build_alias" = x &&
6232   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6233 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6234   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6235
6236 fi
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6238 $as_echo "$ac_cv_build" >&6; }
6239 case $ac_cv_build in
6240 *-*-*) ;;
6241 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6242 esac
6243 build=$ac_cv_build
6244 ac_save_IFS=$IFS; IFS='-'
6245 set x $ac_cv_build
6246 shift
6247 build_cpu=$1
6248 build_vendor=$2
6249 shift; shift
6250 # Remember, the first character of IFS is used to create $*,
6251 # except with old shells:
6252 build_os=$*
6253 IFS=$ac_save_IFS
6254 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6255
6256
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6258 $as_echo_n "checking host system type... " >&6; }
6259 if ${ac_cv_host+:} false; then :
6260   $as_echo_n "(cached) " >&6
6261 else
6262   if test "x$host_alias" = x; then
6263   ac_cv_host=$ac_cv_build
6264 else
6265   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6266     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6267 fi
6268
6269 fi
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6271 $as_echo "$ac_cv_host" >&6; }
6272 case $ac_cv_host in
6273 *-*-*) ;;
6274 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6275 esac
6276 host=$ac_cv_host
6277 ac_save_IFS=$IFS; IFS='-'
6278 set x $ac_cv_host
6279 shift
6280 host_cpu=$1
6281 host_vendor=$2
6282 shift; shift
6283 # Remember, the first character of IFS is used to create $*,
6284 # except with old shells:
6285 host_os=$*
6286 IFS=$ac_save_IFS
6287 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6288
6289
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6291 $as_echo_n "checking for ANSI C header files... " >&6; }
6292 if ${ac_cv_header_stdc+:} false; then :
6293   $as_echo_n "(cached) " >&6
6294 else
6295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h.  */
6297 #include <stdlib.h>
6298 #include <stdarg.h>
6299 #include <string.h>
6300 #include <float.h>
6301
6302 int
6303 main ()
6304 {
6305
6306   ;
6307   return 0;
6308 }
6309 _ACEOF
6310 if ac_fn_c_try_compile "$LINENO"; then :
6311   ac_cv_header_stdc=yes
6312 else
6313   ac_cv_header_stdc=no
6314 fi
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316
6317 if test $ac_cv_header_stdc = yes; then
6318   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h.  */
6321 #include <string.h>
6322
6323 _ACEOF
6324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6325   $EGREP "memchr" >/dev/null 2>&1; then :
6326
6327 else
6328   ac_cv_header_stdc=no
6329 fi
6330 rm -f conftest*
6331
6332 fi
6333
6334 if test $ac_cv_header_stdc = yes; then
6335   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h.  */
6338 #include <stdlib.h>
6339
6340 _ACEOF
6341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6342   $EGREP "free" >/dev/null 2>&1; then :
6343
6344 else
6345   ac_cv_header_stdc=no
6346 fi
6347 rm -f conftest*
6348
6349 fi
6350
6351 if test $ac_cv_header_stdc = yes; then
6352   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6353   if test "$cross_compiling" = yes; then :
6354   :
6355 else
6356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h.  */
6358 #include <ctype.h>
6359 #include <stdlib.h>
6360 #if ((' ' & 0x0FF) == 0x020)
6361 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6362 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6363 #else
6364 # define ISLOWER(c) \
6365                    (('a' <= (c) && (c) <= 'i') \
6366                      || ('j' <= (c) && (c) <= 'r') \
6367                      || ('s' <= (c) && (c) <= 'z'))
6368 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6369 #endif
6370
6371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6372 int
6373 main ()
6374 {
6375   int i;
6376   for (i = 0; i < 256; i++)
6377     if (XOR (islower (i), ISLOWER (i))
6378         || toupper (i) != TOUPPER (i))
6379       return 2;
6380   return 0;
6381 }
6382 _ACEOF
6383 if ac_fn_c_try_run "$LINENO"; then :
6384
6385 else
6386   ac_cv_header_stdc=no
6387 fi
6388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6389   conftest.$ac_objext conftest.beam conftest.$ac_ext
6390 fi
6391
6392 fi
6393 fi
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6395 $as_echo "$ac_cv_header_stdc" >&6; }
6396 if test $ac_cv_header_stdc = yes; then
6397
6398 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6399
6400 fi
6401
6402 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6403 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6404                   inttypes.h stdint.h unistd.h
6405 do :
6406   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6408 "
6409 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6410   cat >>confdefs.h <<_ACEOF
6411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6412 _ACEOF
6413
6414 fi
6415
6416 done
6417
6418
6419
6420
6421
6422   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6423 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6424   MINIX=yes
6425 else
6426   MINIX=
6427 fi
6428
6429
6430   if test "$MINIX" = yes; then
6431
6432 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6433
6434
6435 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6436
6437
6438 $as_echo "#define _MINIX 1" >>confdefs.h
6439
6440   fi
6441
6442         case "$host_os" in
6443     hpux*)
6444
6445 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6446
6447       ;;
6448   esac
6449
6450
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6452 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6453 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6454   $as_echo_n "(cached) " >&6
6455 else
6456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h.  */
6458
6459 #         define __EXTENSIONS__ 1
6460           $ac_includes_default
6461 int
6462 main ()
6463 {
6464
6465   ;
6466   return 0;
6467 }
6468 _ACEOF
6469 if ac_fn_c_try_compile "$LINENO"; then :
6470   ac_cv_safe_to_define___extensions__=yes
6471 else
6472   ac_cv_safe_to_define___extensions__=no
6473 fi
6474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475 fi
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6477 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6478   test $ac_cv_safe_to_define___extensions__ = yes &&
6479     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6480
6481   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6482
6483   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6484
6485   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6486
6487   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6488
6489   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501   # IEEE behaviour is the default on all CPUs except Alpha and SH
6502   # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6503   # and the GCC 4.1.2 manual).
6504   case "$host_cpu" in
6505     alpha*)
6506       # On Alpha systems, a compiler option provides the behaviour.
6507       # See the ieee(3) manual page, also available at
6508       # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
6509       if test -n "$GCC"; then
6510         # GCC has the option -mieee.
6511         # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6512         CPPFLAGS="$CPPFLAGS -mieee"
6513       else
6514         # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6515         # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6516         CPPFLAGS="$CPPFLAGS -ieee"
6517       fi
6518       ;;
6519     sh*)
6520       if test -n "$GCC"; then
6521         # GCC has the option -mieee.
6522         CPPFLAGS="$CPPFLAGS -mieee"
6523       fi
6524       ;;
6525   esac
6526
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6528 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6529 if ${ac_cv_sys_largefile_source+:} false; then :
6530   $as_echo_n "(cached) " >&6
6531 else
6532   while :; do
6533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h.  */
6535 #include <sys/types.h> /* for off_t */
6536      #include <stdio.h>
6537 int
6538 main ()
6539 {
6540 int (*fp) (FILE *, off_t, int) = fseeko;
6541      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6542   ;
6543   return 0;
6544 }
6545 _ACEOF
6546 if ac_fn_c_try_link "$LINENO"; then :
6547   ac_cv_sys_largefile_source=no; break
6548 fi
6549 rm -f core conftest.err conftest.$ac_objext \
6550     conftest$ac_exeext conftest.$ac_ext
6551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h.  */
6553 #define _LARGEFILE_SOURCE 1
6554 #include <sys/types.h> /* for off_t */
6555      #include <stdio.h>
6556 int
6557 main ()
6558 {
6559 int (*fp) (FILE *, off_t, int) = fseeko;
6560      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6561   ;
6562   return 0;
6563 }
6564 _ACEOF
6565 if ac_fn_c_try_link "$LINENO"; then :
6566   ac_cv_sys_largefile_source=1; break
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext \
6569     conftest$ac_exeext conftest.$ac_ext
6570   ac_cv_sys_largefile_source=unknown
6571   break
6572 done
6573 fi
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6575 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6576 case $ac_cv_sys_largefile_source in #(
6577   no | unknown) ;;
6578   *)
6579 cat >>confdefs.h <<_ACEOF
6580 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6581 _ACEOF
6582 ;;
6583 esac
6584 rm -rf conftest*
6585
6586 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6587 # in glibc 2.1.3, but that breaks too many other things.
6588 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6589 if test $ac_cv_sys_largefile_source != unknown; then
6590
6591 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
6592
6593 fi
6594
6595 # Check whether --enable-largefile was given.
6596 if test "${enable_largefile+set}" = set; then :
6597   enableval=$enable_largefile;
6598 fi
6599
6600 if test "$enable_largefile" != no; then
6601
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6603 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6604 if ${ac_cv_sys_largefile_CC+:} false; then :
6605   $as_echo_n "(cached) " >&6
6606 else
6607   ac_cv_sys_largefile_CC=no
6608      if test "$GCC" != yes; then
6609        ac_save_CC=$CC
6610        while :; do
6611          # IRIX 6.2 and later do not support large files by default,
6612          # so use the C compiler's -n32 option if that helps.
6613          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h.  */
6615 #include <sys/types.h>
6616  /* Check that off_t can represent 2**63 - 1 correctly.
6617     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6618     since some C++ compilers masquerading as C compilers
6619     incorrectly reject 9223372036854775807.  */
6620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6621   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6622                        && LARGE_OFF_T % 2147483647 == 1)
6623                       ? 1 : -1];
6624 int
6625 main ()
6626 {
6627
6628   ;
6629   return 0;
6630 }
6631 _ACEOF
6632          if ac_fn_c_try_compile "$LINENO"; then :
6633   break
6634 fi
6635 rm -f core conftest.err conftest.$ac_objext
6636          CC="$CC -n32"
6637          if ac_fn_c_try_compile "$LINENO"; then :
6638   ac_cv_sys_largefile_CC=' -n32'; break
6639 fi
6640 rm -f core conftest.err conftest.$ac_objext
6641          break
6642        done
6643        CC=$ac_save_CC
6644        rm -f conftest.$ac_ext
6645     fi
6646 fi
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6648 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6649   if test "$ac_cv_sys_largefile_CC" != no; then
6650     CC=$CC$ac_cv_sys_largefile_CC
6651   fi
6652
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6654 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6655 if ${ac_cv_sys_file_offset_bits+:} false; then :
6656   $as_echo_n "(cached) " >&6
6657 else
6658   while :; do
6659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h.  */
6661 #include <sys/types.h>
6662  /* Check that off_t can represent 2**63 - 1 correctly.
6663     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6664     since some C++ compilers masquerading as C compilers
6665     incorrectly reject 9223372036854775807.  */
6666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6667   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6668                        && LARGE_OFF_T % 2147483647 == 1)
6669                       ? 1 : -1];
6670 int
6671 main ()
6672 {
6673
6674   ;
6675   return 0;
6676 }
6677 _ACEOF
6678 if ac_fn_c_try_compile "$LINENO"; then :
6679   ac_cv_sys_file_offset_bits=no; break
6680 fi
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h.  */
6684 #define _FILE_OFFSET_BITS 64
6685 #include <sys/types.h>
6686  /* Check that off_t can represent 2**63 - 1 correctly.
6687     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6688     since some C++ compilers masquerading as C compilers
6689     incorrectly reject 9223372036854775807.  */
6690 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6691   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6692                        && LARGE_OFF_T % 2147483647 == 1)
6693                       ? 1 : -1];
6694 int
6695 main ()
6696 {
6697
6698   ;
6699   return 0;
6700 }
6701 _ACEOF
6702 if ac_fn_c_try_compile "$LINENO"; then :
6703   ac_cv_sys_file_offset_bits=64; break
6704 fi
6705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706   ac_cv_sys_file_offset_bits=unknown
6707   break
6708 done
6709 fi
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6711 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6712 case $ac_cv_sys_file_offset_bits in #(
6713   no | unknown) ;;
6714   *)
6715 cat >>confdefs.h <<_ACEOF
6716 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6717 _ACEOF
6718 ;;
6719 esac
6720 rm -rf conftest*
6721   if test $ac_cv_sys_file_offset_bits = unknown; then
6722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6723 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6724 if ${ac_cv_sys_large_files+:} false; then :
6725   $as_echo_n "(cached) " >&6
6726 else
6727   while :; do
6728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h.  */
6730 #include <sys/types.h>
6731  /* Check that off_t can represent 2**63 - 1 correctly.
6732     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6733     since some C++ compilers masquerading as C compilers
6734     incorrectly reject 9223372036854775807.  */
6735 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6736   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6737                        && LARGE_OFF_T % 2147483647 == 1)
6738                       ? 1 : -1];
6739 int
6740 main ()
6741 {
6742
6743   ;
6744   return 0;
6745 }
6746 _ACEOF
6747 if ac_fn_c_try_compile "$LINENO"; then :
6748   ac_cv_sys_large_files=no; break
6749 fi
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h.  */
6753 #define _LARGE_FILES 1
6754 #include <sys/types.h>
6755  /* Check that off_t can represent 2**63 - 1 correctly.
6756     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6757     since some C++ compilers masquerading as C compilers
6758     incorrectly reject 9223372036854775807.  */
6759 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6760   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6761                        && LARGE_OFF_T % 2147483647 == 1)
6762                       ? 1 : -1];
6763 int
6764 main ()
6765 {
6766
6767   ;
6768   return 0;
6769 }
6770 _ACEOF
6771 if ac_fn_c_try_compile "$LINENO"; then :
6772   ac_cv_sys_large_files=1; break
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775   ac_cv_sys_large_files=unknown
6776   break
6777 done
6778 fi
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6780 $as_echo "$ac_cv_sys_large_files" >&6; }
6781 case $ac_cv_sys_large_files in #(
6782   no | unknown) ;;
6783   *)
6784 cat >>confdefs.h <<_ACEOF
6785 #define _LARGE_FILES $ac_cv_sys_large_files
6786 _ACEOF
6787 ;;
6788 esac
6789 rm -rf conftest*
6790   fi
6791 fi
6792
6793    case $ac_cv_prog_cc_stdc in #(
6794   no) :
6795     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6796   *) :
6797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6798 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6799 if ${ac_cv_prog_cc_c99+:} false; then :
6800   $as_echo_n "(cached) " >&6
6801 else
6802   ac_cv_prog_cc_c99=no
6803 ac_save_CC=$CC
6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h.  */
6806 #include <stdarg.h>
6807 #include <stdbool.h>
6808 #include <stdlib.h>
6809 #include <wchar.h>
6810 #include <stdio.h>
6811
6812 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
6813 #define debug(...) fprintf (stderr, __VA_ARGS__)
6814 #define showlist(...) puts (#__VA_ARGS__)
6815 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6816 static void
6817 test_varargs_macros (void)
6818 {
6819   int x = 1234;
6820   int y = 5678;
6821   debug ("Flag");
6822   debug ("X = %d\n", x);
6823   showlist (The first, second, and third items.);
6824   report (x>y, "x is %d but y is %d", x, y);
6825 }
6826
6827 // Check long long types.
6828 #define BIG64 18446744073709551615ull
6829 #define BIG32 4294967295ul
6830 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6831 #if !BIG_OK
6832   your preprocessor is broken;
6833 #endif
6834 #if BIG_OK
6835 #else
6836   your preprocessor is broken;
6837 #endif
6838 static long long int bignum = -9223372036854775807LL;
6839 static unsigned long long int ubignum = BIG64;
6840
6841 struct incomplete_array
6842 {
6843   int datasize;
6844   double data[];
6845 };
6846
6847 struct named_init {
6848   int number;
6849   const wchar_t *name;
6850   double average;
6851 };
6852
6853 typedef const char *ccp;
6854
6855 static inline int
6856 test_restrict (ccp restrict text)
6857 {
6858   // See if C++-style comments work.
6859   // Iterate through items via the restricted pointer.
6860   // Also check for declarations in for loops.
6861   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6862     continue;
6863   return 0;
6864 }
6865
6866 // Check varargs and va_copy.
6867 static void
6868 test_varargs (const char *format, ...)
6869 {
6870   va_list args;
6871   va_start (args, format);
6872   va_list args_copy;
6873   va_copy (args_copy, args);
6874
6875   const char *str;
6876   int number;
6877   float fnumber;
6878
6879   while (*format)
6880     {
6881       switch (*format++)
6882         {
6883         case 's': // string
6884           str = va_arg (args_copy, const char *);
6885           break;
6886         case 'd': // int
6887           number = va_arg (args_copy, int);
6888           break;
6889         case 'f': // float
6890           fnumber = va_arg (args_copy, double);
6891           break;
6892         default:
6893           break;
6894         }
6895     }
6896   va_end (args_copy);
6897   va_end (args);
6898 }
6899
6900 int
6901 main ()
6902 {
6903
6904   // Check bool.
6905   _Bool success = false;
6906
6907   // Check restrict.
6908   if (test_restrict ("String literal") == 0)
6909     success = true;
6910   char *restrict newvar = "Another string";
6911
6912   // Check varargs.
6913   test_varargs ("s, d' f .", "string", 65, 34.234);
6914   test_varargs_macros ();
6915
6916   // Check flexible array members.
6917   struct incomplete_array *ia =
6918     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6919   ia->datasize = 10;
6920   for (int i = 0; i < ia->datasize; ++i)
6921     ia->data[i] = i * 1.234;
6922
6923   // Check named initializers.
6924   struct named_init ni = {
6925     .number = 34,
6926     .name = L"Test wide string",
6927     .average = 543.34343,
6928   };
6929
6930   ni.number = 58;
6931
6932   int dynamic_array[ni.number];
6933   dynamic_array[ni.number - 1] = 543;
6934
6935   // work around unused variable warnings
6936   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6937           || dynamic_array[ni.number - 1] != 543);
6938
6939   ;
6940   return 0;
6941 }
6942 _ACEOF
6943 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6944 do
6945   CC="$ac_save_CC $ac_arg"
6946   if ac_fn_c_try_compile "$LINENO"; then :
6947   ac_cv_prog_cc_c99=$ac_arg
6948 fi
6949 rm -f core conftest.err conftest.$ac_objext
6950   test "x$ac_cv_prog_cc_c99" != "xno" && break
6951 done
6952 rm -f conftest.$ac_ext
6953 CC=$ac_save_CC
6954
6955 fi
6956 # AC_CACHE_VAL
6957 case "x$ac_cv_prog_cc_c99" in
6958   x)
6959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6960 $as_echo "none needed" >&6; } ;;
6961   xno)
6962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6963 $as_echo "unsupported" >&6; } ;;
6964   *)
6965     CC="$CC $ac_cv_prog_cc_c99"
6966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6967 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6968 esac
6969 if test "x$ac_cv_prog_cc_c99" != xno; then :
6970   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6971 else
6972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6973 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6974 if ${ac_cv_prog_cc_c89+:} false; then :
6975   $as_echo_n "(cached) " >&6
6976 else
6977   ac_cv_prog_cc_c89=no
6978 ac_save_CC=$CC
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h.  */
6981 #include <stdarg.h>
6982 #include <stdio.h>
6983 #include <sys/types.h>
6984 #include <sys/stat.h>
6985 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6986 struct buf { int x; };
6987 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6988 static char *e (p, i)
6989      char **p;
6990      int i;
6991 {
6992   return p[i];
6993 }
6994 static char *f (char * (*g) (char **, int), char **p, ...)
6995 {
6996   char *s;
6997   va_list v;
6998   va_start (v,p);
6999   s = g (p, va_arg (v,int));
7000   va_end (v);
7001   return s;
7002 }
7003
7004 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7005    function prototypes and stuff, but not '\xHH' hex character constants.
7006    These don't provoke an error unfortunately, instead are silently treated
7007    as 'x'.  The following induces an error, until -std is added to get
7008    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7009    array size at least.  It's necessary to write '\x00'==0 to get something
7010    that's true only with -std.  */
7011 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7012
7013 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7014    inside strings and character constants.  */
7015 #define FOO(x) 'x'
7016 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7017
7018 int test (int i, double x);
7019 struct s1 {int (*f) (int a);};
7020 struct s2 {int (*f) (double a);};
7021 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7022 int argc;
7023 char **argv;
7024 int
7025 main ()
7026 {
7027 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7028   ;
7029   return 0;
7030 }
7031 _ACEOF
7032 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7033         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7034 do
7035   CC="$ac_save_CC $ac_arg"
7036   if ac_fn_c_try_compile "$LINENO"; then :
7037   ac_cv_prog_cc_c89=$ac_arg
7038 fi
7039 rm -f core conftest.err conftest.$ac_objext
7040   test "x$ac_cv_prog_cc_c89" != "xno" && break
7041 done
7042 rm -f conftest.$ac_ext
7043 CC=$ac_save_CC
7044
7045 fi
7046 # AC_CACHE_VAL
7047 case "x$ac_cv_prog_cc_c89" in
7048   x)
7049     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7050 $as_echo "none needed" >&6; } ;;
7051   xno)
7052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7053 $as_echo "unsupported" >&6; } ;;
7054   *)
7055     CC="$CC $ac_cv_prog_cc_c89"
7056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7057 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7058 esac
7059 if test "x$ac_cv_prog_cc_c89" != xno; then :
7060   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7061 else
7062   ac_cv_prog_cc_stdc=no
7063 fi
7064
7065 fi
7066  ;;
7067 esac
7068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7069 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7070   if ${ac_cv_prog_cc_stdc+:} false; then :
7071   $as_echo_n "(cached) " >&6
7072 fi
7073
7074   case $ac_cv_prog_cc_stdc in #(
7075   no) :
7076     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7077 $as_echo "unsupported" >&6; } ;; #(
7078   '') :
7079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7080 $as_echo "none needed" >&6; } ;; #(
7081   *) :
7082     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7083 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7084 esac
7085
7086
7087
7088
7089
7090
7091   # Check whether --enable-threads was given.
7092 if test "${enable_threads+set}" = set; then :
7093   enableval=$enable_threads; gl_use_threads=$enableval
7094 else
7095   if test -n "$gl_use_threads_default"; then
7096        gl_use_threads="$gl_use_threads_default"
7097      else
7098        case "$host_os" in
7099                                                                osf*) gl_use_threads=no ;;
7100          cygwin*)
7101                case `uname -r` in
7102                  1.[0-5].*) gl_use_threads=no ;;
7103                  *)         gl_use_threads=yes ;;
7104                esac
7105                ;;
7106          *)    gl_use_threads=yes ;;
7107        esac
7108      fi
7109
7110 fi
7111
7112   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7113     # For using <pthread.h>:
7114     case "$host_os" in
7115       osf*)
7116         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7117         # groks <pthread.h>. cc also understands the flag -pthread, but
7118         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7119         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7120         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7121         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7122         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7123         ;;
7124     esac
7125     # Some systems optimize for single-threaded programs by default, and
7126     # need special flags to disable these optimizations. For example, the
7127     # definition of 'errno' in <errno.h>.
7128     case "$host_os" in
7129       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7130       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7131     esac
7132   fi
7133
7134
7135
7136
7137   # Code from module accept:
7138   # Code from module accept-tests:
7139   # Code from module alloca:
7140   # Code from module alloca-opt:
7141   # Code from module alloca-opt-tests:
7142   # Code from module arpa_inet:
7143   # Code from module arpa_inet-tests:
7144   # Code from module autobuild:
7145
7146
7147
7148
7149   if test -z "$AB_PACKAGE"; then
7150     AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
7151   fi
7152   { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... $AB_PACKAGE" >&5
7153 $as_echo "$as_me: autobuild project... $AB_PACKAGE" >&6;}
7154
7155   if test -z "$AB_VERSION"; then
7156     AB_VERSION=${PACKAGE_VERSION:-$VERSION}
7157   fi
7158   { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... $AB_VERSION" >&5
7159 $as_echo "$as_me: autobuild revision... $AB_VERSION" >&6;}
7160
7161   hostname=`hostname`
7162   if test "$hostname"; then
7163     { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
7164 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
7165   fi
7166
7167
7168
7169   date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ`
7170   if test "$?" != 0; then
7171     date=`date`
7172   fi
7173   if test "$date"; then
7174     { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
7175 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
7176   fi
7177
7178   # Code from module binary-io:
7179   # Code from module binary-io-tests:
7180   # Code from module bind:
7181   # Code from module bind-tests:
7182   # Code from module c-ctype:
7183   # Code from module c-ctype-tests:
7184   # Code from module clock-time:
7185   # Code from module close:
7186   # Code from module close-tests:
7187   # Code from module connect:
7188   # Code from module connect-tests:
7189   # Code from module dosname:
7190   # Code from module dup2:
7191   # Code from module dup2-tests:
7192   # Code from module errno:
7193   # Code from module errno-tests:
7194   # Code from module error:
7195   # Code from module extensions:
7196
7197   # Code from module fcntl-h:
7198   # Code from module fcntl-h-tests:
7199   # Code from module fd-hook:
7200   # Code from module fdl-1.3:
7201   # Code from module fdopen:
7202   # Code from module fdopen-tests:
7203   # Code from module fgetc-tests:
7204   # Code from module float:
7205   # Code from module float-tests:
7206   # Code from module fpieee:
7207
7208   # Code from module fpucw:
7209   # Code from module fputc-tests:
7210   # Code from module fread-tests:
7211   # Code from module fseek:
7212   # Code from module fseek-tests:
7213   # Code from module fseeko:
7214
7215   # Code from module fseeko-tests:
7216   # Code from module fstat:
7217   # Code from module fstat-tests:
7218   # Code from module ftell:
7219   # Code from module ftell-tests:
7220   # Code from module ftello:
7221
7222   # Code from module ftello-tests:
7223   # Code from module ftruncate:
7224   # Code from module ftruncate-tests:
7225   # Code from module fwrite-tests:
7226   # Code from module gendocs:
7227   # Code from module getaddrinfo:
7228   # Code from module getaddrinfo-tests:
7229   # Code from module getcwd-lgpl:
7230   # Code from module getcwd-lgpl-tests:
7231   # Code from module getdelim:
7232   # Code from module getdelim-tests:
7233   # Code from module getline:
7234   # Code from module getline-tests:
7235   # Code from module getpagesize:
7236   # Code from module getpass-gnu:
7237   # Code from module gettext-h:
7238   # Code from module gettime:
7239   # Code from module gettimeofday:
7240   # Code from module gettimeofday-tests:
7241   # Code from module gnumakefile:
7242   # Code from module gnupload:
7243   # Code from module gpl-3.0:
7244   # Code from module havelib:
7245   # Code from module hostent:
7246   # Code from module ignore-value:
7247   # Code from module ignore-value-tests:
7248   # Code from module include_next:
7249   # Code from module inet_ntop:
7250   # Code from module inet_ntop-tests:
7251   # Code from module inet_pton:
7252   # Code from module inet_pton-tests:
7253   # Code from module intprops:
7254   # Code from module intprops-tests:
7255   # Code from module inttypes:
7256   # Code from module inttypes-incomplete:
7257   # Code from module inttypes-tests:
7258   # Code from module ioctl:
7259   # Code from module ioctl-tests:
7260   # Code from module largefile:
7261
7262   # Code from module lgpl-2.1:
7263   # Code from module listen:
7264   # Code from module listen-tests:
7265   # Code from module lock:
7266   # Code from module lock-tests:
7267   # Code from module lseek:
7268   # Code from module lseek-tests:
7269   # Code from module lstat:
7270   # Code from module lstat-tests:
7271   # Code from module maintainer-makefile:
7272   # Code from module malloc-posix:
7273   # Code from module manywarnings:
7274   # Code from module memchr:
7275   # Code from module memchr-tests:
7276   # Code from module minmax:
7277   # Code from module msvc-inval:
7278   # Code from module msvc-nothrow:
7279   # Code from module multiarch:
7280   # Code from module netdb:
7281   # Code from module netdb-tests:
7282   # Code from module netinet_in:
7283   # Code from module netinet_in-tests:
7284   # Code from module open:
7285   # Code from module open-tests:
7286   # Code from module pathmax:
7287   # Code from module pathmax-tests:
7288   # Code from module perror:
7289   # Code from module perror-tests:
7290   # Code from module pipe-posix:
7291   # Code from module pipe-posix-tests:
7292   # Code from module pmccabe2html:
7293   # Code from module progname:
7294   # Code from module read-file:
7295   # Code from module read-file-tests:
7296   # Code from module readline:
7297   # Code from module realloc-posix:
7298   # Code from module recv:
7299   # Code from module recv-tests:
7300   # Code from module same-inode:
7301   # Code from module select:
7302   # Code from module select-tests:
7303   # Code from module send:
7304   # Code from module send-tests:
7305   # Code from module servent:
7306   # Code from module setsockopt:
7307   # Code from module setsockopt-tests:
7308   # Code from module shutdown:
7309   # Code from module shutdown-tests:
7310   # Code from module signal-h:
7311   # Code from module signal-h-tests:
7312   # Code from module size_max:
7313   # Code from module snippet/_Noreturn:
7314   # Code from module snippet/arg-nonnull:
7315   # Code from module snippet/c++defs:
7316   # Code from module snippet/warn-on-use:
7317   # Code from module snprintf:
7318   # Code from module snprintf-tests:
7319   # Code from module socket:
7320   # Code from module socketlib:
7321   # Code from module sockets:
7322   # Code from module sockets-tests:
7323   # Code from module socklen:
7324   # Code from module ssize_t:
7325   # Code from module stat:
7326   # Code from module stat-tests:
7327   # Code from module stdalign:
7328   # Code from module stdalign-tests:
7329   # Code from module stdarg:
7330
7331
7332
7333   # Code from module stdbool:
7334   # Code from module stdbool-tests:
7335   # Code from module stddef:
7336   # Code from module stddef-tests:
7337   # Code from module stdint:
7338   # Code from module stdint-tests:
7339   # Code from module stdio:
7340   # Code from module stdio-tests:
7341   # Code from module stdlib:
7342   # Code from module stdlib-tests:
7343   # Code from module strerror:
7344   # Code from module strerror-override:
7345   # Code from module strerror-tests:
7346   # Code from module strerror_r-posix:
7347   # Code from module strerror_r-posix-tests:
7348   # Code from module string:
7349   # Code from module string-tests:
7350   # Code from module symlink:
7351   # Code from module symlink-tests:
7352   # Code from module sys_ioctl:
7353   # Code from module sys_ioctl-tests:
7354   # Code from module sys_select:
7355   # Code from module sys_select-tests:
7356   # Code from module sys_socket:
7357   # Code from module sys_socket-tests:
7358   # Code from module sys_stat:
7359   # Code from module sys_stat-tests:
7360   # Code from module sys_time:
7361   # Code from module sys_time-tests:
7362   # Code from module sys_types:
7363   # Code from module sys_types-tests:
7364   # Code from module sys_uio:
7365   # Code from module sys_uio-tests:
7366   # Code from module test-framework-sh:
7367   # Code from module test-framework-sh-tests:
7368   # Code from module thread:
7369   # Code from module thread-tests:
7370   # Code from module threadlib:
7371
7372
7373
7374   # Code from module time:
7375   # Code from module time-tests:
7376   # Code from module timespec:
7377   # Code from module unistd:
7378   # Code from module unistd-tests:
7379   # Code from module update-copyright:
7380   # Code from module update-copyright-tests:
7381   # Code from module useless-if-before-free:
7382   # Code from module valgrind-tests:
7383   # Code from module vasnprintf:
7384   # Code from module vasnprintf-tests:
7385   # Code from module vc-list-files:
7386   # Code from module vc-list-files-tests:
7387   # Code from module verify:
7388   # Code from module verify-tests:
7389   # Code from module version-etc:
7390   # Code from module version-etc-fsf:
7391   # Code from module version-etc-tests:
7392   # Code from module warnings:
7393   # Code from module wchar:
7394   # Code from module wchar-tests:
7395   # Code from module xsize:
7396   # Code from module yield:
7397
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7399 $as_echo_n "checking for inline... " >&6; }
7400 if ${ac_cv_c_inline+:} false; then :
7401   $as_echo_n "(cached) " >&6
7402 else
7403   ac_cv_c_inline=no
7404 for ac_kw in inline __inline__ __inline; do
7405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406 /* end confdefs.h.  */
7407 #ifndef __cplusplus
7408 typedef int foo_t;
7409 static $ac_kw foo_t static_foo () {return 0; }
7410 $ac_kw foo_t foo () {return 0; }
7411 #endif
7412
7413 _ACEOF
7414 if ac_fn_c_try_compile "$LINENO"; then :
7415   ac_cv_c_inline=$ac_kw
7416 fi
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418   test "$ac_cv_c_inline" != no && break
7419 done
7420
7421 fi
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7423 $as_echo "$ac_cv_c_inline" >&6; }
7424
7425 case $ac_cv_c_inline in
7426   inline | yes) ;;
7427   *)
7428     case $ac_cv_c_inline in
7429       no) ac_val=;;
7430       *) ac_val=$ac_cv_c_inline;;
7431     esac
7432     cat >>confdefs.h <<_ACEOF
7433 #ifndef __cplusplus
7434 #define inline $ac_val
7435 #endif
7436 _ACEOF
7437     ;;
7438 esac
7439
7440
7441 # For the C++ code
7442 ac_ext=cpp
7443 ac_cpp='$CXXCPP $CPPFLAGS'
7444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7447 if test -z "$CXX"; then
7448   if test -n "$CCC"; then
7449     CXX=$CCC
7450   else
7451     if test -n "$ac_tool_prefix"; then
7452   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7453   do
7454     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457 $as_echo_n "checking for $ac_word... " >&6; }
7458 if ${ac_cv_prog_CXX+:} false; then :
7459   $as_echo_n "(cached) " >&6
7460 else
7461   if test -n "$CXX"; then
7462   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7463 else
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 for as_dir in $PATH
7466 do
7467   IFS=$as_save_IFS
7468   test -z "$as_dir" && as_dir=.
7469     for ac_exec_ext in '' $ac_executable_extensions; do
7470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7471     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473     break 2
7474   fi
7475 done
7476   done
7477 IFS=$as_save_IFS
7478
7479 fi
7480 fi
7481 CXX=$ac_cv_prog_CXX
7482 if test -n "$CXX"; then
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7484 $as_echo "$CXX" >&6; }
7485 else
7486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7488 fi
7489
7490
7491     test -n "$CXX" && break
7492   done
7493 fi
7494 if test -z "$CXX"; then
7495   ac_ct_CXX=$CXX
7496   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7497 do
7498   # Extract the first word of "$ac_prog", so it can be a program name with args.
7499 set dummy $ac_prog; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7503   $as_echo_n "(cached) " >&6
7504 else
7505   if test -n "$ac_ct_CXX"; then
7506   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513     for ac_exec_ext in '' $ac_executable_extensions; do
7514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515     ac_cv_prog_ac_ct_CXX="$ac_prog"
7516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520   done
7521 IFS=$as_save_IFS
7522
7523 fi
7524 fi
7525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7526 if test -n "$ac_ct_CXX"; then
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7528 $as_echo "$ac_ct_CXX" >&6; }
7529 else
7530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7532 fi
7533
7534
7535   test -n "$ac_ct_CXX" && break
7536 done
7537
7538   if test "x$ac_ct_CXX" = x; then
7539     CXX="g++"
7540   else
7541     case $cross_compiling:$ac_tool_warned in
7542 yes:)
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545 ac_tool_warned=yes ;;
7546 esac
7547     CXX=$ac_ct_CXX
7548   fi
7549 fi
7550
7551   fi
7552 fi
7553 # Provide some information about the compiler.
7554 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7555 set X $ac_compile
7556 ac_compiler=$2
7557 for ac_option in --version -v -V -qversion; do
7558   { { ac_try="$ac_compiler $ac_option >&5"
7559 case "(($ac_try" in
7560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561   *) ac_try_echo=$ac_try;;
7562 esac
7563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7564 $as_echo "$ac_try_echo"; } >&5
7565   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7566   ac_status=$?
7567   if test -s conftest.err; then
7568     sed '10a\
7569 ... rest of stderr output deleted ...
7570          10q' conftest.err >conftest.er1
7571     cat conftest.er1 >&5
7572   fi
7573   rm -f conftest.er1 conftest.err
7574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7575   test $ac_status = 0; }
7576 done
7577
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7579 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7580 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7581   $as_echo_n "(cached) " >&6
7582 else
7583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h.  */
7585
7586 int
7587 main ()
7588 {
7589 #ifndef __GNUC__
7590        choke me
7591 #endif
7592
7593   ;
7594   return 0;
7595 }
7596 _ACEOF
7597 if ac_fn_cxx_try_compile "$LINENO"; then :
7598   ac_compiler_gnu=yes
7599 else
7600   ac_compiler_gnu=no
7601 fi
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7604
7605 fi
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7607 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7608 if test $ac_compiler_gnu = yes; then
7609   GXX=yes
7610 else
7611   GXX=
7612 fi
7613 ac_test_CXXFLAGS=${CXXFLAGS+set}
7614 ac_save_CXXFLAGS=$CXXFLAGS
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7616 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7617 if ${ac_cv_prog_cxx_g+:} false; then :
7618   $as_echo_n "(cached) " >&6
7619 else
7620   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7621    ac_cxx_werror_flag=yes
7622    ac_cv_prog_cxx_g=no
7623    CXXFLAGS="-g"
7624    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h.  */
7626
7627 int
7628 main ()
7629 {
7630
7631   ;
7632   return 0;
7633 }
7634 _ACEOF
7635 if ac_fn_cxx_try_compile "$LINENO"; then :
7636   ac_cv_prog_cxx_g=yes
7637 else
7638   CXXFLAGS=""
7639       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h.  */
7641
7642 int
7643 main ()
7644 {
7645
7646   ;
7647   return 0;
7648 }
7649 _ACEOF
7650 if ac_fn_cxx_try_compile "$LINENO"; then :
7651
7652 else
7653   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7654          CXXFLAGS="-g"
7655          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h.  */
7657
7658 int
7659 main ()
7660 {
7661
7662   ;
7663   return 0;
7664 }
7665 _ACEOF
7666 if ac_fn_cxx_try_compile "$LINENO"; then :
7667   ac_cv_prog_cxx_g=yes
7668 fi
7669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670 fi
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672 fi
7673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7675 fi
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7677 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7678 if test "$ac_test_CXXFLAGS" = set; then
7679   CXXFLAGS=$ac_save_CXXFLAGS
7680 elif test $ac_cv_prog_cxx_g = yes; then
7681   if test "$GXX" = yes; then
7682     CXXFLAGS="-g -O2"
7683   else
7684     CXXFLAGS="-g"
7685   fi
7686 else
7687   if test "$GXX" = yes; then
7688     CXXFLAGS="-O2"
7689   else
7690     CXXFLAGS=
7691   fi
7692 fi
7693 ac_ext=c
7694 ac_cpp='$CPP $CPPFLAGS'
7695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7698
7699 depcc="$CXX"  am_compiler_list=
7700
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7702 $as_echo_n "checking dependency style of $depcc... " >&6; }
7703 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7704   $as_echo_n "(cached) " >&6
7705 else
7706   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7707   # We make a subdir and do the tests there.  Otherwise we can end up
7708   # making bogus files that we don't know about and never remove.  For
7709   # instance it was reported that on HP-UX the gcc test will end up
7710   # making a dummy file named `D' -- because `-MD' means `put the output
7711   # in D'.
7712   rm -rf conftest.dir
7713   mkdir conftest.dir
7714   # Copy depcomp to subdir because otherwise we won't find it if we're
7715   # using a relative directory.
7716   cp "$am_depcomp" conftest.dir
7717   cd conftest.dir
7718   # We will build objects and dependencies in a subdirectory because
7719   # it helps to detect inapplicable dependency modes.  For instance
7720   # both Tru64's cc and ICC support -MD to output dependencies as a
7721   # side effect of compilation, but ICC will put the dependencies in
7722   # the current directory while Tru64 will put them in the object
7723   # directory.
7724   mkdir sub
7725
7726   am_cv_CXX_dependencies_compiler_type=none
7727   if test "$am_compiler_list" = ""; then
7728      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7729   fi
7730   am__universal=false
7731   case " $depcc " in #(
7732      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7733      esac
7734
7735   for depmode in $am_compiler_list; do
7736     # Setup a source with many dependencies, because some compilers
7737     # like to wrap large dependency lists on column 80 (with \), and
7738     # we should not choose a depcomp mode which is confused by this.
7739     #
7740     # We need to recreate these files for each test, as the compiler may
7741     # overwrite some of them when testing with obscure command lines.
7742     # This happens at least with the AIX C compiler.
7743     : > sub/conftest.c
7744     for i in 1 2 3 4 5 6; do
7745       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7746       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7747       # Solaris 8's {/usr,}/bin/sh.
7748       touch sub/conftst$i.h
7749     done
7750     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7751
7752     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7753     # mode.  It turns out that the SunPro C++ compiler does not properly
7754     # handle `-M -o', and we need to detect this.  Also, some Intel
7755     # versions had trouble with output in subdirs
7756     am__obj=sub/conftest.${OBJEXT-o}
7757     am__minus_obj="-o $am__obj"
7758     case $depmode in
7759     gcc)
7760       # This depmode causes a compiler race in universal mode.
7761       test "$am__universal" = false || continue
7762       ;;
7763     nosideeffect)
7764       # after this tag, mechanisms are not by side-effect, so they'll
7765       # only be used when explicitly requested
7766       if test "x$enable_dependency_tracking" = xyes; then
7767         continue
7768       else
7769         break
7770       fi
7771       ;;
7772     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7773       # This compiler won't grok `-c -o', but also, the minuso test has
7774       # not run yet.  These depmodes are late enough in the game, and
7775       # so weak that their functioning should not be impacted.
7776       am__obj=conftest.${OBJEXT-o}
7777       am__minus_obj=
7778       ;;
7779     none) break ;;
7780     esac
7781     if depmode=$depmode \
7782        source=sub/conftest.c object=$am__obj \
7783        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7784        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7785          >/dev/null 2>conftest.err &&
7786        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7787        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7788        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7789        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7790       # icc doesn't choke on unknown options, it will just issue warnings
7791       # or remarks (even with -Werror).  So we grep stderr for any message
7792       # that says an option was ignored or not supported.
7793       # When given -MP, icc 7.0 and 7.1 complain thusly:
7794       #   icc: Command line warning: ignoring option '-M'; no argument required
7795       # The diagnosis changed in icc 8.0:
7796       #   icc: Command line remark: option '-MP' not supported
7797       if (grep 'ignoring option' conftest.err ||
7798           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7799         am_cv_CXX_dependencies_compiler_type=$depmode
7800         break
7801       fi
7802     fi
7803   done
7804
7805   cd ..
7806   rm -rf conftest.dir
7807 else
7808   am_cv_CXX_dependencies_compiler_type=none
7809 fi
7810
7811 fi
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7813 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7814 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7815
7816  if
7817   test "x$enable_dependency_tracking" != xno \
7818   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7819   am__fastdepCXX_TRUE=
7820   am__fastdepCXX_FALSE='#'
7821 else
7822   am__fastdepCXX_TRUE='#'
7823   am__fastdepCXX_FALSE=
7824 fi
7825
7826
7827 # Check whether --enable-cxx was given.
7828 if test "${enable_cxx+set}" = set; then :
7829   enableval=$enable_cxx; use_cxx=$enableval
7830 else
7831   use_cxx=yes
7832 fi
7833
7834 if test "$use_cxx" != "no"; then
7835   ac_ext=cpp
7836 ac_cpp='$CXXCPP $CPPFLAGS'
7837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7840
7841
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h.  */
7844
7845 int
7846 main ()
7847 {
7848
7849   ;
7850   return 0;
7851 }
7852 _ACEOF
7853 if ac_fn_cxx_try_compile "$LINENO"; then :
7854   use_cxx=yes
7855 else
7856   use_cxx=no
7857 fi
7858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7859   ac_ext=c
7860 ac_cpp='$CPP $CPPFLAGS'
7861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7864
7865 fi
7866  if test "$use_cxx" != "no"; then
7867   ENABLE_CXX_TRUE=
7868   ENABLE_CXX_FALSE='#'
7869 else
7870   ENABLE_CXX_TRUE='#'
7871   ENABLE_CXX_FALSE=
7872 fi
7873
7874  if test -f tests/suite/mini-eagain2.c; then
7875   WANT_TEST_SUITE_TRUE=
7876   WANT_TEST_SUITE_FALSE='#'
7877 else
7878   WANT_TEST_SUITE_TRUE='#'
7879   WANT_TEST_SUITE_FALSE=
7880 fi
7881
7882
7883
7884       if test "X$prefix" = "XNONE"; then
7885     acl_final_prefix="$ac_default_prefix"
7886   else
7887     acl_final_prefix="$prefix"
7888   fi
7889   if test "X$exec_prefix" = "XNONE"; then
7890     acl_final_exec_prefix='${prefix}'
7891   else
7892     acl_final_exec_prefix="$exec_prefix"
7893   fi
7894   acl_save_prefix="$prefix"
7895   prefix="$acl_final_prefix"
7896   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7897   prefix="$acl_save_prefix"
7898
7899
7900 # Check whether --with-gnu-ld was given.
7901 if test "${with_gnu_ld+set}" = set; then :
7902   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7903 else
7904   with_gnu_ld=no
7905 fi
7906
7907 # Prepare PATH_SEPARATOR.
7908 # The user is always right.
7909 if test "${PATH_SEPARATOR+set}" != set; then
7910   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7911   # contains only /bin. Note that ksh looks also at the FPATH variable,
7912   # so we have to set that as well for the test.
7913   PATH_SEPARATOR=:
7914   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7915     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7916            || PATH_SEPARATOR=';'
7917        }
7918 fi
7919 ac_prog=ld
7920 if test "$GCC" = yes; then
7921   # Check if gcc -print-prog-name=ld gives a path.
7922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7923 $as_echo_n "checking for ld used by GCC... " >&6; }
7924   case $host in
7925   *-*-mingw*)
7926     # gcc leaves a trailing carriage return which upsets mingw
7927     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7928   *)
7929     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7930   esac
7931   case $ac_prog in
7932     # Accept absolute paths.
7933     [\\/]* | [A-Za-z]:[\\/]*)
7934       re_direlt='/[^/][^/]*/\.\./'
7935       # Canonicalize the path of ld
7936       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7937       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7938         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7939       done
7940       test -z "$LD" && LD="$ac_prog"
7941       ;;
7942   "")
7943     # If it fails, then pretend we aren't using GCC.
7944     ac_prog=ld
7945     ;;
7946   *)
7947     # If it is relative, then search for the first ld in PATH.
7948     with_gnu_ld=unknown
7949     ;;
7950   esac
7951 elif test "$with_gnu_ld" = yes; then
7952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7953 $as_echo_n "checking for GNU ld... " >&6; }
7954 else
7955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7956 $as_echo_n "checking for non-GNU ld... " >&6; }
7957 fi
7958 if ${acl_cv_path_LD+:} false; then :
7959   $as_echo_n "(cached) " >&6
7960 else
7961   if test -z "$LD"; then
7962   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7963   for ac_dir in $PATH; do
7964     test -z "$ac_dir" && ac_dir=.
7965     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7966       acl_cv_path_LD="$ac_dir/$ac_prog"
7967       # Check to see if the program is GNU ld.  I'd rather use --version,
7968       # but apparently some GNU ld's only accept -v.
7969       # Break only if it was the GNU/non-GNU ld that we prefer.
7970       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7971       *GNU* | *'with BFD'*)
7972         test "$with_gnu_ld" != no && break ;;
7973       *)
7974         test "$with_gnu_ld" != yes && break ;;
7975       esac
7976     fi
7977   done
7978   IFS="$ac_save_ifs"
7979 else
7980   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7981 fi
7982 fi
7983
7984 LD="$acl_cv_path_LD"
7985 if test -n "$LD"; then
7986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7987 $as_echo "$LD" >&6; }
7988 else
7989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7991 fi
7992 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7994 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7995 if ${acl_cv_prog_gnu_ld+:} false; then :
7996   $as_echo_n "(cached) " >&6
7997 else
7998   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7999 case `$LD -v 2>&1 </dev/null` in
8000 *GNU* | *'with BFD'*)
8001   acl_cv_prog_gnu_ld=yes ;;
8002 *)
8003   acl_cv_prog_gnu_ld=no ;;
8004 esac
8005 fi
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8007 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8008 with_gnu_ld=$acl_cv_prog_gnu_ld
8009
8010
8011
8012
8013                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8014 $as_echo_n "checking for shared library run path origin... " >&6; }
8015 if ${acl_cv_rpath+:} false; then :
8016   $as_echo_n "(cached) " >&6
8017 else
8018
8019     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8020     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8021     . ./conftest.sh
8022     rm -f ./conftest.sh
8023     acl_cv_rpath=done
8024
8025 fi
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8027 $as_echo "$acl_cv_rpath" >&6; }
8028   wl="$acl_cv_wl"
8029   acl_libext="$acl_cv_libext"
8030   acl_shlibext="$acl_cv_shlibext"
8031   acl_libname_spec="$acl_cv_libname_spec"
8032   acl_library_names_spec="$acl_cv_library_names_spec"
8033   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8034   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8035   acl_hardcode_direct="$acl_cv_hardcode_direct"
8036   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8037     # Check whether --enable-rpath was given.
8038 if test "${enable_rpath+set}" = set; then :
8039   enableval=$enable_rpath; :
8040 else
8041   enable_rpath=yes
8042 fi
8043
8044
8045
8046
8047   acl_libdirstem=lib
8048   acl_libdirstem2=
8049   case "$host_os" in
8050     solaris*)
8051                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
8052 $as_echo_n "checking for 64-bit host... " >&6; }
8053 if ${gl_cv_solaris_64bit+:} false; then :
8054   $as_echo_n "(cached) " >&6
8055 else
8056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h.  */
8058
8059 #ifdef _LP64
8060 sixtyfour bits
8061 #endif
8062
8063 _ACEOF
8064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8065   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
8066   gl_cv_solaris_64bit=yes
8067 else
8068   gl_cv_solaris_64bit=no
8069 fi
8070 rm -f conftest*
8071
8072
8073 fi
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
8075 $as_echo "$gl_cv_solaris_64bit" >&6; }
8076       if test $gl_cv_solaris_64bit = yes; then
8077         acl_libdirstem=lib/64
8078         case "$host_cpu" in
8079           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
8080           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
8081         esac
8082       fi
8083       ;;
8084     *)
8085       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
8086       if test -n "$searchpath"; then
8087         acl_save_IFS="${IFS=    }"; IFS=":"
8088         for searchdir in $searchpath; do
8089           if test -d "$searchdir"; then
8090             case "$searchdir" in
8091               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
8092               */../ | */.. )
8093                 # Better ignore directories of this form. They are misleading.
8094                 ;;
8095               *) searchdir=`cd "$searchdir" && pwd`
8096                  case "$searchdir" in
8097                    */lib64 ) acl_libdirstem=lib64 ;;
8098                  esac ;;
8099             esac
8100           fi
8101         done
8102         IFS="$acl_save_IFS"
8103       fi
8104       ;;
8105   esac
8106   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
8107
8108
8109   # Library code modified:                              REVISION++
8110   # Interfaces changed/added/removed:   CURRENT++       REVISION=0
8111   # Interfaces added:                             AGE++
8112   # Interfaces removed:                           AGE=0
8113   LT_CURRENT=48
8114
8115   LT_REVISION=4
8116
8117   LT_AGE=22
8118
8119
8120   LT_SSL_CURRENT=27
8121
8122   LT_SSL_REVISION=0
8123
8124   LT_SSL_AGE=0
8125
8126
8127   CXX_LT_CURRENT=27
8128
8129   CXX_LT_REVISION=0
8130
8131   CXX_LT_AGE=0
8132
8133
8134   # Used when creating the Windows libgnutls-XX.def files.
8135   DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
8136
8137
8138   cryptolib="nettle"
8139
8140
8141 # Check whether --with-libgcrypt was given.
8142 if test "${with_libgcrypt+set}" = set; then :
8143   withval=$with_libgcrypt; libgcrypt=$withval
8144 else
8145   libgcrypt=no
8146 fi
8147
8148     if test "$libgcrypt" = "yes"; then
8149         cryptolib=libgcrypt
8150
8151 $as_echo "#define HAVE_GCRYPT 1" >>confdefs.h
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166     use_additional=yes
8167
8168   acl_save_prefix="$prefix"
8169   prefix="$acl_final_prefix"
8170   acl_save_exec_prefix="$exec_prefix"
8171   exec_prefix="$acl_final_exec_prefix"
8172
8173     eval additional_includedir=\"$includedir\"
8174     eval additional_libdir=\"$libdir\"
8175
8176   exec_prefix="$acl_save_exec_prefix"
8177   prefix="$acl_save_prefix"
8178
8179
8180 # Check whether --with-libgcrypt-prefix was given.
8181 if test "${with_libgcrypt_prefix+set}" = set; then :
8182   withval=$with_libgcrypt_prefix;
8183     if test "X$withval" = "Xno"; then
8184       use_additional=no
8185     else
8186       if test "X$withval" = "X"; then
8187
8188   acl_save_prefix="$prefix"
8189   prefix="$acl_final_prefix"
8190   acl_save_exec_prefix="$exec_prefix"
8191   exec_prefix="$acl_final_exec_prefix"
8192
8193           eval additional_includedir=\"$includedir\"
8194           eval additional_libdir=\"$libdir\"
8195
8196   exec_prefix="$acl_save_exec_prefix"
8197   prefix="$acl_save_prefix"
8198
8199       else
8200         additional_includedir="$withval/include"
8201         additional_libdir="$withval/$acl_libdirstem"
8202         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8203            && ! test -d "$withval/$acl_libdirstem"; then
8204           additional_libdir="$withval/$acl_libdirstem2"
8205         fi
8206       fi
8207     fi
8208
8209 fi
8210
8211       LIBGCRYPT=
8212   LTLIBGCRYPT=
8213   INCGCRYPT=
8214   LIBGCRYPT_PREFIX=
8215       HAVE_LIBGCRYPT=
8216   rpathdirs=
8217   ltrpathdirs=
8218   names_already_handled=
8219   names_next_round='gcrypt gpg-error'
8220   while test -n "$names_next_round"; do
8221     names_this_round="$names_next_round"
8222     names_next_round=
8223     for name in $names_this_round; do
8224       already_handled=
8225       for n in $names_already_handled; do
8226         if test "$n" = "$name"; then
8227           already_handled=yes
8228           break
8229         fi
8230       done
8231       if test -z "$already_handled"; then
8232         names_already_handled="$names_already_handled $name"
8233                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8234         eval value=\"\$HAVE_LIB$uppername\"
8235         if test -n "$value"; then
8236           if test "$value" = yes; then
8237             eval value=\"\$LIB$uppername\"
8238             test -z "$value" || LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$value"
8239             eval value=\"\$LTLIB$uppername\"
8240             test -z "$value" || LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$value"
8241           else
8242                                     :
8243           fi
8244         else
8245                               found_dir=
8246           found_la=
8247           found_so=
8248           found_a=
8249           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8250           if test -n "$acl_shlibext"; then
8251             shrext=".$acl_shlibext"             # typically: shrext=.so
8252           else
8253             shrext=
8254           fi
8255           if test $use_additional = yes; then
8256             dir="$additional_libdir"
8257                                     if test -n "$acl_shlibext"; then
8258               if test -f "$dir/$libname$shrext"; then
8259                 found_dir="$dir"
8260                 found_so="$dir/$libname$shrext"
8261               else
8262                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8263                   ver=`(cd "$dir" && \
8264                         for f in "$libname$shrext".*; do echo "$f"; done \
8265                         | sed -e "s,^$libname$shrext\\\\.,," \
8266                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8267                         | sed 1q ) 2>/dev/null`
8268                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8269                     found_dir="$dir"
8270                     found_so="$dir/$libname$shrext.$ver"
8271                   fi
8272                 else
8273                   eval library_names=\"$acl_library_names_spec\"
8274                   for f in $library_names; do
8275                     if test -f "$dir/$f"; then
8276                       found_dir="$dir"
8277                       found_so="$dir/$f"
8278                       break
8279                     fi
8280                   done
8281                 fi
8282               fi
8283             fi
8284                         if test "X$found_dir" = "X"; then
8285               if test -f "$dir/$libname.$acl_libext"; then
8286                 found_dir="$dir"
8287                 found_a="$dir/$libname.$acl_libext"
8288               fi
8289             fi
8290             if test "X$found_dir" != "X"; then
8291               if test -f "$dir/$libname.la"; then
8292                 found_la="$dir/$libname.la"
8293               fi
8294             fi
8295           fi
8296           if test "X$found_dir" = "X"; then
8297             for x in $LDFLAGS $LTLIBGCRYPT; do
8298
8299   acl_save_prefix="$prefix"
8300   prefix="$acl_final_prefix"
8301   acl_save_exec_prefix="$exec_prefix"
8302   exec_prefix="$acl_final_exec_prefix"
8303   eval x=\"$x\"
8304   exec_prefix="$acl_save_exec_prefix"
8305   prefix="$acl_save_prefix"
8306
8307               case "$x" in
8308                 -L*)
8309                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8310                                     if test -n "$acl_shlibext"; then
8311                     if test -f "$dir/$libname$shrext"; then
8312                       found_dir="$dir"
8313                       found_so="$dir/$libname$shrext"
8314                     else
8315                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8316                         ver=`(cd "$dir" && \
8317                               for f in "$libname$shrext".*; do echo "$f"; done \
8318                               | sed -e "s,^$libname$shrext\\\\.,," \
8319                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8320                               | sed 1q ) 2>/dev/null`
8321                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8322                           found_dir="$dir"
8323                           found_so="$dir/$libname$shrext.$ver"
8324                         fi
8325                       else
8326                         eval library_names=\"$acl_library_names_spec\"
8327                         for f in $library_names; do
8328                           if test -f "$dir/$f"; then
8329                             found_dir="$dir"
8330                             found_so="$dir/$f"
8331                             break
8332                           fi
8333                         done
8334                       fi
8335                     fi
8336                   fi
8337                                     if test "X$found_dir" = "X"; then
8338                     if test -f "$dir/$libname.$acl_libext"; then
8339                       found_dir="$dir"
8340                       found_a="$dir/$libname.$acl_libext"
8341                     fi
8342                   fi
8343                   if test "X$found_dir" != "X"; then
8344                     if test -f "$dir/$libname.la"; then
8345                       found_la="$dir/$libname.la"
8346                     fi
8347                   fi
8348                   ;;
8349               esac
8350               if test "X$found_dir" != "X"; then
8351                 break
8352               fi
8353             done
8354           fi
8355           if test "X$found_dir" != "X"; then
8356                         LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$found_dir -l$name"
8357             if test "X$found_so" != "X"; then
8358                                                         if test "$enable_rpath" = no \
8359                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8360                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8361                                 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
8362               else
8363                                                                                 haveit=
8364                 for x in $ltrpathdirs; do
8365                   if test "X$x" = "X$found_dir"; then
8366                     haveit=yes
8367                     break
8368                   fi
8369                 done
8370                 if test -z "$haveit"; then
8371                   ltrpathdirs="$ltrpathdirs $found_dir"
8372                 fi
8373                                 if test "$acl_hardcode_direct" = yes; then
8374                                                       LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
8375                 else
8376                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8377                                                             LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
8378                                                             haveit=
8379                     for x in $rpathdirs; do
8380                       if test "X$x" = "X$found_dir"; then
8381                         haveit=yes
8382                         break
8383                       fi
8384                     done
8385                     if test -z "$haveit"; then
8386                       rpathdirs="$rpathdirs $found_dir"
8387                     fi
8388                   else
8389                                                                                 haveit=
8390                     for x in $LDFLAGS $LIBGCRYPT; do
8391
8392   acl_save_prefix="$prefix"
8393   prefix="$acl_final_prefix"
8394   acl_save_exec_prefix="$exec_prefix"
8395   exec_prefix="$acl_final_exec_prefix"
8396   eval x=\"$x\"
8397   exec_prefix="$acl_save_exec_prefix"
8398   prefix="$acl_save_prefix"
8399
8400                       if test "X$x" = "X-L$found_dir"; then
8401                         haveit=yes
8402                         break
8403                       fi
8404                     done
8405                     if test -z "$haveit"; then
8406                       LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir"
8407                     fi
8408                     if test "$acl_hardcode_minus_L" != no; then
8409                                                                                         LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
8410                     else
8411                                                                                                                                                                                 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
8412                     fi
8413                   fi
8414                 fi
8415               fi
8416             else
8417               if test "X$found_a" != "X"; then
8418                                 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_a"
8419               else
8420                                                 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir -l$name"
8421               fi
8422             fi
8423                         additional_includedir=
8424             case "$found_dir" in
8425               */$acl_libdirstem | */$acl_libdirstem/)
8426                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8427                 if test "$name" = 'gcrypt'; then
8428                   LIBGCRYPT_PREFIX="$basedir"
8429                 fi
8430                 additional_includedir="$basedir/include"
8431                 ;;
8432               */$acl_libdirstem2 | */$acl_libdirstem2/)
8433                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8434                 if test "$name" = 'gcrypt'; then
8435                   LIBGCRYPT_PREFIX="$basedir"
8436                 fi
8437                 additional_includedir="$basedir/include"
8438                 ;;
8439             esac
8440             if test "X$additional_includedir" != "X"; then
8441                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8442                 haveit=
8443                 if test "X$additional_includedir" = "X/usr/local/include"; then
8444                   if test -n "$GCC"; then
8445                     case $host_os in
8446                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8447                     esac
8448                   fi
8449                 fi
8450                 if test -z "$haveit"; then
8451                   for x in $CPPFLAGS $INCGCRYPT; do
8452
8453   acl_save_prefix="$prefix"
8454   prefix="$acl_final_prefix"
8455   acl_save_exec_prefix="$exec_prefix"
8456   exec_prefix="$acl_final_exec_prefix"
8457   eval x=\"$x\"
8458   exec_prefix="$acl_save_exec_prefix"
8459   prefix="$acl_save_prefix"
8460
8461                     if test "X$x" = "X-I$additional_includedir"; then
8462                       haveit=yes
8463                       break
8464                     fi
8465                   done
8466                   if test -z "$haveit"; then
8467                     if test -d "$additional_includedir"; then
8468                                             INCGCRYPT="${INCGCRYPT}${INCGCRYPT:+ }-I$additional_includedir"
8469                     fi
8470                   fi
8471                 fi
8472               fi
8473             fi
8474                         if test -n "$found_la"; then
8475                                                         save_libdir="$libdir"
8476               case "$found_la" in
8477                 */* | *\\*) . "$found_la" ;;
8478                 *) . "./$found_la" ;;
8479               esac
8480               libdir="$save_libdir"
8481                             for dep in $dependency_libs; do
8482                 case "$dep" in
8483                   -L*)
8484                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8485                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8486                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8487                       haveit=
8488                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8489                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8490                         if test -n "$GCC"; then
8491                           case $host_os in
8492                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8493                           esac
8494                         fi
8495                       fi
8496                       if test -z "$haveit"; then
8497                         haveit=
8498                         for x in $LDFLAGS $LIBGCRYPT; do
8499
8500   acl_save_prefix="$prefix"
8501   prefix="$acl_final_prefix"
8502   acl_save_exec_prefix="$exec_prefix"
8503   exec_prefix="$acl_final_exec_prefix"
8504   eval x=\"$x\"
8505   exec_prefix="$acl_save_exec_prefix"
8506   prefix="$acl_save_prefix"
8507
8508                           if test "X$x" = "X-L$additional_libdir"; then
8509                             haveit=yes
8510                             break
8511                           fi
8512                         done
8513                         if test -z "$haveit"; then
8514                           if test -d "$additional_libdir"; then
8515                                                         LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$additional_libdir"
8516                           fi
8517                         fi
8518                         haveit=
8519                         for x in $LDFLAGS $LTLIBGCRYPT; do
8520
8521   acl_save_prefix="$prefix"
8522   prefix="$acl_final_prefix"
8523   acl_save_exec_prefix="$exec_prefix"
8524   exec_prefix="$acl_final_exec_prefix"
8525   eval x=\"$x\"
8526   exec_prefix="$acl_save_exec_prefix"
8527   prefix="$acl_save_prefix"
8528
8529                           if test "X$x" = "X-L$additional_libdir"; then
8530                             haveit=yes
8531                             break
8532                           fi
8533                         done
8534                         if test -z "$haveit"; then
8535                           if test -d "$additional_libdir"; then
8536                                                         LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$additional_libdir"
8537                           fi
8538                         fi
8539                       fi
8540                     fi
8541                     ;;
8542                   -R*)
8543                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8544                     if test "$enable_rpath" != no; then
8545                                                                   haveit=
8546                       for x in $rpathdirs; do
8547                         if test "X$x" = "X$dir"; then
8548                           haveit=yes
8549                           break
8550                         fi
8551                       done
8552                       if test -z "$haveit"; then
8553                         rpathdirs="$rpathdirs $dir"
8554                       fi
8555                                                                   haveit=
8556                       for x in $ltrpathdirs; do
8557                         if test "X$x" = "X$dir"; then
8558                           haveit=yes
8559                           break
8560                         fi
8561                       done
8562                       if test -z "$haveit"; then
8563                         ltrpathdirs="$ltrpathdirs $dir"
8564                       fi
8565                     fi
8566                     ;;
8567                   -l*)
8568                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8569                     ;;
8570                   *.la)
8571                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8572                     ;;
8573                   *)
8574                                         LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$dep"
8575                     LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$dep"
8576                     ;;
8577                 esac
8578               done
8579             fi
8580           else
8581                                                             LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
8582             LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-l$name"
8583           fi
8584         fi
8585       fi
8586     done
8587   done
8588   if test "X$rpathdirs" != "X"; then
8589     if test -n "$acl_hardcode_libdir_separator"; then
8590                         alldirs=
8591       for found_dir in $rpathdirs; do
8592         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8593       done
8594             acl_save_libdir="$libdir"
8595       libdir="$alldirs"
8596       eval flag=\"$acl_hardcode_libdir_flag_spec\"
8597       libdir="$acl_save_libdir"
8598       LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
8599     else
8600             for found_dir in $rpathdirs; do
8601         acl_save_libdir="$libdir"
8602         libdir="$found_dir"
8603         eval flag=\"$acl_hardcode_libdir_flag_spec\"
8604         libdir="$acl_save_libdir"
8605         LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
8606       done
8607     fi
8608   fi
8609   if test "X$ltrpathdirs" != "X"; then
8610             for found_dir in $ltrpathdirs; do
8611       LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-R$found_dir"
8612     done
8613   fi
8614
8615
8616
8617
8618
8619
8620
8621         ac_save_CPPFLAGS="$CPPFLAGS"
8622
8623   for element in $INCGCRYPT; do
8624     haveit=
8625     for x in $CPPFLAGS; do
8626
8627   acl_save_prefix="$prefix"
8628   prefix="$acl_final_prefix"
8629   acl_save_exec_prefix="$exec_prefix"
8630   exec_prefix="$acl_final_exec_prefix"
8631   eval x=\"$x\"
8632   exec_prefix="$acl_save_exec_prefix"
8633   prefix="$acl_save_prefix"
8634
8635       if test "X$x" = "X$element"; then
8636         haveit=yes
8637         break
8638       fi
8639     done
8640     if test -z "$haveit"; then
8641       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8642     fi
8643   done
8644
8645
8646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
8647 $as_echo_n "checking for libgcrypt... " >&6; }
8648 if ${ac_cv_libgcrypt+:} false; then :
8649   $as_echo_n "(cached) " >&6
8650 else
8651
8652     ac_save_LIBS="$LIBS"
8653                                 case " $LIBGCRYPT" in
8654       *" -l"*) LIBS="$LIBS $LIBGCRYPT" ;;
8655       *)       LIBS="$LIBGCRYPT $LIBS" ;;
8656     esac
8657     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h.  */
8659 #include <gcrypt.h>
8660 int
8661 main ()
8662 {
8663 enum gcry_cipher_algos i = GCRY_CIPHER_CAMELLIA128
8664   ;
8665   return 0;
8666 }
8667 _ACEOF
8668 if ac_fn_c_try_link "$LINENO"; then :
8669   ac_cv_libgcrypt=yes
8670 else
8671   ac_cv_libgcrypt='no'
8672 fi
8673 rm -f core conftest.err conftest.$ac_objext \
8674     conftest$ac_exeext conftest.$ac_ext
8675     LIBS="$ac_save_LIBS"
8676
8677 fi
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgcrypt" >&5
8679 $as_echo "$ac_cv_libgcrypt" >&6; }
8680   if test "$ac_cv_libgcrypt" = yes; then
8681     HAVE_LIBGCRYPT=yes
8682
8683 $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
8684
8685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgcrypt" >&5
8686 $as_echo_n "checking how to link with libgcrypt... " >&6; }
8687     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT" >&5
8688 $as_echo "$LIBGCRYPT" >&6; }
8689   else
8690     HAVE_LIBGCRYPT=no
8691             CPPFLAGS="$ac_save_CPPFLAGS"
8692     LIBGCRYPT=
8693     LTLIBGCRYPT=
8694     LIBGCRYPT_PREFIX=
8695   fi
8696
8697
8698
8699
8700
8701
8702
8703       if test "$ac_cv_libgcrypt" != yes; then
8704         as_fn_error $? "
8705 ***
8706 *** Libgcrypt v1.4.0 or later was not found. You may want to get it from
8707 *** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
8708 ***
8709     " "$LINENO" 5
8710       fi
8711     fi
8712
8713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use nettle" >&5
8714 $as_echo_n "checking whether to use nettle... " >&6; }
8715 if test "$cryptolib" = "nettle";then
8716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8717 $as_echo "yes" >&6; }
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731     use_additional=yes
8732
8733   acl_save_prefix="$prefix"
8734   prefix="$acl_final_prefix"
8735   acl_save_exec_prefix="$exec_prefix"
8736   exec_prefix="$acl_final_exec_prefix"
8737
8738     eval additional_includedir=\"$includedir\"
8739     eval additional_libdir=\"$libdir\"
8740
8741   exec_prefix="$acl_save_exec_prefix"
8742   prefix="$acl_save_prefix"
8743
8744
8745 # Check whether --with-libnettle-prefix was given.
8746 if test "${with_libnettle_prefix+set}" = set; then :
8747   withval=$with_libnettle_prefix;
8748     if test "X$withval" = "Xno"; then
8749       use_additional=no
8750     else
8751       if test "X$withval" = "X"; then
8752
8753   acl_save_prefix="$prefix"
8754   prefix="$acl_final_prefix"
8755   acl_save_exec_prefix="$exec_prefix"
8756   exec_prefix="$acl_final_exec_prefix"
8757
8758           eval additional_includedir=\"$includedir\"
8759           eval additional_libdir=\"$libdir\"
8760
8761   exec_prefix="$acl_save_exec_prefix"
8762   prefix="$acl_save_prefix"
8763
8764       else
8765         additional_includedir="$withval/include"
8766         additional_libdir="$withval/$acl_libdirstem"
8767         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8768            && ! test -d "$withval/$acl_libdirstem"; then
8769           additional_libdir="$withval/$acl_libdirstem2"
8770         fi
8771       fi
8772     fi
8773
8774 fi
8775
8776       LIBNETTLE=
8777   LTLIBNETTLE=
8778   INCNETTLE=
8779   LIBNETTLE_PREFIX=
8780       HAVE_LIBNETTLE=
8781   rpathdirs=
8782   ltrpathdirs=
8783   names_already_handled=
8784   names_next_round='nettle '
8785   while test -n "$names_next_round"; do
8786     names_this_round="$names_next_round"
8787     names_next_round=
8788     for name in $names_this_round; do
8789       already_handled=
8790       for n in $names_already_handled; do
8791         if test "$n" = "$name"; then
8792           already_handled=yes
8793           break
8794         fi
8795       done
8796       if test -z "$already_handled"; then
8797         names_already_handled="$names_already_handled $name"
8798                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8799         eval value=\"\$HAVE_LIB$uppername\"
8800         if test -n "$value"; then
8801           if test "$value" = yes; then
8802             eval value=\"\$LIB$uppername\"
8803             test -z "$value" || LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$value"
8804             eval value=\"\$LTLIB$uppername\"
8805             test -z "$value" || LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$value"
8806           else
8807                                     :
8808           fi
8809         else
8810                               found_dir=
8811           found_la=
8812           found_so=
8813           found_a=
8814           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8815           if test -n "$acl_shlibext"; then
8816             shrext=".$acl_shlibext"             # typically: shrext=.so
8817           else
8818             shrext=
8819           fi
8820           if test $use_additional = yes; then
8821             dir="$additional_libdir"
8822                                     if test -n "$acl_shlibext"; then
8823               if test -f "$dir/$libname$shrext"; then
8824                 found_dir="$dir"
8825                 found_so="$dir/$libname$shrext"
8826               else
8827                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8828                   ver=`(cd "$dir" && \
8829                         for f in "$libname$shrext".*; do echo "$f"; done \
8830                         | sed -e "s,^$libname$shrext\\\\.,," \
8831                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8832                         | sed 1q ) 2>/dev/null`
8833                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8834                     found_dir="$dir"
8835                     found_so="$dir/$libname$shrext.$ver"
8836                   fi
8837                 else
8838                   eval library_names=\"$acl_library_names_spec\"
8839                   for f in $library_names; do
8840                     if test -f "$dir/$f"; then
8841                       found_dir="$dir"
8842                       found_so="$dir/$f"
8843                       break
8844                     fi
8845                   done
8846                 fi
8847               fi
8848             fi
8849                         if test "X$found_dir" = "X"; then
8850               if test -f "$dir/$libname.$acl_libext"; then
8851                 found_dir="$dir"
8852                 found_a="$dir/$libname.$acl_libext"
8853               fi
8854             fi
8855             if test "X$found_dir" != "X"; then
8856               if test -f "$dir/$libname.la"; then
8857                 found_la="$dir/$libname.la"
8858               fi
8859             fi
8860           fi
8861           if test "X$found_dir" = "X"; then
8862             for x in $LDFLAGS $LTLIBNETTLE; do
8863
8864   acl_save_prefix="$prefix"
8865   prefix="$acl_final_prefix"
8866   acl_save_exec_prefix="$exec_prefix"
8867   exec_prefix="$acl_final_exec_prefix"
8868   eval x=\"$x\"
8869   exec_prefix="$acl_save_exec_prefix"
8870   prefix="$acl_save_prefix"
8871
8872               case "$x" in
8873                 -L*)
8874                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8875                                     if test -n "$acl_shlibext"; then
8876                     if test -f "$dir/$libname$shrext"; then
8877                       found_dir="$dir"
8878                       found_so="$dir/$libname$shrext"
8879                     else
8880                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8881                         ver=`(cd "$dir" && \
8882                               for f in "$libname$shrext".*; do echo "$f"; done \
8883                               | sed -e "s,^$libname$shrext\\\\.,," \
8884                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8885                               | sed 1q ) 2>/dev/null`
8886                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8887                           found_dir="$dir"
8888                           found_so="$dir/$libname$shrext.$ver"
8889                         fi
8890                       else
8891                         eval library_names=\"$acl_library_names_spec\"
8892                         for f in $library_names; do
8893                           if test -f "$dir/$f"; then
8894                             found_dir="$dir"
8895                             found_so="$dir/$f"
8896                             break
8897                           fi
8898                         done
8899                       fi
8900                     fi
8901                   fi
8902                                     if test "X$found_dir" = "X"; then
8903                     if test -f "$dir/$libname.$acl_libext"; then
8904                       found_dir="$dir"
8905                       found_a="$dir/$libname.$acl_libext"
8906                     fi
8907                   fi
8908                   if test "X$found_dir" != "X"; then
8909                     if test -f "$dir/$libname.la"; then
8910                       found_la="$dir/$libname.la"
8911                     fi
8912                   fi
8913                   ;;
8914               esac
8915               if test "X$found_dir" != "X"; then
8916                 break
8917               fi
8918             done
8919           fi
8920           if test "X$found_dir" != "X"; then
8921                         LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$found_dir -l$name"
8922             if test "X$found_so" != "X"; then
8923                                                         if test "$enable_rpath" = no \
8924                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8925                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8926                                 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
8927               else
8928                                                                                 haveit=
8929                 for x in $ltrpathdirs; do
8930                   if test "X$x" = "X$found_dir"; then
8931                     haveit=yes
8932                     break
8933                   fi
8934                 done
8935                 if test -z "$haveit"; then
8936                   ltrpathdirs="$ltrpathdirs $found_dir"
8937                 fi
8938                                 if test "$acl_hardcode_direct" = yes; then
8939                                                       LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
8940                 else
8941                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8942                                                             LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
8943                                                             haveit=
8944                     for x in $rpathdirs; do
8945                       if test "X$x" = "X$found_dir"; then
8946                         haveit=yes
8947                         break
8948                       fi
8949                     done
8950                     if test -z "$haveit"; then
8951                       rpathdirs="$rpathdirs $found_dir"
8952                     fi
8953                   else
8954                                                                                 haveit=
8955                     for x in $LDFLAGS $LIBNETTLE; do
8956
8957   acl_save_prefix="$prefix"
8958   prefix="$acl_final_prefix"
8959   acl_save_exec_prefix="$exec_prefix"
8960   exec_prefix="$acl_final_exec_prefix"
8961   eval x=\"$x\"
8962   exec_prefix="$acl_save_exec_prefix"
8963   prefix="$acl_save_prefix"
8964
8965                       if test "X$x" = "X-L$found_dir"; then
8966                         haveit=yes
8967                         break
8968                       fi
8969                     done
8970                     if test -z "$haveit"; then
8971                       LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir"
8972                     fi
8973                     if test "$acl_hardcode_minus_L" != no; then
8974                                                                                         LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
8975                     else
8976                                                                                                                                                                                 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
8977                     fi
8978                   fi
8979                 fi
8980               fi
8981             else
8982               if test "X$found_a" != "X"; then
8983                                 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_a"
8984               else
8985                                                 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir -l$name"
8986               fi
8987             fi
8988                         additional_includedir=
8989             case "$found_dir" in
8990               */$acl_libdirstem | */$acl_libdirstem/)
8991                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8992                 if test "$name" = 'nettle'; then
8993                   LIBNETTLE_PREFIX="$basedir"
8994                 fi
8995                 additional_includedir="$basedir/include"
8996                 ;;
8997               */$acl_libdirstem2 | */$acl_libdirstem2/)
8998                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8999                 if test "$name" = 'nettle'; then
9000                   LIBNETTLE_PREFIX="$basedir"
9001                 fi
9002                 additional_includedir="$basedir/include"
9003                 ;;
9004             esac
9005             if test "X$additional_includedir" != "X"; then
9006                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9007                 haveit=
9008                 if test "X$additional_includedir" = "X/usr/local/include"; then
9009                   if test -n "$GCC"; then
9010                     case $host_os in
9011                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9012                     esac
9013                   fi
9014                 fi
9015                 if test -z "$haveit"; then
9016                   for x in $CPPFLAGS $INCNETTLE; do
9017
9018   acl_save_prefix="$prefix"
9019   prefix="$acl_final_prefix"
9020   acl_save_exec_prefix="$exec_prefix"
9021   exec_prefix="$acl_final_exec_prefix"
9022   eval x=\"$x\"
9023   exec_prefix="$acl_save_exec_prefix"
9024   prefix="$acl_save_prefix"
9025
9026                     if test "X$x" = "X-I$additional_includedir"; then
9027                       haveit=yes
9028                       break
9029                     fi
9030                   done
9031                   if test -z "$haveit"; then
9032                     if test -d "$additional_includedir"; then
9033                                             INCNETTLE="${INCNETTLE}${INCNETTLE:+ }-I$additional_includedir"
9034                     fi
9035                   fi
9036                 fi
9037               fi
9038             fi
9039                         if test -n "$found_la"; then
9040                                                         save_libdir="$libdir"
9041               case "$found_la" in
9042                 */* | *\\*) . "$found_la" ;;
9043                 *) . "./$found_la" ;;
9044               esac
9045               libdir="$save_libdir"
9046                             for dep in $dependency_libs; do
9047                 case "$dep" in
9048                   -L*)
9049                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9050                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9051                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9052                       haveit=
9053                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9054                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9055                         if test -n "$GCC"; then
9056                           case $host_os in
9057                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9058                           esac
9059                         fi
9060                       fi
9061                       if test -z "$haveit"; then
9062                         haveit=
9063                         for x in $LDFLAGS $LIBNETTLE; do
9064
9065   acl_save_prefix="$prefix"
9066   prefix="$acl_final_prefix"
9067   acl_save_exec_prefix="$exec_prefix"
9068   exec_prefix="$acl_final_exec_prefix"
9069   eval x=\"$x\"
9070   exec_prefix="$acl_save_exec_prefix"
9071   prefix="$acl_save_prefix"
9072
9073                           if test "X$x" = "X-L$additional_libdir"; then
9074                             haveit=yes
9075                             break
9076                           fi
9077                         done
9078                         if test -z "$haveit"; then
9079                           if test -d "$additional_libdir"; then
9080                                                         LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$additional_libdir"
9081                           fi
9082                         fi
9083                         haveit=
9084                         for x in $LDFLAGS $LTLIBNETTLE; do
9085
9086   acl_save_prefix="$prefix"
9087   prefix="$acl_final_prefix"
9088   acl_save_exec_prefix="$exec_prefix"
9089   exec_prefix="$acl_final_exec_prefix"
9090   eval x=\"$x\"
9091   exec_prefix="$acl_save_exec_prefix"
9092   prefix="$acl_save_prefix"
9093
9094                           if test "X$x" = "X-L$additional_libdir"; then
9095                             haveit=yes
9096                             break
9097                           fi
9098                         done
9099                         if test -z "$haveit"; then
9100                           if test -d "$additional_libdir"; then
9101                                                         LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$additional_libdir"
9102                           fi
9103                         fi
9104                       fi
9105                     fi
9106                     ;;
9107                   -R*)
9108                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9109                     if test "$enable_rpath" != no; then
9110                                                                   haveit=
9111                       for x in $rpathdirs; do
9112                         if test "X$x" = "X$dir"; then
9113                           haveit=yes
9114                           break
9115                         fi
9116                       done
9117                       if test -z "$haveit"; then
9118                         rpathdirs="$rpathdirs $dir"
9119                       fi
9120                                                                   haveit=
9121                       for x in $ltrpathdirs; do
9122                         if test "X$x" = "X$dir"; then
9123                           haveit=yes
9124                           break
9125                         fi
9126                       done
9127                       if test -z "$haveit"; then
9128                         ltrpathdirs="$ltrpathdirs $dir"
9129                       fi
9130                     fi
9131                     ;;
9132                   -l*)
9133                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9134                     ;;
9135                   *.la)
9136                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9137                     ;;
9138                   *)
9139                                         LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$dep"
9140                     LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$dep"
9141                     ;;
9142                 esac
9143               done
9144             fi
9145           else
9146                                                             LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
9147             LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-l$name"
9148           fi
9149         fi
9150       fi
9151     done
9152   done
9153   if test "X$rpathdirs" != "X"; then
9154     if test -n "$acl_hardcode_libdir_separator"; then
9155                         alldirs=
9156       for found_dir in $rpathdirs; do
9157         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9158       done
9159             acl_save_libdir="$libdir"
9160       libdir="$alldirs"
9161       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9162       libdir="$acl_save_libdir"
9163       LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
9164     else
9165             for found_dir in $rpathdirs; do
9166         acl_save_libdir="$libdir"
9167         libdir="$found_dir"
9168         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9169         libdir="$acl_save_libdir"
9170         LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
9171       done
9172     fi
9173   fi
9174   if test "X$ltrpathdirs" != "X"; then
9175             for found_dir in $ltrpathdirs; do
9176       LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-R$found_dir"
9177     done
9178   fi
9179
9180
9181
9182
9183
9184
9185
9186         ac_save_CPPFLAGS="$CPPFLAGS"
9187
9188   for element in $INCNETTLE; do
9189     haveit=
9190     for x in $CPPFLAGS; do
9191
9192   acl_save_prefix="$prefix"
9193   prefix="$acl_final_prefix"
9194   acl_save_exec_prefix="$exec_prefix"
9195   exec_prefix="$acl_final_exec_prefix"
9196   eval x=\"$x\"
9197   exec_prefix="$acl_save_exec_prefix"
9198   prefix="$acl_save_prefix"
9199
9200       if test "X$x" = "X$element"; then
9201         haveit=yes
9202         break
9203       fi
9204     done
9205     if test -z "$haveit"; then
9206       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9207     fi
9208   done
9209
9210
9211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnettle" >&5
9212 $as_echo_n "checking for libnettle... " >&6; }
9213 if ${ac_cv_libnettle+:} false; then :
9214   $as_echo_n "(cached) " >&6
9215 else
9216
9217     ac_save_LIBS="$LIBS"
9218                                 case " $LIBNETTLE" in
9219       *" -l"*) LIBS="$LIBS $LIBNETTLE" ;;
9220       *)       LIBS="$LIBNETTLE $LIBS" ;;
9221     esac
9222     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h.  */
9224 #include <nettle/aes.h>
9225 int
9226 main ()
9227 {
9228 nettle_aes_invert_key (0, 0)
9229   ;
9230   return 0;
9231 }
9232 _ACEOF
9233 if ac_fn_c_try_link "$LINENO"; then :
9234   ac_cv_libnettle=yes
9235 else
9236   ac_cv_libnettle='no'
9237 fi
9238 rm -f core conftest.err conftest.$ac_objext \
9239     conftest$ac_exeext conftest.$ac_ext
9240     LIBS="$ac_save_LIBS"
9241
9242 fi
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libnettle" >&5
9244 $as_echo "$ac_cv_libnettle" >&6; }
9245   if test "$ac_cv_libnettle" = yes; then
9246     HAVE_LIBNETTLE=yes
9247
9248 $as_echo "#define HAVE_LIBNETTLE 1" >>confdefs.h
9249
9250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libnettle" >&5
9251 $as_echo_n "checking how to link with libnettle... " >&6; }
9252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNETTLE" >&5
9253 $as_echo "$LIBNETTLE" >&6; }
9254   else
9255     HAVE_LIBNETTLE=no
9256             CPPFLAGS="$ac_save_CPPFLAGS"
9257     LIBNETTLE=
9258     LTLIBNETTLE=
9259     LIBNETTLE_PREFIX=
9260   fi
9261
9262
9263
9264
9265
9266
9267
9268     if test "$ac_cv_libnettle" != yes; then
9269       as_fn_error $? "
9270   ***
9271   *** Libnettle 2.1 was not found.
9272   " "$LINENO" 5
9273     fi
9274     NETTLE_LIBS="-lgmp -lhogweed"
9275 else
9276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9277 $as_echo "no" >&6; }
9278 fi
9279
9280    if test "$cryptolib" = "nettle"; then
9281   ENABLE_NETTLE_TRUE=
9282   ENABLE_NETTLE_FALSE='#'
9283 else
9284   ENABLE_NETTLE_TRUE='#'
9285   ENABLE_NETTLE_FALSE=
9286 fi
9287
9288
9289
9290 # Check whether --with-included-libtasn1 was given.
9291 if test "${with_included_libtasn1+set}" = set; then :
9292   withval=$with_included_libtasn1; included_libtasn1=$withval
9293 else
9294   included_libtasn1=no
9295 fi
9296
9297   if test "$included_libtasn1" = "no"; then
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311     use_additional=yes
9312
9313   acl_save_prefix="$prefix"
9314   prefix="$acl_final_prefix"
9315   acl_save_exec_prefix="$exec_prefix"
9316   exec_prefix="$acl_final_exec_prefix"
9317
9318     eval additional_includedir=\"$includedir\"
9319     eval additional_libdir=\"$libdir\"
9320
9321   exec_prefix="$acl_save_exec_prefix"
9322   prefix="$acl_save_prefix"
9323
9324
9325 # Check whether --with-libtasn1-prefix was given.
9326 if test "${with_libtasn1_prefix+set}" = set; then :
9327   withval=$with_libtasn1_prefix;
9328     if test "X$withval" = "Xno"; then
9329       use_additional=no
9330     else
9331       if test "X$withval" = "X"; then
9332
9333   acl_save_prefix="$prefix"
9334   prefix="$acl_final_prefix"
9335   acl_save_exec_prefix="$exec_prefix"
9336   exec_prefix="$acl_final_exec_prefix"
9337
9338           eval additional_includedir=\"$includedir\"
9339           eval additional_libdir=\"$libdir\"
9340
9341   exec_prefix="$acl_save_exec_prefix"
9342   prefix="$acl_save_prefix"
9343
9344       else
9345         additional_includedir="$withval/include"
9346         additional_libdir="$withval/$acl_libdirstem"
9347         if test "$acl_libdirstem2" != "$acl_libdirstem" \
9348            && ! test -d "$withval/$acl_libdirstem"; then
9349           additional_libdir="$withval/$acl_libdirstem2"
9350         fi
9351       fi
9352     fi
9353
9354 fi
9355
9356       LIBTASN1=
9357   LTLIBTASN1=
9358   INCTASN1=
9359   LIBTASN1_PREFIX=
9360       HAVE_LIBTASN1=
9361   rpathdirs=
9362   ltrpathdirs=
9363   names_already_handled=
9364   names_next_round='tasn1 '
9365   while test -n "$names_next_round"; do
9366     names_this_round="$names_next_round"
9367     names_next_round=
9368     for name in $names_this_round; do
9369       already_handled=
9370       for n in $names_already_handled; do
9371         if test "$n" = "$name"; then
9372           already_handled=yes
9373           break
9374         fi
9375       done
9376       if test -z "$already_handled"; then
9377         names_already_handled="$names_already_handled $name"
9378                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9379         eval value=\"\$HAVE_LIB$uppername\"
9380         if test -n "$value"; then
9381           if test "$value" = yes; then
9382             eval value=\"\$LIB$uppername\"
9383             test -z "$value" || LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$value"
9384             eval value=\"\$LTLIB$uppername\"
9385             test -z "$value" || LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }$value"
9386           else
9387                                     :
9388           fi
9389         else
9390                               found_dir=
9391           found_la=
9392           found_so=
9393           found_a=
9394           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
9395           if test -n "$acl_shlibext"; then
9396             shrext=".$acl_shlibext"             # typically: shrext=.so
9397           else
9398             shrext=
9399           fi
9400           if test $use_additional = yes; then
9401             dir="$additional_libdir"
9402                                     if test -n "$acl_shlibext"; then
9403               if test -f "$dir/$libname$shrext"; then
9404                 found_dir="$dir"
9405                 found_so="$dir/$libname$shrext"
9406               else
9407                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9408                   ver=`(cd "$dir" && \
9409                         for f in "$libname$shrext".*; do echo "$f"; done \
9410                         | sed -e "s,^$libname$shrext\\\\.,," \
9411                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9412                         | sed 1q ) 2>/dev/null`
9413                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9414                     found_dir="$dir"
9415                     found_so="$dir/$libname$shrext.$ver"
9416                   fi
9417                 else
9418                   eval library_names=\"$acl_library_names_spec\"
9419                   for f in $library_names; do
9420                     if test -f "$dir/$f"; then
9421                       found_dir="$dir"
9422                       found_so="$dir/$f"
9423                       break
9424                     fi
9425                   done
9426                 fi
9427               fi
9428             fi
9429                         if test "X$found_dir" = "X"; then
9430               if test -f "$dir/$libname.$acl_libext"; then
9431                 found_dir="$dir"
9432                 found_a="$dir/$libname.$acl_libext"
9433               fi
9434             fi
9435             if test "X$found_dir" != "X"; then
9436               if test -f "$dir/$libname.la"; then
9437                 found_la="$dir/$libname.la"
9438               fi
9439             fi
9440           fi
9441           if test "X$found_dir" = "X"; then
9442             for x in $LDFLAGS $LTLIBTASN1; do
9443
9444   acl_save_prefix="$prefix"
9445   prefix="$acl_final_prefix"
9446   acl_save_exec_prefix="$exec_prefix"
9447   exec_prefix="$acl_final_exec_prefix"
9448   eval x=\"$x\"
9449   exec_prefix="$acl_save_exec_prefix"
9450   prefix="$acl_save_prefix"
9451
9452               case "$x" in
9453                 -L*)
9454                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9455                                     if test -n "$acl_shlibext"; then
9456                     if test -f "$dir/$libname$shrext"; then
9457                       found_dir="$dir"
9458                       found_so="$dir/$libname$shrext"
9459                     else
9460                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9461                         ver=`(cd "$dir" && \
9462                               for f in "$libname$shrext".*; do echo "$f"; done \
9463                               | sed -e "s,^$libname$shrext\\\\.,," \
9464                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9465                               | sed 1q ) 2>/dev/null`
9466                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9467                           found_dir="$dir"
9468                           found_so="$dir/$libname$shrext.$ver"
9469                         fi
9470                       else
9471                         eval library_names=\"$acl_library_names_spec\"
9472                         for f in $library_names; do
9473                           if test -f "$dir/$f"; then
9474                             found_dir="$dir"
9475                             found_so="$dir/$f"
9476                             break
9477                           fi
9478                         done
9479                       fi
9480                     fi
9481                   fi
9482                                     if test "X$found_dir" = "X"; then
9483                     if test -f "$dir/$libname.$acl_libext"; then
9484                       found_dir="$dir"
9485                       found_a="$dir/$libname.$acl_libext"
9486                     fi
9487                   fi
9488                   if test "X$found_dir" != "X"; then
9489                     if test -f "$dir/$libname.la"; then
9490                       found_la="$dir/$libname.la"
9491                     fi
9492                   fi
9493                   ;;
9494               esac
9495               if test "X$found_dir" != "X"; then
9496                 break
9497               fi
9498             done
9499           fi
9500           if test "X$found_dir" != "X"; then
9501                         LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-L$found_dir -l$name"
9502             if test "X$found_so" != "X"; then
9503                                                         if test "$enable_rpath" = no \
9504                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9505                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9506                                 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
9507               else
9508                                                                                 haveit=
9509                 for x in $ltrpathdirs; do
9510                   if test "X$x" = "X$found_dir"; then
9511                     haveit=yes
9512                     break
9513                   fi
9514                 done
9515                 if test -z "$haveit"; then
9516                   ltrpathdirs="$ltrpathdirs $found_dir"
9517                 fi
9518                                 if test "$acl_hardcode_direct" = yes; then
9519                                                       LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
9520                 else
9521                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9522                                                             LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
9523                                                             haveit=
9524                     for x in $rpathdirs; do
9525                       if test "X$x" = "X$found_dir"; then
9526                         haveit=yes
9527                         break
9528                       fi
9529                     done
9530                     if test -z "$haveit"; then
9531                       rpathdirs="$rpathdirs $found_dir"
9532                     fi
9533                   else
9534                                                                                 haveit=
9535                     for x in $LDFLAGS $LIBTASN1; do
9536
9537   acl_save_prefix="$prefix"
9538   prefix="$acl_final_prefix"
9539   acl_save_exec_prefix="$exec_prefix"
9540   exec_prefix="$acl_final_exec_prefix"
9541   eval x=\"$x\"
9542   exec_prefix="$acl_save_exec_prefix"
9543   prefix="$acl_save_prefix"
9544
9545                       if test "X$x" = "X-L$found_dir"; then
9546                         haveit=yes
9547                         break
9548                       fi
9549                     done
9550                     if test -z "$haveit"; then
9551                       LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$found_dir"
9552                     fi
9553                     if test "$acl_hardcode_minus_L" != no; then
9554                                                                                         LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
9555                     else
9556                                                                                                                                                                                 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-l$name"
9557                     fi
9558                   fi
9559                 fi
9560               fi
9561             else
9562               if test "X$found_a" != "X"; then
9563                                 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_a"
9564               else
9565                                                 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$found_dir -l$name"
9566               fi
9567             fi
9568                         additional_includedir=
9569             case "$found_dir" in
9570               */$acl_libdirstem | */$acl_libdirstem/)
9571                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9572                 if test "$name" = 'tasn1'; then
9573                   LIBTASN1_PREFIX="$basedir"
9574                 fi
9575                 additional_includedir="$basedir/include"
9576                 ;;
9577               */$acl_libdirstem2 | */$acl_libdirstem2/)
9578                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9579                 if test "$name" = 'tasn1'; then
9580                   LIBTASN1_PREFIX="$basedir"
9581                 fi
9582                 additional_includedir="$basedir/include"
9583                 ;;
9584             esac
9585             if test "X$additional_includedir" != "X"; then
9586                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9587                 haveit=
9588                 if test "X$additional_includedir" = "X/usr/local/include"; then
9589                   if test -n "$GCC"; then
9590                     case $host_os in
9591                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9592                     esac
9593                   fi
9594                 fi
9595                 if test -z "$haveit"; then
9596                   for x in $CPPFLAGS $INCTASN1; do
9597
9598   acl_save_prefix="$prefix"
9599   prefix="$acl_final_prefix"
9600   acl_save_exec_prefix="$exec_prefix"
9601   exec_prefix="$acl_final_exec_prefix"
9602   eval x=\"$x\"
9603   exec_prefix="$acl_save_exec_prefix"
9604   prefix="$acl_save_prefix"
9605
9606                     if test "X$x" = "X-I$additional_includedir"; then
9607                       haveit=yes
9608                       break
9609                     fi
9610                   done
9611                   if test -z "$haveit"; then
9612                     if test -d "$additional_includedir"; then
9613                                             INCTASN1="${INCTASN1}${INCTASN1:+ }-I$additional_includedir"
9614                     fi
9615                   fi
9616                 fi
9617               fi
9618             fi
9619                         if test -n "$found_la"; then
9620                                                         save_libdir="$libdir"
9621               case "$found_la" in
9622                 */* | *\\*) . "$found_la" ;;
9623                 *) . "./$found_la" ;;
9624               esac
9625               libdir="$save_libdir"
9626                             for dep in $dependency_libs; do
9627                 case "$dep" in
9628                   -L*)
9629                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9630                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9631                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9632                       haveit=
9633                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9634                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9635                         if test -n "$GCC"; then
9636                           case $host_os in
9637                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9638                           esac
9639                         fi
9640                       fi
9641                       if test -z "$haveit"; then
9642                         haveit=
9643                         for x in $LDFLAGS $LIBTASN1; do
9644
9645   acl_save_prefix="$prefix"
9646   prefix="$acl_final_prefix"
9647   acl_save_exec_prefix="$exec_prefix"
9648   exec_prefix="$acl_final_exec_prefix"
9649   eval x=\"$x\"
9650   exec_prefix="$acl_save_exec_prefix"
9651   prefix="$acl_save_prefix"
9652
9653                           if test "X$x" = "X-L$additional_libdir"; then
9654                             haveit=yes
9655                             break
9656                           fi
9657                         done
9658                         if test -z "$haveit"; then
9659                           if test -d "$additional_libdir"; then
9660                                                         LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$additional_libdir"
9661                           fi
9662                         fi
9663                         haveit=
9664                         for x in $LDFLAGS $LTLIBTASN1; do
9665
9666   acl_save_prefix="$prefix"
9667   prefix="$acl_final_prefix"
9668   acl_save_exec_prefix="$exec_prefix"
9669   exec_prefix="$acl_final_exec_prefix"
9670   eval x=\"$x\"
9671   exec_prefix="$acl_save_exec_prefix"
9672   prefix="$acl_save_prefix"
9673
9674                           if test "X$x" = "X-L$additional_libdir"; then
9675                             haveit=yes
9676                             break
9677                           fi
9678                         done
9679                         if test -z "$haveit"; then
9680                           if test -d "$additional_libdir"; then
9681                                                         LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-L$additional_libdir"
9682                           fi
9683                         fi
9684                       fi
9685                     fi
9686                     ;;
9687                   -R*)
9688                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9689                     if test "$enable_rpath" != no; then
9690                                                                   haveit=
9691                       for x in $rpathdirs; do
9692                         if test "X$x" = "X$dir"; then
9693                           haveit=yes
9694                           break
9695                         fi
9696                       done
9697                       if test -z "$haveit"; then
9698                         rpathdirs="$rpathdirs $dir"
9699                       fi
9700                                                                   haveit=
9701                       for x in $ltrpathdirs; do
9702                         if test "X$x" = "X$dir"; then
9703                           haveit=yes
9704                           break
9705                         fi
9706                       done
9707                       if test -z "$haveit"; then
9708                         ltrpathdirs="$ltrpathdirs $dir"
9709                       fi
9710                     fi
9711                     ;;
9712                   -l*)
9713                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9714                     ;;
9715                   *.la)
9716                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9717                     ;;
9718                   *)
9719                                         LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$dep"
9720                     LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }$dep"
9721                     ;;
9722                 esac
9723               done
9724             fi
9725           else
9726                                                             LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-l$name"
9727             LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-l$name"
9728           fi
9729         fi
9730       fi
9731     done
9732   done
9733   if test "X$rpathdirs" != "X"; then
9734     if test -n "$acl_hardcode_libdir_separator"; then
9735                         alldirs=
9736       for found_dir in $rpathdirs; do
9737         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9738       done
9739             acl_save_libdir="$libdir"
9740       libdir="$alldirs"
9741       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9742       libdir="$acl_save_libdir"
9743       LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$flag"
9744     else
9745             for found_dir in $rpathdirs; do
9746         acl_save_libdir="$libdir"
9747         libdir="$found_dir"
9748         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9749         libdir="$acl_save_libdir"
9750         LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$flag"
9751       done
9752     fi
9753   fi
9754   if test "X$ltrpathdirs" != "X"; then
9755             for found_dir in $ltrpathdirs; do
9756       LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-R$found_dir"
9757     done
9758   fi
9759
9760
9761
9762
9763
9764
9765
9766         ac_save_CPPFLAGS="$CPPFLAGS"
9767
9768   for element in $INCTASN1; do
9769     haveit=
9770     for x in $CPPFLAGS; do
9771
9772   acl_save_prefix="$prefix"
9773   prefix="$acl_final_prefix"
9774   acl_save_exec_prefix="$exec_prefix"
9775   exec_prefix="$acl_final_exec_prefix"
9776   eval x=\"$x\"
9777   exec_prefix="$acl_save_exec_prefix"
9778   prefix="$acl_save_prefix"
9779
9780       if test "X$x" = "X$element"; then
9781         haveit=yes
9782         break
9783       fi
9784     done
9785     if test -z "$haveit"; then
9786       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9787     fi
9788   done
9789
9790
9791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtasn1" >&5
9792 $as_echo_n "checking for libtasn1... " >&6; }
9793 if ${ac_cv_libtasn1+:} false; then :
9794   $as_echo_n "(cached) " >&6
9795 else
9796
9797     ac_save_LIBS="$LIBS"
9798                                 case " $LIBTASN1" in
9799       *" -l"*) LIBS="$LIBS $LIBTASN1" ;;
9800       *)       LIBS="$LIBTASN1 $LIBS" ;;
9801     esac
9802     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h.  */
9804 #include <libtasn1.h>
9805 int
9806 main ()
9807 {
9808 asn1_check_version (NULL)
9809   ;
9810   return 0;
9811 }
9812 _ACEOF
9813 if ac_fn_c_try_link "$LINENO"; then :
9814   ac_cv_libtasn1=yes
9815 else
9816   ac_cv_libtasn1='no'
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext \
9819     conftest$ac_exeext conftest.$ac_ext
9820     LIBS="$ac_save_LIBS"
9821
9822 fi
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libtasn1" >&5
9824 $as_echo "$ac_cv_libtasn1" >&6; }
9825   if test "$ac_cv_libtasn1" = yes; then
9826     HAVE_LIBTASN1=yes
9827
9828 $as_echo "#define HAVE_LIBTASN1 1" >>confdefs.h
9829
9830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libtasn1" >&5
9831 $as_echo_n "checking how to link with libtasn1... " >&6; }
9832     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTASN1" >&5
9833 $as_echo "$LIBTASN1" >&6; }
9834   else
9835     HAVE_LIBTASN1=no
9836             CPPFLAGS="$ac_save_CPPFLAGS"
9837     LIBTASN1=
9838     LTLIBTASN1=
9839     LIBTASN1_PREFIX=
9840   fi
9841
9842
9843
9844
9845
9846
9847
9848     if test "$ac_cv_libtasn1" != yes; then
9849       included_libtasn1=yes
9850       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9851   ***
9852   *** Libtasn1 was not found. Will use the included one.
9853   " >&5
9854 $as_echo "$as_me: WARNING:
9855   ***
9856   *** Libtasn1 was not found. Will use the included one.
9857   " >&2;}
9858     fi
9859   fi
9860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included minitasn1" >&5
9861 $as_echo_n "checking whether to use the included minitasn1... " >&6; }
9862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $included_libtasn1" >&5
9863 $as_echo "$included_libtasn1" >&6; }
9864    if test "$included_libtasn1" = "yes"; then
9865   ENABLE_MINITASN1_TRUE=
9866   ENABLE_MINITASN1_FALSE='#'
9867 else
9868   ENABLE_MINITASN1_TRUE='#'
9869   ENABLE_MINITASN1_FALSE=
9870 fi
9871
9872
9873   if test "$included_libtasn1" = "no"; then
9874     GNUTLS_REQUIRES_PRIVATE="Requires.private: libtasn1"
9875   fi
9876
9877
9878 # Check whether --with-lzo was given.
9879 if test "${with_lzo+set}" = set; then :
9880   withval=$with_lzo; use_lzo=$withval
9881 else
9882   use_lzo=no
9883 fi
9884
9885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include LZO compression support" >&5
9886 $as_echo_n "checking whether to include LZO compression support... " >&6; }
9887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lzo" >&5
9888 $as_echo "$use_lzo" >&6; }
9889   LZO_LIBS=
9890   if test "$use_lzo" = "yes"; then
9891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
9892 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
9893 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
9894   $as_echo_n "(cached) " >&6
9895 else
9896   ac_check_lib_save_LIBS=$LIBS
9897 LIBS="-llzo2  $LIBS"
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h.  */
9900
9901 /* Override any GCC internal prototype to avoid an error.
9902    Use char because int might match the return type of a GCC
9903    builtin and then its argument prototype would still apply.  */
9904 #ifdef __cplusplus
9905 extern "C"
9906 #endif
9907 char lzo1x_1_compress ();
9908 int
9909 main ()
9910 {
9911 return lzo1x_1_compress ();
9912   ;
9913   return 0;
9914 }
9915 _ACEOF
9916 if ac_fn_c_try_link "$LINENO"; then :
9917   ac_cv_lib_lzo2_lzo1x_1_compress=yes
9918 else
9919   ac_cv_lib_lzo2_lzo1x_1_compress=no
9920 fi
9921 rm -f core conftest.err conftest.$ac_objext \
9922     conftest$ac_exeext conftest.$ac_ext
9923 LIBS=$ac_check_lib_save_LIBS
9924 fi
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
9926 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
9927 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
9928   LZO_LIBS=-llzo2
9929 fi
9930
9931     if test "$LZO_LIBS" = ""; then
9932       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo" >&5
9933 $as_echo_n "checking for lzo1x_1_compress in -llzo... " >&6; }
9934 if ${ac_cv_lib_lzo_lzo1x_1_compress+:} false; then :
9935   $as_echo_n "(cached) " >&6
9936 else
9937   ac_check_lib_save_LIBS=$LIBS
9938 LIBS="-llzo  $LIBS"
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940 /* end confdefs.h.  */
9941
9942 /* Override any GCC internal prototype to avoid an error.
9943    Use char because int might match the return type of a GCC
9944    builtin and then its argument prototype would still apply.  */
9945 #ifdef __cplusplus
9946 extern "C"
9947 #endif
9948 char lzo1x_1_compress ();
9949 int
9950 main ()
9951 {
9952 return lzo1x_1_compress ();
9953   ;
9954   return 0;
9955 }
9956 _ACEOF
9957 if ac_fn_c_try_link "$LINENO"; then :
9958   ac_cv_lib_lzo_lzo1x_1_compress=yes
9959 else
9960   ac_cv_lib_lzo_lzo1x_1_compress=no
9961 fi
9962 rm -f core conftest.err conftest.$ac_objext \
9963     conftest$ac_exeext conftest.$ac_ext
9964 LIBS=$ac_check_lib_save_LIBS
9965 fi
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_compress" >&5
9967 $as_echo "$ac_cv_lib_lzo_lzo1x_1_compress" >&6; }
9968 if test "x$ac_cv_lib_lzo_lzo1x_1_compress" = xyes; then :
9969   LZO_LIBS=-llzo
9970 else
9971
9972         use_lzo=no
9973         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***
9974   *** Could not find liblzo or liblzo2.  Disabling LZO compression.
9975   " >&5
9976 $as_echo "$as_me: WARNING: ***
9977   *** Could not find liblzo or liblzo2.  Disabling LZO compression.
9978   " >&2;}
9979
9980 fi
9981
9982     fi
9983   fi
9984
9985   if test "$use_lzo" = "yes"; then
9986
9987 $as_echo "#define USE_LZO 1" >>confdefs.h
9988
9989     if test "$LZO_LIBS" = "-llzo"; then
9990       for ac_header in lzo1x.h
9991 do :
9992   ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
9993 if test "x$ac_cv_header_lzo1x_h" = xyes; then :
9994   cat >>confdefs.h <<_ACEOF
9995 #define HAVE_LZO1X_H 1
9996 _ACEOF
9997
9998 fi
9999
10000 done
10001
10002     elif test "$LZO_LIBS" = "-llzo2"; then
10003       for ac_header in lzo/lzo1x.h
10004 do :
10005   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
10006 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
10007   cat >>confdefs.h <<_ACEOF
10008 #define HAVE_LZO_LZO1X_H 1
10009 _ACEOF
10010
10011 fi
10012
10013 done
10014
10015     fi
10016   fi
10017    if test "$use_lzo" = "yes"; then
10018   USE_LZO_TRUE=
10019   USE_LZO_FALSE='#'
10020 else
10021   USE_LZO_TRUE='#'
10022   USE_LZO_FALSE=
10023 fi
10024
10025
10026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C99 macros are supported" >&5
10027 $as_echo_n "checking whether C99 macros are supported... " >&6; }
10028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h.  */
10030
10031 int
10032 main ()
10033 {
10034
10035     #define test_mac(...)
10036     int z,y,x;
10037     test_mac(x,y,z);
10038     return 0;
10039
10040   ;
10041   return 0;
10042 }
10043 _ACEOF
10044 if ac_fn_c_try_compile "$LINENO"; then :
10045
10046
10047 $as_echo "#define C99_MACROS 1" >>confdefs.h
10048
10049     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10050 $as_echo "yes" >&6; }
10051
10052 else
10053
10054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10056     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C99 macros not supported. This may affect compiling." >&5
10057 $as_echo "$as_me: WARNING: C99 macros not supported. This may affect compiling." >&2;}
10058
10059 fi
10060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10061
10062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Opaque PRF input support" >&5
10063 $as_echo_n "checking whether to enable Opaque PRF input support... " >&6; }
10064   # Check whether --enable-opaque-prf-input was given.
10065 if test "${enable_opaque_prf_input+set}" = set; then :
10066   enableval=$enable_opaque_prf_input; ac_opaque_prf_input=$enableval
10067 else
10068   ac_opaque_prf_input=no
10069 fi
10070
10071   if test "$ac_opaque_prf_input" != "no"; then
10072     if ! echo $ac_opaque_prf_input | egrep -q '^[0-9]+$'; then
10073       ac_opaque_prf_input=no
10074       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10075   *** Could not parse Opaque PRF Input extension type.
10076   *** Use --enable-opaque-prf-input=XX where XX is decimal, for example
10077   *** to use extension value 42 use --enable-opqaue-prf-input=42" >&5
10078 $as_echo "$as_me: WARNING:
10079   *** Could not parse Opaque PRF Input extension type.
10080   *** Use --enable-opaque-prf-input=XX where XX is decimal, for example
10081   *** to use extension value 42 use --enable-opqaue-prf-input=42" >&2;}
10082     fi
10083   fi
10084   if test "$ac_opaque_prf_input" != "no"; then
10085    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (extension value $ac_opaque_prf_input)" >&5
10086 $as_echo "yes (extension value $ac_opaque_prf_input)" >&6; }
10087
10088 cat >>confdefs.h <<_ACEOF
10089 #define ENABLE_OPRFI $ac_opaque_prf_input
10090 _ACEOF
10091
10092   else
10093    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10095   fi
10096    if test "$ac_opaque_prf_input" != "no"; then
10097   ENABLE_OPRFI_TRUE=
10098   ENABLE_OPRFI_FALSE='#'
10099 else
10100   ENABLE_OPRFI_TRUE='#'
10101   ENABLE_OPRFI_FALSE=
10102 fi
10103
10104
10105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SRP authentication support" >&5
10106 $as_echo_n "checking whether to disable SRP authentication support... " >&6; }
10107   # Check whether --enable-srp-authentication was given.
10108 if test "${enable_srp_authentication+set}" = set; then :
10109   enableval=$enable_srp_authentication; ac_enable_srp=no
10110 fi
10111
10112   if test x$ac_enable_srp != xno; then
10113    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114 $as_echo "no" >&6; }
10115
10116 $as_echo "#define ENABLE_SRP 1" >>confdefs.h
10117
10118   else
10119    ac_full=0
10120    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10121 $as_echo "yes" >&6; }
10122   fi
10123    if test "$ac_enable_srp" != "no"; then
10124   ENABLE_SRP_TRUE=
10125   ENABLE_SRP_FALSE='#'
10126 else
10127   ENABLE_SRP_TRUE='#'
10128   ENABLE_SRP_FALSE=
10129 fi
10130
10131
10132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable PSK authentication support" >&5
10133 $as_echo_n "checking whether to disable PSK authentication support... " >&6; }
10134   # Check whether --enable-psk-authentication was given.
10135 if test "${enable_psk_authentication+set}" = set; then :
10136   enableval=$enable_psk_authentication; ac_enable_psk=no
10137 fi
10138
10139   if test x$ac_enable_psk != xno; then
10140    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10142
10143 $as_echo "#define ENABLE_PSK 1" >>confdefs.h
10144
10145   else
10146    ac_full=0
10147    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10148 $as_echo "yes" >&6; }
10149   fi
10150    if test "$ac_enable_psk" != "no"; then
10151   ENABLE_PSK_TRUE=
10152   ENABLE_PSK_FALSE='#'
10153 else
10154   ENABLE_PSK_TRUE='#'
10155   ENABLE_PSK_FALSE=
10156 fi
10157
10158
10159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable anonymous authentication support" >&5
10160 $as_echo_n "checking whether to disable anonymous authentication support... " >&6; }
10161   # Check whether --enable-anon-authentication was given.
10162 if test "${enable_anon_authentication+set}" = set; then :
10163   enableval=$enable_anon_authentication; ac_enable_anon=no
10164 fi
10165
10166   if test x$ac_enable_anon != xno; then
10167    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10169
10170 $as_echo "#define ENABLE_ANON 1" >>confdefs.h
10171
10172   else
10173    ac_full=0
10174    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10175 $as_echo "yes" >&6; }
10176   fi
10177    if test "$ac_enable_anon" != "no"; then
10178   ENABLE_ANON_TRUE=
10179   ENABLE_ANON_FALSE='#'
10180 else
10181   ENABLE_ANON_TRUE='#'
10182   ENABLE_ANON_FALSE=
10183 fi
10184
10185
10186   # Allow disabling Camellia
10187   if test "$nettle" != "yes";then
10188   # Check whether --enable-camellia was given.
10189 if test "${enable_camellia+set}" = set; then :
10190   enableval=$enable_camellia; enable_camellia=$enableval
10191 else
10192   enable_camellia=yes
10193 fi
10194
10195   else
10196     enable_camellia=no
10197   fi
10198
10199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable Camellia cipher" >&5
10200 $as_echo_n "checking whether to disable Camellia cipher... " >&6; }
10201   if test "$enable_camellia" != "no"; then
10202    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203 $as_echo "no" >&6; }
10204
10205 $as_echo "#define ENABLE_CAMELLIA 1" >>confdefs.h
10206
10207   else
10208    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10209 $as_echo "yes" >&6; }
10210   fi
10211
10212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable extra PKI stuff" >&5
10213 $as_echo_n "checking whether to disable extra PKI stuff... " >&6; }
10214   # Check whether --enable-extra-pki was given.
10215 if test "${enable_extra_pki+set}" = set; then :
10216   enableval=$enable_extra_pki; enable_pki=$enableval
10217 else
10218   enable_pki=yes
10219 fi
10220
10221   if test "$enable_pki" != "yes"; then
10222    ac_full=0
10223    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10224 $as_echo "yes" >&6; }
10225   else
10226    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 $as_echo "no" >&6; }
10228
10229 $as_echo "#define ENABLE_PKI 1" >>confdefs.h
10230
10231   fi
10232    if test "$enable_pki" = "yes"; then
10233   ENABLE_PKI_TRUE=
10234   ENABLE_PKI_FALSE='#'
10235 else
10236   ENABLE_PKI_TRUE='#'
10237   ENABLE_PKI_FALSE=
10238 fi
10239
10240
10241   ac_enable_openpgp=yes
10242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OpenPGP Certificate authentication support" >&5
10243 $as_echo_n "checking whether to disable OpenPGP Certificate authentication support... " >&6; }
10244   # Check whether --enable-openpgp-authentication was given.
10245 if test "${enable_openpgp_authentication+set}" = set; then :
10246   enableval=$enable_openpgp_authentication; ac_enable_openpgp=no
10247 fi
10248
10249   if test x$ac_enable_openpgp = xno; then
10250    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10251 $as_echo "yes" >&6; }
10252    ac_full=0
10253   else
10254
10255 $as_echo "#define ENABLE_OPENPGP 1" >>confdefs.h
10256
10257    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 $as_echo "no" >&6; }
10259   fi
10260    if test "$ac_enable_openpgp" = "yes"; then
10261   ENABLE_OPENPGP_TRUE=
10262   ENABLE_OPENPGP_FALSE='#'
10263 else
10264   ENABLE_OPENPGP_TRUE='#'
10265   ENABLE_OPENPGP_FALSE=
10266 fi
10267
10268
10269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SessionTicket extension support" >&5
10270 $as_echo_n "checking whether to disable SessionTicket extension support... " >&6; }
10271   # Check whether --enable-session-ticket was given.
10272 if test "${enable_session_ticket+set}" = set; then :
10273   enableval=$enable_session_ticket; ac_session_ticket=no
10274 fi
10275
10276   if test x$ac_session_ticket != xno; then
10277    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10279
10280 $as_echo "#define ENABLE_SESSION_TICKET 1" >>confdefs.h
10281
10282   else
10283    ac_full=0
10284    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10285 $as_echo "yes" >&6; }
10286   fi
10287    if test "$ac_enable_session_ticket" != "no"; then
10288   ENABLE_SESSION_TICKET_TRUE=
10289   ENABLE_SESSION_TICKET_FALSE='#'
10290 else
10291   ENABLE_SESSION_TICKET_TRUE='#'
10292   ENABLE_SESSION_TICKET_FALSE=
10293 fi
10294
10295
10296   # For cryptodev
10297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add cryptodev support" >&5
10298 $as_echo_n "checking whether to add cryptodev support... " >&6; }
10299   # Check whether --enable-cryptodev was given.
10300 if test "${enable_cryptodev+set}" = set; then :
10301   enableval=$enable_cryptodev; enable_cryptodev=yes
10302 else
10303   enable_cryptodev=no
10304 fi
10305
10306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cryptodev" >&5
10307 $as_echo "$enable_cryptodev" >&6; }
10308
10309   if test "$enable_cryptodev" = "yes"; then
10310
10311 $as_echo "#define ENABLE_CRYPTODEV 1" >>confdefs.h
10312
10313   fi
10314
10315   # For storing integers in pointers without warnings
10316   # http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
10317   # The cast to long int works around a bug in the HP C Compiler
10318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10320 # This bug is HP SR number 8606223364.
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
10322 $as_echo_n "checking size of void *... " >&6; }
10323 if ${ac_cv_sizeof_void_p+:} false; then :
10324   $as_echo_n "(cached) " >&6
10325 else
10326   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
10327
10328 else
10329   if test "$ac_cv_type_void_p" = yes; then
10330      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10332 as_fn_error 77 "cannot compute sizeof (void *)
10333 See \`config.log' for more details" "$LINENO" 5; }
10334    else
10335      ac_cv_sizeof_void_p=0
10336    fi
10337 fi
10338
10339 fi
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
10341 $as_echo "$ac_cv_sizeof_void_p" >&6; }
10342
10343
10344
10345 cat >>confdefs.h <<_ACEOF
10346 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10347 _ACEOF
10348
10349
10350   # The cast to long int works around a bug in the HP C Compiler
10351 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10352 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10353 # This bug is HP SR number 8606223364.
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10355 $as_echo_n "checking size of long... " >&6; }
10356 if ${ac_cv_sizeof_long+:} false; then :
10357   $as_echo_n "(cached) " >&6
10358 else
10359   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10360
10361 else
10362   if test "$ac_cv_type_long" = yes; then
10363      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10365 as_fn_error 77 "cannot compute sizeof (long)
10366 See \`config.log' for more details" "$LINENO" 5; }
10367    else
10368      ac_cv_sizeof_long=0
10369    fi
10370 fi
10371
10372 fi
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10374 $as_echo "$ac_cv_sizeof_long" >&6; }
10375
10376
10377
10378 cat >>confdefs.h <<_ACEOF
10379 #define SIZEOF_LONG $ac_cv_sizeof_long
10380 _ACEOF
10381
10382
10383   # The cast to long int works around a bug in the HP C Compiler
10384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10386 # This bug is HP SR number 8606223364.
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10388 $as_echo_n "checking size of int... " >&6; }
10389 if ${ac_cv_sizeof_int+:} false; then :
10390   $as_echo_n "(cached) " >&6
10391 else
10392   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10393
10394 else
10395   if test "$ac_cv_type_int" = yes; then
10396      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10398 as_fn_error 77 "cannot compute sizeof (int)
10399 See \`config.log' for more details" "$LINENO" 5; }
10400    else
10401      ac_cv_sizeof_int=0
10402    fi
10403 fi
10404
10405 fi
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10407 $as_echo "$ac_cv_sizeof_int" >&6; }
10408
10409
10410
10411 cat >>confdefs.h <<_ACEOF
10412 #define SIZEOF_INT $ac_cv_sizeof_int
10413 _ACEOF
10414
10415
10416   case $ac_cv_sizeof_void_p in
10417     $ac_cv_sizeof_long)
10418
10419 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long)" >>confdefs.h
10420
10421       ;;
10422     *)
10423       $as_echo "#define GNUTLS_POINTER_TO_INT_CAST /**/" >>confdefs.h
10424
10425       ;;
10426   esac
10427
10428
10429   GNULIB_CHDIR=0;
10430   GNULIB_CHOWN=0;
10431   GNULIB_CLOSE=0;
10432   GNULIB_DUP=0;
10433   GNULIB_DUP2=0;
10434   GNULIB_DUP3=0;
10435   GNULIB_ENVIRON=0;
10436   GNULIB_EUIDACCESS=0;
10437   GNULIB_FACCESSAT=0;
10438   GNULIB_FCHDIR=0;
10439   GNULIB_FCHOWNAT=0;
10440   GNULIB_FDATASYNC=0;
10441   GNULIB_FSYNC=0;
10442   GNULIB_FTRUNCATE=0;
10443   GNULIB_GETCWD=0;
10444   GNULIB_GETDOMAINNAME=0;
10445   GNULIB_GETDTABLESIZE=0;
10446   GNULIB_GETGROUPS=0;
10447   GNULIB_GETHOSTNAME=0;
10448   GNULIB_GETLOGIN=0;
10449   GNULIB_GETLOGIN_R=0;
10450   GNULIB_GETPAGESIZE=0;
10451   GNULIB_GETUSERSHELL=0;
10452   GNULIB_GROUP_MEMBER=0;
10453   GNULIB_ISATTY=0;
10454   GNULIB_LCHOWN=0;
10455   GNULIB_LINK=0;
10456   GNULIB_LINKAT=0;
10457   GNULIB_LSEEK=0;
10458   GNULIB_PIPE=0;
10459   GNULIB_PIPE2=0;
10460   GNULIB_PREAD=0;
10461   GNULIB_PWRITE=0;
10462   GNULIB_READ=0;
10463   GNULIB_READLINK=0;
10464   GNULIB_READLINKAT=0;
10465   GNULIB_RMDIR=0;
10466   GNULIB_SETHOSTNAME=0;
10467   GNULIB_SLEEP=0;
10468   GNULIB_SYMLINK=0;
10469   GNULIB_SYMLINKAT=0;
10470   GNULIB_TTYNAME_R=0;
10471   GNULIB_UNISTD_H_NONBLOCKING=0;
10472   GNULIB_UNISTD_H_SIGPIPE=0;
10473   GNULIB_UNLINK=0;
10474   GNULIB_UNLINKAT=0;
10475   GNULIB_USLEEP=0;
10476   GNULIB_WRITE=0;
10477     HAVE_CHOWN=1;
10478   HAVE_DUP2=1;
10479   HAVE_DUP3=1;
10480   HAVE_EUIDACCESS=1;
10481   HAVE_FACCESSAT=1;
10482   HAVE_FCHDIR=1;
10483   HAVE_FCHOWNAT=1;
10484   HAVE_FDATASYNC=1;
10485   HAVE_FSYNC=1;
10486   HAVE_FTRUNCATE=1;
10487   HAVE_GETDTABLESIZE=1;
10488   HAVE_GETGROUPS=1;
10489   HAVE_GETHOSTNAME=1;
10490   HAVE_GETLOGIN=1;
10491   HAVE_GETPAGESIZE=1;
10492   HAVE_GROUP_MEMBER=1;
10493   HAVE_LCHOWN=1;
10494   HAVE_LINK=1;
10495   HAVE_LINKAT=1;
10496   HAVE_PIPE=1;
10497   HAVE_PIPE2=1;
10498   HAVE_PREAD=1;
10499   HAVE_PWRITE=1;
10500   HAVE_READLINK=1;
10501   HAVE_READLINKAT=1;
10502   HAVE_SETHOSTNAME=1;
10503   HAVE_SLEEP=1;
10504   HAVE_SYMLINK=1;
10505   HAVE_SYMLINKAT=1;
10506   HAVE_UNLINKAT=1;
10507   HAVE_USLEEP=1;
10508   HAVE_DECL_ENVIRON=1;
10509   HAVE_DECL_FCHDIR=1;
10510   HAVE_DECL_FDATASYNC=1;
10511   HAVE_DECL_GETDOMAINNAME=1;
10512   HAVE_DECL_GETLOGIN_R=1;
10513   HAVE_DECL_GETPAGESIZE=1;
10514   HAVE_DECL_GETUSERSHELL=1;
10515   HAVE_DECL_SETHOSTNAME=1;
10516   HAVE_DECL_TTYNAME_R=1;
10517   HAVE_OS_H=0;
10518   HAVE_SYS_PARAM_H=0;
10519   REPLACE_CHOWN=0;
10520   REPLACE_CLOSE=0;
10521   REPLACE_DUP=0;
10522   REPLACE_DUP2=0;
10523   REPLACE_FCHOWNAT=0;
10524   REPLACE_GETCWD=0;
10525   REPLACE_GETDOMAINNAME=0;
10526   REPLACE_GETLOGIN_R=0;
10527   REPLACE_GETGROUPS=0;
10528   REPLACE_GETPAGESIZE=0;
10529   REPLACE_ISATTY=0;
10530   REPLACE_LCHOWN=0;
10531   REPLACE_LINK=0;
10532   REPLACE_LINKAT=0;
10533   REPLACE_LSEEK=0;
10534   REPLACE_PREAD=0;
10535   REPLACE_PWRITE=0;
10536   REPLACE_READ=0;
10537   REPLACE_READLINK=0;
10538   REPLACE_RMDIR=0;
10539   REPLACE_SLEEP=0;
10540   REPLACE_SYMLINK=0;
10541   REPLACE_TTYNAME_R=0;
10542   REPLACE_UNLINK=0;
10543   REPLACE_UNLINKAT=0;
10544   REPLACE_USLEEP=0;
10545   REPLACE_WRITE=0;
10546   UNISTD_H_HAVE_WINSOCK2_H=0;
10547   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
10548
10549
10550
10551   GNULIB_IOCTL=0;
10552     SYS_IOCTL_H_HAVE_WINSOCK2_H=0;
10553   SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
10554
10555   REPLACE_IOCTL=0;
10556
10557
10558
10559
10560
10561   for ac_header in $gl_header_list
10562 do :
10563   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10564 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10565 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10566   cat >>confdefs.h <<_ACEOF
10567 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10568 _ACEOF
10569
10570 fi
10571
10572 done
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583   :
10584
10585
10586
10587
10588
10589   if test $ac_cv_header_sys_socket_h != yes; then
10590                     for ac_header in winsock2.h
10591 do :
10592   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10593 if test "x$ac_cv_header_winsock2_h" = xyes; then :
10594   cat >>confdefs.h <<_ACEOF
10595 #define HAVE_WINSOCK2_H 1
10596 _ACEOF
10597
10598 fi
10599
10600 done
10601
10602   fi
10603   if test "$ac_cv_header_winsock2_h" = yes; then
10604     HAVE_WINSOCK2_H=1
10605     UNISTD_H_HAVE_WINSOCK2_H=1
10606     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
10607   else
10608     HAVE_WINSOCK2_H=0
10609   fi
10610
10611    LIBSOCKET=
10612   if test $HAVE_WINSOCK2_H = 1; then
10613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
10614 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
10615 if ${gl_cv_func_wsastartup+:} false; then :
10616   $as_echo_n "(cached) " >&6
10617 else
10618
10619       gl_save_LIBS="$LIBS"
10620       LIBS="$LIBS -lws2_32"
10621       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h.  */
10623
10624 #ifdef HAVE_WINSOCK2_H
10625 # include <winsock2.h>
10626 #endif
10627 int
10628 main ()
10629 {
10630
10631           WORD wVersionRequested = MAKEWORD(1, 1);
10632           WSADATA wsaData;
10633           int err = WSAStartup(wVersionRequested, &wsaData);
10634           WSACleanup ();
10635   ;
10636   return 0;
10637 }
10638 _ACEOF
10639 if ac_fn_c_try_link "$LINENO"; then :
10640   gl_cv_func_wsastartup=yes
10641 else
10642   gl_cv_func_wsastartup=no
10643 fi
10644 rm -f core conftest.err conftest.$ac_objext \
10645     conftest$ac_exeext conftest.$ac_ext
10646       LIBS="$gl_save_LIBS"
10647
10648 fi
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
10650 $as_echo "$gl_cv_func_wsastartup" >&6; }
10651     if test "$gl_cv_func_wsastartup" = "yes"; then
10652
10653 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
10654
10655       LIBSOCKET='-lws2_32'
10656     fi
10657   else
10658                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
10659 $as_echo_n "checking for library containing setsockopt... " >&6; }
10660 if ${gl_cv_lib_socket+:} false; then :
10661   $as_echo_n "(cached) " >&6
10662 else
10663
10664       gl_cv_lib_socket=
10665       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h.  */
10667 extern
10668 #ifdef __cplusplus
10669 "C"
10670 #endif
10671 char setsockopt();
10672 int
10673 main ()
10674 {
10675 setsockopt();
10676   ;
10677   return 0;
10678 }
10679 _ACEOF
10680 if ac_fn_c_try_link "$LINENO"; then :
10681
10682 else
10683   gl_save_LIBS="$LIBS"
10684          LIBS="$gl_save_LIBS -lsocket"
10685          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h.  */
10687 extern
10688 #ifdef __cplusplus
10689 "C"
10690 #endif
10691 char setsockopt();
10692 int
10693 main ()
10694 {
10695 setsockopt();
10696   ;
10697   return 0;
10698 }
10699 _ACEOF
10700 if ac_fn_c_try_link "$LINENO"; then :
10701   gl_cv_lib_socket="-lsocket"
10702 fi
10703 rm -f core conftest.err conftest.$ac_objext \
10704     conftest$ac_exeext conftest.$ac_ext
10705          if test -z "$gl_cv_lib_socket"; then
10706            LIBS="$gl_save_LIBS -lnetwork"
10707            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h.  */
10709 extern
10710 #ifdef __cplusplus
10711 "C"
10712 #endif
10713 char setsockopt();
10714 int
10715 main ()
10716 {
10717 setsockopt();
10718   ;
10719   return 0;
10720 }
10721 _ACEOF
10722 if ac_fn_c_try_link "$LINENO"; then :
10723   gl_cv_lib_socket="-lnetwork"
10724 fi
10725 rm -f core conftest.err conftest.$ac_objext \
10726     conftest$ac_exeext conftest.$ac_ext
10727            if test -z "$gl_cv_lib_socket"; then
10728              LIBS="$gl_save_LIBS -lnet"
10729              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h.  */
10731 extern
10732 #ifdef __cplusplus
10733 "C"
10734 #endif
10735 char setsockopt();
10736 int
10737 main ()
10738 {
10739 setsockopt();
10740   ;
10741   return 0;
10742 }
10743 _ACEOF
10744 if ac_fn_c_try_link "$LINENO"; then :
10745   gl_cv_lib_socket="-lnet"
10746 fi
10747 rm -f core conftest.err conftest.$ac_objext \
10748     conftest$ac_exeext conftest.$ac_ext
10749            fi
10750          fi
10751          LIBS="$gl_save_LIBS"
10752
10753 fi
10754 rm -f core conftest.err conftest.$ac_objext \
10755     conftest$ac_exeext conftest.$ac_ext
10756       if test -z "$gl_cv_lib_socket"; then
10757         gl_cv_lib_socket="none needed"
10758       fi
10759
10760 fi
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
10762 $as_echo "$gl_cv_lib_socket" >&6; }
10763     if test "$gl_cv_lib_socket" != "none needed"; then
10764       LIBSOCKET="$gl_cv_lib_socket"
10765     fi
10766   fi
10767
10768
10769
10770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build OpenSSL compatibility layer" >&5
10771 $as_echo_n "checking whether to build OpenSSL compatibility layer... " >&6; }
10772   # Check whether --enable-openssl-compatibility was given.
10773 if test "${enable_openssl_compatibility+set}" = set; then :
10774   enableval=$enable_openssl_compatibility; enable_openssl=$enableval
10775 else
10776   enable_openssl=yes
10777 fi
10778
10779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
10780 $as_echo "$enable_openssl" >&6; }
10781    if test "$enable_openssl" = "yes"; then
10782   ENABLE_OPENSSL_TRUE=
10783   ENABLE_OPENSSL_FALSE='#'
10784 else
10785   ENABLE_OPENSSL_TRUE='#'
10786   ENABLE_OPENSSL_FALSE=
10787 fi
10788
10789
10790   # We link to ../lib's gnulib, which needs -lws2_32 via LIBSOCKET in Makefile.am.
10791
10792
10793
10794
10795   :
10796
10797
10798
10799
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10801 $as_echo_n "checking for ANSI C header files... " >&6; }
10802 if ${ac_cv_header_stdc+:} false; then :
10803   $as_echo_n "(cached) " >&6
10804 else
10805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h.  */
10807 #include <stdlib.h>
10808 #include <stdarg.h>
10809 #include <string.h>
10810 #include <float.h>
10811
10812 int
10813 main ()
10814 {
10815
10816   ;
10817   return 0;
10818 }
10819 _ACEOF
10820 if ac_fn_c_try_compile "$LINENO"; then :
10821   ac_cv_header_stdc=yes
10822 else
10823   ac_cv_header_stdc=no
10824 fi
10825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10826
10827 if test $ac_cv_header_stdc = yes; then
10828   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h.  */
10831 #include <string.h>
10832
10833 _ACEOF
10834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10835   $EGREP "memchr" >/dev/null 2>&1; then :
10836
10837 else
10838   ac_cv_header_stdc=no
10839 fi
10840 rm -f conftest*
10841
10842 fi
10843
10844 if test $ac_cv_header_stdc = yes; then
10845   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847 /* end confdefs.h.  */
10848 #include <stdlib.h>
10849
10850 _ACEOF
10851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10852   $EGREP "free" >/dev/null 2>&1; then :
10853
10854 else
10855   ac_cv_header_stdc=no
10856 fi
10857 rm -f conftest*
10858
10859 fi
10860
10861 if test $ac_cv_header_stdc = yes; then
10862   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10863   if test "$cross_compiling" = yes; then :
10864   :
10865 else
10866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h.  */
10868 #include <ctype.h>
10869 #include <stdlib.h>
10870 #if ((' ' & 0x0FF) == 0x020)
10871 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10872 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10873 #else
10874 # define ISLOWER(c) \
10875                    (('a' <= (c) && (c) <= 'i') \
10876                      || ('j' <= (c) && (c) <= 'r') \
10877                      || ('s' <= (c) && (c) <= 'z'))
10878 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10879 #endif
10880
10881 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10882 int
10883 main ()
10884 {
10885   int i;
10886   for (i = 0; i < 256; i++)
10887     if (XOR (islower (i), ISLOWER (i))
10888         || toupper (i) != TOUPPER (i))
10889       return 2;
10890   return 0;
10891 }
10892 _ACEOF
10893 if ac_fn_c_try_run "$LINENO"; then :
10894
10895 else
10896   ac_cv_header_stdc=no
10897 fi
10898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10899   conftest.$ac_objext conftest.beam conftest.$ac_ext
10900 fi
10901
10902 fi
10903 fi
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10905 $as_echo "$ac_cv_header_stdc" >&6; }
10906 if test $ac_cv_header_stdc = yes; then
10907
10908 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10909
10910 fi
10911
10912
10913 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
10914
10915
10916 $as_echo "#define HAVE_FLOAT_H 1" >>confdefs.h
10917
10918
10919 $as_echo "#define HAVE_LIMITS_H 1" >>confdefs.h
10920
10921
10922 $as_echo "#define HAVE_MATH_H 1" >>confdefs.h
10923
10924
10925 $as_echo "#define HAVE_CTYPE_H 1" >>confdefs.h
10926
10927
10928 $as_echo "#define HAVE_ERRNO_H 1" >>confdefs.h
10929
10930
10931 # No fork on MinGW, disable some self-tests until we fix them.
10932 for ac_func in fork
10933 do :
10934   ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
10935 if test "x$ac_cv_func_fork" = xyes; then :
10936   cat >>confdefs.h <<_ACEOF
10937 #define HAVE_FORK 1
10938 _ACEOF
10939
10940 fi
10941 done
10942
10943  if test "$ac_cv_func_fork" != "no"; then
10944   HAVE_FORK_TRUE=
10945   HAVE_FORK_FALSE='#'
10946 else
10947   HAVE_FORK_TRUE='#'
10948   HAVE_FORK_FALSE=
10949 fi
10950
10951
10952
10953 # Check whether --with-p11-kit was given.
10954 if test "${with_p11_kit+set}" = set; then :
10955   withval=$with_p11_kit;
10956 fi
10957
10958  if test "$with_p11_kit" != "no"; then
10959   ENABLE_PKCS11_TRUE=
10960   ENABLE_PKCS11_FALSE='#'
10961 else
10962   ENABLE_PKCS11_TRUE='#'
10963   ENABLE_PKCS11_FALSE=
10964 fi
10965
10966 if test "$with_p11_kit" != "no"; then
10967
10968 pkg_failed=no
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for P11_KIT" >&5
10970 $as_echo_n "checking for P11_KIT... " >&6; }
10971
10972 if test -n "$PKG_CONFIG"; then
10973     if test -n "$P11_KIT_CFLAGS"; then
10974         pkg_cv_P11_KIT_CFLAGS="$P11_KIT_CFLAGS"
10975     else
10976         if test -n "$PKG_CONFIG" && \
10977     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= 0.11\""; } >&5
10978   ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= 0.11") 2>&5
10979   ac_status=$?
10980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10981   test $ac_status = 0; }; then
10982   pkg_cv_P11_KIT_CFLAGS=`$PKG_CONFIG --cflags "p11-kit-1 >= 0.11" 2>/dev/null`
10983 else
10984   pkg_failed=yes
10985 fi
10986     fi
10987 else
10988         pkg_failed=untried
10989 fi
10990 if test -n "$PKG_CONFIG"; then
10991     if test -n "$P11_KIT_LIBS"; then
10992         pkg_cv_P11_KIT_LIBS="$P11_KIT_LIBS"
10993     else
10994         if test -n "$PKG_CONFIG" && \
10995     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= 0.11\""; } >&5
10996   ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= 0.11") 2>&5
10997   ac_status=$?
10998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10999   test $ac_status = 0; }; then
11000   pkg_cv_P11_KIT_LIBS=`$PKG_CONFIG --libs "p11-kit-1 >= 0.11" 2>/dev/null`
11001 else
11002   pkg_failed=yes
11003 fi
11004     fi
11005 else
11006         pkg_failed=untried
11007 fi
11008
11009
11010
11011 if test $pkg_failed = yes; then
11012
11013 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11014         _pkg_short_errors_supported=yes
11015 else
11016         _pkg_short_errors_supported=no
11017 fi
11018         if test $_pkg_short_errors_supported = yes; then
11019                 P11_KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "p11-kit-1 >= 0.11"`
11020         else
11021                 P11_KIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "p11-kit-1 >= 0.11"`
11022         fi
11023         # Put the nasty error message in config.log where it belongs
11024         echo "$P11_KIT_PKG_ERRORS" >&5
11025
11026         as_fn_error $? "Package requirements (p11-kit-1 >= 0.11) were not met:
11027
11028 $P11_KIT_PKG_ERRORS
11029
11030 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11031 installed software in a non-standard prefix.
11032
11033 Alternatively, you may set the environment variables P11_KIT_CFLAGS
11034 and P11_KIT_LIBS to avoid the need to call pkg-config.
11035 See the pkg-config man page for more details.
11036 " "$LINENO" 5
11037 elif test $pkg_failed = untried; then
11038         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11040 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11041 is in your PATH or set the PKG_CONFIG environment variable to the full
11042 path to pkg-config.
11043
11044 Alternatively, you may set the environment variables P11_KIT_CFLAGS
11045 and P11_KIT_LIBS to avoid the need to call pkg-config.
11046 See the pkg-config man page for more details.
11047
11048 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11049 See \`config.log' for more details" "$LINENO" 5; }
11050 else
11051         P11_KIT_CFLAGS=$pkg_cv_P11_KIT_CFLAGS
11052         P11_KIT_LIBS=$pkg_cv_P11_KIT_LIBS
11053         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11054 $as_echo "yes" >&6; }
11055         :
11056 fi
11057
11058 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
11059
11060         CFLAGS="$CFLAGS $P11_KIT_CFLAGS"
11061         LIBS="$LIBS $P11_KIT_LIBS"
11062         with_p11_kit=yes
11063 fi
11064
11065 ac_fn_c_check_type "$LINENO" "uint" "ac_cv_type_uint" "
11066 # include <sys/types.h>
11067
11068 "
11069 if test "x$ac_cv_type_uint" = xyes; then :
11070
11071 cat >>confdefs.h <<_ACEOF
11072 #define HAVE_UINT 1
11073 _ACEOF
11074
11075
11076 fi
11077
11078
11079 # For Guile bindings.
11080 opt_guile_bindings=yes
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building Guile bindings" >&5
11082 $as_echo_n "checking whether building Guile bindings... " >&6; }
11083 # Check whether --enable-guile was given.
11084 if test "${enable_guile+set}" = set; then :
11085   enableval=$enable_guile; opt_guile_bindings=$enableval
11086 fi
11087
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_guile_bindings" >&5
11089 $as_echo "$opt_guile_bindings" >&6; }
11090
11091
11092 # Check whether --with---with-guile-site-dir was given.
11093 if test "${with___with_guile_site_dir+set}" = set; then :
11094   withval=$with___with_guile_site_dir;
11095 fi
11096
11097
11098 if test "$opt_guile_bindings" = "yes"; then
11099    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
11100 *** Detecting GNU Guile...
11101 " >&5
11102 $as_echo "***
11103 *** Detecting GNU Guile...
11104 " >&6; }
11105
11106    # Extract the first word of "guile-snarf", so it can be a program name with args.
11107 set dummy guile-snarf; ac_word=$2
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109 $as_echo_n "checking for $ac_word... " >&6; }
11110 if ${ac_cv_path_guile_snarf+:} false; then :
11111   $as_echo_n "(cached) " >&6
11112 else
11113   case $guile_snarf in
11114   [\\/]* | ?:[\\/]*)
11115   ac_cv_path_guile_snarf="$guile_snarf" # Let the user override the test with a path.
11116   ;;
11117   *)
11118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11119 for as_dir in $PATH
11120 do
11121   IFS=$as_save_IFS
11122   test -z "$as_dir" && as_dir=.
11123     for ac_exec_ext in '' $ac_executable_extensions; do
11124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11125     ac_cv_path_guile_snarf="$as_dir/$ac_word$ac_exec_ext"
11126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11127     break 2
11128   fi
11129 done
11130   done
11131 IFS=$as_save_IFS
11132
11133   ;;
11134 esac
11135 fi
11136 guile_snarf=$ac_cv_path_guile_snarf
11137 if test -n "$guile_snarf"; then
11138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_snarf" >&5
11139 $as_echo "$guile_snarf" >&6; }
11140 else
11141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142 $as_echo "no" >&6; }
11143 fi
11144
11145
11146    if test "x$guile_snarf" = "x"; then
11147       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`guile-snarf' from Guile 1.8 not found.  Guile bindings not built." >&5
11148 $as_echo "$as_me: WARNING: \`guile-snarf' from Guile 1.8 not found.  Guile bindings not built." >&2;}
11149       opt_guile_bindings=no
11150    else
11151       # Extract the first word of "guile", so it can be a program name with args.
11152 set dummy guile; ac_word=$2
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154 $as_echo_n "checking for $ac_word... " >&6; }
11155 if ${ac_cv_path_GUILE+:} false; then :
11156   $as_echo_n "(cached) " >&6
11157 else
11158   case $GUILE in
11159   [\\/]* | ?:[\\/]*)
11160   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
11161   ;;
11162   *)
11163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11165 do
11166   IFS=$as_save_IFS
11167   test -z "$as_dir" && as_dir=.
11168     for ac_exec_ext in '' $ac_executable_extensions; do
11169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
11171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172     break 2
11173   fi
11174 done
11175   done
11176 IFS=$as_save_IFS
11177
11178   ;;
11179 esac
11180 fi
11181 GUILE=$ac_cv_path_GUILE
11182 if test -n "$GUILE"; then
11183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
11184 $as_echo "$GUILE" >&6; }
11185 else
11186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 $as_echo "no" >&6; }
11188 fi
11189
11190
11191   if test "$GUILE" = "" ; then
11192       as_fn_error $? "guile required but not found" "$LINENO" 5
11193   fi
11194
11195   # Extract the first word of "guile-config", so it can be a program name with args.
11196 set dummy guile-config; ac_word=$2
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11198 $as_echo_n "checking for $ac_word... " >&6; }
11199 if ${ac_cv_path_GUILE_CONFIG+:} false; then :
11200   $as_echo_n "(cached) " >&6
11201 else
11202   case $GUILE_CONFIG in
11203   [\\/]* | ?:[\\/]*)
11204   ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
11205   ;;
11206   *)
11207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH
11209 do
11210   IFS=$as_save_IFS
11211   test -z "$as_dir" && as_dir=.
11212     for ac_exec_ext in '' $ac_executable_extensions; do
11213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11214     ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216     break 2
11217   fi
11218 done
11219   done
11220 IFS=$as_save_IFS
11221
11222   ;;
11223 esac
11224 fi
11225 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
11226 if test -n "$GUILE_CONFIG"; then
11227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
11228 $as_echo "$GUILE_CONFIG" >&6; }
11229 else
11230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231 $as_echo "no" >&6; }
11232 fi
11233
11234
11235   if test "$GUILE_CONFIG" = "" ; then
11236       as_fn_error $? "guile-config required but not found" "$LINENO" 5
11237   fi
11238
11239   # Extract the first word of "guile-tools", so it can be a program name with args.
11240 set dummy guile-tools; ac_word=$2
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11242 $as_echo_n "checking for $ac_word... " >&6; }
11243 if ${ac_cv_path_GUILE_TOOLS+:} false; then :
11244   $as_echo_n "(cached) " >&6
11245 else
11246   case $GUILE_TOOLS in
11247   [\\/]* | ?:[\\/]*)
11248   ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
11249   ;;
11250   *)
11251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252 for as_dir in $PATH
11253 do
11254   IFS=$as_save_IFS
11255   test -z "$as_dir" && as_dir=.
11256     for ac_exec_ext in '' $ac_executable_extensions; do
11257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11258     ac_cv_path_GUILE_TOOLS="$as_dir/$ac_word$ac_exec_ext"
11259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11260     break 2
11261   fi
11262 done
11263   done
11264 IFS=$as_save_IFS
11265
11266   ;;
11267 esac
11268 fi
11269 GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
11270 if test -n "$GUILE_TOOLS"; then
11271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
11272 $as_echo "$GUILE_TOOLS" >&6; }
11273 else
11274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275 $as_echo "no" >&6; }
11276 fi
11277
11278
11279
11280
11281         { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile compile flags" >&5
11282 $as_echo_n "checking libguile compile flags... " >&6; }
11283   GUILE_CFLAGS="`$GUILE_CONFIG compile`"
11284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CFLAGS" >&5
11285 $as_echo "$GUILE_CFLAGS" >&6; }
11286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile link flags" >&5
11287 $as_echo_n "checking libguile link flags... " >&6; }
11288   GUILE_LDFLAGS="`$GUILE_CONFIG link`"
11289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LDFLAGS" >&5
11290 $as_echo "$GUILE_LDFLAGS" >&6; }
11291
11292
11293
11294
11295       save_CFLAGS="$CFLAGS"
11296       save_LIBS="$LIBS"
11297       CFLAGS="$CFLAGS $GUILE_CFLAGS"
11298       LIBS="$LIBS $GUILE_LDFLAGS"
11299       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU Guile is recent enough" >&5
11300 $as_echo_n "checking whether GNU Guile is recent enough... " >&6; }
11301       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h.  */
11303
11304 /* Override any GCC internal prototype to avoid an error.
11305    Use char because int might match the return type of a GCC
11306    builtin and then its argument prototype would still apply.  */
11307 #ifdef __cplusplus
11308 extern "C"
11309 #endif
11310 char scm_from_locale_string ();
11311 int
11312 main ()
11313 {
11314 return scm_from_locale_string ();
11315   ;
11316   return 0;
11317 }
11318 _ACEOF
11319 if ac_fn_c_try_link "$LINENO"; then :
11320
11321 else
11322   opt_guile_bindings=no
11323 fi
11324 rm -f core conftest.err conftest.$ac_objext \
11325     conftest$ac_exeext conftest.$ac_ext
11326       CFLAGS="$save_CFLAGS"
11327       LIBS="$save_LIBS"
11328
11329       if test "$opt_guile_bindings" = "yes"; then
11330         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11331 $as_echo "yes" >&6; }
11332         case "x$with_guile_site_dir" in
11333              xno)
11334                 # Use the default $(GUILE_SITE).
11335                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile site directory" >&5
11336 $as_echo_n "checking for Guile site directory... " >&6; }
11337   GUILE_SITE=`$GUILE_CONFIG info pkgdatadir`/site
11338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_SITE" >&5
11339 $as_echo "$GUILE_SITE" >&6; }
11340
11341
11342                 ;;
11343              x|xyes)
11344                 # Automatically derive $(GUILE_SITE) from $(pkgdatadir).  This
11345                 # hack is used to allow `distcheck' to work (see
11346                 # `DISTCHECK_CONFIGURE_FLAGS' in the top-level `Makefile.am').
11347                 GUILE_SITE="\$(datadir)/guile/site"
11348
11349                 ;;
11350              *)
11351                 # Use the user-specified directory as $(GUILE_SITE).
11352                 GUILE_SITE="$with_guile_site_dir"
11353
11354                 ;;
11355         esac
11356         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports -fgnu89-inline" >&5
11357 $as_echo_n "checking whether gcc supports -fgnu89-inline... " >&6; }
11358         _gcc_cflags_save="$CFLAGS"
11359         CFLAGS="${CFLAGS} -fgnu89-inline"
11360         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h.  */
11362
11363 int
11364 main ()
11365 {
11366
11367   ;
11368   return 0;
11369 }
11370 _ACEOF
11371 if ac_fn_c_try_compile "$LINENO"; then :
11372   gnu89_inline=yes
11373 else
11374   gnu89_inline=no
11375 fi
11376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnu89_inline" >&5
11378 $as_echo "$gnu89_inline" >&6; }
11379         CFLAGS="$_gcc_cflags_save"
11380
11381         # Optional Guile functions.
11382         save_CFLAGS="$CFLAGS"
11383         save_LIBS="$LIBS"
11384         CFLAGS="$CFLAGS $GUILE_CFLAGS"
11385         LIBS="$LIBS $GUILE_LDFLAGS"
11386         for ac_func in scm_gc_malloc_pointerless
11387 do :
11388   ac_fn_c_check_func "$LINENO" "scm_gc_malloc_pointerless" "ac_cv_func_scm_gc_malloc_pointerless"
11389 if test "x$ac_cv_func_scm_gc_malloc_pointerless" = xyes; then :
11390   cat >>confdefs.h <<_ACEOF
11391 #define HAVE_SCM_GC_MALLOC_POINTERLESS 1
11392 _ACEOF
11393
11394 fi
11395 done
11396
11397         CFLAGS="$save_CFLAGS"
11398         LIBS="$save_LIBS"
11399       else
11400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401 $as_echo "no" >&6; }
11402         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A sufficiently recent GNU Guile not found.  Guile bindings not built." >&5
11403 $as_echo "$as_me: WARNING: A sufficiently recent GNU Guile not found.  Guile bindings not built." >&2;}
11404         opt_guile_bindings=no
11405       fi
11406    fi
11407 fi
11408  if test "$opt_guile_bindings" = "yes"; then
11409   HAVE_GUILE_TRUE=
11410   HAVE_GUILE_FALSE='#'
11411 else
11412   HAVE_GUILE_TRUE='#'
11413   HAVE_GUILE_FALSE=
11414 fi
11415
11416  if test "$gnu89_inline" = "yes"]; then
11417   HAVE_GCC_GNU89_INLINE_OPTION_TRUE=
11418   HAVE_GCC_GNU89_INLINE_OPTION_FALSE='#'
11419 else
11420   HAVE_GCC_GNU89_INLINE_OPTION_TRUE='#'
11421   HAVE_GCC_GNU89_INLINE_OPTION_FALSE=
11422 fi
11423
11424  if test "$GCC" = "yes"; then
11425   HAVE_GCC_TRUE=
11426   HAVE_GCC_FALSE='#'
11427 else
11428   HAVE_GCC_TRUE='#'
11429   HAVE_GCC_FALSE=
11430 fi
11431
11432
11433
11434 SAVED_LIBS=$LIBS
11435
11436 # Check whether --with-included-libcfg was given.
11437 if test "${with_included_libcfg+set}" = set; then :
11438   withval=$with_included_libcfg; libcfg_enabled=$withval
11439 else
11440   libcfg_enabled=no
11441         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfg_get_context in -lcfg+" >&5
11442 $as_echo_n "checking for cfg_get_context in -lcfg+... " >&6; }
11443 if ${ac_cv_lib_cfgp_cfg_get_context+:} false; then :
11444   $as_echo_n "(cached) " >&6
11445 else
11446   ac_check_lib_save_LIBS=$LIBS
11447 LIBS="-lcfg+  $LIBS"
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h.  */
11450
11451 /* Override any GCC internal prototype to avoid an error.
11452    Use char because int might match the return type of a GCC
11453    builtin and then its argument prototype would still apply.  */
11454 #ifdef __cplusplus
11455 extern "C"
11456 #endif
11457 char cfg_get_context ();
11458 int
11459 main ()
11460 {
11461 return cfg_get_context ();
11462   ;
11463   return 0;
11464 }
11465 _ACEOF
11466 if ac_fn_c_try_link "$LINENO"; then :
11467   ac_cv_lib_cfgp_cfg_get_context=yes
11468 else
11469   ac_cv_lib_cfgp_cfg_get_context=no
11470 fi
11471 rm -f core conftest.err conftest.$ac_objext \
11472     conftest$ac_exeext conftest.$ac_ext
11473 LIBS=$ac_check_lib_save_LIBS
11474 fi
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfgp_cfg_get_context" >&5
11476 $as_echo "$ac_cv_lib_cfgp_cfg_get_context" >&6; }
11477 if test "x$ac_cv_lib_cfgp_cfg_get_context" = xyes; then :
11478   :
11479 else
11480   libcfg_enabled=yes
11481                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11482 ***
11483 *** Libcfg+ was not found. Will use the included one." >&5
11484 $as_echo "$as_me: WARNING:
11485 ***
11486 *** Libcfg+ was not found. Will use the included one." >&2;}
11487 fi
11488
11489 fi
11490
11491
11492  if test "$libcfg_enabled" = "no"; then
11493   HAVE_LIBCFG_TRUE=
11494   HAVE_LIBCFG_FALSE='#'
11495 else
11496   HAVE_LIBCFG_TRUE='#'
11497   HAVE_LIBCFG_FALSE=
11498 fi
11499
11500 LIBS=$SAVED_LIBS
11501
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libcfg" >&5
11503 $as_echo_n "checking whether to use the included libcfg... " >&6; }
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcfg_enabled" >&5
11505 $as_echo "$libcfg_enabled" >&6; }
11506
11507 enable_win32_dll=yes
11508
11509 case $host in
11510 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11511   if test -n "$ac_tool_prefix"; then
11512   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11513 set dummy ${ac_tool_prefix}as; ac_word=$2
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515 $as_echo_n "checking for $ac_word... " >&6; }
11516 if ${ac_cv_prog_AS+:} false; then :
11517   $as_echo_n "(cached) " >&6
11518 else
11519   if test -n "$AS"; then
11520   ac_cv_prog_AS="$AS" # Let the user override the test.
11521 else
11522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523 for as_dir in $PATH
11524 do
11525   IFS=$as_save_IFS
11526   test -z "$as_dir" && as_dir=.
11527     for ac_exec_ext in '' $ac_executable_extensions; do
11528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11529     ac_cv_prog_AS="${ac_tool_prefix}as"
11530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11531     break 2
11532   fi
11533 done
11534   done
11535 IFS=$as_save_IFS
11536
11537 fi
11538 fi
11539 AS=$ac_cv_prog_AS
11540 if test -n "$AS"; then
11541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11542 $as_echo "$AS" >&6; }
11543 else
11544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11546 fi
11547
11548
11549 fi
11550 if test -z "$ac_cv_prog_AS"; then
11551   ac_ct_AS=$AS
11552   # Extract the first word of "as", so it can be a program name with args.
11553 set dummy as; ac_word=$2
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11555 $as_echo_n "checking for $ac_word... " >&6; }
11556 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11557   $as_echo_n "(cached) " >&6
11558 else
11559   if test -n "$ac_ct_AS"; then
11560   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11561 else
11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563 for as_dir in $PATH
11564 do
11565   IFS=$as_save_IFS
11566   test -z "$as_dir" && as_dir=.
11567     for ac_exec_ext in '' $ac_executable_extensions; do
11568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11569     ac_cv_prog_ac_ct_AS="as"
11570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11571     break 2
11572   fi
11573 done
11574   done
11575 IFS=$as_save_IFS
11576
11577 fi
11578 fi
11579 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11580 if test -n "$ac_ct_AS"; then
11581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11582 $as_echo "$ac_ct_AS" >&6; }
11583 else
11584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585 $as_echo "no" >&6; }
11586 fi
11587
11588   if test "x$ac_ct_AS" = x; then
11589     AS="false"
11590   else
11591     case $cross_compiling:$ac_tool_warned in
11592 yes:)
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11595 ac_tool_warned=yes ;;
11596 esac
11597     AS=$ac_ct_AS
11598   fi
11599 else
11600   AS="$ac_cv_prog_AS"
11601 fi
11602
11603   if test -n "$ac_tool_prefix"; then
11604   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11605 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607 $as_echo_n "checking for $ac_word... " >&6; }
11608 if ${ac_cv_prog_DLLTOOL+:} false; then :
11609   $as_echo_n "(cached) " >&6
11610 else
11611   if test -n "$DLLTOOL"; then
11612   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11613 else
11614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615 for as_dir in $PATH
11616 do
11617   IFS=$as_save_IFS
11618   test -z "$as_dir" && as_dir=.
11619     for ac_exec_ext in '' $ac_executable_extensions; do
11620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11621     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11623     break 2
11624   fi
11625 done
11626   done
11627 IFS=$as_save_IFS
11628
11629 fi
11630 fi
11631 DLLTOOL=$ac_cv_prog_DLLTOOL
11632 if test -n "$DLLTOOL"; then
11633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11634 $as_echo "$DLLTOOL" >&6; }
11635 else
11636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637 $as_echo "no" >&6; }
11638 fi
11639
11640
11641 fi
11642 if test -z "$ac_cv_prog_DLLTOOL"; then
11643   ac_ct_DLLTOOL=$DLLTOOL
11644   # Extract the first word of "dlltool", so it can be a program name with args.
11645 set dummy dlltool; ac_word=$2
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647 $as_echo_n "checking for $ac_word... " >&6; }
11648 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11649   $as_echo_n "(cached) " >&6
11650 else
11651   if test -n "$ac_ct_DLLTOOL"; then
11652   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11653 else
11654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655 for as_dir in $PATH
11656 do
11657   IFS=$as_save_IFS
11658   test -z "$as_dir" && as_dir=.
11659     for ac_exec_ext in '' $ac_executable_extensions; do
11660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11661     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11663     break 2
11664   fi
11665 done
11666   done
11667 IFS=$as_save_IFS
11668
11669 fi
11670 fi
11671 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11672 if test -n "$ac_ct_DLLTOOL"; then
11673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11674 $as_echo "$ac_ct_DLLTOOL" >&6; }
11675 else
11676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11677 $as_echo "no" >&6; }
11678 fi
11679
11680   if test "x$ac_ct_DLLTOOL" = x; then
11681     DLLTOOL="false"
11682   else
11683     case $cross_compiling:$ac_tool_warned in
11684 yes:)
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11687 ac_tool_warned=yes ;;
11688 esac
11689     DLLTOOL=$ac_ct_DLLTOOL
11690   fi
11691 else
11692   DLLTOOL="$ac_cv_prog_DLLTOOL"
11693 fi
11694
11695   if test -n "$ac_tool_prefix"; then
11696   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11697 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699 $as_echo_n "checking for $ac_word... " >&6; }
11700 if ${ac_cv_prog_OBJDUMP+:} false; then :
11701   $as_echo_n "(cached) " >&6
11702 else
11703   if test -n "$OBJDUMP"; then
11704   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11705 else
11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11708 do
11709   IFS=$as_save_IFS
11710   test -z "$as_dir" && as_dir=.
11711     for ac_exec_ext in '' $ac_executable_extensions; do
11712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11713     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715     break 2
11716   fi
11717 done
11718   done
11719 IFS=$as_save_IFS
11720
11721 fi
11722 fi
11723 OBJDUMP=$ac_cv_prog_OBJDUMP
11724 if test -n "$OBJDUMP"; then
11725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11726 $as_echo "$OBJDUMP" >&6; }
11727 else
11728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729 $as_echo "no" >&6; }
11730 fi
11731
11732
11733 fi
11734 if test -z "$ac_cv_prog_OBJDUMP"; then
11735   ac_ct_OBJDUMP=$OBJDUMP
11736   # Extract the first word of "objdump", so it can be a program name with args.
11737 set dummy objdump; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11741   $as_echo_n "(cached) " >&6
11742 else
11743   if test -n "$ac_ct_OBJDUMP"; then
11744   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11745 else
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747 for as_dir in $PATH
11748 do
11749   IFS=$as_save_IFS
11750   test -z "$as_dir" && as_dir=.
11751     for ac_exec_ext in '' $ac_executable_extensions; do
11752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11753     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11755     break 2
11756   fi
11757 done
11758   done
11759 IFS=$as_save_IFS
11760
11761 fi
11762 fi
11763 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11764 if test -n "$ac_ct_OBJDUMP"; then
11765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11766 $as_echo "$ac_ct_OBJDUMP" >&6; }
11767 else
11768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11770 fi
11771
11772   if test "x$ac_ct_OBJDUMP" = x; then
11773     OBJDUMP="false"
11774   else
11775     case $cross_compiling:$ac_tool_warned in
11776 yes:)
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11779 ac_tool_warned=yes ;;
11780 esac
11781     OBJDUMP=$ac_ct_OBJDUMP
11782   fi
11783 else
11784   OBJDUMP="$ac_cv_prog_OBJDUMP"
11785 fi
11786
11787   ;;
11788 esac
11789
11790 test -z "$AS" && AS=as
11791
11792
11793
11794
11795
11796 test -z "$DLLTOOL" && DLLTOOL=dlltool
11797
11798
11799
11800
11801
11802 test -z "$OBJDUMP" && OBJDUMP=objdump
11803
11804
11805
11806
11807
11808
11809
11810 case `pwd` in
11811   *\ * | *\     *)
11812     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11813 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11814 esac
11815
11816
11817
11818 macro_version='2.4.2'
11819 macro_revision='1.3337'
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833 ltmain="$ac_aux_dir/ltmain.sh"
11834
11835 # Backslashify metacharacters that are still active within
11836 # double-quoted strings.
11837 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11838
11839 # Same as above, but do not quote variable references.
11840 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11841
11842 # Sed substitution to delay expansion of an escaped shell variable in a
11843 # double_quote_subst'ed string.
11844 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11845
11846 # Sed substitution to delay expansion of an escaped single quote.
11847 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11848
11849 # Sed substitution to avoid accidental globbing in evaled expressions
11850 no_glob_subst='s/\*/\\\*/g'
11851
11852 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11853 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11854 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11855
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11857 $as_echo_n "checking how to print strings... " >&6; }
11858 # Test print first, because it will be a builtin if present.
11859 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11860    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11861   ECHO='print -r --'
11862 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11863   ECHO='printf %s\n'
11864 else
11865   # Use this function as a fallback that always works.
11866   func_fallback_echo ()
11867   {
11868     eval 'cat <<_LTECHO_EOF
11869 $1
11870 _LTECHO_EOF'
11871   }
11872   ECHO='func_fallback_echo'
11873 fi
11874
11875 # func_echo_all arg...
11876 # Invoke $ECHO with all args, space-separated.
11877 func_echo_all ()
11878 {
11879     $ECHO ""
11880 }
11881
11882 case "$ECHO" in
11883   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11884 $as_echo "printf" >&6; } ;;
11885   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11886 $as_echo "print -r" >&6; } ;;
11887   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11888 $as_echo "cat" >&6; } ;;
11889 esac
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11905 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11906 if ${ac_cv_path_SED+:} false; then :
11907   $as_echo_n "(cached) " >&6
11908 else
11909             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11910      for ac_i in 1 2 3 4 5 6 7; do
11911        ac_script="$ac_script$as_nl$ac_script"
11912      done
11913      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11914      { ac_script=; unset ac_script;}
11915      if test -z "$SED"; then
11916   ac_path_SED_found=false
11917   # Loop through the user's path and test for each of PROGNAME-LIST
11918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11919 for as_dir in $PATH
11920 do
11921   IFS=$as_save_IFS
11922   test -z "$as_dir" && as_dir=.
11923     for ac_prog in sed gsed; do
11924     for ac_exec_ext in '' $ac_executable_extensions; do
11925       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11926       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11927 # Check for GNU ac_path_SED and select it if it is found.
11928   # Check for GNU $ac_path_SED
11929 case `"$ac_path_SED" --version 2>&1` in
11930 *GNU*)
11931   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11932 *)
11933   ac_count=0
11934   $as_echo_n 0123456789 >"conftest.in"
11935   while :
11936   do
11937     cat "conftest.in" "conftest.in" >"conftest.tmp"
11938     mv "conftest.tmp" "conftest.in"
11939     cp "conftest.in" "conftest.nl"
11940     $as_echo '' >> "conftest.nl"
11941     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11942     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11943     as_fn_arith $ac_count + 1 && ac_count=$as_val
11944     if test $ac_count -gt ${ac_path_SED_max-0}; then
11945       # Best one so far, save it but keep looking for a better one
11946       ac_cv_path_SED="$ac_path_SED"
11947       ac_path_SED_max=$ac_count
11948     fi
11949     # 10*(2^10) chars as input seems more than enough
11950     test $ac_count -gt 10 && break
11951   done
11952   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11953 esac
11954
11955       $ac_path_SED_found && break 3
11956     done
11957   done
11958   done
11959 IFS=$as_save_IFS
11960   if test -z "$ac_cv_path_SED"; then
11961     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11962   fi
11963 else
11964   ac_cv_path_SED=$SED
11965 fi
11966
11967 fi
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11969 $as_echo "$ac_cv_path_SED" >&6; }
11970  SED="$ac_cv_path_SED"
11971   rm -f conftest.sed
11972
11973 test -z "$SED" && SED=sed
11974 Xsed="$SED -e 1s/^X//"
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11987 $as_echo_n "checking for fgrep... " >&6; }
11988 if ${ac_cv_path_FGREP+:} false; then :
11989   $as_echo_n "(cached) " >&6
11990 else
11991   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11992    then ac_cv_path_FGREP="$GREP -F"
11993    else
11994      if test -z "$FGREP"; then
11995   ac_path_FGREP_found=false
11996   # Loop through the user's path and test for each of PROGNAME-LIST
11997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11999 do
12000   IFS=$as_save_IFS
12001   test -z "$as_dir" && as_dir=.
12002     for ac_prog in fgrep; do
12003     for ac_exec_ext in '' $ac_executable_extensions; do
12004       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12005       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12006 # Check for GNU ac_path_FGREP and select it if it is found.
12007   # Check for GNU $ac_path_FGREP
12008 case `"$ac_path_FGREP" --version 2>&1` in
12009 *GNU*)
12010   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12011 *)
12012   ac_count=0
12013   $as_echo_n 0123456789 >"conftest.in"
12014   while :
12015   do
12016     cat "conftest.in" "conftest.in" >"conftest.tmp"
12017     mv "conftest.tmp" "conftest.in"
12018     cp "conftest.in" "conftest.nl"
12019     $as_echo 'FGREP' >> "conftest.nl"
12020     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12021     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12022     as_fn_arith $ac_count + 1 && ac_count=$as_val
12023     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12024       # Best one so far, save it but keep looking for a better one
12025       ac_cv_path_FGREP="$ac_path_FGREP"
12026       ac_path_FGREP_max=$ac_count
12027     fi
12028     # 10*(2^10) chars as input seems more than enough
12029     test $ac_count -gt 10 && break
12030   done
12031   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12032 esac
12033
12034       $ac_path_FGREP_found && break 3
12035     done
12036   done
12037   done
12038 IFS=$as_save_IFS
12039   if test -z "$ac_cv_path_FGREP"; then
12040     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12041   fi
12042 else
12043   ac_cv_path_FGREP=$FGREP
12044 fi
12045
12046    fi
12047 fi
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12049 $as_echo "$ac_cv_path_FGREP" >&6; }
12050  FGREP="$ac_cv_path_FGREP"
12051
12052
12053 test -z "$GREP" && GREP=grep
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073 # Check whether --with-gnu-ld was given.
12074 if test "${with_gnu_ld+set}" = set; then :
12075   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12076 else
12077   with_gnu_ld=no
12078 fi
12079
12080 ac_prog=ld
12081 if test "$GCC" = yes; then
12082   # Check if gcc -print-prog-name=ld gives a path.
12083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12084 $as_echo_n "checking for ld used by $CC... " >&6; }
12085   case $host in
12086   *-*-mingw*)
12087     # gcc leaves a trailing carriage return which upsets mingw
12088     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12089   *)
12090     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12091   esac
12092   case $ac_prog in
12093     # Accept absolute paths.
12094     [\\/]* | ?:[\\/]*)
12095       re_direlt='/[^/][^/]*/\.\./'
12096       # Canonicalize the pathname of ld
12097       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12098       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12099         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12100       done
12101       test -z "$LD" && LD="$ac_prog"
12102       ;;
12103   "")
12104     # If it fails, then pretend we aren't using GCC.
12105     ac_prog=ld
12106     ;;
12107   *)
12108     # If it is relative, then search for the first ld in PATH.
12109     with_gnu_ld=unknown
12110     ;;
12111   esac
12112 elif test "$with_gnu_ld" = yes; then
12113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12114 $as_echo_n "checking for GNU ld... " >&6; }
12115 else
12116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12117 $as_echo_n "checking for non-GNU ld... " >&6; }
12118 fi
12119 if ${lt_cv_path_LD+:} false; then :
12120   $as_echo_n "(cached) " >&6
12121 else
12122   if test -z "$LD"; then
12123   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12124   for ac_dir in $PATH; do
12125     IFS="$lt_save_ifs"
12126     test -z "$ac_dir" && ac_dir=.
12127     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12128       lt_cv_path_LD="$ac_dir/$ac_prog"
12129       # Check to see if the program is GNU ld.  I'd rather use --version,
12130       # but apparently some variants of GNU ld only accept -v.
12131       # Break only if it was the GNU/non-GNU ld that we prefer.
12132       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12133       *GNU* | *'with BFD'*)
12134         test "$with_gnu_ld" != no && break
12135         ;;
12136       *)
12137         test "$with_gnu_ld" != yes && break
12138         ;;
12139       esac
12140     fi
12141   done
12142   IFS="$lt_save_ifs"
12143 else
12144   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12145 fi
12146 fi
12147
12148 LD="$lt_cv_path_LD"
12149 if test -n "$LD"; then
12150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12151 $as_echo "$LD" >&6; }
12152 else
12153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12155 fi
12156 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12158 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12159 if ${lt_cv_prog_gnu_ld+:} false; then :
12160   $as_echo_n "(cached) " >&6
12161 else
12162   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12163 case `$LD -v 2>&1 </dev/null` in
12164 *GNU* | *'with BFD'*)
12165   lt_cv_prog_gnu_ld=yes
12166   ;;
12167 *)
12168   lt_cv_prog_gnu_ld=no
12169   ;;
12170 esac
12171 fi
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12173 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12174 with_gnu_ld=$lt_cv_prog_gnu_ld
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12185 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12186 if ${lt_cv_path_NM+:} false; then :
12187   $as_echo_n "(cached) " >&6
12188 else
12189   if test -n "$NM"; then
12190   # Let the user override the test.
12191   lt_cv_path_NM="$NM"
12192 else
12193   lt_nm_to_check="${ac_tool_prefix}nm"
12194   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12195     lt_nm_to_check="$lt_nm_to_check nm"
12196   fi
12197   for lt_tmp_nm in $lt_nm_to_check; do
12198     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12199     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12200       IFS="$lt_save_ifs"
12201       test -z "$ac_dir" && ac_dir=.
12202       tmp_nm="$ac_dir/$lt_tmp_nm"
12203       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12204         # Check to see if the nm accepts a BSD-compat flag.
12205         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12206         #   nm: unknown option "B" ignored
12207         # Tru64's nm complains that /dev/null is an invalid object file
12208         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12209         */dev/null* | *'Invalid file or object type'*)
12210           lt_cv_path_NM="$tmp_nm -B"
12211           break
12212           ;;
12213         *)
12214           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12215           */dev/null*)
12216             lt_cv_path_NM="$tmp_nm -p"
12217             break
12218             ;;
12219           *)
12220             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12221             continue # so that we can try to find one that supports BSD flags
12222             ;;
12223           esac
12224           ;;
12225         esac
12226       fi
12227     done
12228     IFS="$lt_save_ifs"
12229   done
12230   : ${lt_cv_path_NM=no}
12231 fi
12232 fi
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12234 $as_echo "$lt_cv_path_NM" >&6; }
12235 if test "$lt_cv_path_NM" != "no"; then
12236   NM="$lt_cv_path_NM"
12237 else
12238   # Didn't find any BSD compatible name lister, look for dumpbin.
12239   if test -n "$DUMPBIN"; then :
12240     # Let the user override the test.
12241   else
12242     if test -n "$ac_tool_prefix"; then
12243   for ac_prog in dumpbin "link -dump"
12244   do
12245     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248 $as_echo_n "checking for $ac_word... " >&6; }
12249 if ${ac_cv_prog_DUMPBIN+:} false; then :
12250   $as_echo_n "(cached) " >&6
12251 else
12252   if test -n "$DUMPBIN"; then
12253   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12254 else
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12257 do
12258   IFS=$as_save_IFS
12259   test -z "$as_dir" && as_dir=.
12260     for ac_exec_ext in '' $ac_executable_extensions; do
12261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12262     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264     break 2
12265   fi
12266 done
12267   done
12268 IFS=$as_save_IFS
12269
12270 fi
12271 fi
12272 DUMPBIN=$ac_cv_prog_DUMPBIN
12273 if test -n "$DUMPBIN"; then
12274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12275 $as_echo "$DUMPBIN" >&6; }
12276 else
12277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12279 fi
12280
12281
12282     test -n "$DUMPBIN" && break
12283   done
12284 fi
12285 if test -z "$DUMPBIN"; then
12286   ac_ct_DUMPBIN=$DUMPBIN
12287   for ac_prog in dumpbin "link -dump"
12288 do
12289   # Extract the first word of "$ac_prog", so it can be a program name with args.
12290 set dummy $ac_prog; ac_word=$2
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12292 $as_echo_n "checking for $ac_word... " >&6; }
12293 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
12294   $as_echo_n "(cached) " >&6
12295 else
12296   if test -n "$ac_ct_DUMPBIN"; then
12297   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12298 else
12299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300 for as_dir in $PATH
12301 do
12302   IFS=$as_save_IFS
12303   test -z "$as_dir" && as_dir=.
12304     for ac_exec_ext in '' $ac_executable_extensions; do
12305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12306     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12308     break 2
12309   fi
12310 done
12311   done
12312 IFS=$as_save_IFS
12313
12314 fi
12315 fi
12316 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12317 if test -n "$ac_ct_DUMPBIN"; then
12318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12319 $as_echo "$ac_ct_DUMPBIN" >&6; }
12320 else
12321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322 $as_echo "no" >&6; }
12323 fi
12324
12325
12326   test -n "$ac_ct_DUMPBIN" && break
12327 done
12328
12329   if test "x$ac_ct_DUMPBIN" = x; then
12330     DUMPBIN=":"
12331   else
12332     case $cross_compiling:$ac_tool_warned in
12333 yes:)
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12336 ac_tool_warned=yes ;;
12337 esac
12338     DUMPBIN=$ac_ct_DUMPBIN
12339   fi
12340 fi
12341
12342     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12343     *COFF*)
12344       DUMPBIN="$DUMPBIN -symbols"
12345       ;;
12346     *)
12347       DUMPBIN=:
12348       ;;
12349     esac
12350   fi
12351
12352   if test "$DUMPBIN" != ":"; then
12353     NM="$DUMPBIN"
12354   fi
12355 fi
12356 test -z "$NM" && NM=nm
12357
12358
12359
12360
12361
12362
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12364 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12365 if ${lt_cv_nm_interface+:} false; then :
12366   $as_echo_n "(cached) " >&6
12367 else
12368   lt_cv_nm_interface="BSD nm"
12369   echo "int some_variable = 0;" > conftest.$ac_ext
12370   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12371   (eval "$ac_compile" 2>conftest.err)
12372   cat conftest.err >&5
12373   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12374   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12375   cat conftest.err >&5
12376   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12377   cat conftest.out >&5
12378   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12379     lt_cv_nm_interface="MS dumpbin"
12380   fi
12381   rm -f conftest*
12382 fi
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12384 $as_echo "$lt_cv_nm_interface" >&6; }
12385
12386 # find the maximum length of command line arguments
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12388 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12389 if ${lt_cv_sys_max_cmd_len+:} false; then :
12390   $as_echo_n "(cached) " >&6
12391 else
12392     i=0
12393   teststring="ABCD"
12394
12395   case $build_os in
12396   msdosdjgpp*)
12397     # On DJGPP, this test can blow up pretty badly due to problems in libc
12398     # (any single argument exceeding 2000 bytes causes a buffer overrun
12399     # during glob expansion).  Even if it were fixed, the result of this
12400     # check would be larger than it should be.
12401     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12402     ;;
12403
12404   gnu*)
12405     # Under GNU Hurd, this test is not required because there is
12406     # no limit to the length of command line arguments.
12407     # Libtool will interpret -1 as no limit whatsoever
12408     lt_cv_sys_max_cmd_len=-1;
12409     ;;
12410
12411   cygwin* | mingw* | cegcc*)
12412     # On Win9x/ME, this test blows up -- it succeeds, but takes
12413     # about 5 minutes as the teststring grows exponentially.
12414     # Worse, since 9x/ME are not pre-emptively multitasking,
12415     # you end up with a "frozen" computer, even though with patience
12416     # the test eventually succeeds (with a max line length of 256k).
12417     # Instead, let's just punt: use the minimum linelength reported by
12418     # all of the supported platforms: 8192 (on NT/2K/XP).
12419     lt_cv_sys_max_cmd_len=8192;
12420     ;;
12421
12422   mint*)
12423     # On MiNT this can take a long time and run out of memory.
12424     lt_cv_sys_max_cmd_len=8192;
12425     ;;
12426
12427   amigaos*)
12428     # On AmigaOS with pdksh, this test takes hours, literally.
12429     # So we just punt and use a minimum line length of 8192.
12430     lt_cv_sys_max_cmd_len=8192;
12431     ;;
12432
12433   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12434     # This has been around since 386BSD, at least.  Likely further.
12435     if test -x /sbin/sysctl; then
12436       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12437     elif test -x /usr/sbin/sysctl; then
12438       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12439     else
12440       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12441     fi
12442     # And add a safety zone
12443     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12444     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12445     ;;
12446
12447   interix*)
12448     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12449     lt_cv_sys_max_cmd_len=196608
12450     ;;
12451
12452   os2*)
12453     # The test takes a long time on OS/2.
12454     lt_cv_sys_max_cmd_len=8192
12455     ;;
12456
12457   osf*)
12458     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12459     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12460     # nice to cause kernel panics so lets avoid the loop below.
12461     # First set a reasonable default.
12462     lt_cv_sys_max_cmd_len=16384
12463     #
12464     if test -x /sbin/sysconfig; then
12465       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12466         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12467       esac
12468     fi
12469     ;;
12470   sco3.2v5*)
12471     lt_cv_sys_max_cmd_len=102400
12472     ;;
12473   sysv5* | sco5v6* | sysv4.2uw2*)
12474     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12475     if test -n "$kargmax"; then
12476       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12477     else
12478       lt_cv_sys_max_cmd_len=32768
12479     fi
12480     ;;
12481   *)
12482     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12483     if test -n "$lt_cv_sys_max_cmd_len"; then
12484       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12485       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12486     else
12487       # Make teststring a little bigger before we do anything with it.
12488       # a 1K string should be a reasonable start.
12489       for i in 1 2 3 4 5 6 7 8 ; do
12490         teststring=$teststring$teststring
12491       done
12492       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12493       # If test is not a shell built-in, we'll probably end up computing a
12494       # maximum length that is only half of the actual maximum length, but
12495       # we can't tell.
12496       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
12497                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12498               test $i != 17 # 1/2 MB should be enough
12499       do
12500         i=`expr $i + 1`
12501         teststring=$teststring$teststring
12502       done
12503       # Only check the string length outside the loop.
12504       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12505       teststring=
12506       # Add a significant safety factor because C++ compilers can tack on
12507       # massive amounts of additional arguments before passing them to the
12508       # linker.  It appears as though 1/2 is a usable value.
12509       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12510     fi
12511     ;;
12512   esac
12513
12514 fi
12515
12516 if test -n $lt_cv_sys_max_cmd_len ; then
12517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12518 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12519 else
12520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12521 $as_echo "none" >&6; }
12522 fi
12523 max_cmd_len=$lt_cv_sys_max_cmd_len
12524
12525
12526
12527
12528
12529
12530 : ${CP="cp -f"}
12531 : ${MV="mv -f"}
12532 : ${RM="rm -f"}
12533
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12535 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12536 # Try some XSI features
12537 xsi_shell=no
12538 ( _lt_dummy="a/b/c"
12539   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
12540       = c,a/b,b/c, \
12541     && eval 'test $(( 1 + 1 )) -eq 2 \
12542     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12543   && xsi_shell=yes
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12545 $as_echo "$xsi_shell" >&6; }
12546
12547
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12549 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12550 lt_shell_append=no
12551 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12552     >/dev/null 2>&1 \
12553   && lt_shell_append=yes
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12555 $as_echo "$lt_shell_append" >&6; }
12556
12557
12558 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12559   lt_unset=unset
12560 else
12561   lt_unset=false
12562 fi
12563
12564
12565
12566
12567
12568 # test EBCDIC or ASCII
12569 case `echo X|tr X '\101'` in
12570  A) # ASCII based system
12571     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12572   lt_SP2NL='tr \040 \012'
12573   lt_NL2SP='tr \015\012 \040\040'
12574   ;;
12575  *) # EBCDIC based system
12576   lt_SP2NL='tr \100 \n'
12577   lt_NL2SP='tr \r\n \100\100'
12578   ;;
12579 esac
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12590 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
12591 if ${lt_cv_to_host_file_cmd+:} false; then :
12592   $as_echo_n "(cached) " >&6
12593 else
12594   case $host in
12595   *-*-mingw* )
12596     case $build in
12597       *-*-mingw* ) # actually msys
12598         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12599         ;;
12600       *-*-cygwin* )
12601         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12602         ;;
12603       * ) # otherwise, assume *nix
12604         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12605         ;;
12606     esac
12607     ;;
12608   *-*-cygwin* )
12609     case $build in
12610       *-*-mingw* ) # actually msys
12611         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12612         ;;
12613       *-*-cygwin* )
12614         lt_cv_to_host_file_cmd=func_convert_file_noop
12615         ;;
12616       * ) # otherwise, assume *nix
12617         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12618         ;;
12619     esac
12620     ;;
12621   * ) # unhandled hosts (and "normal" native builds)
12622     lt_cv_to_host_file_cmd=func_convert_file_noop
12623     ;;
12624 esac
12625
12626 fi
12627
12628 to_host_file_cmd=$lt_cv_to_host_file_cmd
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12630 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
12631
12632
12633
12634
12635
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12637 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
12638 if ${lt_cv_to_tool_file_cmd+:} false; then :
12639   $as_echo_n "(cached) " >&6
12640 else
12641   #assume ordinary cross tools, or native build.
12642 lt_cv_to_tool_file_cmd=func_convert_file_noop
12643 case $host in
12644   *-*-mingw* )
12645     case $build in
12646       *-*-mingw* ) # actually msys
12647         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12648         ;;
12649     esac
12650     ;;
12651 esac
12652
12653 fi
12654
12655 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12657 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
12658
12659
12660
12661
12662
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12664 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12665 if ${lt_cv_ld_reload_flag+:} false; then :
12666   $as_echo_n "(cached) " >&6
12667 else
12668   lt_cv_ld_reload_flag='-r'
12669 fi
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12671 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12672 reload_flag=$lt_cv_ld_reload_flag
12673 case $reload_flag in
12674 "" | " "*) ;;
12675 *) reload_flag=" $reload_flag" ;;
12676 esac
12677 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12678 case $host_os in
12679   cygwin* | mingw* | pw32* | cegcc*)
12680     if test "$GCC" != yes; then
12681       reload_cmds=false
12682     fi
12683     ;;
12684   darwin*)
12685     if test "$GCC" = yes; then
12686       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12687     else
12688       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12689     fi
12690     ;;
12691 esac
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701 if test -n "$ac_tool_prefix"; then
12702   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12703 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12705 $as_echo_n "checking for $ac_word... " >&6; }
12706 if ${ac_cv_prog_OBJDUMP+:} false; then :
12707   $as_echo_n "(cached) " >&6
12708 else
12709   if test -n "$OBJDUMP"; then
12710   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12711 else
12712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12713 for as_dir in $PATH
12714 do
12715   IFS=$as_save_IFS
12716   test -z "$as_dir" && as_dir=.
12717     for ac_exec_ext in '' $ac_executable_extensions; do
12718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12719     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12721     break 2
12722   fi
12723 done
12724   done
12725 IFS=$as_save_IFS
12726
12727 fi
12728 fi
12729 OBJDUMP=$ac_cv_prog_OBJDUMP
12730 if test -n "$OBJDUMP"; then
12731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12732 $as_echo "$OBJDUMP" >&6; }
12733 else
12734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12736 fi
12737
12738
12739 fi
12740 if test -z "$ac_cv_prog_OBJDUMP"; then
12741   ac_ct_OBJDUMP=$OBJDUMP
12742   # Extract the first word of "objdump", so it can be a program name with args.
12743 set dummy objdump; ac_word=$2
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745 $as_echo_n "checking for $ac_word... " >&6; }
12746 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12747   $as_echo_n "(cached) " >&6
12748 else
12749   if test -n "$ac_ct_OBJDUMP"; then
12750   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12751 else
12752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753 for as_dir in $PATH
12754 do
12755   IFS=$as_save_IFS
12756   test -z "$as_dir" && as_dir=.
12757     for ac_exec_ext in '' $ac_executable_extensions; do
12758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12759     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12761     break 2
12762   fi
12763 done
12764   done
12765 IFS=$as_save_IFS
12766
12767 fi
12768 fi
12769 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12770 if test -n "$ac_ct_OBJDUMP"; then
12771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12772 $as_echo "$ac_ct_OBJDUMP" >&6; }
12773 else
12774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775 $as_echo "no" >&6; }
12776 fi
12777
12778   if test "x$ac_ct_OBJDUMP" = x; then
12779     OBJDUMP="false"
12780   else
12781     case $cross_compiling:$ac_tool_warned in
12782 yes:)
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12785 ac_tool_warned=yes ;;
12786 esac
12787     OBJDUMP=$ac_ct_OBJDUMP
12788   fi
12789 else
12790   OBJDUMP="$ac_cv_prog_OBJDUMP"
12791 fi
12792
12793 test -z "$OBJDUMP" && OBJDUMP=objdump
12794
12795
12796
12797
12798
12799
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12801 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12802 if ${lt_cv_deplibs_check_method+:} false; then :
12803   $as_echo_n "(cached) " >&6
12804 else
12805   lt_cv_file_magic_cmd='$MAGIC_CMD'
12806 lt_cv_file_magic_test_file=
12807 lt_cv_deplibs_check_method='unknown'
12808 # Need to set the preceding variable on all platforms that support
12809 # interlibrary dependencies.
12810 # 'none' -- dependencies not supported.
12811 # `unknown' -- same as none, but documents that we really don't know.
12812 # 'pass_all' -- all dependencies passed with no checks.
12813 # 'test_compile' -- check by making test program.
12814 # 'file_magic [[regex]]' -- check by looking for files in library path
12815 # which responds to the $file_magic_cmd with a given extended regex.
12816 # If you have `file' or equivalent on your system and you're not sure
12817 # whether `pass_all' will *always* work, you probably want this one.
12818
12819 case $host_os in
12820 aix[4-9]*)
12821   lt_cv_deplibs_check_method=pass_all
12822   ;;
12823
12824 beos*)
12825   lt_cv_deplibs_check_method=pass_all
12826   ;;
12827
12828 bsdi[45]*)
12829   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12830   lt_cv_file_magic_cmd='/usr/bin/file -L'
12831   lt_cv_file_magic_test_file=/shlib/libc.so
12832   ;;
12833
12834 cygwin*)
12835   # func_win32_libid is a shell function defined in ltmain.sh
12836   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12837   lt_cv_file_magic_cmd='func_win32_libid'
12838   ;;
12839
12840 mingw* | pw32*)
12841   # Base MSYS/MinGW do not provide the 'file' command needed by
12842   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12843   # unless we find 'file', for example because we are cross-compiling.
12844   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12845   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12846     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12847     lt_cv_file_magic_cmd='func_win32_libid'
12848   else
12849     # Keep this pattern in sync with the one in func_win32_libid.
12850     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12851     lt_cv_file_magic_cmd='$OBJDUMP -f'
12852   fi
12853   ;;
12854
12855 cegcc*)
12856   # use the weaker test based on 'objdump'. See mingw*.
12857   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12858   lt_cv_file_magic_cmd='$OBJDUMP -f'
12859   ;;
12860
12861 darwin* | rhapsody*)
12862   lt_cv_deplibs_check_method=pass_all
12863   ;;
12864
12865 freebsd* | dragonfly*)
12866   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12867     case $host_cpu in
12868     i*86 )
12869       # Not sure whether the presence of OpenBSD here was a mistake.
12870       # Let's accept both of them until this is cleared up.
12871       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12872       lt_cv_file_magic_cmd=/usr/bin/file
12873       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12874       ;;
12875     esac
12876   else
12877     lt_cv_deplibs_check_method=pass_all
12878   fi
12879   ;;
12880
12881 gnu*)
12882   lt_cv_deplibs_check_method=pass_all
12883   ;;
12884
12885 haiku*)
12886   lt_cv_deplibs_check_method=pass_all
12887   ;;
12888
12889 hpux10.20* | hpux11*)
12890   lt_cv_file_magic_cmd=/usr/bin/file
12891   case $host_cpu in
12892   ia64*)
12893     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12894     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12895     ;;
12896   hppa*64*)
12897     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]'
12898     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12899     ;;
12900   *)
12901     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12902     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12903     ;;
12904   esac
12905   ;;
12906
12907 interix[3-9]*)
12908   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12909   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12910   ;;
12911
12912 irix5* | irix6* | nonstopux*)
12913   case $LD in
12914   *-32|*"-32 ") libmagic=32-bit;;
12915   *-n32|*"-n32 ") libmagic=N32;;
12916   *-64|*"-64 ") libmagic=64-bit;;
12917   *) libmagic=never-match;;
12918   esac
12919   lt_cv_deplibs_check_method=pass_all
12920   ;;
12921
12922 # This must be glibc/ELF.
12923 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12924   lt_cv_deplibs_check_method=pass_all
12925   ;;
12926
12927 netbsd* | netbsdelf*-gnu)
12928   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12929     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12930   else
12931     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12932   fi
12933   ;;
12934
12935 newos6*)
12936   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12937   lt_cv_file_magic_cmd=/usr/bin/file
12938   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12939   ;;
12940
12941 *nto* | *qnx*)
12942   lt_cv_deplibs_check_method=pass_all
12943   ;;
12944
12945 openbsd*)
12946   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12947     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12948   else
12949     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12950   fi
12951   ;;
12952
12953 osf3* | osf4* | osf5*)
12954   lt_cv_deplibs_check_method=pass_all
12955   ;;
12956
12957 rdos*)
12958   lt_cv_deplibs_check_method=pass_all
12959   ;;
12960
12961 solaris*)
12962   lt_cv_deplibs_check_method=pass_all
12963   ;;
12964
12965 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12966   lt_cv_deplibs_check_method=pass_all
12967   ;;
12968
12969 sysv4 | sysv4.3*)
12970   case $host_vendor in
12971   motorola)
12972     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]'
12973     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12974     ;;
12975   ncr)
12976     lt_cv_deplibs_check_method=pass_all
12977     ;;
12978   sequent)
12979     lt_cv_file_magic_cmd='/bin/file'
12980     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12981     ;;
12982   sni)
12983     lt_cv_file_magic_cmd='/bin/file'
12984     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12985     lt_cv_file_magic_test_file=/lib/libc.so
12986     ;;
12987   siemens)
12988     lt_cv_deplibs_check_method=pass_all
12989     ;;
12990   pc)
12991     lt_cv_deplibs_check_method=pass_all
12992     ;;
12993   esac
12994   ;;
12995
12996 tpf*)
12997   lt_cv_deplibs_check_method=pass_all
12998   ;;
12999 esac
13000
13001 fi
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13003 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13004
13005 file_magic_glob=
13006 want_nocaseglob=no
13007 if test "$build" = "$host"; then
13008   case $host_os in
13009   mingw* | pw32*)
13010     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13011       want_nocaseglob=yes
13012     else
13013       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13014     fi
13015     ;;
13016   esac
13017 fi
13018
13019 file_magic_cmd=$lt_cv_file_magic_cmd
13020 deplibs_check_method=$lt_cv_deplibs_check_method
13021 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044 if test -n "$ac_tool_prefix"; then
13045   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13046 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13048 $as_echo_n "checking for $ac_word... " >&6; }
13049 if ${ac_cv_prog_DLLTOOL+:} false; then :
13050   $as_echo_n "(cached) " >&6
13051 else
13052   if test -n "$DLLTOOL"; then
13053   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13054 else
13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $PATH
13057 do
13058   IFS=$as_save_IFS
13059   test -z "$as_dir" && as_dir=.
13060     for ac_exec_ext in '' $ac_executable_extensions; do
13061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13062     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13064     break 2
13065   fi
13066 done
13067   done
13068 IFS=$as_save_IFS
13069
13070 fi
13071 fi
13072 DLLTOOL=$ac_cv_prog_DLLTOOL
13073 if test -n "$DLLTOOL"; then
13074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13075 $as_echo "$DLLTOOL" >&6; }
13076 else
13077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13079 fi
13080
13081
13082 fi
13083 if test -z "$ac_cv_prog_DLLTOOL"; then
13084   ac_ct_DLLTOOL=$DLLTOOL
13085   # Extract the first word of "dlltool", so it can be a program name with args.
13086 set dummy dlltool; ac_word=$2
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13088 $as_echo_n "checking for $ac_word... " >&6; }
13089 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13090   $as_echo_n "(cached) " >&6
13091 else
13092   if test -n "$ac_ct_DLLTOOL"; then
13093   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13094 else
13095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in $PATH
13097 do
13098   IFS=$as_save_IFS
13099   test -z "$as_dir" && as_dir=.
13100     for ac_exec_ext in '' $ac_executable_extensions; do
13101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13102     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13104     break 2
13105   fi
13106 done
13107   done
13108 IFS=$as_save_IFS
13109
13110 fi
13111 fi
13112 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13113 if test -n "$ac_ct_DLLTOOL"; then
13114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13115 $as_echo "$ac_ct_DLLTOOL" >&6; }
13116 else
13117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13119 fi
13120
13121   if test "x$ac_ct_DLLTOOL" = x; then
13122     DLLTOOL="false"
13123   else
13124     case $cross_compiling:$ac_tool_warned in
13125 yes:)
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13128 ac_tool_warned=yes ;;
13129 esac
13130     DLLTOOL=$ac_ct_DLLTOOL
13131   fi
13132 else
13133   DLLTOOL="$ac_cv_prog_DLLTOOL"
13134 fi
13135
13136 test -z "$DLLTOOL" && DLLTOOL=dlltool
13137
13138
13139
13140
13141
13142
13143
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13145 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
13146 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
13147   $as_echo_n "(cached) " >&6
13148 else
13149   lt_cv_sharedlib_from_linklib_cmd='unknown'
13150
13151 case $host_os in
13152 cygwin* | mingw* | pw32* | cegcc*)
13153   # two different shell functions defined in ltmain.sh
13154   # decide which to use based on capabilities of $DLLTOOL
13155   case `$DLLTOOL --help 2>&1` in
13156   *--identify-strict*)
13157     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13158     ;;
13159   *)
13160     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13161     ;;
13162   esac
13163   ;;
13164 *)
13165   # fallback: assume linklib IS sharedlib
13166   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
13167   ;;
13168 esac
13169
13170 fi
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13172 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13173 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13174 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13175
13176
13177
13178
13179
13180
13181
13182 if test -n "$ac_tool_prefix"; then
13183   for ac_prog in ar
13184   do
13185     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13188 $as_echo_n "checking for $ac_word... " >&6; }
13189 if ${ac_cv_prog_AR+:} false; then :
13190   $as_echo_n "(cached) " >&6
13191 else
13192   if test -n "$AR"; then
13193   ac_cv_prog_AR="$AR" # Let the user override the test.
13194 else
13195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196 for as_dir in $PATH
13197 do
13198   IFS=$as_save_IFS
13199   test -z "$as_dir" && as_dir=.
13200     for ac_exec_ext in '' $ac_executable_extensions; do
13201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13202     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13204     break 2
13205   fi
13206 done
13207   done
13208 IFS=$as_save_IFS
13209
13210 fi
13211 fi
13212 AR=$ac_cv_prog_AR
13213 if test -n "$AR"; then
13214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13215 $as_echo "$AR" >&6; }
13216 else
13217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218 $as_echo "no" >&6; }
13219 fi
13220
13221
13222     test -n "$AR" && break
13223   done
13224 fi
13225 if test -z "$AR"; then
13226   ac_ct_AR=$AR
13227   for ac_prog in ar
13228 do
13229   # Extract the first word of "$ac_prog", so it can be a program name with args.
13230 set dummy $ac_prog; ac_word=$2
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232 $as_echo_n "checking for $ac_word... " >&6; }
13233 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13234   $as_echo_n "(cached) " >&6
13235 else
13236   if test -n "$ac_ct_AR"; then
13237   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13238 else
13239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240 for as_dir in $PATH
13241 do
13242   IFS=$as_save_IFS
13243   test -z "$as_dir" && as_dir=.
13244     for ac_exec_ext in '' $ac_executable_extensions; do
13245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13246     ac_cv_prog_ac_ct_AR="$ac_prog"
13247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13248     break 2
13249   fi
13250 done
13251   done
13252 IFS=$as_save_IFS
13253
13254 fi
13255 fi
13256 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13257 if test -n "$ac_ct_AR"; then
13258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13259 $as_echo "$ac_ct_AR" >&6; }
13260 else
13261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262 $as_echo "no" >&6; }
13263 fi
13264
13265
13266   test -n "$ac_ct_AR" && break
13267 done
13268
13269   if test "x$ac_ct_AR" = x; then
13270     AR="false"
13271   else
13272     case $cross_compiling:$ac_tool_warned in
13273 yes:)
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13276 ac_tool_warned=yes ;;
13277 esac
13278     AR=$ac_ct_AR
13279   fi
13280 fi
13281
13282 : ${AR=ar}
13283 : ${AR_FLAGS=cru}
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13296 $as_echo_n "checking for archiver @FILE support... " >&6; }
13297 if ${lt_cv_ar_at_file+:} false; then :
13298   $as_echo_n "(cached) " >&6
13299 else
13300   lt_cv_ar_at_file=no
13301    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h.  */
13303
13304 int
13305 main ()
13306 {
13307
13308   ;
13309   return 0;
13310 }
13311 _ACEOF
13312 if ac_fn_c_try_compile "$LINENO"; then :
13313   echo conftest.$ac_objext > conftest.lst
13314       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13315       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13316   (eval $lt_ar_try) 2>&5
13317   ac_status=$?
13318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13319   test $ac_status = 0; }
13320       if test "$ac_status" -eq 0; then
13321         # Ensure the archiver fails upon bogus file names.
13322         rm -f conftest.$ac_objext libconftest.a
13323         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13324   (eval $lt_ar_try) 2>&5
13325   ac_status=$?
13326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13327   test $ac_status = 0; }
13328         if test "$ac_status" -ne 0; then
13329           lt_cv_ar_at_file=@
13330         fi
13331       fi
13332       rm -f conftest.* libconftest.a
13333
13334 fi
13335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13336
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13339 $as_echo "$lt_cv_ar_at_file" >&6; }
13340
13341 if test "x$lt_cv_ar_at_file" = xno; then
13342   archiver_list_spec=
13343 else
13344   archiver_list_spec=$lt_cv_ar_at_file
13345 fi
13346
13347
13348
13349
13350
13351
13352
13353 if test -n "$ac_tool_prefix"; then
13354   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13355 set dummy ${ac_tool_prefix}strip; ac_word=$2
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13357 $as_echo_n "checking for $ac_word... " >&6; }
13358 if ${ac_cv_prog_STRIP+:} false; then :
13359   $as_echo_n "(cached) " >&6
13360 else
13361   if test -n "$STRIP"; then
13362   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13363 else
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $PATH
13366 do
13367   IFS=$as_save_IFS
13368   test -z "$as_dir" && as_dir=.
13369     for ac_exec_ext in '' $ac_executable_extensions; do
13370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13371     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13373     break 2
13374   fi
13375 done
13376   done
13377 IFS=$as_save_IFS
13378
13379 fi
13380 fi
13381 STRIP=$ac_cv_prog_STRIP
13382 if test -n "$STRIP"; then
13383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13384 $as_echo "$STRIP" >&6; }
13385 else
13386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13388 fi
13389
13390
13391 fi
13392 if test -z "$ac_cv_prog_STRIP"; then
13393   ac_ct_STRIP=$STRIP
13394   # Extract the first word of "strip", so it can be a program name with args.
13395 set dummy strip; ac_word=$2
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397 $as_echo_n "checking for $ac_word... " >&6; }
13398 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13399   $as_echo_n "(cached) " >&6
13400 else
13401   if test -n "$ac_ct_STRIP"; then
13402   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13403 else
13404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13405 for as_dir in $PATH
13406 do
13407   IFS=$as_save_IFS
13408   test -z "$as_dir" && as_dir=.
13409     for ac_exec_ext in '' $ac_executable_extensions; do
13410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13411     ac_cv_prog_ac_ct_STRIP="strip"
13412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13413     break 2
13414   fi
13415 done
13416   done
13417 IFS=$as_save_IFS
13418
13419 fi
13420 fi
13421 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13422 if test -n "$ac_ct_STRIP"; then
13423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13424 $as_echo "$ac_ct_STRIP" >&6; }
13425 else
13426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427 $as_echo "no" >&6; }
13428 fi
13429
13430   if test "x$ac_ct_STRIP" = x; then
13431     STRIP=":"
13432   else
13433     case $cross_compiling:$ac_tool_warned in
13434 yes:)
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13437 ac_tool_warned=yes ;;
13438 esac
13439     STRIP=$ac_ct_STRIP
13440   fi
13441 else
13442   STRIP="$ac_cv_prog_STRIP"
13443 fi
13444
13445 test -z "$STRIP" && STRIP=:
13446
13447
13448
13449
13450
13451
13452 if test -n "$ac_tool_prefix"; then
13453   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13454 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456 $as_echo_n "checking for $ac_word... " >&6; }
13457 if ${ac_cv_prog_RANLIB+:} false; then :
13458   $as_echo_n "(cached) " >&6
13459 else
13460   if test -n "$RANLIB"; then
13461   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13462 else
13463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464 for as_dir in $PATH
13465 do
13466   IFS=$as_save_IFS
13467   test -z "$as_dir" && as_dir=.
13468     for ac_exec_ext in '' $ac_executable_extensions; do
13469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13470     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13472     break 2
13473   fi
13474 done
13475   done
13476 IFS=$as_save_IFS
13477
13478 fi
13479 fi
13480 RANLIB=$ac_cv_prog_RANLIB
13481 if test -n "$RANLIB"; then
13482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13483 $as_echo "$RANLIB" >&6; }
13484 else
13485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486 $as_echo "no" >&6; }
13487 fi
13488
13489
13490 fi
13491 if test -z "$ac_cv_prog_RANLIB"; then
13492   ac_ct_RANLIB=$RANLIB
13493   # Extract the first word of "ranlib", so it can be a program name with args.
13494 set dummy ranlib; ac_word=$2
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13496 $as_echo_n "checking for $ac_word... " >&6; }
13497 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13498   $as_echo_n "(cached) " >&6
13499 else
13500   if test -n "$ac_ct_RANLIB"; then
13501   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13502 else
13503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504 for as_dir in $PATH
13505 do
13506   IFS=$as_save_IFS
13507   test -z "$as_dir" && as_dir=.
13508     for ac_exec_ext in '' $ac_executable_extensions; do
13509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13510     ac_cv_prog_ac_ct_RANLIB="ranlib"
13511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13512     break 2
13513   fi
13514 done
13515   done
13516 IFS=$as_save_IFS
13517
13518 fi
13519 fi
13520 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13521 if test -n "$ac_ct_RANLIB"; then
13522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13523 $as_echo "$ac_ct_RANLIB" >&6; }
13524 else
13525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526 $as_echo "no" >&6; }
13527 fi
13528
13529   if test "x$ac_ct_RANLIB" = x; then
13530     RANLIB=":"
13531   else
13532     case $cross_compiling:$ac_tool_warned in
13533 yes:)
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13536 ac_tool_warned=yes ;;
13537 esac
13538     RANLIB=$ac_ct_RANLIB
13539   fi
13540 else
13541   RANLIB="$ac_cv_prog_RANLIB"
13542 fi
13543
13544 test -z "$RANLIB" && RANLIB=:
13545
13546
13547
13548
13549
13550
13551 # Determine commands to create old-style static archives.
13552 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13553 old_postinstall_cmds='chmod 644 $oldlib'
13554 old_postuninstall_cmds=
13555
13556 if test -n "$RANLIB"; then
13557   case $host_os in
13558   openbsd*)
13559     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13560     ;;
13561   *)
13562     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13563     ;;
13564   esac
13565   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13566 fi
13567
13568 case $host_os in
13569   darwin*)
13570     lock_old_archive_extraction=yes ;;
13571   *)
13572     lock_old_archive_extraction=no ;;
13573 esac
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613 # If no C compiler was specified, use CC.
13614 LTCC=${LTCC-"$CC"}
13615
13616 # If no C compiler flags were specified, use CFLAGS.
13617 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13618
13619 # Allow CC to be a program name with arguments.
13620 compiler=$CC
13621
13622
13623 # Check for command to grab the raw symbol name followed by C symbol from nm.
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13625 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13626 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
13627   $as_echo_n "(cached) " >&6
13628 else
13629
13630 # These are sane defaults that work on at least a few old systems.
13631 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13632
13633 # Character class describing NM global symbol codes.
13634 symcode='[BCDEGRST]'
13635
13636 # Regexp to match symbols that can be accessed directly from C.
13637 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13638
13639 # Define system-specific variables.
13640 case $host_os in
13641 aix*)
13642   symcode='[BCDT]'
13643   ;;
13644 cygwin* | mingw* | pw32* | cegcc*)
13645   symcode='[ABCDGISTW]'
13646   ;;
13647 hpux*)
13648   if test "$host_cpu" = ia64; then
13649     symcode='[ABCDEGRST]'
13650   fi
13651   ;;
13652 irix* | nonstopux*)
13653   symcode='[BCDEGRST]'
13654   ;;
13655 osf*)
13656   symcode='[BCDEGQRST]'
13657   ;;
13658 solaris*)
13659   symcode='[BDRT]'
13660   ;;
13661 sco3.2v5*)
13662   symcode='[DT]'
13663   ;;
13664 sysv4.2uw2*)
13665   symcode='[DT]'
13666   ;;
13667 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13668   symcode='[ABDT]'
13669   ;;
13670 sysv4)
13671   symcode='[DFNSTU]'
13672   ;;
13673 esac
13674
13675 # If we're using GNU nm, then use its standard symbol codes.
13676 case `$NM -V 2>&1` in
13677 *GNU* | *'with BFD'*)
13678   symcode='[ABCDGIRSTW]' ;;
13679 esac
13680
13681 # Transform an extracted symbol line into a proper C declaration.
13682 # Some systems (esp. on ia64) link data and code symbols differently,
13683 # so use this general approach.
13684 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13685
13686 # Transform an extracted symbol line into symbol name and symbol address
13687 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13688 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'"
13689
13690 # Handle CRLF in mingw tool chain
13691 opt_cr=
13692 case $build_os in
13693 mingw*)
13694   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13695   ;;
13696 esac
13697
13698 # Try without a prefix underscore, then with it.
13699 for ac_symprfx in "" "_"; do
13700
13701   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13702   symxfrm="\\1 $ac_symprfx\\2 \\2"
13703
13704   # Write the raw and C identifiers.
13705   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13706     # Fake it for dumpbin and say T for any non-static function
13707     # and D for any global variable.
13708     # Also find C++ and __fastcall symbols from MSVC++,
13709     # which start with @ or ?.
13710     lt_cv_sys_global_symbol_pipe="$AWK '"\
13711 "     {last_section=section; section=\$ 3};"\
13712 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13713 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13714 "     \$ 0!~/External *\|/{next};"\
13715 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13716 "     {if(hide[section]) next};"\
13717 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13718 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13719 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13720 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13721 "     ' prfx=^$ac_symprfx"
13722   else
13723     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13724   fi
13725   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13726
13727   # Check to see that the pipe works correctly.
13728   pipe_works=no
13729
13730   rm -f conftest*
13731   cat > conftest.$ac_ext <<_LT_EOF
13732 #ifdef __cplusplus
13733 extern "C" {
13734 #endif
13735 char nm_test_var;
13736 void nm_test_func(void);
13737 void nm_test_func(void){}
13738 #ifdef __cplusplus
13739 }
13740 #endif
13741 int main(){nm_test_var='a';nm_test_func();return(0);}
13742 _LT_EOF
13743
13744   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13745   (eval $ac_compile) 2>&5
13746   ac_status=$?
13747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13748   test $ac_status = 0; }; then
13749     # Now try to grab the symbols.
13750     nlist=conftest.nm
13751     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13752   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13753   ac_status=$?
13754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13755   test $ac_status = 0; } && test -s "$nlist"; then
13756       # Try sorting and uniquifying the output.
13757       if sort "$nlist" | uniq > "$nlist"T; then
13758         mv -f "$nlist"T "$nlist"
13759       else
13760         rm -f "$nlist"T
13761       fi
13762
13763       # Make sure that we snagged all the symbols we need.
13764       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13765         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13766           cat <<_LT_EOF > conftest.$ac_ext
13767 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13768 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
13769 /* DATA imports from DLLs on WIN32 con't be const, because runtime
13770    relocations are performed -- see ld's documentation on pseudo-relocs.  */
13771 # define LT_DLSYM_CONST
13772 #elif defined(__osf__)
13773 /* This system does not cope well with relocations in const data.  */
13774 # define LT_DLSYM_CONST
13775 #else
13776 # define LT_DLSYM_CONST const
13777 #endif
13778
13779 #ifdef __cplusplus
13780 extern "C" {
13781 #endif
13782
13783 _LT_EOF
13784           # Now generate the symbol file.
13785           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13786
13787           cat <<_LT_EOF >> conftest.$ac_ext
13788
13789 /* The mapping between symbol names and symbols.  */
13790 LT_DLSYM_CONST struct {
13791   const char *name;
13792   void       *address;
13793 }
13794 lt__PROGRAM__LTX_preloaded_symbols[] =
13795 {
13796   { "@PROGRAM@", (void *) 0 },
13797 _LT_EOF
13798           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13799           cat <<\_LT_EOF >> conftest.$ac_ext
13800   {0, (void *) 0}
13801 };
13802
13803 /* This works around a problem in FreeBSD linker */
13804 #ifdef FREEBSD_WORKAROUND
13805 static const void *lt_preloaded_setup() {
13806   return lt__PROGRAM__LTX_preloaded_symbols;
13807 }
13808 #endif
13809
13810 #ifdef __cplusplus
13811 }
13812 #endif
13813 _LT_EOF
13814           # Now try linking the two files.
13815           mv conftest.$ac_objext conftstm.$ac_objext
13816           lt_globsym_save_LIBS=$LIBS
13817           lt_globsym_save_CFLAGS=$CFLAGS
13818           LIBS="conftstm.$ac_objext"
13819           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13820           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13821   (eval $ac_link) 2>&5
13822   ac_status=$?
13823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13824   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13825             pipe_works=yes
13826           fi
13827           LIBS=$lt_globsym_save_LIBS
13828           CFLAGS=$lt_globsym_save_CFLAGS
13829         else
13830           echo "cannot find nm_test_func in $nlist" >&5
13831         fi
13832       else
13833         echo "cannot find nm_test_var in $nlist" >&5
13834       fi
13835     else
13836       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13837     fi
13838   else
13839     echo "$progname: failed program was:" >&5
13840     cat conftest.$ac_ext >&5
13841   fi
13842   rm -rf conftest* conftst*
13843
13844   # Do not use the global_symbol_pipe unless it works.
13845   if test "$pipe_works" = yes; then
13846     break
13847   else
13848     lt_cv_sys_global_symbol_pipe=
13849   fi
13850 done
13851
13852 fi
13853
13854 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13855   lt_cv_sys_global_symbol_to_cdecl=
13856 fi
13857 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13859 $as_echo "failed" >&6; }
13860 else
13861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13862 $as_echo "ok" >&6; }
13863 fi
13864
13865 # Response file support.
13866 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13867   nm_file_list_spec='@'
13868 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13869   nm_file_list_spec='@'
13870 fi
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13899 $as_echo_n "checking for sysroot... " >&6; }
13900
13901 # Check whether --with-sysroot was given.
13902 if test "${with_sysroot+set}" = set; then :
13903   withval=$with_sysroot;
13904 else
13905   with_sysroot=no
13906 fi
13907
13908
13909 lt_sysroot=
13910 case ${with_sysroot} in #(
13911  yes)
13912    if test "$GCC" = yes; then
13913      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13914    fi
13915    ;; #(
13916  /*)
13917    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13918    ;; #(
13919  no|'')
13920    ;; #(
13921  *)
13922    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13923 $as_echo "${with_sysroot}" >&6; }
13924    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13925    ;;
13926 esac
13927
13928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13929 $as_echo "${lt_sysroot:-no}" >&6; }
13930
13931
13932
13933
13934
13935 # Check whether --enable-libtool-lock was given.
13936 if test "${enable_libtool_lock+set}" = set; then :
13937   enableval=$enable_libtool_lock;
13938 fi
13939
13940 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13941
13942 # Some flags need to be propagated to the compiler or linker for good
13943 # libtool support.
13944 case $host in
13945 ia64-*-hpux*)
13946   # Find out which ABI we are using.
13947   echo 'int i;' > conftest.$ac_ext
13948   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13949   (eval $ac_compile) 2>&5
13950   ac_status=$?
13951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13952   test $ac_status = 0; }; then
13953     case `/usr/bin/file conftest.$ac_objext` in
13954       *ELF-32*)
13955         HPUX_IA64_MODE="32"
13956         ;;
13957       *ELF-64*)
13958         HPUX_IA64_MODE="64"
13959         ;;
13960     esac
13961   fi
13962   rm -rf conftest*
13963   ;;
13964 *-*-irix6*)
13965   # Find out which ABI we are using.
13966   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13967   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13968   (eval $ac_compile) 2>&5
13969   ac_status=$?
13970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13971   test $ac_status = 0; }; then
13972     if test "$lt_cv_prog_gnu_ld" = yes; then
13973       case `/usr/bin/file conftest.$ac_objext` in
13974         *32-bit*)
13975           LD="${LD-ld} -melf32bsmip"
13976           ;;
13977         *N32*)
13978           LD="${LD-ld} -melf32bmipn32"
13979           ;;
13980         *64-bit*)
13981           LD="${LD-ld} -melf64bmip"
13982         ;;
13983       esac
13984     else
13985       case `/usr/bin/file conftest.$ac_objext` in
13986         *32-bit*)
13987           LD="${LD-ld} -32"
13988           ;;
13989         *N32*)
13990           LD="${LD-ld} -n32"
13991           ;;
13992         *64-bit*)
13993           LD="${LD-ld} -64"
13994           ;;
13995       esac
13996     fi
13997   fi
13998   rm -rf conftest*
13999   ;;
14000
14001 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
14002 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14003   # Find out which ABI we are using.
14004   echo 'int i;' > conftest.$ac_ext
14005   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14006   (eval $ac_compile) 2>&5
14007   ac_status=$?
14008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14009   test $ac_status = 0; }; then
14010     case `/usr/bin/file conftest.o` in
14011       *32-bit*)
14012         case $host in
14013           x86_64-*kfreebsd*-gnu)
14014             LD="${LD-ld} -m elf_i386_fbsd"
14015             ;;
14016           x86_64-*linux*)
14017             LD="${LD-ld} -m elf_i386"
14018             ;;
14019           ppc64-*linux*|powerpc64-*linux*)
14020             LD="${LD-ld} -m elf32ppclinux"
14021             ;;
14022           s390x-*linux*)
14023             LD="${LD-ld} -m elf_s390"
14024             ;;
14025           sparc64-*linux*)
14026             LD="${LD-ld} -m elf32_sparc"
14027             ;;
14028         esac
14029         ;;
14030       *64-bit*)
14031         case $host in
14032           x86_64-*kfreebsd*-gnu)
14033             LD="${LD-ld} -m elf_x86_64_fbsd"
14034             ;;
14035           x86_64-*linux*)
14036             LD="${LD-ld} -m elf_x86_64"
14037             ;;
14038           ppc*-*linux*|powerpc*-*linux*)
14039             LD="${LD-ld} -m elf64ppc"
14040             ;;
14041           s390*-*linux*|s390*-*tpf*)
14042             LD="${LD-ld} -m elf64_s390"
14043             ;;
14044           sparc*-*linux*)
14045             LD="${LD-ld} -m elf64_sparc"
14046             ;;
14047         esac
14048         ;;
14049     esac
14050   fi
14051   rm -rf conftest*
14052   ;;
14053
14054 *-*-sco3.2v5*)
14055   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14056   SAVE_CFLAGS="$CFLAGS"
14057   CFLAGS="$CFLAGS -belf"
14058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14059 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14060 if ${lt_cv_cc_needs_belf+:} false; then :
14061   $as_echo_n "(cached) " >&6
14062 else
14063   ac_ext=c
14064 ac_cpp='$CPP $CPPFLAGS'
14065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14068
14069      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h.  */
14071
14072 int
14073 main ()
14074 {
14075
14076   ;
14077   return 0;
14078 }
14079 _ACEOF
14080 if ac_fn_c_try_link "$LINENO"; then :
14081   lt_cv_cc_needs_belf=yes
14082 else
14083   lt_cv_cc_needs_belf=no
14084 fi
14085 rm -f core conftest.err conftest.$ac_objext \
14086     conftest$ac_exeext conftest.$ac_ext
14087      ac_ext=c
14088 ac_cpp='$CPP $CPPFLAGS'
14089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14092
14093 fi
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14095 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14096   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14097     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14098     CFLAGS="$SAVE_CFLAGS"
14099   fi
14100   ;;
14101 *-*solaris*)
14102   # Find out which ABI we are using.
14103   echo 'int i;' > conftest.$ac_ext
14104   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14105   (eval $ac_compile) 2>&5
14106   ac_status=$?
14107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14108   test $ac_status = 0; }; then
14109     case `/usr/bin/file conftest.o` in
14110     *64-bit*)
14111       case $lt_cv_prog_gnu_ld in
14112       yes*)
14113         case $host in
14114         i?86-*-solaris*)
14115           LD="${LD-ld} -m elf_x86_64"
14116           ;;
14117         sparc*-*-solaris*)
14118           LD="${LD-ld} -m elf64_sparc"
14119           ;;
14120         esac
14121         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14122         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14123           LD="${LD-ld}_sol2"
14124         fi
14125         ;;
14126       *)
14127         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14128           LD="${LD-ld} -64"
14129         fi
14130         ;;
14131       esac
14132       ;;
14133     esac
14134   fi
14135   rm -rf conftest*
14136   ;;
14137 esac
14138
14139 need_locks="$enable_libtool_lock"
14140
14141 if test -n "$ac_tool_prefix"; then
14142   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14143 set dummy ${ac_tool_prefix}mt; ac_word=$2
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14145 $as_echo_n "checking for $ac_word... " >&6; }
14146 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
14147   $as_echo_n "(cached) " >&6
14148 else
14149   if test -n "$MANIFEST_TOOL"; then
14150   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14151 else
14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153 for as_dir in $PATH
14154 do
14155   IFS=$as_save_IFS
14156   test -z "$as_dir" && as_dir=.
14157     for ac_exec_ext in '' $ac_executable_extensions; do
14158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14159     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14161     break 2
14162   fi
14163 done
14164   done
14165 IFS=$as_save_IFS
14166
14167 fi
14168 fi
14169 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14170 if test -n "$MANIFEST_TOOL"; then
14171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14172 $as_echo "$MANIFEST_TOOL" >&6; }
14173 else
14174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175 $as_echo "no" >&6; }
14176 fi
14177
14178
14179 fi
14180 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14181   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14182   # Extract the first word of "mt", so it can be a program name with args.
14183 set dummy mt; ac_word=$2
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14185 $as_echo_n "checking for $ac_word... " >&6; }
14186 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
14187   $as_echo_n "(cached) " >&6
14188 else
14189   if test -n "$ac_ct_MANIFEST_TOOL"; then
14190   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14191 else
14192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14193 for as_dir in $PATH
14194 do
14195   IFS=$as_save_IFS
14196   test -z "$as_dir" && as_dir=.
14197     for ac_exec_ext in '' $ac_executable_extensions; do
14198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14199     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14201     break 2
14202   fi
14203 done
14204   done
14205 IFS=$as_save_IFS
14206
14207 fi
14208 fi
14209 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14210 if test -n "$ac_ct_MANIFEST_TOOL"; then
14211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14212 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
14213 else
14214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14215 $as_echo "no" >&6; }
14216 fi
14217
14218   if test "x$ac_ct_MANIFEST_TOOL" = x; then
14219     MANIFEST_TOOL=":"
14220   else
14221     case $cross_compiling:$ac_tool_warned in
14222 yes:)
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14225 ac_tool_warned=yes ;;
14226 esac
14227     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14228   fi
14229 else
14230   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14231 fi
14232
14233 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14235 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14236 if ${lt_cv_path_mainfest_tool+:} false; then :
14237   $as_echo_n "(cached) " >&6
14238 else
14239   lt_cv_path_mainfest_tool=no
14240   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14241   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14242   cat conftest.err >&5
14243   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14244     lt_cv_path_mainfest_tool=yes
14245   fi
14246   rm -f conftest*
14247 fi
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14249 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
14250 if test "x$lt_cv_path_mainfest_tool" != xyes; then
14251   MANIFEST_TOOL=:
14252 fi
14253
14254
14255
14256
14257
14258
14259   case $host_os in
14260     rhapsody* | darwin*)
14261     if test -n "$ac_tool_prefix"; then
14262   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14263 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14265 $as_echo_n "checking for $ac_word... " >&6; }
14266 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14267   $as_echo_n "(cached) " >&6
14268 else
14269   if test -n "$DSYMUTIL"; then
14270   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14271 else
14272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14273 for as_dir in $PATH
14274 do
14275   IFS=$as_save_IFS
14276   test -z "$as_dir" && as_dir=.
14277     for ac_exec_ext in '' $ac_executable_extensions; do
14278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14279     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14281     break 2
14282   fi
14283 done
14284   done
14285 IFS=$as_save_IFS
14286
14287 fi
14288 fi
14289 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14290 if test -n "$DSYMUTIL"; then
14291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14292 $as_echo "$DSYMUTIL" >&6; }
14293 else
14294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14295 $as_echo "no" >&6; }
14296 fi
14297
14298
14299 fi
14300 if test -z "$ac_cv_prog_DSYMUTIL"; then
14301   ac_ct_DSYMUTIL=$DSYMUTIL
14302   # Extract the first word of "dsymutil", so it can be a program name with args.
14303 set dummy dsymutil; ac_word=$2
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14305 $as_echo_n "checking for $ac_word... " >&6; }
14306 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14307   $as_echo_n "(cached) " >&6
14308 else
14309   if test -n "$ac_ct_DSYMUTIL"; then
14310   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14311 else
14312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14313 for as_dir in $PATH
14314 do
14315   IFS=$as_save_IFS
14316   test -z "$as_dir" && as_dir=.
14317     for ac_exec_ext in '' $ac_executable_extensions; do
14318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14319     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14321     break 2
14322   fi
14323 done
14324   done
14325 IFS=$as_save_IFS
14326
14327 fi
14328 fi
14329 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14330 if test -n "$ac_ct_DSYMUTIL"; then
14331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14332 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14333 else
14334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14335 $as_echo "no" >&6; }
14336 fi
14337
14338   if test "x$ac_ct_DSYMUTIL" = x; then
14339     DSYMUTIL=":"
14340   else
14341     case $cross_compiling:$ac_tool_warned in
14342 yes:)
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14345 ac_tool_warned=yes ;;
14346 esac
14347     DSYMUTIL=$ac_ct_DSYMUTIL
14348   fi
14349 else
14350   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14351 fi
14352
14353     if test -n "$ac_tool_prefix"; then
14354   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14355 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14357 $as_echo_n "checking for $ac_word... " >&6; }
14358 if ${ac_cv_prog_NMEDIT+:} false; then :
14359   $as_echo_n "(cached) " >&6
14360 else
14361   if test -n "$NMEDIT"; then
14362   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14363 else
14364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14365 for as_dir in $PATH
14366 do
14367   IFS=$as_save_IFS
14368   test -z "$as_dir" && as_dir=.
14369     for ac_exec_ext in '' $ac_executable_extensions; do
14370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14371     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14373     break 2
14374   fi
14375 done
14376   done
14377 IFS=$as_save_IFS
14378
14379 fi
14380 fi
14381 NMEDIT=$ac_cv_prog_NMEDIT
14382 if test -n "$NMEDIT"; then
14383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14384 $as_echo "$NMEDIT" >&6; }
14385 else
14386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14387 $as_echo "no" >&6; }
14388 fi
14389
14390
14391 fi
14392 if test -z "$ac_cv_prog_NMEDIT"; then
14393   ac_ct_NMEDIT=$NMEDIT
14394   # Extract the first word of "nmedit", so it can be a program name with args.
14395 set dummy nmedit; ac_word=$2
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14397 $as_echo_n "checking for $ac_word... " >&6; }
14398 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14399   $as_echo_n "(cached) " >&6
14400 else
14401   if test -n "$ac_ct_NMEDIT"; then
14402   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14403 else
14404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405 for as_dir in $PATH
14406 do
14407   IFS=$as_save_IFS
14408   test -z "$as_dir" && as_dir=.
14409     for ac_exec_ext in '' $ac_executable_extensions; do
14410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14411     ac_cv_prog_ac_ct_NMEDIT="nmedit"
14412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14413     break 2
14414   fi
14415 done
14416   done
14417 IFS=$as_save_IFS
14418
14419 fi
14420 fi
14421 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14422 if test -n "$ac_ct_NMEDIT"; then
14423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14424 $as_echo "$ac_ct_NMEDIT" >&6; }
14425 else
14426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14427 $as_echo "no" >&6; }
14428 fi
14429
14430   if test "x$ac_ct_NMEDIT" = x; then
14431     NMEDIT=":"
14432   else
14433     case $cross_compiling:$ac_tool_warned in
14434 yes:)
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14437 ac_tool_warned=yes ;;
14438 esac
14439     NMEDIT=$ac_ct_NMEDIT
14440   fi
14441 else
14442   NMEDIT="$ac_cv_prog_NMEDIT"
14443 fi
14444
14445     if test -n "$ac_tool_prefix"; then
14446   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14447 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14449 $as_echo_n "checking for $ac_word... " >&6; }
14450 if ${ac_cv_prog_LIPO+:} false; then :
14451   $as_echo_n "(cached) " >&6
14452 else
14453   if test -n "$LIPO"; then
14454   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14455 else
14456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14457 for as_dir in $PATH
14458 do
14459   IFS=$as_save_IFS
14460   test -z "$as_dir" && as_dir=.
14461     for ac_exec_ext in '' $ac_executable_extensions; do
14462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14463     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14465     break 2
14466   fi
14467 done
14468   done
14469 IFS=$as_save_IFS
14470
14471 fi
14472 fi
14473 LIPO=$ac_cv_prog_LIPO
14474 if test -n "$LIPO"; then
14475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14476 $as_echo "$LIPO" >&6; }
14477 else
14478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14479 $as_echo "no" >&6; }
14480 fi
14481
14482
14483 fi
14484 if test -z "$ac_cv_prog_LIPO"; then
14485   ac_ct_LIPO=$LIPO
14486   # Extract the first word of "lipo", so it can be a program name with args.
14487 set dummy lipo; ac_word=$2
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14489 $as_echo_n "checking for $ac_word... " >&6; }
14490 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14491   $as_echo_n "(cached) " >&6
14492 else
14493   if test -n "$ac_ct_LIPO"; then
14494   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14495 else
14496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14497 for as_dir in $PATH
14498 do
14499   IFS=$as_save_IFS
14500   test -z "$as_dir" && as_dir=.
14501     for ac_exec_ext in '' $ac_executable_extensions; do
14502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14503     ac_cv_prog_ac_ct_LIPO="lipo"
14504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14505     break 2
14506   fi
14507 done
14508   done
14509 IFS=$as_save_IFS
14510
14511 fi
14512 fi
14513 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14514 if test -n "$ac_ct_LIPO"; then
14515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14516 $as_echo "$ac_ct_LIPO" >&6; }
14517 else
14518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14519 $as_echo "no" >&6; }
14520 fi
14521
14522   if test "x$ac_ct_LIPO" = x; then
14523     LIPO=":"
14524   else
14525     case $cross_compiling:$ac_tool_warned in
14526 yes:)
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14529 ac_tool_warned=yes ;;
14530 esac
14531     LIPO=$ac_ct_LIPO
14532   fi
14533 else
14534   LIPO="$ac_cv_prog_LIPO"
14535 fi
14536
14537     if test -n "$ac_tool_prefix"; then
14538   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14539 set dummy ${ac_tool_prefix}otool; ac_word=$2
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14541 $as_echo_n "checking for $ac_word... " >&6; }
14542 if ${ac_cv_prog_OTOOL+:} false; then :
14543   $as_echo_n "(cached) " >&6
14544 else
14545   if test -n "$OTOOL"; then
14546   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14547 else
14548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14549 for as_dir in $PATH
14550 do
14551   IFS=$as_save_IFS
14552   test -z "$as_dir" && as_dir=.
14553     for ac_exec_ext in '' $ac_executable_extensions; do
14554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14555     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14557     break 2
14558   fi
14559 done
14560   done
14561 IFS=$as_save_IFS
14562
14563 fi
14564 fi
14565 OTOOL=$ac_cv_prog_OTOOL
14566 if test -n "$OTOOL"; then
14567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14568 $as_echo "$OTOOL" >&6; }
14569 else
14570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14571 $as_echo "no" >&6; }
14572 fi
14573
14574
14575 fi
14576 if test -z "$ac_cv_prog_OTOOL"; then
14577   ac_ct_OTOOL=$OTOOL
14578   # Extract the first word of "otool", so it can be a program name with args.
14579 set dummy otool; ac_word=$2
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14581 $as_echo_n "checking for $ac_word... " >&6; }
14582 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14583   $as_echo_n "(cached) " >&6
14584 else
14585   if test -n "$ac_ct_OTOOL"; then
14586   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14587 else
14588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14589 for as_dir in $PATH
14590 do
14591   IFS=$as_save_IFS
14592   test -z "$as_dir" && as_dir=.
14593     for ac_exec_ext in '' $ac_executable_extensions; do
14594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14595     ac_cv_prog_ac_ct_OTOOL="otool"
14596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14597     break 2
14598   fi
14599 done
14600   done
14601 IFS=$as_save_IFS
14602
14603 fi
14604 fi
14605 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14606 if test -n "$ac_ct_OTOOL"; then
14607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14608 $as_echo "$ac_ct_OTOOL" >&6; }
14609 else
14610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14611 $as_echo "no" >&6; }
14612 fi
14613
14614   if test "x$ac_ct_OTOOL" = x; then
14615     OTOOL=":"
14616   else
14617     case $cross_compiling:$ac_tool_warned in
14618 yes:)
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14621 ac_tool_warned=yes ;;
14622 esac
14623     OTOOL=$ac_ct_OTOOL
14624   fi
14625 else
14626   OTOOL="$ac_cv_prog_OTOOL"
14627 fi
14628
14629     if test -n "$ac_tool_prefix"; then
14630   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14631 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14633 $as_echo_n "checking for $ac_word... " >&6; }
14634 if ${ac_cv_prog_OTOOL64+:} false; then :
14635   $as_echo_n "(cached) " >&6
14636 else
14637   if test -n "$OTOOL64"; then
14638   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14639 else
14640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14641 for as_dir in $PATH
14642 do
14643   IFS=$as_save_IFS
14644   test -z "$as_dir" && as_dir=.
14645     for ac_exec_ext in '' $ac_executable_extensions; do
14646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14647     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14649     break 2
14650   fi
14651 done
14652   done
14653 IFS=$as_save_IFS
14654
14655 fi
14656 fi
14657 OTOOL64=$ac_cv_prog_OTOOL64
14658 if test -n "$OTOOL64"; then
14659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14660 $as_echo "$OTOOL64" >&6; }
14661 else
14662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14663 $as_echo "no" >&6; }
14664 fi
14665
14666
14667 fi
14668 if test -z "$ac_cv_prog_OTOOL64"; then
14669   ac_ct_OTOOL64=$OTOOL64
14670   # Extract the first word of "otool64", so it can be a program name with args.
14671 set dummy otool64; ac_word=$2
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14673 $as_echo_n "checking for $ac_word... " >&6; }
14674 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14675   $as_echo_n "(cached) " >&6
14676 else
14677   if test -n "$ac_ct_OTOOL64"; then
14678   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14679 else
14680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14681 for as_dir in $PATH
14682 do
14683   IFS=$as_save_IFS
14684   test -z "$as_dir" && as_dir=.
14685     for ac_exec_ext in '' $ac_executable_extensions; do
14686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14687     ac_cv_prog_ac_ct_OTOOL64="otool64"
14688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14689     break 2
14690   fi
14691 done
14692   done
14693 IFS=$as_save_IFS
14694
14695 fi
14696 fi
14697 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14698 if test -n "$ac_ct_OTOOL64"; then
14699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14700 $as_echo "$ac_ct_OTOOL64" >&6; }
14701 else
14702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14703 $as_echo "no" >&6; }
14704 fi
14705
14706   if test "x$ac_ct_OTOOL64" = x; then
14707     OTOOL64=":"
14708   else
14709     case $cross_compiling:$ac_tool_warned in
14710 yes:)
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14713 ac_tool_warned=yes ;;
14714 esac
14715     OTOOL64=$ac_ct_OTOOL64
14716   fi
14717 else
14718   OTOOL64="$ac_cv_prog_OTOOL64"
14719 fi
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14748 $as_echo_n "checking for -single_module linker flag... " >&6; }
14749 if ${lt_cv_apple_cc_single_mod+:} false; then :
14750   $as_echo_n "(cached) " >&6
14751 else
14752   lt_cv_apple_cc_single_mod=no
14753       if test -z "${LT_MULTI_MODULE}"; then
14754         # By default we will add the -single_module flag. You can override
14755         # by either setting the environment variable LT_MULTI_MODULE
14756         # non-empty at configure time, or by adding -multi_module to the
14757         # link flags.
14758         rm -rf libconftest.dylib*
14759         echo "int foo(void){return 1;}" > conftest.c
14760         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14761 -dynamiclib -Wl,-single_module conftest.c" >&5
14762         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14763           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14764         _lt_result=$?
14765         # If there is a non-empty error log, and "single_module"
14766         # appears in it, assume the flag caused a linker warning
14767         if test -s conftest.err && $GREP single_module conftest.err; then
14768           cat conftest.err >&5
14769         # Otherwise, if the output was created with a 0 exit code from
14770         # the compiler, it worked.
14771         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
14772           lt_cv_apple_cc_single_mod=yes
14773         else
14774           cat conftest.err >&5
14775         fi
14776         rm -rf libconftest.dylib*
14777         rm -f conftest.*
14778       fi
14779 fi
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14781 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14782
14783     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14784 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14785 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14786   $as_echo_n "(cached) " >&6
14787 else
14788   lt_cv_ld_exported_symbols_list=no
14789       save_LDFLAGS=$LDFLAGS
14790       echo "_main" > conftest.sym
14791       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14792       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h.  */
14794
14795 int
14796 main ()
14797 {
14798
14799   ;
14800   return 0;
14801 }
14802 _ACEOF
14803 if ac_fn_c_try_link "$LINENO"; then :
14804   lt_cv_ld_exported_symbols_list=yes
14805 else
14806   lt_cv_ld_exported_symbols_list=no
14807 fi
14808 rm -f core conftest.err conftest.$ac_objext \
14809     conftest$ac_exeext conftest.$ac_ext
14810         LDFLAGS="$save_LDFLAGS"
14811
14812 fi
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14814 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14815
14816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14817 $as_echo_n "checking for -force_load linker flag... " >&6; }
14818 if ${lt_cv_ld_force_load+:} false; then :
14819   $as_echo_n "(cached) " >&6
14820 else
14821   lt_cv_ld_force_load=no
14822       cat > conftest.c << _LT_EOF
14823 int forced_loaded() { return 2;}
14824 _LT_EOF
14825       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14826       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14827       echo "$AR cru libconftest.a conftest.o" >&5
14828       $AR cru libconftest.a conftest.o 2>&5
14829       echo "$RANLIB libconftest.a" >&5
14830       $RANLIB libconftest.a 2>&5
14831       cat > conftest.c << _LT_EOF
14832 int main() { return 0;}
14833 _LT_EOF
14834       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14835       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14836       _lt_result=$?
14837       if test -s conftest.err && $GREP force_load conftest.err; then
14838         cat conftest.err >&5
14839       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
14840         lt_cv_ld_force_load=yes
14841       else
14842         cat conftest.err >&5
14843       fi
14844         rm -f conftest.err libconftest.a conftest conftest.c
14845         rm -rf conftest.dSYM
14846
14847 fi
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14849 $as_echo "$lt_cv_ld_force_load" >&6; }
14850     case $host_os in
14851     rhapsody* | darwin1.[012])
14852       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14853     darwin1.*)
14854       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14855     darwin*) # darwin 5.x on
14856       # if running on 10.5 or later, the deployment target defaults
14857       # to the OS version, if on x86, and 10.4, the deployment
14858       # target defaults to 10.4. Don't you love it?
14859       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14860         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14861           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14862         10.[012]*)
14863           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14864         10.*)
14865           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14866       esac
14867     ;;
14868   esac
14869     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14870       _lt_dar_single_mod='$single_module'
14871     fi
14872     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14873       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14874     else
14875       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14876     fi
14877     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14878       _lt_dsymutil='~$DSYMUTIL $lib || :'
14879     else
14880       _lt_dsymutil=
14881     fi
14882     ;;
14883   esac
14884
14885 for ac_header in dlfcn.h
14886 do :
14887   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14888 "
14889 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14890   cat >>confdefs.h <<_ACEOF
14891 #define HAVE_DLFCN_H 1
14892 _ACEOF
14893
14894 fi
14895
14896 done
14897
14898
14899
14900 func_stripname_cnf ()
14901 {
14902   case ${2} in
14903   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14904   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14905   esac
14906 } # func_stripname_cnf
14907
14908
14909
14910
14911
14912 # Set options
14913
14914
14915
14916         enable_dlopen=no
14917
14918
14919
14920             # Check whether --enable-shared was given.
14921 if test "${enable_shared+set}" = set; then :
14922   enableval=$enable_shared; p=${PACKAGE-default}
14923     case $enableval in
14924     yes) enable_shared=yes ;;
14925     no) enable_shared=no ;;
14926     *)
14927       enable_shared=no
14928       # Look at the argument we got.  We use all the common list separators.
14929       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14930       for pkg in $enableval; do
14931         IFS="$lt_save_ifs"
14932         if test "X$pkg" = "X$p"; then
14933           enable_shared=yes
14934         fi
14935       done
14936       IFS="$lt_save_ifs"
14937       ;;
14938     esac
14939 else
14940   enable_shared=yes
14941 fi
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951   # Check whether --enable-static was given.
14952 if test "${enable_static+set}" = set; then :
14953   enableval=$enable_static; p=${PACKAGE-default}
14954     case $enableval in
14955     yes) enable_static=yes ;;
14956     no) enable_static=no ;;
14957     *)
14958      enable_static=no
14959       # Look at the argument we got.  We use all the common list separators.
14960       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14961       for pkg in $enableval; do
14962         IFS="$lt_save_ifs"
14963         if test "X$pkg" = "X$p"; then
14964           enable_static=yes
14965         fi
14966       done
14967       IFS="$lt_save_ifs"
14968       ;;
14969     esac
14970 else
14971   enable_static=yes
14972 fi
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983 # Check whether --with-pic was given.
14984 if test "${with_pic+set}" = set; then :
14985   withval=$with_pic; lt_p=${PACKAGE-default}
14986     case $withval in
14987     yes|no) pic_mode=$withval ;;
14988     *)
14989       pic_mode=default
14990       # Look at the argument we got.  We use all the common list separators.
14991       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14992       for lt_pkg in $withval; do
14993         IFS="$lt_save_ifs"
14994         if test "X$lt_pkg" = "X$lt_p"; then
14995           pic_mode=yes
14996         fi
14997       done
14998       IFS="$lt_save_ifs"
14999       ;;
15000     esac
15001 else
15002   pic_mode=default
15003 fi
15004
15005
15006 test -z "$pic_mode" && pic_mode=default
15007
15008
15009
15010
15011
15012
15013
15014   # Check whether --enable-fast-install was given.
15015 if test "${enable_fast_install+set}" = set; then :
15016   enableval=$enable_fast_install; p=${PACKAGE-default}
15017     case $enableval in
15018     yes) enable_fast_install=yes ;;
15019     no) enable_fast_install=no ;;
15020     *)
15021       enable_fast_install=no
15022       # Look at the argument we got.  We use all the common list separators.
15023       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15024       for pkg in $enableval; do
15025         IFS="$lt_save_ifs"
15026         if test "X$pkg" = "X$p"; then
15027           enable_fast_install=yes
15028         fi
15029       done
15030       IFS="$lt_save_ifs"
15031       ;;
15032     esac
15033 else
15034   enable_fast_install=yes
15035 fi
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047 # This can be used to rebuild libtool when needed
15048 LIBTOOL_DEPS="$ltmain"
15049
15050 # Always use our own libtool.
15051 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082 test -z "$LN_S" && LN_S="ln -s"
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097 if test -n "${ZSH_VERSION+set}" ; then
15098    setopt NO_GLOB_SUBST
15099 fi
15100
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15102 $as_echo_n "checking for objdir... " >&6; }
15103 if ${lt_cv_objdir+:} false; then :
15104   $as_echo_n "(cached) " >&6
15105 else
15106   rm -f .libs 2>/dev/null
15107 mkdir .libs 2>/dev/null
15108 if test -d .libs; then
15109   lt_cv_objdir=.libs
15110 else
15111   # MS-DOS does not allow filenames that begin with a dot.
15112   lt_cv_objdir=_libs
15113 fi
15114 rmdir .libs 2>/dev/null
15115 fi
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15117 $as_echo "$lt_cv_objdir" >&6; }
15118 objdir=$lt_cv_objdir
15119
15120
15121
15122
15123
15124 cat >>confdefs.h <<_ACEOF
15125 #define LT_OBJDIR "$lt_cv_objdir/"
15126 _ACEOF
15127
15128
15129
15130
15131 case $host_os in
15132 aix3*)
15133   # AIX sometimes has problems with the GCC collect2 program.  For some
15134   # reason, if we set the COLLECT_NAMES environment variable, the problems
15135   # vanish in a puff of smoke.
15136   if test "X${COLLECT_NAMES+set}" != Xset; then
15137     COLLECT_NAMES=
15138     export COLLECT_NAMES
15139   fi
15140   ;;
15141 esac
15142
15143 # Global variables:
15144 ofile=libtool
15145 can_build_shared=yes
15146
15147 # All known linkers require a `.a' archive for static linking (except MSVC,
15148 # which needs '.lib').
15149 libext=a
15150
15151 with_gnu_ld="$lt_cv_prog_gnu_ld"
15152
15153 old_CC="$CC"
15154 old_CFLAGS="$CFLAGS"
15155
15156 # Set sane defaults for various variables
15157 test -z "$CC" && CC=cc
15158 test -z "$LTCC" && LTCC=$CC
15159 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15160 test -z "$LD" && LD=ld
15161 test -z "$ac_objext" && ac_objext=o
15162
15163 for cc_temp in $compiler""; do
15164   case $cc_temp in
15165     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15166     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15167     \-*) ;;
15168     *) break;;
15169   esac
15170 done
15171 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15172
15173
15174 # Only perform the check for file, if the check method requires it
15175 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15176 case $deplibs_check_method in
15177 file_magic*)
15178   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15180 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15181 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15182   $as_echo_n "(cached) " >&6
15183 else
15184   case $MAGIC_CMD in
15185 [\\/*] |  ?:[\\/]*)
15186   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15187   ;;
15188 *)
15189   lt_save_MAGIC_CMD="$MAGIC_CMD"
15190   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15191   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15192   for ac_dir in $ac_dummy; do
15193     IFS="$lt_save_ifs"
15194     test -z "$ac_dir" && ac_dir=.
15195     if test -f $ac_dir/${ac_tool_prefix}file; then
15196       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15197       if test -n "$file_magic_test_file"; then
15198         case $deplibs_check_method in
15199         "file_magic "*)
15200           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15201           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15202           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15203             $EGREP "$file_magic_regex" > /dev/null; then
15204             :
15205           else
15206             cat <<_LT_EOF 1>&2
15207
15208 *** Warning: the command libtool uses to detect shared libraries,
15209 *** $file_magic_cmd, produces output that libtool cannot recognize.
15210 *** The result is that libtool may fail to recognize shared libraries
15211 *** as such.  This will affect the creation of libtool libraries that
15212 *** depend on shared libraries, but programs linked with such libtool
15213 *** libraries will work regardless of this problem.  Nevertheless, you
15214 *** may want to report the problem to your system manager and/or to
15215 *** bug-libtool@gnu.org
15216
15217 _LT_EOF
15218           fi ;;
15219         esac
15220       fi
15221       break
15222     fi
15223   done
15224   IFS="$lt_save_ifs"
15225   MAGIC_CMD="$lt_save_MAGIC_CMD"
15226   ;;
15227 esac
15228 fi
15229
15230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15231 if test -n "$MAGIC_CMD"; then
15232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15233 $as_echo "$MAGIC_CMD" >&6; }
15234 else
15235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15236 $as_echo "no" >&6; }
15237 fi
15238
15239
15240
15241
15242
15243 if test -z "$lt_cv_path_MAGIC_CMD"; then
15244   if test -n "$ac_tool_prefix"; then
15245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15246 $as_echo_n "checking for file... " >&6; }
15247 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15248   $as_echo_n "(cached) " >&6
15249 else
15250   case $MAGIC_CMD in
15251 [\\/*] |  ?:[\\/]*)
15252   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15253   ;;
15254 *)
15255   lt_save_MAGIC_CMD="$MAGIC_CMD"
15256   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15257   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15258   for ac_dir in $ac_dummy; do
15259     IFS="$lt_save_ifs"
15260     test -z "$ac_dir" && ac_dir=.
15261     if test -f $ac_dir/file; then
15262       lt_cv_path_MAGIC_CMD="$ac_dir/file"
15263       if test -n "$file_magic_test_file"; then
15264         case $deplibs_check_method in
15265         "file_magic "*)
15266           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15267           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15268           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15269             $EGREP "$file_magic_regex" > /dev/null; then
15270             :
15271           else
15272             cat <<_LT_EOF 1>&2
15273
15274 *** Warning: the command libtool uses to detect shared libraries,
15275 *** $file_magic_cmd, produces output that libtool cannot recognize.
15276 *** The result is that libtool may fail to recognize shared libraries
15277 *** as such.  This will affect the creation of libtool libraries that
15278 *** depend on shared libraries, but programs linked with such libtool
15279 *** libraries will work regardless of this problem.  Nevertheless, you
15280 *** may want to report the problem to your system manager and/or to
15281 *** bug-libtool@gnu.org
15282
15283 _LT_EOF
15284           fi ;;
15285         esac
15286       fi
15287       break
15288     fi
15289   done
15290   IFS="$lt_save_ifs"
15291   MAGIC_CMD="$lt_save_MAGIC_CMD"
15292   ;;
15293 esac
15294 fi
15295
15296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15297 if test -n "$MAGIC_CMD"; then
15298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15299 $as_echo "$MAGIC_CMD" >&6; }
15300 else
15301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15302 $as_echo "no" >&6; }
15303 fi
15304
15305
15306   else
15307     MAGIC_CMD=:
15308   fi
15309 fi
15310
15311   fi
15312   ;;
15313 esac
15314
15315 # Use C for the default configuration in the libtool script
15316
15317 lt_save_CC="$CC"
15318 ac_ext=c
15319 ac_cpp='$CPP $CPPFLAGS'
15320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15323
15324
15325 # Source file extension for C test sources.
15326 ac_ext=c
15327
15328 # Object file extension for compiled C test sources.
15329 objext=o
15330 objext=$objext
15331
15332 # Code to be used in simple compile tests
15333 lt_simple_compile_test_code="int some_variable = 0;"
15334
15335 # Code to be used in simple link tests
15336 lt_simple_link_test_code='int main(){return(0);}'
15337
15338
15339
15340
15341
15342
15343
15344 # If no C compiler was specified, use CC.
15345 LTCC=${LTCC-"$CC"}
15346
15347 # If no C compiler flags were specified, use CFLAGS.
15348 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15349
15350 # Allow CC to be a program name with arguments.
15351 compiler=$CC
15352
15353 # Save the default compiler, since it gets overwritten when the other
15354 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15355 compiler_DEFAULT=$CC
15356
15357 # save warnings/boilerplate of simple test code
15358 ac_outfile=conftest.$ac_objext
15359 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15360 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15361 _lt_compiler_boilerplate=`cat conftest.err`
15362 $RM conftest*
15363
15364 ac_outfile=conftest.$ac_objext
15365 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15366 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15367 _lt_linker_boilerplate=`cat conftest.err`
15368 $RM -r conftest*
15369
15370
15371 ## CAVEAT EMPTOR:
15372 ## There is no encapsulation within the following macros, do not change
15373 ## the running order or otherwise move them around unless you know exactly
15374 ## what you are doing...
15375 if test -n "$compiler"; then
15376
15377 lt_prog_compiler_no_builtin_flag=
15378
15379 if test "$GCC" = yes; then
15380   case $cc_basename in
15381   nvcc*)
15382     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15383   *)
15384     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15385   esac
15386
15387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15388 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15389 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15390   $as_echo_n "(cached) " >&6
15391 else
15392   lt_cv_prog_compiler_rtti_exceptions=no
15393    ac_outfile=conftest.$ac_objext
15394    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15395    lt_compiler_flag="-fno-rtti -fno-exceptions"
15396    # Insert the option either (1) after the last *FLAGS variable, or
15397    # (2) before a word containing "conftest.", or (3) at the end.
15398    # Note that $ac_compile itself does not contain backslashes and begins
15399    # with a dollar sign (not a hyphen), so the echo should work correctly.
15400    # The option is referenced via a variable to avoid confusing sed.
15401    lt_compile=`echo "$ac_compile" | $SED \
15402    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15403    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15404    -e 's:$: $lt_compiler_flag:'`
15405    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15406    (eval "$lt_compile" 2>conftest.err)
15407    ac_status=$?
15408    cat conftest.err >&5
15409    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410    if (exit $ac_status) && test -s "$ac_outfile"; then
15411      # The compiler can only warn and ignore the option if not recognized
15412      # So say no if there are warnings other than the usual output.
15413      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15414      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15415      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15416        lt_cv_prog_compiler_rtti_exceptions=yes
15417      fi
15418    fi
15419    $RM conftest*
15420
15421 fi
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15423 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15424
15425 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15426     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15427 else
15428     :
15429 fi
15430
15431 fi
15432
15433
15434
15435
15436
15437
15438   lt_prog_compiler_wl=
15439 lt_prog_compiler_pic=
15440 lt_prog_compiler_static=
15441
15442
15443   if test "$GCC" = yes; then
15444     lt_prog_compiler_wl='-Wl,'
15445     lt_prog_compiler_static='-static'
15446
15447     case $host_os in
15448       aix*)
15449       # All AIX code is PIC.
15450       if test "$host_cpu" = ia64; then
15451         # AIX 5 now supports IA64 processor
15452         lt_prog_compiler_static='-Bstatic'
15453       fi
15454       ;;
15455
15456     amigaos*)
15457       case $host_cpu in
15458       powerpc)
15459             # see comment about AmigaOS4 .so support
15460             lt_prog_compiler_pic='-fPIC'
15461         ;;
15462       m68k)
15463             # FIXME: we need at least 68020 code to build shared libraries, but
15464             # adding the `-m68020' flag to GCC prevents building anything better,
15465             # like `-m68040'.
15466             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15467         ;;
15468       esac
15469       ;;
15470
15471     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15472       # PIC is the default for these OSes.
15473       ;;
15474
15475     mingw* | cygwin* | pw32* | os2* | cegcc*)
15476       # This hack is so that the source file can tell whether it is being
15477       # built for inclusion in a dll (and should export symbols for example).
15478       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15479       # (--disable-auto-import) libraries
15480       lt_prog_compiler_pic='-DDLL_EXPORT'
15481       ;;
15482
15483     darwin* | rhapsody*)
15484       # PIC is the default on this platform
15485       # Common symbols not allowed in MH_DYLIB files
15486       lt_prog_compiler_pic='-fno-common'
15487       ;;
15488
15489     haiku*)
15490       # PIC is the default for Haiku.
15491       # The "-static" flag exists, but is broken.
15492       lt_prog_compiler_static=
15493       ;;
15494
15495     hpux*)
15496       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15497       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15498       # sets the default TLS model and affects inlining.
15499       case $host_cpu in
15500       hppa*64*)
15501         # +Z the default
15502         ;;
15503       *)
15504         lt_prog_compiler_pic='-fPIC'
15505         ;;
15506       esac
15507       ;;
15508
15509     interix[3-9]*)
15510       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15511       # Instead, we relocate shared libraries at runtime.
15512       ;;
15513
15514     msdosdjgpp*)
15515       # Just because we use GCC doesn't mean we suddenly get shared libraries
15516       # on systems that don't support them.
15517       lt_prog_compiler_can_build_shared=no
15518       enable_shared=no
15519       ;;
15520
15521     *nto* | *qnx*)
15522       # QNX uses GNU C++, but need to define -shared option too, otherwise
15523       # it will coredump.
15524       lt_prog_compiler_pic='-fPIC -shared'
15525       ;;
15526
15527     sysv4*MP*)
15528       if test -d /usr/nec; then
15529         lt_prog_compiler_pic=-Kconform_pic
15530       fi
15531       ;;
15532
15533     *)
15534       lt_prog_compiler_pic='-fPIC'
15535       ;;
15536     esac
15537
15538     case $cc_basename in
15539     nvcc*) # Cuda Compiler Driver 2.2
15540       lt_prog_compiler_wl='-Xlinker '
15541       if test -n "$lt_prog_compiler_pic"; then
15542         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15543       fi
15544       ;;
15545     esac
15546   else
15547     # PORTME Check for flag to pass linker flags through the system compiler.
15548     case $host_os in
15549     aix*)
15550       lt_prog_compiler_wl='-Wl,'
15551       if test "$host_cpu" = ia64; then
15552         # AIX 5 now supports IA64 processor
15553         lt_prog_compiler_static='-Bstatic'
15554       else
15555         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15556       fi
15557       ;;
15558
15559     mingw* | cygwin* | pw32* | os2* | cegcc*)
15560       # This hack is so that the source file can tell whether it is being
15561       # built for inclusion in a dll (and should export symbols for example).
15562       lt_prog_compiler_pic='-DDLL_EXPORT'
15563       ;;
15564
15565     hpux9* | hpux10* | hpux11*)
15566       lt_prog_compiler_wl='-Wl,'
15567       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15568       # not for PA HP-UX.
15569       case $host_cpu in
15570       hppa*64*|ia64*)
15571         # +Z the default
15572         ;;
15573       *)
15574         lt_prog_compiler_pic='+Z'
15575         ;;
15576       esac
15577       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15578       lt_prog_compiler_static='${wl}-a ${wl}archive'
15579       ;;
15580
15581     irix5* | irix6* | nonstopux*)
15582       lt_prog_compiler_wl='-Wl,'
15583       # PIC (with -KPIC) is the default.
15584       lt_prog_compiler_static='-non_shared'
15585       ;;
15586
15587     linux* | k*bsd*-gnu | kopensolaris*-gnu)
15588       case $cc_basename in
15589       # old Intel for x86_64 which still supported -KPIC.
15590       ecc*)
15591         lt_prog_compiler_wl='-Wl,'
15592         lt_prog_compiler_pic='-KPIC'
15593         lt_prog_compiler_static='-static'
15594         ;;
15595       # icc used to be incompatible with GCC.
15596       # ICC 10 doesn't accept -KPIC any more.
15597       icc* | ifort*)
15598         lt_prog_compiler_wl='-Wl,'
15599         lt_prog_compiler_pic='-fPIC'
15600         lt_prog_compiler_static='-static'
15601         ;;
15602       # Lahey Fortran 8.1.
15603       lf95*)
15604         lt_prog_compiler_wl='-Wl,'
15605         lt_prog_compiler_pic='--shared'
15606         lt_prog_compiler_static='--static'
15607         ;;
15608       nagfor*)
15609         # NAG Fortran compiler
15610         lt_prog_compiler_wl='-Wl,-Wl,,'
15611         lt_prog_compiler_pic='-PIC'
15612         lt_prog_compiler_static='-Bstatic'
15613         ;;
15614       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15615         # Portland Group compilers (*not* the Pentium gcc compiler,
15616         # which looks to be a dead project)
15617         lt_prog_compiler_wl='-Wl,'
15618         lt_prog_compiler_pic='-fpic'
15619         lt_prog_compiler_static='-Bstatic'
15620         ;;
15621       ccc*)
15622         lt_prog_compiler_wl='-Wl,'
15623         # All Alpha code is PIC.
15624         lt_prog_compiler_static='-non_shared'
15625         ;;
15626       xl* | bgxl* | bgf* | mpixl*)
15627         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15628         lt_prog_compiler_wl='-Wl,'
15629         lt_prog_compiler_pic='-qpic'
15630         lt_prog_compiler_static='-qstaticlink'
15631         ;;
15632       *)
15633         case `$CC -V 2>&1 | sed 5q` in
15634         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15635           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15636           lt_prog_compiler_pic='-KPIC'
15637           lt_prog_compiler_static='-Bstatic'
15638           lt_prog_compiler_wl=''
15639           ;;
15640         *Sun\ F* | *Sun*Fortran*)
15641           lt_prog_compiler_pic='-KPIC'
15642           lt_prog_compiler_static='-Bstatic'
15643           lt_prog_compiler_wl='-Qoption ld '
15644           ;;
15645         *Sun\ C*)
15646           # Sun C 5.9
15647           lt_prog_compiler_pic='-KPIC'
15648           lt_prog_compiler_static='-Bstatic'
15649           lt_prog_compiler_wl='-Wl,'
15650           ;;
15651         *Intel*\ [CF]*Compiler*)
15652           lt_prog_compiler_wl='-Wl,'
15653           lt_prog_compiler_pic='-fPIC'
15654           lt_prog_compiler_static='-static'
15655           ;;
15656         *Portland\ Group*)
15657           lt_prog_compiler_wl='-Wl,'
15658           lt_prog_compiler_pic='-fpic'
15659           lt_prog_compiler_static='-Bstatic'
15660           ;;
15661         esac
15662         ;;
15663       esac
15664       ;;
15665
15666     newsos6)
15667       lt_prog_compiler_pic='-KPIC'
15668       lt_prog_compiler_static='-Bstatic'
15669       ;;
15670
15671     *nto* | *qnx*)
15672       # QNX uses GNU C++, but need to define -shared option too, otherwise
15673       # it will coredump.
15674       lt_prog_compiler_pic='-fPIC -shared'
15675       ;;
15676
15677     osf3* | osf4* | osf5*)
15678       lt_prog_compiler_wl='-Wl,'
15679       # All OSF/1 code is PIC.
15680       lt_prog_compiler_static='-non_shared'
15681       ;;
15682
15683     rdos*)
15684       lt_prog_compiler_static='-non_shared'
15685       ;;
15686
15687     solaris*)
15688       lt_prog_compiler_pic='-KPIC'
15689       lt_prog_compiler_static='-Bstatic'
15690       case $cc_basename in
15691       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15692         lt_prog_compiler_wl='-Qoption ld ';;
15693       *)
15694         lt_prog_compiler_wl='-Wl,';;
15695       esac
15696       ;;
15697
15698     sunos4*)
15699       lt_prog_compiler_wl='-Qoption ld '
15700       lt_prog_compiler_pic='-PIC'
15701       lt_prog_compiler_static='-Bstatic'
15702       ;;
15703
15704     sysv4 | sysv4.2uw2* | sysv4.3*)
15705       lt_prog_compiler_wl='-Wl,'
15706       lt_prog_compiler_pic='-KPIC'
15707       lt_prog_compiler_static='-Bstatic'
15708       ;;
15709
15710     sysv4*MP*)
15711       if test -d /usr/nec ;then
15712         lt_prog_compiler_pic='-Kconform_pic'
15713         lt_prog_compiler_static='-Bstatic'
15714       fi
15715       ;;
15716
15717     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15718       lt_prog_compiler_wl='-Wl,'
15719       lt_prog_compiler_pic='-KPIC'
15720       lt_prog_compiler_static='-Bstatic'
15721       ;;
15722
15723     unicos*)
15724       lt_prog_compiler_wl='-Wl,'
15725       lt_prog_compiler_can_build_shared=no
15726       ;;
15727
15728     uts4*)
15729       lt_prog_compiler_pic='-pic'
15730       lt_prog_compiler_static='-Bstatic'
15731       ;;
15732
15733     *)
15734       lt_prog_compiler_can_build_shared=no
15735       ;;
15736     esac
15737   fi
15738
15739 case $host_os in
15740   # For platforms which do not support PIC, -DPIC is meaningless:
15741   *djgpp*)
15742     lt_prog_compiler_pic=
15743     ;;
15744   *)
15745     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15746     ;;
15747 esac
15748
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15750 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15751 if ${lt_cv_prog_compiler_pic+:} false; then :
15752   $as_echo_n "(cached) " >&6
15753 else
15754   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15755 fi
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15757 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15758 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15759
15760 #
15761 # Check to make sure the PIC flag actually works.
15762 #
15763 if test -n "$lt_prog_compiler_pic"; then
15764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15765 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15766 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15767   $as_echo_n "(cached) " >&6
15768 else
15769   lt_cv_prog_compiler_pic_works=no
15770    ac_outfile=conftest.$ac_objext
15771    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15772    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15773    # Insert the option either (1) after the last *FLAGS variable, or
15774    # (2) before a word containing "conftest.", or (3) at the end.
15775    # Note that $ac_compile itself does not contain backslashes and begins
15776    # with a dollar sign (not a hyphen), so the echo should work correctly.
15777    # The option is referenced via a variable to avoid confusing sed.
15778    lt_compile=`echo "$ac_compile" | $SED \
15779    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15780    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15781    -e 's:$: $lt_compiler_flag:'`
15782    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15783    (eval "$lt_compile" 2>conftest.err)
15784    ac_status=$?
15785    cat conftest.err >&5
15786    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787    if (exit $ac_status) && test -s "$ac_outfile"; then
15788      # The compiler can only warn and ignore the option if not recognized
15789      # So say no if there are warnings other than the usual output.
15790      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15791      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15792      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15793        lt_cv_prog_compiler_pic_works=yes
15794      fi
15795    fi
15796    $RM conftest*
15797
15798 fi
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15800 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15801
15802 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15803     case $lt_prog_compiler_pic in
15804      "" | " "*) ;;
15805      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15806      esac
15807 else
15808     lt_prog_compiler_pic=
15809      lt_prog_compiler_can_build_shared=no
15810 fi
15811
15812 fi
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824 #
15825 # Check to make sure the static flag actually works.
15826 #
15827 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15829 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15830 if ${lt_cv_prog_compiler_static_works+:} false; then :
15831   $as_echo_n "(cached) " >&6
15832 else
15833   lt_cv_prog_compiler_static_works=no
15834    save_LDFLAGS="$LDFLAGS"
15835    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15836    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15837    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15838      # The linker can only warn and ignore the option if not recognized
15839      # So say no if there are warnings
15840      if test -s conftest.err; then
15841        # Append any errors to the config.log.
15842        cat conftest.err 1>&5
15843        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15844        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15845        if diff conftest.exp conftest.er2 >/dev/null; then
15846          lt_cv_prog_compiler_static_works=yes
15847        fi
15848      else
15849        lt_cv_prog_compiler_static_works=yes
15850      fi
15851    fi
15852    $RM -r conftest*
15853    LDFLAGS="$save_LDFLAGS"
15854
15855 fi
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15857 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15858
15859 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15860     :
15861 else
15862     lt_prog_compiler_static=
15863 fi
15864
15865
15866
15867
15868
15869
15870
15871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15872 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15873 if ${lt_cv_prog_compiler_c_o+:} false; then :
15874   $as_echo_n "(cached) " >&6
15875 else
15876   lt_cv_prog_compiler_c_o=no
15877    $RM -r conftest 2>/dev/null
15878    mkdir conftest
15879    cd conftest
15880    mkdir out
15881    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15882
15883    lt_compiler_flag="-o out/conftest2.$ac_objext"
15884    # Insert the option either (1) after the last *FLAGS variable, or
15885    # (2) before a word containing "conftest.", or (3) at the end.
15886    # Note that $ac_compile itself does not contain backslashes and begins
15887    # with a dollar sign (not a hyphen), so the echo should work correctly.
15888    lt_compile=`echo "$ac_compile" | $SED \
15889    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15890    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15891    -e 's:$: $lt_compiler_flag:'`
15892    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15893    (eval "$lt_compile" 2>out/conftest.err)
15894    ac_status=$?
15895    cat out/conftest.err >&5
15896    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15898    then
15899      # The compiler can only warn and ignore the option if not recognized
15900      # So say no if there are warnings
15901      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15902      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15903      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15904        lt_cv_prog_compiler_c_o=yes
15905      fi
15906    fi
15907    chmod u+w . 2>&5
15908    $RM conftest*
15909    # SGI C++ compiler will create directory out/ii_files/ for
15910    # template instantiation
15911    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15912    $RM out/* && rmdir out
15913    cd ..
15914    $RM -r conftest
15915    $RM conftest*
15916
15917 fi
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15919 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15920
15921
15922
15923
15924
15925
15926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15927 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15928 if ${lt_cv_prog_compiler_c_o+:} false; then :
15929   $as_echo_n "(cached) " >&6
15930 else
15931   lt_cv_prog_compiler_c_o=no
15932    $RM -r conftest 2>/dev/null
15933    mkdir conftest
15934    cd conftest
15935    mkdir out
15936    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15937
15938    lt_compiler_flag="-o out/conftest2.$ac_objext"
15939    # Insert the option either (1) after the last *FLAGS variable, or
15940    # (2) before a word containing "conftest.", or (3) at the end.
15941    # Note that $ac_compile itself does not contain backslashes and begins
15942    # with a dollar sign (not a hyphen), so the echo should work correctly.
15943    lt_compile=`echo "$ac_compile" | $SED \
15944    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15945    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15946    -e 's:$: $lt_compiler_flag:'`
15947    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15948    (eval "$lt_compile" 2>out/conftest.err)
15949    ac_status=$?
15950    cat out/conftest.err >&5
15951    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15953    then
15954      # The compiler can only warn and ignore the option if not recognized
15955      # So say no if there are warnings
15956      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15957      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15958      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15959        lt_cv_prog_compiler_c_o=yes
15960      fi
15961    fi
15962    chmod u+w . 2>&5
15963    $RM conftest*
15964    # SGI C++ compiler will create directory out/ii_files/ for
15965    # template instantiation
15966    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15967    $RM out/* && rmdir out
15968    cd ..
15969    $RM -r conftest
15970    $RM conftest*
15971
15972 fi
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15974 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15975
15976
15977
15978
15979 hard_links="nottested"
15980 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15981   # do not overwrite the value of need_locks provided by the user
15982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15983 $as_echo_n "checking if we can lock with hard links... " >&6; }
15984   hard_links=yes
15985   $RM conftest*
15986   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15987   touch conftest.a
15988   ln conftest.a conftest.b 2>&5 || hard_links=no
15989   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15991 $as_echo "$hard_links" >&6; }
15992   if test "$hard_links" = no; then
15993     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15994 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15995     need_locks=warn
15996   fi
15997 else
15998   need_locks=no
15999 fi
16000
16001
16002
16003
16004
16005
16006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16007 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16008
16009   runpath_var=
16010   allow_undefined_flag=
16011   always_export_symbols=no
16012   archive_cmds=
16013   archive_expsym_cmds=
16014   compiler_needs_object=no
16015   enable_shared_with_static_runtimes=no
16016   export_dynamic_flag_spec=
16017   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16018   hardcode_automatic=no
16019   hardcode_direct=no
16020   hardcode_direct_absolute=no
16021   hardcode_libdir_flag_spec=
16022   hardcode_libdir_separator=
16023   hardcode_minus_L=no
16024   hardcode_shlibpath_var=unsupported
16025   inherit_rpath=no
16026   link_all_deplibs=unknown
16027   module_cmds=
16028   module_expsym_cmds=
16029   old_archive_from_new_cmds=
16030   old_archive_from_expsyms_cmds=
16031   thread_safe_flag_spec=
16032   whole_archive_flag_spec=
16033   # include_expsyms should be a list of space-separated symbols to be *always*
16034   # included in the symbol list
16035   include_expsyms=
16036   # exclude_expsyms can be an extended regexp of symbols to exclude
16037   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16038   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16039   # as well as any symbol that contains `d'.
16040   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16041   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16042   # platforms (ab)use it in PIC code, but their linkers get confused if
16043   # the symbol is explicitly referenced.  Since portable code cannot
16044   # rely on this symbol name, it's probably fine to never include it in
16045   # preloaded symbol tables.
16046   # Exclude shared library initialization/finalization symbols.
16047   extract_expsyms_cmds=
16048
16049   case $host_os in
16050   cygwin* | mingw* | pw32* | cegcc*)
16051     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16052     # When not using gcc, we currently assume that we are using
16053     # Microsoft Visual C++.
16054     if test "$GCC" != yes; then
16055       with_gnu_ld=no
16056     fi
16057     ;;
16058   interix*)
16059     # we just hope/assume this is gcc and not c89 (= MSVC++)
16060     with_gnu_ld=yes
16061     ;;
16062   openbsd*)
16063     with_gnu_ld=no
16064     ;;
16065   linux* | k*bsd*-gnu | gnu*)
16066     link_all_deplibs=no
16067     ;;
16068   esac
16069
16070   ld_shlibs=yes
16071
16072   # On some targets, GNU ld is compatible enough with the native linker
16073   # that we're better off using the native interface for both.
16074   lt_use_gnu_ld_interface=no
16075   if test "$with_gnu_ld" = yes; then
16076     case $host_os in
16077       aix*)
16078         # The AIX port of GNU ld has always aspired to compatibility
16079         # with the native linker.  However, as the warning in the GNU ld
16080         # block says, versions before 2.19.5* couldn't really create working
16081         # shared libraries, regardless of the interface used.
16082         case `$LD -v 2>&1` in
16083           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16084           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16085           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16086           *)
16087             lt_use_gnu_ld_interface=yes
16088             ;;
16089         esac
16090         ;;
16091       *)
16092         lt_use_gnu_ld_interface=yes
16093         ;;
16094     esac
16095   fi
16096
16097   if test "$lt_use_gnu_ld_interface" = yes; then
16098     # If archive_cmds runs LD, not CC, wlarc should be empty
16099     wlarc='${wl}'
16100
16101     # Set some defaults for GNU ld with shared library support. These
16102     # are reset later if shared libraries are not supported. Putting them
16103     # here allows them to be overridden if necessary.
16104     runpath_var=LD_RUN_PATH
16105     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16106     export_dynamic_flag_spec='${wl}--export-dynamic'
16107     # ancient GNU ld didn't support --whole-archive et. al.
16108     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16109       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16110     else
16111       whole_archive_flag_spec=
16112     fi
16113     supports_anon_versioning=no
16114     case `$LD -v 2>&1` in
16115       *GNU\ gold*) supports_anon_versioning=yes ;;
16116       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16117       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16118       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16119       *\ 2.11.*) ;; # other 2.11 versions
16120       *) supports_anon_versioning=yes ;;
16121     esac
16122
16123     # See if GNU ld supports shared libraries.
16124     case $host_os in
16125     aix[3-9]*)
16126       # On AIX/PPC, the GNU linker is very broken
16127       if test "$host_cpu" != ia64; then
16128         ld_shlibs=no
16129         cat <<_LT_EOF 1>&2
16130
16131 *** Warning: the GNU linker, at least up to release 2.19, is reported
16132 *** to be unable to reliably create shared libraries on AIX.
16133 *** Therefore, libtool is disabling shared libraries support.  If you
16134 *** really care for shared libraries, you may want to install binutils
16135 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16136 *** You will then need to restart the configuration process.
16137
16138 _LT_EOF
16139       fi
16140       ;;
16141
16142     amigaos*)
16143       case $host_cpu in
16144       powerpc)
16145             # see comment about AmigaOS4 .so support
16146             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16147             archive_expsym_cmds=''
16148         ;;
16149       m68k)
16150             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)'
16151             hardcode_libdir_flag_spec='-L$libdir'
16152             hardcode_minus_L=yes
16153         ;;
16154       esac
16155       ;;
16156
16157     beos*)
16158       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16159         allow_undefined_flag=unsupported
16160         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16161         # support --undefined.  This deserves some investigation.  FIXME
16162         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16163       else
16164         ld_shlibs=no
16165       fi
16166       ;;
16167
16168     cygwin* | mingw* | pw32* | cegcc*)
16169       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16170       # as there is no search path for DLLs.
16171       hardcode_libdir_flag_spec='-L$libdir'
16172       export_dynamic_flag_spec='${wl}--export-all-symbols'
16173       allow_undefined_flag=unsupported
16174       always_export_symbols=no
16175       enable_shared_with_static_runtimes=yes
16176       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'
16177       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16178
16179       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16180         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16181         # If the export-symbols file already is a .def file (1st line
16182         # is EXPORTS), use it as is; otherwise, prepend...
16183         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16184           cp $export_symbols $output_objdir/$soname.def;
16185         else
16186           echo EXPORTS > $output_objdir/$soname.def;
16187           cat $export_symbols >> $output_objdir/$soname.def;
16188         fi~
16189         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16190       else
16191         ld_shlibs=no
16192       fi
16193       ;;
16194
16195     haiku*)
16196       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16197       link_all_deplibs=yes
16198       ;;
16199
16200     interix[3-9]*)
16201       hardcode_direct=no
16202       hardcode_shlibpath_var=no
16203       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16204       export_dynamic_flag_spec='${wl}-E'
16205       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16206       # Instead, shared libraries are loaded at an image base (0x10000000 by
16207       # default) and relocated if they conflict, which is a slow very memory
16208       # consuming and fragmenting process.  To avoid this, we pick a random,
16209       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16210       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16211       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16212       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'
16213       ;;
16214
16215     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16216       tmp_diet=no
16217       if test "$host_os" = linux-dietlibc; then
16218         case $cc_basename in
16219           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
16220         esac
16221       fi
16222       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16223          && test "$tmp_diet" = no
16224       then
16225         tmp_addflag=' $pic_flag'
16226         tmp_sharedflag='-shared'
16227         case $cc_basename,$host_cpu in
16228         pgcc*)                          # Portland Group C compiler
16229           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'
16230           tmp_addflag=' $pic_flag'
16231           ;;
16232         pgf77* | pgf90* | pgf95* | pgfortran*)
16233                                         # Portland Group f77 and f90 compilers
16234           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'
16235           tmp_addflag=' $pic_flag -Mnomain' ;;
16236         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
16237           tmp_addflag=' -i_dynamic' ;;
16238         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16239           tmp_addflag=' -i_dynamic -nofor_main' ;;
16240         ifc* | ifort*)                  # Intel Fortran compiler
16241           tmp_addflag=' -nofor_main' ;;
16242         lf95*)                          # Lahey Fortran 8.1
16243           whole_archive_flag_spec=
16244           tmp_sharedflag='--shared' ;;
16245         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16246           tmp_sharedflag='-qmkshrobj'
16247           tmp_addflag= ;;
16248         nvcc*)  # Cuda Compiler Driver 2.2
16249           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'
16250           compiler_needs_object=yes
16251           ;;
16252         esac
16253         case `$CC -V 2>&1 | sed 5q` in
16254         *Sun\ C*)                       # Sun C 5.9
16255           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'
16256           compiler_needs_object=yes
16257           tmp_sharedflag='-G' ;;
16258         *Sun\ F*)                       # Sun Fortran 8.3
16259           tmp_sharedflag='-G' ;;
16260         esac
16261         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16262
16263         if test "x$supports_anon_versioning" = xyes; then
16264           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16265             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16266             echo "local: *; };" >> $output_objdir/$libname.ver~
16267             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16268         fi
16269
16270         case $cc_basename in
16271         xlf* | bgf* | bgxlf* | mpixlf*)
16272           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16273           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16274           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16275           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16276           if test "x$supports_anon_versioning" = xyes; then
16277             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16278               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16279               echo "local: *; };" >> $output_objdir/$libname.ver~
16280               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16281           fi
16282           ;;
16283         esac
16284       else
16285         ld_shlibs=no
16286       fi
16287       ;;
16288
16289     netbsd* | netbsdelf*-gnu)
16290       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16291         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16292         wlarc=
16293       else
16294         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16295         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16296       fi
16297       ;;
16298
16299     solaris*)
16300       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16301         ld_shlibs=no
16302         cat <<_LT_EOF 1>&2
16303
16304 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16305 *** create shared libraries on Solaris systems.  Therefore, libtool
16306 *** is disabling shared libraries support.  We urge you to upgrade GNU
16307 *** binutils to release 2.9.1 or newer.  Another option is to modify
16308 *** your PATH or compiler configuration so that the native linker is
16309 *** used, and then restart.
16310
16311 _LT_EOF
16312       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16313         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16314         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16315       else
16316         ld_shlibs=no
16317       fi
16318       ;;
16319
16320     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16321       case `$LD -v 2>&1` in
16322         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16323         ld_shlibs=no
16324         cat <<_LT_EOF 1>&2
16325
16326 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16327 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16328 *** is disabling shared libraries support.  We urge you to upgrade GNU
16329 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16330 *** your PATH or compiler configuration so that the native linker is
16331 *** used, and then restart.
16332
16333 _LT_EOF
16334         ;;
16335         *)
16336           # For security reasons, it is highly recommended that you always
16337           # use absolute paths for naming shared libraries, and exclude the
16338           # DT_RUNPATH tag from executables and libraries.  But doing so
16339           # requires that you compile everything twice, which is a pain.
16340           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16341             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16342             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16343             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16344           else
16345             ld_shlibs=no
16346           fi
16347         ;;
16348       esac
16349       ;;
16350
16351     sunos4*)
16352       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16353       wlarc=
16354       hardcode_direct=yes
16355       hardcode_shlibpath_var=no
16356       ;;
16357
16358     *)
16359       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16360         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16361         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16362       else
16363         ld_shlibs=no
16364       fi
16365       ;;
16366     esac
16367
16368     if test "$ld_shlibs" = no; then
16369       runpath_var=
16370       hardcode_libdir_flag_spec=
16371       export_dynamic_flag_spec=
16372       whole_archive_flag_spec=
16373     fi
16374   else
16375     # PORTME fill in a description of your system's linker (not GNU ld)
16376     case $host_os in
16377     aix3*)
16378       allow_undefined_flag=unsupported
16379       always_export_symbols=yes
16380       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'
16381       # Note: this linker hardcodes the directories in LIBPATH if there
16382       # are no directories specified by -L.
16383       hardcode_minus_L=yes
16384       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16385         # Neither direct hardcoding nor static linking is supported with a
16386         # broken collect2.
16387         hardcode_direct=unsupported
16388       fi
16389       ;;
16390
16391     aix[4-9]*)
16392       if test "$host_cpu" = ia64; then
16393         # On IA64, the linker does run time linking by default, so we don't
16394         # have to do anything special.
16395         aix_use_runtimelinking=no
16396         exp_sym_flag='-Bexport'
16397         no_entry_flag=""
16398       else
16399         # If we're using GNU nm, then we don't want the "-C" option.
16400         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16401         # Also, AIX nm treats weak defined symbols like other global
16402         # defined symbols, whereas GNU nm marks them as "W".
16403         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16404           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'
16405         else
16406           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'
16407         fi
16408         aix_use_runtimelinking=no
16409
16410         # Test if we are trying to use run time linking or normal
16411         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16412         # need to do runtime linking.
16413         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16414           for ld_flag in $LDFLAGS; do
16415           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16416             aix_use_runtimelinking=yes
16417             break
16418           fi
16419           done
16420           ;;
16421         esac
16422
16423         exp_sym_flag='-bexport'
16424         no_entry_flag='-bnoentry'
16425       fi
16426
16427       # When large executables or shared objects are built, AIX ld can
16428       # have problems creating the table of contents.  If linking a library
16429       # or program results in "error TOC overflow" add -mminimal-toc to
16430       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16431       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16432
16433       archive_cmds=''
16434       hardcode_direct=yes
16435       hardcode_direct_absolute=yes
16436       hardcode_libdir_separator=':'
16437       link_all_deplibs=yes
16438       file_list_spec='${wl}-f,'
16439
16440       if test "$GCC" = yes; then
16441         case $host_os in aix4.[012]|aix4.[012].*)
16442         # We only want to do this on AIX 4.2 and lower, the check
16443         # below for broken collect2 doesn't work under 4.3+
16444           collect2name=`${CC} -print-prog-name=collect2`
16445           if test -f "$collect2name" &&
16446            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16447           then
16448           # We have reworked collect2
16449           :
16450           else
16451           # We have old collect2
16452           hardcode_direct=unsupported
16453           # It fails to find uninstalled libraries when the uninstalled
16454           # path is not listed in the libpath.  Setting hardcode_minus_L
16455           # to unsupported forces relinking
16456           hardcode_minus_L=yes
16457           hardcode_libdir_flag_spec='-L$libdir'
16458           hardcode_libdir_separator=
16459           fi
16460           ;;
16461         esac
16462         shared_flag='-shared'
16463         if test "$aix_use_runtimelinking" = yes; then
16464           shared_flag="$shared_flag "'${wl}-G'
16465         fi
16466         link_all_deplibs=no
16467       else
16468         # not using gcc
16469         if test "$host_cpu" = ia64; then
16470         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16471         # chokes on -Wl,-G. The following line is correct:
16472           shared_flag='-G'
16473         else
16474           if test "$aix_use_runtimelinking" = yes; then
16475             shared_flag='${wl}-G'
16476           else
16477             shared_flag='${wl}-bM:SRE'
16478           fi
16479         fi
16480       fi
16481
16482       export_dynamic_flag_spec='${wl}-bexpall'
16483       # It seems that -bexpall does not export symbols beginning with
16484       # underscore (_), so it is better to generate a list of symbols to export.
16485       always_export_symbols=yes
16486       if test "$aix_use_runtimelinking" = yes; then
16487         # Warning - without using the other runtime loading flags (-brtl),
16488         # -berok will link without error, but may produce a broken library.
16489         allow_undefined_flag='-berok'
16490         # Determine the default libpath from the value encoded in an
16491         # empty executable.
16492         if test "${lt_cv_aix_libpath+set}" = set; then
16493   aix_libpath=$lt_cv_aix_libpath
16494 else
16495   if ${lt_cv_aix_libpath_+:} false; then :
16496   $as_echo_n "(cached) " >&6
16497 else
16498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499 /* end confdefs.h.  */
16500
16501 int
16502 main ()
16503 {
16504
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 if ac_fn_c_try_link "$LINENO"; then :
16510
16511   lt_aix_libpath_sed='
16512       /Import File Strings/,/^$/ {
16513           /^0/ {
16514               s/^0  *\([^ ]*\) *$/\1/
16515               p
16516           }
16517       }'
16518   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16519   # Check for a 64-bit object if we didn't find anything.
16520   if test -z "$lt_cv_aix_libpath_"; then
16521     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16522   fi
16523 fi
16524 rm -f core conftest.err conftest.$ac_objext \
16525     conftest$ac_exeext conftest.$ac_ext
16526   if test -z "$lt_cv_aix_libpath_"; then
16527     lt_cv_aix_libpath_="/usr/lib:/lib"
16528   fi
16529
16530 fi
16531
16532   aix_libpath=$lt_cv_aix_libpath_
16533 fi
16534
16535         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16536         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"
16537       else
16538         if test "$host_cpu" = ia64; then
16539           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16540           allow_undefined_flag="-z nodefs"
16541           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"
16542         else
16543          # Determine the default libpath from the value encoded in an
16544          # empty executable.
16545          if test "${lt_cv_aix_libpath+set}" = set; then
16546   aix_libpath=$lt_cv_aix_libpath
16547 else
16548   if ${lt_cv_aix_libpath_+:} false; then :
16549   $as_echo_n "(cached) " >&6
16550 else
16551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h.  */
16553
16554 int
16555 main ()
16556 {
16557
16558   ;
16559   return 0;
16560 }
16561 _ACEOF
16562 if ac_fn_c_try_link "$LINENO"; then :
16563
16564   lt_aix_libpath_sed='
16565       /Import File Strings/,/^$/ {
16566           /^0/ {
16567               s/^0  *\([^ ]*\) *$/\1/
16568               p
16569           }
16570       }'
16571   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16572   # Check for a 64-bit object if we didn't find anything.
16573   if test -z "$lt_cv_aix_libpath_"; then
16574     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16575   fi
16576 fi
16577 rm -f core conftest.err conftest.$ac_objext \
16578     conftest$ac_exeext conftest.$ac_ext
16579   if test -z "$lt_cv_aix_libpath_"; then
16580     lt_cv_aix_libpath_="/usr/lib:/lib"
16581   fi
16582
16583 fi
16584
16585   aix_libpath=$lt_cv_aix_libpath_
16586 fi
16587
16588          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16589           # Warning - without using the other run time loading flags,
16590           # -berok will link without error, but may produce a broken library.
16591           no_undefined_flag=' ${wl}-bernotok'
16592           allow_undefined_flag=' ${wl}-berok'
16593           if test "$with_gnu_ld" = yes; then
16594             # We only use this code for GNU lds that support --whole-archive.
16595             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16596           else
16597             # Exported symbols can be pulled into shared objects from archives
16598             whole_archive_flag_spec='$convenience'
16599           fi
16600           archive_cmds_need_lc=yes
16601           # This is similar to how AIX traditionally builds its shared libraries.
16602           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'
16603         fi
16604       fi
16605       ;;
16606
16607     amigaos*)
16608       case $host_cpu in
16609       powerpc)
16610             # see comment about AmigaOS4 .so support
16611             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16612             archive_expsym_cmds=''
16613         ;;
16614       m68k)
16615             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)'
16616             hardcode_libdir_flag_spec='-L$libdir'
16617             hardcode_minus_L=yes
16618         ;;
16619       esac
16620       ;;
16621
16622     bsdi[45]*)
16623       export_dynamic_flag_spec=-rdynamic
16624       ;;
16625
16626     cygwin* | mingw* | pw32* | cegcc*)
16627       # When not using gcc, we currently assume that we are using
16628       # Microsoft Visual C++.
16629       # hardcode_libdir_flag_spec is actually meaningless, as there is
16630       # no search path for DLLs.
16631       case $cc_basename in
16632       cl*)
16633         # Native MSVC
16634         hardcode_libdir_flag_spec=' '
16635         allow_undefined_flag=unsupported
16636         always_export_symbols=yes
16637         file_list_spec='@'
16638         # Tell ltmain to make .lib files, not .a files.
16639         libext=lib
16640         # Tell ltmain to make .dll files, not .so files.
16641         shrext_cmds=".dll"
16642         # FIXME: Setting linknames here is a bad hack.
16643         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16644         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16645             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16646           else
16647             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16648           fi~
16649           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16650           linknames='
16651         # The linker will not automatically build a static lib if we build a DLL.
16652         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16653         enable_shared_with_static_runtimes=yes
16654         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16655         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16656         # Don't use ranlib
16657         old_postinstall_cmds='chmod 644 $oldlib'
16658         postlink_cmds='lt_outputfile="@OUTPUT@"~
16659           lt_tool_outputfile="@TOOL_OUTPUT@"~
16660           case $lt_outputfile in
16661             *.exe|*.EXE) ;;
16662             *)
16663               lt_outputfile="$lt_outputfile.exe"
16664               lt_tool_outputfile="$lt_tool_outputfile.exe"
16665               ;;
16666           esac~
16667           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16668             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16669             $RM "$lt_outputfile.manifest";
16670           fi'
16671         ;;
16672       *)
16673         # Assume MSVC wrapper
16674         hardcode_libdir_flag_spec=' '
16675         allow_undefined_flag=unsupported
16676         # Tell ltmain to make .lib files, not .a files.
16677         libext=lib
16678         # Tell ltmain to make .dll files, not .so files.
16679         shrext_cmds=".dll"
16680         # FIXME: Setting linknames here is a bad hack.
16681         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16682         # The linker will automatically build a .lib file if we build a DLL.
16683         old_archive_from_new_cmds='true'
16684         # FIXME: Should let the user specify the lib program.
16685         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16686         enable_shared_with_static_runtimes=yes
16687         ;;
16688       esac
16689       ;;
16690
16691     darwin* | rhapsody*)
16692
16693
16694   archive_cmds_need_lc=no
16695   hardcode_direct=no
16696   hardcode_automatic=yes
16697   hardcode_shlibpath_var=unsupported
16698   if test "$lt_cv_ld_force_load" = "yes"; then
16699     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\"`'
16700
16701   else
16702     whole_archive_flag_spec=''
16703   fi
16704   link_all_deplibs=yes
16705   allow_undefined_flag="$_lt_dar_allow_undefined"
16706   case $cc_basename in
16707      ifort*) _lt_dar_can_shared=yes ;;
16708      *) _lt_dar_can_shared=$GCC ;;
16709   esac
16710   if test "$_lt_dar_can_shared" = "yes"; then
16711     output_verbose_link_cmd=func_echo_all
16712     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16713     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16714     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}"
16715     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}"
16716
16717   else
16718   ld_shlibs=no
16719   fi
16720
16721       ;;
16722
16723     dgux*)
16724       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16725       hardcode_libdir_flag_spec='-L$libdir'
16726       hardcode_shlibpath_var=no
16727       ;;
16728
16729     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16730     # support.  Future versions do this automatically, but an explicit c++rt0.o
16731     # does not break anything, and helps significantly (at the cost of a little
16732     # extra space).
16733     freebsd2.2*)
16734       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16735       hardcode_libdir_flag_spec='-R$libdir'
16736       hardcode_direct=yes
16737       hardcode_shlibpath_var=no
16738       ;;
16739
16740     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16741     freebsd2.*)
16742       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16743       hardcode_direct=yes
16744       hardcode_minus_L=yes
16745       hardcode_shlibpath_var=no
16746       ;;
16747
16748     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16749     freebsd* | dragonfly*)
16750       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16751       hardcode_libdir_flag_spec='-R$libdir'
16752       hardcode_direct=yes
16753       hardcode_shlibpath_var=no
16754       ;;
16755
16756     hpux9*)
16757       if test "$GCC" = yes; then
16758         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'
16759       else
16760         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'
16761       fi
16762       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16763       hardcode_libdir_separator=:
16764       hardcode_direct=yes
16765
16766       # hardcode_minus_L: Not really in the search PATH,
16767       # but as the default location of the library.
16768       hardcode_minus_L=yes
16769       export_dynamic_flag_spec='${wl}-E'
16770       ;;
16771
16772     hpux10*)
16773       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16774         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16775       else
16776         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16777       fi
16778       if test "$with_gnu_ld" = no; then
16779         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16780         hardcode_libdir_separator=:
16781         hardcode_direct=yes
16782         hardcode_direct_absolute=yes
16783         export_dynamic_flag_spec='${wl}-E'
16784         # hardcode_minus_L: Not really in the search PATH,
16785         # but as the default location of the library.
16786         hardcode_minus_L=yes
16787       fi
16788       ;;
16789
16790     hpux11*)
16791       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16792         case $host_cpu in
16793         hppa*64*)
16794           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16795           ;;
16796         ia64*)
16797           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16798           ;;
16799         *)
16800           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16801           ;;
16802         esac
16803       else
16804         case $host_cpu in
16805         hppa*64*)
16806           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16807           ;;
16808         ia64*)
16809           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16810           ;;
16811         *)
16812
16813           # Older versions of the 11.00 compiler do not understand -b yet
16814           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16815           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16816 $as_echo_n "checking if $CC understands -b... " >&6; }
16817 if ${lt_cv_prog_compiler__b+:} false; then :
16818   $as_echo_n "(cached) " >&6
16819 else
16820   lt_cv_prog_compiler__b=no
16821    save_LDFLAGS="$LDFLAGS"
16822    LDFLAGS="$LDFLAGS -b"
16823    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16824    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16825      # The linker can only warn and ignore the option if not recognized
16826      # So say no if there are warnings
16827      if test -s conftest.err; then
16828        # Append any errors to the config.log.
16829        cat conftest.err 1>&5
16830        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16831        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16832        if diff conftest.exp conftest.er2 >/dev/null; then
16833          lt_cv_prog_compiler__b=yes
16834        fi
16835      else
16836        lt_cv_prog_compiler__b=yes
16837      fi
16838    fi
16839    $RM -r conftest*
16840    LDFLAGS="$save_LDFLAGS"
16841
16842 fi
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16844 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16845
16846 if test x"$lt_cv_prog_compiler__b" = xyes; then
16847     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16848 else
16849     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16850 fi
16851
16852           ;;
16853         esac
16854       fi
16855       if test "$with_gnu_ld" = no; then
16856         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16857         hardcode_libdir_separator=:
16858
16859         case $host_cpu in
16860         hppa*64*|ia64*)
16861           hardcode_direct=no
16862           hardcode_shlibpath_var=no
16863           ;;
16864         *)
16865           hardcode_direct=yes
16866           hardcode_direct_absolute=yes
16867           export_dynamic_flag_spec='${wl}-E'
16868
16869           # hardcode_minus_L: Not really in the search PATH,
16870           # but as the default location of the library.
16871           hardcode_minus_L=yes
16872           ;;
16873         esac
16874       fi
16875       ;;
16876
16877     irix5* | irix6* | nonstopux*)
16878       if test "$GCC" = yes; then
16879         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'
16880         # Try to use the -exported_symbol ld option, if it does not
16881         # work, assume that -exports_file does not work either and
16882         # implicitly export all symbols.
16883         # This should be the same for all languages, so no per-tag cache variable.
16884         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16885 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16886 if ${lt_cv_irix_exported_symbol+:} false; then :
16887   $as_echo_n "(cached) " >&6
16888 else
16889   save_LDFLAGS="$LDFLAGS"
16890            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16891            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892 /* end confdefs.h.  */
16893 int foo (void) { return 0; }
16894 _ACEOF
16895 if ac_fn_c_try_link "$LINENO"; then :
16896   lt_cv_irix_exported_symbol=yes
16897 else
16898   lt_cv_irix_exported_symbol=no
16899 fi
16900 rm -f core conftest.err conftest.$ac_objext \
16901     conftest$ac_exeext conftest.$ac_ext
16902            LDFLAGS="$save_LDFLAGS"
16903 fi
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16905 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16906         if test "$lt_cv_irix_exported_symbol" = yes; then
16907           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'
16908         fi
16909       else
16910         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'
16911         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'
16912       fi
16913       archive_cmds_need_lc='no'
16914       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16915       hardcode_libdir_separator=:
16916       inherit_rpath=yes
16917       link_all_deplibs=yes
16918       ;;
16919
16920     netbsd* | netbsdelf*-gnu)
16921       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16922         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16923       else
16924         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16925       fi
16926       hardcode_libdir_flag_spec='-R$libdir'
16927       hardcode_direct=yes
16928       hardcode_shlibpath_var=no
16929       ;;
16930
16931     newsos6)
16932       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16933       hardcode_direct=yes
16934       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16935       hardcode_libdir_separator=:
16936       hardcode_shlibpath_var=no
16937       ;;
16938
16939     *nto* | *qnx*)
16940       ;;
16941
16942     openbsd*)
16943       if test -f /usr/libexec/ld.so; then
16944         hardcode_direct=yes
16945         hardcode_shlibpath_var=no
16946         hardcode_direct_absolute=yes
16947         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16948           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16949           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16950           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16951           export_dynamic_flag_spec='${wl}-E'
16952         else
16953           case $host_os in
16954            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16955              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16956              hardcode_libdir_flag_spec='-R$libdir'
16957              ;;
16958            *)
16959              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16960              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16961              ;;
16962           esac
16963         fi
16964       else
16965         ld_shlibs=no
16966       fi
16967       ;;
16968
16969     os2*)
16970       hardcode_libdir_flag_spec='-L$libdir'
16971       hardcode_minus_L=yes
16972       allow_undefined_flag=unsupported
16973       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'
16974       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16975       ;;
16976
16977     osf3*)
16978       if test "$GCC" = yes; then
16979         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16980         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'
16981       else
16982         allow_undefined_flag=' -expect_unresolved \*'
16983         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'
16984       fi
16985       archive_cmds_need_lc='no'
16986       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16987       hardcode_libdir_separator=:
16988       ;;
16989
16990     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16991       if test "$GCC" = yes; then
16992         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16993         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'
16994         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16995       else
16996         allow_undefined_flag=' -expect_unresolved \*'
16997         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'
16998         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~
16999         $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'
17000
17001         # Both c and cxx compiler support -rpath directly
17002         hardcode_libdir_flag_spec='-rpath $libdir'
17003       fi
17004       archive_cmds_need_lc='no'
17005       hardcode_libdir_separator=:
17006       ;;
17007
17008     solaris*)
17009       no_undefined_flag=' -z defs'
17010       if test "$GCC" = yes; then
17011         wlarc='${wl}'
17012         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17013         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17014           $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'
17015       else
17016         case `$CC -V 2>&1` in
17017         *"Compilers 5.0"*)
17018           wlarc=''
17019           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17020           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17021           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17022           ;;
17023         *)
17024           wlarc='${wl}'
17025           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17026           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17027           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17028           ;;
17029         esac
17030       fi
17031       hardcode_libdir_flag_spec='-R$libdir'
17032       hardcode_shlibpath_var=no
17033       case $host_os in
17034       solaris2.[0-5] | solaris2.[0-5].*) ;;
17035       *)
17036         # The compiler driver will combine and reorder linker options,
17037         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17038         # but is careful enough not to reorder.
17039         # Supported since Solaris 2.6 (maybe 2.5.1?)
17040         if test "$GCC" = yes; then
17041           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17042         else
17043           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17044         fi
17045         ;;
17046       esac
17047       link_all_deplibs=yes
17048       ;;
17049
17050     sunos4*)
17051       if test "x$host_vendor" = xsequent; then
17052         # Use $CC to link under sequent, because it throws in some extra .o
17053         # files that make .init and .fini sections work.
17054         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17055       else
17056         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17057       fi
17058       hardcode_libdir_flag_spec='-L$libdir'
17059       hardcode_direct=yes
17060       hardcode_minus_L=yes
17061       hardcode_shlibpath_var=no
17062       ;;
17063
17064     sysv4)
17065       case $host_vendor in
17066         sni)
17067           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17068           hardcode_direct=yes # is this really true???
17069         ;;
17070         siemens)
17071           ## LD is ld it makes a PLAMLIB
17072           ## CC just makes a GrossModule.
17073           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17074           reload_cmds='$CC -r -o $output$reload_objs'
17075           hardcode_direct=no
17076         ;;
17077         motorola)
17078           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17079           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17080         ;;
17081       esac
17082       runpath_var='LD_RUN_PATH'
17083       hardcode_shlibpath_var=no
17084       ;;
17085
17086     sysv4.3*)
17087       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17088       hardcode_shlibpath_var=no
17089       export_dynamic_flag_spec='-Bexport'
17090       ;;
17091
17092     sysv4*MP*)
17093       if test -d /usr/nec; then
17094         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17095         hardcode_shlibpath_var=no
17096         runpath_var=LD_RUN_PATH
17097         hardcode_runpath_var=yes
17098         ld_shlibs=yes
17099       fi
17100       ;;
17101
17102     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17103       no_undefined_flag='${wl}-z,text'
17104       archive_cmds_need_lc=no
17105       hardcode_shlibpath_var=no
17106       runpath_var='LD_RUN_PATH'
17107
17108       if test "$GCC" = yes; then
17109         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17110         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17111       else
17112         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17113         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17114       fi
17115       ;;
17116
17117     sysv5* | sco3.2v5* | sco5v6*)
17118       # Note: We can NOT use -z defs as we might desire, because we do not
17119       # link with -lc, and that would cause any symbols used from libc to
17120       # always be unresolved, which means just about no library would
17121       # ever link correctly.  If we're not using GNU ld we use -z text
17122       # though, which does catch some bad symbols but isn't as heavy-handed
17123       # as -z defs.
17124       no_undefined_flag='${wl}-z,text'
17125       allow_undefined_flag='${wl}-z,nodefs'
17126       archive_cmds_need_lc=no
17127       hardcode_shlibpath_var=no
17128       hardcode_libdir_flag_spec='${wl}-R,$libdir'
17129       hardcode_libdir_separator=':'
17130       link_all_deplibs=yes
17131       export_dynamic_flag_spec='${wl}-Bexport'
17132       runpath_var='LD_RUN_PATH'
17133
17134       if test "$GCC" = yes; then
17135         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17136         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17137       else
17138         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17139         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17140       fi
17141       ;;
17142
17143     uts4*)
17144       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17145       hardcode_libdir_flag_spec='-L$libdir'
17146       hardcode_shlibpath_var=no
17147       ;;
17148
17149     *)
17150       ld_shlibs=no
17151       ;;
17152     esac
17153
17154     if test x$host_vendor = xsni; then
17155       case $host in
17156       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17157         export_dynamic_flag_spec='${wl}-Blargedynsym'
17158         ;;
17159       esac
17160     fi
17161   fi
17162
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17164 $as_echo "$ld_shlibs" >&6; }
17165 test "$ld_shlibs" = no && can_build_shared=no
17166
17167 with_gnu_ld=$with_gnu_ld
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183 #
17184 # Do we need to explicitly link libc?
17185 #
17186 case "x$archive_cmds_need_lc" in
17187 x|xyes)
17188   # Assume -lc should be added
17189   archive_cmds_need_lc=yes
17190
17191   if test "$enable_shared" = yes && test "$GCC" = yes; then
17192     case $archive_cmds in
17193     *'~'*)
17194       # FIXME: we may have to deal with multi-command sequences.
17195       ;;
17196     '$CC '*)
17197       # Test whether the compiler implicitly links with -lc since on some
17198       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17199       # to ld, don't add -lc before -lgcc.
17200       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17201 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17202 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17203   $as_echo_n "(cached) " >&6
17204 else
17205   $RM conftest*
17206         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17207
17208         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17209   (eval $ac_compile) 2>&5
17210   ac_status=$?
17211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17212   test $ac_status = 0; } 2>conftest.err; then
17213           soname=conftest
17214           lib=conftest
17215           libobjs=conftest.$ac_objext
17216           deplibs=
17217           wl=$lt_prog_compiler_wl
17218           pic_flag=$lt_prog_compiler_pic
17219           compiler_flags=-v
17220           linker_flags=-v
17221           verstring=
17222           output_objdir=.
17223           libname=conftest
17224           lt_save_allow_undefined_flag=$allow_undefined_flag
17225           allow_undefined_flag=
17226           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17227   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17228   ac_status=$?
17229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17230   test $ac_status = 0; }
17231           then
17232             lt_cv_archive_cmds_need_lc=no
17233           else
17234             lt_cv_archive_cmds_need_lc=yes
17235           fi
17236           allow_undefined_flag=$lt_save_allow_undefined_flag
17237         else
17238           cat conftest.err 1>&5
17239         fi
17240         $RM conftest*
17241
17242 fi
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17244 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17245       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17246       ;;
17247     esac
17248   fi
17249   ;;
17250 esac
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17404 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17405
17406 if test "$GCC" = yes; then
17407   case $host_os in
17408     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17409     *) lt_awk_arg="/^libraries:/" ;;
17410   esac
17411   case $host_os in
17412     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17413     *) lt_sed_strip_eq="s,=/,/,g" ;;
17414   esac
17415   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17416   case $lt_search_path_spec in
17417   *\;*)
17418     # if the path contains ";" then we assume it to be the separator
17419     # otherwise default to the standard path separator (i.e. ":") - it is
17420     # assumed that no part of a normal pathname contains ";" but that should
17421     # okay in the real world where ";" in dirpaths is itself problematic.
17422     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17423     ;;
17424   *)
17425     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17426     ;;
17427   esac
17428   # Ok, now we have the path, separated by spaces, we can step through it
17429   # and add multilib dir if necessary.
17430   lt_tmp_lt_search_path_spec=
17431   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17432   for lt_sys_path in $lt_search_path_spec; do
17433     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17434       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17435     else
17436       test -d "$lt_sys_path" && \
17437         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17438     fi
17439   done
17440   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17441 BEGIN {RS=" "; FS="/|\n";} {
17442   lt_foo="";
17443   lt_count=0;
17444   for (lt_i = NF; lt_i > 0; lt_i--) {
17445     if ($lt_i != "" && $lt_i != ".") {
17446       if ($lt_i == "..") {
17447         lt_count++;
17448       } else {
17449         if (lt_count == 0) {
17450           lt_foo="/" $lt_i lt_foo;
17451         } else {
17452           lt_count--;
17453         }
17454       }
17455     }
17456   }
17457   if (lt_foo != "") { lt_freq[lt_foo]++; }
17458   if (lt_freq[lt_foo] == 1) { print lt_foo; }
17459 }'`
17460   # AWK program above erroneously prepends '/' to C:/dos/paths
17461   # for these hosts.
17462   case $host_os in
17463     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17464       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17465   esac
17466   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17467 else
17468   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17469 fi
17470 library_names_spec=
17471 libname_spec='lib$name'
17472 soname_spec=
17473 shrext_cmds=".so"
17474 postinstall_cmds=
17475 postuninstall_cmds=
17476 finish_cmds=
17477 finish_eval=
17478 shlibpath_var=
17479 shlibpath_overrides_runpath=unknown
17480 version_type=none
17481 dynamic_linker="$host_os ld.so"
17482 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17483 need_lib_prefix=unknown
17484 hardcode_into_libs=no
17485
17486 # when you set need_version to no, make sure it does not cause -set_version
17487 # flags to be left without arguments
17488 need_version=unknown
17489
17490 case $host_os in
17491 aix3*)
17492   version_type=linux # correct to gnu/linux during the next big refactor
17493   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17494   shlibpath_var=LIBPATH
17495
17496   # AIX 3 has no versioning support, so we append a major version to the name.
17497   soname_spec='${libname}${release}${shared_ext}$major'
17498   ;;
17499
17500 aix[4-9]*)
17501   version_type=linux # correct to gnu/linux during the next big refactor
17502   need_lib_prefix=no
17503   need_version=no
17504   hardcode_into_libs=yes
17505   if test "$host_cpu" = ia64; then
17506     # AIX 5 supports IA64
17507     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17508     shlibpath_var=LD_LIBRARY_PATH
17509   else
17510     # With GCC up to 2.95.x, collect2 would create an import file
17511     # for dependence libraries.  The import file would start with
17512     # the line `#! .'.  This would cause the generated library to
17513     # depend on `.', always an invalid library.  This was fixed in
17514     # development snapshots of GCC prior to 3.0.
17515     case $host_os in
17516       aix4 | aix4.[01] | aix4.[01].*)
17517       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17518            echo ' yes '
17519            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17520         :
17521       else
17522         can_build_shared=no
17523       fi
17524       ;;
17525     esac
17526     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17527     # soname into executable. Probably we can add versioning support to
17528     # collect2, so additional links can be useful in future.
17529     if test "$aix_use_runtimelinking" = yes; then
17530       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17531       # instead of lib<name>.a to let people know that these are not
17532       # typical AIX shared libraries.
17533       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534     else
17535       # We preserve .a as extension for shared libraries through AIX4.2
17536       # and later when we are not doing run time linking.
17537       library_names_spec='${libname}${release}.a $libname.a'
17538       soname_spec='${libname}${release}${shared_ext}$major'
17539     fi
17540     shlibpath_var=LIBPATH
17541   fi
17542   ;;
17543
17544 amigaos*)
17545   case $host_cpu in
17546   powerpc)
17547     # Since July 2007 AmigaOS4 officially supports .so libraries.
17548     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17549     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17550     ;;
17551   m68k)
17552     library_names_spec='$libname.ixlibrary $libname.a'
17553     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17554     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'
17555     ;;
17556   esac
17557   ;;
17558
17559 beos*)
17560   library_names_spec='${libname}${shared_ext}'
17561   dynamic_linker="$host_os ld.so"
17562   shlibpath_var=LIBRARY_PATH
17563   ;;
17564
17565 bsdi[45]*)
17566   version_type=linux # correct to gnu/linux during the next big refactor
17567   need_version=no
17568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17569   soname_spec='${libname}${release}${shared_ext}$major'
17570   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17571   shlibpath_var=LD_LIBRARY_PATH
17572   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17573   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17574   # the default ld.so.conf also contains /usr/contrib/lib and
17575   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17576   # libtool to hard-code these into programs
17577   ;;
17578
17579 cygwin* | mingw* | pw32* | cegcc*)
17580   version_type=windows
17581   shrext_cmds=".dll"
17582   need_version=no
17583   need_lib_prefix=no
17584
17585   case $GCC,$cc_basename in
17586   yes,*)
17587     # gcc
17588     library_names_spec='$libname.dll.a'
17589     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17590     postinstall_cmds='base_file=`basename \${file}`~
17591       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17592       dldir=$destdir/`dirname \$dlpath`~
17593       test -d \$dldir || mkdir -p \$dldir~
17594       $install_prog $dir/$dlname \$dldir/$dlname~
17595       chmod a+x \$dldir/$dlname~
17596       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17597         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17598       fi'
17599     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17600       dlpath=$dir/\$dldll~
17601        $RM \$dlpath'
17602     shlibpath_overrides_runpath=yes
17603
17604     case $host_os in
17605     cygwin*)
17606       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17607       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17608
17609       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17610       ;;
17611     mingw* | cegcc*)
17612       # MinGW DLLs use traditional 'lib' prefix
17613       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17614       ;;
17615     pw32*)
17616       # pw32 DLLs use 'pw' prefix rather than 'lib'
17617       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17618       ;;
17619     esac
17620     dynamic_linker='Win32 ld.exe'
17621     ;;
17622
17623   *,cl*)
17624     # Native MSVC
17625     libname_spec='$name'
17626     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17627     library_names_spec='${libname}.dll.lib'
17628
17629     case $build_os in
17630     mingw*)
17631       sys_lib_search_path_spec=
17632       lt_save_ifs=$IFS
17633       IFS=';'
17634       for lt_path in $LIB
17635       do
17636         IFS=$lt_save_ifs
17637         # Let DOS variable expansion print the short 8.3 style file name.
17638         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17639         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17640       done
17641       IFS=$lt_save_ifs
17642       # Convert to MSYS style.
17643       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17644       ;;
17645     cygwin*)
17646       # Convert to unix form, then to dos form, then back to unix form
17647       # but this time dos style (no spaces!) so that the unix form looks
17648       # like /cygdrive/c/PROGRA~1:/cygdr...
17649       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17650       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17651       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17652       ;;
17653     *)
17654       sys_lib_search_path_spec="$LIB"
17655       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17656         # It is most probably a Windows format PATH.
17657         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17658       else
17659         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17660       fi
17661       # FIXME: find the short name or the path components, as spaces are
17662       # common. (e.g. "Program Files" -> "PROGRA~1")
17663       ;;
17664     esac
17665
17666     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17667     postinstall_cmds='base_file=`basename \${file}`~
17668       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17669       dldir=$destdir/`dirname \$dlpath`~
17670       test -d \$dldir || mkdir -p \$dldir~
17671       $install_prog $dir/$dlname \$dldir/$dlname'
17672     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17673       dlpath=$dir/\$dldll~
17674        $RM \$dlpath'
17675     shlibpath_overrides_runpath=yes
17676     dynamic_linker='Win32 link.exe'
17677     ;;
17678
17679   *)
17680     # Assume MSVC wrapper
17681     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17682     dynamic_linker='Win32 ld.exe'
17683     ;;
17684   esac
17685   # FIXME: first we should search . and the directory the executable is in
17686   shlibpath_var=PATH
17687   ;;
17688
17689 darwin* | rhapsody*)
17690   dynamic_linker="$host_os dyld"
17691   version_type=darwin
17692   need_lib_prefix=no
17693   need_version=no
17694   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17695   soname_spec='${libname}${release}${major}$shared_ext'
17696   shlibpath_overrides_runpath=yes
17697   shlibpath_var=DYLD_LIBRARY_PATH
17698   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17699
17700   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17701   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17702   ;;
17703
17704 dgux*)
17705   version_type=linux # correct to gnu/linux during the next big refactor
17706   need_lib_prefix=no
17707   need_version=no
17708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17709   soname_spec='${libname}${release}${shared_ext}$major'
17710   shlibpath_var=LD_LIBRARY_PATH
17711   ;;
17712
17713 freebsd* | dragonfly*)
17714   # DragonFly does not have aout.  When/if they implement a new
17715   # versioning mechanism, adjust this.
17716   if test -x /usr/bin/objformat; then
17717     objformat=`/usr/bin/objformat`
17718   else
17719     case $host_os in
17720     freebsd[23].*) objformat=aout ;;
17721     *) objformat=elf ;;
17722     esac
17723   fi
17724   version_type=freebsd-$objformat
17725   case $version_type in
17726     freebsd-elf*)
17727       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17728       need_version=no
17729       need_lib_prefix=no
17730       ;;
17731     freebsd-*)
17732       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17733       need_version=yes
17734       ;;
17735   esac
17736   shlibpath_var=LD_LIBRARY_PATH
17737   case $host_os in
17738   freebsd2.*)
17739     shlibpath_overrides_runpath=yes
17740     ;;
17741   freebsd3.[01]* | freebsdelf3.[01]*)
17742     shlibpath_overrides_runpath=yes
17743     hardcode_into_libs=yes
17744     ;;
17745   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17746   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17747     shlibpath_overrides_runpath=no
17748     hardcode_into_libs=yes
17749     ;;
17750   *) # from 4.6 on, and DragonFly
17751     shlibpath_overrides_runpath=yes
17752     hardcode_into_libs=yes
17753     ;;
17754   esac
17755   ;;
17756
17757 gnu*)
17758   version_type=linux # correct to gnu/linux during the next big refactor
17759   need_lib_prefix=no
17760   need_version=no
17761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17762   soname_spec='${libname}${release}${shared_ext}$major'
17763   shlibpath_var=LD_LIBRARY_PATH
17764   shlibpath_overrides_runpath=no
17765   hardcode_into_libs=yes
17766   ;;
17767
17768 haiku*)
17769   version_type=linux # correct to gnu/linux during the next big refactor
17770   need_lib_prefix=no
17771   need_version=no
17772   dynamic_linker="$host_os runtime_loader"
17773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17774   soname_spec='${libname}${release}${shared_ext}$major'
17775   shlibpath_var=LIBRARY_PATH
17776   shlibpath_overrides_runpath=yes
17777   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17778   hardcode_into_libs=yes
17779   ;;
17780
17781 hpux9* | hpux10* | hpux11*)
17782   # Give a soname corresponding to the major version so that dld.sl refuses to
17783   # link against other versions.
17784   version_type=sunos
17785   need_lib_prefix=no
17786   need_version=no
17787   case $host_cpu in
17788   ia64*)
17789     shrext_cmds='.so'
17790     hardcode_into_libs=yes
17791     dynamic_linker="$host_os dld.so"
17792     shlibpath_var=LD_LIBRARY_PATH
17793     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17795     soname_spec='${libname}${release}${shared_ext}$major'
17796     if test "X$HPUX_IA64_MODE" = X32; then
17797       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17798     else
17799       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17800     fi
17801     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17802     ;;
17803   hppa*64*)
17804     shrext_cmds='.sl'
17805     hardcode_into_libs=yes
17806     dynamic_linker="$host_os dld.sl"
17807     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17808     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17809     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17810     soname_spec='${libname}${release}${shared_ext}$major'
17811     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17812     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17813     ;;
17814   *)
17815     shrext_cmds='.sl'
17816     dynamic_linker="$host_os dld.sl"
17817     shlibpath_var=SHLIB_PATH
17818     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17820     soname_spec='${libname}${release}${shared_ext}$major'
17821     ;;
17822   esac
17823   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17824   postinstall_cmds='chmod 555 $lib'
17825   # or fails outright, so override atomically:
17826   install_override_mode=555
17827   ;;
17828
17829 interix[3-9]*)
17830   version_type=linux # correct to gnu/linux during the next big refactor
17831   need_lib_prefix=no
17832   need_version=no
17833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17834   soname_spec='${libname}${release}${shared_ext}$major'
17835   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17836   shlibpath_var=LD_LIBRARY_PATH
17837   shlibpath_overrides_runpath=no
17838   hardcode_into_libs=yes
17839   ;;
17840
17841 irix5* | irix6* | nonstopux*)
17842   case $host_os in
17843     nonstopux*) version_type=nonstopux ;;
17844     *)
17845         if test "$lt_cv_prog_gnu_ld" = yes; then
17846                 version_type=linux # correct to gnu/linux during the next big refactor
17847         else
17848                 version_type=irix
17849         fi ;;
17850   esac
17851   need_lib_prefix=no
17852   need_version=no
17853   soname_spec='${libname}${release}${shared_ext}$major'
17854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17855   case $host_os in
17856   irix5* | nonstopux*)
17857     libsuff= shlibsuff=
17858     ;;
17859   *)
17860     case $LD in # libtool.m4 will add one of these switches to LD
17861     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17862       libsuff= shlibsuff= libmagic=32-bit;;
17863     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17864       libsuff=32 shlibsuff=N32 libmagic=N32;;
17865     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17866       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17867     *) libsuff= shlibsuff= libmagic=never-match;;
17868     esac
17869     ;;
17870   esac
17871   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17872   shlibpath_overrides_runpath=no
17873   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17874   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17875   hardcode_into_libs=yes
17876   ;;
17877
17878 # No shared lib support for Linux oldld, aout, or coff.
17879 linux*oldld* | linux*aout* | linux*coff*)
17880   dynamic_linker=no
17881   ;;
17882
17883 # This must be glibc/ELF.
17884 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17885   version_type=linux # correct to gnu/linux during the next big refactor
17886   need_lib_prefix=no
17887   need_version=no
17888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17889   soname_spec='${libname}${release}${shared_ext}$major'
17890   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17891   shlibpath_var=LD_LIBRARY_PATH
17892   shlibpath_overrides_runpath=no
17893
17894   # Some binutils ld are patched to set DT_RUNPATH
17895   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17896   $as_echo_n "(cached) " >&6
17897 else
17898   lt_cv_shlibpath_overrides_runpath=no
17899     save_LDFLAGS=$LDFLAGS
17900     save_libdir=$libdir
17901     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17902          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17903     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h.  */
17905
17906 int
17907 main ()
17908 {
17909
17910   ;
17911   return 0;
17912 }
17913 _ACEOF
17914 if ac_fn_c_try_link "$LINENO"; then :
17915   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17916   lt_cv_shlibpath_overrides_runpath=yes
17917 fi
17918 fi
17919 rm -f core conftest.err conftest.$ac_objext \
17920     conftest$ac_exeext conftest.$ac_ext
17921     LDFLAGS=$save_LDFLAGS
17922     libdir=$save_libdir
17923
17924 fi
17925
17926   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17927
17928   # This implies no fast_install, which is unacceptable.
17929   # Some rework will be needed to allow for fast_install
17930   # before this can be enabled.
17931   hardcode_into_libs=yes
17932
17933   # Append ld.so.conf contents to the search path
17934   if test -f /etc/ld.so.conf; then
17935     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' ' '`
17936     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17937   fi
17938
17939   # We used to test for /lib/ld.so.1 and disable shared libraries on
17940   # powerpc, because MkLinux only supported shared libraries with the
17941   # GNU dynamic linker.  Since this was broken with cross compilers,
17942   # most powerpc-linux boxes support dynamic linking these days and
17943   # people can always --disable-shared, the test was removed, and we
17944   # assume the GNU/Linux dynamic linker is in use.
17945   dynamic_linker='GNU/Linux ld.so'
17946   ;;
17947
17948 netbsdelf*-gnu)
17949   version_type=linux
17950   need_lib_prefix=no
17951   need_version=no
17952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17953   soname_spec='${libname}${release}${shared_ext}$major'
17954   shlibpath_var=LD_LIBRARY_PATH
17955   shlibpath_overrides_runpath=no
17956   hardcode_into_libs=yes
17957   dynamic_linker='NetBSD ld.elf_so'
17958   ;;
17959
17960 netbsd*)
17961   version_type=sunos
17962   need_lib_prefix=no
17963   need_version=no
17964   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17965     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17966     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17967     dynamic_linker='NetBSD (a.out) ld.so'
17968   else
17969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17970     soname_spec='${libname}${release}${shared_ext}$major'
17971     dynamic_linker='NetBSD ld.elf_so'
17972   fi
17973   shlibpath_var=LD_LIBRARY_PATH
17974   shlibpath_overrides_runpath=yes
17975   hardcode_into_libs=yes
17976   ;;
17977
17978 newsos6)
17979   version_type=linux # correct to gnu/linux during the next big refactor
17980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17981   shlibpath_var=LD_LIBRARY_PATH
17982   shlibpath_overrides_runpath=yes
17983   ;;
17984
17985 *nto* | *qnx*)
17986   version_type=qnx
17987   need_lib_prefix=no
17988   need_version=no
17989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17990   soname_spec='${libname}${release}${shared_ext}$major'
17991   shlibpath_var=LD_LIBRARY_PATH
17992   shlibpath_overrides_runpath=no
17993   hardcode_into_libs=yes
17994   dynamic_linker='ldqnx.so'
17995   ;;
17996
17997 openbsd*)
17998   version_type=sunos
17999   sys_lib_dlsearch_path_spec="/usr/lib"
18000   need_lib_prefix=no
18001   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18002   case $host_os in
18003     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18004     *)                          need_version=no  ;;
18005   esac
18006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18007   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18008   shlibpath_var=LD_LIBRARY_PATH
18009   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18010     case $host_os in
18011       openbsd2.[89] | openbsd2.[89].*)
18012         shlibpath_overrides_runpath=no
18013         ;;
18014       *)
18015         shlibpath_overrides_runpath=yes
18016         ;;
18017       esac
18018   else
18019     shlibpath_overrides_runpath=yes
18020   fi
18021   ;;
18022
18023 os2*)
18024   libname_spec='$name'
18025   shrext_cmds=".dll"
18026   need_lib_prefix=no
18027   library_names_spec='$libname${shared_ext} $libname.a'
18028   dynamic_linker='OS/2 ld.exe'
18029   shlibpath_var=LIBPATH
18030   ;;
18031
18032 osf3* | osf4* | osf5*)
18033   version_type=osf
18034   need_lib_prefix=no
18035   need_version=no
18036   soname_spec='${libname}${release}${shared_ext}$major'
18037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18038   shlibpath_var=LD_LIBRARY_PATH
18039   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18040   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18041   ;;
18042
18043 rdos*)
18044   dynamic_linker=no
18045   ;;
18046
18047 solaris*)
18048   version_type=linux # correct to gnu/linux during the next big refactor
18049   need_lib_prefix=no
18050   need_version=no
18051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18052   soname_spec='${libname}${release}${shared_ext}$major'
18053   shlibpath_var=LD_LIBRARY_PATH
18054   shlibpath_overrides_runpath=yes
18055   hardcode_into_libs=yes
18056   # ldd complains unless libraries are executable
18057   postinstall_cmds='chmod +x $lib'
18058   ;;
18059
18060 sunos4*)
18061   version_type=sunos
18062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18063   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18064   shlibpath_var=LD_LIBRARY_PATH
18065   shlibpath_overrides_runpath=yes
18066   if test "$with_gnu_ld" = yes; then
18067     need_lib_prefix=no
18068   fi
18069   need_version=yes
18070   ;;
18071
18072 sysv4 | sysv4.3*)
18073   version_type=linux # correct to gnu/linux during the next big refactor
18074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18075   soname_spec='${libname}${release}${shared_ext}$major'
18076   shlibpath_var=LD_LIBRARY_PATH
18077   case $host_vendor in
18078     sni)
18079       shlibpath_overrides_runpath=no
18080       need_lib_prefix=no
18081       runpath_var=LD_RUN_PATH
18082       ;;
18083     siemens)
18084       need_lib_prefix=no
18085       ;;
18086     motorola)
18087       need_lib_prefix=no
18088       need_version=no
18089       shlibpath_overrides_runpath=no
18090       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18091       ;;
18092   esac
18093   ;;
18094
18095 sysv4*MP*)
18096   if test -d /usr/nec ;then
18097     version_type=linux # correct to gnu/linux during the next big refactor
18098     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18099     soname_spec='$libname${shared_ext}.$major'
18100     shlibpath_var=LD_LIBRARY_PATH
18101   fi
18102   ;;
18103
18104 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18105   version_type=freebsd-elf
18106   need_lib_prefix=no
18107   need_version=no
18108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18109   soname_spec='${libname}${release}${shared_ext}$major'
18110   shlibpath_var=LD_LIBRARY_PATH
18111   shlibpath_overrides_runpath=yes
18112   hardcode_into_libs=yes
18113   if test "$with_gnu_ld" = yes; then
18114     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18115   else
18116     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18117     case $host_os in
18118       sco3.2v5*)
18119         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18120         ;;
18121     esac
18122   fi
18123   sys_lib_dlsearch_path_spec='/usr/lib'
18124   ;;
18125
18126 tpf*)
18127   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18128   version_type=linux # correct to gnu/linux during the next big refactor
18129   need_lib_prefix=no
18130   need_version=no
18131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18132   shlibpath_var=LD_LIBRARY_PATH
18133   shlibpath_overrides_runpath=no
18134   hardcode_into_libs=yes
18135   ;;
18136
18137 uts4*)
18138   version_type=linux # correct to gnu/linux during the next big refactor
18139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18140   soname_spec='${libname}${release}${shared_ext}$major'
18141   shlibpath_var=LD_LIBRARY_PATH
18142   ;;
18143
18144 *)
18145   dynamic_linker=no
18146   ;;
18147 esac
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18149 $as_echo "$dynamic_linker" >&6; }
18150 test "$dynamic_linker" = no && can_build_shared=no
18151
18152 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18153 if test "$GCC" = yes; then
18154   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18155 fi
18156
18157 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18158   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18159 fi
18160 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18161   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18162 fi
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18256 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18257 hardcode_action=
18258 if test -n "$hardcode_libdir_flag_spec" ||
18259    test -n "$runpath_var" ||
18260    test "X$hardcode_automatic" = "Xyes" ; then
18261
18262   # We can hardcode non-existent directories.
18263   if test "$hardcode_direct" != no &&
18264      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18265      # have to relink, otherwise we might link with an installed library
18266      # when we should be linking with a yet-to-be-installed one
18267      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18268      test "$hardcode_minus_L" != no; then
18269     # Linking always hardcodes the temporary library directory.
18270     hardcode_action=relink
18271   else
18272     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18273     hardcode_action=immediate
18274   fi
18275 else
18276   # We cannot hardcode anything, or else we can only hardcode existing
18277   # directories.
18278   hardcode_action=unsupported
18279 fi
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18281 $as_echo "$hardcode_action" >&6; }
18282
18283 if test "$hardcode_action" = relink ||
18284    test "$inherit_rpath" = yes; then
18285   # Fast installation is not supported
18286   enable_fast_install=no
18287 elif test "$shlibpath_overrides_runpath" = yes ||
18288      test "$enable_shared" = no; then
18289   # Fast installation is not necessary
18290   enable_fast_install=needless
18291 fi
18292
18293
18294
18295
18296
18297
18298   if test "x$enable_dlopen" != xyes; then
18299   enable_dlopen=unknown
18300   enable_dlopen_self=unknown
18301   enable_dlopen_self_static=unknown
18302 else
18303   lt_cv_dlopen=no
18304   lt_cv_dlopen_libs=
18305
18306   case $host_os in
18307   beos*)
18308     lt_cv_dlopen="load_add_on"
18309     lt_cv_dlopen_libs=
18310     lt_cv_dlopen_self=yes
18311     ;;
18312
18313   mingw* | pw32* | cegcc*)
18314     lt_cv_dlopen="LoadLibrary"
18315     lt_cv_dlopen_libs=
18316     ;;
18317
18318   cygwin*)
18319     lt_cv_dlopen="dlopen"
18320     lt_cv_dlopen_libs=
18321     ;;
18322
18323   darwin*)
18324   # if libdl is installed we need to link against it
18325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18326 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18327 if ${ac_cv_lib_dl_dlopen+:} false; then :
18328   $as_echo_n "(cached) " >&6
18329 else
18330   ac_check_lib_save_LIBS=$LIBS
18331 LIBS="-ldl  $LIBS"
18332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18333 /* end confdefs.h.  */
18334
18335 /* Override any GCC internal prototype to avoid an error.
18336    Use char because int might match the return type of a GCC
18337    builtin and then its argument prototype would still apply.  */
18338 #ifdef __cplusplus
18339 extern "C"
18340 #endif
18341 char dlopen ();
18342 int
18343 main ()
18344 {
18345 return dlopen ();
18346   ;
18347   return 0;
18348 }
18349 _ACEOF
18350 if ac_fn_c_try_link "$LINENO"; then :
18351   ac_cv_lib_dl_dlopen=yes
18352 else
18353   ac_cv_lib_dl_dlopen=no
18354 fi
18355 rm -f core conftest.err conftest.$ac_objext \
18356     conftest$ac_exeext conftest.$ac_ext
18357 LIBS=$ac_check_lib_save_LIBS
18358 fi
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18360 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18361 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18362   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18363 else
18364
18365     lt_cv_dlopen="dyld"
18366     lt_cv_dlopen_libs=
18367     lt_cv_dlopen_self=yes
18368
18369 fi
18370
18371     ;;
18372
18373   *)
18374     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18375 if test "x$ac_cv_func_shl_load" = xyes; then :
18376   lt_cv_dlopen="shl_load"
18377 else
18378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18379 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18380 if ${ac_cv_lib_dld_shl_load+:} false; then :
18381   $as_echo_n "(cached) " >&6
18382 else
18383   ac_check_lib_save_LIBS=$LIBS
18384 LIBS="-ldld  $LIBS"
18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h.  */
18387
18388 /* Override any GCC internal prototype to avoid an error.
18389    Use char because int might match the return type of a GCC
18390    builtin and then its argument prototype would still apply.  */
18391 #ifdef __cplusplus
18392 extern "C"
18393 #endif
18394 char shl_load ();
18395 int
18396 main ()
18397 {
18398 return shl_load ();
18399   ;
18400   return 0;
18401 }
18402 _ACEOF
18403 if ac_fn_c_try_link "$LINENO"; then :
18404   ac_cv_lib_dld_shl_load=yes
18405 else
18406   ac_cv_lib_dld_shl_load=no
18407 fi
18408 rm -f core conftest.err conftest.$ac_objext \
18409     conftest$ac_exeext conftest.$ac_ext
18410 LIBS=$ac_check_lib_save_LIBS
18411 fi
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18413 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18414 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18415   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18416 else
18417   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18418 if test "x$ac_cv_func_dlopen" = xyes; then :
18419   lt_cv_dlopen="dlopen"
18420 else
18421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18422 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18423 if ${ac_cv_lib_dl_dlopen+:} false; then :
18424   $as_echo_n "(cached) " >&6
18425 else
18426   ac_check_lib_save_LIBS=$LIBS
18427 LIBS="-ldl  $LIBS"
18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h.  */
18430
18431 /* Override any GCC internal prototype to avoid an error.
18432    Use char because int might match the return type of a GCC
18433    builtin and then its argument prototype would still apply.  */
18434 #ifdef __cplusplus
18435 extern "C"
18436 #endif
18437 char dlopen ();
18438 int
18439 main ()
18440 {
18441 return dlopen ();
18442   ;
18443   return 0;
18444 }
18445 _ACEOF
18446 if ac_fn_c_try_link "$LINENO"; then :
18447   ac_cv_lib_dl_dlopen=yes
18448 else
18449   ac_cv_lib_dl_dlopen=no
18450 fi
18451 rm -f core conftest.err conftest.$ac_objext \
18452     conftest$ac_exeext conftest.$ac_ext
18453 LIBS=$ac_check_lib_save_LIBS
18454 fi
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18456 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18457 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18458   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18459 else
18460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18461 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18462 if ${ac_cv_lib_svld_dlopen+:} false; then :
18463   $as_echo_n "(cached) " >&6
18464 else
18465   ac_check_lib_save_LIBS=$LIBS
18466 LIBS="-lsvld  $LIBS"
18467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18468 /* end confdefs.h.  */
18469
18470 /* Override any GCC internal prototype to avoid an error.
18471    Use char because int might match the return type of a GCC
18472    builtin and then its argument prototype would still apply.  */
18473 #ifdef __cplusplus
18474 extern "C"
18475 #endif
18476 char dlopen ();
18477 int
18478 main ()
18479 {
18480 return dlopen ();
18481   ;
18482   return 0;
18483 }
18484 _ACEOF
18485 if ac_fn_c_try_link "$LINENO"; then :
18486   ac_cv_lib_svld_dlopen=yes
18487 else
18488   ac_cv_lib_svld_dlopen=no
18489 fi
18490 rm -f core conftest.err conftest.$ac_objext \
18491     conftest$ac_exeext conftest.$ac_ext
18492 LIBS=$ac_check_lib_save_LIBS
18493 fi
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18495 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18496 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18497   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18498 else
18499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18500 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18501 if ${ac_cv_lib_dld_dld_link+:} false; then :
18502   $as_echo_n "(cached) " >&6
18503 else
18504   ac_check_lib_save_LIBS=$LIBS
18505 LIBS="-ldld  $LIBS"
18506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18507 /* end confdefs.h.  */
18508
18509 /* Override any GCC internal prototype to avoid an error.
18510    Use char because int might match the return type of a GCC
18511    builtin and then its argument prototype would still apply.  */
18512 #ifdef __cplusplus
18513 extern "C"
18514 #endif
18515 char dld_link ();
18516 int
18517 main ()
18518 {
18519 return dld_link ();
18520   ;
18521   return 0;
18522 }
18523 _ACEOF
18524 if ac_fn_c_try_link "$LINENO"; then :
18525   ac_cv_lib_dld_dld_link=yes
18526 else
18527   ac_cv_lib_dld_dld_link=no
18528 fi
18529 rm -f core conftest.err conftest.$ac_objext \
18530     conftest$ac_exeext conftest.$ac_ext
18531 LIBS=$ac_check_lib_save_LIBS
18532 fi
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18534 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18535 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18536   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18537 fi
18538
18539
18540 fi
18541
18542
18543 fi
18544
18545
18546 fi
18547
18548
18549 fi
18550
18551
18552 fi
18553
18554     ;;
18555   esac
18556
18557   if test "x$lt_cv_dlopen" != xno; then
18558     enable_dlopen=yes
18559   else
18560     enable_dlopen=no
18561   fi
18562
18563   case $lt_cv_dlopen in
18564   dlopen)
18565     save_CPPFLAGS="$CPPFLAGS"
18566     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18567
18568     save_LDFLAGS="$LDFLAGS"
18569     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18570
18571     save_LIBS="$LIBS"
18572     LIBS="$lt_cv_dlopen_libs $LIBS"
18573
18574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18575 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18576 if ${lt_cv_dlopen_self+:} false; then :
18577   $as_echo_n "(cached) " >&6
18578 else
18579           if test "$cross_compiling" = yes; then :
18580   lt_cv_dlopen_self=cross
18581 else
18582   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18583   lt_status=$lt_dlunknown
18584   cat > conftest.$ac_ext <<_LT_EOF
18585 #line $LINENO "configure"
18586 #include "confdefs.h"
18587
18588 #if HAVE_DLFCN_H
18589 #include <dlfcn.h>
18590 #endif
18591
18592 #include <stdio.h>
18593
18594 #ifdef RTLD_GLOBAL
18595 #  define LT_DLGLOBAL           RTLD_GLOBAL
18596 #else
18597 #  ifdef DL_GLOBAL
18598 #    define LT_DLGLOBAL         DL_GLOBAL
18599 #  else
18600 #    define LT_DLGLOBAL         0
18601 #  endif
18602 #endif
18603
18604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18605    find out it does not work in some platform. */
18606 #ifndef LT_DLLAZY_OR_NOW
18607 #  ifdef RTLD_LAZY
18608 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18609 #  else
18610 #    ifdef DL_LAZY
18611 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18612 #    else
18613 #      ifdef RTLD_NOW
18614 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18615 #      else
18616 #        ifdef DL_NOW
18617 #          define LT_DLLAZY_OR_NOW      DL_NOW
18618 #        else
18619 #          define LT_DLLAZY_OR_NOW      0
18620 #        endif
18621 #      endif
18622 #    endif
18623 #  endif
18624 #endif
18625
18626 /* When -fvisbility=hidden is used, assume the code has been annotated
18627    correspondingly for the symbols needed.  */
18628 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18629 int fnord () __attribute__((visibility("default")));
18630 #endif
18631
18632 int fnord () { return 42; }
18633 int main ()
18634 {
18635   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18636   int status = $lt_dlunknown;
18637
18638   if (self)
18639     {
18640       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18641       else
18642         {
18643           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18644           else puts (dlerror ());
18645         }
18646       /* dlclose (self); */
18647     }
18648   else
18649     puts (dlerror ());
18650
18651   return status;
18652 }
18653 _LT_EOF
18654   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18655   (eval $ac_link) 2>&5
18656   ac_status=$?
18657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18658   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18659     (./conftest; exit; ) >&5 2>/dev/null
18660     lt_status=$?
18661     case x$lt_status in
18662       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18663       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18664       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18665     esac
18666   else :
18667     # compilation failed
18668     lt_cv_dlopen_self=no
18669   fi
18670 fi
18671 rm -fr conftest*
18672
18673
18674 fi
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18676 $as_echo "$lt_cv_dlopen_self" >&6; }
18677
18678     if test "x$lt_cv_dlopen_self" = xyes; then
18679       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18680       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18681 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18682 if ${lt_cv_dlopen_self_static+:} false; then :
18683   $as_echo_n "(cached) " >&6
18684 else
18685           if test "$cross_compiling" = yes; then :
18686   lt_cv_dlopen_self_static=cross
18687 else
18688   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18689   lt_status=$lt_dlunknown
18690   cat > conftest.$ac_ext <<_LT_EOF
18691 #line $LINENO "configure"
18692 #include "confdefs.h"
18693
18694 #if HAVE_DLFCN_H
18695 #include <dlfcn.h>
18696 #endif
18697
18698 #include <stdio.h>
18699
18700 #ifdef RTLD_GLOBAL
18701 #  define LT_DLGLOBAL           RTLD_GLOBAL
18702 #else
18703 #  ifdef DL_GLOBAL
18704 #    define LT_DLGLOBAL         DL_GLOBAL
18705 #  else
18706 #    define LT_DLGLOBAL         0
18707 #  endif
18708 #endif
18709
18710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18711    find out it does not work in some platform. */
18712 #ifndef LT_DLLAZY_OR_NOW
18713 #  ifdef RTLD_LAZY
18714 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18715 #  else
18716 #    ifdef DL_LAZY
18717 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18718 #    else
18719 #      ifdef RTLD_NOW
18720 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18721 #      else
18722 #        ifdef DL_NOW
18723 #          define LT_DLLAZY_OR_NOW      DL_NOW
18724 #        else
18725 #          define LT_DLLAZY_OR_NOW      0
18726 #        endif
18727 #      endif
18728 #    endif
18729 #  endif
18730 #endif
18731
18732 /* When -fvisbility=hidden is used, assume the code has been annotated
18733    correspondingly for the symbols needed.  */
18734 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18735 int fnord () __attribute__((visibility("default")));
18736 #endif
18737
18738 int fnord () { return 42; }
18739 int main ()
18740 {
18741   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18742   int status = $lt_dlunknown;
18743
18744   if (self)
18745     {
18746       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18747       else
18748         {
18749           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18750           else puts (dlerror ());
18751         }
18752       /* dlclose (self); */
18753     }
18754   else
18755     puts (dlerror ());
18756
18757   return status;
18758 }
18759 _LT_EOF
18760   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18761   (eval $ac_link) 2>&5
18762   ac_status=$?
18763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18764   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18765     (./conftest; exit; ) >&5 2>/dev/null
18766     lt_status=$?
18767     case x$lt_status in
18768       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18769       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18770       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18771     esac
18772   else :
18773     # compilation failed
18774     lt_cv_dlopen_self_static=no
18775   fi
18776 fi
18777 rm -fr conftest*
18778
18779
18780 fi
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18782 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18783     fi
18784
18785     CPPFLAGS="$save_CPPFLAGS"
18786     LDFLAGS="$save_LDFLAGS"
18787     LIBS="$save_LIBS"
18788     ;;
18789   esac
18790
18791   case $lt_cv_dlopen_self in
18792   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18793   *) enable_dlopen_self=unknown ;;
18794   esac
18795
18796   case $lt_cv_dlopen_self_static in
18797   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18798   *) enable_dlopen_self_static=unknown ;;
18799   esac
18800 fi
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818 striplib=
18819 old_striplib=
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18821 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18822 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18823   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18824   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18826 $as_echo "yes" >&6; }
18827 else
18828 # FIXME - insert some real tests, host_os isn't really good enough
18829   case $host_os in
18830   darwin*)
18831     if test -n "$STRIP" ; then
18832       striplib="$STRIP -x"
18833       old_striplib="$STRIP -S"
18834       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18835 $as_echo "yes" >&6; }
18836     else
18837       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18838 $as_echo "no" >&6; }
18839     fi
18840     ;;
18841   *)
18842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18843 $as_echo "no" >&6; }
18844     ;;
18845   esac
18846 fi
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859   # Report which library types will actually be built
18860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18861 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18863 $as_echo "$can_build_shared" >&6; }
18864
18865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18866 $as_echo_n "checking whether to build shared libraries... " >&6; }
18867   test "$can_build_shared" = "no" && enable_shared=no
18868
18869   # On AIX, shared libraries and static libraries use the same namespace, and
18870   # are all built from PIC.
18871   case $host_os in
18872   aix3*)
18873     test "$enable_shared" = yes && enable_static=no
18874     if test -n "$RANLIB"; then
18875       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18876       postinstall_cmds='$RANLIB $lib'
18877     fi
18878     ;;
18879
18880   aix[4-9]*)
18881     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18882       test "$enable_shared" = yes && enable_static=no
18883     fi
18884     ;;
18885   esac
18886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18887 $as_echo "$enable_shared" >&6; }
18888
18889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18890 $as_echo_n "checking whether to build static libraries... " >&6; }
18891   # Make sure either enable_shared or enable_static is yes.
18892   test "$enable_shared" = yes || enable_static=yes
18893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18894 $as_echo "$enable_static" >&6; }
18895
18896
18897
18898
18899 fi
18900 ac_ext=c
18901 ac_cpp='$CPP $CPPFLAGS'
18902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18905
18906 CC="$lt_save_CC"
18907
18908       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18909     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18910     (test "X$CXX" != "Xg++"))) ; then
18911   ac_ext=cpp
18912 ac_cpp='$CXXCPP $CPPFLAGS'
18913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18917 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18918 if test -z "$CXXCPP"; then
18919   if ${ac_cv_prog_CXXCPP+:} false; then :
18920   $as_echo_n "(cached) " >&6
18921 else
18922       # Double quotes because CXXCPP needs to be expanded
18923     for CXXCPP in "$CXX -E" "/lib/cpp"
18924     do
18925       ac_preproc_ok=false
18926 for ac_cxx_preproc_warn_flag in '' yes
18927 do
18928   # Use a header file that comes with gcc, so configuring glibc
18929   # with a fresh cross-compiler works.
18930   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18931   # <limits.h> exists even on freestanding compilers.
18932   # On the NeXT, cc -E runs the code through the compiler's parser,
18933   # not just through cpp. "Syntax error" is here to catch this case.
18934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935 /* end confdefs.h.  */
18936 #ifdef __STDC__
18937 # include <limits.h>
18938 #else
18939 # include <assert.h>
18940 #endif
18941                      Syntax error
18942 _ACEOF
18943 if ac_fn_cxx_try_cpp "$LINENO"; then :
18944
18945 else
18946   # Broken: fails on valid input.
18947 continue
18948 fi
18949 rm -f conftest.err conftest.i conftest.$ac_ext
18950
18951   # OK, works on sane cases.  Now check whether nonexistent headers
18952   # can be detected and how.
18953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18954 /* end confdefs.h.  */
18955 #include <ac_nonexistent.h>
18956 _ACEOF
18957 if ac_fn_cxx_try_cpp "$LINENO"; then :
18958   # Broken: success on invalid input.
18959 continue
18960 else
18961   # Passes both tests.
18962 ac_preproc_ok=:
18963 break
18964 fi
18965 rm -f conftest.err conftest.i conftest.$ac_ext
18966
18967 done
18968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18969 rm -f conftest.i conftest.err conftest.$ac_ext
18970 if $ac_preproc_ok; then :
18971   break
18972 fi
18973
18974     done
18975     ac_cv_prog_CXXCPP=$CXXCPP
18976
18977 fi
18978   CXXCPP=$ac_cv_prog_CXXCPP
18979 else
18980   ac_cv_prog_CXXCPP=$CXXCPP
18981 fi
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18983 $as_echo "$CXXCPP" >&6; }
18984 ac_preproc_ok=false
18985 for ac_cxx_preproc_warn_flag in '' yes
18986 do
18987   # Use a header file that comes with gcc, so configuring glibc
18988   # with a fresh cross-compiler works.
18989   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18990   # <limits.h> exists even on freestanding compilers.
18991   # On the NeXT, cc -E runs the code through the compiler's parser,
18992   # not just through cpp. "Syntax error" is here to catch this case.
18993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18994 /* end confdefs.h.  */
18995 #ifdef __STDC__
18996 # include <limits.h>
18997 #else
18998 # include <assert.h>
18999 #endif
19000                      Syntax error
19001 _ACEOF
19002 if ac_fn_cxx_try_cpp "$LINENO"; then :
19003
19004 else
19005   # Broken: fails on valid input.
19006 continue
19007 fi
19008 rm -f conftest.err conftest.i conftest.$ac_ext
19009
19010   # OK, works on sane cases.  Now check whether nonexistent headers
19011   # can be detected and how.
19012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19013 /* end confdefs.h.  */
19014 #include <ac_nonexistent.h>
19015 _ACEOF
19016 if ac_fn_cxx_try_cpp "$LINENO"; then :
19017   # Broken: success on invalid input.
19018 continue
19019 else
19020   # Passes both tests.
19021 ac_preproc_ok=:
19022 break
19023 fi
19024 rm -f conftest.err conftest.i conftest.$ac_ext
19025
19026 done
19027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19028 rm -f conftest.i conftest.err conftest.$ac_ext
19029 if $ac_preproc_ok; then :
19030
19031 else
19032   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19034 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19035 See \`config.log' for more details" "$LINENO" 5; }
19036 fi
19037
19038 ac_ext=c
19039 ac_cpp='$CPP $CPPFLAGS'
19040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19043
19044 else
19045   _lt_caught_CXX_error=yes
19046 fi
19047
19048 ac_ext=cpp
19049 ac_cpp='$CXXCPP $CPPFLAGS'
19050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19053
19054 archive_cmds_need_lc_CXX=no
19055 allow_undefined_flag_CXX=
19056 always_export_symbols_CXX=no
19057 archive_expsym_cmds_CXX=
19058 compiler_needs_object_CXX=no
19059 export_dynamic_flag_spec_CXX=
19060 hardcode_direct_CXX=no
19061 hardcode_direct_absolute_CXX=no
19062 hardcode_libdir_flag_spec_CXX=
19063 hardcode_libdir_separator_CXX=
19064 hardcode_minus_L_CXX=no
19065 hardcode_shlibpath_var_CXX=unsupported
19066 hardcode_automatic_CXX=no
19067 inherit_rpath_CXX=no
19068 module_cmds_CXX=
19069 module_expsym_cmds_CXX=
19070 link_all_deplibs_CXX=unknown
19071 old_archive_cmds_CXX=$old_archive_cmds
19072 reload_flag_CXX=$reload_flag
19073 reload_cmds_CXX=$reload_cmds
19074 no_undefined_flag_CXX=
19075 whole_archive_flag_spec_CXX=
19076 enable_shared_with_static_runtimes_CXX=no
19077
19078 # Source file extension for C++ test sources.
19079 ac_ext=cpp
19080
19081 # Object file extension for compiled C++ test sources.
19082 objext=o
19083 objext_CXX=$objext
19084
19085 # No sense in running all these tests if we already determined that
19086 # the CXX compiler isn't working.  Some variables (like enable_shared)
19087 # are currently assumed to apply to all compilers on this platform,
19088 # and will be corrupted by setting them based on a non-working compiler.
19089 if test "$_lt_caught_CXX_error" != yes; then
19090   # Code to be used in simple compile tests
19091   lt_simple_compile_test_code="int some_variable = 0;"
19092
19093   # Code to be used in simple link tests
19094   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19095
19096   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19097
19098
19099
19100
19101
19102
19103 # If no C compiler was specified, use CC.
19104 LTCC=${LTCC-"$CC"}
19105
19106 # If no C compiler flags were specified, use CFLAGS.
19107 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19108
19109 # Allow CC to be a program name with arguments.
19110 compiler=$CC
19111
19112
19113   # save warnings/boilerplate of simple test code
19114   ac_outfile=conftest.$ac_objext
19115 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19116 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19117 _lt_compiler_boilerplate=`cat conftest.err`
19118 $RM conftest*
19119
19120   ac_outfile=conftest.$ac_objext
19121 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19122 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19123 _lt_linker_boilerplate=`cat conftest.err`
19124 $RM -r conftest*
19125
19126
19127   # Allow CC to be a program name with arguments.
19128   lt_save_CC=$CC
19129   lt_save_CFLAGS=$CFLAGS
19130   lt_save_LD=$LD
19131   lt_save_GCC=$GCC
19132   GCC=$GXX
19133   lt_save_with_gnu_ld=$with_gnu_ld
19134   lt_save_path_LD=$lt_cv_path_LD
19135   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19136     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19137   else
19138     $as_unset lt_cv_prog_gnu_ld
19139   fi
19140   if test -n "${lt_cv_path_LDCXX+set}"; then
19141     lt_cv_path_LD=$lt_cv_path_LDCXX
19142   else
19143     $as_unset lt_cv_path_LD
19144   fi
19145   test -z "${LDCXX+set}" || LD=$LDCXX
19146   CC=${CXX-"c++"}
19147   CFLAGS=$CXXFLAGS
19148   compiler=$CC
19149   compiler_CXX=$CC
19150   for cc_temp in $compiler""; do
19151   case $cc_temp in
19152     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19153     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19154     \-*) ;;
19155     *) break;;
19156   esac
19157 done
19158 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19159
19160
19161   if test -n "$compiler"; then
19162     # We don't want -fno-exception when compiling C++ code, so set the
19163     # no_builtin_flag separately
19164     if test "$GXX" = yes; then
19165       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19166     else
19167       lt_prog_compiler_no_builtin_flag_CXX=
19168     fi
19169
19170     if test "$GXX" = yes; then
19171       # Set up default GNU C++ configuration
19172
19173
19174
19175 # Check whether --with-gnu-ld was given.
19176 if test "${with_gnu_ld+set}" = set; then :
19177   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19178 else
19179   with_gnu_ld=no
19180 fi
19181
19182 ac_prog=ld
19183 if test "$GCC" = yes; then
19184   # Check if gcc -print-prog-name=ld gives a path.
19185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19186 $as_echo_n "checking for ld used by $CC... " >&6; }
19187   case $host in
19188   *-*-mingw*)
19189     # gcc leaves a trailing carriage return which upsets mingw
19190     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19191   *)
19192     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19193   esac
19194   case $ac_prog in
19195     # Accept absolute paths.
19196     [\\/]* | ?:[\\/]*)
19197       re_direlt='/[^/][^/]*/\.\./'
19198       # Canonicalize the pathname of ld
19199       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19200       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19201         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19202       done
19203       test -z "$LD" && LD="$ac_prog"
19204       ;;
19205   "")
19206     # If it fails, then pretend we aren't using GCC.
19207     ac_prog=ld
19208     ;;
19209   *)
19210     # If it is relative, then search for the first ld in PATH.
19211     with_gnu_ld=unknown
19212     ;;
19213   esac
19214 elif test "$with_gnu_ld" = yes; then
19215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19216 $as_echo_n "checking for GNU ld... " >&6; }
19217 else
19218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19219 $as_echo_n "checking for non-GNU ld... " >&6; }
19220 fi
19221 if ${lt_cv_path_LD+:} false; then :
19222   $as_echo_n "(cached) " >&6
19223 else
19224   if test -z "$LD"; then
19225   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19226   for ac_dir in $PATH; do
19227     IFS="$lt_save_ifs"
19228     test -z "$ac_dir" && ac_dir=.
19229     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19230       lt_cv_path_LD="$ac_dir/$ac_prog"
19231       # Check to see if the program is GNU ld.  I'd rather use --version,
19232       # but apparently some variants of GNU ld only accept -v.
19233       # Break only if it was the GNU/non-GNU ld that we prefer.
19234       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19235       *GNU* | *'with BFD'*)
19236         test "$with_gnu_ld" != no && break
19237         ;;
19238       *)
19239         test "$with_gnu_ld" != yes && break
19240         ;;
19241       esac
19242     fi
19243   done
19244   IFS="$lt_save_ifs"
19245 else
19246   lt_cv_path_LD="$LD" # Let the user override the test with a path.
19247 fi
19248 fi
19249
19250 LD="$lt_cv_path_LD"
19251 if test -n "$LD"; then
19252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19253 $as_echo "$LD" >&6; }
19254 else
19255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19256 $as_echo "no" >&6; }
19257 fi
19258 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19260 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19261 if ${lt_cv_prog_gnu_ld+:} false; then :
19262   $as_echo_n "(cached) " >&6
19263 else
19264   # I'd rather use --version here, but apparently some GNU lds only accept -v.
19265 case `$LD -v 2>&1 </dev/null` in
19266 *GNU* | *'with BFD'*)
19267   lt_cv_prog_gnu_ld=yes
19268   ;;
19269 *)
19270   lt_cv_prog_gnu_ld=no
19271   ;;
19272 esac
19273 fi
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19275 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19276 with_gnu_ld=$lt_cv_prog_gnu_ld
19277
19278
19279
19280
19281
19282
19283
19284       # Check if GNU C++ uses GNU ld as the underlying linker, since the
19285       # archiving commands below assume that GNU ld is being used.
19286       if test "$with_gnu_ld" = yes; then
19287         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19288         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'
19289
19290         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19291         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19292
19293         # If archive_cmds runs LD, not CC, wlarc should be empty
19294         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19295         #     investigate it a little bit more. (MM)
19296         wlarc='${wl}'
19297
19298         # ancient GNU ld didn't support --whole-archive et. al.
19299         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19300           $GREP 'no-whole-archive' > /dev/null; then
19301           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19302         else
19303           whole_archive_flag_spec_CXX=
19304         fi
19305       else
19306         with_gnu_ld=no
19307         wlarc=
19308
19309         # A generic and very simple default shared library creation
19310         # command for GNU C++ for the case where it uses the native
19311         # linker, instead of GNU ld.  If possible, this setting should
19312         # overridden to take advantage of the native linker features on
19313         # the platform it is being used on.
19314         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19315       fi
19316
19317       # Commands to make compiler produce verbose output that lists
19318       # what "hidden" libraries, object files and flags are used when
19319       # linking a shared library.
19320       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19321
19322     else
19323       GXX=no
19324       with_gnu_ld=no
19325       wlarc=
19326     fi
19327
19328     # PORTME: fill in a description of your system's C++ link characteristics
19329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19330 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19331     ld_shlibs_CXX=yes
19332     case $host_os in
19333       aix3*)
19334         # FIXME: insert proper C++ library support
19335         ld_shlibs_CXX=no
19336         ;;
19337       aix[4-9]*)
19338         if test "$host_cpu" = ia64; then
19339           # On IA64, the linker does run time linking by default, so we don't
19340           # have to do anything special.
19341           aix_use_runtimelinking=no
19342           exp_sym_flag='-Bexport'
19343           no_entry_flag=""
19344         else
19345           aix_use_runtimelinking=no
19346
19347           # Test if we are trying to use run time linking or normal
19348           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19349           # need to do runtime linking.
19350           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19351             for ld_flag in $LDFLAGS; do
19352               case $ld_flag in
19353               *-brtl*)
19354                 aix_use_runtimelinking=yes
19355                 break
19356                 ;;
19357               esac
19358             done
19359             ;;
19360           esac
19361
19362           exp_sym_flag='-bexport'
19363           no_entry_flag='-bnoentry'
19364         fi
19365
19366         # When large executables or shared objects are built, AIX ld can
19367         # have problems creating the table of contents.  If linking a library
19368         # or program results in "error TOC overflow" add -mminimal-toc to
19369         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19370         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19371
19372         archive_cmds_CXX=''
19373         hardcode_direct_CXX=yes
19374         hardcode_direct_absolute_CXX=yes
19375         hardcode_libdir_separator_CXX=':'
19376         link_all_deplibs_CXX=yes
19377         file_list_spec_CXX='${wl}-f,'
19378
19379         if test "$GXX" = yes; then
19380           case $host_os in aix4.[012]|aix4.[012].*)
19381           # We only want to do this on AIX 4.2 and lower, the check
19382           # below for broken collect2 doesn't work under 4.3+
19383           collect2name=`${CC} -print-prog-name=collect2`
19384           if test -f "$collect2name" &&
19385              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19386           then
19387             # We have reworked collect2
19388             :
19389           else
19390             # We have old collect2
19391             hardcode_direct_CXX=unsupported
19392             # It fails to find uninstalled libraries when the uninstalled
19393             # path is not listed in the libpath.  Setting hardcode_minus_L
19394             # to unsupported forces relinking
19395             hardcode_minus_L_CXX=yes
19396             hardcode_libdir_flag_spec_CXX='-L$libdir'
19397             hardcode_libdir_separator_CXX=
19398           fi
19399           esac
19400           shared_flag='-shared'
19401           if test "$aix_use_runtimelinking" = yes; then
19402             shared_flag="$shared_flag "'${wl}-G'
19403           fi
19404         else
19405           # not using gcc
19406           if test "$host_cpu" = ia64; then
19407           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19408           # chokes on -Wl,-G. The following line is correct:
19409           shared_flag='-G'
19410           else
19411             if test "$aix_use_runtimelinking" = yes; then
19412               shared_flag='${wl}-G'
19413             else
19414               shared_flag='${wl}-bM:SRE'
19415             fi
19416           fi
19417         fi
19418
19419         export_dynamic_flag_spec_CXX='${wl}-bexpall'
19420         # It seems that -bexpall does not export symbols beginning with
19421         # underscore (_), so it is better to generate a list of symbols to
19422         # export.
19423         always_export_symbols_CXX=yes
19424         if test "$aix_use_runtimelinking" = yes; then
19425           # Warning - without using the other runtime loading flags (-brtl),
19426           # -berok will link without error, but may produce a broken library.
19427           allow_undefined_flag_CXX='-berok'
19428           # Determine the default libpath from the value encoded in an empty
19429           # executable.
19430           if test "${lt_cv_aix_libpath+set}" = set; then
19431   aix_libpath=$lt_cv_aix_libpath
19432 else
19433   if ${lt_cv_aix_libpath__CXX+:} false; then :
19434   $as_echo_n "(cached) " >&6
19435 else
19436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437 /* end confdefs.h.  */
19438
19439 int
19440 main ()
19441 {
19442
19443   ;
19444   return 0;
19445 }
19446 _ACEOF
19447 if ac_fn_cxx_try_link "$LINENO"; then :
19448
19449   lt_aix_libpath_sed='
19450       /Import File Strings/,/^$/ {
19451           /^0/ {
19452               s/^0  *\([^ ]*\) *$/\1/
19453               p
19454           }
19455       }'
19456   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19457   # Check for a 64-bit object if we didn't find anything.
19458   if test -z "$lt_cv_aix_libpath__CXX"; then
19459     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19460   fi
19461 fi
19462 rm -f core conftest.err conftest.$ac_objext \
19463     conftest$ac_exeext conftest.$ac_ext
19464   if test -z "$lt_cv_aix_libpath__CXX"; then
19465     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
19466   fi
19467
19468 fi
19469
19470   aix_libpath=$lt_cv_aix_libpath__CXX
19471 fi
19472
19473           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19474
19475           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"
19476         else
19477           if test "$host_cpu" = ia64; then
19478             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19479             allow_undefined_flag_CXX="-z nodefs"
19480             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"
19481           else
19482             # Determine the default libpath from the value encoded in an
19483             # empty executable.
19484             if test "${lt_cv_aix_libpath+set}" = set; then
19485   aix_libpath=$lt_cv_aix_libpath
19486 else
19487   if ${lt_cv_aix_libpath__CXX+:} false; then :
19488   $as_echo_n "(cached) " >&6
19489 else
19490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19491 /* end confdefs.h.  */
19492
19493 int
19494 main ()
19495 {
19496
19497   ;
19498   return 0;
19499 }
19500 _ACEOF
19501 if ac_fn_cxx_try_link "$LINENO"; then :
19502
19503   lt_aix_libpath_sed='
19504       /Import File Strings/,/^$/ {
19505           /^0/ {
19506               s/^0  *\([^ ]*\) *$/\1/
19507               p
19508           }
19509       }'
19510   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19511   # Check for a 64-bit object if we didn't find anything.
19512   if test -z "$lt_cv_aix_libpath__CXX"; then
19513     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19514   fi
19515 fi
19516 rm -f core conftest.err conftest.$ac_objext \
19517     conftest$ac_exeext conftest.$ac_ext
19518   if test -z "$lt_cv_aix_libpath__CXX"; then
19519     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
19520   fi
19521
19522 fi
19523
19524   aix_libpath=$lt_cv_aix_libpath__CXX
19525 fi
19526
19527             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19528             # Warning - without using the other run time loading flags,
19529             # -berok will link without error, but may produce a broken library.
19530             no_undefined_flag_CXX=' ${wl}-bernotok'
19531             allow_undefined_flag_CXX=' ${wl}-berok'
19532             if test "$with_gnu_ld" = yes; then
19533               # We only use this code for GNU lds that support --whole-archive.
19534               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19535             else
19536               # Exported symbols can be pulled into shared objects from archives
19537               whole_archive_flag_spec_CXX='$convenience'
19538             fi
19539             archive_cmds_need_lc_CXX=yes
19540             # This is similar to how AIX traditionally builds its shared
19541             # libraries.
19542             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'
19543           fi
19544         fi
19545         ;;
19546
19547       beos*)
19548         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19549           allow_undefined_flag_CXX=unsupported
19550           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19551           # support --undefined.  This deserves some investigation.  FIXME
19552           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19553         else
19554           ld_shlibs_CXX=no
19555         fi
19556         ;;
19557
19558       chorus*)
19559         case $cc_basename in
19560           *)
19561           # FIXME: insert proper C++ library support
19562           ld_shlibs_CXX=no
19563           ;;
19564         esac
19565         ;;
19566
19567       cygwin* | mingw* | pw32* | cegcc*)
19568         case $GXX,$cc_basename in
19569         ,cl* | no,cl*)
19570           # Native MSVC
19571           # hardcode_libdir_flag_spec is actually meaningless, as there is
19572           # no search path for DLLs.
19573           hardcode_libdir_flag_spec_CXX=' '
19574           allow_undefined_flag_CXX=unsupported
19575           always_export_symbols_CXX=yes
19576           file_list_spec_CXX='@'
19577           # Tell ltmain to make .lib files, not .a files.
19578           libext=lib
19579           # Tell ltmain to make .dll files, not .so files.
19580           shrext_cmds=".dll"
19581           # FIXME: Setting linknames here is a bad hack.
19582           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19583           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19584               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19585             else
19586               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19587             fi~
19588             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19589             linknames='
19590           # The linker will not automatically build a static lib if we build a DLL.
19591           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19592           enable_shared_with_static_runtimes_CXX=yes
19593           # Don't use ranlib
19594           old_postinstall_cmds_CXX='chmod 644 $oldlib'
19595           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19596             lt_tool_outputfile="@TOOL_OUTPUT@"~
19597             case $lt_outputfile in
19598               *.exe|*.EXE) ;;
19599               *)
19600                 lt_outputfile="$lt_outputfile.exe"
19601                 lt_tool_outputfile="$lt_tool_outputfile.exe"
19602                 ;;
19603             esac~
19604             func_to_tool_file "$lt_outputfile"~
19605             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19606               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19607               $RM "$lt_outputfile.manifest";
19608             fi'
19609           ;;
19610         *)
19611           # g++
19612           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19613           # as there is no search path for DLLs.
19614           hardcode_libdir_flag_spec_CXX='-L$libdir'
19615           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19616           allow_undefined_flag_CXX=unsupported
19617           always_export_symbols_CXX=no
19618           enable_shared_with_static_runtimes_CXX=yes
19619
19620           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19621             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'
19622             # If the export-symbols file already is a .def file (1st line
19623             # is EXPORTS), use it as is; otherwise, prepend...
19624             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19625               cp $export_symbols $output_objdir/$soname.def;
19626             else
19627               echo EXPORTS > $output_objdir/$soname.def;
19628               cat $export_symbols >> $output_objdir/$soname.def;
19629             fi~
19630             $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'
19631           else
19632             ld_shlibs_CXX=no
19633           fi
19634           ;;
19635         esac
19636         ;;
19637       darwin* | rhapsody*)
19638
19639
19640   archive_cmds_need_lc_CXX=no
19641   hardcode_direct_CXX=no
19642   hardcode_automatic_CXX=yes
19643   hardcode_shlibpath_var_CXX=unsupported
19644   if test "$lt_cv_ld_force_load" = "yes"; then
19645     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\"`'
19646
19647   else
19648     whole_archive_flag_spec_CXX=''
19649   fi
19650   link_all_deplibs_CXX=yes
19651   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19652   case $cc_basename in
19653      ifort*) _lt_dar_can_shared=yes ;;
19654      *) _lt_dar_can_shared=$GCC ;;
19655   esac
19656   if test "$_lt_dar_can_shared" = "yes"; then
19657     output_verbose_link_cmd=func_echo_all
19658     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}"
19659     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19660     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}"
19661     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}"
19662        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19663       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}"
19664       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}"
19665     fi
19666
19667   else
19668   ld_shlibs_CXX=no
19669   fi
19670
19671         ;;
19672
19673       dgux*)
19674         case $cc_basename in
19675           ec++*)
19676             # FIXME: insert proper C++ library support
19677             ld_shlibs_CXX=no
19678             ;;
19679           ghcx*)
19680             # Green Hills C++ Compiler
19681             # FIXME: insert proper C++ library support
19682             ld_shlibs_CXX=no
19683             ;;
19684           *)
19685             # FIXME: insert proper C++ library support
19686             ld_shlibs_CXX=no
19687             ;;
19688         esac
19689         ;;
19690
19691       freebsd2.*)
19692         # C++ shared libraries reported to be fairly broken before
19693         # switch to ELF
19694         ld_shlibs_CXX=no
19695         ;;
19696
19697       freebsd-elf*)
19698         archive_cmds_need_lc_CXX=no
19699         ;;
19700
19701       freebsd* | dragonfly*)
19702         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19703         # conventions
19704         ld_shlibs_CXX=yes
19705         ;;
19706
19707       gnu*)
19708         ;;
19709
19710       haiku*)
19711         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19712         link_all_deplibs_CXX=yes
19713         ;;
19714
19715       hpux9*)
19716         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19717         hardcode_libdir_separator_CXX=:
19718         export_dynamic_flag_spec_CXX='${wl}-E'
19719         hardcode_direct_CXX=yes
19720         hardcode_minus_L_CXX=yes # Not in the search PATH,
19721                                              # but as the default
19722                                              # location of the library.
19723
19724         case $cc_basename in
19725           CC*)
19726             # FIXME: insert proper C++ library support
19727             ld_shlibs_CXX=no
19728             ;;
19729           aCC*)
19730             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'
19731             # Commands to make compiler produce verbose output that lists
19732             # what "hidden" libraries, object files and flags are used when
19733             # linking a shared library.
19734             #
19735             # There doesn't appear to be a way to prevent this compiler from
19736             # explicitly linking system object files so we need to strip them
19737             # from the output so that they don't get included in the library
19738             # dependencies.
19739             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"'
19740             ;;
19741           *)
19742             if test "$GXX" = yes; then
19743               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'
19744             else
19745               # FIXME: insert proper C++ library support
19746               ld_shlibs_CXX=no
19747             fi
19748             ;;
19749         esac
19750         ;;
19751
19752       hpux10*|hpux11*)
19753         if test $with_gnu_ld = no; then
19754           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19755           hardcode_libdir_separator_CXX=:
19756
19757           case $host_cpu in
19758             hppa*64*|ia64*)
19759               ;;
19760             *)
19761               export_dynamic_flag_spec_CXX='${wl}-E'
19762               ;;
19763           esac
19764         fi
19765         case $host_cpu in
19766           hppa*64*|ia64*)
19767             hardcode_direct_CXX=no
19768             hardcode_shlibpath_var_CXX=no
19769             ;;
19770           *)
19771             hardcode_direct_CXX=yes
19772             hardcode_direct_absolute_CXX=yes
19773             hardcode_minus_L_CXX=yes # Not in the search PATH,
19774                                                  # but as the default
19775                                                  # location of the library.
19776             ;;
19777         esac
19778
19779         case $cc_basename in
19780           CC*)
19781             # FIXME: insert proper C++ library support
19782             ld_shlibs_CXX=no
19783             ;;
19784           aCC*)
19785             case $host_cpu in
19786               hppa*64*)
19787                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19788                 ;;
19789               ia64*)
19790                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19791                 ;;
19792               *)
19793                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19794                 ;;
19795             esac
19796             # Commands to make compiler produce verbose output that lists
19797             # what "hidden" libraries, object files and flags are used when
19798             # linking a shared library.
19799             #
19800             # There doesn't appear to be a way to prevent this compiler from
19801             # explicitly linking system object files so we need to strip them
19802             # from the output so that they don't get included in the library
19803             # dependencies.
19804             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"'
19805             ;;
19806           *)
19807             if test "$GXX" = yes; then
19808               if test $with_gnu_ld = no; then
19809                 case $host_cpu in
19810                   hppa*64*)
19811                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19812                     ;;
19813                   ia64*)
19814                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19815                     ;;
19816                   *)
19817                     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'
19818                     ;;
19819                 esac
19820               fi
19821             else
19822               # FIXME: insert proper C++ library support
19823               ld_shlibs_CXX=no
19824             fi
19825             ;;
19826         esac
19827         ;;
19828
19829       interix[3-9]*)
19830         hardcode_direct_CXX=no
19831         hardcode_shlibpath_var_CXX=no
19832         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19833         export_dynamic_flag_spec_CXX='${wl}-E'
19834         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19835         # Instead, shared libraries are loaded at an image base (0x10000000 by
19836         # default) and relocated if they conflict, which is a slow very memory
19837         # consuming and fragmenting process.  To avoid this, we pick a random,
19838         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19839         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19840         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'
19841         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'
19842         ;;
19843       irix5* | irix6*)
19844         case $cc_basename in
19845           CC*)
19846             # SGI C++
19847             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'
19848
19849             # Archives containing C++ object files must be created using
19850             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19851             # necessary to make sure instantiated templates are included
19852             # in the archive.
19853             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19854             ;;
19855           *)
19856             if test "$GXX" = yes; then
19857               if test "$with_gnu_ld" = no; then
19858                 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'
19859               else
19860                 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'
19861               fi
19862             fi
19863             link_all_deplibs_CXX=yes
19864             ;;
19865         esac
19866         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19867         hardcode_libdir_separator_CXX=:
19868         inherit_rpath_CXX=yes
19869         ;;
19870
19871       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19872         case $cc_basename in
19873           KCC*)
19874             # Kuck and Associates, Inc. (KAI) C++ Compiler
19875
19876             # KCC will only create a shared library if the output file
19877             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19878             # to its proper name (with version) after linking.
19879             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'
19880             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'
19881             # Commands to make compiler produce verbose output that lists
19882             # what "hidden" libraries, object files and flags are used when
19883             # linking a shared library.
19884             #
19885             # There doesn't appear to be a way to prevent this compiler from
19886             # explicitly linking system object files so we need to strip them
19887             # from the output so that they don't get included in the library
19888             # dependencies.
19889             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"'
19890
19891             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19892             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19893
19894             # Archives containing C++ object files must be created using
19895             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19896             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19897             ;;
19898           icpc* | ecpc* )
19899             # Intel C++
19900             with_gnu_ld=yes
19901             # version 8.0 and above of icpc choke on multiply defined symbols
19902             # if we add $predep_objects and $postdep_objects, however 7.1 and
19903             # earlier do not add the objects themselves.
19904             case `$CC -V 2>&1` in
19905               *"Version 7."*)
19906                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19907                 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'
19908                 ;;
19909               *)  # Version 8.0 or newer
19910                 tmp_idyn=
19911                 case $host_cpu in
19912                   ia64*) tmp_idyn=' -i_dynamic';;
19913                 esac
19914                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19915                 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'
19916                 ;;
19917             esac
19918             archive_cmds_need_lc_CXX=no
19919             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19920             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19921             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19922             ;;
19923           pgCC* | pgcpp*)
19924             # Portland Group C++ compiler
19925             case `$CC -V` in
19926             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19927               prelink_cmds_CXX='tpldir=Template.dir~
19928                 rm -rf $tpldir~
19929                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19930                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19931               old_archive_cmds_CXX='tpldir=Template.dir~
19932                 rm -rf $tpldir~
19933                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19934                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19935                 $RANLIB $oldlib'
19936               archive_cmds_CXX='tpldir=Template.dir~
19937                 rm -rf $tpldir~
19938                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19939                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19940               archive_expsym_cmds_CXX='tpldir=Template.dir~
19941                 rm -rf $tpldir~
19942                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19943                 $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'
19944               ;;
19945             *) # Version 6 and above use weak symbols
19946               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19947               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'
19948               ;;
19949             esac
19950
19951             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19952             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19953             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'
19954             ;;
19955           cxx*)
19956             # Compaq C++
19957             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19958             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'
19959
19960             runpath_var=LD_RUN_PATH
19961             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19962             hardcode_libdir_separator_CXX=:
19963
19964             # Commands to make compiler produce verbose output that lists
19965             # what "hidden" libraries, object files and flags are used when
19966             # linking a shared library.
19967             #
19968             # There doesn't appear to be a way to prevent this compiler from
19969             # explicitly linking system object files so we need to strip them
19970             # from the output so that they don't get included in the library
19971             # dependencies.
19972             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'
19973             ;;
19974           xl* | mpixl* | bgxl*)
19975             # IBM XL 8.0 on PPC, with GNU ld
19976             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19977             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19978             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19979             if test "x$supports_anon_versioning" = xyes; then
19980               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19981                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19982                 echo "local: *; };" >> $output_objdir/$libname.ver~
19983                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19984             fi
19985             ;;
19986           *)
19987             case `$CC -V 2>&1 | sed 5q` in
19988             *Sun\ C*)
19989               # Sun C++ 5.9
19990               no_undefined_flag_CXX=' -zdefs'
19991               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19992               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'
19993               hardcode_libdir_flag_spec_CXX='-R$libdir'
19994               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'
19995               compiler_needs_object_CXX=yes
19996
19997               # Not sure whether something based on
19998               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19999               # would be better.
20000               output_verbose_link_cmd='func_echo_all'
20001
20002               # Archives containing C++ object files must be created using
20003               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20004               # necessary to make sure instantiated templates are included
20005               # in the archive.
20006               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20007               ;;
20008             esac
20009             ;;
20010         esac
20011         ;;
20012
20013       lynxos*)
20014         # FIXME: insert proper C++ library support
20015         ld_shlibs_CXX=no
20016         ;;
20017
20018       m88k*)
20019         # FIXME: insert proper C++ library support
20020         ld_shlibs_CXX=no
20021         ;;
20022
20023       mvs*)
20024         case $cc_basename in
20025           cxx*)
20026             # FIXME: insert proper C++ library support
20027             ld_shlibs_CXX=no
20028             ;;
20029           *)
20030             # FIXME: insert proper C++ library support
20031             ld_shlibs_CXX=no
20032             ;;
20033         esac
20034         ;;
20035
20036       netbsd*)
20037         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20038           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20039           wlarc=
20040           hardcode_libdir_flag_spec_CXX='-R$libdir'
20041           hardcode_direct_CXX=yes
20042           hardcode_shlibpath_var_CXX=no
20043         fi
20044         # Workaround some broken pre-1.5 toolchains
20045         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20046         ;;
20047
20048       *nto* | *qnx*)
20049         ld_shlibs_CXX=yes
20050         ;;
20051
20052       openbsd2*)
20053         # C++ shared libraries are fairly broken
20054         ld_shlibs_CXX=no
20055         ;;
20056
20057       openbsd*)
20058         if test -f /usr/libexec/ld.so; then
20059           hardcode_direct_CXX=yes
20060           hardcode_shlibpath_var_CXX=no
20061           hardcode_direct_absolute_CXX=yes
20062           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20063           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20064           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20065             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20066             export_dynamic_flag_spec_CXX='${wl}-E'
20067             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20068           fi
20069           output_verbose_link_cmd=func_echo_all
20070         else
20071           ld_shlibs_CXX=no
20072         fi
20073         ;;
20074
20075       osf3* | osf4* | osf5*)
20076         case $cc_basename in
20077           KCC*)
20078             # Kuck and Associates, Inc. (KAI) C++ Compiler
20079
20080             # KCC will only create a shared library if the output file
20081             # ends with ".so" (or ".sl" for HP-UX), so rename the library
20082             # to its proper name (with version) after linking.
20083             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'
20084
20085             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20086             hardcode_libdir_separator_CXX=:
20087
20088             # Archives containing C++ object files must be created using
20089             # the KAI C++ compiler.
20090             case $host in
20091               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20092               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20093             esac
20094             ;;
20095           RCC*)
20096             # Rational C++ 2.4.1
20097             # FIXME: insert proper C++ library support
20098             ld_shlibs_CXX=no
20099             ;;
20100           cxx*)
20101             case $host in
20102               osf3*)
20103                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20104                 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'
20105                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20106                 ;;
20107               *)
20108                 allow_undefined_flag_CXX=' -expect_unresolved \*'
20109                 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'
20110                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20111                   echo "-hidden">> $lib.exp~
20112                   $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~
20113                   $RM $lib.exp'
20114                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20115                 ;;
20116             esac
20117
20118             hardcode_libdir_separator_CXX=:
20119
20120             # Commands to make compiler produce verbose output that lists
20121             # what "hidden" libraries, object files and flags are used when
20122             # linking a shared library.
20123             #
20124             # There doesn't appear to be a way to prevent this compiler from
20125             # explicitly linking system object files so we need to strip them
20126             # from the output so that they don't get included in the library
20127             # dependencies.
20128             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"'
20129             ;;
20130           *)
20131             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20132               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20133               case $host in
20134                 osf3*)
20135                   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'
20136                   ;;
20137                 *)
20138                   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'
20139                   ;;
20140               esac
20141
20142               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20143               hardcode_libdir_separator_CXX=:
20144
20145               # Commands to make compiler produce verbose output that lists
20146               # what "hidden" libraries, object files and flags are used when
20147               # linking a shared library.
20148               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20149
20150             else
20151               # FIXME: insert proper C++ library support
20152               ld_shlibs_CXX=no
20153             fi
20154             ;;
20155         esac
20156         ;;
20157
20158       psos*)
20159         # FIXME: insert proper C++ library support
20160         ld_shlibs_CXX=no
20161         ;;
20162
20163       sunos4*)
20164         case $cc_basename in
20165           CC*)
20166             # Sun C++ 4.x
20167             # FIXME: insert proper C++ library support
20168             ld_shlibs_CXX=no
20169             ;;
20170           lcc*)
20171             # Lucid
20172             # FIXME: insert proper C++ library support
20173             ld_shlibs_CXX=no
20174             ;;
20175           *)
20176             # FIXME: insert proper C++ library support
20177             ld_shlibs_CXX=no
20178             ;;
20179         esac
20180         ;;
20181
20182       solaris*)
20183         case $cc_basename in
20184           CC* | sunCC*)
20185             # Sun C++ 4.2, 5.x and Centerline C++
20186             archive_cmds_need_lc_CXX=yes
20187             no_undefined_flag_CXX=' -zdefs'
20188             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20189             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20190               $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'
20191
20192             hardcode_libdir_flag_spec_CXX='-R$libdir'
20193             hardcode_shlibpath_var_CXX=no
20194             case $host_os in
20195               solaris2.[0-5] | solaris2.[0-5].*) ;;
20196               *)
20197                 # The compiler driver will combine and reorder linker options,
20198                 # but understands `-z linker_flag'.
20199                 # Supported since Solaris 2.6 (maybe 2.5.1?)
20200                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20201                 ;;
20202             esac
20203             link_all_deplibs_CXX=yes
20204
20205             output_verbose_link_cmd='func_echo_all'
20206
20207             # Archives containing C++ object files must be created using
20208             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20209             # necessary to make sure instantiated templates are included
20210             # in the archive.
20211             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20212             ;;
20213           gcx*)
20214             # Green Hills C++ Compiler
20215             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20216
20217             # The C++ compiler must be used to create the archive.
20218             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20219             ;;
20220           *)
20221             # GNU C++ compiler with Solaris linker
20222             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20223               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20224               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20225                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20226                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20227                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20228
20229                 # Commands to make compiler produce verbose output that lists
20230                 # what "hidden" libraries, object files and flags are used when
20231                 # linking a shared library.
20232                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20233               else
20234                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20235                 # platform.
20236                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20237                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20238                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20239
20240                 # Commands to make compiler produce verbose output that lists
20241                 # what "hidden" libraries, object files and flags are used when
20242                 # linking a shared library.
20243                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20244               fi
20245
20246               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20247               case $host_os in
20248                 solaris2.[0-5] | solaris2.[0-5].*) ;;
20249                 *)
20250                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20251                   ;;
20252               esac
20253             fi
20254             ;;
20255         esac
20256         ;;
20257
20258     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20259       no_undefined_flag_CXX='${wl}-z,text'
20260       archive_cmds_need_lc_CXX=no
20261       hardcode_shlibpath_var_CXX=no
20262       runpath_var='LD_RUN_PATH'
20263
20264       case $cc_basename in
20265         CC*)
20266           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20267           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20268           ;;
20269         *)
20270           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20271           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20272           ;;
20273       esac
20274       ;;
20275
20276       sysv5* | sco3.2v5* | sco5v6*)
20277         # Note: We can NOT use -z defs as we might desire, because we do not
20278         # link with -lc, and that would cause any symbols used from libc to
20279         # always be unresolved, which means just about no library would
20280         # ever link correctly.  If we're not using GNU ld we use -z text
20281         # though, which does catch some bad symbols but isn't as heavy-handed
20282         # as -z defs.
20283         no_undefined_flag_CXX='${wl}-z,text'
20284         allow_undefined_flag_CXX='${wl}-z,nodefs'
20285         archive_cmds_need_lc_CXX=no
20286         hardcode_shlibpath_var_CXX=no
20287         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20288         hardcode_libdir_separator_CXX=':'
20289         link_all_deplibs_CXX=yes
20290         export_dynamic_flag_spec_CXX='${wl}-Bexport'
20291         runpath_var='LD_RUN_PATH'
20292
20293         case $cc_basename in
20294           CC*)
20295             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20296             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20297             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20298               '"$old_archive_cmds_CXX"
20299             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20300               '"$reload_cmds_CXX"
20301             ;;
20302           *)
20303             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20304             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20305             ;;
20306         esac
20307       ;;
20308
20309       tandem*)
20310         case $cc_basename in
20311           NCC*)
20312             # NonStop-UX NCC 3.20
20313             # FIXME: insert proper C++ library support
20314             ld_shlibs_CXX=no
20315             ;;
20316           *)
20317             # FIXME: insert proper C++ library support
20318             ld_shlibs_CXX=no
20319             ;;
20320         esac
20321         ;;
20322
20323       vxworks*)
20324         # FIXME: insert proper C++ library support
20325         ld_shlibs_CXX=no
20326         ;;
20327
20328       *)
20329         # FIXME: insert proper C++ library support
20330         ld_shlibs_CXX=no
20331         ;;
20332     esac
20333
20334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20335 $as_echo "$ld_shlibs_CXX" >&6; }
20336     test "$ld_shlibs_CXX" = no && can_build_shared=no
20337
20338     GCC_CXX="$GXX"
20339     LD_CXX="$LD"
20340
20341     ## CAVEAT EMPTOR:
20342     ## There is no encapsulation within the following macros, do not change
20343     ## the running order or otherwise move them around unless you know exactly
20344     ## what you are doing...
20345     # Dependencies to place before and after the object being linked:
20346 predep_objects_CXX=
20347 postdep_objects_CXX=
20348 predeps_CXX=
20349 postdeps_CXX=
20350 compiler_lib_search_path_CXX=
20351
20352 cat > conftest.$ac_ext <<_LT_EOF
20353 class Foo
20354 {
20355 public:
20356   Foo (void) { a = 0; }
20357 private:
20358   int a;
20359 };
20360 _LT_EOF
20361
20362
20363 _lt_libdeps_save_CFLAGS=$CFLAGS
20364 case "$CC $CFLAGS " in #(
20365 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20366 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
20367 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
20368 esac
20369
20370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20371   (eval $ac_compile) 2>&5
20372   ac_status=$?
20373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20374   test $ac_status = 0; }; then
20375   # Parse the compiler output and extract the necessary
20376   # objects, libraries and library flags.
20377
20378   # Sentinel used to keep track of whether or not we are before
20379   # the conftest object file.
20380   pre_test_object_deps_done=no
20381
20382   for p in `eval "$output_verbose_link_cmd"`; do
20383     case ${prev}${p} in
20384
20385     -L* | -R* | -l*)
20386        # Some compilers place space between "-{L,R}" and the path.
20387        # Remove the space.
20388        if test $p = "-L" ||
20389           test $p = "-R"; then
20390          prev=$p
20391          continue
20392        fi
20393
20394        # Expand the sysroot to ease extracting the directories later.
20395        if test -z "$prev"; then
20396          case $p in
20397          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20398          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20399          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20400          esac
20401        fi
20402        case $p in
20403        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20404        esac
20405        if test "$pre_test_object_deps_done" = no; then
20406          case ${prev} in
20407          -L | -R)
20408            # Internal compiler library paths should come after those
20409            # provided the user.  The postdeps already come after the
20410            # user supplied libs so there is no need to process them.
20411            if test -z "$compiler_lib_search_path_CXX"; then
20412              compiler_lib_search_path_CXX="${prev}${p}"
20413            else
20414              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20415            fi
20416            ;;
20417          # The "-l" case would never come before the object being
20418          # linked, so don't bother handling this case.
20419          esac
20420        else
20421          if test -z "$postdeps_CXX"; then
20422            postdeps_CXX="${prev}${p}"
20423          else
20424            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20425          fi
20426        fi
20427        prev=
20428        ;;
20429
20430     *.lto.$objext) ;; # Ignore GCC LTO objects
20431     *.$objext)
20432        # This assumes that the test object file only shows up
20433        # once in the compiler output.
20434        if test "$p" = "conftest.$objext"; then
20435          pre_test_object_deps_done=yes
20436          continue
20437        fi
20438
20439        if test "$pre_test_object_deps_done" = no; then
20440          if test -z "$predep_objects_CXX"; then
20441            predep_objects_CXX="$p"
20442          else
20443            predep_objects_CXX="$predep_objects_CXX $p"
20444          fi
20445        else
20446          if test -z "$postdep_objects_CXX"; then
20447            postdep_objects_CXX="$p"
20448          else
20449            postdep_objects_CXX="$postdep_objects_CXX $p"
20450          fi
20451        fi
20452        ;;
20453
20454     *) ;; # Ignore the rest.
20455
20456     esac
20457   done
20458
20459   # Clean up.
20460   rm -f a.out a.exe
20461 else
20462   echo "libtool.m4: error: problem compiling CXX test program"
20463 fi
20464
20465 $RM -f confest.$objext
20466 CFLAGS=$_lt_libdeps_save_CFLAGS
20467
20468 # PORTME: override above test on systems where it is broken
20469 case $host_os in
20470 interix[3-9]*)
20471   # Interix 3.5 installs completely hosed .la files for C++, so rather than
20472   # hack all around it, let's just trust "g++" to DTRT.
20473   predep_objects_CXX=
20474   postdep_objects_CXX=
20475   postdeps_CXX=
20476   ;;
20477
20478 linux*)
20479   case `$CC -V 2>&1 | sed 5q` in
20480   *Sun\ C*)
20481     # Sun C++ 5.9
20482
20483     # The more standards-conforming stlport4 library is
20484     # incompatible with the Cstd library. Avoid specifying
20485     # it if it's in CXXFLAGS. Ignore libCrun as
20486     # -library=stlport4 depends on it.
20487     case " $CXX $CXXFLAGS " in
20488     *" -library=stlport4 "*)
20489       solaris_use_stlport4=yes
20490       ;;
20491     esac
20492
20493     if test "$solaris_use_stlport4" != yes; then
20494       postdeps_CXX='-library=Cstd -library=Crun'
20495     fi
20496     ;;
20497   esac
20498   ;;
20499
20500 solaris*)
20501   case $cc_basename in
20502   CC* | sunCC*)
20503     # The more standards-conforming stlport4 library is
20504     # incompatible with the Cstd library. Avoid specifying
20505     # it if it's in CXXFLAGS. Ignore libCrun as
20506     # -library=stlport4 depends on it.
20507     case " $CXX $CXXFLAGS " in
20508     *" -library=stlport4 "*)
20509       solaris_use_stlport4=yes
20510       ;;
20511     esac
20512
20513     # Adding this requires a known-good setup of shared libraries for
20514     # Sun compiler versions before 5.6, else PIC objects from an old
20515     # archive will be linked into the output, leading to subtle bugs.
20516     if test "$solaris_use_stlport4" != yes; then
20517       postdeps_CXX='-library=Cstd -library=Crun'
20518     fi
20519     ;;
20520   esac
20521   ;;
20522 esac
20523
20524
20525 case " $postdeps_CXX " in
20526 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20527 esac
20528  compiler_lib_search_dirs_CXX=
20529 if test -n "${compiler_lib_search_path_CXX}"; then
20530  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20531 fi
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563     lt_prog_compiler_wl_CXX=
20564 lt_prog_compiler_pic_CXX=
20565 lt_prog_compiler_static_CXX=
20566
20567
20568   # C++ specific cases for pic, static, wl, etc.
20569   if test "$GXX" = yes; then
20570     lt_prog_compiler_wl_CXX='-Wl,'
20571     lt_prog_compiler_static_CXX='-static'
20572
20573     case $host_os in
20574     aix*)
20575       # All AIX code is PIC.
20576       if test "$host_cpu" = ia64; then
20577         # AIX 5 now supports IA64 processor
20578         lt_prog_compiler_static_CXX='-Bstatic'
20579       fi
20580       ;;
20581
20582     amigaos*)
20583       case $host_cpu in
20584       powerpc)
20585             # see comment about AmigaOS4 .so support
20586             lt_prog_compiler_pic_CXX='-fPIC'
20587         ;;
20588       m68k)
20589             # FIXME: we need at least 68020 code to build shared libraries, but
20590             # adding the `-m68020' flag to GCC prevents building anything better,
20591             # like `-m68040'.
20592             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20593         ;;
20594       esac
20595       ;;
20596
20597     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20598       # PIC is the default for these OSes.
20599       ;;
20600     mingw* | cygwin* | os2* | pw32* | cegcc*)
20601       # This hack is so that the source file can tell whether it is being
20602       # built for inclusion in a dll (and should export symbols for example).
20603       # Although the cygwin gcc ignores -fPIC, still need this for old-style
20604       # (--disable-auto-import) libraries
20605       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20606       ;;
20607     darwin* | rhapsody*)
20608       # PIC is the default on this platform
20609       # Common symbols not allowed in MH_DYLIB files
20610       lt_prog_compiler_pic_CXX='-fno-common'
20611       ;;
20612     *djgpp*)
20613       # DJGPP does not support shared libraries at all
20614       lt_prog_compiler_pic_CXX=
20615       ;;
20616     haiku*)
20617       # PIC is the default for Haiku.
20618       # The "-static" flag exists, but is broken.
20619       lt_prog_compiler_static_CXX=
20620       ;;
20621     interix[3-9]*)
20622       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20623       # Instead, we relocate shared libraries at runtime.
20624       ;;
20625     sysv4*MP*)
20626       if test -d /usr/nec; then
20627         lt_prog_compiler_pic_CXX=-Kconform_pic
20628       fi
20629       ;;
20630     hpux*)
20631       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20632       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20633       # sets the default TLS model and affects inlining.
20634       case $host_cpu in
20635       hppa*64*)
20636         ;;
20637       *)
20638         lt_prog_compiler_pic_CXX='-fPIC'
20639         ;;
20640       esac
20641       ;;
20642     *qnx* | *nto*)
20643       # QNX uses GNU C++, but need to define -shared option too, otherwise
20644       # it will coredump.
20645       lt_prog_compiler_pic_CXX='-fPIC -shared'
20646       ;;
20647     *)
20648       lt_prog_compiler_pic_CXX='-fPIC'
20649       ;;
20650     esac
20651   else
20652     case $host_os in
20653       aix[4-9]*)
20654         # All AIX code is PIC.
20655         if test "$host_cpu" = ia64; then
20656           # AIX 5 now supports IA64 processor
20657           lt_prog_compiler_static_CXX='-Bstatic'
20658         else
20659           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20660         fi
20661         ;;
20662       chorus*)
20663         case $cc_basename in
20664         cxch68*)
20665           # Green Hills C++ Compiler
20666           # _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"
20667           ;;
20668         esac
20669         ;;
20670       mingw* | cygwin* | os2* | pw32* | cegcc*)
20671         # This hack is so that the source file can tell whether it is being
20672         # built for inclusion in a dll (and should export symbols for example).
20673         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20674         ;;
20675       dgux*)
20676         case $cc_basename in
20677           ec++*)
20678             lt_prog_compiler_pic_CXX='-KPIC'
20679             ;;
20680           ghcx*)
20681             # Green Hills C++ Compiler
20682             lt_prog_compiler_pic_CXX='-pic'
20683             ;;
20684           *)
20685             ;;
20686         esac
20687         ;;
20688       freebsd* | dragonfly*)
20689         # FreeBSD uses GNU C++
20690         ;;
20691       hpux9* | hpux10* | hpux11*)
20692         case $cc_basename in
20693           CC*)
20694             lt_prog_compiler_wl_CXX='-Wl,'
20695             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20696             if test "$host_cpu" != ia64; then
20697               lt_prog_compiler_pic_CXX='+Z'
20698             fi
20699             ;;
20700           aCC*)
20701             lt_prog_compiler_wl_CXX='-Wl,'
20702             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20703             case $host_cpu in
20704             hppa*64*|ia64*)
20705               # +Z the default
20706               ;;
20707             *)
20708               lt_prog_compiler_pic_CXX='+Z'
20709               ;;
20710             esac
20711             ;;
20712           *)
20713             ;;
20714         esac
20715         ;;
20716       interix*)
20717         # This is c89, which is MS Visual C++ (no shared libs)
20718         # Anyone wants to do a port?
20719         ;;
20720       irix5* | irix6* | nonstopux*)
20721         case $cc_basename in
20722           CC*)
20723             lt_prog_compiler_wl_CXX='-Wl,'
20724             lt_prog_compiler_static_CXX='-non_shared'
20725             # CC pic flag -KPIC is the default.
20726             ;;
20727           *)
20728             ;;
20729         esac
20730         ;;
20731       linux* | k*bsd*-gnu | kopensolaris*-gnu)
20732         case $cc_basename in
20733           KCC*)
20734             # KAI C++ Compiler
20735             lt_prog_compiler_wl_CXX='--backend -Wl,'
20736             lt_prog_compiler_pic_CXX='-fPIC'
20737             ;;
20738           ecpc* )
20739             # old Intel C++ for x86_64 which still supported -KPIC.
20740             lt_prog_compiler_wl_CXX='-Wl,'
20741             lt_prog_compiler_pic_CXX='-KPIC'
20742             lt_prog_compiler_static_CXX='-static'
20743             ;;
20744           icpc* )
20745             # Intel C++, used to be incompatible with GCC.
20746             # ICC 10 doesn't accept -KPIC any more.
20747             lt_prog_compiler_wl_CXX='-Wl,'
20748             lt_prog_compiler_pic_CXX='-fPIC'
20749             lt_prog_compiler_static_CXX='-static'
20750             ;;
20751           pgCC* | pgcpp*)
20752             # Portland Group C++ compiler
20753             lt_prog_compiler_wl_CXX='-Wl,'
20754             lt_prog_compiler_pic_CXX='-fpic'
20755             lt_prog_compiler_static_CXX='-Bstatic'
20756             ;;
20757           cxx*)
20758             # Compaq C++
20759             # Make sure the PIC flag is empty.  It appears that all Alpha
20760             # Linux and Compaq Tru64 Unix objects are PIC.
20761             lt_prog_compiler_pic_CXX=
20762             lt_prog_compiler_static_CXX='-non_shared'
20763             ;;
20764           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20765             # IBM XL 8.0, 9.0 on PPC and BlueGene
20766             lt_prog_compiler_wl_CXX='-Wl,'
20767             lt_prog_compiler_pic_CXX='-qpic'
20768             lt_prog_compiler_static_CXX='-qstaticlink'
20769             ;;
20770           *)
20771             case `$CC -V 2>&1 | sed 5q` in
20772             *Sun\ C*)
20773               # Sun C++ 5.9
20774               lt_prog_compiler_pic_CXX='-KPIC'
20775               lt_prog_compiler_static_CXX='-Bstatic'
20776               lt_prog_compiler_wl_CXX='-Qoption ld '
20777               ;;
20778             esac
20779             ;;
20780         esac
20781         ;;
20782       lynxos*)
20783         ;;
20784       m88k*)
20785         ;;
20786       mvs*)
20787         case $cc_basename in
20788           cxx*)
20789             lt_prog_compiler_pic_CXX='-W c,exportall'
20790             ;;
20791           *)
20792             ;;
20793         esac
20794         ;;
20795       netbsd* | netbsdelf*-gnu)
20796         ;;
20797       *qnx* | *nto*)
20798         # QNX uses GNU C++, but need to define -shared option too, otherwise
20799         # it will coredump.
20800         lt_prog_compiler_pic_CXX='-fPIC -shared'
20801         ;;
20802       osf3* | osf4* | osf5*)
20803         case $cc_basename in
20804           KCC*)
20805             lt_prog_compiler_wl_CXX='--backend -Wl,'
20806             ;;
20807           RCC*)
20808             # Rational C++ 2.4.1
20809             lt_prog_compiler_pic_CXX='-pic'
20810             ;;
20811           cxx*)
20812             # Digital/Compaq C++
20813             lt_prog_compiler_wl_CXX='-Wl,'
20814             # Make sure the PIC flag is empty.  It appears that all Alpha
20815             # Linux and Compaq Tru64 Unix objects are PIC.
20816             lt_prog_compiler_pic_CXX=
20817             lt_prog_compiler_static_CXX='-non_shared'
20818             ;;
20819           *)
20820             ;;
20821         esac
20822         ;;
20823       psos*)
20824         ;;
20825       solaris*)
20826         case $cc_basename in
20827           CC* | sunCC*)
20828             # Sun C++ 4.2, 5.x and Centerline C++
20829             lt_prog_compiler_pic_CXX='-KPIC'
20830             lt_prog_compiler_static_CXX='-Bstatic'
20831             lt_prog_compiler_wl_CXX='-Qoption ld '
20832             ;;
20833           gcx*)
20834             # Green Hills C++ Compiler
20835             lt_prog_compiler_pic_CXX='-PIC'
20836             ;;
20837           *)
20838             ;;
20839         esac
20840         ;;
20841       sunos4*)
20842         case $cc_basename in
20843           CC*)
20844             # Sun C++ 4.x
20845             lt_prog_compiler_pic_CXX='-pic'
20846             lt_prog_compiler_static_CXX='-Bstatic'
20847             ;;
20848           lcc*)
20849             # Lucid
20850             lt_prog_compiler_pic_CXX='-pic'
20851             ;;
20852           *)
20853             ;;
20854         esac
20855         ;;
20856       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20857         case $cc_basename in
20858           CC*)
20859             lt_prog_compiler_wl_CXX='-Wl,'
20860             lt_prog_compiler_pic_CXX='-KPIC'
20861             lt_prog_compiler_static_CXX='-Bstatic'
20862             ;;
20863         esac
20864         ;;
20865       tandem*)
20866         case $cc_basename in
20867           NCC*)
20868             # NonStop-UX NCC 3.20
20869             lt_prog_compiler_pic_CXX='-KPIC'
20870             ;;
20871           *)
20872             ;;
20873         esac
20874         ;;
20875       vxworks*)
20876         ;;
20877       *)
20878         lt_prog_compiler_can_build_shared_CXX=no
20879         ;;
20880     esac
20881   fi
20882
20883 case $host_os in
20884   # For platforms which do not support PIC, -DPIC is meaningless:
20885   *djgpp*)
20886     lt_prog_compiler_pic_CXX=
20887     ;;
20888   *)
20889     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20890     ;;
20891 esac
20892
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20894 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20895 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20896   $as_echo_n "(cached) " >&6
20897 else
20898   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20899 fi
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20901 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20902 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20903
20904 #
20905 # Check to make sure the PIC flag actually works.
20906 #
20907 if test -n "$lt_prog_compiler_pic_CXX"; then
20908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20909 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20910 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20911   $as_echo_n "(cached) " >&6
20912 else
20913   lt_cv_prog_compiler_pic_works_CXX=no
20914    ac_outfile=conftest.$ac_objext
20915    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20916    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20917    # Insert the option either (1) after the last *FLAGS variable, or
20918    # (2) before a word containing "conftest.", or (3) at the end.
20919    # Note that $ac_compile itself does not contain backslashes and begins
20920    # with a dollar sign (not a hyphen), so the echo should work correctly.
20921    # The option is referenced via a variable to avoid confusing sed.
20922    lt_compile=`echo "$ac_compile" | $SED \
20923    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20924    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20925    -e 's:$: $lt_compiler_flag:'`
20926    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20927    (eval "$lt_compile" 2>conftest.err)
20928    ac_status=$?
20929    cat conftest.err >&5
20930    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931    if (exit $ac_status) && test -s "$ac_outfile"; then
20932      # The compiler can only warn and ignore the option if not recognized
20933      # So say no if there are warnings other than the usual output.
20934      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20935      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20936      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20937        lt_cv_prog_compiler_pic_works_CXX=yes
20938      fi
20939    fi
20940    $RM conftest*
20941
20942 fi
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20944 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20945
20946 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20947     case $lt_prog_compiler_pic_CXX in
20948      "" | " "*) ;;
20949      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20950      esac
20951 else
20952     lt_prog_compiler_pic_CXX=
20953      lt_prog_compiler_can_build_shared_CXX=no
20954 fi
20955
20956 fi
20957
20958
20959
20960
20961
20962 #
20963 # Check to make sure the static flag actually works.
20964 #
20965 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20967 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20968 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
20969   $as_echo_n "(cached) " >&6
20970 else
20971   lt_cv_prog_compiler_static_works_CXX=no
20972    save_LDFLAGS="$LDFLAGS"
20973    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20974    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20975    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20976      # The linker can only warn and ignore the option if not recognized
20977      # So say no if there are warnings
20978      if test -s conftest.err; then
20979        # Append any errors to the config.log.
20980        cat conftest.err 1>&5
20981        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20982        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20983        if diff conftest.exp conftest.er2 >/dev/null; then
20984          lt_cv_prog_compiler_static_works_CXX=yes
20985        fi
20986      else
20987        lt_cv_prog_compiler_static_works_CXX=yes
20988      fi
20989    fi
20990    $RM -r conftest*
20991    LDFLAGS="$save_LDFLAGS"
20992
20993 fi
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20995 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20996
20997 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20998     :
20999 else
21000     lt_prog_compiler_static_CXX=
21001 fi
21002
21003
21004
21005
21006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21007 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21008 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21009   $as_echo_n "(cached) " >&6
21010 else
21011   lt_cv_prog_compiler_c_o_CXX=no
21012    $RM -r conftest 2>/dev/null
21013    mkdir conftest
21014    cd conftest
21015    mkdir out
21016    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21017
21018    lt_compiler_flag="-o out/conftest2.$ac_objext"
21019    # Insert the option either (1) after the last *FLAGS variable, or
21020    # (2) before a word containing "conftest.", or (3) at the end.
21021    # Note that $ac_compile itself does not contain backslashes and begins
21022    # with a dollar sign (not a hyphen), so the echo should work correctly.
21023    lt_compile=`echo "$ac_compile" | $SED \
21024    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21025    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21026    -e 's:$: $lt_compiler_flag:'`
21027    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21028    (eval "$lt_compile" 2>out/conftest.err)
21029    ac_status=$?
21030    cat out/conftest.err >&5
21031    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21033    then
21034      # The compiler can only warn and ignore the option if not recognized
21035      # So say no if there are warnings
21036      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21037      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21038      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21039        lt_cv_prog_compiler_c_o_CXX=yes
21040      fi
21041    fi
21042    chmod u+w . 2>&5
21043    $RM conftest*
21044    # SGI C++ compiler will create directory out/ii_files/ for
21045    # template instantiation
21046    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21047    $RM out/* && rmdir out
21048    cd ..
21049    $RM -r conftest
21050    $RM conftest*
21051
21052 fi
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21054 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21055
21056
21057
21058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21059 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21060 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21061   $as_echo_n "(cached) " >&6
21062 else
21063   lt_cv_prog_compiler_c_o_CXX=no
21064    $RM -r conftest 2>/dev/null
21065    mkdir conftest
21066    cd conftest
21067    mkdir out
21068    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21069
21070    lt_compiler_flag="-o out/conftest2.$ac_objext"
21071    # Insert the option either (1) after the last *FLAGS variable, or
21072    # (2) before a word containing "conftest.", or (3) at the end.
21073    # Note that $ac_compile itself does not contain backslashes and begins
21074    # with a dollar sign (not a hyphen), so the echo should work correctly.
21075    lt_compile=`echo "$ac_compile" | $SED \
21076    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21077    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21078    -e 's:$: $lt_compiler_flag:'`
21079    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21080    (eval "$lt_compile" 2>out/conftest.err)
21081    ac_status=$?
21082    cat out/conftest.err >&5
21083    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21085    then
21086      # The compiler can only warn and ignore the option if not recognized
21087      # So say no if there are warnings
21088      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21089      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21090      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21091        lt_cv_prog_compiler_c_o_CXX=yes
21092      fi
21093    fi
21094    chmod u+w . 2>&5
21095    $RM conftest*
21096    # SGI C++ compiler will create directory out/ii_files/ for
21097    # template instantiation
21098    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21099    $RM out/* && rmdir out
21100    cd ..
21101    $RM -r conftest
21102    $RM conftest*
21103
21104 fi
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21106 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21107
21108
21109
21110
21111 hard_links="nottested"
21112 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21113   # do not overwrite the value of need_locks provided by the user
21114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21115 $as_echo_n "checking if we can lock with hard links... " >&6; }
21116   hard_links=yes
21117   $RM conftest*
21118   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21119   touch conftest.a
21120   ln conftest.a conftest.b 2>&5 || hard_links=no
21121   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21123 $as_echo "$hard_links" >&6; }
21124   if test "$hard_links" = no; then
21125     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21126 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21127     need_locks=warn
21128   fi
21129 else
21130   need_locks=no
21131 fi
21132
21133
21134
21135     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21136 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21137
21138   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21139   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21140   case $host_os in
21141   aix[4-9]*)
21142     # If we're using GNU nm, then we don't want the "-C" option.
21143     # -C means demangle to AIX nm, but means don't demangle with GNU nm
21144     # Also, AIX nm treats weak defined symbols like other global defined
21145     # symbols, whereas GNU nm marks them as "W".
21146     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21147       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'
21148     else
21149       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'
21150     fi
21151     ;;
21152   pw32*)
21153     export_symbols_cmds_CXX="$ltdll_cmds"
21154     ;;
21155   cygwin* | mingw* | cegcc*)
21156     case $cc_basename in
21157     cl*)
21158       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21159       ;;
21160     *)
21161       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'
21162       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
21163       ;;
21164     esac
21165     ;;
21166   linux* | k*bsd*-gnu | gnu*)
21167     link_all_deplibs_CXX=no
21168     ;;
21169   *)
21170     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21171     ;;
21172   esac
21173
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21175 $as_echo "$ld_shlibs_CXX" >&6; }
21176 test "$ld_shlibs_CXX" = no && can_build_shared=no
21177
21178 with_gnu_ld_CXX=$with_gnu_ld
21179
21180
21181
21182
21183
21184
21185 #
21186 # Do we need to explicitly link libc?
21187 #
21188 case "x$archive_cmds_need_lc_CXX" in
21189 x|xyes)
21190   # Assume -lc should be added
21191   archive_cmds_need_lc_CXX=yes
21192
21193   if test "$enable_shared" = yes && test "$GCC" = yes; then
21194     case $archive_cmds_CXX in
21195     *'~'*)
21196       # FIXME: we may have to deal with multi-command sequences.
21197       ;;
21198     '$CC '*)
21199       # Test whether the compiler implicitly links with -lc since on some
21200       # systems, -lgcc has to come before -lc. If gcc already passes -lc
21201       # to ld, don't add -lc before -lgcc.
21202       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21203 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21204 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21205   $as_echo_n "(cached) " >&6
21206 else
21207   $RM conftest*
21208         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21209
21210         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21211   (eval $ac_compile) 2>&5
21212   ac_status=$?
21213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21214   test $ac_status = 0; } 2>conftest.err; then
21215           soname=conftest
21216           lib=conftest
21217           libobjs=conftest.$ac_objext
21218           deplibs=
21219           wl=$lt_prog_compiler_wl_CXX
21220           pic_flag=$lt_prog_compiler_pic_CXX
21221           compiler_flags=-v
21222           linker_flags=-v
21223           verstring=
21224           output_objdir=.
21225           libname=conftest
21226           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21227           allow_undefined_flag_CXX=
21228           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21229   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21230   ac_status=$?
21231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21232   test $ac_status = 0; }
21233           then
21234             lt_cv_archive_cmds_need_lc_CXX=no
21235           else
21236             lt_cv_archive_cmds_need_lc_CXX=yes
21237           fi
21238           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21239         else
21240           cat conftest.err 1>&5
21241         fi
21242         $RM conftest*
21243
21244 fi
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21246 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21247       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21248       ;;
21249     esac
21250   fi
21251   ;;
21252 esac
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21316 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21317
21318 library_names_spec=
21319 libname_spec='lib$name'
21320 soname_spec=
21321 shrext_cmds=".so"
21322 postinstall_cmds=
21323 postuninstall_cmds=
21324 finish_cmds=
21325 finish_eval=
21326 shlibpath_var=
21327 shlibpath_overrides_runpath=unknown
21328 version_type=none
21329 dynamic_linker="$host_os ld.so"
21330 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21331 need_lib_prefix=unknown
21332 hardcode_into_libs=no
21333
21334 # when you set need_version to no, make sure it does not cause -set_version
21335 # flags to be left without arguments
21336 need_version=unknown
21337
21338 case $host_os in
21339 aix3*)
21340   version_type=linux # correct to gnu/linux during the next big refactor
21341   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21342   shlibpath_var=LIBPATH
21343
21344   # AIX 3 has no versioning support, so we append a major version to the name.
21345   soname_spec='${libname}${release}${shared_ext}$major'
21346   ;;
21347
21348 aix[4-9]*)
21349   version_type=linux # correct to gnu/linux during the next big refactor
21350   need_lib_prefix=no
21351   need_version=no
21352   hardcode_into_libs=yes
21353   if test "$host_cpu" = ia64; then
21354     # AIX 5 supports IA64
21355     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21356     shlibpath_var=LD_LIBRARY_PATH
21357   else
21358     # With GCC up to 2.95.x, collect2 would create an import file
21359     # for dependence libraries.  The import file would start with
21360     # the line `#! .'.  This would cause the generated library to
21361     # depend on `.', always an invalid library.  This was fixed in
21362     # development snapshots of GCC prior to 3.0.
21363     case $host_os in
21364       aix4 | aix4.[01] | aix4.[01].*)
21365       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21366            echo ' yes '
21367            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21368         :
21369       else
21370         can_build_shared=no
21371       fi
21372       ;;
21373     esac
21374     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21375     # soname into executable. Probably we can add versioning support to
21376     # collect2, so additional links can be useful in future.
21377     if test "$aix_use_runtimelinking" = yes; then
21378       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21379       # instead of lib<name>.a to let people know that these are not
21380       # typical AIX shared libraries.
21381       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21382     else
21383       # We preserve .a as extension for shared libraries through AIX4.2
21384       # and later when we are not doing run time linking.
21385       library_names_spec='${libname}${release}.a $libname.a'
21386       soname_spec='${libname}${release}${shared_ext}$major'
21387     fi
21388     shlibpath_var=LIBPATH
21389   fi
21390   ;;
21391
21392 amigaos*)
21393   case $host_cpu in
21394   powerpc)
21395     # Since July 2007 AmigaOS4 officially supports .so libraries.
21396     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21397     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21398     ;;
21399   m68k)
21400     library_names_spec='$libname.ixlibrary $libname.a'
21401     # Create ${libname}_ixlibrary.a entries in /sys/libs.
21402     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'
21403     ;;
21404   esac
21405   ;;
21406
21407 beos*)
21408   library_names_spec='${libname}${shared_ext}'
21409   dynamic_linker="$host_os ld.so"
21410   shlibpath_var=LIBRARY_PATH
21411   ;;
21412
21413 bsdi[45]*)
21414   version_type=linux # correct to gnu/linux during the next big refactor
21415   need_version=no
21416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21417   soname_spec='${libname}${release}${shared_ext}$major'
21418   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21419   shlibpath_var=LD_LIBRARY_PATH
21420   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21421   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21422   # the default ld.so.conf also contains /usr/contrib/lib and
21423   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21424   # libtool to hard-code these into programs
21425   ;;
21426
21427 cygwin* | mingw* | pw32* | cegcc*)
21428   version_type=windows
21429   shrext_cmds=".dll"
21430   need_version=no
21431   need_lib_prefix=no
21432
21433   case $GCC,$cc_basename in
21434   yes,*)
21435     # gcc
21436     library_names_spec='$libname.dll.a'
21437     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21438     postinstall_cmds='base_file=`basename \${file}`~
21439       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21440       dldir=$destdir/`dirname \$dlpath`~
21441       test -d \$dldir || mkdir -p \$dldir~
21442       $install_prog $dir/$dlname \$dldir/$dlname~
21443       chmod a+x \$dldir/$dlname~
21444       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21445         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21446       fi'
21447     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21448       dlpath=$dir/\$dldll~
21449        $RM \$dlpath'
21450     shlibpath_overrides_runpath=yes
21451
21452     case $host_os in
21453     cygwin*)
21454       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21455       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21456
21457       ;;
21458     mingw* | cegcc*)
21459       # MinGW DLLs use traditional 'lib' prefix
21460       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21461       ;;
21462     pw32*)
21463       # pw32 DLLs use 'pw' prefix rather than 'lib'
21464       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21465       ;;
21466     esac
21467     dynamic_linker='Win32 ld.exe'
21468     ;;
21469
21470   *,cl*)
21471     # Native MSVC
21472     libname_spec='$name'
21473     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21474     library_names_spec='${libname}.dll.lib'
21475
21476     case $build_os in
21477     mingw*)
21478       sys_lib_search_path_spec=
21479       lt_save_ifs=$IFS
21480       IFS=';'
21481       for lt_path in $LIB
21482       do
21483         IFS=$lt_save_ifs
21484         # Let DOS variable expansion print the short 8.3 style file name.
21485         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21486         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21487       done
21488       IFS=$lt_save_ifs
21489       # Convert to MSYS style.
21490       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21491       ;;
21492     cygwin*)
21493       # Convert to unix form, then to dos form, then back to unix form
21494       # but this time dos style (no spaces!) so that the unix form looks
21495       # like /cygdrive/c/PROGRA~1:/cygdr...
21496       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21497       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21498       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21499       ;;
21500     *)
21501       sys_lib_search_path_spec="$LIB"
21502       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21503         # It is most probably a Windows format PATH.
21504         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21505       else
21506         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21507       fi
21508       # FIXME: find the short name or the path components, as spaces are
21509       # common. (e.g. "Program Files" -> "PROGRA~1")
21510       ;;
21511     esac
21512
21513     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21514     postinstall_cmds='base_file=`basename \${file}`~
21515       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21516       dldir=$destdir/`dirname \$dlpath`~
21517       test -d \$dldir || mkdir -p \$dldir~
21518       $install_prog $dir/$dlname \$dldir/$dlname'
21519     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21520       dlpath=$dir/\$dldll~
21521        $RM \$dlpath'
21522     shlibpath_overrides_runpath=yes
21523     dynamic_linker='Win32 link.exe'
21524     ;;
21525
21526   *)
21527     # Assume MSVC wrapper
21528     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21529     dynamic_linker='Win32 ld.exe'
21530     ;;
21531   esac
21532   # FIXME: first we should search . and the directory the executable is in
21533   shlibpath_var=PATH
21534   ;;
21535
21536 darwin* | rhapsody*)
21537   dynamic_linker="$host_os dyld"
21538   version_type=darwin
21539   need_lib_prefix=no
21540   need_version=no
21541   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21542   soname_spec='${libname}${release}${major}$shared_ext'
21543   shlibpath_overrides_runpath=yes
21544   shlibpath_var=DYLD_LIBRARY_PATH
21545   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21546
21547   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21548   ;;
21549
21550 dgux*)
21551   version_type=linux # correct to gnu/linux during the next big refactor
21552   need_lib_prefix=no
21553   need_version=no
21554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21555   soname_spec='${libname}${release}${shared_ext}$major'
21556   shlibpath_var=LD_LIBRARY_PATH
21557   ;;
21558
21559 freebsd* | dragonfly*)
21560   # DragonFly does not have aout.  When/if they implement a new
21561   # versioning mechanism, adjust this.
21562   if test -x /usr/bin/objformat; then
21563     objformat=`/usr/bin/objformat`
21564   else
21565     case $host_os in
21566     freebsd[23].*) objformat=aout ;;
21567     *) objformat=elf ;;
21568     esac
21569   fi
21570   version_type=freebsd-$objformat
21571   case $version_type in
21572     freebsd-elf*)
21573       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21574       need_version=no
21575       need_lib_prefix=no
21576       ;;
21577     freebsd-*)
21578       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21579       need_version=yes
21580       ;;
21581   esac
21582   shlibpath_var=LD_LIBRARY_PATH
21583   case $host_os in
21584   freebsd2.*)
21585     shlibpath_overrides_runpath=yes
21586     ;;
21587   freebsd3.[01]* | freebsdelf3.[01]*)
21588     shlibpath_overrides_runpath=yes
21589     hardcode_into_libs=yes
21590     ;;
21591   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21592   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21593     shlibpath_overrides_runpath=no
21594     hardcode_into_libs=yes
21595     ;;
21596   *) # from 4.6 on, and DragonFly
21597     shlibpath_overrides_runpath=yes
21598     hardcode_into_libs=yes
21599     ;;
21600   esac
21601   ;;
21602
21603 gnu*)
21604   version_type=linux # correct to gnu/linux during the next big refactor
21605   need_lib_prefix=no
21606   need_version=no
21607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21608   soname_spec='${libname}${release}${shared_ext}$major'
21609   shlibpath_var=LD_LIBRARY_PATH
21610   shlibpath_overrides_runpath=no
21611   hardcode_into_libs=yes
21612   ;;
21613
21614 haiku*)
21615   version_type=linux # correct to gnu/linux during the next big refactor
21616   need_lib_prefix=no
21617   need_version=no
21618   dynamic_linker="$host_os runtime_loader"
21619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21620   soname_spec='${libname}${release}${shared_ext}$major'
21621   shlibpath_var=LIBRARY_PATH
21622   shlibpath_overrides_runpath=yes
21623   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21624   hardcode_into_libs=yes
21625   ;;
21626
21627 hpux9* | hpux10* | hpux11*)
21628   # Give a soname corresponding to the major version so that dld.sl refuses to
21629   # link against other versions.
21630   version_type=sunos
21631   need_lib_prefix=no
21632   need_version=no
21633   case $host_cpu in
21634   ia64*)
21635     shrext_cmds='.so'
21636     hardcode_into_libs=yes
21637     dynamic_linker="$host_os dld.so"
21638     shlibpath_var=LD_LIBRARY_PATH
21639     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21641     soname_spec='${libname}${release}${shared_ext}$major'
21642     if test "X$HPUX_IA64_MODE" = X32; then
21643       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21644     else
21645       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21646     fi
21647     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21648     ;;
21649   hppa*64*)
21650     shrext_cmds='.sl'
21651     hardcode_into_libs=yes
21652     dynamic_linker="$host_os dld.sl"
21653     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21654     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21655     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21656     soname_spec='${libname}${release}${shared_ext}$major'
21657     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21658     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21659     ;;
21660   *)
21661     shrext_cmds='.sl'
21662     dynamic_linker="$host_os dld.sl"
21663     shlibpath_var=SHLIB_PATH
21664     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21666     soname_spec='${libname}${release}${shared_ext}$major'
21667     ;;
21668   esac
21669   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21670   postinstall_cmds='chmod 555 $lib'
21671   # or fails outright, so override atomically:
21672   install_override_mode=555
21673   ;;
21674
21675 interix[3-9]*)
21676   version_type=linux # correct to gnu/linux during the next big refactor
21677   need_lib_prefix=no
21678   need_version=no
21679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21680   soname_spec='${libname}${release}${shared_ext}$major'
21681   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21682   shlibpath_var=LD_LIBRARY_PATH
21683   shlibpath_overrides_runpath=no
21684   hardcode_into_libs=yes
21685   ;;
21686
21687 irix5* | irix6* | nonstopux*)
21688   case $host_os in
21689     nonstopux*) version_type=nonstopux ;;
21690     *)
21691         if test "$lt_cv_prog_gnu_ld" = yes; then
21692                 version_type=linux # correct to gnu/linux during the next big refactor
21693         else
21694                 version_type=irix
21695         fi ;;
21696   esac
21697   need_lib_prefix=no
21698   need_version=no
21699   soname_spec='${libname}${release}${shared_ext}$major'
21700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21701   case $host_os in
21702   irix5* | nonstopux*)
21703     libsuff= shlibsuff=
21704     ;;
21705   *)
21706     case $LD in # libtool.m4 will add one of these switches to LD
21707     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21708       libsuff= shlibsuff= libmagic=32-bit;;
21709     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21710       libsuff=32 shlibsuff=N32 libmagic=N32;;
21711     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21712       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21713     *) libsuff= shlibsuff= libmagic=never-match;;
21714     esac
21715     ;;
21716   esac
21717   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21718   shlibpath_overrides_runpath=no
21719   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21720   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21721   hardcode_into_libs=yes
21722   ;;
21723
21724 # No shared lib support for Linux oldld, aout, or coff.
21725 linux*oldld* | linux*aout* | linux*coff*)
21726   dynamic_linker=no
21727   ;;
21728
21729 # This must be glibc/ELF.
21730 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21731   version_type=linux # correct to gnu/linux during the next big refactor
21732   need_lib_prefix=no
21733   need_version=no
21734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21735   soname_spec='${libname}${release}${shared_ext}$major'
21736   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21737   shlibpath_var=LD_LIBRARY_PATH
21738   shlibpath_overrides_runpath=no
21739
21740   # Some binutils ld are patched to set DT_RUNPATH
21741   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21742   $as_echo_n "(cached) " >&6
21743 else
21744   lt_cv_shlibpath_overrides_runpath=no
21745     save_LDFLAGS=$LDFLAGS
21746     save_libdir=$libdir
21747     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21748          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21749     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21750 /* end confdefs.h.  */
21751
21752 int
21753 main ()
21754 {
21755
21756   ;
21757   return 0;
21758 }
21759 _ACEOF
21760 if ac_fn_cxx_try_link "$LINENO"; then :
21761   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21762   lt_cv_shlibpath_overrides_runpath=yes
21763 fi
21764 fi
21765 rm -f core conftest.err conftest.$ac_objext \
21766     conftest$ac_exeext conftest.$ac_ext
21767     LDFLAGS=$save_LDFLAGS
21768     libdir=$save_libdir
21769
21770 fi
21771
21772   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21773
21774   # This implies no fast_install, which is unacceptable.
21775   # Some rework will be needed to allow for fast_install
21776   # before this can be enabled.
21777   hardcode_into_libs=yes
21778
21779   # Append ld.so.conf contents to the search path
21780   if test -f /etc/ld.so.conf; then
21781     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' ' '`
21782     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21783   fi
21784
21785   # We used to test for /lib/ld.so.1 and disable shared libraries on
21786   # powerpc, because MkLinux only supported shared libraries with the
21787   # GNU dynamic linker.  Since this was broken with cross compilers,
21788   # most powerpc-linux boxes support dynamic linking these days and
21789   # people can always --disable-shared, the test was removed, and we
21790   # assume the GNU/Linux dynamic linker is in use.
21791   dynamic_linker='GNU/Linux ld.so'
21792   ;;
21793
21794 netbsdelf*-gnu)
21795   version_type=linux
21796   need_lib_prefix=no
21797   need_version=no
21798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21799   soname_spec='${libname}${release}${shared_ext}$major'
21800   shlibpath_var=LD_LIBRARY_PATH
21801   shlibpath_overrides_runpath=no
21802   hardcode_into_libs=yes
21803   dynamic_linker='NetBSD ld.elf_so'
21804   ;;
21805
21806 netbsd*)
21807   version_type=sunos
21808   need_lib_prefix=no
21809   need_version=no
21810   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21811     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21812     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21813     dynamic_linker='NetBSD (a.out) ld.so'
21814   else
21815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21816     soname_spec='${libname}${release}${shared_ext}$major'
21817     dynamic_linker='NetBSD ld.elf_so'
21818   fi
21819   shlibpath_var=LD_LIBRARY_PATH
21820   shlibpath_overrides_runpath=yes
21821   hardcode_into_libs=yes
21822   ;;
21823
21824 newsos6)
21825   version_type=linux # correct to gnu/linux during the next big refactor
21826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21827   shlibpath_var=LD_LIBRARY_PATH
21828   shlibpath_overrides_runpath=yes
21829   ;;
21830
21831 *nto* | *qnx*)
21832   version_type=qnx
21833   need_lib_prefix=no
21834   need_version=no
21835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21836   soname_spec='${libname}${release}${shared_ext}$major'
21837   shlibpath_var=LD_LIBRARY_PATH
21838   shlibpath_overrides_runpath=no
21839   hardcode_into_libs=yes
21840   dynamic_linker='ldqnx.so'
21841   ;;
21842
21843 openbsd*)
21844   version_type=sunos
21845   sys_lib_dlsearch_path_spec="/usr/lib"
21846   need_lib_prefix=no
21847   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21848   case $host_os in
21849     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
21850     *)                          need_version=no  ;;
21851   esac
21852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21853   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21854   shlibpath_var=LD_LIBRARY_PATH
21855   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21856     case $host_os in
21857       openbsd2.[89] | openbsd2.[89].*)
21858         shlibpath_overrides_runpath=no
21859         ;;
21860       *)
21861         shlibpath_overrides_runpath=yes
21862         ;;
21863       esac
21864   else
21865     shlibpath_overrides_runpath=yes
21866   fi
21867   ;;
21868
21869 os2*)
21870   libname_spec='$name'
21871   shrext_cmds=".dll"
21872   need_lib_prefix=no
21873   library_names_spec='$libname${shared_ext} $libname.a'
21874   dynamic_linker='OS/2 ld.exe'
21875   shlibpath_var=LIBPATH
21876   ;;
21877
21878 osf3* | osf4* | osf5*)
21879   version_type=osf
21880   need_lib_prefix=no
21881   need_version=no
21882   soname_spec='${libname}${release}${shared_ext}$major'
21883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21884   shlibpath_var=LD_LIBRARY_PATH
21885   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21886   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21887   ;;
21888
21889 rdos*)
21890   dynamic_linker=no
21891   ;;
21892
21893 solaris*)
21894   version_type=linux # correct to gnu/linux during the next big refactor
21895   need_lib_prefix=no
21896   need_version=no
21897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21898   soname_spec='${libname}${release}${shared_ext}$major'
21899   shlibpath_var=LD_LIBRARY_PATH
21900   shlibpath_overrides_runpath=yes
21901   hardcode_into_libs=yes
21902   # ldd complains unless libraries are executable
21903   postinstall_cmds='chmod +x $lib'
21904   ;;
21905
21906 sunos4*)
21907   version_type=sunos
21908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21909   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21910   shlibpath_var=LD_LIBRARY_PATH
21911   shlibpath_overrides_runpath=yes
21912   if test "$with_gnu_ld" = yes; then
21913     need_lib_prefix=no
21914   fi
21915   need_version=yes
21916   ;;
21917
21918 sysv4 | sysv4.3*)
21919   version_type=linux # correct to gnu/linux during the next big refactor
21920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21921   soname_spec='${libname}${release}${shared_ext}$major'
21922   shlibpath_var=LD_LIBRARY_PATH
21923   case $host_vendor in
21924     sni)
21925       shlibpath_overrides_runpath=no
21926       need_lib_prefix=no
21927       runpath_var=LD_RUN_PATH
21928       ;;
21929     siemens)
21930       need_lib_prefix=no
21931       ;;
21932     motorola)
21933       need_lib_prefix=no
21934       need_version=no
21935       shlibpath_overrides_runpath=no
21936       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21937       ;;
21938   esac
21939   ;;
21940
21941 sysv4*MP*)
21942   if test -d /usr/nec ;then
21943     version_type=linux # correct to gnu/linux during the next big refactor
21944     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21945     soname_spec='$libname${shared_ext}.$major'
21946     shlibpath_var=LD_LIBRARY_PATH
21947   fi
21948   ;;
21949
21950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21951   version_type=freebsd-elf
21952   need_lib_prefix=no
21953   need_version=no
21954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21955   soname_spec='${libname}${release}${shared_ext}$major'
21956   shlibpath_var=LD_LIBRARY_PATH
21957   shlibpath_overrides_runpath=yes
21958   hardcode_into_libs=yes
21959   if test "$with_gnu_ld" = yes; then
21960     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21961   else
21962     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21963     case $host_os in
21964       sco3.2v5*)
21965         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21966         ;;
21967     esac
21968   fi
21969   sys_lib_dlsearch_path_spec='/usr/lib'
21970   ;;
21971
21972 tpf*)
21973   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21974   version_type=linux # correct to gnu/linux during the next big refactor
21975   need_lib_prefix=no
21976   need_version=no
21977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21978   shlibpath_var=LD_LIBRARY_PATH
21979   shlibpath_overrides_runpath=no
21980   hardcode_into_libs=yes
21981   ;;
21982
21983 uts4*)
21984   version_type=linux # correct to gnu/linux during the next big refactor
21985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21986   soname_spec='${libname}${release}${shared_ext}$major'
21987   shlibpath_var=LD_LIBRARY_PATH
21988   ;;
21989
21990 *)
21991   dynamic_linker=no
21992   ;;
21993 esac
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21995 $as_echo "$dynamic_linker" >&6; }
21996 test "$dynamic_linker" = no && can_build_shared=no
21997
21998 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21999 if test "$GCC" = yes; then
22000   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22001 fi
22002
22003 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22004   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22005 fi
22006 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22007   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22008 fi
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22048 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22049 hardcode_action_CXX=
22050 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22051    test -n "$runpath_var_CXX" ||
22052    test "X$hardcode_automatic_CXX" = "Xyes" ; then
22053
22054   # We can hardcode non-existent directories.
22055   if test "$hardcode_direct_CXX" != no &&
22056      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22057      # have to relink, otherwise we might link with an installed library
22058      # when we should be linking with a yet-to-be-installed one
22059      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22060      test "$hardcode_minus_L_CXX" != no; then
22061     # Linking always hardcodes the temporary library directory.
22062     hardcode_action_CXX=relink
22063   else
22064     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22065     hardcode_action_CXX=immediate
22066   fi
22067 else
22068   # We cannot hardcode anything, or else we can only hardcode existing
22069   # directories.
22070   hardcode_action_CXX=unsupported
22071 fi
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22073 $as_echo "$hardcode_action_CXX" >&6; }
22074
22075 if test "$hardcode_action_CXX" = relink ||
22076    test "$inherit_rpath_CXX" = yes; then
22077   # Fast installation is not supported
22078   enable_fast_install=no
22079 elif test "$shlibpath_overrides_runpath" = yes ||
22080      test "$enable_shared" = no; then
22081   # Fast installation is not necessary
22082   enable_fast_install=needless
22083 fi
22084
22085
22086
22087
22088
22089
22090
22091   fi # test -n "$compiler"
22092
22093   CC=$lt_save_CC
22094   CFLAGS=$lt_save_CFLAGS
22095   LDCXX=$LD
22096   LD=$lt_save_LD
22097   GCC=$lt_save_GCC
22098   with_gnu_ld=$lt_save_with_gnu_ld
22099   lt_cv_path_LDCXX=$lt_cv_path_LD
22100   lt_cv_path_LD=$lt_save_path_LD
22101   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22102   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22103 fi # test "$_lt_caught_CXX_error" != yes
22104
22105 ac_ext=c
22106 ac_cpp='$CPP $CPPFLAGS'
22107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125         ac_config_commands="$ac_config_commands libtool"
22126
22127
22128
22129
22130 # Only expand once:
22131
22132
22133
22134
22135
22136
22137
22138
22139           LIBC_FATAL_STDERR_=1
22140   export LIBC_FATAL_STDERR_
22141
22142
22143   GNULIB_SOCKET=0;
22144   GNULIB_CONNECT=0;
22145   GNULIB_ACCEPT=0;
22146   GNULIB_BIND=0;
22147   GNULIB_GETPEERNAME=0;
22148   GNULIB_GETSOCKNAME=0;
22149   GNULIB_GETSOCKOPT=0;
22150   GNULIB_LISTEN=0;
22151   GNULIB_RECV=0;
22152   GNULIB_SEND=0;
22153   GNULIB_RECVFROM=0;
22154   GNULIB_SENDTO=0;
22155   GNULIB_SETSOCKOPT=0;
22156   GNULIB_SHUTDOWN=0;
22157   GNULIB_ACCEPT4=0;
22158   HAVE_STRUCT_SOCKADDR_STORAGE=1;
22159   HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
22160
22161   HAVE_SA_FAMILY_T=1;
22162   HAVE_ACCEPT4=1;
22163
22164
22165   :
22166
22167
22168
22169
22170
22171    if test $ac_cv_header_sys_socket_h = no; then
22172                          for ac_header in ws2tcpip.h
22173 do :
22174   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
22175 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
22176   cat >>confdefs.h <<_ACEOF
22177 #define HAVE_WS2TCPIP_H 1
22178 _ACEOF
22179
22180 fi
22181
22182 done
22183
22184    fi
22185
22186
22187
22188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
22189 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
22190 if ${gl_cv_have_include_next+:} false; then :
22191   $as_echo_n "(cached) " >&6
22192 else
22193   rm -rf conftestd1a conftestd1b conftestd2
22194      mkdir conftestd1a conftestd1b conftestd2
22195                                                   cat <<EOF > conftestd1a/conftest.h
22196 #define DEFINED_IN_CONFTESTD1
22197 #include_next <conftest.h>
22198 #ifdef DEFINED_IN_CONFTESTD2
22199 int foo;
22200 #else
22201 #error "include_next doesn't work"
22202 #endif
22203 EOF
22204      cat <<EOF > conftestd1b/conftest.h
22205 #define DEFINED_IN_CONFTESTD1
22206 #include <stdio.h>
22207 #include_next <conftest.h>
22208 #ifdef DEFINED_IN_CONFTESTD2
22209 int foo;
22210 #else
22211 #error "include_next doesn't work"
22212 #endif
22213 EOF
22214      cat <<EOF > conftestd2/conftest.h
22215 #ifndef DEFINED_IN_CONFTESTD1
22216 #error "include_next test doesn't work"
22217 #endif
22218 #define DEFINED_IN_CONFTESTD2
22219 EOF
22220      gl_save_CPPFLAGS="$CPPFLAGS"
22221      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
22222      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22223 /* end confdefs.h.  */
22224 #include <conftest.h>
22225 _ACEOF
22226 if ac_fn_c_try_compile "$LINENO"; then :
22227   gl_cv_have_include_next=yes
22228 else
22229   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
22230         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22231 /* end confdefs.h.  */
22232 #include <conftest.h>
22233 _ACEOF
22234 if ac_fn_c_try_compile "$LINENO"; then :
22235   gl_cv_have_include_next=buggy
22236 else
22237   gl_cv_have_include_next=no
22238 fi
22239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22240
22241 fi
22242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22243      CPPFLAGS="$gl_save_CPPFLAGS"
22244      rm -rf conftestd1a conftestd1b conftestd2
22245
22246 fi
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
22248 $as_echo "$gl_cv_have_include_next" >&6; }
22249   PRAGMA_SYSTEM_HEADER=
22250   if test $gl_cv_have_include_next = yes; then
22251     INCLUDE_NEXT=include_next
22252     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
22253     if test -n "$GCC"; then
22254       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
22255     fi
22256   else
22257     if test $gl_cv_have_include_next = buggy; then
22258       INCLUDE_NEXT=include
22259       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
22260     else
22261       INCLUDE_NEXT=include
22262       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
22263     fi
22264   fi
22265
22266
22267
22268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
22269 $as_echo_n "checking whether system header files limit the line length... " >&6; }
22270 if ${gl_cv_pragma_columns+:} false; then :
22271   $as_echo_n "(cached) " >&6
22272 else
22273        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22274 /* end confdefs.h.  */
22275
22276 #ifdef __TANDEM
22277 choke me
22278 #endif
22279
22280 _ACEOF
22281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22282   $EGREP "choke me" >/dev/null 2>&1; then :
22283   gl_cv_pragma_columns=yes
22284 else
22285   gl_cv_pragma_columns=no
22286 fi
22287 rm -f conftest*
22288
22289
22290 fi
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
22292 $as_echo "$gl_cv_pragma_columns" >&6; }
22293   if test $gl_cv_pragma_columns = yes; then
22294     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
22295   else
22296     PRAGMA_COLUMNS=
22297   fi
22298
22299
22300
22301
22302
22303
22304
22305         case "$host_os" in
22306     osf*)
22307
22308 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
22309
22310       ;;
22311   esac
22312
22313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
22314 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
22315 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
22316   $as_echo_n "(cached) " >&6
22317 else
22318
22319       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22320 /* end confdefs.h.  */
22321 #include <sys/socket.h>
22322 int
22323 main ()
22324 {
22325
22326   ;
22327   return 0;
22328 }
22329 _ACEOF
22330 if ac_fn_c_try_compile "$LINENO"; then :
22331   gl_cv_header_sys_socket_h_selfcontained=yes
22332 else
22333   gl_cv_header_sys_socket_h_selfcontained=no
22334 fi
22335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22336
22337 fi
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
22339 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
22340   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
22341             for ac_func in shutdown
22342 do :
22343   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
22344 if test "x$ac_cv_func_shutdown" = xyes; then :
22345   cat >>confdefs.h <<_ACEOF
22346 #define HAVE_SHUTDOWN 1
22347 _ACEOF
22348
22349 fi
22350 done
22351
22352     if test $ac_cv_func_shutdown = yes; then
22353       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
22354 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
22355 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
22356   $as_echo_n "(cached) " >&6
22357 else
22358
22359           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22360 /* end confdefs.h.  */
22361 #include <sys/socket.h>
22362 int
22363 main ()
22364 {
22365 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
22366   ;
22367   return 0;
22368 }
22369 _ACEOF
22370 if ac_fn_c_try_compile "$LINENO"; then :
22371   gl_cv_header_sys_socket_h_shut=yes
22372 else
22373   gl_cv_header_sys_socket_h_shut=no
22374 fi
22375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22376
22377 fi
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
22379 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
22380       if test $gl_cv_header_sys_socket_h_shut = no; then
22381         SYS_SOCKET_H='sys/socket.h'
22382       fi
22383     fi
22384   fi
22385   # We need to check for ws2tcpip.h now.
22386
22387
22388
22389
22390
22391
22392
22393
22394   :
22395
22396
22397
22398
22399
22400
22401
22402
22403      if test $gl_cv_have_include_next = yes; then
22404        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
22405      else
22406        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
22407 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
22408 if ${gl_cv_next_sys_socket_h+:} false; then :
22409   $as_echo_n "(cached) " >&6
22410 else
22411
22412              if test $ac_cv_header_sys_socket_h = yes; then
22413
22414
22415                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22416 /* end confdefs.h.  */
22417 #include <sys/socket.h>
22418
22419 _ACEOF
22420                                                                                                                         case "$host_os" in
22421                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
22422                  *)    gl_absname_cpp="$ac_cpp" ;;
22423                esac
22424
22425                case "$host_os" in
22426                  mingw*)
22427                                                                                                                                      gl_dirsep_regex='[/\\]'
22428                    ;;
22429                  *)
22430                    gl_dirsep_regex='\/'
22431                    ;;
22432                esac
22433                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22434
22435                gl_header_literal_regex=`echo 'sys/socket.h' \
22436                                         | sed -e "$gl_make_literal_regex_sed"`
22437                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22438                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22439                    s|^/[^/]|//&|
22440                    p
22441                    q
22442                  }'
22443                                                             gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22444                       sed -n "$gl_absolute_header_sed"`'"'
22445           else
22446                gl_cv_next_sys_socket_h='<'sys/socket.h'>'
22447              fi
22448
22449
22450 fi
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
22452 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
22453      fi
22454      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
22455
22456      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22457        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22458        gl_next_as_first_directive='<'sys/socket.h'>'
22459      else
22460        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22461        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
22462      fi
22463      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
22464
22465
22466
22467
22468   if test $ac_cv_header_sys_socket_h = yes; then
22469     HAVE_SYS_SOCKET_H=1
22470     HAVE_WS2TCPIP_H=0
22471   else
22472     HAVE_SYS_SOCKET_H=0
22473     if test $ac_cv_header_ws2tcpip_h = yes; then
22474       HAVE_WS2TCPIP_H=1
22475     else
22476       HAVE_WS2TCPIP_H=0
22477     fi
22478   fi
22479
22480
22481
22482   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
22483   /* sys/types.h is not needed according to POSIX, but the
22484      sys/socket.h in i386-unknown-freebsd4.10 and
22485      powerpc-apple-darwin5.5 required it. */
22486 #include <sys/types.h>
22487 #ifdef HAVE_SYS_SOCKET_H
22488 #include <sys/socket.h>
22489 #endif
22490 #ifdef HAVE_WS2TCPIP_H
22491 #include <ws2tcpip.h>
22492 #endif
22493
22494 "
22495 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
22496
22497 cat >>confdefs.h <<_ACEOF
22498 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
22499 _ACEOF
22500
22501
22502 fi
22503 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
22504   /* sys/types.h is not needed according to POSIX, but the
22505      sys/socket.h in i386-unknown-freebsd4.10 and
22506      powerpc-apple-darwin5.5 required it. */
22507 #include <sys/types.h>
22508 #ifdef HAVE_SYS_SOCKET_H
22509 #include <sys/socket.h>
22510 #endif
22511 #ifdef HAVE_WS2TCPIP_H
22512 #include <ws2tcpip.h>
22513 #endif
22514
22515 "
22516 if test "x$ac_cv_type_sa_family_t" = xyes; then :
22517
22518 cat >>confdefs.h <<_ACEOF
22519 #define HAVE_SA_FAMILY_T 1
22520 _ACEOF
22521
22522
22523 fi
22524
22525   if test $ac_cv_type_struct_sockaddr_storage = no; then
22526     HAVE_STRUCT_SOCKADDR_STORAGE=0
22527   fi
22528   if test $ac_cv_type_sa_family_t = no; then
22529     HAVE_SA_FAMILY_T=0
22530   fi
22531   if test $ac_cv_type_struct_sockaddr_storage != no; then
22532     ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
22533        #ifdef HAVE_SYS_SOCKET_H
22534        #include <sys/socket.h>
22535        #endif
22536        #ifdef HAVE_WS2TCPIP_H
22537        #include <ws2tcpip.h>
22538        #endif
22539
22540 "
22541 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
22542
22543 cat >>confdefs.h <<_ACEOF
22544 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
22545 _ACEOF
22546
22547
22548 else
22549   HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
22550 fi
22551
22552   fi
22553   if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
22554      || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
22555     SYS_SOCKET_H='sys/socket.h'
22556   fi
22557
22558
22559
22560
22561   :
22562
22563
22564
22565
22566
22567   if test $ac_cv_header_sys_socket_h != yes; then
22568                     for ac_header in winsock2.h
22569 do :
22570   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22571 if test "x$ac_cv_header_winsock2_h" = xyes; then :
22572   cat >>confdefs.h <<_ACEOF
22573 #define HAVE_WINSOCK2_H 1
22574 _ACEOF
22575
22576 fi
22577
22578 done
22579
22580   fi
22581   if test "$ac_cv_header_winsock2_h" = yes; then
22582     HAVE_WINSOCK2_H=1
22583     UNISTD_H_HAVE_WINSOCK2_H=1
22584     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22585   else
22586     HAVE_WINSOCK2_H=0
22587   fi
22588
22589
22590
22591
22592     for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
22593     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22595 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22596 if eval \${$as_gl_Symbol+:} false; then :
22597   $as_echo_n "(cached) " >&6
22598 else
22599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22600 /* end confdefs.h.  */
22601
22602 /* Some systems require prerequisite headers.  */
22603 #include <sys/types.h>
22604 #include <sys/socket.h>
22605
22606 int
22607 main ()
22608 {
22609 #undef $gl_func
22610   (void) $gl_func;
22611   ;
22612   return 0;
22613 }
22614 _ACEOF
22615 if ac_fn_c_try_compile "$LINENO"; then :
22616   eval "$as_gl_Symbol=yes"
22617 else
22618   eval "$as_gl_Symbol=no"
22619 fi
22620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22621 fi
22622 eval ac_res=\$$as_gl_Symbol
22623                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22624 $as_echo "$ac_res" >&6; }
22625     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22626   cat >>confdefs.h <<_ACEOF
22627 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22628 _ACEOF
22629
22630                      eval ac_cv_have_decl_$gl_func=yes
22631 fi
22632       done
22633
22634
22635 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22636 if test "x$ac_cv_type_size_t" = xyes; then :
22637
22638 else
22639
22640 cat >>confdefs.h <<_ACEOF
22641 #define size_t unsigned int
22642 _ACEOF
22643
22644 fi
22645
22646 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22647 # for constant arguments.  Useless!
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
22649 $as_echo_n "checking for working alloca.h... " >&6; }
22650 if ${ac_cv_working_alloca_h+:} false; then :
22651   $as_echo_n "(cached) " >&6
22652 else
22653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22654 /* end confdefs.h.  */
22655 #include <alloca.h>
22656 int
22657 main ()
22658 {
22659 char *p = (char *) alloca (2 * sizeof (int));
22660                           if (p) return 0;
22661   ;
22662   return 0;
22663 }
22664 _ACEOF
22665 if ac_fn_c_try_link "$LINENO"; then :
22666   ac_cv_working_alloca_h=yes
22667 else
22668   ac_cv_working_alloca_h=no
22669 fi
22670 rm -f core conftest.err conftest.$ac_objext \
22671     conftest$ac_exeext conftest.$ac_ext
22672 fi
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
22674 $as_echo "$ac_cv_working_alloca_h" >&6; }
22675 if test $ac_cv_working_alloca_h = yes; then
22676
22677 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
22678
22679 fi
22680
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
22682 $as_echo_n "checking for alloca... " >&6; }
22683 if ${ac_cv_func_alloca_works+:} false; then :
22684   $as_echo_n "(cached) " >&6
22685 else
22686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22687 /* end confdefs.h.  */
22688 #ifdef __GNUC__
22689 # define alloca __builtin_alloca
22690 #else
22691 # ifdef _MSC_VER
22692 #  include <malloc.h>
22693 #  define alloca _alloca
22694 # else
22695 #  ifdef HAVE_ALLOCA_H
22696 #   include <alloca.h>
22697 #  else
22698 #   ifdef _AIX
22699  #pragma alloca
22700 #   else
22701 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22702 void *alloca (size_t);
22703 #    endif
22704 #   endif
22705 #  endif
22706 # endif
22707 #endif
22708
22709 int
22710 main ()
22711 {
22712 char *p = (char *) alloca (1);
22713                                     if (p) return 0;
22714   ;
22715   return 0;
22716 }
22717 _ACEOF
22718 if ac_fn_c_try_link "$LINENO"; then :
22719   ac_cv_func_alloca_works=yes
22720 else
22721   ac_cv_func_alloca_works=no
22722 fi
22723 rm -f core conftest.err conftest.$ac_objext \
22724     conftest$ac_exeext conftest.$ac_ext
22725 fi
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
22727 $as_echo "$ac_cv_func_alloca_works" >&6; }
22728
22729 if test $ac_cv_func_alloca_works = yes; then
22730
22731 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22732
22733 else
22734   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22735 # that cause trouble.  Some versions do not even contain alloca or
22736 # contain a buggy version.  If you still want to use their alloca,
22737 # use ar to extract alloca.o from them instead of compiling alloca.c.
22738
22739
22740
22741
22742
22743 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
22744
22745 $as_echo "#define C_ALLOCA 1" >>confdefs.h
22746
22747
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
22749 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
22750 if ${ac_cv_os_cray+:} false; then :
22751   $as_echo_n "(cached) " >&6
22752 else
22753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22754 /* end confdefs.h.  */
22755 #if defined CRAY && ! defined CRAY2
22756 webecray
22757 #else
22758 wenotbecray
22759 #endif
22760
22761 _ACEOF
22762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22763   $EGREP "webecray" >/dev/null 2>&1; then :
22764   ac_cv_os_cray=yes
22765 else
22766   ac_cv_os_cray=no
22767 fi
22768 rm -f conftest*
22769
22770 fi
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
22772 $as_echo "$ac_cv_os_cray" >&6; }
22773 if test $ac_cv_os_cray = yes; then
22774   for ac_func in _getb67 GETB67 getb67; do
22775     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22776 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22777 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22778
22779 cat >>confdefs.h <<_ACEOF
22780 #define CRAY_STACKSEG_END $ac_func
22781 _ACEOF
22782
22783     break
22784 fi
22785
22786   done
22787 fi
22788
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
22790 $as_echo_n "checking stack direction for C alloca... " >&6; }
22791 if ${ac_cv_c_stack_direction+:} false; then :
22792   $as_echo_n "(cached) " >&6
22793 else
22794   if test "$cross_compiling" = yes; then :
22795   ac_cv_c_stack_direction=0
22796 else
22797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22798 /* end confdefs.h.  */
22799 $ac_includes_default
22800 int
22801 find_stack_direction (int *addr, int depth)
22802 {
22803   int dir, dummy = 0;
22804   if (! addr)
22805     addr = &dummy;
22806   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
22807   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
22808   return dir + dummy;
22809 }
22810
22811 int
22812 main (int argc, char **argv)
22813 {
22814   return find_stack_direction (0, argc + !argv + 20) < 0;
22815 }
22816 _ACEOF
22817 if ac_fn_c_try_run "$LINENO"; then :
22818   ac_cv_c_stack_direction=1
22819 else
22820   ac_cv_c_stack_direction=-1
22821 fi
22822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22823   conftest.$ac_objext conftest.beam conftest.$ac_ext
22824 fi
22825
22826 fi
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
22828 $as_echo "$ac_cv_c_stack_direction" >&6; }
22829 cat >>confdefs.h <<_ACEOF
22830 #define STACK_DIRECTION $ac_cv_c_stack_direction
22831 _ACEOF
22832
22833
22834 fi
22835
22836
22837   GNULIB_INET_NTOP=0;
22838   GNULIB_INET_PTON=0;
22839     HAVE_DECL_INET_NTOP=1;
22840   HAVE_DECL_INET_PTON=1;
22841   REPLACE_INET_NTOP=0;
22842   REPLACE_INET_PTON=0;
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856   :
22857
22858
22859
22860
22861
22862   if test $ac_cv_header_features_h = yes; then
22863     HAVE_FEATURES_H=1
22864   else
22865     HAVE_FEATURES_H=0
22866   fi
22867
22868
22869
22870
22871
22872
22873   for ac_func in $gl_func_list
22874 do :
22875   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22876 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22877 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22878   cat >>confdefs.h <<_ACEOF
22879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22880 _ACEOF
22881
22882 fi
22883 done
22884
22885
22886
22887
22888
22889
22890
22891   :
22892
22893
22894
22895
22896
22897   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
22898     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
22899
22900 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
22901
22902   else
22903     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
22904   fi
22905
22906
22907
22908
22909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
22910 $as_echo_n "checking for complete errno.h... " >&6; }
22911 if ${gl_cv_header_errno_h_complete+:} false; then :
22912   $as_echo_n "(cached) " >&6
22913 else
22914
22915     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22916 /* end confdefs.h.  */
22917
22918 #include <errno.h>
22919 #if !defined ENOMSG
22920 booboo
22921 #endif
22922 #if !defined EIDRM
22923 booboo
22924 #endif
22925 #if !defined ENOLINK
22926 booboo
22927 #endif
22928 #if !defined EPROTO
22929 booboo
22930 #endif
22931 #if !defined EMULTIHOP
22932 booboo
22933 #endif
22934 #if !defined EBADMSG
22935 booboo
22936 #endif
22937 #if !defined EOVERFLOW
22938 booboo
22939 #endif
22940 #if !defined ENOTSUP
22941 booboo
22942 #endif
22943 #if !defined ENETRESET
22944 booboo
22945 #endif
22946 #if !defined ECONNABORTED
22947 booboo
22948 #endif
22949 #if !defined ESTALE
22950 booboo
22951 #endif
22952 #if !defined EDQUOT
22953 booboo
22954 #endif
22955 #if !defined ECANCELED
22956 booboo
22957 #endif
22958
22959 _ACEOF
22960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22961   $EGREP "booboo" >/dev/null 2>&1; then :
22962   gl_cv_header_errno_h_complete=no
22963 else
22964   gl_cv_header_errno_h_complete=yes
22965 fi
22966 rm -f conftest*
22967
22968
22969 fi
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
22971 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
22972   if test $gl_cv_header_errno_h_complete = yes; then
22973     ERRNO_H=''
22974   else
22975
22976
22977
22978
22979
22980
22981
22982
22983      if test $gl_cv_have_include_next = yes; then
22984        gl_cv_next_errno_h='<'errno.h'>'
22985      else
22986        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
22987 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
22988 if ${gl_cv_next_errno_h+:} false; then :
22989   $as_echo_n "(cached) " >&6
22990 else
22991
22992                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22993 /* end confdefs.h.  */
22994 #include <errno.h>
22995
22996 _ACEOF
22997                                                                                                                         case "$host_os" in
22998                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
22999                  *)    gl_absname_cpp="$ac_cpp" ;;
23000                esac
23001
23002                case "$host_os" in
23003                  mingw*)
23004                                                                                                                                      gl_dirsep_regex='[/\\]'
23005                    ;;
23006                  *)
23007                    gl_dirsep_regex='\/'
23008                    ;;
23009                esac
23010                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23011
23012                gl_header_literal_regex=`echo 'errno.h' \
23013                                         | sed -e "$gl_make_literal_regex_sed"`
23014                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23015                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23016                    s|^/[^/]|//&|
23017                    p
23018                    q
23019                  }'
23020                                                             gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23021                       sed -n "$gl_absolute_header_sed"`'"'
23022
23023
23024 fi
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
23026 $as_echo "$gl_cv_next_errno_h" >&6; }
23027      fi
23028      NEXT_ERRNO_H=$gl_cv_next_errno_h
23029
23030      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23031        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23032        gl_next_as_first_directive='<'errno.h'>'
23033      else
23034        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23035        gl_next_as_first_directive=$gl_cv_next_errno_h
23036      fi
23037      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
23038
23039
23040
23041
23042     ERRNO_H='errno.h'
23043   fi
23044
23045    if test -n "$ERRNO_H"; then
23046   GL_GENERATE_ERRNO_H_TRUE=
23047   GL_GENERATE_ERRNO_H_FALSE='#'
23048 else
23049   GL_GENERATE_ERRNO_H_TRUE='#'
23050   GL_GENERATE_ERRNO_H_FALSE=
23051 fi
23052
23053
23054   if test -n "$ERRNO_H"; then
23055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
23056 $as_echo_n "checking for EMULTIHOP value... " >&6; }
23057 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
23058   $as_echo_n "(cached) " >&6
23059 else
23060
23061       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23062 /* end confdefs.h.  */
23063
23064 #include <errno.h>
23065 #ifdef EMULTIHOP
23066 yes
23067 #endif
23068
23069 _ACEOF
23070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23071   $EGREP "yes" >/dev/null 2>&1; then :
23072   gl_cv_header_errno_h_EMULTIHOP=yes
23073 else
23074   gl_cv_header_errno_h_EMULTIHOP=no
23075 fi
23076 rm -f conftest*
23077
23078       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
23079         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23080 /* end confdefs.h.  */
23081
23082 #define _XOPEN_SOURCE_EXTENDED 1
23083 #include <errno.h>
23084 #ifdef EMULTIHOP
23085 yes
23086 #endif
23087
23088 _ACEOF
23089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23090   $EGREP "yes" >/dev/null 2>&1; then :
23091   gl_cv_header_errno_h_EMULTIHOP=hidden
23092 fi
23093 rm -f conftest*
23094
23095         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
23096                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
23097 #define _XOPEN_SOURCE_EXTENDED 1
23098 #include <errno.h>
23099 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
23100 #include <stdio.h>
23101 #include <stdlib.h>
23102 "; then :
23103
23104 fi
23105
23106         fi
23107       fi
23108
23109 fi
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
23111 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
23112     case $gl_cv_header_errno_h_EMULTIHOP in
23113       yes | no)
23114         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
23115         ;;
23116       *)
23117         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
23118         ;;
23119     esac
23120
23121
23122   fi
23123
23124
23125   if test -n "$ERRNO_H"; then
23126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
23127 $as_echo_n "checking for ENOLINK value... " >&6; }
23128 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
23129   $as_echo_n "(cached) " >&6
23130 else
23131
23132       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23133 /* end confdefs.h.  */
23134
23135 #include <errno.h>
23136 #ifdef ENOLINK
23137 yes
23138 #endif
23139
23140 _ACEOF
23141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23142   $EGREP "yes" >/dev/null 2>&1; then :
23143   gl_cv_header_errno_h_ENOLINK=yes
23144 else
23145   gl_cv_header_errno_h_ENOLINK=no
23146 fi
23147 rm -f conftest*
23148
23149       if test $gl_cv_header_errno_h_ENOLINK = no; then
23150         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23151 /* end confdefs.h.  */
23152
23153 #define _XOPEN_SOURCE_EXTENDED 1
23154 #include <errno.h>
23155 #ifdef ENOLINK
23156 yes
23157 #endif
23158
23159 _ACEOF
23160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23161   $EGREP "yes" >/dev/null 2>&1; then :
23162   gl_cv_header_errno_h_ENOLINK=hidden
23163 fi
23164 rm -f conftest*
23165
23166         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
23167                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
23168 #define _XOPEN_SOURCE_EXTENDED 1
23169 #include <errno.h>
23170 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
23171 #include <stdio.h>
23172 #include <stdlib.h>
23173 "; then :
23174
23175 fi
23176
23177         fi
23178       fi
23179
23180 fi
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
23182 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
23183     case $gl_cv_header_errno_h_ENOLINK in
23184       yes | no)
23185         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
23186         ;;
23187       *)
23188         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
23189         ;;
23190     esac
23191
23192
23193   fi
23194
23195
23196   if test -n "$ERRNO_H"; then
23197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
23198 $as_echo_n "checking for EOVERFLOW value... " >&6; }
23199 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
23200   $as_echo_n "(cached) " >&6
23201 else
23202
23203       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23204 /* end confdefs.h.  */
23205
23206 #include <errno.h>
23207 #ifdef EOVERFLOW
23208 yes
23209 #endif
23210
23211 _ACEOF
23212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23213   $EGREP "yes" >/dev/null 2>&1; then :
23214   gl_cv_header_errno_h_EOVERFLOW=yes
23215 else
23216   gl_cv_header_errno_h_EOVERFLOW=no
23217 fi
23218 rm -f conftest*
23219
23220       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
23221         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23222 /* end confdefs.h.  */
23223
23224 #define _XOPEN_SOURCE_EXTENDED 1
23225 #include <errno.h>
23226 #ifdef EOVERFLOW
23227 yes
23228 #endif
23229
23230 _ACEOF
23231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23232   $EGREP "yes" >/dev/null 2>&1; then :
23233   gl_cv_header_errno_h_EOVERFLOW=hidden
23234 fi
23235 rm -f conftest*
23236
23237         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
23238                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
23239 #define _XOPEN_SOURCE_EXTENDED 1
23240 #include <errno.h>
23241 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
23242 #include <stdio.h>
23243 #include <stdlib.h>
23244 "; then :
23245
23246 fi
23247
23248         fi
23249       fi
23250
23251 fi
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
23253 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
23254     case $gl_cv_header_errno_h_EOVERFLOW in
23255       yes | no)
23256         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
23257         ;;
23258       *)
23259         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
23260         ;;
23261     esac
23262
23263
23264   fi
23265
23266
23267 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
23268 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
23269   ac_have_decl=1
23270 else
23271   ac_have_decl=0
23272 fi
23273
23274 cat >>confdefs.h <<_ACEOF
23275 #define HAVE_DECL_STRERROR_R $ac_have_decl
23276 _ACEOF
23277
23278 for ac_func in strerror_r
23279 do :
23280   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
23281 if test "x$ac_cv_func_strerror_r" = xyes; then :
23282   cat >>confdefs.h <<_ACEOF
23283 #define HAVE_STRERROR_R 1
23284 _ACEOF
23285
23286 fi
23287 done
23288
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
23290 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
23291 if ${ac_cv_func_strerror_r_char_p+:} false; then :
23292   $as_echo_n "(cached) " >&6
23293 else
23294
23295     ac_cv_func_strerror_r_char_p=no
23296     if test $ac_cv_have_decl_strerror_r = yes; then
23297       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23298 /* end confdefs.h.  */
23299 $ac_includes_default
23300 int
23301 main ()
23302 {
23303
23304           char buf[100];
23305           char x = *strerror_r (0, buf, sizeof buf);
23306           char *p = strerror_r (0, buf, sizeof buf);
23307           return !p || x;
23308
23309   ;
23310   return 0;
23311 }
23312 _ACEOF
23313 if ac_fn_c_try_compile "$LINENO"; then :
23314   ac_cv_func_strerror_r_char_p=yes
23315 fi
23316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23317     else
23318       # strerror_r is not declared.  Choose between
23319       # systems that have relatively inaccessible declarations for the
23320       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
23321       # former has a strerror_r that returns char*, while the latter
23322       # has a strerror_r that returns `int'.
23323       # This test should segfault on the DEC system.
23324       if test "$cross_compiling" = yes; then :
23325   :
23326 else
23327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23328 /* end confdefs.h.  */
23329 $ac_includes_default
23330         extern char *strerror_r ();
23331 int
23332 main ()
23333 {
23334 char buf[100];
23335           char x = *strerror_r (0, buf, sizeof buf);
23336           return ! isalpha (x);
23337   ;
23338   return 0;
23339 }
23340 _ACEOF
23341 if ac_fn_c_try_run "$LINENO"; then :
23342   ac_cv_func_strerror_r_char_p=yes
23343 fi
23344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23345   conftest.$ac_objext conftest.beam conftest.$ac_ext
23346 fi
23347
23348     fi
23349
23350 fi
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
23352 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
23353 if test $ac_cv_func_strerror_r_char_p = yes; then
23354
23355 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
23356
23357 fi
23358
23359
23360   XGETTEXT_EXTRA_OPTIONS=
23361
23362
23363   GNULIB_DPRINTF=0;
23364   GNULIB_FCLOSE=0;
23365   GNULIB_FDOPEN=0;
23366   GNULIB_FFLUSH=0;
23367   GNULIB_FGETC=0;
23368   GNULIB_FGETS=0;
23369   GNULIB_FOPEN=0;
23370   GNULIB_FPRINTF=0;
23371   GNULIB_FPRINTF_POSIX=0;
23372   GNULIB_FPURGE=0;
23373   GNULIB_FPUTC=0;
23374   GNULIB_FPUTS=0;
23375   GNULIB_FREAD=0;
23376   GNULIB_FREOPEN=0;
23377   GNULIB_FSCANF=0;
23378   GNULIB_FSEEK=0;
23379   GNULIB_FSEEKO=0;
23380   GNULIB_FTELL=0;
23381   GNULIB_FTELLO=0;
23382   GNULIB_FWRITE=0;
23383   GNULIB_GETC=0;
23384   GNULIB_GETCHAR=0;
23385   GNULIB_GETDELIM=0;
23386   GNULIB_GETLINE=0;
23387   GNULIB_GETS=0;
23388   GNULIB_OBSTACK_PRINTF=0;
23389   GNULIB_OBSTACK_PRINTF_POSIX=0;
23390   GNULIB_PCLOSE=0;
23391   GNULIB_PERROR=0;
23392   GNULIB_POPEN=0;
23393   GNULIB_PRINTF=0;
23394   GNULIB_PRINTF_POSIX=0;
23395   GNULIB_PUTC=0;
23396   GNULIB_PUTCHAR=0;
23397   GNULIB_PUTS=0;
23398   GNULIB_REMOVE=0;
23399   GNULIB_RENAME=0;
23400   GNULIB_RENAMEAT=0;
23401   GNULIB_SCANF=0;
23402   GNULIB_SNPRINTF=0;
23403   GNULIB_SPRINTF_POSIX=0;
23404   GNULIB_STDIO_H_NONBLOCKING=0;
23405   GNULIB_STDIO_H_SIGPIPE=0;
23406   GNULIB_TMPFILE=0;
23407   GNULIB_VASPRINTF=0;
23408   GNULIB_VFSCANF=0;
23409   GNULIB_VSCANF=0;
23410   GNULIB_VDPRINTF=0;
23411   GNULIB_VFPRINTF=0;
23412   GNULIB_VFPRINTF_POSIX=0;
23413   GNULIB_VPRINTF=0;
23414   GNULIB_VPRINTF_POSIX=0;
23415   GNULIB_VSNPRINTF=0;
23416   GNULIB_VSPRINTF_POSIX=0;
23417     HAVE_DECL_FPURGE=1;
23418   HAVE_DECL_FSEEKO=1;
23419   HAVE_DECL_FTELLO=1;
23420   HAVE_DECL_GETDELIM=1;
23421   HAVE_DECL_GETLINE=1;
23422   HAVE_DECL_OBSTACK_PRINTF=1;
23423   HAVE_DECL_SNPRINTF=1;
23424   HAVE_DECL_VSNPRINTF=1;
23425   HAVE_DPRINTF=1;
23426   HAVE_FSEEKO=1;
23427   HAVE_FTELLO=1;
23428   HAVE_PCLOSE=1;
23429   HAVE_POPEN=1;
23430   HAVE_RENAMEAT=1;
23431   HAVE_VASPRINTF=1;
23432   HAVE_VDPRINTF=1;
23433   REPLACE_DPRINTF=0;
23434   REPLACE_FCLOSE=0;
23435   REPLACE_FDOPEN=0;
23436   REPLACE_FFLUSH=0;
23437   REPLACE_FOPEN=0;
23438   REPLACE_FPRINTF=0;
23439   REPLACE_FPURGE=0;
23440   REPLACE_FREOPEN=0;
23441   REPLACE_FSEEK=0;
23442   REPLACE_FSEEKO=0;
23443   REPLACE_FTELL=0;
23444   REPLACE_FTELLO=0;
23445   REPLACE_GETDELIM=0;
23446   REPLACE_GETLINE=0;
23447   REPLACE_OBSTACK_PRINTF=0;
23448   REPLACE_PERROR=0;
23449   REPLACE_POPEN=0;
23450   REPLACE_PRINTF=0;
23451   REPLACE_REMOVE=0;
23452   REPLACE_RENAME=0;
23453   REPLACE_RENAMEAT=0;
23454   REPLACE_SNPRINTF=0;
23455   REPLACE_SPRINTF=0;
23456   REPLACE_STDIO_READ_FUNCS=0;
23457   REPLACE_STDIO_WRITE_FUNCS=0;
23458   REPLACE_TMPFILE=0;
23459   REPLACE_VASPRINTF=0;
23460   REPLACE_VDPRINTF=0;
23461   REPLACE_VFPRINTF=0;
23462   REPLACE_VPRINTF=0;
23463   REPLACE_VSNPRINTF=0;
23464   REPLACE_VSPRINTF=0;
23465
23466
23467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
23468 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
23469 if ${gl_cv_var_stdin_large_offset+:} false; then :
23470   $as_echo_n "(cached) " >&6
23471 else
23472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23473 /* end confdefs.h.  */
23474 #include <stdio.h>
23475 int
23476 main ()
23477 {
23478 #if defined __SL64 && defined __SCLE /* cygwin */
23479   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
23480      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
23481      it is easier to do a version check than building a runtime test.  */
23482 # include <cygwin/version.h>
23483 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
23484   choke me
23485 # endif
23486 #endif
23487   ;
23488   return 0;
23489 }
23490 _ACEOF
23491 if ac_fn_c_try_link "$LINENO"; then :
23492   gl_cv_var_stdin_large_offset=yes
23493 else
23494   gl_cv_var_stdin_large_offset=no
23495 fi
23496 rm -f core conftest.err conftest.$ac_objext \
23497     conftest$ac_exeext conftest.$ac_ext
23498 fi
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
23500 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
23501
23502
23503       ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
23504 if test "x$ac_cv_have_decl_fseeko" = xyes; then :
23505   ac_have_decl=1
23506 else
23507   ac_have_decl=0
23508 fi
23509
23510 cat >>confdefs.h <<_ACEOF
23511 #define HAVE_DECL_FSEEKO $ac_have_decl
23512 _ACEOF
23513
23514
23515
23516
23517
23518
23519
23520
23521
23522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
23523 $as_echo_n "checking for fseeko... " >&6; }
23524 if ${gl_cv_func_fseeko+:} false; then :
23525   $as_echo_n "(cached) " >&6
23526 else
23527
23528       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23529 /* end confdefs.h.  */
23530 #include <stdio.h>
23531
23532 int
23533 main ()
23534 {
23535 fseeko (stdin, 0, 0);
23536   ;
23537   return 0;
23538 }
23539 _ACEOF
23540 if ac_fn_c_try_link "$LINENO"; then :
23541   gl_cv_func_fseeko=yes
23542 else
23543   gl_cv_func_fseeko=no
23544 fi
23545 rm -f core conftest.err conftest.$ac_objext \
23546     conftest$ac_exeext conftest.$ac_ext
23547
23548 fi
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
23550 $as_echo "$gl_cv_func_fseeko" >&6; }
23551
23552
23553   :
23554
23555
23556
23557
23558
23559   if test $ac_cv_have_decl_fseeko = no; then
23560     HAVE_DECL_FSEEKO=0
23561   fi
23562
23563   if test $gl_cv_func_fseeko = no; then
23564     HAVE_FSEEKO=0
23565   else
23566     if test $gl_cv_var_stdin_large_offset = no; then
23567       REPLACE_FSEEKO=1
23568     fi
23569
23570   fi
23571
23572
23573      GNULIB_FCHMODAT=0;
23574   GNULIB_FSTAT=0;
23575   GNULIB_FSTATAT=0;
23576   GNULIB_FUTIMENS=0;
23577   GNULIB_LCHMOD=0;
23578   GNULIB_LSTAT=0;
23579   GNULIB_MKDIRAT=0;
23580   GNULIB_MKFIFO=0;
23581   GNULIB_MKFIFOAT=0;
23582   GNULIB_MKNOD=0;
23583   GNULIB_MKNODAT=0;
23584   GNULIB_STAT=0;
23585   GNULIB_UTIMENSAT=0;
23586     HAVE_FCHMODAT=1;
23587   HAVE_FSTATAT=1;
23588   HAVE_FUTIMENS=1;
23589   HAVE_LCHMOD=1;
23590   HAVE_LSTAT=1;
23591   HAVE_MKDIRAT=1;
23592   HAVE_MKFIFO=1;
23593   HAVE_MKFIFOAT=1;
23594   HAVE_MKNOD=1;
23595   HAVE_MKNODAT=1;
23596   HAVE_UTIMENSAT=1;
23597   REPLACE_FSTAT=0;
23598   REPLACE_FSTATAT=0;
23599   REPLACE_FUTIMENS=0;
23600   REPLACE_LSTAT=0;
23601   REPLACE_MKDIR=0;
23602   REPLACE_MKFIFO=0;
23603   REPLACE_MKNOD=0;
23604   REPLACE_STAT=0;
23605   REPLACE_UTIMENSAT=0;
23606
23607
23608       ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
23609 if test "x$ac_cv_have_decl_ftello" = xyes; then :
23610   ac_have_decl=1
23611 else
23612   ac_have_decl=0
23613 fi
23614
23615 cat >>confdefs.h <<_ACEOF
23616 #define HAVE_DECL_FTELLO $ac_have_decl
23617 _ACEOF
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628   :
23629
23630
23631
23632
23633
23634   if test $ac_cv_have_decl_ftello = no; then
23635     HAVE_DECL_FTELLO=0
23636   fi
23637
23638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
23639 $as_echo_n "checking for ftello... " >&6; }
23640 if ${gl_cv_func_ftello+:} false; then :
23641   $as_echo_n "(cached) " >&6
23642 else
23643
23644       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23645 /* end confdefs.h.  */
23646 #include <stdio.h>
23647 int
23648 main ()
23649 {
23650 ftello (stdin);
23651   ;
23652   return 0;
23653 }
23654 _ACEOF
23655 if ac_fn_c_try_link "$LINENO"; then :
23656   gl_cv_func_ftello=yes
23657 else
23658   gl_cv_func_ftello=no
23659 fi
23660 rm -f core conftest.err conftest.$ac_objext \
23661     conftest$ac_exeext conftest.$ac_ext
23662
23663 fi
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
23665 $as_echo "$gl_cv_func_ftello" >&6; }
23666   if test $gl_cv_func_ftello = no; then
23667     HAVE_FTELLO=0
23668   else
23669     if test $gl_cv_var_stdin_large_offset = no; then
23670       REPLACE_FTELLO=1
23671     else
23672
23673       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
23674 $as_echo_n "checking whether ftello works... " >&6; }
23675 if ${gl_cv_func_ftello_works+:} false; then :
23676   $as_echo_n "(cached) " >&6
23677 else
23678
23679                               case "$host_os" in
23680                       # Guess no on Solaris.
23681             solaris*) gl_cv_func_ftello_works="guessing no" ;;
23682                       # Guess yes otherwise.
23683             *)        gl_cv_func_ftello_works="guessing yes" ;;
23684           esac
23685           if test "$cross_compiling" = yes; then :
23686   :
23687 else
23688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23689 /* end confdefs.h.  */
23690
23691 #include <stdio.h>
23692 #include <stdlib.h>
23693 #include <string.h>
23694 #define TESTFILE "conftest.tmp"
23695 int
23696 main (void)
23697 {
23698   FILE *fp;
23699
23700   /* Create a file with some contents.  */
23701   fp = fopen (TESTFILE, "w");
23702   if (fp == NULL)
23703     return 70;
23704   if (fwrite ("foogarsh", 1, 8, fp) < 8)
23705     return 71;
23706   if (fclose (fp))
23707     return 72;
23708
23709   /* The file's contents is now "foogarsh".  */
23710
23711   /* Try writing after reading to EOF.  */
23712   fp = fopen (TESTFILE, "r+");
23713   if (fp == NULL)
23714     return 73;
23715   if (fseek (fp, -1, SEEK_END))
23716     return 74;
23717   if (!(getc (fp) == 'h'))
23718     return 1;
23719   if (!(getc (fp) == EOF))
23720     return 2;
23721   if (!(ftell (fp) == 8))
23722     return 3;
23723   if (!(ftell (fp) == 8))
23724     return 4;
23725   if (!(putc ('!', fp) == '!'))
23726     return 5;
23727   if (!(ftell (fp) == 9))
23728     return 6;
23729   if (!(fclose (fp) == 0))
23730     return 7;
23731   fp = fopen (TESTFILE, "r");
23732   if (fp == NULL)
23733     return 75;
23734   {
23735     char buf[10];
23736     if (!(fread (buf, 1, 10, fp) == 9))
23737       return 10;
23738     if (!(memcmp (buf, "foogarsh!", 9) == 0))
23739       return 11;
23740   }
23741   if (!(fclose (fp) == 0))
23742     return 12;
23743
23744   /* The file's contents is now "foogarsh!".  */
23745
23746   return 0;
23747 }
23748 _ACEOF
23749 if ac_fn_c_try_run "$LINENO"; then :
23750   gl_cv_func_ftello_works=yes
23751 else
23752   gl_cv_func_ftello_works=no
23753 fi
23754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23755   conftest.$ac_objext conftest.beam conftest.$ac_ext
23756 fi
23757
23758
23759 fi
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
23761 $as_echo "$gl_cv_func_ftello_works" >&6; }
23762       case "$gl_cv_func_ftello_works" in
23763         *yes) ;;
23764         *)
23765           REPLACE_FTELLO=1
23766
23767 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
23768
23769           ;;
23770       esac
23771     fi
23772   fi
23773
23774
23775   GNULIB_GETADDRINFO=0;
23776     HAVE_STRUCT_ADDRINFO=1;
23777   HAVE_DECL_FREEADDRINFO=1;
23778   HAVE_DECL_GAI_STRERROR=1;
23779   HAVE_DECL_GETADDRINFO=1;
23780   HAVE_DECL_GETNAMEINFO=1;
23781   REPLACE_GAI_STRERROR=0;
23782
23783
23784
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794
23795
23796   :
23797
23798
23799
23800
23801
23802
23803
23804
23805      if test $gl_cv_have_include_next = yes; then
23806        gl_cv_next_netdb_h='<'netdb.h'>'
23807      else
23808        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
23809 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
23810 if ${gl_cv_next_netdb_h+:} false; then :
23811   $as_echo_n "(cached) " >&6
23812 else
23813
23814              if test $ac_cv_header_netdb_h = yes; then
23815
23816
23817                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23818 /* end confdefs.h.  */
23819 #include <netdb.h>
23820
23821 _ACEOF
23822                                                                                                                         case "$host_os" in
23823                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23824                  *)    gl_absname_cpp="$ac_cpp" ;;
23825                esac
23826
23827                case "$host_os" in
23828                  mingw*)
23829                                                                                                                                      gl_dirsep_regex='[/\\]'
23830                    ;;
23831                  *)
23832                    gl_dirsep_regex='\/'
23833                    ;;
23834                esac
23835                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23836
23837                gl_header_literal_regex=`echo 'netdb.h' \
23838                                         | sed -e "$gl_make_literal_regex_sed"`
23839                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23840                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23841                    s|^/[^/]|//&|
23842                    p
23843                    q
23844                  }'
23845                                                             gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23846                       sed -n "$gl_absolute_header_sed"`'"'
23847           else
23848                gl_cv_next_netdb_h='<'netdb.h'>'
23849              fi
23850
23851
23852 fi
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
23854 $as_echo "$gl_cv_next_netdb_h" >&6; }
23855      fi
23856      NEXT_NETDB_H=$gl_cv_next_netdb_h
23857
23858      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23859        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23860        gl_next_as_first_directive='<'netdb.h'>'
23861      else
23862        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23863        gl_next_as_first_directive=$gl_cv_next_netdb_h
23864      fi
23865      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
23866
23867
23868
23869
23870   if test $ac_cv_header_netdb_h = yes; then
23871     HAVE_NETDB_H=1
23872   else
23873     HAVE_NETDB_H=0
23874   fi
23875
23876
23877
23878     for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
23879     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23881 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23882 if eval \${$as_gl_Symbol+:} false; then :
23883   $as_echo_n "(cached) " >&6
23884 else
23885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23886 /* end confdefs.h.  */
23887 #include <netdb.h>
23888 int
23889 main ()
23890 {
23891 #undef $gl_func
23892   (void) $gl_func;
23893   ;
23894   return 0;
23895 }
23896 _ACEOF
23897 if ac_fn_c_try_compile "$LINENO"; then :
23898   eval "$as_gl_Symbol=yes"
23899 else
23900   eval "$as_gl_Symbol=no"
23901 fi
23902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23903 fi
23904 eval ac_res=\$$as_gl_Symbol
23905                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23906 $as_echo "$ac_res" >&6; }
23907     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23908   cat >>confdefs.h <<_ACEOF
23909 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23910 _ACEOF
23911
23912                      eval ac_cv_have_decl_$gl_func=yes
23913 fi
23914       done
23915
23916
23917
23918                   HOSTENT_LIB=
23919   gl_saved_libs="$LIBS"
23920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
23921 $as_echo_n "checking for library containing gethostbyname... " >&6; }
23922 if ${ac_cv_search_gethostbyname+:} false; then :
23923   $as_echo_n "(cached) " >&6
23924 else
23925   ac_func_search_save_LIBS=$LIBS
23926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23927 /* end confdefs.h.  */
23928
23929 /* Override any GCC internal prototype to avoid an error.
23930    Use char because int might match the return type of a GCC
23931    builtin and then its argument prototype would still apply.  */
23932 #ifdef __cplusplus
23933 extern "C"
23934 #endif
23935 char gethostbyname ();
23936 int
23937 main ()
23938 {
23939 return gethostbyname ();
23940   ;
23941   return 0;
23942 }
23943 _ACEOF
23944 for ac_lib in '' nsl network net; do
23945   if test -z "$ac_lib"; then
23946     ac_res="none required"
23947   else
23948     ac_res=-l$ac_lib
23949     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23950   fi
23951   if ac_fn_c_try_link "$LINENO"; then :
23952   ac_cv_search_gethostbyname=$ac_res
23953 fi
23954 rm -f core conftest.err conftest.$ac_objext \
23955     conftest$ac_exeext
23956   if ${ac_cv_search_gethostbyname+:} false; then :
23957   break
23958 fi
23959 done
23960 if ${ac_cv_search_gethostbyname+:} false; then :
23961
23962 else
23963   ac_cv_search_gethostbyname=no
23964 fi
23965 rm conftest.$ac_ext
23966 LIBS=$ac_func_search_save_LIBS
23967 fi
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
23969 $as_echo "$ac_cv_search_gethostbyname" >&6; }
23970 ac_res=$ac_cv_search_gethostbyname
23971 if test "$ac_res" != no; then :
23972   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23973   if test "$ac_cv_search_gethostbyname" != "none required"; then
23974        HOSTENT_LIB="$ac_cv_search_gethostbyname"
23975      fi
23976 fi
23977
23978   LIBS="$gl_saved_libs"
23979   if test -z "$HOSTENT_LIB"; then
23980     for ac_func in gethostbyname
23981 do :
23982   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23983 if test "x$ac_cv_func_gethostbyname" = xyes; then :
23984   cat >>confdefs.h <<_ACEOF
23985 #define HAVE_GETHOSTBYNAME 1
23986 _ACEOF
23987
23988 else
23989
23990       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
23991 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
23992 if ${gl_cv_w32_gethostbyname+:} false; then :
23993   $as_echo_n "(cached) " >&6
23994 else
23995   gl_cv_w32_gethostbyname=no
23996          gl_save_LIBS="$LIBS"
23997          LIBS="$LIBS -lws2_32"
23998          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23999 /* end confdefs.h.  */
24000
24001 #ifdef HAVE_WINSOCK2_H
24002 #include <winsock2.h>
24003 #endif
24004 #include <stddef.h>
24005
24006 int
24007 main ()
24008 {
24009 gethostbyname(NULL);
24010   ;
24011   return 0;
24012 }
24013 _ACEOF
24014 if ac_fn_c_try_link "$LINENO"; then :
24015   gl_cv_w32_gethostbyname=yes
24016 fi
24017 rm -f core conftest.err conftest.$ac_objext \
24018     conftest$ac_exeext conftest.$ac_ext
24019          LIBS="$gl_save_LIBS"
24020
24021 fi
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
24023 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
24024       if test "$gl_cv_w32_gethostbyname" = "yes"; then
24025         HOSTENT_LIB="-lws2_32"
24026       fi
24027
24028 fi
24029 done
24030
24031   fi
24032
24033
24034
24035                       SERVENT_LIB=
24036   gl_saved_libs="$LIBS"
24037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
24038 $as_echo_n "checking for library containing getservbyname... " >&6; }
24039 if ${ac_cv_search_getservbyname+:} false; then :
24040   $as_echo_n "(cached) " >&6
24041 else
24042   ac_func_search_save_LIBS=$LIBS
24043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24044 /* end confdefs.h.  */
24045
24046 /* Override any GCC internal prototype to avoid an error.
24047    Use char because int might match the return type of a GCC
24048    builtin and then its argument prototype would still apply.  */
24049 #ifdef __cplusplus
24050 extern "C"
24051 #endif
24052 char getservbyname ();
24053 int
24054 main ()
24055 {
24056 return getservbyname ();
24057   ;
24058   return 0;
24059 }
24060 _ACEOF
24061 for ac_lib in '' socket network net; do
24062   if test -z "$ac_lib"; then
24063     ac_res="none required"
24064   else
24065     ac_res=-l$ac_lib
24066     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24067   fi
24068   if ac_fn_c_try_link "$LINENO"; then :
24069   ac_cv_search_getservbyname=$ac_res
24070 fi
24071 rm -f core conftest.err conftest.$ac_objext \
24072     conftest$ac_exeext
24073   if ${ac_cv_search_getservbyname+:} false; then :
24074   break
24075 fi
24076 done
24077 if ${ac_cv_search_getservbyname+:} false; then :
24078
24079 else
24080   ac_cv_search_getservbyname=no
24081 fi
24082 rm conftest.$ac_ext
24083 LIBS=$ac_func_search_save_LIBS
24084 fi
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
24086 $as_echo "$ac_cv_search_getservbyname" >&6; }
24087 ac_res=$ac_cv_search_getservbyname
24088 if test "$ac_res" != no; then :
24089   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24090   if test "$ac_cv_search_getservbyname" != "none required"; then
24091        SERVENT_LIB="$ac_cv_search_getservbyname"
24092      fi
24093 fi
24094
24095   LIBS="$gl_saved_libs"
24096   if test -z "$SERVENT_LIB"; then
24097     for ac_func in getservbyname
24098 do :
24099   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
24100 if test "x$ac_cv_func_getservbyname" = xyes; then :
24101   cat >>confdefs.h <<_ACEOF
24102 #define HAVE_GETSERVBYNAME 1
24103 _ACEOF
24104
24105 else
24106
24107       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
24108 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
24109 if ${gl_cv_w32_getservbyname+:} false; then :
24110   $as_echo_n "(cached) " >&6
24111 else
24112   gl_cv_w32_getservbyname=no
24113          gl_save_LIBS="$LIBS"
24114          LIBS="$LIBS -lws2_32"
24115          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24116 /* end confdefs.h.  */
24117
24118 #ifdef HAVE_WINSOCK2_H
24119 #include <winsock2.h>
24120 #endif
24121 #include <stddef.h>
24122
24123 int
24124 main ()
24125 {
24126 getservbyname(NULL,NULL);
24127   ;
24128   return 0;
24129 }
24130 _ACEOF
24131 if ac_fn_c_try_link "$LINENO"; then :
24132   gl_cv_w32_getservbyname=yes
24133 fi
24134 rm -f core conftest.err conftest.$ac_objext \
24135     conftest$ac_exeext conftest.$ac_ext
24136          LIBS="$gl_save_LIBS"
24137
24138 fi
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
24140 $as_echo "$gl_cv_w32_getservbyname" >&6; }
24141       if test "$gl_cv_w32_getservbyname" = "yes"; then
24142         SERVENT_LIB="-lws2_32"
24143       fi
24144
24145 fi
24146 done
24147
24148   fi
24149
24150
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
24152 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
24153 if ${ac_cv_c_restrict+:} false; then :
24154   $as_echo_n "(cached) " >&6
24155 else
24156   ac_cv_c_restrict=no
24157    # The order here caters to the fact that C++ does not require restrict.
24158    for ac_kw in __restrict __restrict__ _Restrict restrict; do
24159      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24160 /* end confdefs.h.  */
24161 typedef int * int_ptr;
24162         int foo (int_ptr $ac_kw ip) {
24163         return ip[0];
24164        }
24165 int
24166 main ()
24167 {
24168 int s[1];
24169         int * $ac_kw t = s;
24170         t[0] = 0;
24171         return foo(t)
24172   ;
24173   return 0;
24174 }
24175 _ACEOF
24176 if ac_fn_c_try_compile "$LINENO"; then :
24177   ac_cv_c_restrict=$ac_kw
24178 fi
24179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24180      test "$ac_cv_c_restrict" != no && break
24181    done
24182
24183 fi
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
24185 $as_echo "$ac_cv_c_restrict" >&6; }
24186
24187  case $ac_cv_c_restrict in
24188    restrict) ;;
24189    no) $as_echo "#define restrict /**/" >>confdefs.h
24190  ;;
24191    *)  cat >>confdefs.h <<_ACEOF
24192 #define restrict $ac_cv_c_restrict
24193 _ACEOF
24194  ;;
24195  esac
24196
24197
24198
24199
24200
24201
24202
24203
24204               HAVE_INET_NTOP=1
24205   INET_NTOP_LIB=
24206
24207
24208
24209
24210   :
24211
24212
24213
24214
24215
24216   if test $ac_cv_header_sys_socket_h != yes; then
24217                     for ac_header in winsock2.h
24218 do :
24219   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24220 if test "x$ac_cv_header_winsock2_h" = xyes; then :
24221   cat >>confdefs.h <<_ACEOF
24222 #define HAVE_WINSOCK2_H 1
24223 _ACEOF
24224
24225 fi
24226
24227 done
24228
24229   fi
24230   if test "$ac_cv_header_winsock2_h" = yes; then
24231     HAVE_WINSOCK2_H=1
24232     UNISTD_H_HAVE_WINSOCK2_H=1
24233     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24234   else
24235     HAVE_WINSOCK2_H=0
24236   fi
24237
24238
24239   if test $HAVE_WINSOCK2_H = 1; then
24240     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
24241 "
24242 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
24243   ac_have_decl=1
24244 else
24245   ac_have_decl=0
24246 fi
24247
24248 cat >>confdefs.h <<_ACEOF
24249 #define HAVE_DECL_INET_NTOP $ac_have_decl
24250 _ACEOF
24251
24252     if test $ac_cv_have_decl_inet_ntop = yes; then
24253                   REPLACE_INET_NTOP=1
24254       INET_NTOP_LIB="-lws2_32"
24255     else
24256       HAVE_DECL_INET_NTOP=0
24257       HAVE_INET_NTOP=0
24258     fi
24259   else
24260     gl_save_LIBS=$LIBS
24261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
24262 $as_echo_n "checking for library containing inet_ntop... " >&6; }
24263 if ${ac_cv_search_inet_ntop+:} false; then :
24264   $as_echo_n "(cached) " >&6
24265 else
24266   ac_func_search_save_LIBS=$LIBS
24267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24268 /* end confdefs.h.  */
24269
24270 /* Override any GCC internal prototype to avoid an error.
24271    Use char because int might match the return type of a GCC
24272    builtin and then its argument prototype would still apply.  */
24273 #ifdef __cplusplus
24274 extern "C"
24275 #endif
24276 char inet_ntop ();
24277 int
24278 main ()
24279 {
24280 return inet_ntop ();
24281   ;
24282   return 0;
24283 }
24284 _ACEOF
24285 for ac_lib in '' nsl resolv; do
24286   if test -z "$ac_lib"; then
24287     ac_res="none required"
24288   else
24289     ac_res=-l$ac_lib
24290     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24291   fi
24292   if ac_fn_c_try_link "$LINENO"; then :
24293   ac_cv_search_inet_ntop=$ac_res
24294 fi
24295 rm -f core conftest.err conftest.$ac_objext \
24296     conftest$ac_exeext
24297   if ${ac_cv_search_inet_ntop+:} false; then :
24298   break
24299 fi
24300 done
24301 if ${ac_cv_search_inet_ntop+:} false; then :
24302
24303 else
24304   ac_cv_search_inet_ntop=no
24305 fi
24306 rm conftest.$ac_ext
24307 LIBS=$ac_func_search_save_LIBS
24308 fi
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
24310 $as_echo "$ac_cv_search_inet_ntop" >&6; }
24311 ac_res=$ac_cv_search_inet_ntop
24312 if test "$ac_res" != no; then :
24313   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24314
24315 else
24316   for ac_func in inet_ntop
24317 do :
24318   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
24319 if test "x$ac_cv_func_inet_ntop" = xyes; then :
24320   cat >>confdefs.h <<_ACEOF
24321 #define HAVE_INET_NTOP 1
24322 _ACEOF
24323
24324 fi
24325 done
24326
24327        if test $ac_cv_func_inet_ntop = no; then
24328          HAVE_INET_NTOP=0
24329        fi
24330
24331 fi
24332
24333     LIBS=$gl_save_LIBS
24334
24335     if test "$ac_cv_search_inet_ntop" != "no" \
24336        && test "$ac_cv_search_inet_ntop" != "none required"; then
24337       INET_NTOP_LIB="$ac_cv_search_inet_ntop"
24338     fi
24339
24340
24341   :
24342
24343
24344
24345
24346
24347     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
24348         #if HAVE_NETDB_H
24349         # include <netdb.h>
24350         #endif
24351
24352 "
24353 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
24354   ac_have_decl=1
24355 else
24356   ac_have_decl=0
24357 fi
24358
24359 cat >>confdefs.h <<_ACEOF
24360 #define HAVE_DECL_INET_NTOP $ac_have_decl
24361 _ACEOF
24362
24363     if test $ac_cv_have_decl_inet_ntop = no; then
24364       HAVE_DECL_INET_NTOP=0
24365     fi
24366   fi
24367
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377   :
24378
24379
24380
24381
24382
24383
24384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
24385 $as_echo_n "checking for IPv4 sockets... " >&6; }
24386   if ${gl_cv_socket_ipv4+:} false; then :
24387   $as_echo_n "(cached) " >&6
24388 else
24389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24390 /* end confdefs.h.  */
24391 #include <sys/types.h>
24392 #ifdef HAVE_SYS_SOCKET_H
24393 #include <sys/socket.h>
24394 #endif
24395 #ifdef HAVE_NETINET_IN_H
24396 #include <netinet/in.h>
24397 #endif
24398 #ifdef HAVE_WINSOCK2_H
24399 #include <winsock2.h>
24400 #endif
24401 int
24402 main ()
24403 {
24404 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
24405  if (&x && &y && &z) return 0;
24406   ;
24407   return 0;
24408 }
24409 _ACEOF
24410 if ac_fn_c_try_compile "$LINENO"; then :
24411   gl_cv_socket_ipv4=yes
24412 else
24413   gl_cv_socket_ipv4=no
24414 fi
24415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24416 fi
24417
24418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
24419 $as_echo "$gl_cv_socket_ipv4" >&6; }
24420   if test $gl_cv_socket_ipv4 = yes; then
24421
24422 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
24423
24424   fi
24425
24426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
24427 $as_echo_n "checking for IPv6 sockets... " >&6; }
24428   if ${gl_cv_socket_ipv6+:} false; then :
24429   $as_echo_n "(cached) " >&6
24430 else
24431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24432 /* end confdefs.h.  */
24433 #include <sys/types.h>
24434 #ifdef HAVE_SYS_SOCKET_H
24435 #include <sys/socket.h>
24436 #endif
24437 #ifdef HAVE_NETINET_IN_H
24438 #include <netinet/in.h>
24439 #endif
24440 #ifdef HAVE_WINSOCK2_H
24441 #include <winsock2.h>
24442 #endif
24443 #ifdef HAVE_WS2TCPIP_H
24444 #include <ws2tcpip.h>
24445 #endif
24446 int
24447 main ()
24448 {
24449 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
24450  if (&x && &y && &z) return 0;
24451   ;
24452   return 0;
24453 }
24454 _ACEOF
24455 if ac_fn_c_try_compile "$LINENO"; then :
24456   gl_cv_socket_ipv6=yes
24457 else
24458   gl_cv_socket_ipv6=no
24459 fi
24460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24461 fi
24462
24463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
24464 $as_echo "$gl_cv_socket_ipv6" >&6; }
24465   if test $gl_cv_socket_ipv6 = yes; then
24466
24467 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
24468
24469   fi
24470
24471
24472       ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
24473 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
24474   ac_have_decl=1
24475 else
24476   ac_have_decl=0
24477 fi
24478
24479 cat >>confdefs.h <<_ACEOF
24480 #define HAVE_DECL_GETDELIM $ac_have_decl
24481 _ACEOF
24482
24483
24484
24485
24486
24487
24488
24489
24490       ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
24491 if test "x$ac_cv_have_decl_getline" = xyes; then :
24492   ac_have_decl=1
24493 else
24494   ac_have_decl=0
24495 fi
24496
24497 cat >>confdefs.h <<_ACEOF
24498 #define HAVE_DECL_GETLINE $ac_have_decl
24499 _ACEOF
24500
24501
24502
24503       ac_fn_c_check_decl "$LINENO" "getpass" "ac_cv_have_decl_getpass" "$ac_includes_default"
24504 if test "x$ac_cv_have_decl_getpass" = xyes; then :
24505   ac_have_decl=1
24506 else
24507   ac_have_decl=0
24508 fi
24509
24510 cat >>confdefs.h <<_ACEOF
24511 #define HAVE_DECL_GETPASS $ac_have_decl
24512 _ACEOF
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540
24541       ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
24542 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
24543   ac_have_decl=1
24544 else
24545   ac_have_decl=0
24546 fi
24547
24548 cat >>confdefs.h <<_ACEOF
24549 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
24550 _ACEOF
24551
24552
24553
24554       ac_fn_c_check_decl "$LINENO" "flockfile" "ac_cv_have_decl_flockfile" "$ac_includes_default"
24555 if test "x$ac_cv_have_decl_flockfile" = xyes; then :
24556   ac_have_decl=1
24557 else
24558   ac_have_decl=0
24559 fi
24560
24561 cat >>confdefs.h <<_ACEOF
24562 #define HAVE_DECL_FLOCKFILE $ac_have_decl
24563 _ACEOF
24564
24565
24566
24567       ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
24568 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
24569   ac_have_decl=1
24570 else
24571   ac_have_decl=0
24572 fi
24573
24574 cat >>confdefs.h <<_ACEOF
24575 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
24576 _ACEOF
24577
24578
24579
24580       ac_fn_c_check_decl "$LINENO" "funlockfile" "ac_cv_have_decl_funlockfile" "$ac_includes_default"
24581 if test "x$ac_cv_have_decl_funlockfile" = xyes; then :
24582   ac_have_decl=1
24583 else
24584   ac_have_decl=0
24585 fi
24586
24587 cat >>confdefs.h <<_ACEOF
24588 #define HAVE_DECL_FUNLOCKFILE $ac_have_decl
24589 _ACEOF
24590
24591
24592
24593       ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
24594 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
24595   ac_have_decl=1
24596 else
24597   ac_have_decl=0
24598 fi
24599
24600 cat >>confdefs.h <<_ACEOF
24601 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
24602 _ACEOF
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619   GNULIB_GETTIMEOFDAY=0;
24620     HAVE_GETTIMEOFDAY=1;
24621   HAVE_STRUCT_TIMEVAL=1;
24622   HAVE_SYS_TIME_H=1;
24623   REPLACE_GETTIMEOFDAY=0;
24624   REPLACE_STRUCT_TIMEVAL=0;
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635   :
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647   :
24648
24649
24650
24651
24652
24653
24654
24655
24656      if test $gl_cv_have_include_next = yes; then
24657        gl_cv_next_sys_time_h='<'sys/time.h'>'
24658      else
24659        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
24660 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
24661 if ${gl_cv_next_sys_time_h+:} false; then :
24662   $as_echo_n "(cached) " >&6
24663 else
24664
24665              if test $ac_cv_header_sys_time_h = yes; then
24666
24667
24668                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24669 /* end confdefs.h.  */
24670 #include <sys/time.h>
24671
24672 _ACEOF
24673                                                                                                                         case "$host_os" in
24674                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
24675                  *)    gl_absname_cpp="$ac_cpp" ;;
24676                esac
24677
24678                case "$host_os" in
24679                  mingw*)
24680                                                                                                                                      gl_dirsep_regex='[/\\]'
24681                    ;;
24682                  *)
24683                    gl_dirsep_regex='\/'
24684                    ;;
24685                esac
24686                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24687
24688                gl_header_literal_regex=`echo 'sys/time.h' \
24689                                         | sed -e "$gl_make_literal_regex_sed"`
24690                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24691                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24692                    s|^/[^/]|//&|
24693                    p
24694                    q
24695                  }'
24696                                                             gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24697                       sed -n "$gl_absolute_header_sed"`'"'
24698           else
24699                gl_cv_next_sys_time_h='<'sys/time.h'>'
24700              fi
24701
24702
24703 fi
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
24705 $as_echo "$gl_cv_next_sys_time_h" >&6; }
24706      fi
24707      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
24708
24709      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24710        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24711        gl_next_as_first_directive='<'sys/time.h'>'
24712      else
24713        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24714        gl_next_as_first_directive=$gl_cv_next_sys_time_h
24715      fi
24716      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
24717
24718
24719
24720
24721
24722   if test $ac_cv_header_sys_time_h != yes; then
24723     HAVE_SYS_TIME_H=0
24724   fi
24725
24726
24727
24728
24729
24730   :
24731
24732
24733
24734
24735
24736   if test $ac_cv_header_sys_socket_h != yes; then
24737                     for ac_header in winsock2.h
24738 do :
24739   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24740 if test "x$ac_cv_header_winsock2_h" = xyes; then :
24741   cat >>confdefs.h <<_ACEOF
24742 #define HAVE_WINSOCK2_H 1
24743 _ACEOF
24744
24745 fi
24746
24747 done
24748
24749   fi
24750   if test "$ac_cv_header_winsock2_h" = yes; then
24751     HAVE_WINSOCK2_H=1
24752     UNISTD_H_HAVE_WINSOCK2_H=1
24753     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24754   else
24755     HAVE_WINSOCK2_H=0
24756   fi
24757
24758
24759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
24760 $as_echo_n "checking for struct timeval... " >&6; }
24761 if ${gl_cv_sys_struct_timeval+:} false; then :
24762   $as_echo_n "(cached) " >&6
24763 else
24764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24765 /* end confdefs.h.  */
24766 #if HAVE_SYS_TIME_H
24767              #include <sys/time.h>
24768             #endif
24769             #include <time.h>
24770             #if HAVE_WINSOCK2_H
24771             # include <winsock2.h>
24772             #endif
24773
24774 int
24775 main ()
24776 {
24777 static struct timeval x; x.tv_sec = x.tv_usec;
24778   ;
24779   return 0;
24780 }
24781 _ACEOF
24782 if ac_fn_c_try_compile "$LINENO"; then :
24783   gl_cv_sys_struct_timeval=yes
24784 else
24785   gl_cv_sys_struct_timeval=no
24786 fi
24787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24788
24789 fi
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
24791 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
24792   if test $gl_cv_sys_struct_timeval != yes; then
24793     HAVE_STRUCT_TIMEVAL=0
24794   else
24795                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct struct timeval.tv_sec member" >&5
24796 $as_echo_n "checking for correct struct timeval.tv_sec member... " >&6; }
24797 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
24798   $as_echo_n "(cached) " >&6
24799 else
24800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24801 /* end confdefs.h.  */
24802 #if HAVE_SYS_TIME_H
24803                #include <sys/time.h>
24804               #endif
24805               #include <time.h>
24806               #if HAVE_WINSOCK2_H
24807               # include <winsock2.h>
24808               #endif
24809
24810 int
24811 main ()
24812 {
24813 static struct timeval x;
24814               typedef int verify_tv_sec_type[sizeof (x.tv_sec) == sizeof (time_t) ? 1 : -1];
24815
24816   ;
24817   return 0;
24818 }
24819 _ACEOF
24820 if ac_fn_c_try_compile "$LINENO"; then :
24821   gl_cv_sys_struct_timeval_tv_sec=yes
24822 else
24823   gl_cv_sys_struct_timeval_tv_sec=no
24824 fi
24825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24826
24827 fi
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
24829 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
24830     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
24831       REPLACE_STRUCT_TIMEVAL=1
24832     fi
24833   fi
24834
24835
24836     for gl_func in gettimeofday; do
24837     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24839 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24840 if eval \${$as_gl_Symbol+:} false; then :
24841   $as_echo_n "(cached) " >&6
24842 else
24843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24844 /* end confdefs.h.  */
24845
24846 #if HAVE_SYS_TIME_H
24847 # include <sys/time.h>
24848 #endif
24849 #include <time.h>
24850
24851 int
24852 main ()
24853 {
24854 #undef $gl_func
24855   (void) $gl_func;
24856   ;
24857   return 0;
24858 }
24859 _ACEOF
24860 if ac_fn_c_try_compile "$LINENO"; then :
24861   eval "$as_gl_Symbol=yes"
24862 else
24863   eval "$as_gl_Symbol=no"
24864 fi
24865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24866 fi
24867 eval ac_res=\$$as_gl_Symbol
24868                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24869 $as_echo "$ac_res" >&6; }
24870     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24871   cat >>confdefs.h <<_ACEOF
24872 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24873 _ACEOF
24874
24875                      eval ac_cv_have_decl_$gl_func=yes
24876 fi
24877       done
24878
24879
24880
24881
24882
24883
24884
24885   gl_threads_api=none
24886   LIBTHREAD=
24887   LTLIBTHREAD=
24888   LIBMULTITHREAD=
24889   LTLIBMULTITHREAD=
24890   if test "$gl_use_threads" != no; then
24891         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
24892 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
24893 if ${gl_cv_have_weak+:} false; then :
24894   $as_echo_n "(cached) " >&6
24895 else
24896   gl_cv_have_weak=no
24897               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24898 /* end confdefs.h.  */
24899 extern void xyzzy ();
24900 #pragma weak xyzzy
24901 int
24902 main ()
24903 {
24904 xyzzy();
24905   ;
24906   return 0;
24907 }
24908 _ACEOF
24909 if ac_fn_c_try_link "$LINENO"; then :
24910   gl_cv_have_weak=maybe
24911 fi
24912 rm -f core conftest.err conftest.$ac_objext \
24913     conftest$ac_exeext conftest.$ac_ext
24914        if test $gl_cv_have_weak = maybe; then
24915                            if test "$cross_compiling" = yes; then :
24916                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24917 /* end confdefs.h.  */
24918 #ifdef __ELF__
24919                Extensible Linking Format
24920                #endif
24921
24922 _ACEOF
24923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24924   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
24925   gl_cv_have_weak="guessing yes"
24926 else
24927   gl_cv_have_weak="guessing no"
24928 fi
24929 rm -f conftest*
24930
24931
24932 else
24933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24934 /* end confdefs.h.  */
24935
24936 #include <stdio.h>
24937 #pragma weak fputs
24938 int main ()
24939 {
24940   return (fputs == NULL);
24941 }
24942 _ACEOF
24943 if ac_fn_c_try_run "$LINENO"; then :
24944   gl_cv_have_weak=yes
24945 else
24946   gl_cv_have_weak=no
24947 fi
24948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24949   conftest.$ac_objext conftest.beam conftest.$ac_ext
24950 fi
24951
24952        fi
24953
24954 fi
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
24956 $as_echo "$gl_cv_have_weak" >&6; }
24957     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
24958       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
24959       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
24960       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
24961 if test "x$ac_cv_header_pthread_h" = xyes; then :
24962   gl_have_pthread_h=yes
24963 else
24964   gl_have_pthread_h=no
24965 fi
24966
24967
24968       if test "$gl_have_pthread_h" = yes; then
24969         # Other possible tests:
24970         #   -lpthreads (FSU threads, PCthreads)
24971         #   -lgthreads
24972         gl_have_pthread=
24973         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
24974         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
24975         # the second one only in libpthread, and lock.c needs it.
24976         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24977 /* end confdefs.h.  */
24978 #include <pthread.h>
24979 int
24980 main ()
24981 {
24982 pthread_mutex_lock((pthread_mutex_t*)0);
24983                pthread_mutexattr_init((pthread_mutexattr_t*)0);
24984   ;
24985   return 0;
24986 }
24987 _ACEOF
24988 if ac_fn_c_try_link "$LINENO"; then :
24989   gl_have_pthread=yes
24990 fi
24991 rm -f core conftest.err conftest.$ac_objext \
24992     conftest$ac_exeext conftest.$ac_ext
24993         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
24994         # since it is defined as a macro on OSF/1.)
24995         if test -n "$gl_have_pthread"; then
24996           # The program links fine without libpthread. But it may actually
24997           # need to link with libpthread in order to create multiple threads.
24998           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
24999 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
25000 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
25001   $as_echo_n "(cached) " >&6
25002 else
25003   ac_check_lib_save_LIBS=$LIBS
25004 LIBS="-lpthread  $LIBS"
25005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25006 /* end confdefs.h.  */
25007
25008 /* Override any GCC internal prototype to avoid an error.
25009    Use char because int might match the return type of a GCC
25010    builtin and then its argument prototype would still apply.  */
25011 #ifdef __cplusplus
25012 extern "C"
25013 #endif
25014 char pthread_kill ();
25015 int
25016 main ()
25017 {
25018 return pthread_kill ();
25019   ;
25020   return 0;
25021 }
25022 _ACEOF
25023 if ac_fn_c_try_link "$LINENO"; then :
25024   ac_cv_lib_pthread_pthread_kill=yes
25025 else
25026   ac_cv_lib_pthread_pthread_kill=no
25027 fi
25028 rm -f core conftest.err conftest.$ac_objext \
25029     conftest$ac_exeext conftest.$ac_ext
25030 LIBS=$ac_check_lib_save_LIBS
25031 fi
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
25033 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
25034 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
25035   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
25036              # On Solaris and HP-UX, most pthread functions exist also in libc.
25037              # Therefore pthread_in_use() needs to actually try to create a
25038              # thread: pthread_create from libc will fail, whereas
25039              # pthread_create will actually create a thread.
25040              case "$host_os" in
25041                solaris* | hpux*)
25042
25043 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
25044
25045              esac
25046
25047 fi
25048
25049         else
25050           # Some library is needed. Try libpthread and libc_r.
25051           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
25052 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
25053 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
25054   $as_echo_n "(cached) " >&6
25055 else
25056   ac_check_lib_save_LIBS=$LIBS
25057 LIBS="-lpthread  $LIBS"
25058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25059 /* end confdefs.h.  */
25060
25061 /* Override any GCC internal prototype to avoid an error.
25062    Use char because int might match the return type of a GCC
25063    builtin and then its argument prototype would still apply.  */
25064 #ifdef __cplusplus
25065 extern "C"
25066 #endif
25067 char pthread_kill ();
25068 int
25069 main ()
25070 {
25071 return pthread_kill ();
25072   ;
25073   return 0;
25074 }
25075 _ACEOF
25076 if ac_fn_c_try_link "$LINENO"; then :
25077   ac_cv_lib_pthread_pthread_kill=yes
25078 else
25079   ac_cv_lib_pthread_pthread_kill=no
25080 fi
25081 rm -f core conftest.err conftest.$ac_objext \
25082     conftest$ac_exeext conftest.$ac_ext
25083 LIBS=$ac_check_lib_save_LIBS
25084 fi
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
25086 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
25087 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
25088   gl_have_pthread=yes
25089              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
25090              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
25091 fi
25092
25093           if test -z "$gl_have_pthread"; then
25094             # For FreeBSD 4.
25095             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
25096 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
25097 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
25098   $as_echo_n "(cached) " >&6
25099 else
25100   ac_check_lib_save_LIBS=$LIBS
25101 LIBS="-lc_r  $LIBS"
25102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25103 /* end confdefs.h.  */
25104
25105 /* Override any GCC internal prototype to avoid an error.
25106    Use char because int might match the return type of a GCC
25107    builtin and then its argument prototype would still apply.  */
25108 #ifdef __cplusplus
25109 extern "C"
25110 #endif
25111 char pthread_kill ();
25112 int
25113 main ()
25114 {
25115 return pthread_kill ();
25116   ;
25117   return 0;
25118 }
25119 _ACEOF
25120 if ac_fn_c_try_link "$LINENO"; then :
25121   ac_cv_lib_c_r_pthread_kill=yes
25122 else
25123   ac_cv_lib_c_r_pthread_kill=no
25124 fi
25125 rm -f core conftest.err conftest.$ac_objext \
25126     conftest$ac_exeext conftest.$ac_ext
25127 LIBS=$ac_check_lib_save_LIBS
25128 fi
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
25130 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
25131 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
25132   gl_have_pthread=yes
25133                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
25134                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
25135 fi
25136
25137           fi
25138         fi
25139         if test -n "$gl_have_pthread"; then
25140           gl_threads_api=posix
25141
25142 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
25143
25144           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
25145             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
25146
25147 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
25148
25149               LIBTHREAD=
25150               LTLIBTHREAD=
25151             fi
25152           fi
25153         fi
25154       fi
25155     fi
25156     if test -z "$gl_have_pthread"; then
25157       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
25158         gl_have_solaristhread=
25159         gl_save_LIBS="$LIBS"
25160         LIBS="$LIBS -lthread"
25161         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25162 /* end confdefs.h.  */
25163
25164 #include <thread.h>
25165 #include <synch.h>
25166
25167 int
25168 main ()
25169 {
25170 thr_self();
25171   ;
25172   return 0;
25173 }
25174 _ACEOF
25175 if ac_fn_c_try_link "$LINENO"; then :
25176   gl_have_solaristhread=yes
25177 fi
25178 rm -f core conftest.err conftest.$ac_objext \
25179     conftest$ac_exeext conftest.$ac_ext
25180         LIBS="$gl_save_LIBS"
25181         if test -n "$gl_have_solaristhread"; then
25182           gl_threads_api=solaris
25183           LIBTHREAD=-lthread
25184           LTLIBTHREAD=-lthread
25185           LIBMULTITHREAD="$LIBTHREAD"
25186           LTLIBMULTITHREAD="$LTLIBTHREAD"
25187
25188 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
25189
25190           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
25191
25192 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
25193
25194             LIBTHREAD=
25195             LTLIBTHREAD=
25196           fi
25197         fi
25198       fi
25199     fi
25200     if test "$gl_use_threads" = pth; then
25201       gl_save_CPPFLAGS="$CPPFLAGS"
25202
25203
25204
25205
25206
25207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
25208 $as_echo_n "checking how to link with libpth... " >&6; }
25209 if ${ac_cv_libpth_libs+:} false; then :
25210   $as_echo_n "(cached) " >&6
25211 else
25212
25213
25214
25215
25216
25217
25218
25219
25220     use_additional=yes
25221
25222   acl_save_prefix="$prefix"
25223   prefix="$acl_final_prefix"
25224   acl_save_exec_prefix="$exec_prefix"
25225   exec_prefix="$acl_final_exec_prefix"
25226
25227     eval additional_includedir=\"$includedir\"
25228     eval additional_libdir=\"$libdir\"
25229
25230   exec_prefix="$acl_save_exec_prefix"
25231   prefix="$acl_save_prefix"
25232
25233
25234 # Check whether --with-libpth-prefix was given.
25235 if test "${with_libpth_prefix+set}" = set; then :
25236   withval=$with_libpth_prefix;
25237     if test "X$withval" = "Xno"; then
25238       use_additional=no
25239     else
25240       if test "X$withval" = "X"; then
25241
25242   acl_save_prefix="$prefix"
25243   prefix="$acl_final_prefix"
25244   acl_save_exec_prefix="$exec_prefix"
25245   exec_prefix="$acl_final_exec_prefix"
25246
25247           eval additional_includedir=\"$includedir\"
25248           eval additional_libdir=\"$libdir\"
25249
25250   exec_prefix="$acl_save_exec_prefix"
25251   prefix="$acl_save_prefix"
25252
25253       else
25254         additional_includedir="$withval/include"
25255         additional_libdir="$withval/$acl_libdirstem"
25256         if test "$acl_libdirstem2" != "$acl_libdirstem" \
25257            && ! test -d "$withval/$acl_libdirstem"; then
25258           additional_libdir="$withval/$acl_libdirstem2"
25259         fi
25260       fi
25261     fi
25262
25263 fi
25264
25265       LIBPTH=
25266   LTLIBPTH=
25267   INCPTH=
25268   LIBPTH_PREFIX=
25269       HAVE_LIBPTH=
25270   rpathdirs=
25271   ltrpathdirs=
25272   names_already_handled=
25273   names_next_round='pth '
25274   while test -n "$names_next_round"; do
25275     names_this_round="$names_next_round"
25276     names_next_round=
25277     for name in $names_this_round; do
25278       already_handled=
25279       for n in $names_already_handled; do
25280         if test "$n" = "$name"; then
25281           already_handled=yes
25282           break
25283         fi
25284       done
25285       if test -z "$already_handled"; then
25286         names_already_handled="$names_already_handled $name"
25287                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
25288         eval value=\"\$HAVE_LIB$uppername\"
25289         if test -n "$value"; then
25290           if test "$value" = yes; then
25291             eval value=\"\$LIB$uppername\"
25292             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
25293             eval value=\"\$LTLIB$uppername\"
25294             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
25295           else
25296                                     :
25297           fi
25298         else
25299                               found_dir=
25300           found_la=
25301           found_so=
25302           found_a=
25303           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
25304           if test -n "$acl_shlibext"; then
25305             shrext=".$acl_shlibext"             # typically: shrext=.so
25306           else
25307             shrext=
25308           fi
25309           if test $use_additional = yes; then
25310             dir="$additional_libdir"
25311                                     if test -n "$acl_shlibext"; then
25312               if test -f "$dir/$libname$shrext"; then
25313                 found_dir="$dir"
25314                 found_so="$dir/$libname$shrext"
25315               else
25316                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
25317                   ver=`(cd "$dir" && \
25318                         for f in "$libname$shrext".*; do echo "$f"; done \
25319                         | sed -e "s,^$libname$shrext\\\\.,," \
25320                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
25321                         | sed 1q ) 2>/dev/null`
25322                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
25323                     found_dir="$dir"
25324                     found_so="$dir/$libname$shrext.$ver"
25325                   fi
25326                 else
25327                   eval library_names=\"$acl_library_names_spec\"
25328                   for f in $library_names; do
25329                     if test -f "$dir/$f"; then
25330                       found_dir="$dir"
25331                       found_so="$dir/$f"
25332                       break
25333                     fi
25334                   done
25335                 fi
25336               fi
25337             fi
25338                         if test "X$found_dir" = "X"; then
25339               if test -f "$dir/$libname.$acl_libext"; then
25340                 found_dir="$dir"
25341                 found_a="$dir/$libname.$acl_libext"
25342               fi
25343             fi
25344             if test "X$found_dir" != "X"; then
25345               if test -f "$dir/$libname.la"; then
25346                 found_la="$dir/$libname.la"
25347               fi
25348             fi
25349           fi
25350           if test "X$found_dir" = "X"; then
25351             for x in $LDFLAGS $LTLIBPTH; do
25352
25353   acl_save_prefix="$prefix"
25354   prefix="$acl_final_prefix"
25355   acl_save_exec_prefix="$exec_prefix"
25356   exec_prefix="$acl_final_exec_prefix"
25357   eval x=\"$x\"
25358   exec_prefix="$acl_save_exec_prefix"
25359   prefix="$acl_save_prefix"
25360
25361               case "$x" in
25362                 -L*)
25363                   dir=`echo "X$x" | sed -e 's/^X-L//'`
25364                                     if test -n "$acl_shlibext"; then
25365                     if test -f "$dir/$libname$shrext"; then
25366                       found_dir="$dir"
25367                       found_so="$dir/$libname$shrext"
25368                     else
25369                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
25370                         ver=`(cd "$dir" && \
25371                               for f in "$libname$shrext".*; do echo "$f"; done \
25372                               | sed -e "s,^$libname$shrext\\\\.,," \
25373                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
25374                               | sed 1q ) 2>/dev/null`
25375                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
25376                           found_dir="$dir"
25377                           found_so="$dir/$libname$shrext.$ver"
25378                         fi
25379                       else
25380                         eval library_names=\"$acl_library_names_spec\"
25381                         for f in $library_names; do
25382                           if test -f "$dir/$f"; then
25383                             found_dir="$dir"
25384                             found_so="$dir/$f"
25385                             break
25386                           fi
25387                         done
25388                       fi
25389                     fi
25390                   fi
25391                                     if test "X$found_dir" = "X"; then
25392                     if test -f "$dir/$libname.$acl_libext"; then
25393                       found_dir="$dir"
25394                       found_a="$dir/$libname.$acl_libext"
25395                     fi
25396                   fi
25397                   if test "X$found_dir" != "X"; then
25398                     if test -f "$dir/$libname.la"; then
25399                       found_la="$dir/$libname.la"
25400                     fi
25401                   fi
25402                   ;;
25403               esac
25404               if test "X$found_dir" != "X"; then
25405                 break
25406               fi
25407             done
25408           fi
25409           if test "X$found_dir" != "X"; then
25410                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
25411             if test "X$found_so" != "X"; then
25412                                                         if test "$enable_rpath" = no \
25413                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
25414                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
25415                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
25416               else
25417                                                                                 haveit=
25418                 for x in $ltrpathdirs; do
25419                   if test "X$x" = "X$found_dir"; then
25420                     haveit=yes
25421                     break
25422                   fi
25423                 done
25424                 if test -z "$haveit"; then
25425                   ltrpathdirs="$ltrpathdirs $found_dir"
25426                 fi
25427                                 if test "$acl_hardcode_direct" = yes; then
25428                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
25429                 else
25430                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
25431                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
25432                                                             haveit=
25433                     for x in $rpathdirs; do
25434                       if test "X$x" = "X$found_dir"; then
25435                         haveit=yes
25436                         break
25437                       fi
25438                     done
25439                     if test -z "$haveit"; then
25440                       rpathdirs="$rpathdirs $found_dir"
25441                     fi
25442                   else
25443                                                                                 haveit=
25444                     for x in $LDFLAGS $LIBPTH; do
25445
25446   acl_save_prefix="$prefix"
25447   prefix="$acl_final_prefix"
25448   acl_save_exec_prefix="$exec_prefix"
25449   exec_prefix="$acl_final_exec_prefix"
25450   eval x=\"$x\"
25451   exec_prefix="$acl_save_exec_prefix"
25452   prefix="$acl_save_prefix"
25453
25454                       if test "X$x" = "X-L$found_dir"; then
25455                         haveit=yes
25456                         break
25457                       fi
25458                     done
25459                     if test -z "$haveit"; then
25460                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
25461                     fi
25462                     if test "$acl_hardcode_minus_L" != no; then
25463                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
25464                     else
25465                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
25466                     fi
25467                   fi
25468                 fi
25469               fi
25470             else
25471               if test "X$found_a" != "X"; then
25472                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
25473               else
25474                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
25475               fi
25476             fi
25477                         additional_includedir=
25478             case "$found_dir" in
25479               */$acl_libdirstem | */$acl_libdirstem/)
25480                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
25481                 if test "$name" = 'pth'; then
25482                   LIBPTH_PREFIX="$basedir"
25483                 fi
25484                 additional_includedir="$basedir/include"
25485                 ;;
25486               */$acl_libdirstem2 | */$acl_libdirstem2/)
25487                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
25488                 if test "$name" = 'pth'; then
25489                   LIBPTH_PREFIX="$basedir"
25490                 fi
25491                 additional_includedir="$basedir/include"
25492                 ;;
25493             esac
25494             if test "X$additional_includedir" != "X"; then
25495                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
25496                 haveit=
25497                 if test "X$additional_includedir" = "X/usr/local/include"; then
25498                   if test -n "$GCC"; then
25499                     case $host_os in
25500                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25501                     esac
25502                   fi
25503                 fi
25504                 if test -z "$haveit"; then
25505                   for x in $CPPFLAGS $INCPTH; do
25506
25507   acl_save_prefix="$prefix"
25508   prefix="$acl_final_prefix"
25509   acl_save_exec_prefix="$exec_prefix"
25510   exec_prefix="$acl_final_exec_prefix"
25511   eval x=\"$x\"
25512   exec_prefix="$acl_save_exec_prefix"
25513   prefix="$acl_save_prefix"
25514
25515                     if test "X$x" = "X-I$additional_includedir"; then
25516                       haveit=yes
25517                       break
25518                     fi
25519                   done
25520                   if test -z "$haveit"; then
25521                     if test -d "$additional_includedir"; then
25522                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
25523                     fi
25524                   fi
25525                 fi
25526               fi
25527             fi
25528                         if test -n "$found_la"; then
25529                                                         save_libdir="$libdir"
25530               case "$found_la" in
25531                 */* | *\\*) . "$found_la" ;;
25532                 *) . "./$found_la" ;;
25533               esac
25534               libdir="$save_libdir"
25535                             for dep in $dependency_libs; do
25536                 case "$dep" in
25537                   -L*)
25538                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25539                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
25540                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
25541                       haveit=
25542                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
25543                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
25544                         if test -n "$GCC"; then
25545                           case $host_os in
25546                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25547                           esac
25548                         fi
25549                       fi
25550                       if test -z "$haveit"; then
25551                         haveit=
25552                         for x in $LDFLAGS $LIBPTH; do
25553
25554   acl_save_prefix="$prefix"
25555   prefix="$acl_final_prefix"
25556   acl_save_exec_prefix="$exec_prefix"
25557   exec_prefix="$acl_final_exec_prefix"
25558   eval x=\"$x\"
25559   exec_prefix="$acl_save_exec_prefix"
25560   prefix="$acl_save_prefix"
25561
25562                           if test "X$x" = "X-L$additional_libdir"; then
25563                             haveit=yes
25564                             break
25565                           fi
25566                         done
25567                         if test -z "$haveit"; then
25568                           if test -d "$additional_libdir"; then
25569                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
25570                           fi
25571                         fi
25572                         haveit=
25573                         for x in $LDFLAGS $LTLIBPTH; do
25574
25575   acl_save_prefix="$prefix"
25576   prefix="$acl_final_prefix"
25577   acl_save_exec_prefix="$exec_prefix"
25578   exec_prefix="$acl_final_exec_prefix"
25579   eval x=\"$x\"
25580   exec_prefix="$acl_save_exec_prefix"
25581   prefix="$acl_save_prefix"
25582
25583                           if test "X$x" = "X-L$additional_libdir"; then
25584                             haveit=yes
25585                             break
25586                           fi
25587                         done
25588                         if test -z "$haveit"; then
25589                           if test -d "$additional_libdir"; then
25590                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
25591                           fi
25592                         fi
25593                       fi
25594                     fi
25595                     ;;
25596                   -R*)
25597                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
25598                     if test "$enable_rpath" != no; then
25599                                                                   haveit=
25600                       for x in $rpathdirs; do
25601                         if test "X$x" = "X$dir"; then
25602                           haveit=yes
25603                           break
25604                         fi
25605                       done
25606                       if test -z "$haveit"; then
25607                         rpathdirs="$rpathdirs $dir"
25608                       fi
25609                                                                   haveit=
25610                       for x in $ltrpathdirs; do
25611                         if test "X$x" = "X$dir"; then
25612                           haveit=yes
25613                           break
25614                         fi
25615                       done
25616                       if test -z "$haveit"; then
25617                         ltrpathdirs="$ltrpathdirs $dir"
25618                       fi
25619                     fi
25620                     ;;
25621                   -l*)
25622                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25623                     ;;
25624                   *.la)
25625                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25626                     ;;
25627                   *)
25628                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
25629                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
25630                     ;;
25631                 esac
25632               done
25633             fi
25634           else
25635                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
25636             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
25637           fi
25638         fi
25639       fi
25640     done
25641   done
25642   if test "X$rpathdirs" != "X"; then
25643     if test -n "$acl_hardcode_libdir_separator"; then
25644                         alldirs=
25645       for found_dir in $rpathdirs; do
25646         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
25647       done
25648             acl_save_libdir="$libdir"
25649       libdir="$alldirs"
25650       eval flag=\"$acl_hardcode_libdir_flag_spec\"
25651       libdir="$acl_save_libdir"
25652       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
25653     else
25654             for found_dir in $rpathdirs; do
25655         acl_save_libdir="$libdir"
25656         libdir="$found_dir"
25657         eval flag=\"$acl_hardcode_libdir_flag_spec\"
25658         libdir="$acl_save_libdir"
25659         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
25660       done
25661     fi
25662   fi
25663   if test "X$ltrpathdirs" != "X"; then
25664             for found_dir in $ltrpathdirs; do
25665       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
25666     done
25667   fi
25668
25669
25670
25671
25672
25673
25674     ac_cv_libpth_libs="$LIBPTH"
25675     ac_cv_libpth_ltlibs="$LTLIBPTH"
25676     ac_cv_libpth_cppflags="$INCPTH"
25677     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
25678
25679 fi
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
25681 $as_echo "$ac_cv_libpth_libs" >&6; }
25682   LIBPTH="$ac_cv_libpth_libs"
25683   LTLIBPTH="$ac_cv_libpth_ltlibs"
25684   INCPTH="$ac_cv_libpth_cppflags"
25685   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
25686
25687   for element in $INCPTH; do
25688     haveit=
25689     for x in $CPPFLAGS; do
25690
25691   acl_save_prefix="$prefix"
25692   prefix="$acl_final_prefix"
25693   acl_save_exec_prefix="$exec_prefix"
25694   exec_prefix="$acl_final_exec_prefix"
25695   eval x=\"$x\"
25696   exec_prefix="$acl_save_exec_prefix"
25697   prefix="$acl_save_prefix"
25698
25699       if test "X$x" = "X$element"; then
25700         haveit=yes
25701         break
25702       fi
25703     done
25704     if test -z "$haveit"; then
25705       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25706     fi
25707   done
25708
25709
25710
25711
25712       HAVE_LIBPTH=yes
25713
25714
25715
25716       gl_have_pth=
25717       gl_save_LIBS="$LIBS"
25718       LIBS="$LIBS $LIBPTH"
25719       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25720 /* end confdefs.h.  */
25721 #include <pth.h>
25722 int
25723 main ()
25724 {
25725 pth_self();
25726   ;
25727   return 0;
25728 }
25729 _ACEOF
25730 if ac_fn_c_try_link "$LINENO"; then :
25731   gl_have_pth=yes
25732 fi
25733 rm -f core conftest.err conftest.$ac_objext \
25734     conftest$ac_exeext conftest.$ac_ext
25735       LIBS="$gl_save_LIBS"
25736       if test -n "$gl_have_pth"; then
25737         gl_threads_api=pth
25738         LIBTHREAD="$LIBPTH"
25739         LTLIBTHREAD="$LTLIBPTH"
25740         LIBMULTITHREAD="$LIBTHREAD"
25741         LTLIBMULTITHREAD="$LTLIBTHREAD"
25742
25743 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
25744
25745         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
25746           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
25747
25748 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
25749
25750             LIBTHREAD=
25751             LTLIBTHREAD=
25752           fi
25753         fi
25754       else
25755         CPPFLAGS="$gl_save_CPPFLAGS"
25756       fi
25757     fi
25758     if test -z "$gl_have_pthread"; then
25759       case "$gl_use_threads" in
25760         yes | windows | win32) # The 'win32' is for backward compatibility.
25761           if { case "$host_os" in
25762                  mingw*) true;;
25763                  *) false;;
25764                esac
25765              }; then
25766             gl_threads_api=windows
25767
25768 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
25769
25770           fi
25771           ;;
25772       esac
25773     fi
25774   fi
25775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
25776 $as_echo_n "checking for multithread API to use... " >&6; }
25777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
25778 $as_echo "$gl_threads_api" >&6; }
25779
25780
25781
25782
25783
25784
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794   GNULIB__EXIT=0;
25795   GNULIB_ATOLL=0;
25796   GNULIB_CALLOC_POSIX=0;
25797   GNULIB_CANONICALIZE_FILE_NAME=0;
25798   GNULIB_GETLOADAVG=0;
25799   GNULIB_GETSUBOPT=0;
25800   GNULIB_GRANTPT=0;
25801   GNULIB_MALLOC_POSIX=0;
25802   GNULIB_MBTOWC=0;
25803   GNULIB_MKDTEMP=0;
25804   GNULIB_MKOSTEMP=0;
25805   GNULIB_MKOSTEMPS=0;
25806   GNULIB_MKSTEMP=0;
25807   GNULIB_MKSTEMPS=0;
25808   GNULIB_POSIX_OPENPT=0;
25809   GNULIB_PTSNAME=0;
25810   GNULIB_PTSNAME_R=0;
25811   GNULIB_PUTENV=0;
25812   GNULIB_RANDOM=0;
25813   GNULIB_RANDOM_R=0;
25814   GNULIB_REALLOC_POSIX=0;
25815   GNULIB_REALPATH=0;
25816   GNULIB_RPMATCH=0;
25817   GNULIB_SETENV=0;
25818   GNULIB_STRTOD=0;
25819   GNULIB_STRTOLL=0;
25820   GNULIB_STRTOULL=0;
25821   GNULIB_SYSTEM_POSIX=0;
25822   GNULIB_UNLOCKPT=0;
25823   GNULIB_UNSETENV=0;
25824   GNULIB_WCTOMB=0;
25825     HAVE__EXIT=1;
25826   HAVE_ATOLL=1;
25827   HAVE_CANONICALIZE_FILE_NAME=1;
25828   HAVE_DECL_GETLOADAVG=1;
25829   HAVE_GETSUBOPT=1;
25830   HAVE_GRANTPT=1;
25831   HAVE_MKDTEMP=1;
25832   HAVE_MKOSTEMP=1;
25833   HAVE_MKOSTEMPS=1;
25834   HAVE_MKSTEMP=1;
25835   HAVE_MKSTEMPS=1;
25836   HAVE_POSIX_OPENPT=1;
25837   HAVE_PTSNAME=1;
25838   HAVE_PTSNAME_R=1;
25839   HAVE_RANDOM=1;
25840   HAVE_RANDOM_H=1;
25841   HAVE_RANDOM_R=1;
25842   HAVE_REALPATH=1;
25843   HAVE_RPMATCH=1;
25844   HAVE_SETENV=1;
25845   HAVE_DECL_SETENV=1;
25846   HAVE_STRTOD=1;
25847   HAVE_STRTOLL=1;
25848   HAVE_STRTOULL=1;
25849   HAVE_STRUCT_RANDOM_DATA=1;
25850   HAVE_SYS_LOADAVG_H=0;
25851   HAVE_UNLOCKPT=1;
25852   HAVE_DECL_UNSETENV=1;
25853   REPLACE_CALLOC=0;
25854   REPLACE_CANONICALIZE_FILE_NAME=0;
25855   REPLACE_MALLOC=0;
25856   REPLACE_MBTOWC=0;
25857   REPLACE_MKSTEMP=0;
25858   REPLACE_PTSNAME_R=0;
25859   REPLACE_PUTENV=0;
25860   REPLACE_RANDOM_R=0;
25861   REPLACE_REALLOC=0;
25862   REPLACE_REALPATH=0;
25863   REPLACE_SETENV=0;
25864   REPLACE_STRTOD=0;
25865   REPLACE_UNSETENV=0;
25866   REPLACE_WCTOMB=0;
25867
25868
25869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
25870 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
25871 if ${gl_cv_func_malloc_posix+:} false; then :
25872   $as_echo_n "(cached) " >&6
25873 else
25874
25875                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25876 /* end confdefs.h.  */
25877
25878 int
25879 main ()
25880 {
25881 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25882              choke me
25883              #endif
25884
25885   ;
25886   return 0;
25887 }
25888 _ACEOF
25889 if ac_fn_c_try_compile "$LINENO"; then :
25890   gl_cv_func_malloc_posix=yes
25891 else
25892   gl_cv_func_malloc_posix=no
25893 fi
25894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25895
25896 fi
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
25898 $as_echo "$gl_cv_func_malloc_posix" >&6; }
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911   GNULIB_FFSL=0;
25912   GNULIB_FFSLL=0;
25913   GNULIB_MEMCHR=0;
25914   GNULIB_MEMMEM=0;
25915   GNULIB_MEMPCPY=0;
25916   GNULIB_MEMRCHR=0;
25917   GNULIB_RAWMEMCHR=0;
25918   GNULIB_STPCPY=0;
25919   GNULIB_STPNCPY=0;
25920   GNULIB_STRCHRNUL=0;
25921   GNULIB_STRDUP=0;
25922   GNULIB_STRNCAT=0;
25923   GNULIB_STRNDUP=0;
25924   GNULIB_STRNLEN=0;
25925   GNULIB_STRPBRK=0;
25926   GNULIB_STRSEP=0;
25927   GNULIB_STRSTR=0;
25928   GNULIB_STRCASESTR=0;
25929   GNULIB_STRTOK_R=0;
25930   GNULIB_MBSLEN=0;
25931   GNULIB_MBSNLEN=0;
25932   GNULIB_MBSCHR=0;
25933   GNULIB_MBSRCHR=0;
25934   GNULIB_MBSSTR=0;
25935   GNULIB_MBSCASECMP=0;
25936   GNULIB_MBSNCASECMP=0;
25937   GNULIB_MBSPCASECMP=0;
25938   GNULIB_MBSCASESTR=0;
25939   GNULIB_MBSCSPN=0;
25940   GNULIB_MBSPBRK=0;
25941   GNULIB_MBSSPN=0;
25942   GNULIB_MBSSEP=0;
25943   GNULIB_MBSTOK_R=0;
25944   GNULIB_STRERROR=0;
25945   GNULIB_STRERROR_R=0;
25946   GNULIB_STRSIGNAL=0;
25947   GNULIB_STRVERSCMP=0;
25948   HAVE_MBSLEN=0;
25949     HAVE_FFSL=1;
25950   HAVE_FFSLL=1;
25951   HAVE_MEMCHR=1;
25952   HAVE_DECL_MEMMEM=1;
25953   HAVE_MEMPCPY=1;
25954   HAVE_DECL_MEMRCHR=1;
25955   HAVE_RAWMEMCHR=1;
25956   HAVE_STPCPY=1;
25957   HAVE_STPNCPY=1;
25958   HAVE_STRCHRNUL=1;
25959   HAVE_DECL_STRDUP=1;
25960   HAVE_DECL_STRNDUP=1;
25961   HAVE_DECL_STRNLEN=1;
25962   HAVE_STRPBRK=1;
25963   HAVE_STRSEP=1;
25964   HAVE_STRCASESTR=1;
25965   HAVE_DECL_STRTOK_R=1;
25966   HAVE_DECL_STRERROR_R=1;
25967   HAVE_DECL_STRSIGNAL=1;
25968   HAVE_STRVERSCMP=1;
25969   REPLACE_MEMCHR=0;
25970   REPLACE_MEMMEM=0;
25971   REPLACE_STPNCPY=0;
25972   REPLACE_STRDUP=0;
25973   REPLACE_STRSTR=0;
25974   REPLACE_STRCASESTR=0;
25975   REPLACE_STRCHRNUL=0;
25976   REPLACE_STRERROR=0;
25977   REPLACE_STRERROR_R=0;
25978   REPLACE_STRNCAT=0;
25979   REPLACE_STRNDUP=0;
25980   REPLACE_STRNLEN=0;
25981   REPLACE_STRSIGNAL=0;
25982   REPLACE_STRTOK_R=0;
25983   UNDEFINE_STRTOK_R=0;
25984
25985
25986
25987
25988
25989   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
25990   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
25991   # irrelevant for anonymous mappings.
25992   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
25993 if test "x$ac_cv_func_mmap" = xyes; then :
25994   gl_have_mmap=yes
25995 else
25996   gl_have_mmap=no
25997 fi
25998
25999
26000   # Try to allow MAP_ANONYMOUS.
26001   gl_have_mmap_anonymous=no
26002   if test $gl_have_mmap = yes; then
26003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
26004 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
26005     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26006 /* end confdefs.h.  */
26007
26008 #include <sys/mman.h>
26009 #ifdef MAP_ANONYMOUS
26010     I cant identify this map
26011 #endif
26012
26013 _ACEOF
26014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26015   $EGREP "I cant identify this map" >/dev/null 2>&1; then :
26016   gl_have_mmap_anonymous=yes
26017 fi
26018 rm -f conftest*
26019
26020     if test $gl_have_mmap_anonymous != yes; then
26021       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26022 /* end confdefs.h.  */
26023
26024 #include <sys/mman.h>
26025 #ifdef MAP_ANON
26026     I cant identify this map
26027 #endif
26028
26029 _ACEOF
26030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26031   $EGREP "I cant identify this map" >/dev/null 2>&1; then :
26032
26033 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
26034
26035          gl_have_mmap_anonymous=yes
26036 fi
26037 rm -f conftest*
26038
26039     fi
26040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
26041 $as_echo "$gl_have_mmap_anonymous" >&6; }
26042     if test $gl_have_mmap_anonymous = yes; then
26043
26044 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
26045
26046     fi
26047   fi
26048
26049
26050   :
26051
26052
26053
26054
26055
26056
26057   :
26058
26059
26060
26061
26062
26063
26064
26065
26066   if test $HAVE_MEMCHR = 1; then
26067     # Detect platform-specific bugs in some versions of glibc:
26068     # memchr should not dereference anything with length 0
26069     #   http://bugzilla.redhat.com/499689
26070     # memchr should not dereference overestimated length after a match
26071     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
26072     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
26073     # Assume that memchr works on platforms that lack mprotect.
26074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
26075 $as_echo_n "checking whether memchr works... " >&6; }
26076 if ${gl_cv_func_memchr_works+:} false; then :
26077   $as_echo_n "(cached) " >&6
26078 else
26079   if test "$cross_compiling" = yes; then :
26080          gl_cv_func_memchr_works="guessing no"
26081 else
26082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26083 /* end confdefs.h.  */
26084
26085 #include <string.h>
26086 #if HAVE_SYS_MMAN_H
26087 # include <fcntl.h>
26088 # include <unistd.h>
26089 # include <sys/types.h>
26090 # include <sys/mman.h>
26091 # ifndef MAP_FILE
26092 #  define MAP_FILE 0
26093 # endif
26094 #endif
26095
26096 int
26097 main ()
26098 {
26099
26100   int result = 0;
26101   char *fence = NULL;
26102 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
26103 # if HAVE_MAP_ANONYMOUS
26104   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
26105   const int fd = -1;
26106 # else /* !HAVE_MAP_ANONYMOUS */
26107   const int flags = MAP_FILE | MAP_PRIVATE;
26108   int fd = open ("/dev/zero", O_RDONLY, 0666);
26109   if (fd >= 0)
26110 # endif
26111     {
26112       int pagesize = getpagesize ();
26113       char *two_pages =
26114         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
26115                        flags, fd, 0);
26116       if (two_pages != (char *)(-1)
26117           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
26118         fence = two_pages + pagesize;
26119     }
26120 #endif
26121   if (fence)
26122     {
26123       if (memchr (fence, 0, 0))
26124         result |= 1;
26125       strcpy (fence - 9, "12345678");
26126       if (memchr (fence - 9, 0, 79) != fence - 1)
26127         result |= 2;
26128       if (memchr (fence - 1, 0, 3) != fence - 1)
26129         result |= 4;
26130     }
26131   return result;
26132
26133   ;
26134   return 0;
26135 }
26136 _ACEOF
26137 if ac_fn_c_try_run "$LINENO"; then :
26138   gl_cv_func_memchr_works=yes
26139 else
26140   gl_cv_func_memchr_works=no
26141 fi
26142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26143   conftest.$ac_objext conftest.beam conftest.$ac_ext
26144 fi
26145
26146 fi
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
26148 $as_echo "$gl_cv_func_memchr_works" >&6; }
26149     if test "$gl_cv_func_memchr_works" != yes; then
26150       REPLACE_MEMCHR=1
26151     fi
26152   fi
26153
26154
26155
26156
26157
26158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
26159 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
26160 if ${gl_cv_minmax_in_limits_h+:} false; then :
26161   $as_echo_n "(cached) " >&6
26162 else
26163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26164 /* end confdefs.h.  */
26165 #include <limits.h>
26166             int x = MIN (42, 17);
26167 int
26168 main ()
26169 {
26170
26171   ;
26172   return 0;
26173 }
26174 _ACEOF
26175 if ac_fn_c_try_compile "$LINENO"; then :
26176   gl_cv_minmax_in_limits_h=yes
26177 else
26178   gl_cv_minmax_in_limits_h=no
26179 fi
26180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26181 fi
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
26183 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
26184   if test $gl_cv_minmax_in_limits_h = yes; then
26185
26186 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
26187
26188   fi
26189
26190
26191
26192
26193
26194
26195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
26196 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
26197 if ${gl_cv_minmax_in_sys_param_h+:} false; then :
26198   $as_echo_n "(cached) " >&6
26199 else
26200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26201 /* end confdefs.h.  */
26202 #include <sys/param.h>
26203             int x = MIN (42, 17);
26204 int
26205 main ()
26206 {
26207
26208   ;
26209   return 0;
26210 }
26211 _ACEOF
26212 if ac_fn_c_try_compile "$LINENO"; then :
26213   gl_cv_minmax_in_sys_param_h=yes
26214 else
26215   gl_cv_minmax_in_sys_param_h=no
26216 fi
26217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26218 fi
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
26220 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
26221   if test $gl_cv_minmax_in_sys_param_h = yes; then
26222
26223 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
26224
26225   fi
26226
26227
26228
26229
26230
26231     gl_cv_c_multiarch=no
26232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26233 /* end confdefs.h.  */
26234 #ifndef __APPLE_CC__
26235          not a universal capable compiler
26236         #endif
26237         typedef int dummy;
26238
26239 _ACEOF
26240 if ac_fn_c_try_compile "$LINENO"; then :
26241
26242                arch=
26243      prev=
26244      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
26245        if test -n "$prev"; then
26246          case $word in
26247            i?86 | x86_64 | ppc | ppc64)
26248              if test -z "$arch" || test "$arch" = "$word"; then
26249                arch="$word"
26250              else
26251                gl_cv_c_multiarch=yes
26252              fi
26253              ;;
26254          esac
26255          prev=
26256        else
26257          if test "x$word" = "x-arch"; then
26258            prev=arch
26259          fi
26260        fi
26261      done
26262
26263 fi
26264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26265   if test $gl_cv_c_multiarch = yes; then
26266     APPLE_UNIVERSAL_BUILD=1
26267   else
26268     APPLE_UNIVERSAL_BUILD=0
26269   fi
26270
26271
26272
26273   REPLACE_STRERROR_0=0
26274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
26275 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
26276 if ${gl_cv_func_strerror_0_works+:} false; then :
26277   $as_echo_n "(cached) " >&6
26278 else
26279   if test "$cross_compiling" = yes; then :
26280          gl_cv_func_strerror_0_works="guessing no"
26281 else
26282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26283 /* end confdefs.h.  */
26284 #include <string.h>
26285            #include <errno.h>
26286
26287 int
26288 main ()
26289 {
26290 int result = 0;
26291            char *str;
26292            errno = 0;
26293            str = strerror (0);
26294            if (!*str) result |= 1;
26295            if (errno) result |= 2;
26296            if (strstr (str, "nknown") || strstr (str, "ndefined"))
26297              result |= 4;
26298            return result;
26299   ;
26300   return 0;
26301 }
26302 _ACEOF
26303 if ac_fn_c_try_run "$LINENO"; then :
26304   gl_cv_func_strerror_0_works=yes
26305 else
26306   gl_cv_func_strerror_0_works=no
26307 fi
26308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26309   conftest.$ac_objext conftest.beam conftest.$ac_ext
26310 fi
26311
26312
26313 fi
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
26315 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
26316   if test "$gl_cv_func_strerror_0_works" != yes; then
26317     REPLACE_STRERROR_0=1
26318
26319 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
26320
26321   fi
26322
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338   :
26339
26340
26341
26342
26343
26344   if test $ac_cv_func_strerror_r = yes; then
26345     if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
26346                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
26347 $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
26348 if ${gl_cv_func_strerror_r_posix_signature+:} false; then :
26349   $as_echo_n "(cached) " >&6
26350 else
26351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26352 /* end confdefs.h.  */
26353 #include <string.h>
26354                 int strerror_r (int, char *, size_t);
26355
26356 int
26357 main ()
26358 {
26359
26360   ;
26361   return 0;
26362 }
26363 _ACEOF
26364 if ac_fn_c_try_compile "$LINENO"; then :
26365   gl_cv_func_strerror_r_posix_signature=yes
26366 else
26367   gl_cv_func_strerror_r_posix_signature=no
26368 fi
26369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26370
26371 fi
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
26373 $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
26374       if test $gl_cv_func_strerror_r_posix_signature = yes; then
26375                                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
26376 $as_echo_n "checking whether strerror_r works... " >&6; }
26377 if ${gl_cv_func_strerror_r_works+:} false; then :
26378   $as_echo_n "(cached) " >&6
26379 else
26380   if test "$cross_compiling" = yes; then :
26381
26382               case "$host_os" in
26383                        # Guess no on AIX.
26384                 aix*)  gl_cv_func_strerror_r_works="guessing no";;
26385                        # Guess no on HP-UX.
26386                 hpux*) gl_cv_func_strerror_r_works="guessing no";;
26387                        # Guess no on BSD variants.
26388                 *bsd*)  gl_cv_func_strerror_r_works="guessing no";;
26389                        # Guess yes otherwise.
26390                 *)     gl_cv_func_strerror_r_works="guessing yes";;
26391               esac
26392
26393 else
26394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26395 /* end confdefs.h.  */
26396 #include <errno.h>
26397                   #include <string.h>
26398
26399 int
26400 main ()
26401 {
26402 int result = 0;
26403                   char buf[79];
26404                   if (strerror_r (EACCES, buf, 0) < 0)
26405                     result |= 1;
26406                   errno = 0;
26407                   if (strerror_r (EACCES, buf, sizeof buf) != 0)
26408                     result |= 2;
26409                   strcpy (buf, "Unknown");
26410                   if (strerror_r (0, buf, sizeof buf) != 0)
26411                     result |= 4;
26412                   if (errno)
26413                     result |= 8;
26414                   if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
26415                     result |= 0x10;
26416                   errno = 0;
26417                   *buf = 0;
26418                   if (strerror_r (-3, buf, sizeof buf) < 0)
26419                     result |= 0x20;
26420                   if (errno)
26421                     result |= 0x40;
26422                   if (!*buf)
26423                     result |= 0x80;
26424                   return result;
26425
26426   ;
26427   return 0;
26428 }
26429 _ACEOF
26430 if ac_fn_c_try_run "$LINENO"; then :
26431   gl_cv_func_strerror_r_works=yes
26432 else
26433   gl_cv_func_strerror_r_works=no
26434 fi
26435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26436   conftest.$ac_objext conftest.beam conftest.$ac_ext
26437 fi
26438
26439
26440 fi
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
26442 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
26443       else
26444
26445   :
26446
26447
26448
26449
26450
26451                         if test $ac_cv_func___xpg_strerror_r = yes; then
26452           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
26453 $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
26454 if ${gl_cv_func_strerror_r_works+:} false; then :
26455   $as_echo_n "(cached) " >&6
26456 else
26457   if test "$cross_compiling" = yes; then :
26458                                   gl_cv_func_strerror_r_works="guessing no"
26459
26460 else
26461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26462 /* end confdefs.h.  */
26463 #include <errno.h>
26464                     #include <string.h>
26465                     extern
26466                     #ifdef __cplusplus
26467                     "C"
26468                     #endif
26469                     int __xpg_strerror_r(int, char *, size_t);
26470
26471 int
26472 main ()
26473 {
26474 int result = 0;
26475                     char buf[256] = "^";
26476                     char copy[256];
26477                     char *str = strerror (-1);
26478                     strcpy (copy, str);
26479                     if (__xpg_strerror_r (-2, buf, 1) == 0)
26480                       result |= 1;
26481                     if (*buf)
26482                       result |= 2;
26483                     __xpg_strerror_r (-2, buf, 256);
26484                     if (strcmp (str, copy))
26485                       result |= 4;
26486                     return result;
26487
26488   ;
26489   return 0;
26490 }
26491 _ACEOF
26492 if ac_fn_c_try_run "$LINENO"; then :
26493   gl_cv_func_strerror_r_works=yes
26494 else
26495   gl_cv_func_strerror_r_works=no
26496 fi
26497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26498   conftest.$ac_objext conftest.beam conftest.$ac_ext
26499 fi
26500
26501
26502 fi
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
26504 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
26505         fi
26506       fi
26507     fi
26508   fi
26509
26510
26511       ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
26512 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
26513   ac_have_decl=1
26514 else
26515   ac_have_decl=0
26516 fi
26517
26518 cat >>confdefs.h <<_ACEOF
26519 #define HAVE_DECL_STRERROR_R $ac_have_decl
26520 _ACEOF
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530   :
26531
26532
26533
26534
26535
26536   if test $ac_cv_have_decl_strerror_r = no; then
26537     HAVE_DECL_STRERROR_R=0
26538   fi
26539
26540   if test $ac_cv_func_strerror_r = yes; then
26541     if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
26542       if test $gl_cv_func_strerror_r_posix_signature = yes; then
26543         case "$gl_cv_func_strerror_r_works" in
26544                     *no) REPLACE_STRERROR_R=1 ;;
26545         esac
26546       else
26547                 REPLACE_STRERROR_R=1
26548       fi
26549     else
26550                   REPLACE_STRERROR_R=1
26551     fi
26552   fi
26553
26554
26555   GNULIB_PSELECT=0;
26556   GNULIB_SELECT=0;
26557     HAVE_PSELECT=1;
26558   REPLACE_PSELECT=0;
26559   REPLACE_SELECT=0;
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
26570 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
26571 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
26572   $as_echo_n "(cached) " >&6
26573 else
26574
26575                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26576 /* end confdefs.h.  */
26577 #include <sys/select.h>
26578 int
26579 main ()
26580 {
26581 struct timeval b;
26582   ;
26583   return 0;
26584 }
26585 _ACEOF
26586 if ac_fn_c_try_compile "$LINENO"; then :
26587   gl_cv_header_sys_select_h_selfcontained=yes
26588 else
26589   gl_cv_header_sys_select_h_selfcontained=no
26590 fi
26591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26592                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
26593         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26594 /* end confdefs.h.  */
26595 #include <sys/select.h>
26596 int
26597 main ()
26598 {
26599 int memset; int bzero;
26600   ;
26601   return 0;
26602 }
26603
26604 _ACEOF
26605 if ac_fn_c_try_compile "$LINENO"; then :
26606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26607 /* end confdefs.h.  */
26608 #include <sys/select.h>
26609 int
26610 main ()
26611 {
26612
26613                   #undef memset
26614                   #define memset nonexistent_memset
26615                   extern
26616                   #ifdef __cplusplus
26617                   "C"
26618                   #endif
26619                   void *memset (void *, int, unsigned long);
26620                   #undef bzero
26621                   #define bzero nonexistent_bzero
26622                   extern
26623                   #ifdef __cplusplus
26624                   "C"
26625                   #endif
26626                   void bzero (void *, unsigned long);
26627                   fd_set fds;
26628                   FD_ZERO (&fds);
26629
26630   ;
26631   return 0;
26632 }
26633
26634 _ACEOF
26635 if ac_fn_c_try_link "$LINENO"; then :
26636
26637 else
26638   gl_cv_header_sys_select_h_selfcontained=no
26639 fi
26640 rm -f core conftest.err conftest.$ac_objext \
26641     conftest$ac_exeext conftest.$ac_ext
26642
26643 fi
26644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26645       fi
26646
26647 fi
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
26649 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
26650
26651
26652
26653
26654
26655
26656   :
26657
26658
26659
26660
26661
26662
26663
26664
26665      if test $gl_cv_have_include_next = yes; then
26666        gl_cv_next_sys_select_h='<'sys/select.h'>'
26667      else
26668        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
26669 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
26670 if ${gl_cv_next_sys_select_h+:} false; then :
26671   $as_echo_n "(cached) " >&6
26672 else
26673
26674              if test $ac_cv_header_sys_select_h = yes; then
26675
26676
26677                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26678 /* end confdefs.h.  */
26679 #include <sys/select.h>
26680
26681 _ACEOF
26682                                                                                                                         case "$host_os" in
26683                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
26684                  *)    gl_absname_cpp="$ac_cpp" ;;
26685                esac
26686
26687                case "$host_os" in
26688                  mingw*)
26689                                                                                                                                      gl_dirsep_regex='[/\\]'
26690                    ;;
26691                  *)
26692                    gl_dirsep_regex='\/'
26693                    ;;
26694                esac
26695                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26696
26697                gl_header_literal_regex=`echo 'sys/select.h' \
26698                                         | sed -e "$gl_make_literal_regex_sed"`
26699                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26700                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26701                    s|^/[^/]|//&|
26702                    p
26703                    q
26704                  }'
26705                                                             gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26706                       sed -n "$gl_absolute_header_sed"`'"'
26707           else
26708                gl_cv_next_sys_select_h='<'sys/select.h'>'
26709              fi
26710
26711
26712 fi
26713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
26714 $as_echo "$gl_cv_next_sys_select_h" >&6; }
26715      fi
26716      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
26717
26718      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26719        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26720        gl_next_as_first_directive='<'sys/select.h'>'
26721      else
26722        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26723        gl_next_as_first_directive=$gl_cv_next_sys_select_h
26724      fi
26725      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
26726
26727
26728
26729
26730   if test $ac_cv_header_sys_select_h = yes; then
26731     HAVE_SYS_SELECT_H=1
26732   else
26733     HAVE_SYS_SELECT_H=0
26734   fi
26735
26736
26737
26738
26739
26740   :
26741
26742
26743
26744
26745
26746   if test $ac_cv_header_sys_socket_h != yes; then
26747                     for ac_header in winsock2.h
26748 do :
26749   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26750 if test "x$ac_cv_header_winsock2_h" = xyes; then :
26751   cat >>confdefs.h <<_ACEOF
26752 #define HAVE_WINSOCK2_H 1
26753 _ACEOF
26754
26755 fi
26756
26757 done
26758
26759   fi
26760   if test "$ac_cv_header_winsock2_h" = yes; then
26761     HAVE_WINSOCK2_H=1
26762     UNISTD_H_HAVE_WINSOCK2_H=1
26763     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
26764   else
26765     HAVE_WINSOCK2_H=0
26766   fi
26767
26768
26769
26770
26771     for gl_func in pselect select; do
26772     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26774 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26775 if eval \${$as_gl_Symbol+:} false; then :
26776   $as_echo_n "(cached) " >&6
26777 else
26778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26779 /* end confdefs.h.  */
26780
26781 /* Some systems require prerequisite headers.  */
26782 #include <sys/types.h>
26783 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
26784 # include <sys/time.h>
26785 #endif
26786 #include <sys/select.h>
26787
26788 int
26789 main ()
26790 {
26791 #undef $gl_func
26792   (void) $gl_func;
26793   ;
26794   return 0;
26795 }
26796 _ACEOF
26797 if ac_fn_c_try_compile "$LINENO"; then :
26798   eval "$as_gl_Symbol=yes"
26799 else
26800   eval "$as_gl_Symbol=no"
26801 fi
26802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26803 fi
26804 eval ac_res=\$$as_gl_Symbol
26805                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26806 $as_echo "$ac_res" >&6; }
26807     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26808   cat >>confdefs.h <<_ACEOF
26809 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26810 _ACEOF
26811
26812                      eval ac_cv_have_decl_$gl_func=yes
26813 fi
26814       done
26815
26816
26817
26818   GNULIB_PTHREAD_SIGMASK=0;
26819   GNULIB_RAISE=0;
26820   GNULIB_SIGNAL_H_SIGPIPE=0;
26821   GNULIB_SIGPROCMASK=0;
26822   GNULIB_SIGACTION=0;
26823     HAVE_POSIX_SIGNALBLOCKING=1;
26824   HAVE_PTHREAD_SIGMASK=1;
26825   HAVE_RAISE=1;
26826   HAVE_SIGSET_T=1;
26827   HAVE_SIGINFO_T=1;
26828   HAVE_SIGACTION=1;
26829   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
26830
26831   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
26832
26833   HAVE_SIGHANDLER_T=1;
26834   REPLACE_PTHREAD_SIGMASK=0;
26835   REPLACE_RAISE=0;
26836
26837
26838   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
26839       #include <signal.h>
26840       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
26841       #include <sys/types.h>
26842
26843 "
26844 if test "x$ac_cv_type_sigset_t" = xyes; then :
26845
26846 cat >>confdefs.h <<_ACEOF
26847 #define HAVE_SIGSET_T 1
26848 _ACEOF
26849
26850 gl_cv_type_sigset_t=yes
26851 else
26852   gl_cv_type_sigset_t=no
26853 fi
26854
26855   if test $gl_cv_type_sigset_t != yes; then
26856     HAVE_SIGSET_T=0
26857   fi
26858
26859 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26860 if test "x$ac_cv_type_pid_t" = xyes; then :
26861
26862 else
26863
26864 cat >>confdefs.h <<_ACEOF
26865 #define pid_t int
26866 _ACEOF
26867
26868 fi
26869
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26871 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26872 if ${ac_cv_type_uid_t+:} false; then :
26873   $as_echo_n "(cached) " >&6
26874 else
26875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26876 /* end confdefs.h.  */
26877 #include <sys/types.h>
26878
26879 _ACEOF
26880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26881   $EGREP "uid_t" >/dev/null 2>&1; then :
26882   ac_cv_type_uid_t=yes
26883 else
26884   ac_cv_type_uid_t=no
26885 fi
26886 rm -f conftest*
26887
26888 fi
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26890 $as_echo "$ac_cv_type_uid_t" >&6; }
26891 if test $ac_cv_type_uid_t = no; then
26892
26893 $as_echo "#define uid_t int" >>confdefs.h
26894
26895
26896 $as_echo "#define gid_t int" >>confdefs.h
26897
26898 fi
26899
26900
26901
26902
26903
26904
26905
26906
26907   :
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
26918 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
26919 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
26920   $as_echo_n "(cached) " >&6
26921 else
26922
26923       if test "$cross_compiling" = yes; then :
26924
26925          case "$host_os" in
26926                                  # Guess yes on glibc systems.
26927            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
26928                                  # Guess yes on FreeBSD >= 5.
26929            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
26930            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
26931                                  # Guess yes on MacOS X >= 10.3.
26932            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
26933            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
26934                                  # Guess yes on OpenBSD >= 3.9.
26935            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
26936                                  gl_cv_func_snprintf_retval_c99="guessing no";;
26937            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
26938                                  # Guess yes on Solaris >= 2.10.
26939            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
26940            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
26941                                  # Guess yes on AIX >= 4.
26942            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
26943            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
26944                                  # Guess yes on NetBSD >= 3.
26945            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
26946                                  gl_cv_func_snprintf_retval_c99="guessing no";;
26947            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
26948                                  # Guess yes on BeOS.
26949            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
26950                                  # If we don't know, assume the worst.
26951            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
26952          esac
26953
26954 else
26955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26956 /* end confdefs.h.  */
26957
26958 #include <stdio.h>
26959 #include <string.h>
26960 #if HAVE_SNPRINTF
26961 # define my_snprintf snprintf
26962 #else
26963 # include <stdarg.h>
26964 static int my_snprintf (char *buf, int size, const char *format, ...)
26965 {
26966   va_list args;
26967   int ret;
26968   va_start (args, format);
26969   ret = vsnprintf (buf, size, format, args);
26970   va_end (args);
26971   return ret;
26972 }
26973 #endif
26974 static char buf[100];
26975 int main ()
26976 {
26977   strcpy (buf, "ABCDEF");
26978   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
26979     return 1;
26980   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
26981     return 2;
26982   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
26983     return 3;
26984   return 0;
26985 }
26986 _ACEOF
26987 if ac_fn_c_try_run "$LINENO"; then :
26988   gl_cv_func_snprintf_retval_c99=yes
26989 else
26990   gl_cv_func_snprintf_retval_c99=no
26991 fi
26992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26993   conftest.$ac_objext conftest.beam conftest.$ac_ext
26994 fi
26995
26996
26997 fi
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
26999 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
27000
27001
27002       ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
27003 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
27004   ac_have_decl=1
27005 else
27006   ac_have_decl=0
27007 fi
27008
27009 cat >>confdefs.h <<_ACEOF
27010 #define HAVE_DECL_SNPRINTF $ac_have_decl
27011 _ACEOF
27012
27013
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
27015 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
27016 if ${ac_cv_header_stdbool_h+:} false; then :
27017   $as_echo_n "(cached) " >&6
27018 else
27019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27020 /* end confdefs.h.  */
27021
27022              #include <stdbool.h>
27023              #ifndef bool
27024               "error: bool is not defined"
27025              #endif
27026              #ifndef false
27027               "error: false is not defined"
27028              #endif
27029              #if false
27030               "error: false is not 0"
27031              #endif
27032              #ifndef true
27033               "error: true is not defined"
27034              #endif
27035              #if true != 1
27036               "error: true is not 1"
27037              #endif
27038              #ifndef __bool_true_false_are_defined
27039               "error: __bool_true_false_are_defined is not defined"
27040              #endif
27041
27042              struct s { _Bool s: 1; _Bool t; } s;
27043
27044              char a[true == 1 ? 1 : -1];
27045              char b[false == 0 ? 1 : -1];
27046              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
27047              char d[(bool) 0.5 == true ? 1 : -1];
27048              /* See body of main program for 'e'.  */
27049              char f[(_Bool) 0.0 == false ? 1 : -1];
27050              char g[true];
27051              char h[sizeof (_Bool)];
27052              char i[sizeof s.t];
27053              enum { j = false, k = true, l = false * true, m = true * 256 };
27054              /* The following fails for
27055                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
27056              _Bool n[m];
27057              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
27058              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
27059              /* Catch a bug in an HP-UX C compiler.  See
27060                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
27061                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
27062               */
27063              _Bool q = true;
27064              _Bool *pq = &q;
27065
27066 int
27067 main ()
27068 {
27069
27070              bool e = &s;
27071              *pq |= q;
27072              *pq |= ! q;
27073              /* Refer to every declared value, to avoid compiler optimizations.  */
27074              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
27075                      + !m + !n + !o + !p + !q + !pq);
27076
27077   ;
27078   return 0;
27079 }
27080 _ACEOF
27081 if ac_fn_c_try_compile "$LINENO"; then :
27082   ac_cv_header_stdbool_h=yes
27083 else
27084   ac_cv_header_stdbool_h=no
27085 fi
27086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27087 fi
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
27089 $as_echo "$ac_cv_header_stdbool_h" >&6; }
27090    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
27091 if test "x$ac_cv_type__Bool" = xyes; then :
27092
27093 cat >>confdefs.h <<_ACEOF
27094 #define HAVE__BOOL 1
27095 _ACEOF
27096
27097
27098 fi
27099
27100
27101
27102     REPLACE_NULL=0;
27103   HAVE_WCHAR_T=1;
27104
27105
27106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
27107 $as_echo_n "checking for wchar_t... " >&6; }
27108 if ${gt_cv_c_wchar_t+:} false; then :
27109   $as_echo_n "(cached) " >&6
27110 else
27111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27112 /* end confdefs.h.  */
27113 #include <stddef.h>
27114             wchar_t foo = (wchar_t)'\0';
27115 int
27116 main ()
27117 {
27118
27119   ;
27120   return 0;
27121 }
27122 _ACEOF
27123 if ac_fn_c_try_compile "$LINENO"; then :
27124   gt_cv_c_wchar_t=yes
27125 else
27126   gt_cv_c_wchar_t=no
27127 fi
27128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27129 fi
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
27131 $as_echo "$gt_cv_c_wchar_t" >&6; }
27132   if test $gt_cv_c_wchar_t = yes; then
27133
27134 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
27135
27136   fi
27137
27138
27139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
27140 $as_echo_n "checking for unsigned long long int... " >&6; }
27141 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
27142   $as_echo_n "(cached) " >&6
27143 else
27144   ac_cv_type_unsigned_long_long_int=yes
27145      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
27146        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27147 /* end confdefs.h.  */
27148
27149   /* For now, do not test the preprocessor; as of 2007 there are too many
27150          implementations with broken preprocessors.  Perhaps this can
27151          be revisited in 2012.  In the meantime, code should not expect
27152          #if to work with literals wider than 32 bits.  */
27153       /* Test literals.  */
27154       long long int ll = 9223372036854775807ll;
27155       long long int nll = -9223372036854775807LL;
27156       unsigned long long int ull = 18446744073709551615ULL;
27157       /* Test constant expressions.   */
27158       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
27159                      ? 1 : -1)];
27160       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
27161                      ? 1 : -1)];
27162       int i = 63;
27163 int
27164 main ()
27165 {
27166 /* Test availability of runtime routines for shift and division.  */
27167       long long int llmax = 9223372036854775807ll;
27168       unsigned long long int ullmax = 18446744073709551615ull;
27169       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
27170               | (llmax / ll) | (llmax % ll)
27171               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
27172               | (ullmax / ull) | (ullmax % ull));
27173   ;
27174   return 0;
27175 }
27176
27177 _ACEOF
27178 if ac_fn_c_try_link "$LINENO"; then :
27179
27180 else
27181   ac_cv_type_unsigned_long_long_int=no
27182 fi
27183 rm -f core conftest.err conftest.$ac_objext \
27184     conftest$ac_exeext conftest.$ac_ext
27185      fi
27186 fi
27187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
27188 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
27189   if test $ac_cv_type_unsigned_long_long_int = yes; then
27190
27191 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
27192
27193   fi
27194
27195
27196
27197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
27198 $as_echo_n "checking for long long int... " >&6; }
27199 if ${ac_cv_type_long_long_int+:} false; then :
27200   $as_echo_n "(cached) " >&6
27201 else
27202   ac_cv_type_long_long_int=yes
27203       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
27204         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
27205         if test $ac_cv_type_long_long_int = yes; then
27206                                         if test "$cross_compiling" = yes; then :
27207   :
27208 else
27209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27210 /* end confdefs.h.  */
27211 #include <limits.h>
27212                  #ifndef LLONG_MAX
27213                  # define HALF \
27214                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
27215                  # define LLONG_MAX (HALF - 1 + HALF)
27216                  #endif
27217 int
27218 main ()
27219 {
27220 long long int n = 1;
27221                  int i;
27222                  for (i = 0; ; i++)
27223                    {
27224                      long long int m = n << i;
27225                      if (m >> i != n)
27226                        return 1;
27227                      if (LLONG_MAX / 2 < m)
27228                        break;
27229                    }
27230                  return 0;
27231   ;
27232   return 0;
27233 }
27234 _ACEOF
27235 if ac_fn_c_try_run "$LINENO"; then :
27236
27237 else
27238   ac_cv_type_long_long_int=no
27239 fi
27240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27241   conftest.$ac_objext conftest.beam conftest.$ac_ext
27242 fi
27243
27244         fi
27245       fi
27246 fi
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
27248 $as_echo "$ac_cv_type_long_long_int" >&6; }
27249   if test $ac_cv_type_long_long_int = yes; then
27250
27251 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
27252
27253   fi
27254
27255
27256
27257
27258
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268   if test $ac_cv_type_long_long_int = yes; then
27269     HAVE_LONG_LONG_INT=1
27270   else
27271     HAVE_LONG_LONG_INT=0
27272   fi
27273
27274
27275   if test $ac_cv_type_unsigned_long_long_int = yes; then
27276     HAVE_UNSIGNED_LONG_LONG_INT=1
27277   else
27278     HAVE_UNSIGNED_LONG_LONG_INT=0
27279   fi
27280
27281
27282
27283   :
27284
27285
27286
27287
27288
27289   if test $ac_cv_header_wchar_h = yes; then
27290     HAVE_WCHAR_H=1
27291   else
27292     HAVE_WCHAR_H=0
27293   fi
27294
27295
27296       if test $ac_cv_header_inttypes_h = yes; then
27297     HAVE_INTTYPES_H=1
27298   else
27299     HAVE_INTTYPES_H=0
27300   fi
27301
27302
27303       if test $ac_cv_header_sys_types_h = yes; then
27304     HAVE_SYS_TYPES_H=1
27305   else
27306     HAVE_SYS_TYPES_H=0
27307   fi
27308
27309
27310
27311
27312
27313
27314
27315
27316   :
27317
27318
27319
27320
27321
27322
27323
27324
27325      if test $gl_cv_have_include_next = yes; then
27326        gl_cv_next_stdint_h='<'stdint.h'>'
27327      else
27328        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
27329 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
27330 if ${gl_cv_next_stdint_h+:} false; then :
27331   $as_echo_n "(cached) " >&6
27332 else
27333
27334              if test $ac_cv_header_stdint_h = yes; then
27335
27336
27337                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27338 /* end confdefs.h.  */
27339 #include <stdint.h>
27340
27341 _ACEOF
27342                                                                                                                         case "$host_os" in
27343                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
27344                  *)    gl_absname_cpp="$ac_cpp" ;;
27345                esac
27346
27347                case "$host_os" in
27348                  mingw*)
27349                                                                                                                                      gl_dirsep_regex='[/\\]'
27350                    ;;
27351                  *)
27352                    gl_dirsep_regex='\/'
27353                    ;;
27354                esac
27355                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27356
27357                gl_header_literal_regex=`echo 'stdint.h' \
27358                                         | sed -e "$gl_make_literal_regex_sed"`
27359                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27360                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27361                    s|^/[^/]|//&|
27362                    p
27363                    q
27364                  }'
27365                                                             gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27366                       sed -n "$gl_absolute_header_sed"`'"'
27367           else
27368                gl_cv_next_stdint_h='<'stdint.h'>'
27369              fi
27370
27371
27372 fi
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
27374 $as_echo "$gl_cv_next_stdint_h" >&6; }
27375      fi
27376      NEXT_STDINT_H=$gl_cv_next_stdint_h
27377
27378      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27379        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27380        gl_next_as_first_directive='<'stdint.h'>'
27381      else
27382        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27383        gl_next_as_first_directive=$gl_cv_next_stdint_h
27384      fi
27385      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
27386
27387
27388
27389
27390   if test $ac_cv_header_stdint_h = yes; then
27391     HAVE_STDINT_H=1
27392   else
27393     HAVE_STDINT_H=0
27394   fi
27395
27396
27397     if test $ac_cv_header_stdint_h = yes; then
27398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
27399 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
27400 if ${gl_cv_header_working_stdint_h+:} false; then :
27401   $as_echo_n "(cached) " >&6
27402 else
27403   gl_cv_header_working_stdint_h=no
27404        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27405 /* end confdefs.h.  */
27406
27407
27408 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
27409 #include <stdint.h>
27410 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
27411 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
27412 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
27413 #endif
27414
27415
27416   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27417      included before <wchar.h>.  */
27418   #include <stddef.h>
27419   #include <signal.h>
27420   #if HAVE_WCHAR_H
27421   # include <stdio.h>
27422   # include <time.h>
27423   # include <wchar.h>
27424   #endif
27425
27426
27427 #ifdef INT8_MAX
27428 int8_t a1 = INT8_MAX;
27429 int8_t a1min = INT8_MIN;
27430 #endif
27431 #ifdef INT16_MAX
27432 int16_t a2 = INT16_MAX;
27433 int16_t a2min = INT16_MIN;
27434 #endif
27435 #ifdef INT32_MAX
27436 int32_t a3 = INT32_MAX;
27437 int32_t a3min = INT32_MIN;
27438 #endif
27439 #ifdef INT64_MAX
27440 int64_t a4 = INT64_MAX;
27441 int64_t a4min = INT64_MIN;
27442 #endif
27443 #ifdef UINT8_MAX
27444 uint8_t b1 = UINT8_MAX;
27445 #else
27446 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
27447 #endif
27448 #ifdef UINT16_MAX
27449 uint16_t b2 = UINT16_MAX;
27450 #endif
27451 #ifdef UINT32_MAX
27452 uint32_t b3 = UINT32_MAX;
27453 #endif
27454 #ifdef UINT64_MAX
27455 uint64_t b4 = UINT64_MAX;
27456 #endif
27457 int_least8_t c1 = INT8_C (0x7f);
27458 int_least8_t c1max = INT_LEAST8_MAX;
27459 int_least8_t c1min = INT_LEAST8_MIN;
27460 int_least16_t c2 = INT16_C (0x7fff);
27461 int_least16_t c2max = INT_LEAST16_MAX;
27462 int_least16_t c2min = INT_LEAST16_MIN;
27463 int_least32_t c3 = INT32_C (0x7fffffff);
27464 int_least32_t c3max = INT_LEAST32_MAX;
27465 int_least32_t c3min = INT_LEAST32_MIN;
27466 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
27467 int_least64_t c4max = INT_LEAST64_MAX;
27468 int_least64_t c4min = INT_LEAST64_MIN;
27469 uint_least8_t d1 = UINT8_C (0xff);
27470 uint_least8_t d1max = UINT_LEAST8_MAX;
27471 uint_least16_t d2 = UINT16_C (0xffff);
27472 uint_least16_t d2max = UINT_LEAST16_MAX;
27473 uint_least32_t d3 = UINT32_C (0xffffffff);
27474 uint_least32_t d3max = UINT_LEAST32_MAX;
27475 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
27476 uint_least64_t d4max = UINT_LEAST64_MAX;
27477 int_fast8_t e1 = INT_FAST8_MAX;
27478 int_fast8_t e1min = INT_FAST8_MIN;
27479 int_fast16_t e2 = INT_FAST16_MAX;
27480 int_fast16_t e2min = INT_FAST16_MIN;
27481 int_fast32_t e3 = INT_FAST32_MAX;
27482 int_fast32_t e3min = INT_FAST32_MIN;
27483 int_fast64_t e4 = INT_FAST64_MAX;
27484 int_fast64_t e4min = INT_FAST64_MIN;
27485 uint_fast8_t f1 = UINT_FAST8_MAX;
27486 uint_fast16_t f2 = UINT_FAST16_MAX;
27487 uint_fast32_t f3 = UINT_FAST32_MAX;
27488 uint_fast64_t f4 = UINT_FAST64_MAX;
27489 #ifdef INTPTR_MAX
27490 intptr_t g = INTPTR_MAX;
27491 intptr_t gmin = INTPTR_MIN;
27492 #endif
27493 #ifdef UINTPTR_MAX
27494 uintptr_t h = UINTPTR_MAX;
27495 #endif
27496 intmax_t i = INTMAX_MAX;
27497 uintmax_t j = UINTMAX_MAX;
27498
27499 #include <limits.h> /* for CHAR_BIT */
27500 #define TYPE_MINIMUM(t) \
27501   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
27502 #define TYPE_MAXIMUM(t) \
27503   ((t) ((t) 0 < (t) -1 \
27504         ? (t) -1 \
27505         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
27506 struct s {
27507   int check_PTRDIFF:
27508       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
27509       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
27510       ? 1 : -1;
27511   /* Detect bug in FreeBSD 6.0 / ia64.  */
27512   int check_SIG_ATOMIC:
27513       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
27514       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
27515       ? 1 : -1;
27516   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
27517   int check_WCHAR:
27518       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
27519       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
27520       ? 1 : -1;
27521   /* Detect bug in mingw.  */
27522   int check_WINT:
27523       WINT_MIN == TYPE_MINIMUM (wint_t)
27524       && WINT_MAX == TYPE_MAXIMUM (wint_t)
27525       ? 1 : -1;
27526
27527   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
27528   int check_UINT8_C:
27529         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
27530   int check_UINT16_C:
27531         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
27532
27533   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
27534 #ifdef UINT8_MAX
27535   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
27536 #endif
27537 #ifdef UINT16_MAX
27538   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
27539 #endif
27540 #ifdef UINT32_MAX
27541   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
27542 #endif
27543 #ifdef UINT64_MAX
27544   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
27545 #endif
27546   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
27547   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
27548   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
27549   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
27550   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
27551   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
27552   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
27553   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
27554   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
27555   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
27556   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
27557 };
27558
27559 int
27560 main ()
27561 {
27562
27563   ;
27564   return 0;
27565 }
27566 _ACEOF
27567 if ac_fn_c_try_compile "$LINENO"; then :
27568                                                     if test "$cross_compiling" = yes; then :
27569                  gl_cv_header_working_stdint_h=yes
27570
27571 else
27572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27573 /* end confdefs.h.  */
27574
27575
27576 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
27577 #include <stdint.h>
27578
27579
27580   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27581      included before <wchar.h>.  */
27582   #include <stddef.h>
27583   #include <signal.h>
27584   #if HAVE_WCHAR_H
27585   # include <stdio.h>
27586   # include <time.h>
27587   # include <wchar.h>
27588   #endif
27589
27590
27591 #include <stdio.h>
27592 #include <string.h>
27593 #define MVAL(macro) MVAL1(macro)
27594 #define MVAL1(expression) #expression
27595 static const char *macro_values[] =
27596   {
27597 #ifdef INT8_MAX
27598     MVAL (INT8_MAX),
27599 #endif
27600 #ifdef INT16_MAX
27601     MVAL (INT16_MAX),
27602 #endif
27603 #ifdef INT32_MAX
27604     MVAL (INT32_MAX),
27605 #endif
27606 #ifdef INT64_MAX
27607     MVAL (INT64_MAX),
27608 #endif
27609 #ifdef UINT8_MAX
27610     MVAL (UINT8_MAX),
27611 #endif
27612 #ifdef UINT16_MAX
27613     MVAL (UINT16_MAX),
27614 #endif
27615 #ifdef UINT32_MAX
27616     MVAL (UINT32_MAX),
27617 #endif
27618 #ifdef UINT64_MAX
27619     MVAL (UINT64_MAX),
27620 #endif
27621     NULL
27622   };
27623
27624 int
27625 main ()
27626 {
27627
27628   const char **mv;
27629   for (mv = macro_values; *mv != NULL; mv++)
27630     {
27631       const char *value = *mv;
27632       /* Test whether it looks like a cast expression.  */
27633       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
27634           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
27635           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
27636           || strncmp (value, "((int)"/*)*/, 6) == 0
27637           || strncmp (value, "((signed short)"/*)*/, 15) == 0
27638           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
27639         return mv - macro_values + 1;
27640     }
27641   return 0;
27642
27643   ;
27644   return 0;
27645 }
27646 _ACEOF
27647 if ac_fn_c_try_run "$LINENO"; then :
27648   gl_cv_header_working_stdint_h=yes
27649 fi
27650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27651   conftest.$ac_objext conftest.beam conftest.$ac_ext
27652 fi
27653
27654
27655 fi
27656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27657
27658 fi
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
27660 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
27661   fi
27662   if test "$gl_cv_header_working_stdint_h" = yes; then
27663     STDINT_H=
27664   else
27665             for ac_header in sys/inttypes.h sys/bitypes.h
27666 do :
27667   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27668 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27669 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27670   cat >>confdefs.h <<_ACEOF
27671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27672 _ACEOF
27673
27674 fi
27675
27676 done
27677
27678     if test $ac_cv_header_sys_inttypes_h = yes; then
27679       HAVE_SYS_INTTYPES_H=1
27680     else
27681       HAVE_SYS_INTTYPES_H=0
27682     fi
27683
27684     if test $ac_cv_header_sys_bitypes_h = yes; then
27685       HAVE_SYS_BITYPES_H=1
27686     else
27687       HAVE_SYS_BITYPES_H=0
27688     fi
27689
27690
27691
27692
27693   if test $APPLE_UNIVERSAL_BUILD = 0; then
27694
27695
27696   for gltype in ptrdiff_t size_t ; do
27697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
27698 $as_echo_n "checking for bit size of $gltype... " >&6; }
27699 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
27700   $as_echo_n "(cached) " >&6
27701 else
27702   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
27703   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27704      included before <wchar.h>.  */
27705   #include <stddef.h>
27706   #include <signal.h>
27707   #if HAVE_WCHAR_H
27708   # include <stdio.h>
27709   # include <time.h>
27710   # include <wchar.h>
27711   #endif
27712
27713 #include <limits.h>"; then :
27714
27715 else
27716   result=unknown
27717 fi
27718
27719        eval gl_cv_bitsizeof_${gltype}=\$result
27720
27721 fi
27722 eval ac_res=\$gl_cv_bitsizeof_${gltype}
27723                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27724 $as_echo "$ac_res" >&6; }
27725     eval result=\$gl_cv_bitsizeof_${gltype}
27726     if test $result = unknown; then
27727                                                 result=0
27728     fi
27729     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27730     cat >>confdefs.h <<_ACEOF
27731 #define BITSIZEOF_${GLTYPE} $result
27732 _ACEOF
27733
27734     eval BITSIZEOF_${GLTYPE}=\$result
27735   done
27736
27737
27738   fi
27739
27740
27741   for gltype in sig_atomic_t wchar_t wint_t ; do
27742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
27743 $as_echo_n "checking for bit size of $gltype... " >&6; }
27744 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
27745   $as_echo_n "(cached) " >&6
27746 else
27747   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
27748   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27749      included before <wchar.h>.  */
27750   #include <stddef.h>
27751   #include <signal.h>
27752   #if HAVE_WCHAR_H
27753   # include <stdio.h>
27754   # include <time.h>
27755   # include <wchar.h>
27756   #endif
27757
27758 #include <limits.h>"; then :
27759
27760 else
27761   result=unknown
27762 fi
27763
27764        eval gl_cv_bitsizeof_${gltype}=\$result
27765
27766 fi
27767 eval ac_res=\$gl_cv_bitsizeof_${gltype}
27768                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27769 $as_echo "$ac_res" >&6; }
27770     eval result=\$gl_cv_bitsizeof_${gltype}
27771     if test $result = unknown; then
27772                                                 result=0
27773     fi
27774     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27775     cat >>confdefs.h <<_ACEOF
27776 #define BITSIZEOF_${GLTYPE} $result
27777 _ACEOF
27778
27779     eval BITSIZEOF_${GLTYPE}=\$result
27780   done
27781
27782
27783
27784
27785   for gltype in sig_atomic_t wchar_t wint_t ; do
27786     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
27787 $as_echo_n "checking whether $gltype is signed... " >&6; }
27788 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
27789   $as_echo_n "(cached) " >&6
27790 else
27791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27792 /* end confdefs.h.  */
27793
27794   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27795      included before <wchar.h>.  */
27796   #include <stddef.h>
27797   #include <signal.h>
27798   #if HAVE_WCHAR_H
27799   # include <stdio.h>
27800   # include <time.h>
27801   # include <wchar.h>
27802   #endif
27803
27804             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
27805 int
27806 main ()
27807 {
27808
27809   ;
27810   return 0;
27811 }
27812 _ACEOF
27813 if ac_fn_c_try_compile "$LINENO"; then :
27814   result=yes
27815 else
27816   result=no
27817 fi
27818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27819        eval gl_cv_type_${gltype}_signed=\$result
27820
27821 fi
27822 eval ac_res=\$gl_cv_type_${gltype}_signed
27823                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27824 $as_echo "$ac_res" >&6; }
27825     eval result=\$gl_cv_type_${gltype}_signed
27826     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27827     if test "$result" = yes; then
27828       cat >>confdefs.h <<_ACEOF
27829 #define HAVE_SIGNED_${GLTYPE} 1
27830 _ACEOF
27831
27832       eval HAVE_SIGNED_${GLTYPE}=1
27833     else
27834       eval HAVE_SIGNED_${GLTYPE}=0
27835     fi
27836   done
27837
27838
27839   gl_cv_type_ptrdiff_t_signed=yes
27840   gl_cv_type_size_t_signed=no
27841   if test $APPLE_UNIVERSAL_BUILD = 0; then
27842
27843
27844   for gltype in ptrdiff_t size_t ; do
27845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
27846 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
27847 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
27848   $as_echo_n "(cached) " >&6
27849 else
27850   eval gl_cv_type_${gltype}_suffix=no
27851        eval result=\$gl_cv_type_${gltype}_signed
27852        if test "$result" = yes; then
27853          glsufu=
27854        else
27855          glsufu=u
27856        fi
27857        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
27858          case $glsuf in
27859            '')  gltype1='int';;
27860            l)   gltype1='long int';;
27861            ll)  gltype1='long long int';;
27862            i64) gltype1='__int64';;
27863            u)   gltype1='unsigned int';;
27864            ul)  gltype1='unsigned long int';;
27865            ull) gltype1='unsigned long long int';;
27866            ui64)gltype1='unsigned __int64';;
27867          esac
27868          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27869 /* end confdefs.h.  */
27870
27871   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27872      included before <wchar.h>.  */
27873   #include <stddef.h>
27874   #include <signal.h>
27875   #if HAVE_WCHAR_H
27876   # include <stdio.h>
27877   # include <time.h>
27878   # include <wchar.h>
27879   #endif
27880
27881               extern $gltype foo;
27882               extern $gltype1 foo;
27883 int
27884 main ()
27885 {
27886
27887   ;
27888   return 0;
27889 }
27890 _ACEOF
27891 if ac_fn_c_try_compile "$LINENO"; then :
27892   eval gl_cv_type_${gltype}_suffix=\$glsuf
27893 fi
27894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27895          eval result=\$gl_cv_type_${gltype}_suffix
27896          test "$result" != no && break
27897        done
27898 fi
27899 eval ac_res=\$gl_cv_type_${gltype}_suffix
27900                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27901 $as_echo "$ac_res" >&6; }
27902     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27903     eval result=\$gl_cv_type_${gltype}_suffix
27904     test "$result" = no && result=
27905     eval ${GLTYPE}_SUFFIX=\$result
27906     cat >>confdefs.h <<_ACEOF
27907 #define ${GLTYPE}_SUFFIX $result
27908 _ACEOF
27909
27910   done
27911
27912
27913   fi
27914
27915
27916   for gltype in sig_atomic_t wchar_t wint_t ; do
27917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
27918 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
27919 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
27920   $as_echo_n "(cached) " >&6
27921 else
27922   eval gl_cv_type_${gltype}_suffix=no
27923        eval result=\$gl_cv_type_${gltype}_signed
27924        if test "$result" = yes; then
27925          glsufu=
27926        else
27927          glsufu=u
27928        fi
27929        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
27930          case $glsuf in
27931            '')  gltype1='int';;
27932            l)   gltype1='long int';;
27933            ll)  gltype1='long long int';;
27934            i64) gltype1='__int64';;
27935            u)   gltype1='unsigned int';;
27936            ul)  gltype1='unsigned long int';;
27937            ull) gltype1='unsigned long long int';;
27938            ui64)gltype1='unsigned __int64';;
27939          esac
27940          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27941 /* end confdefs.h.  */
27942
27943   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27944      included before <wchar.h>.  */
27945   #include <stddef.h>
27946   #include <signal.h>
27947   #if HAVE_WCHAR_H
27948   # include <stdio.h>
27949   # include <time.h>
27950   # include <wchar.h>
27951   #endif
27952
27953               extern $gltype foo;
27954               extern $gltype1 foo;
27955 int
27956 main ()
27957 {
27958
27959   ;
27960   return 0;
27961 }
27962 _ACEOF
27963 if ac_fn_c_try_compile "$LINENO"; then :
27964   eval gl_cv_type_${gltype}_suffix=\$glsuf
27965 fi
27966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27967          eval result=\$gl_cv_type_${gltype}_suffix
27968          test "$result" != no && break
27969        done
27970 fi
27971 eval ac_res=\$gl_cv_type_${gltype}_suffix
27972                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27973 $as_echo "$ac_res" >&6; }
27974     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27975     eval result=\$gl_cv_type_${gltype}_suffix
27976     test "$result" = no && result=
27977     eval ${GLTYPE}_SUFFIX=\$result
27978     cat >>confdefs.h <<_ACEOF
27979 #define ${GLTYPE}_SUFFIX $result
27980 _ACEOF
27981
27982   done
27983
27984
27985
27986           if test $BITSIZEOF_WINT_T -lt 32; then
27987     BITSIZEOF_WINT_T=32
27988   fi
27989
27990     STDINT_H=stdint.h
27991   fi
27992
27993    if test -n "$STDINT_H"; then
27994   GL_GENERATE_STDINT_H_TRUE=
27995   GL_GENERATE_STDINT_H_FALSE='#'
27996 else
27997   GL_GENERATE_STDINT_H_TRUE='#'
27998   GL_GENERATE_STDINT_H_FALSE=
27999 fi
28000
28001
28002
28003
28004
28005
28006
28007
28008
28009
28010
28011
28012
28013
28014
28015
28016
28017
28018      if test $gl_cv_have_include_next = yes; then
28019        gl_cv_next_string_h='<'string.h'>'
28020      else
28021        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
28022 $as_echo_n "checking absolute name of <string.h>... " >&6; }
28023 if ${gl_cv_next_string_h+:} false; then :
28024   $as_echo_n "(cached) " >&6
28025 else
28026
28027                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28028 /* end confdefs.h.  */
28029 #include <string.h>
28030
28031 _ACEOF
28032                                                                                                                         case "$host_os" in
28033                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
28034                  *)    gl_absname_cpp="$ac_cpp" ;;
28035                esac
28036
28037                case "$host_os" in
28038                  mingw*)
28039                                                                                                                                      gl_dirsep_regex='[/\\]'
28040                    ;;
28041                  *)
28042                    gl_dirsep_regex='\/'
28043                    ;;
28044                esac
28045                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28046
28047                gl_header_literal_regex=`echo 'string.h' \
28048                                         | sed -e "$gl_make_literal_regex_sed"`
28049                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28050                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28051                    s|^/[^/]|//&|
28052                    p
28053                    q
28054                  }'
28055                                                             gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28056                       sed -n "$gl_absolute_header_sed"`'"'
28057
28058
28059 fi
28060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
28061 $as_echo "$gl_cv_next_string_h" >&6; }
28062      fi
28063      NEXT_STRING_H=$gl_cv_next_string_h
28064
28065      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28066        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28067        gl_next_as_first_directive='<'string.h'>'
28068      else
28069        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28070        gl_next_as_first_directive=$gl_cv_next_string_h
28071      fi
28072      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
28073
28074
28075
28076
28077
28078
28079     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
28080     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
28081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
28082 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
28083 if eval \${$as_gl_Symbol+:} false; then :
28084   $as_echo_n "(cached) " >&6
28085 else
28086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28087 /* end confdefs.h.  */
28088 #include <string.h>
28089
28090 int
28091 main ()
28092 {
28093 #undef $gl_func
28094   (void) $gl_func;
28095   ;
28096   return 0;
28097 }
28098 _ACEOF
28099 if ac_fn_c_try_compile "$LINENO"; then :
28100   eval "$as_gl_Symbol=yes"
28101 else
28102   eval "$as_gl_Symbol=no"
28103 fi
28104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28105 fi
28106 eval ac_res=\$$as_gl_Symbol
28107                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28108 $as_echo "$ac_res" >&6; }
28109     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
28110   cat >>confdefs.h <<_ACEOF
28111 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
28112 _ACEOF
28113
28114                      eval ac_cv_have_decl_$gl_func=yes
28115 fi
28116       done
28117
28118
28119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
28120 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
28121 if ${ac_cv_header_stat_broken+:} false; then :
28122   $as_echo_n "(cached) " >&6
28123 else
28124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28125 /* end confdefs.h.  */
28126 #include <sys/types.h>
28127 #include <sys/stat.h>
28128
28129 #if defined S_ISBLK && defined S_IFDIR
28130 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
28131 #endif
28132
28133 #if defined S_ISBLK && defined S_IFCHR
28134 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
28135 #endif
28136
28137 #if defined S_ISLNK && defined S_IFREG
28138 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
28139 #endif
28140
28141 #if defined S_ISSOCK && defined S_IFREG
28142 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
28143 #endif
28144
28145 _ACEOF
28146 if ac_fn_c_try_compile "$LINENO"; then :
28147   ac_cv_header_stat_broken=no
28148 else
28149   ac_cv_header_stat_broken=yes
28150 fi
28151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28152 fi
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
28154 $as_echo "$ac_cv_header_stat_broken" >&6; }
28155 if test $ac_cv_header_stat_broken = yes; then
28156
28157 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
28158
28159 fi
28160
28161
28162
28163
28164
28165
28166 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
28167 if test "x$ac_cv_type_mode_t" = xyes; then :
28168
28169 else
28170
28171 cat >>confdefs.h <<_ACEOF
28172 #define mode_t int
28173 _ACEOF
28174
28175 fi
28176
28177
28178
28179
28180
28181
28182
28183
28184
28185
28186
28187   GNULIB_MKTIME=0;
28188   GNULIB_NANOSLEEP=0;
28189   GNULIB_STRPTIME=0;
28190   GNULIB_TIMEGM=0;
28191   GNULIB_TIME_R=0;
28192     HAVE_DECL_LOCALTIME_R=1;
28193   HAVE_NANOSLEEP=1;
28194   HAVE_STRPTIME=1;
28195   HAVE_TIMEGM=1;
28196         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
28197   REPLACE_MKTIME=GNULIB_PORTCHECK;
28198   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
28199   REPLACE_TIMEGM=GNULIB_PORTCHECK;
28200
28201
28202
28203   :
28204
28205
28206
28207
28208
28209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
28210 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
28211 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
28212   $as_echo_n "(cached) " >&6
28213 else
28214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28215 /* end confdefs.h.  */
28216 #include <time.h>
28217
28218 int
28219 main ()
28220 {
28221 static struct timespec x; x.tv_sec = x.tv_nsec;
28222   ;
28223   return 0;
28224 }
28225 _ACEOF
28226 if ac_fn_c_try_compile "$LINENO"; then :
28227   gl_cv_sys_struct_timespec_in_time_h=yes
28228 else
28229   gl_cv_sys_struct_timespec_in_time_h=no
28230 fi
28231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28232 fi
28233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
28234 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
28235
28236   TIME_H_DEFINES_STRUCT_TIMESPEC=0
28237   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
28238   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
28239   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
28240     TIME_H_DEFINES_STRUCT_TIMESPEC=1
28241   else
28242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
28243 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
28244 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
28245   $as_echo_n "(cached) " >&6
28246 else
28247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28248 /* end confdefs.h.  */
28249 #include <sys/time.h>
28250
28251 int
28252 main ()
28253 {
28254 static struct timespec x; x.tv_sec = x.tv_nsec;
28255   ;
28256   return 0;
28257 }
28258 _ACEOF
28259 if ac_fn_c_try_compile "$LINENO"; then :
28260   gl_cv_sys_struct_timespec_in_sys_time_h=yes
28261 else
28262   gl_cv_sys_struct_timespec_in_sys_time_h=no
28263 fi
28264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28265 fi
28266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
28267 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
28268     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
28269       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
28270     else
28271       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
28272 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
28273 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
28274   $as_echo_n "(cached) " >&6
28275 else
28276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28277 /* end confdefs.h.  */
28278 #include <pthread.h>
28279
28280 int
28281 main ()
28282 {
28283 static struct timespec x; x.tv_sec = x.tv_nsec;
28284   ;
28285   return 0;
28286 }
28287 _ACEOF
28288 if ac_fn_c_try_compile "$LINENO"; then :
28289   gl_cv_sys_struct_timespec_in_pthread_h=yes
28290 else
28291   gl_cv_sys_struct_timespec_in_pthread_h=no
28292 fi
28293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28294 fi
28295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
28296 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
28297       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
28298         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
28299       fi
28300     fi
28301   fi
28302
28303
28304
28305
28306
28307
28308
28309
28310
28311
28312
28313
28314
28315
28316
28317      if test $gl_cv_have_include_next = yes; then
28318        gl_cv_next_time_h='<'time.h'>'
28319      else
28320        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
28321 $as_echo_n "checking absolute name of <time.h>... " >&6; }
28322 if ${gl_cv_next_time_h+:} false; then :
28323   $as_echo_n "(cached) " >&6
28324 else
28325
28326                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28327 /* end confdefs.h.  */
28328 #include <time.h>
28329
28330 _ACEOF
28331                                                                                                                         case "$host_os" in
28332                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
28333                  *)    gl_absname_cpp="$ac_cpp" ;;
28334                esac
28335
28336                case "$host_os" in
28337                  mingw*)
28338                                                                                                                                      gl_dirsep_regex='[/\\]'
28339                    ;;
28340                  *)
28341                    gl_dirsep_regex='\/'
28342                    ;;
28343                esac
28344                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28345
28346                gl_header_literal_regex=`echo 'time.h' \
28347                                         | sed -e "$gl_make_literal_regex_sed"`
28348                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28349                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28350                    s|^/[^/]|//&|
28351                    p
28352                    q
28353                  }'
28354                                                             gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28355                       sed -n "$gl_absolute_header_sed"`'"'
28356
28357
28358 fi
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
28360 $as_echo "$gl_cv_next_time_h" >&6; }
28361      fi
28362      NEXT_TIME_H=$gl_cv_next_time_h
28363
28364      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28365        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28366        gl_next_as_first_directive='<'time.h'>'
28367      else
28368        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28369        gl_next_as_first_directive=$gl_cv_next_time_h
28370      fi
28371      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
28372
28373
28374
28375
28376
28377
28378
28379
28380
28381
28382
28383
28384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
28385 $as_echo_n "checking for wint_t... " >&6; }
28386 if ${gt_cv_c_wint_t+:} false; then :
28387   $as_echo_n "(cached) " >&6
28388 else
28389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28390 /* end confdefs.h.  */
28391
28392 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28393    <wchar.h>.
28394    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
28395    before <wchar.h>.  */
28396 #include <stddef.h>
28397 #include <stdio.h>
28398 #include <time.h>
28399 #include <wchar.h>
28400             wint_t foo = (wchar_t)'\0';
28401 int
28402 main ()
28403 {
28404
28405   ;
28406   return 0;
28407 }
28408 _ACEOF
28409 if ac_fn_c_try_compile "$LINENO"; then :
28410   gt_cv_c_wint_t=yes
28411 else
28412   gt_cv_c_wint_t=no
28413 fi
28414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28415 fi
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
28417 $as_echo "$gt_cv_c_wint_t" >&6; }
28418   if test $gt_cv_c_wint_t = yes; then
28419
28420 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
28421
28422   fi
28423
28424
28425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
28426 $as_echo_n "checking for inttypes.h... " >&6; }
28427 if ${gl_cv_header_inttypes_h+:} false; then :
28428   $as_echo_n "(cached) " >&6
28429 else
28430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28431 /* end confdefs.h.  */
28432
28433 #include <sys/types.h>
28434 #include <inttypes.h>
28435
28436 int
28437 main ()
28438 {
28439 uintmax_t i = (uintmax_t) -1; return !i;
28440   ;
28441   return 0;
28442 }
28443 _ACEOF
28444 if ac_fn_c_try_compile "$LINENO"; then :
28445   gl_cv_header_inttypes_h=yes
28446 else
28447   gl_cv_header_inttypes_h=no
28448 fi
28449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28450 fi
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
28452 $as_echo "$gl_cv_header_inttypes_h" >&6; }
28453   if test $gl_cv_header_inttypes_h = yes; then
28454
28455 cat >>confdefs.h <<_ACEOF
28456 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
28457 _ACEOF
28458
28459   fi
28460
28461
28462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
28463 $as_echo_n "checking for stdint.h... " >&6; }
28464 if ${gl_cv_header_stdint_h+:} false; then :
28465   $as_echo_n "(cached) " >&6
28466 else
28467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28468 /* end confdefs.h.  */
28469 #include <sys/types.h>
28470             #include <stdint.h>
28471 int
28472 main ()
28473 {
28474 uintmax_t i = (uintmax_t) -1; return !i;
28475   ;
28476   return 0;
28477 }
28478 _ACEOF
28479 if ac_fn_c_try_compile "$LINENO"; then :
28480   gl_cv_header_stdint_h=yes
28481 else
28482   gl_cv_header_stdint_h=no
28483 fi
28484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28485 fi
28486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
28487 $as_echo "$gl_cv_header_stdint_h" >&6; }
28488   if test $gl_cv_header_stdint_h = yes; then
28489
28490 cat >>confdefs.h <<_ACEOF
28491 #define HAVE_STDINT_H_WITH_UINTMAX 1
28492 _ACEOF
28493
28494   fi
28495
28496
28497
28498
28499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
28500 $as_echo_n "checking for intmax_t... " >&6; }
28501 if ${gt_cv_c_intmax_t+:} false; then :
28502   $as_echo_n "(cached) " >&6
28503 else
28504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28505 /* end confdefs.h.  */
28506
28507 #include <stddef.h>
28508 #include <stdlib.h>
28509 #if HAVE_STDINT_H_WITH_UINTMAX
28510 #include <stdint.h>
28511 #endif
28512 #if HAVE_INTTYPES_H_WITH_UINTMAX
28513 #include <inttypes.h>
28514 #endif
28515
28516 int
28517 main ()
28518 {
28519 intmax_t x = -1; return !x;
28520   ;
28521   return 0;
28522 }
28523 _ACEOF
28524 if ac_fn_c_try_compile "$LINENO"; then :
28525   gt_cv_c_intmax_t=yes
28526 else
28527   gt_cv_c_intmax_t=no
28528 fi
28529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28530 fi
28531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
28532 $as_echo "$gt_cv_c_intmax_t" >&6; }
28533   if test $gt_cv_c_intmax_t = yes; then
28534
28535 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
28536
28537   else
28538
28539     test $ac_cv_type_long_long_int = yes \
28540       && ac_type='long long' \
28541       || ac_type='long'
28542
28543 cat >>confdefs.h <<_ACEOF
28544 #define intmax_t $ac_type
28545 _ACEOF
28546
28547   fi
28548
28549
28550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
28551 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
28552 if ${gl_cv_cc_double_expbit0+:} false; then :
28553   $as_echo_n "(cached) " >&6
28554 else
28555
28556       if test "$cross_compiling" = yes; then :
28557
28558                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28559 /* end confdefs.h.  */
28560
28561 #if defined arm || defined __arm || defined __arm__
28562   mixed_endianness
28563 #endif
28564
28565 _ACEOF
28566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28567   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
28568   gl_cv_cc_double_expbit0="unknown"
28569 else
28570
28571                                                          :
28572 if ${ac_cv_c_bigendian+:} false; then :
28573   $as_echo_n "(cached) " >&6
28574 else
28575   ac_cv_c_bigendian=unknown
28576     # See if we're dealing with a universal compiler.
28577     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28578 /* end confdefs.h.  */
28579 #ifndef __APPLE_CC__
28580                not a universal capable compiler
28581              #endif
28582              typedef int dummy;
28583
28584 _ACEOF
28585 if ac_fn_c_try_compile "$LINENO"; then :
28586
28587         # Check for potential -arch flags.  It is not universal unless
28588         # there are at least two -arch flags with different values.
28589         ac_arch=
28590         ac_prev=
28591         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28592          if test -n "$ac_prev"; then
28593            case $ac_word in
28594              i?86 | x86_64 | ppc | ppc64)
28595                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
28596                  ac_arch=$ac_word
28597                else
28598                  ac_cv_c_bigendian=universal
28599                  break
28600                fi
28601                ;;
28602            esac
28603            ac_prev=
28604          elif test "x$ac_word" = "x-arch"; then
28605            ac_prev=arch
28606          fi
28607        done
28608 fi
28609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28610     if test $ac_cv_c_bigendian = unknown; then
28611       # See if sys/param.h defines the BYTE_ORDER macro.
28612       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28613 /* end confdefs.h.  */
28614 #include <sys/types.h>
28615              #include <sys/param.h>
28616
28617 int
28618 main ()
28619 {
28620 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28621                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28622                      && LITTLE_ENDIAN)
28623               bogus endian macros
28624              #endif
28625
28626   ;
28627   return 0;
28628 }
28629 _ACEOF
28630 if ac_fn_c_try_compile "$LINENO"; then :
28631   # It does; now see whether it defined to BIG_ENDIAN or not.
28632          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28633 /* end confdefs.h.  */
28634 #include <sys/types.h>
28635                 #include <sys/param.h>
28636
28637 int
28638 main ()
28639 {
28640 #if BYTE_ORDER != BIG_ENDIAN
28641                  not big endian
28642                 #endif
28643
28644   ;
28645   return 0;
28646 }
28647 _ACEOF
28648 if ac_fn_c_try_compile "$LINENO"; then :
28649   ac_cv_c_bigendian=yes
28650 else
28651   ac_cv_c_bigendian=no
28652 fi
28653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28654 fi
28655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28656     fi
28657     if test $ac_cv_c_bigendian = unknown; then
28658       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28659       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28660 /* end confdefs.h.  */
28661 #include <limits.h>
28662
28663 int
28664 main ()
28665 {
28666 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28667               bogus endian macros
28668              #endif
28669
28670   ;
28671   return 0;
28672 }
28673 _ACEOF
28674 if ac_fn_c_try_compile "$LINENO"; then :
28675   # It does; now see whether it defined to _BIG_ENDIAN or not.
28676          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28677 /* end confdefs.h.  */
28678 #include <limits.h>
28679
28680 int
28681 main ()
28682 {
28683 #ifndef _BIG_ENDIAN
28684                  not big endian
28685                 #endif
28686
28687   ;
28688   return 0;
28689 }
28690 _ACEOF
28691 if ac_fn_c_try_compile "$LINENO"; then :
28692   ac_cv_c_bigendian=yes
28693 else
28694   ac_cv_c_bigendian=no
28695 fi
28696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28697 fi
28698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28699     fi
28700     if test $ac_cv_c_bigendian = unknown; then
28701       # Compile a test program.
28702       if test "$cross_compiling" = yes; then :
28703   # Try to guess by grepping values from an object file.
28704          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28705 /* end confdefs.h.  */
28706 short int ascii_mm[] =
28707                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28708                 short int ascii_ii[] =
28709                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28710                 int use_ascii (int i) {
28711                   return ascii_mm[i] + ascii_ii[i];
28712                 }
28713                 short int ebcdic_ii[] =
28714                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28715                 short int ebcdic_mm[] =
28716                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28717                 int use_ebcdic (int i) {
28718                   return ebcdic_mm[i] + ebcdic_ii[i];
28719                 }
28720                 extern int foo;
28721
28722 int
28723 main ()
28724 {
28725 return use_ascii (foo) == use_ebcdic (foo);
28726   ;
28727   return 0;
28728 }
28729 _ACEOF
28730 if ac_fn_c_try_compile "$LINENO"; then :
28731   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28732               ac_cv_c_bigendian=yes
28733             fi
28734             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28735               if test "$ac_cv_c_bigendian" = unknown; then
28736                 ac_cv_c_bigendian=no
28737               else
28738                 # finding both strings is unlikely to happen, but who knows?
28739                 ac_cv_c_bigendian=unknown
28740               fi
28741             fi
28742 fi
28743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28744 else
28745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28746 /* end confdefs.h.  */
28747 $ac_includes_default
28748 int
28749 main ()
28750 {
28751
28752              /* Are we little or big endian?  From Harbison&Steele.  */
28753              union
28754              {
28755                long int l;
28756                char c[sizeof (long int)];
28757              } u;
28758              u.l = 1;
28759              return u.c[sizeof (long int) - 1] == 1;
28760
28761   ;
28762   return 0;
28763 }
28764 _ACEOF
28765 if ac_fn_c_try_run "$LINENO"; then :
28766   ac_cv_c_bigendian=no
28767 else
28768   ac_cv_c_bigendian=yes
28769 fi
28770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28771   conftest.$ac_objext conftest.beam conftest.$ac_ext
28772 fi
28773
28774     fi
28775 fi
28776 :
28777  case $ac_cv_c_bigendian in #(
28778    yes)
28779      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
28780    no)
28781      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
28782    universal)
28783
28784 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
28785
28786      ;; #(
28787    *)
28788      gl_cv_cc_double_expbit0="unknown" ;;
28789  esac
28790
28791
28792 fi
28793 rm -f conftest*
28794
28795
28796 else
28797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28798 /* end confdefs.h.  */
28799
28800 #include <float.h>
28801 #include <stddef.h>
28802 #include <stdio.h>
28803 #include <string.h>
28804 #define NWORDS \
28805   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
28806 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
28807 static unsigned int ored_words[NWORDS];
28808 static unsigned int anded_words[NWORDS];
28809 static void add_to_ored_words (double x)
28810 {
28811   memory_double m;
28812   size_t i;
28813   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
28814   memset (&m, 0, sizeof (memory_double));
28815   m.value = x;
28816   for (i = 0; i < NWORDS; i++)
28817     {
28818       ored_words[i] |= m.word[i];
28819       anded_words[i] &= m.word[i];
28820     }
28821 }
28822 int main ()
28823 {
28824   size_t j;
28825   FILE *fp = fopen ("conftest.out", "w");
28826   if (fp == NULL)
28827     return 1;
28828   for (j = 0; j < NWORDS; j++)
28829     anded_words[j] = ~ (unsigned int) 0;
28830   add_to_ored_words (0.25);
28831   add_to_ored_words (0.5);
28832   add_to_ored_words (1.0);
28833   add_to_ored_words (2.0);
28834   add_to_ored_words (4.0);
28835   /* Remove bits that are common (e.g. if representation of the first mantissa
28836      bit is explicit).  */
28837   for (j = 0; j < NWORDS; j++)
28838     ored_words[j] &= ~anded_words[j];
28839   /* Now find the nonzero word.  */
28840   for (j = 0; j < NWORDS; j++)
28841     if (ored_words[j] != 0)
28842       break;
28843   if (j < NWORDS)
28844     {
28845       size_t i;
28846       for (i = j + 1; i < NWORDS; i++)
28847         if (ored_words[i] != 0)
28848           {
28849             fprintf (fp, "unknown");
28850             return (fclose (fp) != 0);
28851           }
28852       for (i = 0; ; i++)
28853         if ((ored_words[j] >> i) & 1)
28854           {
28855             fprintf (fp, "word %d bit %d", (int) j, (int) i);
28856             return (fclose (fp) != 0);
28857           }
28858     }
28859   fprintf (fp, "unknown");
28860   return (fclose (fp) != 0);
28861 }
28862
28863 _ACEOF
28864 if ac_fn_c_try_run "$LINENO"; then :
28865   gl_cv_cc_double_expbit0=`cat conftest.out`
28866 else
28867   gl_cv_cc_double_expbit0="unknown"
28868 fi
28869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28870   conftest.$ac_objext conftest.beam conftest.$ac_ext
28871 fi
28872
28873       rm -f conftest.out
28874
28875 fi
28876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
28877 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
28878   case "$gl_cv_cc_double_expbit0" in
28879     word*bit*)
28880       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
28881       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
28882
28883 cat >>confdefs.h <<_ACEOF
28884 #define DBL_EXPBIT0_WORD $word
28885 _ACEOF
28886
28887
28888 cat >>confdefs.h <<_ACEOF
28889 #define DBL_EXPBIT0_BIT $bit
28890 _ACEOF
28891
28892       ;;
28893   esac
28894
28895
28896
28897
28898
28899
28900
28901   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
28902 do :
28903   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28904 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28905 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28906   cat >>confdefs.h <<_ACEOF
28907 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28908 _ACEOF
28909
28910 fi
28911 done
28912
28913       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
28914 "
28915 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
28916   ac_have_decl=1
28917 else
28918   ac_have_decl=0
28919 fi
28920
28921 cat >>confdefs.h <<_ACEOF
28922 #define HAVE_DECL__SNPRINTF $ac_have_decl
28923 _ACEOF
28924
28925
28926
28927   case "$gl_cv_func_snprintf_retval_c99" in
28928     *yes)
28929
28930 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
28931
28932       ;;
28933   esac
28934
28935
28936   GNULIB_BTOWC=0;
28937   GNULIB_WCTOB=0;
28938   GNULIB_MBSINIT=0;
28939   GNULIB_MBRTOWC=0;
28940   GNULIB_MBRLEN=0;
28941   GNULIB_MBSRTOWCS=0;
28942   GNULIB_MBSNRTOWCS=0;
28943   GNULIB_WCRTOMB=0;
28944   GNULIB_WCSRTOMBS=0;
28945   GNULIB_WCSNRTOMBS=0;
28946   GNULIB_WCWIDTH=0;
28947   GNULIB_WMEMCHR=0;
28948   GNULIB_WMEMCMP=0;
28949   GNULIB_WMEMCPY=0;
28950   GNULIB_WMEMMOVE=0;
28951   GNULIB_WMEMSET=0;
28952   GNULIB_WCSLEN=0;
28953   GNULIB_WCSNLEN=0;
28954   GNULIB_WCSCPY=0;
28955   GNULIB_WCPCPY=0;
28956   GNULIB_WCSNCPY=0;
28957   GNULIB_WCPNCPY=0;
28958   GNULIB_WCSCAT=0;
28959   GNULIB_WCSNCAT=0;
28960   GNULIB_WCSCMP=0;
28961   GNULIB_WCSNCMP=0;
28962   GNULIB_WCSCASECMP=0;
28963   GNULIB_WCSNCASECMP=0;
28964   GNULIB_WCSCOLL=0;
28965   GNULIB_WCSXFRM=0;
28966   GNULIB_WCSDUP=0;
28967   GNULIB_WCSCHR=0;
28968   GNULIB_WCSRCHR=0;
28969   GNULIB_WCSCSPN=0;
28970   GNULIB_WCSSPN=0;
28971   GNULIB_WCSPBRK=0;
28972   GNULIB_WCSSTR=0;
28973   GNULIB_WCSTOK=0;
28974   GNULIB_WCSWIDTH=0;
28975     HAVE_BTOWC=1;
28976   HAVE_MBSINIT=1;
28977   HAVE_MBRTOWC=1;
28978   HAVE_MBRLEN=1;
28979   HAVE_MBSRTOWCS=1;
28980   HAVE_MBSNRTOWCS=1;
28981   HAVE_WCRTOMB=1;
28982   HAVE_WCSRTOMBS=1;
28983   HAVE_WCSNRTOMBS=1;
28984   HAVE_WMEMCHR=1;
28985   HAVE_WMEMCMP=1;
28986   HAVE_WMEMCPY=1;
28987   HAVE_WMEMMOVE=1;
28988   HAVE_WMEMSET=1;
28989   HAVE_WCSLEN=1;
28990   HAVE_WCSNLEN=1;
28991   HAVE_WCSCPY=1;
28992   HAVE_WCPCPY=1;
28993   HAVE_WCSNCPY=1;
28994   HAVE_WCPNCPY=1;
28995   HAVE_WCSCAT=1;
28996   HAVE_WCSNCAT=1;
28997   HAVE_WCSCMP=1;
28998   HAVE_WCSNCMP=1;
28999   HAVE_WCSCASECMP=1;
29000   HAVE_WCSNCASECMP=1;
29001   HAVE_WCSCOLL=1;
29002   HAVE_WCSXFRM=1;
29003   HAVE_WCSDUP=1;
29004   HAVE_WCSCHR=1;
29005   HAVE_WCSRCHR=1;
29006   HAVE_WCSCSPN=1;
29007   HAVE_WCSSPN=1;
29008   HAVE_WCSPBRK=1;
29009   HAVE_WCSSTR=1;
29010   HAVE_WCSTOK=1;
29011   HAVE_WCSWIDTH=1;
29012   HAVE_DECL_WCTOB=1;
29013   HAVE_DECL_WCWIDTH=1;
29014   REPLACE_MBSTATE_T=0;
29015   REPLACE_BTOWC=0;
29016   REPLACE_WCTOB=0;
29017   REPLACE_MBSINIT=0;
29018   REPLACE_MBRTOWC=0;
29019   REPLACE_MBRLEN=0;
29020   REPLACE_MBSRTOWCS=0;
29021   REPLACE_MBSNRTOWCS=0;
29022   REPLACE_WCRTOMB=0;
29023   REPLACE_WCSRTOMBS=0;
29024   REPLACE_WCSNRTOMBS=0;
29025   REPLACE_WCWIDTH=0;
29026   REPLACE_WCSWIDTH=0;
29027
29028
29029             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
29030 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
29031 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
29032   $as_echo_n "(cached) " >&6
29033 else
29034   gl_cv_header_wchar_h_correct_inline=yes
29035      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29036 /* end confdefs.h.  */
29037
29038        #define wcstod renamed_wcstod
29039 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29040    <wchar.h>.
29041    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29042    included before <wchar.h>.  */
29043 #include <stddef.h>
29044 #include <stdio.h>
29045 #include <time.h>
29046 #include <wchar.h>
29047 extern int zero (void);
29048 int main () { return zero(); }
29049
29050 _ACEOF
29051      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
29052   (eval $ac_compile) 2>&5
29053   ac_status=$?
29054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29055   test $ac_status = 0; }; then
29056        mv conftest.$ac_objext conftest1.$ac_objext
29057        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29058 /* end confdefs.h.  */
29059
29060          #define wcstod renamed_wcstod
29061 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29062    <wchar.h>.
29063    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29064    included before <wchar.h>.  */
29065 #include <stddef.h>
29066 #include <stdio.h>
29067 #include <time.h>
29068 #include <wchar.h>
29069 int zero (void) { return 0; }
29070
29071 _ACEOF
29072        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
29073   (eval $ac_compile) 2>&5
29074   ac_status=$?
29075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29076   test $ac_status = 0; }; then
29077          mv conftest.$ac_objext conftest2.$ac_objext
29078          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
29079            :
29080          else
29081            gl_cv_header_wchar_h_correct_inline=no
29082          fi
29083        fi
29084      fi
29085      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
29086
29087 fi
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
29089 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
29090   if test $gl_cv_header_wchar_h_correct_inline = no; then
29091     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
29092 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
29093 C99 mode. You have four options:
29094   - Add the flag -fgnu89-inline to CC and reconfigure, or
29095   - Fix your include files, using parts of
29096     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
29097   - Use a gcc version older than 4.3, or
29098   - Don't use the flags -std=c99 or -std=gnu99.
29099 Configuration aborted." "$LINENO" 5
29100   fi
29101
29102
29103   GNULIB_FCNTL=0;
29104   GNULIB_NONBLOCKING=0;
29105   GNULIB_OPEN=0;
29106   GNULIB_OPENAT=0;
29107     HAVE_FCNTL=1;
29108   HAVE_OPENAT=1;
29109   REPLACE_FCNTL=0;
29110   REPLACE_OPEN=0;
29111   REPLACE_OPENAT=0;
29112
29113
29114
29115
29116
29117
29118
29119
29120
29121
29122   :
29123
29124
29125
29126
29127
29128
29129   :
29130
29131
29132
29133
29134
29135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
29136 $as_echo_n "checking for working fcntl.h... " >&6; }
29137 if ${gl_cv_header_working_fcntl_h+:} false; then :
29138   $as_echo_n "(cached) " >&6
29139 else
29140   if test "$cross_compiling" = yes; then :
29141   gl_cv_header_working_fcntl_h=cross-compiling
29142 else
29143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29144 /* end confdefs.h.  */
29145 #include <sys/types.h>
29146            #include <sys/stat.h>
29147            #if HAVE_UNISTD_H
29148            # include <unistd.h>
29149            #else /* on Windows with MSVC */
29150            # include <io.h>
29151            # include <stdlib.h>
29152            # defined sleep(n) _sleep ((n) * 1000)
29153            #endif
29154            #include <fcntl.h>
29155            #ifndef O_NOATIME
29156             #define O_NOATIME 0
29157            #endif
29158            #ifndef O_NOFOLLOW
29159             #define O_NOFOLLOW 0
29160            #endif
29161            static int const constants[] =
29162             {
29163               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
29164               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
29165             };
29166
29167 int
29168 main ()
29169 {
29170
29171             int result = !constants;
29172             #if HAVE_SYMLINK
29173             {
29174               static char const sym[] = "conftest.sym";
29175               if (symlink (".", sym) != 0)
29176                 result |= 2;
29177               else
29178                 {
29179                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
29180                   if (fd >= 0)
29181                     {
29182                       close (fd);
29183                       result |= 4;
29184                     }
29185                 }
29186               unlink (sym);
29187             }
29188             #endif
29189             {
29190               static char const file[] = "confdefs.h";
29191               int fd = open (file, O_RDONLY | O_NOATIME);
29192               if (fd < 0)
29193                 result |= 8;
29194               else
29195                 {
29196                   struct stat st0;
29197                   if (fstat (fd, &st0) != 0)
29198                     result |= 16;
29199                   else
29200                     {
29201                       char c;
29202                       sleep (1);
29203                       if (read (fd, &c, 1) != 1)
29204                         result |= 24;
29205                       else
29206                         {
29207                           if (close (fd) != 0)
29208                             result |= 32;
29209                           else
29210                             {
29211                               struct stat st1;
29212                               if (stat (file, &st1) != 0)
29213                                 result |= 40;
29214                               else
29215                                 if (st0.st_atime != st1.st_atime)
29216                                   result |= 64;
29217                             }
29218                         }
29219                     }
29220                 }
29221             }
29222             return result;
29223   ;
29224   return 0;
29225 }
29226 _ACEOF
29227 if ac_fn_c_try_run "$LINENO"; then :
29228   gl_cv_header_working_fcntl_h=yes
29229 else
29230   case $? in #(
29231         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
29232         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
29233         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
29234          *) gl_cv_header_working_fcntl_h='no';;
29235         esac
29236 fi
29237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29238   conftest.$ac_objext conftest.beam conftest.$ac_ext
29239 fi
29240
29241 fi
29242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
29243 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
29244
29245   case $gl_cv_header_working_fcntl_h in #(
29246   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
29247   *) ac_val=1;;
29248   esac
29249
29250 cat >>confdefs.h <<_ACEOF
29251 #define HAVE_WORKING_O_NOATIME $ac_val
29252 _ACEOF
29253
29254
29255   case $gl_cv_header_working_fcntl_h in #(
29256   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
29257   *) ac_val=1;;
29258   esac
29259
29260 cat >>confdefs.h <<_ACEOF
29261 #define HAVE_WORKING_O_NOFOLLOW $ac_val
29262 _ACEOF
29263
29264
29265
29266
29267
29268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
29269 $as_echo_n "checking whether ungetc works on arbitrary bytes... " >&6; }
29270 if ${gl_cv_func_ungetc_works+:} false; then :
29271   $as_echo_n "(cached) " >&6
29272 else
29273   if test "$cross_compiling" = yes; then :
29274   gl_cv_func_ungetc_works='guessing no'
29275 else
29276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29277 /* end confdefs.h.  */
29278
29279 #include <stdio.h>
29280
29281 int
29282 main ()
29283 {
29284 FILE *f;
29285            if (!(f = fopen ("conftest.tmp", "w+"))) return 1;
29286            if (fputs ("abc", f) < 0) return 2;
29287            rewind (f);
29288            if (fgetc (f) != 'a') return 3;
29289            if (fgetc (f) != 'b') return 4;
29290            if (ungetc ('d', f) != 'd') return 5;
29291            if (ftell (f) != 1) return 6;
29292            if (fgetc (f) != 'd') return 7;
29293            if (ftell (f) != 2) return 8;
29294            if (fseek (f, 0, SEEK_CUR) != 0) return 9;
29295            if (ftell (f) != 2) return 10;
29296            if (fgetc (f) != 'c') return 11;
29297            fclose (f); remove ("conftest.tmp");
29298   ;
29299   return 0;
29300 }
29301 _ACEOF
29302 if ac_fn_c_try_run "$LINENO"; then :
29303   gl_cv_func_ungetc_works=yes
29304 else
29305   gl_cv_func_ungetc_works=no
29306 fi
29307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29308   conftest.$ac_objext conftest.beam conftest.$ac_ext
29309 fi
29310
29311
29312 fi
29313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5
29314 $as_echo "$gl_cv_func_ungetc_works" >&6; }
29315   if test "$gl_cv_func_ungetc_works" != yes; then
29316
29317 $as_echo "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
29318
29319   fi
29320
29321
29322
29323
29324
29325
29326
29327
29328   :
29329
29330
29331
29332
29333
29334    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
29335 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
29336 if ${gl_cv_func_getcwd_null+:} false; then :
29337   $as_echo_n "(cached) " >&6
29338 else
29339   if test "$cross_compiling" = yes; then :
29340
29341        case "$host_os" in
29342                                # Guess yes on glibc systems.
29343          *-gnu*)               gl_cv_func_getcwd_null="guessing yes";;
29344                                # Guess yes on Cygwin.
29345          cygwin*)              gl_cv_func_getcwd_null="guessing yes";;
29346                                # If we don't know, assume the worst.
29347          *)                    gl_cv_func_getcwd_null="guessing no";;
29348        esac
29349
29350 else
29351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29352 /* end confdefs.h.  */
29353
29354 #        if HAVE_UNISTD_H
29355 #         include <unistd.h>
29356 #        else /* on Windows with MSVC */
29357 #         include <direct.h>
29358 #        endif
29359 #        ifndef getcwd
29360          char *getcwd ();
29361 #        endif
29362
29363 int
29364 main ()
29365 {
29366
29367 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
29368 /* mingw cwd does not start with '/', but getcwd does allocate.
29369    However, mingw fails to honor non-zero size.  */
29370 #else
29371            if (chdir ("/") != 0)
29372              return 1;
29373            else
29374              {
29375                char *f = getcwd (NULL, 0);
29376                if (! f)
29377                  return 2;
29378                if (f[0] != '/')
29379                  return 3;
29380                if (f[1] != '\0')
29381                  return 4;
29382                return 0;
29383              }
29384 #endif
29385
29386   ;
29387   return 0;
29388 }
29389 _ACEOF
29390 if ac_fn_c_try_run "$LINENO"; then :
29391   gl_cv_func_getcwd_null=yes
29392 else
29393   gl_cv_func_getcwd_null=no
29394 fi
29395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29396   conftest.$ac_objext conftest.beam conftest.$ac_ext
29397 fi
29398
29399 fi
29400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
29401 $as_echo "$gl_cv_func_getcwd_null" >&6; }
29402
29403
29404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
29405 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
29406 if ${gl_cv_func_getcwd_posix_signature+:} false; then :
29407   $as_echo_n "(cached) " >&6
29408 else
29409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29410 /* end confdefs.h.  */
29411 #include <unistd.h>
29412 int
29413 main ()
29414 {
29415 extern
29416            #ifdef __cplusplus
29417            "C"
29418            #endif
29419            char *getcwd (char *, size_t);
29420
29421   ;
29422   return 0;
29423 }
29424
29425 _ACEOF
29426 if ac_fn_c_try_compile "$LINENO"; then :
29427   gl_cv_func_getcwd_posix_signature=yes
29428 else
29429   gl_cv_func_getcwd_posix_signature=no
29430 fi
29431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29432
29433 fi
29434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
29435 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
29436
29437
29438
29439
29440
29441
29442
29443   GNULIB_IMAXABS=0;
29444   GNULIB_IMAXDIV=0;
29445   GNULIB_STRTOIMAX=0;
29446   GNULIB_STRTOUMAX=0;
29447     HAVE_DECL_IMAXABS=1;
29448   HAVE_DECL_IMAXDIV=1;
29449   HAVE_DECL_STRTOIMAX=1;
29450   HAVE_DECL_STRTOUMAX=1;
29451   REPLACE_STRTOIMAX=0;
29452   INT32_MAX_LT_INTMAX_MAX=1;
29453   INT64_MAX_EQ_LONG_MAX='defined _LP64';
29454   PRI_MACROS_BROKEN=0;
29455   PRIPTR_PREFIX=__PRIPTR_PREFIX;
29456   UINT32_MAX_LT_UINTMAX_MAX=1;
29457   UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
29458
29459
29460
29461
29462   :
29463
29464
29465
29466
29467
29468
29469
29470
29471
29472
29473
29474
29475
29476   :
29477
29478
29479
29480
29481
29482
29483
29484
29485      if test $gl_cv_have_include_next = yes; then
29486        gl_cv_next_inttypes_h='<'inttypes.h'>'
29487      else
29488        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
29489 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
29490 if ${gl_cv_next_inttypes_h+:} false; then :
29491   $as_echo_n "(cached) " >&6
29492 else
29493
29494              if test $ac_cv_header_inttypes_h = yes; then
29495
29496
29497                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29498 /* end confdefs.h.  */
29499 #include <inttypes.h>
29500
29501 _ACEOF
29502                                                                                                                         case "$host_os" in
29503                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
29504                  *)    gl_absname_cpp="$ac_cpp" ;;
29505                esac
29506
29507                case "$host_os" in
29508                  mingw*)
29509                                                                                                                                      gl_dirsep_regex='[/\\]'
29510                    ;;
29511                  *)
29512                    gl_dirsep_regex='\/'
29513                    ;;
29514                esac
29515                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29516
29517                gl_header_literal_regex=`echo 'inttypes.h' \
29518                                         | sed -e "$gl_make_literal_regex_sed"`
29519                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29520                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29521                    s|^/[^/]|//&|
29522                    p
29523                    q
29524                  }'
29525                                                             gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29526                       sed -n "$gl_absolute_header_sed"`'"'
29527           else
29528                gl_cv_next_inttypes_h='<'inttypes.h'>'
29529              fi
29530
29531
29532 fi
29533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
29534 $as_echo "$gl_cv_next_inttypes_h" >&6; }
29535      fi
29536      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
29537
29538      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29539        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29540        gl_next_as_first_directive='<'inttypes.h'>'
29541      else
29542        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29543        gl_next_as_first_directive=$gl_cv_next_inttypes_h
29544      fi
29545      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
29546
29547
29548
29549
29550
29551
29552
29553
29554     for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
29555     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29557 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29558 if eval \${$as_gl_Symbol+:} false; then :
29559   $as_echo_n "(cached) " >&6
29560 else
29561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29562 /* end confdefs.h.  */
29563 #include <inttypes.h>
29564
29565 int
29566 main ()
29567 {
29568 #undef $gl_func
29569   (void) $gl_func;
29570   ;
29571   return 0;
29572 }
29573 _ACEOF
29574 if ac_fn_c_try_compile "$LINENO"; then :
29575   eval "$as_gl_Symbol=yes"
29576 else
29577   eval "$as_gl_Symbol=no"
29578 fi
29579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29580 fi
29581 eval ac_res=\$$as_gl_Symbol
29582                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29583 $as_echo "$ac_res" >&6; }
29584     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29585   cat >>confdefs.h <<_ACEOF
29586 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29587 _ACEOF
29588
29589                      eval ac_cv_have_decl_$gl_func=yes
29590 fi
29591       done
29592
29593
29594
29595   for ac_header in inttypes.h
29596 do :
29597   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
29598 if test "x$ac_cv_header_inttypes_h" = xyes; then :
29599   cat >>confdefs.h <<_ACEOF
29600 #define HAVE_INTTYPES_H 1
29601 _ACEOF
29602
29603 fi
29604
29605 done
29606
29607   if test $ac_cv_header_inttypes_h = yes; then
29608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
29609 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
29610 if ${gt_cv_inttypes_pri_broken+:} false; then :
29611   $as_echo_n "(cached) " >&6
29612 else
29613
29614         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29615 /* end confdefs.h.  */
29616
29617 #include <inttypes.h>
29618 #ifdef PRId32
29619 char *p = PRId32;
29620 #endif
29621
29622 int
29623 main ()
29624 {
29625
29626   ;
29627   return 0;
29628 }
29629 _ACEOF
29630 if ac_fn_c_try_compile "$LINENO"; then :
29631   gt_cv_inttypes_pri_broken=no
29632 else
29633   gt_cv_inttypes_pri_broken=yes
29634 fi
29635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29636
29637 fi
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
29639 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
29640   fi
29641   if test "$gt_cv_inttypes_pri_broken" = yes; then
29642
29643 cat >>confdefs.h <<_ACEOF
29644 #define PRI_MACROS_BROKEN 1
29645 _ACEOF
29646
29647     PRI_MACROS_BROKEN=1
29648   else
29649     PRI_MACROS_BROKEN=0
29650   fi
29651
29652
29653
29654
29655
29656
29657
29658
29659       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
29660 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
29661 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
29662   $as_echo_n "(cached) " >&6
29663 else
29664   rm -f conftest.sym conftest.file
29665      echo >conftest.file
29666      if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
29667        if test "$cross_compiling" = yes; then :
29668   # When cross-compiling, be pessimistic so we will end up using the
29669           # replacement version of lstat that checks for trailing slashes and
29670           # calls lstat a second time when necessary.
29671           gl_cv_func_lstat_dereferences_slashed_symlink=no
29672
29673 else
29674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29675 /* end confdefs.h.  */
29676 $ac_includes_default
29677 int
29678 main ()
29679 {
29680 struct stat sbuf;
29681               /* Linux will dereference the symlink and fail, as required by
29682                  POSIX.  That is better in the sense that it means we will not
29683                  have to compile and use the lstat wrapper.  */
29684               return lstat ("conftest.sym/", &sbuf) == 0;
29685
29686   ;
29687   return 0;
29688 }
29689 _ACEOF
29690 if ac_fn_c_try_run "$LINENO"; then :
29691   gl_cv_func_lstat_dereferences_slashed_symlink=yes
29692 else
29693   gl_cv_func_lstat_dereferences_slashed_symlink=no
29694 fi
29695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29696   conftest.$ac_objext conftest.beam conftest.$ac_ext
29697 fi
29698
29699      else
29700        # If the 'ln -s' command failed, then we probably don't even
29701        # have an lstat function.
29702        gl_cv_func_lstat_dereferences_slashed_symlink=no
29703      fi
29704      rm -f conftest.sym conftest.file
29705
29706 fi
29707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
29708 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
29709   test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
29710
29711 cat >>confdefs.h <<_ACEOF
29712 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
29713 _ACEOF
29714
29715
29716
29717
29718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
29719 $as_echo_n "checking for promoted mode_t type... " >&6; }
29720 if ${gl_cv_promoted_mode_t+:} false; then :
29721   $as_echo_n "(cached) " >&6
29722 else
29723
29724                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29725 /* end confdefs.h.  */
29726 #include <sys/types.h>
29727 int
29728 main ()
29729 {
29730 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
29731   ;
29732   return 0;
29733 }
29734 _ACEOF
29735 if ac_fn_c_try_compile "$LINENO"; then :
29736   gl_cv_promoted_mode_t='int'
29737 else
29738   gl_cv_promoted_mode_t='mode_t'
29739 fi
29740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29741
29742 fi
29743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
29744 $as_echo "$gl_cv_promoted_mode_t" >&6; }
29745
29746 cat >>confdefs.h <<_ACEOF
29747 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
29748 _ACEOF
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767
29768
29769
29770
29771
29772
29773
29774
29775
29776
29777    if true; then
29778   GL_COND_LIBTOOL_TRUE=
29779   GL_COND_LIBTOOL_FALSE='#'
29780 else
29781   GL_COND_LIBTOOL_TRUE='#'
29782   GL_COND_LIBTOOL_FALSE=
29783 fi
29784
29785   gl_cond_libtool=true
29786   gl_m4_base='gl/m4'
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796   gl_source_base='gl'
29797
29798 if test "$ac_cv_header_winsock2_h" = yes; then
29799
29800
29801
29802
29803
29804
29805
29806
29807   gl_LIBOBJS="$gl_LIBOBJS accept.$ac_objext"
29808
29809 fi
29810
29811
29812
29813
29814
29815           GNULIB_ACCEPT=1
29816
29817
29818
29819
29820
29821 $as_echo "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h
29822
29823
29824
29825 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
29826
29827
29828
29829   if test $ac_cv_func_alloca_works = no; then
29830     :
29831   fi
29832
29833   # Define an additional variable used in the Makefile substitution.
29834   if test $ac_cv_working_alloca_h = yes; then
29835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
29836 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
29837 if ${gl_cv_rpl_alloca+:} false; then :
29838   $as_echo_n "(cached) " >&6
29839 else
29840
29841       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29842 /* end confdefs.h.  */
29843
29844 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
29845         Need own alloca
29846 #endif
29847
29848 _ACEOF
29849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29850   $EGREP "Need own alloca" >/dev/null 2>&1; then :
29851   gl_cv_rpl_alloca=yes
29852 else
29853   gl_cv_rpl_alloca=no
29854 fi
29855 rm -f conftest*
29856
29857
29858 fi
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
29860 $as_echo "$gl_cv_rpl_alloca" >&6; }
29861     if test $gl_cv_rpl_alloca = yes; then
29862
29863 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
29864
29865       ALLOCA_H=alloca.h
29866     else
29867                   ALLOCA_H=
29868     fi
29869   else
29870     ALLOCA_H=alloca.h
29871   fi
29872
29873    if test -n "$ALLOCA_H"; then
29874   GL_GENERATE_ALLOCA_H_TRUE=
29875   GL_GENERATE_ALLOCA_H_FALSE='#'
29876 else
29877   GL_GENERATE_ALLOCA_H_TRUE='#'
29878   GL_GENERATE_ALLOCA_H_FALSE=
29879 fi
29880
29881
29882
29883
29884
29885
29886   :
29887
29888
29889
29890
29891
29892   if test $ac_cv_header_arpa_inet_h = yes; then
29893     HAVE_ARPA_INET_H=1
29894   else
29895     HAVE_ARPA_INET_H=0
29896   fi
29897
29898
29899
29900
29901
29902
29903
29904   :
29905
29906
29907
29908
29909
29910
29911
29912
29913      if test $gl_cv_have_include_next = yes; then
29914        gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
29915      else
29916        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
29917 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
29918 if ${gl_cv_next_arpa_inet_h+:} false; then :
29919   $as_echo_n "(cached) " >&6
29920 else
29921
29922              if test $ac_cv_header_arpa_inet_h = yes; then
29923
29924
29925                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29926 /* end confdefs.h.  */
29927 #include <arpa/inet.h>
29928
29929 _ACEOF
29930                                                                                                                         case "$host_os" in
29931                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
29932                  *)    gl_absname_cpp="$ac_cpp" ;;
29933                esac
29934
29935                case "$host_os" in
29936                  mingw*)
29937                                                                                                                                      gl_dirsep_regex='[/\\]'
29938                    ;;
29939                  *)
29940                    gl_dirsep_regex='\/'
29941                    ;;
29942                esac
29943                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29944
29945                gl_header_literal_regex=`echo 'arpa/inet.h' \
29946                                         | sed -e "$gl_make_literal_regex_sed"`
29947                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29948                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29949                    s|^/[^/]|//&|
29950                    p
29951                    q
29952                  }'
29953                                                             gl_cv_next_arpa_inet_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29954                       sed -n "$gl_absolute_header_sed"`'"'
29955           else
29956                gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
29957              fi
29958
29959
29960 fi
29961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
29962 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
29963      fi
29964      NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
29965
29966      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29967        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29968        gl_next_as_first_directive='<'arpa/inet.h'>'
29969      else
29970        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29971        gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
29972      fi
29973      NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
29974
29975
29976
29977
29978
29979
29980
29981
29982     for gl_func in inet_ntop inet_pton; do
29983     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29985 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29986 if eval \${$as_gl_Symbol+:} false; then :
29987   $as_echo_n "(cached) " >&6
29988 else
29989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29990 /* end confdefs.h.  */
29991
29992 /* On some systems, this header is not self-consistent.  */
29993 #if !(defined __GLIBC__ || defined __UCLIBC__)
29994 # include <sys/socket.h>
29995 #endif
29996 #ifdef __TANDEM
29997 # include <netdb.h>
29998 #endif
29999 #include <arpa/inet.h>
30000
30001 int
30002 main ()
30003 {
30004 #undef $gl_func
30005   (void) $gl_func;
30006   ;
30007   return 0;
30008 }
30009 _ACEOF
30010 if ac_fn_c_try_compile "$LINENO"; then :
30011   eval "$as_gl_Symbol=yes"
30012 else
30013   eval "$as_gl_Symbol=no"
30014 fi
30015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30016 fi
30017 eval ac_res=\$$as_gl_Symbol
30018                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30019 $as_echo "$ac_res" >&6; }
30020     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30021   cat >>confdefs.h <<_ACEOF
30022 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30023 _ACEOF
30024
30025                      eval ac_cv_have_decl_$gl_func=yes
30026 fi
30027       done
30028
30029
30030
30031
30032 if test "$ac_cv_header_winsock2_h" = yes; then
30033
30034
30035
30036
30037
30038
30039
30040
30041   gl_LIBOBJS="$gl_LIBOBJS bind.$ac_objext"
30042
30043 fi
30044
30045
30046
30047
30048
30049           GNULIB_BIND=1
30050
30051
30052
30053
30054
30055 $as_echo "#define GNULIB_TEST_BIND 1" >>confdefs.h
30056
30057
30058
30059
30060
30061
30062   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
30063   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
30064
30065   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
30066   # programs in the package would end up linked with that potentially-shared
30067   # library, inducing unnecessary run-time overhead.
30068   LIB_CLOCK_GETTIME=
30069
30070   gl_saved_libs=$LIBS
30071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
30072 $as_echo_n "checking for library containing clock_gettime... " >&6; }
30073 if ${ac_cv_search_clock_gettime+:} false; then :
30074   $as_echo_n "(cached) " >&6
30075 else
30076   ac_func_search_save_LIBS=$LIBS
30077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30078 /* end confdefs.h.  */
30079
30080 /* Override any GCC internal prototype to avoid an error.
30081    Use char because int might match the return type of a GCC
30082    builtin and then its argument prototype would still apply.  */
30083 #ifdef __cplusplus
30084 extern "C"
30085 #endif
30086 char clock_gettime ();
30087 int
30088 main ()
30089 {
30090 return clock_gettime ();
30091   ;
30092   return 0;
30093 }
30094 _ACEOF
30095 for ac_lib in '' rt posix4; do
30096   if test -z "$ac_lib"; then
30097     ac_res="none required"
30098   else
30099     ac_res=-l$ac_lib
30100     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30101   fi
30102   if ac_fn_c_try_link "$LINENO"; then :
30103   ac_cv_search_clock_gettime=$ac_res
30104 fi
30105 rm -f core conftest.err conftest.$ac_objext \
30106     conftest$ac_exeext
30107   if ${ac_cv_search_clock_gettime+:} false; then :
30108   break
30109 fi
30110 done
30111 if ${ac_cv_search_clock_gettime+:} false; then :
30112
30113 else
30114   ac_cv_search_clock_gettime=no
30115 fi
30116 rm conftest.$ac_ext
30117 LIBS=$ac_func_search_save_LIBS
30118 fi
30119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
30120 $as_echo "$ac_cv_search_clock_gettime" >&6; }
30121 ac_res=$ac_cv_search_clock_gettime
30122 if test "$ac_res" != no; then :
30123   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30124   test "$ac_cv_search_clock_gettime" = "none required" ||
30125                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
30126 fi
30127
30128     for ac_func in clock_gettime clock_settime
30129 do :
30130   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30131 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30132 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30133   cat >>confdefs.h <<_ACEOF
30134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30135 _ACEOF
30136
30137 fi
30138 done
30139
30140   LIBS=$gl_saved_libs
30141
30142
30143
30144
30145   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
30146     REPLACE_CLOSE=1
30147   fi
30148
30149
30150
30151
30152
30153   :
30154
30155
30156
30157
30158
30159   if test $ac_cv_header_sys_socket_h != yes; then
30160                     for ac_header in winsock2.h
30161 do :
30162   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
30163 if test "x$ac_cv_header_winsock2_h" = xyes; then :
30164   cat >>confdefs.h <<_ACEOF
30165 #define HAVE_WINSOCK2_H 1
30166 _ACEOF
30167
30168 fi
30169
30170 done
30171
30172   fi
30173   if test "$ac_cv_header_winsock2_h" = yes; then
30174     HAVE_WINSOCK2_H=1
30175     UNISTD_H_HAVE_WINSOCK2_H=1
30176     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
30177   else
30178     HAVE_WINSOCK2_H=0
30179   fi
30180
30181
30182     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
30183                         REPLACE_CLOSE=1
30184     fi
30185
30186
30187
30188 if test $REPLACE_CLOSE = 1; then
30189
30190
30191
30192
30193
30194
30195
30196
30197   gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
30198
30199 fi
30200
30201
30202
30203
30204
30205           GNULIB_CLOSE=1
30206
30207
30208
30209
30210
30211 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
30212
30213
30214
30215
30216 if test "$ac_cv_header_winsock2_h" = yes; then
30217
30218
30219
30220
30221
30222
30223
30224
30225   gl_LIBOBJS="$gl_LIBOBJS connect.$ac_objext"
30226
30227 fi
30228
30229
30230
30231
30232
30233           GNULIB_CONNECT=1
30234
30235
30236
30237
30238
30239 $as_echo "#define GNULIB_TEST_CONNECT 1" >>confdefs.h
30240
30241
30242
30243
30244
30245       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
30246 $as_echo_n "checking for error_at_line... " >&6; }
30247 if ${ac_cv_lib_error_at_line+:} false; then :
30248   $as_echo_n "(cached) " >&6
30249 else
30250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30251 /* end confdefs.h.  */
30252 #include <error.h>
30253 int
30254 main ()
30255 {
30256 error_at_line (0, 0, "", 0, "an error occurred");
30257   ;
30258   return 0;
30259 }
30260 _ACEOF
30261 if ac_fn_c_try_link "$LINENO"; then :
30262   ac_cv_lib_error_at_line=yes
30263 else
30264   ac_cv_lib_error_at_line=no
30265 fi
30266 rm -f core conftest.err conftest.$ac_objext \
30267     conftest$ac_exeext conftest.$ac_ext
30268 fi
30269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
30270 $as_echo "$ac_cv_lib_error_at_line" >&6; }
30271
30272 if test $ac_cv_lib_error_at_line = no; then
30273
30274
30275
30276
30277
30278
30279
30280
30281   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
30282
30283
30284
30285
30286   :
30287
30288 fi
30289
30290
30291   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
30292
30293
30294
30295   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
30296
30297
30298
30299
30300   FLOAT_H=
30301   REPLACE_FLOAT_LDBL=0
30302   case "$host_os" in
30303     aix* | beos* | openbsd* | mirbsd* | irix*)
30304       FLOAT_H=float.h
30305       ;;
30306     freebsd*)
30307       case "$host_cpu" in
30308         i[34567]86 )
30309           FLOAT_H=float.h
30310           ;;
30311         x86_64 )
30312           # On x86_64 systems, the C compiler may still be generating
30313           # 32-bit code.
30314           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30315 /* end confdefs.h.  */
30316 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
30317              yes
30318              #endif
30319 _ACEOF
30320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30321   $EGREP "yes" >/dev/null 2>&1; then :
30322
30323 else
30324   FLOAT_H=float.h
30325 fi
30326 rm -f conftest*
30327
30328           ;;
30329       esac
30330       ;;
30331     linux*)
30332       case "$host_cpu" in
30333         powerpc*)
30334           FLOAT_H=float.h
30335           ;;
30336       esac
30337       ;;
30338   esac
30339   case "$host_os" in
30340     aix* | freebsd* | linux*)
30341       if test -n "$FLOAT_H"; then
30342         REPLACE_FLOAT_LDBL=1
30343       fi
30344       ;;
30345   esac
30346
30347     REPLACE_ITOLD=0
30348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
30349 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
30350 if ${gl_cv_func_itold_works+:} false; then :
30351   $as_echo_n "(cached) " >&6
30352 else
30353
30354       if test "$cross_compiling" = yes; then :
30355   case "$host" in
30356            sparc*-*-linux*)
30357              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30358 /* end confdefs.h.  */
30359 #if defined __LP64__ || defined __arch64__
30360                 yes
30361                 #endif
30362 _ACEOF
30363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30364   $EGREP "yes" >/dev/null 2>&1; then :
30365   gl_cv_func_itold_works="guessing no"
30366 else
30367   gl_cv_func_itold_works="guessing yes"
30368 fi
30369 rm -f conftest*
30370
30371              ;;
30372            *) gl_cv_func_itold_works="guessing yes" ;;
30373          esac
30374
30375 else
30376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30377 /* end confdefs.h.  */
30378
30379 int i = -1;
30380 volatile long double ld;
30381 int main ()
30382 {
30383   ld += i * 1.0L;
30384   if (ld > 0)
30385     return 1;
30386   return 0;
30387 }
30388 _ACEOF
30389 if ac_fn_c_try_run "$LINENO"; then :
30390   gl_cv_func_itold_works=yes
30391 else
30392   gl_cv_func_itold_works=no
30393 fi
30394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30395   conftest.$ac_objext conftest.beam conftest.$ac_ext
30396 fi
30397
30398
30399 fi
30400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
30401 $as_echo "$gl_cv_func_itold_works" >&6; }
30402   case "$gl_cv_func_itold_works" in
30403     *no)
30404       REPLACE_ITOLD=1
30405                   FLOAT_H=float.h
30406       ;;
30407   esac
30408
30409   if test -n "$FLOAT_H"; then
30410
30411
30412
30413
30414
30415
30416
30417
30418      if test $gl_cv_have_include_next = yes; then
30419        gl_cv_next_float_h='<'float.h'>'
30420      else
30421        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
30422 $as_echo_n "checking absolute name of <float.h>... " >&6; }
30423 if ${gl_cv_next_float_h+:} false; then :
30424   $as_echo_n "(cached) " >&6
30425 else
30426
30427                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30428 /* end confdefs.h.  */
30429 #include <float.h>
30430
30431 _ACEOF
30432                                                                                                                         case "$host_os" in
30433                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
30434                  *)    gl_absname_cpp="$ac_cpp" ;;
30435                esac
30436
30437                case "$host_os" in
30438                  mingw*)
30439                                                                                                                                      gl_dirsep_regex='[/\\]'
30440                    ;;
30441                  *)
30442                    gl_dirsep_regex='\/'
30443                    ;;
30444                esac
30445                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30446
30447                gl_header_literal_regex=`echo 'float.h' \
30448                                         | sed -e "$gl_make_literal_regex_sed"`
30449                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30450                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30451                    s|^/[^/]|//&|
30452                    p
30453                    q
30454                  }'
30455                                                             gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30456                       sed -n "$gl_absolute_header_sed"`'"'
30457
30458
30459 fi
30460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
30461 $as_echo "$gl_cv_next_float_h" >&6; }
30462      fi
30463      NEXT_FLOAT_H=$gl_cv_next_float_h
30464
30465      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30466        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30467        gl_next_as_first_directive='<'float.h'>'
30468      else
30469        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30470        gl_next_as_first_directive=$gl_cv_next_float_h
30471      fi
30472      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
30473
30474
30475
30476
30477   fi
30478
30479    if test -n "$FLOAT_H"; then
30480   GL_GENERATE_FLOAT_H_TRUE=
30481   GL_GENERATE_FLOAT_H_FALSE='#'
30482 else
30483   GL_GENERATE_FLOAT_H_TRUE='#'
30484   GL_GENERATE_FLOAT_H_FALSE=
30485 fi
30486
30487
30488
30489 if test $REPLACE_FLOAT_LDBL = 1; then
30490
30491
30492
30493
30494
30495
30496
30497
30498   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
30499
30500 fi
30501 if test $REPLACE_ITOLD = 1; then
30502
30503
30504
30505
30506
30507
30508
30509
30510   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
30511
30512 fi
30513
30514
30515
30516     if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
30517     REPLACE_FSEEK=1
30518   fi
30519
30520 if test $REPLACE_FSEEK = 1; then
30521
30522
30523
30524
30525
30526
30527
30528
30529   gl_LIBOBJS="$gl_LIBOBJS fseek.$ac_objext"
30530
30531 fi
30532
30533
30534
30535
30536
30537           GNULIB_FSEEK=1
30538
30539
30540
30541
30542
30543 $as_echo "#define GNULIB_TEST_FSEEK 1" >>confdefs.h
30544
30545
30546
30547
30548
30549
30550
30551
30552
30553
30554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
30555 $as_echo_n "checking for fseeko... " >&6; }
30556 if ${gl_cv_func_fseeko+:} false; then :
30557   $as_echo_n "(cached) " >&6
30558 else
30559
30560       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30561 /* end confdefs.h.  */
30562 #include <stdio.h>
30563
30564 int
30565 main ()
30566 {
30567 fseeko (stdin, 0, 0);
30568   ;
30569   return 0;
30570 }
30571 _ACEOF
30572 if ac_fn_c_try_link "$LINENO"; then :
30573   gl_cv_func_fseeko=yes
30574 else
30575   gl_cv_func_fseeko=no
30576 fi
30577 rm -f core conftest.err conftest.$ac_objext \
30578     conftest$ac_exeext conftest.$ac_ext
30579
30580 fi
30581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
30582 $as_echo "$gl_cv_func_fseeko" >&6; }
30583
30584
30585   :
30586
30587
30588
30589
30590
30591   if test $ac_cv_have_decl_fseeko = no; then
30592     HAVE_DECL_FSEEKO=0
30593   fi
30594
30595   if test $gl_cv_func_fseeko = no; then
30596     HAVE_FSEEKO=0
30597   else
30598     if test $gl_cv_var_stdin_large_offset = no; then
30599       REPLACE_FSEEKO=1
30600     fi
30601
30602   fi
30603
30604 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
30605
30606
30607
30608
30609
30610
30611
30612
30613   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
30614
30615 fi
30616
30617
30618
30619
30620
30621           GNULIB_FSEEKO=1
30622
30623
30624
30625
30626
30627 $as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
30628
30629
30630
30631
30632
30633
30634   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
30635     REPLACE_FSTAT=1
30636   fi
30637
30638
30639 if test $REPLACE_FSTAT = 1; then
30640
30641
30642
30643
30644
30645
30646
30647
30648   gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
30649
30650
30651
30652
30653 fi
30654
30655
30656
30657
30658
30659           GNULIB_FSTAT=1
30660
30661
30662
30663
30664
30665 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
30666
30667
30668
30669
30670
30671
30672     if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
30673     REPLACE_FTELL=1
30674   fi
30675
30676 if test $REPLACE_FTELL = 1; then
30677
30678
30679
30680
30681
30682
30683
30684
30685   gl_LIBOBJS="$gl_LIBOBJS ftell.$ac_objext"
30686
30687 fi
30688
30689
30690
30691
30692
30693           GNULIB_FTELL=1
30694
30695
30696
30697
30698
30699 $as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
30700
30701
30702
30703
30704
30705
30706
30707
30708
30709
30710
30711   :
30712
30713
30714
30715
30716
30717   if test $ac_cv_have_decl_ftello = no; then
30718     HAVE_DECL_FTELLO=0
30719   fi
30720
30721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
30722 $as_echo_n "checking for ftello... " >&6; }
30723 if ${gl_cv_func_ftello+:} false; then :
30724   $as_echo_n "(cached) " >&6
30725 else
30726
30727       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30728 /* end confdefs.h.  */
30729 #include <stdio.h>
30730 int
30731 main ()
30732 {
30733 ftello (stdin);
30734   ;
30735   return 0;
30736 }
30737 _ACEOF
30738 if ac_fn_c_try_link "$LINENO"; then :
30739   gl_cv_func_ftello=yes
30740 else
30741   gl_cv_func_ftello=no
30742 fi
30743 rm -f core conftest.err conftest.$ac_objext \
30744     conftest$ac_exeext conftest.$ac_ext
30745
30746 fi
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
30748 $as_echo "$gl_cv_func_ftello" >&6; }
30749   if test $gl_cv_func_ftello = no; then
30750     HAVE_FTELLO=0
30751   else
30752     if test $gl_cv_var_stdin_large_offset = no; then
30753       REPLACE_FTELLO=1
30754     else
30755
30756       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
30757 $as_echo_n "checking whether ftello works... " >&6; }
30758 if ${gl_cv_func_ftello_works+:} false; then :
30759   $as_echo_n "(cached) " >&6
30760 else
30761
30762                               case "$host_os" in
30763                       # Guess no on Solaris.
30764             solaris*) gl_cv_func_ftello_works="guessing no" ;;
30765                       # Guess yes otherwise.
30766             *)        gl_cv_func_ftello_works="guessing yes" ;;
30767           esac
30768           if test "$cross_compiling" = yes; then :
30769   :
30770 else
30771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30772 /* end confdefs.h.  */
30773
30774 #include <stdio.h>
30775 #include <stdlib.h>
30776 #include <string.h>
30777 #define TESTFILE "conftest.tmp"
30778 int
30779 main (void)
30780 {
30781   FILE *fp;
30782
30783   /* Create a file with some contents.  */
30784   fp = fopen (TESTFILE, "w");
30785   if (fp == NULL)
30786     return 70;
30787   if (fwrite ("foogarsh", 1, 8, fp) < 8)
30788     return 71;
30789   if (fclose (fp))
30790     return 72;
30791
30792   /* The file's contents is now "foogarsh".  */
30793
30794   /* Try writing after reading to EOF.  */
30795   fp = fopen (TESTFILE, "r+");
30796   if (fp == NULL)
30797     return 73;
30798   if (fseek (fp, -1, SEEK_END))
30799     return 74;
30800   if (!(getc (fp) == 'h'))
30801     return 1;
30802   if (!(getc (fp) == EOF))
30803     return 2;
30804   if (!(ftell (fp) == 8))
30805     return 3;
30806   if (!(ftell (fp) == 8))
30807     return 4;
30808   if (!(putc ('!', fp) == '!'))
30809     return 5;
30810   if (!(ftell (fp) == 9))
30811     return 6;
30812   if (!(fclose (fp) == 0))
30813     return 7;
30814   fp = fopen (TESTFILE, "r");
30815   if (fp == NULL)
30816     return 75;
30817   {
30818     char buf[10];
30819     if (!(fread (buf, 1, 10, fp) == 9))
30820       return 10;
30821     if (!(memcmp (buf, "foogarsh!", 9) == 0))
30822       return 11;
30823   }
30824   if (!(fclose (fp) == 0))
30825     return 12;
30826
30827   /* The file's contents is now "foogarsh!".  */
30828
30829   return 0;
30830 }
30831 _ACEOF
30832 if ac_fn_c_try_run "$LINENO"; then :
30833   gl_cv_func_ftello_works=yes
30834 else
30835   gl_cv_func_ftello_works=no
30836 fi
30837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30838   conftest.$ac_objext conftest.beam conftest.$ac_ext
30839 fi
30840
30841
30842 fi
30843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
30844 $as_echo "$gl_cv_func_ftello_works" >&6; }
30845       case "$gl_cv_func_ftello_works" in
30846         *yes) ;;
30847         *)
30848           REPLACE_FTELLO=1
30849
30850 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
30851
30852           ;;
30853       esac
30854     fi
30855   fi
30856
30857 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
30858
30859
30860
30861
30862
30863
30864
30865
30866   gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
30867
30868 fi
30869
30870
30871
30872
30873
30874           GNULIB_FTELLO=1
30875
30876
30877
30878
30879
30880 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
30881
30882
30883
30884
30885       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
30886 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
30887   GETADDRINFO_LIB=
30888   gai_saved_LIBS="$LIBS"
30889
30890               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
30891 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
30892 if ${ac_cv_search_getaddrinfo+:} false; then :
30893   $as_echo_n "(cached) " >&6
30894 else
30895   ac_func_search_save_LIBS=$LIBS
30896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30897 /* end confdefs.h.  */
30898
30899 /* Override any GCC internal prototype to avoid an error.
30900    Use char because int might match the return type of a GCC
30901    builtin and then its argument prototype would still apply.  */
30902 #ifdef __cplusplus
30903 extern "C"
30904 #endif
30905 char getaddrinfo ();
30906 int
30907 main ()
30908 {
30909 return getaddrinfo ();
30910   ;
30911   return 0;
30912 }
30913 _ACEOF
30914 for ac_lib in '' socket network net; do
30915   if test -z "$ac_lib"; then
30916     ac_res="none required"
30917   else
30918     ac_res=-l$ac_lib
30919     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30920   fi
30921   if ac_fn_c_try_link "$LINENO"; then :
30922   ac_cv_search_getaddrinfo=$ac_res
30923 fi
30924 rm -f core conftest.err conftest.$ac_objext \
30925     conftest$ac_exeext
30926   if ${ac_cv_search_getaddrinfo+:} false; then :
30927   break
30928 fi
30929 done
30930 if ${ac_cv_search_getaddrinfo+:} false; then :
30931
30932 else
30933   ac_cv_search_getaddrinfo=no
30934 fi
30935 rm conftest.$ac_ext
30936 LIBS=$ac_func_search_save_LIBS
30937 fi
30938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
30939 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
30940 ac_res=$ac_cv_search_getaddrinfo
30941 if test "$ac_res" != no; then :
30942   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30943   if test "$ac_cv_search_getaddrinfo" != "none required"; then
30944        GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
30945      fi
30946 fi
30947
30948   LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
30949
30950   HAVE_GETADDRINFO=1
30951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
30952 $as_echo_n "checking for getaddrinfo... " >&6; }
30953 if ${gl_cv_func_getaddrinfo+:} false; then :
30954   $as_echo_n "(cached) " >&6
30955 else
30956
30957     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30958 /* end confdefs.h.  */
30959
30960 #include <sys/types.h>
30961 #ifdef HAVE_SYS_SOCKET_H
30962 #include <sys/socket.h>
30963 #endif
30964 #ifdef HAVE_NETDB_H
30965 #include <netdb.h>
30966 #endif
30967 #include <stddef.h>
30968
30969 int
30970 main ()
30971 {
30972 getaddrinfo("", "", NULL, NULL);
30973   ;
30974   return 0;
30975 }
30976 _ACEOF
30977 if ac_fn_c_try_link "$LINENO"; then :
30978   gl_cv_func_getaddrinfo=yes
30979 else
30980   gl_cv_func_getaddrinfo=no
30981 fi
30982 rm -f core conftest.err conftest.$ac_objext \
30983     conftest$ac_exeext conftest.$ac_ext
30984 fi
30985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5
30986 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
30987   if test $gl_cv_func_getaddrinfo = no; then
30988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
30989 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
30990 if ${gl_cv_w32_getaddrinfo+:} false; then :
30991   $as_echo_n "(cached) " >&6
30992 else
30993
30994       gl_cv_w32_getaddrinfo=no
30995       am_save_LIBS="$LIBS"
30996       LIBS="$LIBS -lws2_32"
30997       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30998 /* end confdefs.h.  */
30999
31000 #ifdef HAVE_WS2TCPIP_H
31001 #include <ws2tcpip.h>
31002 #endif
31003 #include <stddef.h>
31004
31005 int
31006 main ()
31007 {
31008 getaddrinfo(NULL, NULL, NULL, NULL);
31009   ;
31010   return 0;
31011 }
31012 _ACEOF
31013 if ac_fn_c_try_link "$LINENO"; then :
31014   gl_cv_w32_getaddrinfo=yes
31015 fi
31016 rm -f core conftest.err conftest.$ac_objext \
31017     conftest$ac_exeext conftest.$ac_ext
31018       LIBS="$am_save_LIBS"
31019
31020 fi
31021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5
31022 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
31023     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
31024       GETADDRINFO_LIB="-lws2_32"
31025       LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
31026     else
31027       HAVE_GETADDRINFO=0
31028     fi
31029   fi
31030
31031   # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
31032   # inline function declared in ws2tcpip.h, so we need to get that
31033   # header included somehow.
31034   ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" "
31035 #include <sys/types.h>
31036 #ifdef HAVE_SYS_SOCKET_H
31037 #include <sys/socket.h>
31038 #endif
31039 #ifdef HAVE_NETDB_H
31040 #include <netdb.h>
31041 #endif
31042 #ifdef HAVE_WS2TCPIP_H
31043 #include <ws2tcpip.h>
31044 #endif
31045 #include <stddef.h>
31046
31047 "
31048 if test "x$ac_cv_have_decl_gai_strerror" = xyes; then :
31049   ac_have_decl=1
31050 else
31051   ac_have_decl=0
31052 fi
31053
31054 cat >>confdefs.h <<_ACEOF
31055 #define HAVE_DECL_GAI_STRERROR $ac_have_decl
31056 _ACEOF
31057
31058   if test $ac_cv_have_decl_gai_strerror = yes; then
31059     ac_fn_c_check_decl "$LINENO" "gai_strerrorA" "ac_cv_have_decl_gai_strerrorA" "
31060 #include <sys/types.h>
31061 #ifdef HAVE_SYS_SOCKET_H
31062 #include <sys/socket.h>
31063 #endif
31064 #ifdef HAVE_NETDB_H
31065 #include <netdb.h>
31066 #endif
31067 #ifdef HAVE_WS2TCPIP_H
31068 #include <ws2tcpip.h>
31069 #endif
31070 #include <stddef.h>
31071
31072 "
31073 if test "x$ac_cv_have_decl_gai_strerrorA" = xyes; then :
31074   ac_have_decl=1
31075 else
31076   ac_have_decl=0
31077 fi
31078
31079 cat >>confdefs.h <<_ACEOF
31080 #define HAVE_DECL_GAI_STRERRORA $ac_have_decl
31081 _ACEOF
31082
31083         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror with POSIX signature" >&5
31084 $as_echo_n "checking for gai_strerror with POSIX signature... " >&6; }
31085 if ${gl_cv_func_gai_strerror_posix_signature+:} false; then :
31086   $as_echo_n "(cached) " >&6
31087 else
31088
31089       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31090 /* end confdefs.h.  */
31091
31092 #include <sys/types.h>
31093 #ifdef HAVE_SYS_SOCKET_H
31094 #include <sys/socket.h>
31095 #endif
31096 #ifdef HAVE_NETDB_H
31097 #include <netdb.h>
31098 #endif
31099 #ifdef HAVE_WS2TCPIP_H
31100 #include <ws2tcpip.h>
31101 #endif
31102 #include <stddef.h>
31103 extern
31104 #ifdef __cplusplus
31105 "C"
31106 #endif
31107 const char *gai_strerror(int);
31108 _ACEOF
31109 if ac_fn_c_try_compile "$LINENO"; then :
31110   gl_cv_func_gai_strerror_posix_signature=yes
31111 else
31112   gl_cv_func_gai_strerror_posix_signature=no
31113 fi
31114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31115 fi
31116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror_posix_signature" >&5
31117 $as_echo "$gl_cv_func_gai_strerror_posix_signature" >&6; }
31118     if test $gl_cv_func_gai_strerror_posix_signature = no; then
31119       REPLACE_GAI_STRERROR=1
31120     fi
31121   fi
31122
31123   LIBS="$gai_saved_LIBS"
31124
31125
31126
31127
31128
31129
31130
31131
31132
31133       ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
31134 #include <sys/types.h>
31135 #include <sys/socket.h>
31136
31137 "
31138 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
31139
31140 cat >>confdefs.h <<_ACEOF
31141 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
31142 _ACEOF
31143
31144
31145 fi
31146
31147
31148
31149   :
31150
31151
31152
31153
31154
31155
31156   ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
31157   /* sys/types.h is not needed according to POSIX, but the
31158      sys/socket.h in i386-unknown-freebsd4.10 and
31159      powerpc-apple-darwin5.5 required it. */
31160 #include <sys/types.h>
31161 #ifdef HAVE_SYS_SOCKET_H
31162 #include <sys/socket.h>
31163 #endif
31164 #ifdef HAVE_NETDB_H
31165 #include <netdb.h>
31166 #endif
31167 #ifdef HAVE_WS2TCPIP_H
31168 #include <ws2tcpip.h>
31169 #endif
31170
31171 "
31172 if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
31173   ac_have_decl=1
31174 else
31175   ac_have_decl=0
31176 fi
31177
31178 cat >>confdefs.h <<_ACEOF
31179 #define HAVE_DECL_GETADDRINFO $ac_have_decl
31180 _ACEOF
31181 ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" "
31182   /* sys/types.h is not needed according to POSIX, but the
31183      sys/socket.h in i386-unknown-freebsd4.10 and
31184      powerpc-apple-darwin5.5 required it. */
31185 #include <sys/types.h>
31186 #ifdef HAVE_SYS_SOCKET_H
31187 #include <sys/socket.h>
31188 #endif
31189 #ifdef HAVE_NETDB_H
31190 #include <netdb.h>
31191 #endif
31192 #ifdef HAVE_WS2TCPIP_H
31193 #include <ws2tcpip.h>
31194 #endif
31195
31196 "
31197 if test "x$ac_cv_have_decl_freeaddrinfo" = xyes; then :
31198   ac_have_decl=1
31199 else
31200   ac_have_decl=0
31201 fi
31202
31203 cat >>confdefs.h <<_ACEOF
31204 #define HAVE_DECL_FREEADDRINFO $ac_have_decl
31205 _ACEOF
31206 ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "
31207   /* sys/types.h is not needed according to POSIX, but the
31208      sys/socket.h in i386-unknown-freebsd4.10 and
31209      powerpc-apple-darwin5.5 required it. */
31210 #include <sys/types.h>
31211 #ifdef HAVE_SYS_SOCKET_H
31212 #include <sys/socket.h>
31213 #endif
31214 #ifdef HAVE_NETDB_H
31215 #include <netdb.h>
31216 #endif
31217 #ifdef HAVE_WS2TCPIP_H
31218 #include <ws2tcpip.h>
31219 #endif
31220
31221 "
31222 if test "x$ac_cv_have_decl_getnameinfo" = xyes; then :
31223   ac_have_decl=1
31224 else
31225   ac_have_decl=0
31226 fi
31227
31228 cat >>confdefs.h <<_ACEOF
31229 #define HAVE_DECL_GETNAMEINFO $ac_have_decl
31230 _ACEOF
31231
31232   if test $ac_cv_have_decl_getaddrinfo = no; then
31233     HAVE_DECL_GETADDRINFO=0
31234   fi
31235   if test $ac_cv_have_decl_freeaddrinfo = no; then
31236     HAVE_DECL_FREEADDRINFO=0
31237   fi
31238   if test $ac_cv_have_decl_gai_strerror = no; then
31239     HAVE_DECL_GAI_STRERROR=0
31240   fi
31241   if test $ac_cv_have_decl_getnameinfo = no; then
31242     HAVE_DECL_GETNAMEINFO=0
31243   fi
31244
31245   ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
31246 #include <sys/types.h>
31247 #ifdef HAVE_SYS_SOCKET_H
31248 #include <sys/socket.h>
31249 #endif
31250 #ifdef HAVE_NETDB_H
31251 #include <netdb.h>
31252 #endif
31253 #ifdef HAVE_WS2TCPIP_H
31254 #include <ws2tcpip.h>
31255 #endif
31256
31257 "
31258 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
31259
31260 cat >>confdefs.h <<_ACEOF
31261 #define HAVE_STRUCT_ADDRINFO 1
31262 _ACEOF
31263
31264
31265 fi
31266
31267   if test $ac_cv_type_struct_addrinfo = no; then
31268     HAVE_STRUCT_ADDRINFO=0
31269   fi
31270
31271     case " $GETADDRINFO_LIB " in
31272     *" $HOSTENT_LIB "*) ;;
31273     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
31274   esac
31275
31276     case " $GETADDRINFO_LIB " in
31277     *" $SERVENT_LIB "*) ;;
31278     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
31279   esac
31280
31281     case " $GETADDRINFO_LIB " in
31282     *" $INET_NTOP_LIB "*) ;;
31283     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
31284   esac
31285
31286
31287
31288
31289 if test $HAVE_GETADDRINFO = 0; then
31290
31291
31292
31293
31294
31295
31296
31297
31298   gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
31299
31300 fi
31301 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
31302
31303
31304
31305
31306
31307
31308
31309
31310   gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
31311
31312 fi
31313
31314
31315
31316
31317
31318           GNULIB_GETADDRINFO=1
31319
31320
31321
31322
31323
31324 $as_echo "#define GNULIB_TEST_GETADDRINFO 1" >>confdefs.h
31325
31326
31327
31328
31329
31330
31331
31332
31333
31334   :
31335
31336
31337
31338
31339
31340
31341
31342   :
31343
31344
31345
31346
31347
31348   if test $ac_cv_func_getdelim = yes; then
31349     HAVE_GETDELIM=1
31350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
31351 $as_echo_n "checking for working getdelim function... " >&6; }
31352 if ${gl_cv_func_working_getdelim+:} false; then :
31353   $as_echo_n "(cached) " >&6
31354 else
31355   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
31356     if test "$cross_compiling" = yes; then :
31357         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31358 /* end confdefs.h.  */
31359
31360 #include <features.h>
31361 #ifdef __GNU_LIBRARY__
31362  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
31363   Lucky GNU user
31364  #endif
31365 #endif
31366
31367 _ACEOF
31368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31369   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
31370   gl_cv_func_working_getdelim=yes
31371 else
31372   gl_cv_func_working_getdelim=no
31373 fi
31374 rm -f conftest*
31375
31376
31377 else
31378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31379 /* end confdefs.h.  */
31380
31381 #    include <stdio.h>
31382 #    include <stdlib.h>
31383 #    include <string.h>
31384     int main ()
31385     {
31386       FILE *in = fopen ("./conftest.data", "r");
31387       if (!in)
31388         return 1;
31389       {
31390         /* Test result for a NULL buffer and a zero size.
31391            Based on a test program from Karl Heuer.  */
31392         char *line = NULL;
31393         size_t siz = 0;
31394         int len = getdelim (&line, &siz, '\n', in);
31395         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
31396           return 2;
31397       }
31398       {
31399         /* Test result for a NULL buffer and a non-zero size.
31400            This crashes on FreeBSD 8.0.  */
31401         char *line = NULL;
31402         size_t siz = (size_t)(~0) / 4;
31403         if (getdelim (&line, &siz, '\n', in) == -1)
31404           return 3;
31405       }
31406       return 0;
31407     }
31408
31409 _ACEOF
31410 if ac_fn_c_try_run "$LINENO"; then :
31411   gl_cv_func_working_getdelim=yes
31412 else
31413   gl_cv_func_working_getdelim=no
31414 fi
31415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31416   conftest.$ac_objext conftest.beam conftest.$ac_ext
31417 fi
31418
31419 fi
31420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
31421 $as_echo "$gl_cv_func_working_getdelim" >&6; }
31422     if test $gl_cv_func_working_getdelim = no; then
31423       REPLACE_GETDELIM=1
31424     fi
31425   else
31426     HAVE_GETDELIM=0
31427   fi
31428
31429   if test $ac_cv_have_decl_getdelim = no; then
31430     HAVE_DECL_GETDELIM=0
31431   fi
31432
31433 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
31434
31435
31436
31437
31438
31439
31440
31441
31442   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
31443
31444
31445   for ac_func in flockfile funlockfile
31446 do :
31447   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31448 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31449 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31450   cat >>confdefs.h <<_ACEOF
31451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31452 _ACEOF
31453
31454 fi
31455 done
31456
31457   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
31458 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
31459   ac_have_decl=1
31460 else
31461   ac_have_decl=0
31462 fi
31463
31464 cat >>confdefs.h <<_ACEOF
31465 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
31466 _ACEOF
31467
31468
31469 fi
31470
31471
31472
31473
31474
31475           GNULIB_GETDELIM=1
31476
31477
31478
31479
31480
31481 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
31482
31483
31484
31485
31486
31487
31488
31489
31490
31491   :
31492
31493
31494
31495
31496
31497
31498   gl_getline_needs_run_time_check=no
31499   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
31500 if test "x$ac_cv_func_getline" = xyes; then :
31501                    gl_getline_needs_run_time_check=yes
31502 else
31503   am_cv_func_working_getline=no
31504 fi
31505
31506   if test $gl_getline_needs_run_time_check = yes; then
31507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
31508 $as_echo_n "checking for working getline function... " >&6; }
31509 if ${am_cv_func_working_getline+:} false; then :
31510   $as_echo_n "(cached) " >&6
31511 else
31512   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
31513     if test "$cross_compiling" = yes; then :
31514         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31515 /* end confdefs.h.  */
31516
31517 #include <features.h>
31518 #ifdef __GNU_LIBRARY__
31519  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
31520   Lucky GNU user
31521  #endif
31522 #endif
31523
31524 _ACEOF
31525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31526   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
31527   am_cv_func_working_getline=yes
31528 else
31529   am_cv_func_working_getline=no
31530 fi
31531 rm -f conftest*
31532
31533
31534 else
31535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31536 /* end confdefs.h.  */
31537
31538 #    include <stdio.h>
31539 #    include <stdlib.h>
31540 #    include <string.h>
31541     int main ()
31542     {
31543       FILE *in = fopen ("./conftest.data", "r");
31544       if (!in)
31545         return 1;
31546       {
31547         /* Test result for a NULL buffer and a zero size.
31548            Based on a test program from Karl Heuer.  */
31549         char *line = NULL;
31550         size_t siz = 0;
31551         int len = getline (&line, &siz, in);
31552         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
31553           return 2;
31554       }
31555       {
31556         /* Test result for a NULL buffer and a non-zero size.
31557            This crashes on FreeBSD 8.0.  */
31558         char *line = NULL;
31559         size_t siz = (size_t)(~0) / 4;
31560         if (getline (&line, &siz, in) == -1)
31561           return 3;
31562       }
31563       return 0;
31564     }
31565
31566 _ACEOF
31567 if ac_fn_c_try_run "$LINENO"; then :
31568   am_cv_func_working_getline=yes
31569 else
31570   am_cv_func_working_getline=no
31571 fi
31572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31573   conftest.$ac_objext conftest.beam conftest.$ac_ext
31574 fi
31575
31576 fi
31577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
31578 $as_echo "$am_cv_func_working_getline" >&6; }
31579   fi
31580
31581   if test $ac_cv_have_decl_getline = no; then
31582     HAVE_DECL_GETLINE=0
31583   fi
31584
31585   if test $am_cv_func_working_getline = no; then
31586                 REPLACE_GETLINE=1
31587   fi
31588
31589 if test $REPLACE_GETLINE = 1; then
31590
31591
31592
31593
31594
31595
31596
31597
31598   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
31599
31600
31601   :
31602
31603 fi
31604
31605
31606
31607
31608
31609           GNULIB_GETLINE=1
31610
31611
31612
31613
31614
31615 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
31616
31617
31618
31619
31620
31621
31622
31623   :
31624
31625
31626
31627
31628
31629     REPLACE_GETPASS=1
31630
31631   if test $REPLACE_GETPASS = 1; then
31632
31633 $as_echo "#define getpass gnu_getpass" >>confdefs.h
31634
31635   fi
31636
31637 if test $REPLACE_GETPASS = 1; then
31638
31639
31640
31641
31642
31643
31644
31645
31646   gl_LIBOBJS="$gl_LIBOBJS getpass.$ac_objext"
31647
31648
31649
31650   :
31651
31652
31653
31654
31655
31656
31657
31658
31659
31660   :
31661
31662
31663
31664
31665
31666
31667
31668
31669
31670
31671
31672   ac_fn_c_check_decl "$LINENO" "__fsetlocking" "ac_cv_have_decl___fsetlocking" "#include <stdio.h>
31673       #if HAVE_STDIO_EXT_H
31674        #include <stdio_ext.h>
31675       #endif
31676 "
31677 if test "x$ac_cv_have_decl___fsetlocking" = xyes; then :
31678   ac_have_decl=1
31679 else
31680   ac_have_decl=0
31681 fi
31682
31683 cat >>confdefs.h <<_ACEOF
31684 #define HAVE_DECL___FSETLOCKING $ac_have_decl
31685 _ACEOF
31686
31687
31688   :
31689
31690
31691
31692
31693
31694
31695   :
31696
31697
31698
31699
31700
31701
31702   :
31703
31704
31705
31706
31707
31708
31709   :
31710
31711
31712
31713
31714
31715
31716   :
31717
31718
31719
31720
31721
31722   :
31723
31724 fi
31725
31726
31727
31728
31729
31730
31731   :
31732
31733
31734
31735
31736
31737
31738
31739
31740
31741
31742
31743
31744
31745
31746   :
31747
31748
31749
31750
31751
31752
31753   gl_gettimeofday_timezone=void
31754   if test $ac_cv_func_gettimeofday != yes; then
31755     HAVE_GETTIMEOFDAY=0
31756   else
31757
31758
31759
31760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
31761 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
31762 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
31763   $as_echo_n "(cached) " >&6
31764 else
31765   if test "$cross_compiling" = yes; then :
31766        gl_cv_func_gettimeofday_clobber=yes
31767 else
31768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31769 /* end confdefs.h.  */
31770 #include <string.h>
31771           #include <sys/time.h>
31772           #include <time.h>
31773           #include <stdlib.h>
31774
31775 int
31776 main ()
31777 {
31778
31779           time_t t = 0;
31780           struct tm *lt;
31781           struct tm saved_lt;
31782           struct timeval tv;
31783           lt = localtime (&t);
31784           saved_lt = *lt;
31785           gettimeofday (&tv, NULL);
31786           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
31787
31788   ;
31789   return 0;
31790 }
31791 _ACEOF
31792 if ac_fn_c_try_run "$LINENO"; then :
31793   gl_cv_func_gettimeofday_clobber=no
31794 else
31795   gl_cv_func_gettimeofday_clobber=yes
31796 fi
31797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31798   conftest.$ac_objext conftest.beam conftest.$ac_ext
31799 fi
31800
31801 fi
31802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
31803 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
31804
31805  if test $gl_cv_func_gettimeofday_clobber = yes; then
31806    REPLACE_GETTIMEOFDAY=1
31807
31808
31809 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
31810
31811
31812 $as_echo "#define localtime rpl_localtime" >>confdefs.h
31813
31814
31815
31816 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
31817
31818  fi
31819
31820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
31821 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
31822 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
31823   $as_echo_n "(cached) " >&6
31824 else
31825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31826 /* end confdefs.h.  */
31827 #include <sys/time.h>
31828               struct timeval c;
31829               int gettimeofday (struct timeval *restrict, void *restrict);
31830
31831 int
31832 main ()
31833 {
31834 /* glibc uses struct timezone * rather than the POSIX void *
31835                  if _GNU_SOURCE is defined.  However, since the only portable
31836                  use of gettimeofday uses NULL as the second parameter, and
31837                  since the glibc definition is actually more typesafe, it is
31838                  not worth wrapping this to get a compliant signature.  */
31839               int (*f) (struct timeval *restrict, void *restrict)
31840                 = gettimeofday;
31841               int x = f (&c, 0);
31842               return !(x | c.tv_sec | c.tv_usec);
31843
31844   ;
31845   return 0;
31846 }
31847 _ACEOF
31848 if ac_fn_c_try_compile "$LINENO"; then :
31849   gl_cv_func_gettimeofday_posix_signature=yes
31850 else
31851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31852 /* end confdefs.h.  */
31853 #include <sys/time.h>
31854 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
31855
31856 int
31857 main ()
31858 {
31859
31860   ;
31861   return 0;
31862 }
31863 _ACEOF
31864 if ac_fn_c_try_compile "$LINENO"; then :
31865   gl_cv_func_gettimeofday_posix_signature=almost
31866 else
31867   gl_cv_func_gettimeofday_posix_signature=no
31868 fi
31869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31870 fi
31871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31872 fi
31873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
31874 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
31875     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
31876       gl_gettimeofday_timezone='struct timezone'
31877     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
31878       REPLACE_GETTIMEOFDAY=1
31879     fi
31880         if test $REPLACE_STRUCT_TIMEVAL = 1; then
31881       REPLACE_GETTIMEOFDAY=1
31882     fi
31883
31884   fi
31885
31886 cat >>confdefs.h <<_ACEOF
31887 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
31888 _ACEOF
31889
31890
31891 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
31892
31893
31894
31895
31896
31897
31898
31899
31900   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
31901
31902
31903   for ac_header in sys/timeb.h
31904 do :
31905   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
31906 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
31907   cat >>confdefs.h <<_ACEOF
31908 #define HAVE_SYS_TIMEB_H 1
31909 _ACEOF
31910
31911 fi
31912
31913 done
31914
31915   for ac_func in _ftime
31916 do :
31917   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
31918 if test "x$ac_cv_func__ftime" = xyes; then :
31919   cat >>confdefs.h <<_ACEOF
31920 #define HAVE__FTIME 1
31921 _ACEOF
31922
31923 fi
31924 done
31925
31926
31927 fi
31928
31929
31930
31931
31932
31933           GNULIB_GETTIMEOFDAY=1
31934
31935
31936
31937
31938
31939 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
31940
31941
31942
31943 # Autoconf 2.61a.99 and earlier don't support linking a file only
31944 # in VPATH builds.  But since GNUmakefile is for maintainer use
31945 # only, it does not matter if we skip the link with older autoconf.
31946 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
31947 # builds, so use a shell variable to bypass this.
31948 GNUmakefile=GNUmakefile
31949 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
31950
31951
31952                   HOSTENT_LIB=
31953   gl_saved_libs="$LIBS"
31954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
31955 $as_echo_n "checking for library containing gethostbyname... " >&6; }
31956 if ${ac_cv_search_gethostbyname+:} false; then :
31957   $as_echo_n "(cached) " >&6
31958 else
31959   ac_func_search_save_LIBS=$LIBS
31960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31961 /* end confdefs.h.  */
31962
31963 /* Override any GCC internal prototype to avoid an error.
31964    Use char because int might match the return type of a GCC
31965    builtin and then its argument prototype would still apply.  */
31966 #ifdef __cplusplus
31967 extern "C"
31968 #endif
31969 char gethostbyname ();
31970 int
31971 main ()
31972 {
31973 return gethostbyname ();
31974   ;
31975   return 0;
31976 }
31977 _ACEOF
31978 for ac_lib in '' nsl network net; do
31979   if test -z "$ac_lib"; then
31980     ac_res="none required"
31981   else
31982     ac_res=-l$ac_lib
31983     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31984   fi
31985   if ac_fn_c_try_link "$LINENO"; then :
31986   ac_cv_search_gethostbyname=$ac_res
31987 fi
31988 rm -f core conftest.err conftest.$ac_objext \
31989     conftest$ac_exeext
31990   if ${ac_cv_search_gethostbyname+:} false; then :
31991   break
31992 fi
31993 done
31994 if ${ac_cv_search_gethostbyname+:} false; then :
31995
31996 else
31997   ac_cv_search_gethostbyname=no
31998 fi
31999 rm conftest.$ac_ext
32000 LIBS=$ac_func_search_save_LIBS
32001 fi
32002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
32003 $as_echo "$ac_cv_search_gethostbyname" >&6; }
32004 ac_res=$ac_cv_search_gethostbyname
32005 if test "$ac_res" != no; then :
32006   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32007   if test "$ac_cv_search_gethostbyname" != "none required"; then
32008        HOSTENT_LIB="$ac_cv_search_gethostbyname"
32009      fi
32010 fi
32011
32012   LIBS="$gl_saved_libs"
32013   if test -z "$HOSTENT_LIB"; then
32014     for ac_func in gethostbyname
32015 do :
32016   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
32017 if test "x$ac_cv_func_gethostbyname" = xyes; then :
32018   cat >>confdefs.h <<_ACEOF
32019 #define HAVE_GETHOSTBYNAME 1
32020 _ACEOF
32021
32022 else
32023
32024       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
32025 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
32026 if ${gl_cv_w32_gethostbyname+:} false; then :
32027   $as_echo_n "(cached) " >&6
32028 else
32029   gl_cv_w32_gethostbyname=no
32030          gl_save_LIBS="$LIBS"
32031          LIBS="$LIBS -lws2_32"
32032          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32033 /* end confdefs.h.  */
32034
32035 #ifdef HAVE_WINSOCK2_H
32036 #include <winsock2.h>
32037 #endif
32038 #include <stddef.h>
32039
32040 int
32041 main ()
32042 {
32043 gethostbyname(NULL);
32044   ;
32045   return 0;
32046 }
32047 _ACEOF
32048 if ac_fn_c_try_link "$LINENO"; then :
32049   gl_cv_w32_gethostbyname=yes
32050 fi
32051 rm -f core conftest.err conftest.$ac_objext \
32052     conftest$ac_exeext conftest.$ac_ext
32053          LIBS="$gl_save_LIBS"
32054
32055 fi
32056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
32057 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
32058       if test "$gl_cv_w32_gethostbyname" = "yes"; then
32059         HOSTENT_LIB="-lws2_32"
32060       fi
32061
32062 fi
32063 done
32064
32065   fi
32066
32067
32068
32069
32070
32071
32072
32073
32074
32075               HAVE_INET_NTOP=1
32076   INET_NTOP_LIB=
32077
32078
32079
32080
32081   :
32082
32083
32084
32085
32086
32087   if test $ac_cv_header_sys_socket_h != yes; then
32088                     for ac_header in winsock2.h
32089 do :
32090   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
32091 if test "x$ac_cv_header_winsock2_h" = xyes; then :
32092   cat >>confdefs.h <<_ACEOF
32093 #define HAVE_WINSOCK2_H 1
32094 _ACEOF
32095
32096 fi
32097
32098 done
32099
32100   fi
32101   if test "$ac_cv_header_winsock2_h" = yes; then
32102     HAVE_WINSOCK2_H=1
32103     UNISTD_H_HAVE_WINSOCK2_H=1
32104     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
32105   else
32106     HAVE_WINSOCK2_H=0
32107   fi
32108
32109
32110   if test $HAVE_WINSOCK2_H = 1; then
32111     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
32112 "
32113 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
32114   ac_have_decl=1
32115 else
32116   ac_have_decl=0
32117 fi
32118
32119 cat >>confdefs.h <<_ACEOF
32120 #define HAVE_DECL_INET_NTOP $ac_have_decl
32121 _ACEOF
32122
32123     if test $ac_cv_have_decl_inet_ntop = yes; then
32124                   REPLACE_INET_NTOP=1
32125       INET_NTOP_LIB="-lws2_32"
32126     else
32127       HAVE_DECL_INET_NTOP=0
32128       HAVE_INET_NTOP=0
32129     fi
32130   else
32131     gl_save_LIBS=$LIBS
32132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
32133 $as_echo_n "checking for library containing inet_ntop... " >&6; }
32134 if ${ac_cv_search_inet_ntop+:} false; then :
32135   $as_echo_n "(cached) " >&6
32136 else
32137   ac_func_search_save_LIBS=$LIBS
32138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32139 /* end confdefs.h.  */
32140
32141 /* Override any GCC internal prototype to avoid an error.
32142    Use char because int might match the return type of a GCC
32143    builtin and then its argument prototype would still apply.  */
32144 #ifdef __cplusplus
32145 extern "C"
32146 #endif
32147 char inet_ntop ();
32148 int
32149 main ()
32150 {
32151 return inet_ntop ();
32152   ;
32153   return 0;
32154 }
32155 _ACEOF
32156 for ac_lib in '' nsl resolv; do
32157   if test -z "$ac_lib"; then
32158     ac_res="none required"
32159   else
32160     ac_res=-l$ac_lib
32161     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32162   fi
32163   if ac_fn_c_try_link "$LINENO"; then :
32164   ac_cv_search_inet_ntop=$ac_res
32165 fi
32166 rm -f core conftest.err conftest.$ac_objext \
32167     conftest$ac_exeext
32168   if ${ac_cv_search_inet_ntop+:} false; then :
32169   break
32170 fi
32171 done
32172 if ${ac_cv_search_inet_ntop+:} false; then :
32173
32174 else
32175   ac_cv_search_inet_ntop=no
32176 fi
32177 rm conftest.$ac_ext
32178 LIBS=$ac_func_search_save_LIBS
32179 fi
32180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
32181 $as_echo "$ac_cv_search_inet_ntop" >&6; }
32182 ac_res=$ac_cv_search_inet_ntop
32183 if test "$ac_res" != no; then :
32184   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32185
32186 else
32187   for ac_func in inet_ntop
32188 do :
32189   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
32190 if test "x$ac_cv_func_inet_ntop" = xyes; then :
32191   cat >>confdefs.h <<_ACEOF
32192 #define HAVE_INET_NTOP 1
32193 _ACEOF
32194
32195 fi
32196 done
32197
32198        if test $ac_cv_func_inet_ntop = no; then
32199          HAVE_INET_NTOP=0
32200        fi
32201
32202 fi
32203
32204     LIBS=$gl_save_LIBS
32205
32206     if test "$ac_cv_search_inet_ntop" != "no" \
32207        && test "$ac_cv_search_inet_ntop" != "none required"; then
32208       INET_NTOP_LIB="$ac_cv_search_inet_ntop"
32209     fi
32210
32211
32212   :
32213
32214
32215
32216
32217
32218     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
32219         #if HAVE_NETDB_H
32220         # include <netdb.h>
32221         #endif
32222
32223 "
32224 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
32225   ac_have_decl=1
32226 else
32227   ac_have_decl=0
32228 fi
32229
32230 cat >>confdefs.h <<_ACEOF
32231 #define HAVE_DECL_INET_NTOP $ac_have_decl
32232 _ACEOF
32233
32234     if test $ac_cv_have_decl_inet_ntop = no; then
32235       HAVE_DECL_INET_NTOP=0
32236     fi
32237   fi
32238
32239
32240 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
32241
32242
32243
32244
32245
32246
32247
32248
32249   gl_LIBOBJS="$gl_LIBOBJS inet_ntop.$ac_objext"
32250
32251
32252
32253
32254 fi
32255
32256
32257
32258
32259
32260           GNULIB_INET_NTOP=1
32261
32262
32263
32264
32265
32266
32267
32268
32269
32270
32271
32272               HAVE_INET_PTON=1
32273   INET_PTON_LIB=
32274
32275
32276
32277
32278   :
32279
32280
32281
32282
32283
32284   if test $ac_cv_header_sys_socket_h != yes; then
32285                     for ac_header in winsock2.h
32286 do :
32287   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
32288 if test "x$ac_cv_header_winsock2_h" = xyes; then :
32289   cat >>confdefs.h <<_ACEOF
32290 #define HAVE_WINSOCK2_H 1
32291 _ACEOF
32292
32293 fi
32294
32295 done
32296
32297   fi
32298   if test "$ac_cv_header_winsock2_h" = yes; then
32299     HAVE_WINSOCK2_H=1
32300     UNISTD_H_HAVE_WINSOCK2_H=1
32301     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
32302   else
32303     HAVE_WINSOCK2_H=0
32304   fi
32305
32306
32307   if test $HAVE_WINSOCK2_H = 1; then
32308     ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h>
32309 "
32310 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
32311   ac_have_decl=1
32312 else
32313   ac_have_decl=0
32314 fi
32315
32316 cat >>confdefs.h <<_ACEOF
32317 #define HAVE_DECL_INET_PTON $ac_have_decl
32318 _ACEOF
32319
32320     if test $ac_cv_have_decl_inet_pton = yes; then
32321                   REPLACE_INET_PTON=1
32322       INET_PTON_LIB="-lws2_32"
32323     else
32324       HAVE_DECL_INET_PTON=0
32325       HAVE_INET_PTON=0
32326     fi
32327   else
32328     gl_save_LIBS=$LIBS
32329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
32330 $as_echo_n "checking for library containing inet_pton... " >&6; }
32331 if ${ac_cv_search_inet_pton+:} false; then :
32332   $as_echo_n "(cached) " >&6
32333 else
32334   ac_func_search_save_LIBS=$LIBS
32335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32336 /* end confdefs.h.  */
32337
32338 /* Override any GCC internal prototype to avoid an error.
32339    Use char because int might match the return type of a GCC
32340    builtin and then its argument prototype would still apply.  */
32341 #ifdef __cplusplus
32342 extern "C"
32343 #endif
32344 char inet_pton ();
32345 int
32346 main ()
32347 {
32348 return inet_pton ();
32349   ;
32350   return 0;
32351 }
32352 _ACEOF
32353 for ac_lib in '' nsl resolv; do
32354   if test -z "$ac_lib"; then
32355     ac_res="none required"
32356   else
32357     ac_res=-l$ac_lib
32358     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32359   fi
32360   if ac_fn_c_try_link "$LINENO"; then :
32361   ac_cv_search_inet_pton=$ac_res
32362 fi
32363 rm -f core conftest.err conftest.$ac_objext \
32364     conftest$ac_exeext
32365   if ${ac_cv_search_inet_pton+:} false; then :
32366   break
32367 fi
32368 done
32369 if ${ac_cv_search_inet_pton+:} false; then :
32370
32371 else
32372   ac_cv_search_inet_pton=no
32373 fi
32374 rm conftest.$ac_ext
32375 LIBS=$ac_func_search_save_LIBS
32376 fi
32377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
32378 $as_echo "$ac_cv_search_inet_pton" >&6; }
32379 ac_res=$ac_cv_search_inet_pton
32380 if test "$ac_res" != no; then :
32381   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32382
32383 else
32384   for ac_func in inet_pton
32385 do :
32386   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
32387 if test "x$ac_cv_func_inet_pton" = xyes; then :
32388   cat >>confdefs.h <<_ACEOF
32389 #define HAVE_INET_PTON 1
32390 _ACEOF
32391
32392 fi
32393 done
32394
32395        if test $ac_cv_func_inet_pton = no; then
32396          HAVE_INET_PTON=0
32397        fi
32398
32399 fi
32400
32401     LIBS=$gl_save_LIBS
32402
32403     if test "$ac_cv_search_inet_pton" != "no" \
32404        && test "$ac_cv_search_inet_pton" != "none required"; then
32405       INET_PTON_LIB="$ac_cv_search_inet_pton"
32406     fi
32407
32408
32409   :
32410
32411
32412
32413
32414
32415     ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
32416         #if HAVE_NETDB_H
32417         # include <netdb.h>
32418         #endif
32419
32420 "
32421 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
32422   ac_have_decl=1
32423 else
32424   ac_have_decl=0
32425 fi
32426
32427 cat >>confdefs.h <<_ACEOF
32428 #define HAVE_DECL_INET_PTON $ac_have_decl
32429 _ACEOF
32430
32431     if test $ac_cv_have_decl_inet_pton = no; then
32432       HAVE_DECL_INET_PTON=0
32433     fi
32434   fi
32435
32436
32437 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
32438
32439
32440
32441
32442
32443
32444
32445
32446   gl_LIBOBJS="$gl_LIBOBJS inet_pton.$ac_objext"
32447
32448
32449
32450
32451 fi
32452
32453
32454
32455
32456
32457           GNULIB_INET_PTON=1
32458
32459
32460
32461
32462
32463 if test "$ac_cv_header_winsock2_h" = yes; then
32464
32465
32466
32467
32468
32469
32470
32471
32472   gl_LIBOBJS="$gl_LIBOBJS listen.$ac_objext"
32473
32474 fi
32475
32476
32477
32478
32479
32480           GNULIB_LISTEN=1
32481
32482
32483
32484
32485
32486 $as_echo "#define GNULIB_TEST_LISTEN 1" >>confdefs.h
32487
32488
32489
32490
32491
32492   if test "$gl_threads_api" = posix; then
32493     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
32494     # pthread_rwlock_* functions.
32495     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
32496 "
32497 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
32498
32499 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
32500
32501 fi
32502
32503     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
32504     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32505 /* end confdefs.h.  */
32506
32507       #include <pthread.h>
32508 int
32509 main ()
32510 {
32511
32512 #if __FreeBSD__ == 4
32513 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
32514 #else
32515 int x = (int)PTHREAD_MUTEX_RECURSIVE;
32516 return !x;
32517 #endif
32518
32519   ;
32520   return 0;
32521 }
32522 _ACEOF
32523 if ac_fn_c_try_compile "$LINENO"; then :
32524
32525 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
32526
32527 fi
32528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32529   fi
32530
32531
32532
32533
32534
32535
32536
32537
32538   :
32539
32540
32541
32542
32543
32544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
32545 $as_echo_n "checking whether lseek detects pipes... " >&6; }
32546 if ${gl_cv_func_lseek_pipe+:} false; then :
32547   $as_echo_n "(cached) " >&6
32548 else
32549   if test $cross_compiling = no; then
32550        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32551 /* end confdefs.h.  */
32552
32553 #include <sys/types.h> /* for off_t */
32554 #include <stdio.h> /* for SEEK_CUR */
32555 #if HAVE_UNISTD_H
32556 # include <unistd.h>
32557 #else /* on Windows with MSVC */
32558 # include <io.h>
32559 #endif
32560
32561 int
32562 main ()
32563 {
32564
32565   /* Exit with success only if stdin is seekable.  */
32566   return lseek (0, (off_t)0, SEEK_CUR) < 0;
32567
32568   ;
32569   return 0;
32570 }
32571 _ACEOF
32572 if ac_fn_c_try_link "$LINENO"; then :
32573   if test -s conftest$ac_exeext \
32574              && ./conftest$ac_exeext < conftest.$ac_ext \
32575              && test 1 = "`echo hi \
32576                | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
32577             gl_cv_func_lseek_pipe=yes
32578           else
32579             gl_cv_func_lseek_pipe=no
32580           fi
32581 else
32582   gl_cv_func_lseek_pipe=no
32583 fi
32584 rm -f core conftest.err conftest.$ac_objext \
32585     conftest$ac_exeext conftest.$ac_ext
32586      else
32587        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32588 /* end confdefs.h.  */
32589
32590 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
32591 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
32592   Choke me.
32593 #endif
32594 _ACEOF
32595 if ac_fn_c_try_compile "$LINENO"; then :
32596   gl_cv_func_lseek_pipe=yes
32597 else
32598   gl_cv_func_lseek_pipe=no
32599 fi
32600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32601      fi
32602 fi
32603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
32604 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
32605   if test $gl_cv_func_lseek_pipe = no; then
32606     REPLACE_LSEEK=1
32607
32608 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
32609
32610   fi
32611
32612 if test $REPLACE_LSEEK = 1; then
32613
32614
32615
32616
32617
32618
32619
32620
32621   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
32622
32623 fi
32624
32625
32626
32627
32628
32629           GNULIB_LSEEK=1
32630
32631
32632
32633
32634
32635 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
32636
32637
32638
32639
32640
32641
32642
32643   if test $gl_cv_func_malloc_posix = yes; then
32644
32645 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
32646
32647   else
32648     REPLACE_MALLOC=1
32649   fi
32650
32651 if test $REPLACE_MALLOC = 1; then
32652
32653
32654
32655
32656
32657
32658
32659
32660   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
32661
32662 fi
32663
32664
32665
32666
32667
32668           GNULIB_MALLOC_POSIX=1
32669
32670
32671
32672
32673
32674 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
32675
32676
32677
32678
32679 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
32680
32681
32682
32683
32684
32685
32686
32687
32688   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
32689
32690
32691   for ac_header in bp-sym.h
32692 do :
32693   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
32694 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
32695   cat >>confdefs.h <<_ACEOF
32696 #define HAVE_BP_SYM_H 1
32697 _ACEOF
32698
32699 fi
32700
32701 done
32702
32703
32704 fi
32705
32706
32707
32708
32709
32710           GNULIB_MEMCHR=1
32711
32712
32713
32714
32715
32716 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
32717
32718
32719
32720
32721
32722
32723
32724
32725   :
32726
32727
32728
32729
32730
32731   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
32732     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
32733
32734 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
32735
32736   else
32737     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
32738   fi
32739
32740
32741 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
32742
32743
32744
32745
32746
32747
32748
32749
32750   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
32751
32752 fi
32753
32754
32755
32756 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
32757
32758
32759
32760
32761
32762
32763
32764
32765   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
32766
32767 fi
32768
32769
32770
32771
32772
32773
32774
32775
32776
32777   :
32778
32779
32780
32781
32782
32783
32784
32785
32786      if test $gl_cv_have_include_next = yes; then
32787        gl_cv_next_netdb_h='<'netdb.h'>'
32788      else
32789        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
32790 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
32791 if ${gl_cv_next_netdb_h+:} false; then :
32792   $as_echo_n "(cached) " >&6
32793 else
32794
32795              if test $ac_cv_header_netdb_h = yes; then
32796
32797
32798                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32799 /* end confdefs.h.  */
32800 #include <netdb.h>
32801
32802 _ACEOF
32803                                                                                                                         case "$host_os" in
32804                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
32805                  *)    gl_absname_cpp="$ac_cpp" ;;
32806                esac
32807
32808                case "$host_os" in
32809                  mingw*)
32810                                                                                                                                      gl_dirsep_regex='[/\\]'
32811                    ;;
32812                  *)
32813                    gl_dirsep_regex='\/'
32814                    ;;
32815                esac
32816                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32817
32818                gl_header_literal_regex=`echo 'netdb.h' \
32819                                         | sed -e "$gl_make_literal_regex_sed"`
32820                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32821                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32822                    s|^/[^/]|//&|
32823                    p
32824                    q
32825                  }'
32826                                                             gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32827                       sed -n "$gl_absolute_header_sed"`'"'
32828           else
32829                gl_cv_next_netdb_h='<'netdb.h'>'
32830              fi
32831
32832
32833 fi
32834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
32835 $as_echo "$gl_cv_next_netdb_h" >&6; }
32836      fi
32837      NEXT_NETDB_H=$gl_cv_next_netdb_h
32838
32839      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32840        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32841        gl_next_as_first_directive='<'netdb.h'>'
32842      else
32843        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32844        gl_next_as_first_directive=$gl_cv_next_netdb_h
32845      fi
32846      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
32847
32848
32849
32850
32851   if test $ac_cv_header_netdb_h = yes; then
32852     HAVE_NETDB_H=1
32853   else
32854     HAVE_NETDB_H=0
32855   fi
32856
32857
32858
32859     for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
32860     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
32862 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32863 if eval \${$as_gl_Symbol+:} false; then :
32864   $as_echo_n "(cached) " >&6
32865 else
32866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32867 /* end confdefs.h.  */
32868 #include <netdb.h>
32869 int
32870 main ()
32871 {
32872 #undef $gl_func
32873   (void) $gl_func;
32874   ;
32875   return 0;
32876 }
32877 _ACEOF
32878 if ac_fn_c_try_compile "$LINENO"; then :
32879   eval "$as_gl_Symbol=yes"
32880 else
32881   eval "$as_gl_Symbol=no"
32882 fi
32883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32884 fi
32885 eval ac_res=\$$as_gl_Symbol
32886                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32887 $as_echo "$ac_res" >&6; }
32888     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
32889   cat >>confdefs.h <<_ACEOF
32890 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32891 _ACEOF
32892
32893                      eval ac_cv_have_decl_$gl_func=yes
32894 fi
32895       done
32896
32897
32898
32899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
32900 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
32901 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
32902   $as_echo_n "(cached) " >&6
32903 else
32904
32905       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32906 /* end confdefs.h.  */
32907 #include <netinet/in.h>
32908 int
32909 main ()
32910 {
32911
32912   ;
32913   return 0;
32914 }
32915 _ACEOF
32916 if ac_fn_c_try_compile "$LINENO"; then :
32917   gl_cv_header_netinet_in_h_selfcontained=yes
32918 else
32919   gl_cv_header_netinet_in_h_selfcontained=no
32920 fi
32921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32922
32923 fi
32924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
32925 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
32926   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
32927     NETINET_IN_H=''
32928   else
32929     NETINET_IN_H='netinet/in.h'
32930     for ac_header in netinet/in.h
32931 do :
32932   ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
32933 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
32934   cat >>confdefs.h <<_ACEOF
32935 #define HAVE_NETINET_IN_H 1
32936 _ACEOF
32937
32938 fi
32939
32940 done
32941
32942
32943
32944
32945
32946
32947
32948   :
32949
32950
32951
32952
32953
32954
32955
32956
32957      if test $gl_cv_have_include_next = yes; then
32958        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
32959      else
32960        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
32961 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
32962 if ${gl_cv_next_netinet_in_h+:} false; then :
32963   $as_echo_n "(cached) " >&6
32964 else
32965
32966              if test $ac_cv_header_netinet_in_h = yes; then
32967
32968
32969                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32970 /* end confdefs.h.  */
32971 #include <netinet/in.h>
32972
32973 _ACEOF
32974                                                                                                                         case "$host_os" in
32975                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
32976                  *)    gl_absname_cpp="$ac_cpp" ;;
32977                esac
32978
32979                case "$host_os" in
32980                  mingw*)
32981                                                                                                                                      gl_dirsep_regex='[/\\]'
32982                    ;;
32983                  *)
32984                    gl_dirsep_regex='\/'
32985                    ;;
32986                esac
32987                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32988
32989                gl_header_literal_regex=`echo 'netinet/in.h' \
32990                                         | sed -e "$gl_make_literal_regex_sed"`
32991                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32992                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32993                    s|^/[^/]|//&|
32994                    p
32995                    q
32996                  }'
32997                                                             gl_cv_next_netinet_in_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32998                       sed -n "$gl_absolute_header_sed"`'"'
32999           else
33000                gl_cv_next_netinet_in_h='<'netinet/in.h'>'
33001              fi
33002
33003
33004 fi
33005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
33006 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
33007      fi
33008      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
33009
33010      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33011        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33012        gl_next_as_first_directive='<'netinet/in.h'>'
33013      else
33014        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33015        gl_next_as_first_directive=$gl_cv_next_netinet_in_h
33016      fi
33017      NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
33018
33019
33020
33021
33022     if test $ac_cv_header_netinet_in_h = yes; then
33023       HAVE_NETINET_IN_H=1
33024     else
33025       HAVE_NETINET_IN_H=0
33026     fi
33027
33028   fi
33029
33030    if test -n "$NETINET_IN_H"; then
33031   GL_GENERATE_NETINET_IN_H_TRUE=
33032   GL_GENERATE_NETINET_IN_H_FALSE='#'
33033 else
33034   GL_GENERATE_NETINET_IN_H_TRUE='#'
33035   GL_GENERATE_NETINET_IN_H_FALSE=
33036 fi
33037
33038
33039
33040
33041
33042
33043
33044
33045           if test "$ERRNO_H:$REPLACE_STRERROR_0" != :0; then
33046             REPLACE_PERROR=1
33047   fi
33048   case ${gl_cv_func_strerror_r_works-unset} in
33049     unset|*yes)
33050       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether perror matches strerror" >&5
33051 $as_echo_n "checking whether perror matches strerror... " >&6; }
33052 if ${gl_cv_func_perror_works+:} false; then :
33053   $as_echo_n "(cached) " >&6
33054 else
33055   if test "$cross_compiling" = yes; then :
33056               gl_cv_func_perror_works="guessing no"
33057
33058 else
33059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33060 /* end confdefs.h.  */
33061 #include <errno.h>
33062                 #include <stdio.h>
33063                 #include <stdlib.h>
33064                 #include <string.h>
33065
33066 int
33067 main ()
33068 {
33069 char *str = strerror (-1);
33070                 if (!getenv("CONFTEST_OUTPUT")) return 0;
33071                 if (!str) str = "";
33072                 puts (str);
33073                 errno = -1;
33074                 perror ("");
33075                 return 0;
33076
33077   ;
33078   return 0;
33079 }
33080 _ACEOF
33081 if ac_fn_c_try_run "$LINENO"; then :
33082   if CONFTEST_OUTPUT=1 ./conftest$EXEEXT >conftest.txt1 2>conftest.txt2 \
33083                && cmp conftest.txt1 conftest.txt2 >/dev/null; then
33084               gl_cv_func_perror_works=yes
33085             else
33086               gl_cv_func_perror_works=no
33087             fi
33088             rm -rf conftest.txt1 conftest.txt2
33089 else
33090   gl_cv_func_perror_works=no
33091 fi
33092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33093   conftest.$ac_objext conftest.beam conftest.$ac_ext
33094 fi
33095
33096
33097 fi
33098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_perror_works" >&5
33099 $as_echo "$gl_cv_func_perror_works" >&6; }
33100       if test "$gl_cv_func_perror_works" != yes; then
33101         REPLACE_PERROR=1
33102       fi
33103       ;;
33104     *)
33105                   REPLACE_PERROR=1
33106       ;;
33107   esac
33108
33109 if test $REPLACE_PERROR = 1; then
33110
33111
33112
33113
33114
33115
33116
33117
33118   gl_LIBOBJS="$gl_LIBOBJS perror.$ac_objext"
33119
33120 fi
33121
33122
33123
33124
33125
33126           GNULIB_PERROR=1
33127
33128
33129
33130
33131
33132 $as_echo "#define GNULIB_TEST_PERROR 1" >>confdefs.h
33133
33134
33135
33136 # Extract the first word of "pmccabe", so it can be a program name with args.
33137 set dummy pmccabe; ac_word=$2
33138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33139 $as_echo_n "checking for $ac_word... " >&6; }
33140 if ${ac_cv_path_PMCCABE+:} false; then :
33141   $as_echo_n "(cached) " >&6
33142 else
33143   case $PMCCABE in
33144   [\\/]* | ?:[\\/]*)
33145   ac_cv_path_PMCCABE="$PMCCABE" # Let the user override the test with a path.
33146   ;;
33147   *)
33148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33149 for as_dir in $PATH
33150 do
33151   IFS=$as_save_IFS
33152   test -z "$as_dir" && as_dir=.
33153     for ac_exec_ext in '' $ac_executable_extensions; do
33154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33155     ac_cv_path_PMCCABE="$as_dir/$ac_word$ac_exec_ext"
33156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33157     break 2
33158   fi
33159 done
33160   done
33161 IFS=$as_save_IFS
33162
33163   test -z "$ac_cv_path_PMCCABE" && ac_cv_path_PMCCABE="false"
33164   ;;
33165 esac
33166 fi
33167 PMCCABE=$ac_cv_path_PMCCABE
33168 if test -n "$PMCCABE"; then
33169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMCCABE" >&5
33170 $as_echo "$PMCCABE" >&6; }
33171 else
33172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33173 $as_echo "no" >&6; }
33174 fi
33175
33176
33177 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
33178 "
33179 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
33180   ac_have_decl=1
33181 else
33182   ac_have_decl=0
33183 fi
33184
33185 cat >>confdefs.h <<_ACEOF
33186 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
33187 _ACEOF
33188
33189 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
33190 "
33191 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
33192   ac_have_decl=1
33193 else
33194   ac_have_decl=0
33195 fi
33196
33197 cat >>confdefs.h <<_ACEOF
33198 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
33199 _ACEOF
33200
33201 :
33202
33203
33204
33205
33206
33207
33208
33209
33210
33211
33212
33213     use_additional=yes
33214
33215   acl_save_prefix="$prefix"
33216   prefix="$acl_final_prefix"
33217   acl_save_exec_prefix="$exec_prefix"
33218   exec_prefix="$acl_final_exec_prefix"
33219
33220     eval additional_includedir=\"$includedir\"
33221     eval additional_libdir=\"$libdir\"
33222
33223   exec_prefix="$acl_save_exec_prefix"
33224   prefix="$acl_save_prefix"
33225
33226
33227 # Check whether --with-libreadline-prefix was given.
33228 if test "${with_libreadline_prefix+set}" = set; then :
33229   withval=$with_libreadline_prefix;
33230     if test "X$withval" = "Xno"; then
33231       use_additional=no
33232     else
33233       if test "X$withval" = "X"; then
33234
33235   acl_save_prefix="$prefix"
33236   prefix="$acl_final_prefix"
33237   acl_save_exec_prefix="$exec_prefix"
33238   exec_prefix="$acl_final_exec_prefix"
33239
33240           eval additional_includedir=\"$includedir\"
33241           eval additional_libdir=\"$libdir\"
33242
33243   exec_prefix="$acl_save_exec_prefix"
33244   prefix="$acl_save_prefix"
33245
33246       else
33247         additional_includedir="$withval/include"
33248         additional_libdir="$withval/$acl_libdirstem"
33249         if test "$acl_libdirstem2" != "$acl_libdirstem" \
33250            && ! test -d "$withval/$acl_libdirstem"; then
33251           additional_libdir="$withval/$acl_libdirstem2"
33252         fi
33253       fi
33254     fi
33255
33256 fi
33257
33258       LIBREADLINE=
33259   LTLIBREADLINE=
33260   INCREADLINE=
33261   LIBREADLINE_PREFIX=
33262       HAVE_LIBREADLINE=
33263   rpathdirs=
33264   ltrpathdirs=
33265   names_already_handled=
33266   names_next_round='readline '
33267   while test -n "$names_next_round"; do
33268     names_this_round="$names_next_round"
33269     names_next_round=
33270     for name in $names_this_round; do
33271       already_handled=
33272       for n in $names_already_handled; do
33273         if test "$n" = "$name"; then
33274           already_handled=yes
33275           break
33276         fi
33277       done
33278       if test -z "$already_handled"; then
33279         names_already_handled="$names_already_handled $name"
33280                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
33281         eval value=\"\$HAVE_LIB$uppername\"
33282         if test -n "$value"; then
33283           if test "$value" = yes; then
33284             eval value=\"\$LIB$uppername\"
33285             test -z "$value" || LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$value"
33286             eval value=\"\$LTLIB$uppername\"
33287             test -z "$value" || LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }$value"
33288           else
33289                                     :
33290           fi
33291         else
33292                               found_dir=
33293           found_la=
33294           found_so=
33295           found_a=
33296           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
33297           if test -n "$acl_shlibext"; then
33298             shrext=".$acl_shlibext"             # typically: shrext=.so
33299           else
33300             shrext=
33301           fi
33302           if test $use_additional = yes; then
33303             dir="$additional_libdir"
33304                                     if test -n "$acl_shlibext"; then
33305               if test -f "$dir/$libname$shrext"; then
33306                 found_dir="$dir"
33307                 found_so="$dir/$libname$shrext"
33308               else
33309                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
33310                   ver=`(cd "$dir" && \
33311                         for f in "$libname$shrext".*; do echo "$f"; done \
33312                         | sed -e "s,^$libname$shrext\\\\.,," \
33313                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
33314                         | sed 1q ) 2>/dev/null`
33315                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
33316                     found_dir="$dir"
33317                     found_so="$dir/$libname$shrext.$ver"
33318                   fi
33319                 else
33320                   eval library_names=\"$acl_library_names_spec\"
33321                   for f in $library_names; do
33322                     if test -f "$dir/$f"; then
33323                       found_dir="$dir"
33324                       found_so="$dir/$f"
33325                       break
33326                     fi
33327                   done
33328                 fi
33329               fi
33330             fi
33331                         if test "X$found_dir" = "X"; then
33332               if test -f "$dir/$libname.$acl_libext"; then
33333                 found_dir="$dir"
33334                 found_a="$dir/$libname.$acl_libext"
33335               fi
33336             fi
33337             if test "X$found_dir" != "X"; then
33338               if test -f "$dir/$libname.la"; then
33339                 found_la="$dir/$libname.la"
33340               fi
33341             fi
33342           fi
33343           if test "X$found_dir" = "X"; then
33344             for x in $LDFLAGS $LTLIBREADLINE; do
33345
33346   acl_save_prefix="$prefix"
33347   prefix="$acl_final_prefix"
33348   acl_save_exec_prefix="$exec_prefix"
33349   exec_prefix="$acl_final_exec_prefix"
33350   eval x=\"$x\"
33351   exec_prefix="$acl_save_exec_prefix"
33352   prefix="$acl_save_prefix"
33353
33354               case "$x" in
33355                 -L*)
33356                   dir=`echo "X$x" | sed -e 's/^X-L//'`
33357                                     if test -n "$acl_shlibext"; then
33358                     if test -f "$dir/$libname$shrext"; then
33359                       found_dir="$dir"
33360                       found_so="$dir/$libname$shrext"
33361                     else
33362                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
33363                         ver=`(cd "$dir" && \
33364                               for f in "$libname$shrext".*; do echo "$f"; done \
33365                               | sed -e "s,^$libname$shrext\\\\.,," \
33366                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
33367                               | sed 1q ) 2>/dev/null`
33368                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
33369                           found_dir="$dir"
33370                           found_so="$dir/$libname$shrext.$ver"
33371                         fi
33372                       else
33373                         eval library_names=\"$acl_library_names_spec\"
33374                         for f in $library_names; do
33375                           if test -f "$dir/$f"; then
33376                             found_dir="$dir"
33377                             found_so="$dir/$f"
33378                             break
33379                           fi
33380                         done
33381                       fi
33382                     fi
33383                   fi
33384                                     if test "X$found_dir" = "X"; then
33385                     if test -f "$dir/$libname.$acl_libext"; then
33386                       found_dir="$dir"
33387                       found_a="$dir/$libname.$acl_libext"
33388                     fi
33389                   fi
33390                   if test "X$found_dir" != "X"; then
33391                     if test -f "$dir/$libname.la"; then
33392                       found_la="$dir/$libname.la"
33393                     fi
33394                   fi
33395                   ;;
33396               esac
33397               if test "X$found_dir" != "X"; then
33398                 break
33399               fi
33400             done
33401           fi
33402           if test "X$found_dir" != "X"; then
33403                         LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-L$found_dir -l$name"
33404             if test "X$found_so" != "X"; then
33405                                                         if test "$enable_rpath" = no \
33406                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
33407                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
33408                                 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
33409               else
33410                                                                                 haveit=
33411                 for x in $ltrpathdirs; do
33412                   if test "X$x" = "X$found_dir"; then
33413                     haveit=yes
33414                     break
33415                   fi
33416                 done
33417                 if test -z "$haveit"; then
33418                   ltrpathdirs="$ltrpathdirs $found_dir"
33419                 fi
33420                                 if test "$acl_hardcode_direct" = yes; then
33421                                                       LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
33422                 else
33423                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
33424                                                             LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
33425                                                             haveit=
33426                     for x in $rpathdirs; do
33427                       if test "X$x" = "X$found_dir"; then
33428                         haveit=yes
33429                         break
33430                       fi
33431                     done
33432                     if test -z "$haveit"; then
33433                       rpathdirs="$rpathdirs $found_dir"
33434                     fi
33435                   else
33436                                                                                 haveit=
33437                     for x in $LDFLAGS $LIBREADLINE; do
33438
33439   acl_save_prefix="$prefix"
33440   prefix="$acl_final_prefix"
33441   acl_save_exec_prefix="$exec_prefix"
33442   exec_prefix="$acl_final_exec_prefix"
33443   eval x=\"$x\"
33444   exec_prefix="$acl_save_exec_prefix"
33445   prefix="$acl_save_prefix"
33446
33447                       if test "X$x" = "X-L$found_dir"; then
33448                         haveit=yes
33449                         break
33450                       fi
33451                     done
33452                     if test -z "$haveit"; then
33453                       LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$found_dir"
33454                     fi
33455                     if test "$acl_hardcode_minus_L" != no; then
33456                                                                                         LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
33457                     else
33458                                                                                                                                                                                 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-l$name"
33459                     fi
33460                   fi
33461                 fi
33462               fi
33463             else
33464               if test "X$found_a" != "X"; then
33465                                 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_a"
33466               else
33467                                                 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$found_dir -l$name"
33468               fi
33469             fi
33470                         additional_includedir=
33471             case "$found_dir" in
33472               */$acl_libdirstem | */$acl_libdirstem/)
33473                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
33474                 if test "$name" = 'readline'; then
33475                   LIBREADLINE_PREFIX="$basedir"
33476                 fi
33477                 additional_includedir="$basedir/include"
33478                 ;;
33479               */$acl_libdirstem2 | */$acl_libdirstem2/)
33480                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
33481                 if test "$name" = 'readline'; then
33482                   LIBREADLINE_PREFIX="$basedir"
33483                 fi
33484                 additional_includedir="$basedir/include"
33485                 ;;
33486             esac
33487             if test "X$additional_includedir" != "X"; then
33488                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
33489                 haveit=
33490                 if test "X$additional_includedir" = "X/usr/local/include"; then
33491                   if test -n "$GCC"; then
33492                     case $host_os in
33493                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
33494                     esac
33495                   fi
33496                 fi
33497                 if test -z "$haveit"; then
33498                   for x in $CPPFLAGS $INCREADLINE; do
33499
33500   acl_save_prefix="$prefix"
33501   prefix="$acl_final_prefix"
33502   acl_save_exec_prefix="$exec_prefix"
33503   exec_prefix="$acl_final_exec_prefix"
33504   eval x=\"$x\"
33505   exec_prefix="$acl_save_exec_prefix"
33506   prefix="$acl_save_prefix"
33507
33508                     if test "X$x" = "X-I$additional_includedir"; then
33509                       haveit=yes
33510                       break
33511                     fi
33512                   done
33513                   if test -z "$haveit"; then
33514                     if test -d "$additional_includedir"; then
33515                                             INCREADLINE="${INCREADLINE}${INCREADLINE:+ }-I$additional_includedir"
33516                     fi
33517                   fi
33518                 fi
33519               fi
33520             fi
33521                         if test -n "$found_la"; then
33522                                                         save_libdir="$libdir"
33523               case "$found_la" in
33524                 */* | *\\*) . "$found_la" ;;
33525                 *) . "./$found_la" ;;
33526               esac
33527               libdir="$save_libdir"
33528                             for dep in $dependency_libs; do
33529                 case "$dep" in
33530                   -L*)
33531                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
33532                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
33533                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
33534                       haveit=
33535                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
33536                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
33537                         if test -n "$GCC"; then
33538                           case $host_os in
33539                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
33540                           esac
33541                         fi
33542                       fi
33543                       if test -z "$haveit"; then
33544                         haveit=
33545                         for x in $LDFLAGS $LIBREADLINE; do
33546
33547   acl_save_prefix="$prefix"
33548   prefix="$acl_final_prefix"
33549   acl_save_exec_prefix="$exec_prefix"
33550   exec_prefix="$acl_final_exec_prefix"
33551   eval x=\"$x\"
33552   exec_prefix="$acl_save_exec_prefix"
33553   prefix="$acl_save_prefix"
33554
33555                           if test "X$x" = "X-L$additional_libdir"; then
33556                             haveit=yes
33557                             break
33558                           fi
33559                         done
33560                         if test -z "$haveit"; then
33561                           if test -d "$additional_libdir"; then
33562                                                         LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$additional_libdir"
33563                           fi
33564                         fi
33565                         haveit=
33566                         for x in $LDFLAGS $LTLIBREADLINE; do
33567
33568   acl_save_prefix="$prefix"
33569   prefix="$acl_final_prefix"
33570   acl_save_exec_prefix="$exec_prefix"
33571   exec_prefix="$acl_final_exec_prefix"
33572   eval x=\"$x\"
33573   exec_prefix="$acl_save_exec_prefix"
33574   prefix="$acl_save_prefix"
33575
33576                           if test "X$x" = "X-L$additional_libdir"; then
33577                             haveit=yes
33578                             break
33579                           fi
33580                         done
33581                         if test -z "$haveit"; then
33582                           if test -d "$additional_libdir"; then
33583                                                         LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-L$additional_libdir"
33584                           fi
33585                         fi
33586                       fi
33587                     fi
33588                     ;;
33589                   -R*)
33590                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
33591                     if test "$enable_rpath" != no; then
33592                                                                   haveit=
33593                       for x in $rpathdirs; do
33594                         if test "X$x" = "X$dir"; then
33595                           haveit=yes
33596                           break
33597                         fi
33598                       done
33599                       if test -z "$haveit"; then
33600                         rpathdirs="$rpathdirs $dir"
33601                       fi
33602                                                                   haveit=
33603                       for x in $ltrpathdirs; do
33604                         if test "X$x" = "X$dir"; then
33605                           haveit=yes
33606                           break
33607                         fi
33608                       done
33609                       if test -z "$haveit"; then
33610                         ltrpathdirs="$ltrpathdirs $dir"
33611                       fi
33612                     fi
33613                     ;;
33614                   -l*)
33615                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
33616                     ;;
33617                   *.la)
33618                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
33619                     ;;
33620                   *)
33621                                         LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$dep"
33622                     LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }$dep"
33623                     ;;
33624                 esac
33625               done
33626             fi
33627           else
33628                                                             LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-l$name"
33629             LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-l$name"
33630           fi
33631         fi
33632       fi
33633     done
33634   done
33635   if test "X$rpathdirs" != "X"; then
33636     if test -n "$acl_hardcode_libdir_separator"; then
33637                         alldirs=
33638       for found_dir in $rpathdirs; do
33639         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
33640       done
33641             acl_save_libdir="$libdir"
33642       libdir="$alldirs"
33643       eval flag=\"$acl_hardcode_libdir_flag_spec\"
33644       libdir="$acl_save_libdir"
33645       LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$flag"
33646     else
33647             for found_dir in $rpathdirs; do
33648         acl_save_libdir="$libdir"
33649         libdir="$found_dir"
33650         eval flag=\"$acl_hardcode_libdir_flag_spec\"
33651         libdir="$acl_save_libdir"
33652         LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$flag"
33653       done
33654     fi
33655   fi
33656   if test "X$ltrpathdirs" != "X"; then
33657             for found_dir in $ltrpathdirs; do
33658       LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-R$found_dir"
33659     done
33660   fi
33661
33662
33663
33664
33665
33666
33667
33668           am_save_CPPFLAGS="$CPPFLAGS"
33669
33670   for element in $INCREADLINE; do
33671     haveit=
33672     for x in $CPPFLAGS; do
33673
33674   acl_save_prefix="$prefix"
33675   prefix="$acl_final_prefix"
33676   acl_save_exec_prefix="$exec_prefix"
33677   exec_prefix="$acl_final_exec_prefix"
33678   eval x=\"$x\"
33679   exec_prefix="$acl_save_exec_prefix"
33680   prefix="$acl_save_prefix"
33681
33682       if test "X$x" = "X$element"; then
33683         haveit=yes
33684         break
33685       fi
33686     done
33687     if test -z "$haveit"; then
33688       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
33689     fi
33690   done
33691
33692
33693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
33694 $as_echo_n "checking for readline... " >&6; }
33695 if ${gl_cv_lib_readline+:} false; then :
33696   $as_echo_n "(cached) " >&6
33697 else
33698
33699     gl_cv_lib_readline=no
33700     am_save_LIBS="$LIBS"
33701                         for extra_lib in "" ncurses termcap curses; do
33702       LIBS="$am_save_LIBS $LIBREADLINE"
33703       if test -n "$extra_lib"; then
33704         LIBS="$LIBS -l$extra_lib"
33705       fi
33706       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33707 /* end confdefs.h.  */
33708 #include <stdio.h>
33709 #include <readline/readline.h>
33710 int
33711 main ()
33712 {
33713 readline((char*)0);
33714   ;
33715   return 0;
33716 }
33717 _ACEOF
33718 if ac_fn_c_try_link "$LINENO"; then :
33719   if test -n "$extra_lib"; then
33720            gl_cv_lib_readline="yes, requires -l$extra_lib"
33721          else
33722            gl_cv_lib_readline="yes"
33723          fi
33724
33725 fi
33726 rm -f core conftest.err conftest.$ac_objext \
33727     conftest$ac_exeext conftest.$ac_ext
33728       if test "$gl_cv_lib_readline" != no; then
33729         break
33730       fi
33731     done
33732     LIBS="$am_save_LIBS"
33733
33734 fi
33735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_readline" >&5
33736 $as_echo "$gl_cv_lib_readline" >&6; }
33737
33738   if test "$gl_cv_lib_readline" != no; then
33739
33740 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
33741
33742     extra_lib=`echo "$gl_cv_lib_readline" | sed -n -e 's/yes, requires //p'`
33743     if test -n "$extra_lib"; then
33744       LIBREADLINE="$LIBREADLINE $extra_lib"
33745       LTLIBREADLINE="$LTLIBREADLINE $extra_lib"
33746     fi
33747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libreadline" >&5
33748 $as_echo_n "checking how to link with libreadline... " >&6; }
33749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBREADLINE" >&5
33750 $as_echo "$LIBREADLINE" >&6; }
33751   else
33752             CPPFLAGS="$am_save_CPPFLAGS"
33753     LIBREADLINE=
33754     LTLIBREADLINE=
33755   fi
33756
33757
33758
33759   for ac_header in readline/readline.h readline/history.h
33760 do :
33761   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33762 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
33763 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33764   cat >>confdefs.h <<_ACEOF
33765 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33766 _ACEOF
33767
33768 fi
33769
33770 done
33771
33772
33773 if test "$gl_cv_lib_readline" = no; then
33774
33775
33776
33777
33778
33779
33780
33781
33782   gl_LIBOBJS="$gl_LIBOBJS readline.$ac_objext"
33783
33784
33785   :
33786
33787 fi
33788
33789
33790
33791   if test $gl_cv_func_malloc_posix = yes; then
33792
33793 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
33794
33795   else
33796     REPLACE_REALLOC=1
33797   fi
33798
33799 if test $REPLACE_REALLOC = 1; then
33800
33801
33802
33803
33804
33805
33806
33807
33808   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
33809
33810 fi
33811
33812
33813
33814
33815
33816           GNULIB_REALLOC_POSIX=1
33817
33818
33819
33820
33821
33822 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
33823
33824
33825
33826
33827 if test "$ac_cv_header_winsock2_h" = yes; then
33828
33829
33830
33831
33832
33833
33834
33835
33836   gl_LIBOBJS="$gl_LIBOBJS recv.$ac_objext"
33837
33838 fi
33839
33840
33841
33842
33843
33844           GNULIB_RECV=1
33845
33846
33847
33848
33849
33850 $as_echo "#define GNULIB_TEST_RECV 1" >>confdefs.h
33851
33852
33853
33854
33855
33856
33857   if test "$ac_cv_header_winsock2_h" = yes; then
33858     REPLACE_SELECT=1
33859   else
33860
33861   :
33862
33863
33864
33865
33866
33867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
33868 $as_echo_n "checking whether select supports a 0 argument... " >&6; }
33869 if ${gl_cv_func_select_supports0+:} false; then :
33870   $as_echo_n "(cached) " >&6
33871 else
33872
33873         if test "$cross_compiling" = yes; then :
33874
33875            case "$host_os" in
33876                        # Guess no on Interix.
33877              interix*) gl_cv_func_select_supports0="guessing no";;
33878                        # Guess yes otherwise.
33879              *)        gl_cv_func_select_supports0="guessing yes";;
33880            esac
33881
33882 else
33883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33884 /* end confdefs.h.  */
33885
33886 #include <sys/types.h>
33887 #include <sys/time.h>
33888 #if HAVE_SYS_SELECT_H
33889 #include <sys/select.h>
33890 #endif
33891 int main ()
33892 {
33893   struct timeval timeout;
33894   timeout.tv_sec = 0;
33895   timeout.tv_usec = 5;
33896   return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
33897 }
33898 _ACEOF
33899 if ac_fn_c_try_run "$LINENO"; then :
33900   gl_cv_func_select_supports0=yes
33901 else
33902   gl_cv_func_select_supports0=no
33903 fi
33904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33905   conftest.$ac_objext conftest.beam conftest.$ac_ext
33906 fi
33907
33908
33909 fi
33910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
33911 $as_echo "$gl_cv_func_select_supports0" >&6; }
33912     case "$gl_cv_func_select_supports0" in
33913       *yes) ;;
33914       *) REPLACE_SELECT=1 ;;
33915     esac
33916   fi
33917
33918     LIB_SELECT="$LIBSOCKET"
33919   if test $REPLACE_SELECT = 1; then
33920     case "$host_os" in
33921       mingw*)
33922                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33923 /* end confdefs.h.  */
33924
33925 #define WIN32_LEAN_AND_MEAN
33926 #include <windows.h>
33927 int
33928 main ()
33929 {
33930   MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
33931   return 0;
33932 }
33933 _ACEOF
33934 if ac_fn_c_try_link "$LINENO"; then :
33935
33936 else
33937   LIB_SELECT="$LIB_SELECT -luser32"
33938 fi
33939 rm -f core conftest.err conftest.$ac_objext \
33940     conftest$ac_exeext conftest.$ac_ext
33941         ;;
33942     esac
33943   fi
33944
33945
33946 if test $REPLACE_SELECT = 1; then
33947
33948
33949
33950
33951
33952
33953
33954
33955   gl_LIBOBJS="$gl_LIBOBJS select.$ac_objext"
33956
33957 fi
33958
33959
33960
33961
33962
33963           GNULIB_SELECT=1
33964
33965
33966
33967
33968
33969 $as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h
33970
33971
33972
33973
33974 if test "$ac_cv_header_winsock2_h" = yes; then
33975
33976
33977
33978
33979
33980
33981
33982
33983   gl_LIBOBJS="$gl_LIBOBJS send.$ac_objext"
33984
33985 fi
33986
33987
33988
33989
33990
33991           GNULIB_SEND=1
33992
33993
33994
33995
33996
33997 $as_echo "#define GNULIB_TEST_SEND 1" >>confdefs.h
33998
33999
34000
34001
34002                       SERVENT_LIB=
34003   gl_saved_libs="$LIBS"
34004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
34005 $as_echo_n "checking for library containing getservbyname... " >&6; }
34006 if ${ac_cv_search_getservbyname+:} false; then :
34007   $as_echo_n "(cached) " >&6
34008 else
34009   ac_func_search_save_LIBS=$LIBS
34010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34011 /* end confdefs.h.  */
34012
34013 /* Override any GCC internal prototype to avoid an error.
34014    Use char because int might match the return type of a GCC
34015    builtin and then its argument prototype would still apply.  */
34016 #ifdef __cplusplus
34017 extern "C"
34018 #endif
34019 char getservbyname ();
34020 int
34021 main ()
34022 {
34023 return getservbyname ();
34024   ;
34025   return 0;
34026 }
34027 _ACEOF
34028 for ac_lib in '' socket network net; do
34029   if test -z "$ac_lib"; then
34030     ac_res="none required"
34031   else
34032     ac_res=-l$ac_lib
34033     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
34034   fi
34035   if ac_fn_c_try_link "$LINENO"; then :
34036   ac_cv_search_getservbyname=$ac_res
34037 fi
34038 rm -f core conftest.err conftest.$ac_objext \
34039     conftest$ac_exeext
34040   if ${ac_cv_search_getservbyname+:} false; then :
34041   break
34042 fi
34043 done
34044 if ${ac_cv_search_getservbyname+:} false; then :
34045
34046 else
34047   ac_cv_search_getservbyname=no
34048 fi
34049 rm conftest.$ac_ext
34050 LIBS=$ac_func_search_save_LIBS
34051 fi
34052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
34053 $as_echo "$ac_cv_search_getservbyname" >&6; }
34054 ac_res=$ac_cv_search_getservbyname
34055 if test "$ac_res" != no; then :
34056   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34057   if test "$ac_cv_search_getservbyname" != "none required"; then
34058        SERVENT_LIB="$ac_cv_search_getservbyname"
34059      fi
34060 fi
34061
34062   LIBS="$gl_saved_libs"
34063   if test -z "$SERVENT_LIB"; then
34064     for ac_func in getservbyname
34065 do :
34066   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
34067 if test "x$ac_cv_func_getservbyname" = xyes; then :
34068   cat >>confdefs.h <<_ACEOF
34069 #define HAVE_GETSERVBYNAME 1
34070 _ACEOF
34071
34072 else
34073
34074       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
34075 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
34076 if ${gl_cv_w32_getservbyname+:} false; then :
34077   $as_echo_n "(cached) " >&6
34078 else
34079   gl_cv_w32_getservbyname=no
34080          gl_save_LIBS="$LIBS"
34081          LIBS="$LIBS -lws2_32"
34082          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34083 /* end confdefs.h.  */
34084
34085 #ifdef HAVE_WINSOCK2_H
34086 #include <winsock2.h>
34087 #endif
34088 #include <stddef.h>
34089
34090 int
34091 main ()
34092 {
34093 getservbyname(NULL,NULL);
34094   ;
34095   return 0;
34096 }
34097 _ACEOF
34098 if ac_fn_c_try_link "$LINENO"; then :
34099   gl_cv_w32_getservbyname=yes
34100 fi
34101 rm -f core conftest.err conftest.$ac_objext \
34102     conftest$ac_exeext conftest.$ac_ext
34103          LIBS="$gl_save_LIBS"
34104
34105 fi
34106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
34107 $as_echo "$gl_cv_w32_getservbyname" >&6; }
34108       if test "$gl_cv_w32_getservbyname" = "yes"; then
34109         SERVENT_LIB="-lws2_32"
34110       fi
34111
34112 fi
34113 done
34114
34115   fi
34116
34117
34118
34119 if test "$ac_cv_header_winsock2_h" = yes; then
34120
34121
34122
34123
34124
34125
34126
34127
34128   gl_LIBOBJS="$gl_LIBOBJS setsockopt.$ac_objext"
34129
34130 fi
34131
34132
34133
34134
34135
34136           GNULIB_SETSOCKOPT=1
34137
34138
34139
34140
34141
34142 $as_echo "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h
34143
34144
34145
34146
34147 if test "$ac_cv_header_winsock2_h" = yes; then
34148
34149
34150
34151
34152
34153
34154
34155
34156   gl_LIBOBJS="$gl_LIBOBJS shutdown.$ac_objext"
34157
34158 fi
34159
34160
34161
34162
34163
34164           GNULIB_SHUTDOWN=1
34165
34166
34167
34168
34169
34170 $as_echo "#define GNULIB_TEST_SHUTDOWN 1" >>confdefs.h
34171
34172
34173
34174
34175
34176
34177
34178
34179
34180
34181
34182
34183
34184
34185      if test $gl_cv_have_include_next = yes; then
34186        gl_cv_next_signal_h='<'signal.h'>'
34187      else
34188        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
34189 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
34190 if ${gl_cv_next_signal_h+:} false; then :
34191   $as_echo_n "(cached) " >&6
34192 else
34193
34194                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34195 /* end confdefs.h.  */
34196 #include <signal.h>
34197
34198 _ACEOF
34199                                                                                                                         case "$host_os" in
34200                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
34201                  *)    gl_absname_cpp="$ac_cpp" ;;
34202                esac
34203
34204                case "$host_os" in
34205                  mingw*)
34206                                                                                                                                      gl_dirsep_regex='[/\\]'
34207                    ;;
34208                  *)
34209                    gl_dirsep_regex='\/'
34210                    ;;
34211                esac
34212                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34213
34214                gl_header_literal_regex=`echo 'signal.h' \
34215                                         | sed -e "$gl_make_literal_regex_sed"`
34216                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34217                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34218                    s|^/[^/]|//&|
34219                    p
34220                    q
34221                  }'
34222                                                             gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34223                       sed -n "$gl_absolute_header_sed"`'"'
34224
34225
34226 fi
34227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
34228 $as_echo "$gl_cv_next_signal_h" >&6; }
34229      fi
34230      NEXT_SIGNAL_H=$gl_cv_next_signal_h
34231
34232      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34233        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34234        gl_next_as_first_directive='<'signal.h'>'
34235      else
34236        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34237        gl_next_as_first_directive=$gl_cv_next_signal_h
34238      fi
34239      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
34240
34241
34242
34243
34244
34245 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
34246 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
34247   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
34248 #include <signal.h>
34249
34250 "
34251 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
34252
34253 else
34254   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
34255 fi
34256
34257
34258
34259
34260
34261
34262
34263   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
34264 #include <signal.h>
34265
34266 "
34267 if test "x$ac_cv_type_sighandler_t" = xyes; then :
34268
34269 else
34270   HAVE_SIGHANDLER_T=0
34271 fi
34272
34273
34274
34275     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
34276     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
34277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
34278 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
34279 if eval \${$as_gl_Symbol+:} false; then :
34280   $as_echo_n "(cached) " >&6
34281 else
34282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34283 /* end confdefs.h.  */
34284 #include <signal.h>
34285
34286 int
34287 main ()
34288 {
34289 #undef $gl_func
34290   (void) $gl_func;
34291   ;
34292   return 0;
34293 }
34294 _ACEOF
34295 if ac_fn_c_try_compile "$LINENO"; then :
34296   eval "$as_gl_Symbol=yes"
34297 else
34298   eval "$as_gl_Symbol=no"
34299 fi
34300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34301 fi
34302 eval ac_res=\$$as_gl_Symbol
34303                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34304 $as_echo "$ac_res" >&6; }
34305     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
34306   cat >>confdefs.h <<_ACEOF
34307 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
34308 _ACEOF
34309
34310                      eval ac_cv_have_decl_$gl_func=yes
34311 fi
34312       done
34313
34314
34315
34316   for ac_header in stdint.h
34317 do :
34318   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
34319 if test "x$ac_cv_header_stdint_h" = xyes; then :
34320   cat >>confdefs.h <<_ACEOF
34321 #define HAVE_STDINT_H 1
34322 _ACEOF
34323
34324 fi
34325
34326 done
34327
34328     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
34329 $as_echo_n "checking for SIZE_MAX... " >&6; }
34330 if ${gl_cv_size_max+:} false; then :
34331   $as_echo_n "(cached) " >&6
34332 else
34333
34334     gl_cv_size_max=
34335     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34336 /* end confdefs.h.  */
34337
34338 #include <limits.h>
34339 #if HAVE_STDINT_H
34340 #include <stdint.h>
34341 #endif
34342 #ifdef SIZE_MAX
34343 Found it
34344 #endif
34345
34346 _ACEOF
34347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34348   $EGREP "Found it" >/dev/null 2>&1; then :
34349   gl_cv_size_max=yes
34350 fi
34351 rm -f conftest*
34352
34353     if test -z "$gl_cv_size_max"; then
34354                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
34355 #include <limits.h>"; then :
34356
34357 else
34358   size_t_bits_minus_1=
34359 fi
34360
34361       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
34362
34363 else
34364   fits_in_uint=
34365 fi
34366
34367       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
34368         if test $fits_in_uint = 1; then
34369                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34370 /* end confdefs.h.  */
34371 #include <stddef.h>
34372                  extern size_t foo;
34373                  extern unsigned long foo;
34374
34375 int
34376 main ()
34377 {
34378
34379   ;
34380   return 0;
34381 }
34382 _ACEOF
34383 if ac_fn_c_try_compile "$LINENO"; then :
34384   fits_in_uint=0
34385 fi
34386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34387         fi
34388                                 if test $fits_in_uint = 1; then
34389           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
34390         else
34391           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
34392         fi
34393       else
34394                 gl_cv_size_max='((size_t)~(size_t)0)'
34395       fi
34396     fi
34397
34398 fi
34399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
34400 $as_echo "$gl_cv_size_max" >&6; }
34401   if test "$gl_cv_size_max" != yes; then
34402
34403 cat >>confdefs.h <<_ACEOF
34404 #define SIZE_MAX $gl_cv_size_max
34405 _ACEOF
34406
34407   fi
34408
34409
34410
34411
34412   gl_cv_func_snprintf_usable=no
34413   for ac_func in snprintf
34414 do :
34415   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
34416 if test "x$ac_cv_func_snprintf" = xyes; then :
34417   cat >>confdefs.h <<_ACEOF
34418 #define HAVE_SNPRINTF 1
34419 _ACEOF
34420
34421 fi
34422 done
34423
34424   if test $ac_cv_func_snprintf = yes; then
34425
34426
34427
34428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
34429 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
34430 if ${gl_cv_func_snprintf_size1+:} false; then :
34431   $as_echo_n "(cached) " >&6
34432 else
34433
34434       if test "$cross_compiling" = yes; then :
34435   gl_cv_func_snprintf_size1="guessing yes"
34436 else
34437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34438 /* end confdefs.h.  */
34439
34440 #include <stdio.h>
34441 #if HAVE_SNPRINTF
34442 # define my_snprintf snprintf
34443 #else
34444 # include <stdarg.h>
34445 static int my_snprintf (char *buf, int size, const char *format, ...)
34446 {
34447   va_list args;
34448   int ret;
34449   va_start (args, format);
34450   ret = vsnprintf (buf, size, format, args);
34451   va_end (args);
34452   return ret;
34453 }
34454 #endif
34455 int main()
34456 {
34457   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
34458   my_snprintf (buf, 1, "%d", 12345);
34459   return buf[1] != 'E';
34460 }
34461 _ACEOF
34462 if ac_fn_c_try_run "$LINENO"; then :
34463   gl_cv_func_snprintf_size1=yes
34464 else
34465   gl_cv_func_snprintf_size1=no
34466 fi
34467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34468   conftest.$ac_objext conftest.beam conftest.$ac_ext
34469 fi
34470
34471
34472 fi
34473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
34474 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
34475
34476     case "$gl_cv_func_snprintf_size1" in
34477       *yes)
34478
34479         case "$gl_cv_func_snprintf_retval_c99" in
34480           *yes)
34481
34482
34483      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
34484 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
34485 if ${gl_cv_func_printf_positions+:} false; then :
34486   $as_echo_n "(cached) " >&6
34487 else
34488
34489       if test "$cross_compiling" = yes; then :
34490
34491          case "$host_os" in
34492            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
34493                          gl_cv_func_printf_positions="guessing no";;
34494            beos*)        gl_cv_func_printf_positions="guessing no";;
34495            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
34496            *)            gl_cv_func_printf_positions="guessing yes";;
34497          esac
34498
34499 else
34500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34501 /* end confdefs.h.  */
34502
34503 #include <stdio.h>
34504 #include <string.h>
34505 /* The string "%2$d %1$d", with dollar characters protected from the shell's
34506    dollar expansion (possibly an autoconf bug).  */
34507 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
34508 static char buf[100];
34509 int main ()
34510 {
34511   sprintf (buf, format, 33, 55);
34512   return (strcmp (buf, "55 33") != 0);
34513 }
34514 _ACEOF
34515 if ac_fn_c_try_run "$LINENO"; then :
34516   gl_cv_func_printf_positions=yes
34517 else
34518   gl_cv_func_printf_positions=no
34519 fi
34520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34521   conftest.$ac_objext conftest.beam conftest.$ac_ext
34522 fi
34523
34524
34525 fi
34526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
34527 $as_echo "$gl_cv_func_printf_positions" >&6; }
34528
34529             case "$gl_cv_func_printf_positions" in
34530               *yes)
34531                 gl_cv_func_snprintf_usable=yes
34532                 ;;
34533             esac
34534             ;;
34535         esac
34536         ;;
34537     esac
34538   fi
34539   if test $gl_cv_func_snprintf_usable = no; then
34540
34541
34542
34543
34544
34545
34546
34547
34548
34549
34550   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
34551
34552   if test $ac_cv_func_snprintf = yes; then
34553     REPLACE_SNPRINTF=1
34554   fi
34555   :
34556
34557   fi
34558
34559   :
34560
34561
34562
34563
34564
34565   if test $ac_cv_have_decl_snprintf = no; then
34566     HAVE_DECL_SNPRINTF=0
34567   fi
34568
34569
34570
34571
34572
34573
34574           GNULIB_SNPRINTF=1
34575
34576
34577
34578
34579
34580 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
34581
34582
34583
34584
34585
34586 cat >>confdefs.h <<_ACEOF
34587 #define GNULIB_SNPRINTF 1
34588 _ACEOF
34589
34590
34591
34592 if test "$ac_cv_header_winsock2_h" = yes; then
34593
34594
34595
34596
34597
34598
34599
34600
34601   gl_LIBOBJS="$gl_LIBOBJS socket.$ac_objext"
34602
34603 fi
34604 # When this module is used, sockets may actually occur as file descriptors,
34605 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
34606
34607
34608
34609 if test "$ac_cv_header_winsock2_h" = yes; then
34610   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
34611   SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
34612 fi
34613
34614
34615
34616
34617
34618           GNULIB_SOCKET=1
34619
34620
34621
34622
34623
34624 $as_echo "#define GNULIB_TEST_SOCKET 1" >>confdefs.h
34625
34626
34627
34628
34629
34630
34631
34632
34633   :
34634
34635
34636
34637
34638
34639   if test $ac_cv_header_sys_socket_h != yes; then
34640                     for ac_header in winsock2.h
34641 do :
34642   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
34643 if test "x$ac_cv_header_winsock2_h" = xyes; then :
34644   cat >>confdefs.h <<_ACEOF
34645 #define HAVE_WINSOCK2_H 1
34646 _ACEOF
34647
34648 fi
34649
34650 done
34651
34652   fi
34653   if test "$ac_cv_header_winsock2_h" = yes; then
34654     HAVE_WINSOCK2_H=1
34655     UNISTD_H_HAVE_WINSOCK2_H=1
34656     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
34657   else
34658     HAVE_WINSOCK2_H=0
34659   fi
34660
34661    LIBSOCKET=
34662   if test $HAVE_WINSOCK2_H = 1; then
34663         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
34664 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
34665 if ${gl_cv_func_wsastartup+:} false; then :
34666   $as_echo_n "(cached) " >&6
34667 else
34668
34669       gl_save_LIBS="$LIBS"
34670       LIBS="$LIBS -lws2_32"
34671       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34672 /* end confdefs.h.  */
34673
34674 #ifdef HAVE_WINSOCK2_H
34675 # include <winsock2.h>
34676 #endif
34677 int
34678 main ()
34679 {
34680
34681           WORD wVersionRequested = MAKEWORD(1, 1);
34682           WSADATA wsaData;
34683           int err = WSAStartup(wVersionRequested, &wsaData);
34684           WSACleanup ();
34685   ;
34686   return 0;
34687 }
34688 _ACEOF
34689 if ac_fn_c_try_link "$LINENO"; then :
34690   gl_cv_func_wsastartup=yes
34691 else
34692   gl_cv_func_wsastartup=no
34693 fi
34694 rm -f core conftest.err conftest.$ac_objext \
34695     conftest$ac_exeext conftest.$ac_ext
34696       LIBS="$gl_save_LIBS"
34697
34698 fi
34699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
34700 $as_echo "$gl_cv_func_wsastartup" >&6; }
34701     if test "$gl_cv_func_wsastartup" = "yes"; then
34702
34703 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
34704
34705       LIBSOCKET='-lws2_32'
34706     fi
34707   else
34708                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
34709 $as_echo_n "checking for library containing setsockopt... " >&6; }
34710 if ${gl_cv_lib_socket+:} false; then :
34711   $as_echo_n "(cached) " >&6
34712 else
34713
34714       gl_cv_lib_socket=
34715       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34716 /* end confdefs.h.  */
34717 extern
34718 #ifdef __cplusplus
34719 "C"
34720 #endif
34721 char setsockopt();
34722 int
34723 main ()
34724 {
34725 setsockopt();
34726   ;
34727   return 0;
34728 }
34729 _ACEOF
34730 if ac_fn_c_try_link "$LINENO"; then :
34731
34732 else
34733   gl_save_LIBS="$LIBS"
34734          LIBS="$gl_save_LIBS -lsocket"
34735          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34736 /* end confdefs.h.  */
34737 extern
34738 #ifdef __cplusplus
34739 "C"
34740 #endif
34741 char setsockopt();
34742 int
34743 main ()
34744 {
34745 setsockopt();
34746   ;
34747   return 0;
34748 }
34749 _ACEOF
34750 if ac_fn_c_try_link "$LINENO"; then :
34751   gl_cv_lib_socket="-lsocket"
34752 fi
34753 rm -f core conftest.err conftest.$ac_objext \
34754     conftest$ac_exeext conftest.$ac_ext
34755          if test -z "$gl_cv_lib_socket"; then
34756            LIBS="$gl_save_LIBS -lnetwork"
34757            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34758 /* end confdefs.h.  */
34759 extern
34760 #ifdef __cplusplus
34761 "C"
34762 #endif
34763 char setsockopt();
34764 int
34765 main ()
34766 {
34767 setsockopt();
34768   ;
34769   return 0;
34770 }
34771 _ACEOF
34772 if ac_fn_c_try_link "$LINENO"; then :
34773   gl_cv_lib_socket="-lnetwork"
34774 fi
34775 rm -f core conftest.err conftest.$ac_objext \
34776     conftest$ac_exeext conftest.$ac_ext
34777            if test -z "$gl_cv_lib_socket"; then
34778              LIBS="$gl_save_LIBS -lnet"
34779              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34780 /* end confdefs.h.  */
34781 extern
34782 #ifdef __cplusplus
34783 "C"
34784 #endif
34785 char setsockopt();
34786 int
34787 main ()
34788 {
34789 setsockopt();
34790   ;
34791   return 0;
34792 }
34793 _ACEOF
34794 if ac_fn_c_try_link "$LINENO"; then :
34795   gl_cv_lib_socket="-lnet"
34796 fi
34797 rm -f core conftest.err conftest.$ac_objext \
34798     conftest$ac_exeext conftest.$ac_ext
34799            fi
34800          fi
34801          LIBS="$gl_save_LIBS"
34802
34803 fi
34804 rm -f core conftest.err conftest.$ac_objext \
34805     conftest$ac_exeext conftest.$ac_ext
34806       if test -z "$gl_cv_lib_socket"; then
34807         gl_cv_lib_socket="none needed"
34808       fi
34809
34810 fi
34811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
34812 $as_echo "$gl_cv_lib_socket" >&6; }
34813     if test "$gl_cv_lib_socket" != "none needed"; then
34814       LIBSOCKET="$gl_cv_lib_socket"
34815     fi
34816   fi
34817
34818
34819
34820
34821
34822
34823   :
34824
34825
34826    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
34827 /* <sys/types.h> is not needed according to POSIX, but the
34828    <sys/socket.h> in i386-unknown-freebsd4.10 and
34829    powerpc-apple-darwin5.5 required it. */
34830 #include <sys/types.h>
34831 #if HAVE_SYS_SOCKET_H
34832 # include <sys/socket.h>
34833 #elif HAVE_WS2TCPIP_H
34834 # include <ws2tcpip.h>
34835 #endif
34836
34837 "
34838 if test "x$ac_cv_type_socklen_t" = xyes; then :
34839
34840 else
34841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
34842 $as_echo_n "checking for socklen_t equivalent... " >&6; }
34843       if ${gl_cv_socklen_t_equiv+:} false; then :
34844   $as_echo_n "(cached) " >&6
34845 else
34846   # Systems have either "struct sockaddr *" or
34847          # "void *" as the second argument to getpeername
34848          gl_cv_socklen_t_equiv=
34849          for arg2 in "struct sockaddr" void; do
34850            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
34851              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34852 /* end confdefs.h.  */
34853 #include <sys/types.h>
34854                    #include <sys/socket.h>
34855
34856                    int getpeername (int, $arg2 *, $t *);
34857 int
34858 main ()
34859 {
34860 $t len;
34861                   getpeername (0, 0, &len);
34862   ;
34863   return 0;
34864 }
34865 _ACEOF
34866 if ac_fn_c_try_compile "$LINENO"; then :
34867   gl_cv_socklen_t_equiv="$t"
34868 fi
34869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34870              test "$gl_cv_socklen_t_equiv" != "" && break
34871            done
34872            test "$gl_cv_socklen_t_equiv" != "" && break
34873          done
34874
34875 fi
34876
34877       if test "$gl_cv_socklen_t_equiv" = ""; then
34878         as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
34879       fi
34880       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
34881 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
34882
34883 cat >>confdefs.h <<_ACEOF
34884 #define socklen_t $gl_cv_socklen_t_equiv
34885 _ACEOF
34886
34887 fi
34888
34889
34890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
34891 $as_echo_n "checking for ssize_t... " >&6; }
34892 if ${gt_cv_ssize_t+:} false; then :
34893   $as_echo_n "(cached) " >&6
34894 else
34895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34896 /* end confdefs.h.  */
34897 #include <sys/types.h>
34898 int
34899 main ()
34900 {
34901 int x = sizeof (ssize_t *) + sizeof (ssize_t);
34902             return !x;
34903   ;
34904   return 0;
34905 }
34906 _ACEOF
34907 if ac_fn_c_try_compile "$LINENO"; then :
34908   gt_cv_ssize_t=yes
34909 else
34910   gt_cv_ssize_t=no
34911 fi
34912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34913 fi
34914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
34915 $as_echo "$gt_cv_ssize_t" >&6; }
34916   if test $gt_cv_ssize_t = no; then
34917
34918 $as_echo "#define ssize_t int" >>confdefs.h
34919
34920   fi
34921
34922
34923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
34924 $as_echo_n "checking for working stdalign.h... " >&6; }
34925 if ${gl_cv_header_working_stdalign_h+:} false; then :
34926   $as_echo_n "(cached) " >&6
34927 else
34928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34929 /* end confdefs.h.  */
34930 #include <stdalign.h>
34931             #include <stddef.h>
34932
34933             /* Test that alignof yields a result consistent with offsetof.
34934                This catches GCC bug 52023
34935                <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
34936             #ifdef __cplusplus
34937                template <class t> struct alignof_helper { char a; t b; };
34938             # define ao(type) offsetof (alignof_helper<type>, b)
34939             #else
34940             # define ao(type) offsetof (struct { char a; type b; }, b)
34941             #endif
34942             char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
34943             char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
34944             char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
34945
34946             /* Test _Alignas only on platforms where gnulib can help.  */
34947             #if \
34948                 (__GNUC__ || __IBMC__ || __IBMCPP__ \
34949                  || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
34950               int alignas (8) alignas_int = 1;
34951               char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
34952             #endif
34953
34954 int
34955 main ()
34956 {
34957
34958   ;
34959   return 0;
34960 }
34961 _ACEOF
34962 if ac_fn_c_try_compile "$LINENO"; then :
34963   gl_cv_header_working_stdalign_h=yes
34964 else
34965   gl_cv_header_working_stdalign_h=no
34966 fi
34967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34968 fi
34969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
34970 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
34971
34972   if test $gl_cv_header_working_stdalign_h = yes; then
34973     STDALIGN_H=''
34974   else
34975     STDALIGN_H='stdalign.h'
34976   fi
34977
34978
34979    if test -n "$STDALIGN_H"; then
34980   GL_GENERATE_STDALIGN_H_TRUE=
34981   GL_GENERATE_STDALIGN_H_FALSE='#'
34982 else
34983   GL_GENERATE_STDALIGN_H_TRUE='#'
34984   GL_GENERATE_STDALIGN_H_FALSE=
34985 fi
34986
34987
34988
34989   STDARG_H=''
34990   NEXT_STDARG_H='<stdarg.h>'
34991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
34992 $as_echo_n "checking for va_copy... " >&6; }
34993   if ${gl_cv_func_va_copy+:} false; then :
34994   $as_echo_n "(cached) " >&6
34995 else
34996
34997     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34998 /* end confdefs.h.  */
34999 #include <stdarg.h>
35000 int
35001 main ()
35002 {
35003
35004 #ifndef va_copy
35005 void (*func) (va_list, va_list) = va_copy;
35006 #endif
35007
35008   ;
35009   return 0;
35010 }
35011 _ACEOF
35012 if ac_fn_c_try_compile "$LINENO"; then :
35013   gl_cv_func_va_copy=yes
35014 else
35015   gl_cv_func_va_copy=no
35016 fi
35017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35018 fi
35019
35020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
35021 $as_echo "$gl_cv_func_va_copy" >&6; }
35022   if test $gl_cv_func_va_copy = no; then
35023                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35024 /* end confdefs.h.  */
35025 #if defined _AIX && !defined __GNUC__
35026         AIX vaccine
35027        #endif
35028
35029 _ACEOF
35030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35031   $EGREP "vaccine" >/dev/null 2>&1; then :
35032   gl_aixcc=yes
35033 else
35034   gl_aixcc=no
35035 fi
35036 rm -f conftest*
35037
35038     if test $gl_aixcc = yes; then
35039             STDARG_H=stdarg.h
35040
35041
35042
35043
35044
35045
35046
35047
35048      if test $gl_cv_have_include_next = yes; then
35049        gl_cv_next_stdarg_h='<'stdarg.h'>'
35050      else
35051        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
35052 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
35053 if ${gl_cv_next_stdarg_h+:} false; then :
35054   $as_echo_n "(cached) " >&6
35055 else
35056
35057                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35058 /* end confdefs.h.  */
35059 #include <stdarg.h>
35060
35061 _ACEOF
35062                                                                                                                         case "$host_os" in
35063                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
35064                  *)    gl_absname_cpp="$ac_cpp" ;;
35065                esac
35066
35067                case "$host_os" in
35068                  mingw*)
35069                                                                                                                                      gl_dirsep_regex='[/\\]'
35070                    ;;
35071                  *)
35072                    gl_dirsep_regex='\/'
35073                    ;;
35074                esac
35075                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35076
35077                gl_header_literal_regex=`echo 'stdarg.h' \
35078                                         | sed -e "$gl_make_literal_regex_sed"`
35079                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35080                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35081                    s|^/[^/]|//&|
35082                    p
35083                    q
35084                  }'
35085                                                             gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35086                       sed -n "$gl_absolute_header_sed"`'"'
35087
35088
35089 fi
35090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
35091 $as_echo "$gl_cv_next_stdarg_h" >&6; }
35092      fi
35093      NEXT_STDARG_H=$gl_cv_next_stdarg_h
35094
35095      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35096        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35097        gl_next_as_first_directive='<'stdarg.h'>'
35098      else
35099        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35100        gl_next_as_first_directive=$gl_cv_next_stdarg_h
35101      fi
35102      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
35103
35104
35105
35106
35107             if test "$gl_cv_next_stdarg_h" = '""'; then
35108         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
35109         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
35110       fi
35111     else
35112
35113   saved_as_echo_n="$as_echo_n"
35114   as_echo_n=':'
35115   if ${gl_cv_func___va_copy+:} false; then :
35116   $as_echo_n "(cached) " >&6
35117 else
35118
35119         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35120 /* end confdefs.h.  */
35121 #include <stdarg.h>
35122 int
35123 main ()
35124 {
35125
35126 #ifndef __va_copy
35127 error, bail out
35128 #endif
35129
35130   ;
35131   return 0;
35132 }
35133 _ACEOF
35134 if ac_fn_c_try_compile "$LINENO"; then :
35135   gl_cv_func___va_copy=yes
35136 else
35137   gl_cv_func___va_copy=no
35138 fi
35139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35140 fi
35141
35142   as_echo_n="$saved_as_echo_n"
35143
35144       if test $gl_cv_func___va_copy = yes; then
35145
35146 $as_echo "#define va_copy __va_copy" >>confdefs.h
35147
35148       else
35149
35150
35151 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
35152
35153       fi
35154     fi
35155   fi
35156
35157    if test -n "$STDARG_H"; then
35158   GL_GENERATE_STDARG_H_TRUE=
35159   GL_GENERATE_STDARG_H_FALSE='#'
35160 else
35161   GL_GENERATE_STDARG_H_TRUE='#'
35162   GL_GENERATE_STDARG_H_FALSE=
35163 fi
35164
35165
35166
35167
35168
35169
35170   # Define two additional variables used in the Makefile substitution.
35171
35172   if test "$ac_cv_header_stdbool_h" = yes; then
35173     STDBOOL_H=''
35174   else
35175     STDBOOL_H='stdbool.h'
35176   fi
35177
35178    if test -n "$STDBOOL_H"; then
35179   GL_GENERATE_STDBOOL_H_TRUE=
35180   GL_GENERATE_STDBOOL_H_FALSE='#'
35181 else
35182   GL_GENERATE_STDBOOL_H_TRUE='#'
35183   GL_GENERATE_STDBOOL_H_FALSE=
35184 fi
35185
35186
35187   if test "$ac_cv_type__Bool" = yes; then
35188     HAVE__BOOL=1
35189   else
35190     HAVE__BOOL=0
35191   fi
35192
35193
35194
35195
35196
35197   STDDEF_H=
35198   if test $gt_cv_c_wchar_t = no; then
35199     HAVE_WCHAR_T=0
35200     STDDEF_H=stddef.h
35201   fi
35202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
35203 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
35204 if ${gl_cv_decl_null_works+:} false; then :
35205   $as_echo_n "(cached) " >&6
35206 else
35207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35208 /* end confdefs.h.  */
35209 #include <stddef.h>
35210       int test[2 * (sizeof NULL == sizeof (void *)) -1];
35211
35212 int
35213 main ()
35214 {
35215
35216   ;
35217   return 0;
35218 }
35219 _ACEOF
35220 if ac_fn_c_try_compile "$LINENO"; then :
35221   gl_cv_decl_null_works=yes
35222 else
35223   gl_cv_decl_null_works=no
35224 fi
35225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35226 fi
35227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
35228 $as_echo "$gl_cv_decl_null_works" >&6; }
35229   if test $gl_cv_decl_null_works = no; then
35230     REPLACE_NULL=1
35231     STDDEF_H=stddef.h
35232   fi
35233
35234    if test -n "$STDDEF_H"; then
35235   GL_GENERATE_STDDEF_H_TRUE=
35236   GL_GENERATE_STDDEF_H_FALSE='#'
35237 else
35238   GL_GENERATE_STDDEF_H_TRUE='#'
35239   GL_GENERATE_STDDEF_H_FALSE=
35240 fi
35241
35242   if test -n "$STDDEF_H"; then
35243
35244
35245
35246
35247
35248
35249
35250
35251      if test $gl_cv_have_include_next = yes; then
35252        gl_cv_next_stddef_h='<'stddef.h'>'
35253      else
35254        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
35255 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
35256 if ${gl_cv_next_stddef_h+:} false; then :
35257   $as_echo_n "(cached) " >&6
35258 else
35259
35260                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35261 /* end confdefs.h.  */
35262 #include <stddef.h>
35263
35264 _ACEOF
35265                                                                                                                         case "$host_os" in
35266                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
35267                  *)    gl_absname_cpp="$ac_cpp" ;;
35268                esac
35269
35270                case "$host_os" in
35271                  mingw*)
35272                                                                                                                                      gl_dirsep_regex='[/\\]'
35273                    ;;
35274                  *)
35275                    gl_dirsep_regex='\/'
35276                    ;;
35277                esac
35278                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35279
35280                gl_header_literal_regex=`echo 'stddef.h' \
35281                                         | sed -e "$gl_make_literal_regex_sed"`
35282                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35283                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35284                    s|^/[^/]|//&|
35285                    p
35286                    q
35287                  }'
35288                                                             gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35289                       sed -n "$gl_absolute_header_sed"`'"'
35290
35291
35292 fi
35293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
35294 $as_echo "$gl_cv_next_stddef_h" >&6; }
35295      fi
35296      NEXT_STDDEF_H=$gl_cv_next_stddef_h
35297
35298      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35299        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35300        gl_next_as_first_directive='<'stddef.h'>'
35301      else
35302        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35303        gl_next_as_first_directive=$gl_cv_next_stddef_h
35304      fi
35305      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
35306
35307
35308
35309
35310   fi
35311
35312
35313
35314
35315
35316
35317
35318
35319
35320
35321
35322
35323
35324      if test $gl_cv_have_include_next = yes; then
35325        gl_cv_next_stdio_h='<'stdio.h'>'
35326      else
35327        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
35328 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
35329 if ${gl_cv_next_stdio_h+:} false; then :
35330   $as_echo_n "(cached) " >&6
35331 else
35332
35333                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35334 /* end confdefs.h.  */
35335 #include <stdio.h>
35336
35337 _ACEOF
35338                                                                                                                         case "$host_os" in
35339                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
35340                  *)    gl_absname_cpp="$ac_cpp" ;;
35341                esac
35342
35343                case "$host_os" in
35344                  mingw*)
35345                                                                                                                                      gl_dirsep_regex='[/\\]'
35346                    ;;
35347                  *)
35348                    gl_dirsep_regex='\/'
35349                    ;;
35350                esac
35351                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35352
35353                gl_header_literal_regex=`echo 'stdio.h' \
35354                                         | sed -e "$gl_make_literal_regex_sed"`
35355                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35356                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35357                    s|^/[^/]|//&|
35358                    p
35359                    q
35360                  }'
35361                                                             gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35362                       sed -n "$gl_absolute_header_sed"`'"'
35363
35364
35365 fi
35366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
35367 $as_echo "$gl_cv_next_stdio_h" >&6; }
35368      fi
35369      NEXT_STDIO_H=$gl_cv_next_stdio_h
35370
35371      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35372        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35373        gl_next_as_first_directive='<'stdio.h'>'
35374      else
35375        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35376        gl_next_as_first_directive=$gl_cv_next_stdio_h
35377      fi
35378      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
35379
35380
35381
35382
35383
35384       GNULIB_FSCANF=1
35385   GNULIB_SCANF=1
35386   GNULIB_FGETC=1
35387   GNULIB_GETC=1
35388   GNULIB_GETCHAR=1
35389   GNULIB_FGETS=1
35390   GNULIB_GETS=1
35391   GNULIB_FREAD=1
35392
35393
35394       GNULIB_FPRINTF=1
35395   GNULIB_PRINTF=1
35396   GNULIB_VFPRINTF=1
35397   GNULIB_VPRINTF=1
35398   GNULIB_FPUTC=1
35399   GNULIB_PUTC=1
35400   GNULIB_PUTCHAR=1
35401   GNULIB_FPUTS=1
35402   GNULIB_PUTS=1
35403   GNULIB_FWRITE=1
35404
35405
35406
35407
35408     for gl_func in dprintf fpurge fseeko ftello getdelim getline pclose popen renameat     snprintf tmpfile vdprintf vsnprintf; do
35409     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
35410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
35411 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
35412 if eval \${$as_gl_Symbol+:} false; then :
35413   $as_echo_n "(cached) " >&6
35414 else
35415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35416 /* end confdefs.h.  */
35417 #include <stdio.h>
35418
35419 int
35420 main ()
35421 {
35422 #undef $gl_func
35423   (void) $gl_func;
35424   ;
35425   return 0;
35426 }
35427 _ACEOF
35428 if ac_fn_c_try_compile "$LINENO"; then :
35429   eval "$as_gl_Symbol=yes"
35430 else
35431   eval "$as_gl_Symbol=no"
35432 fi
35433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35434 fi
35435 eval ac_res=\$$as_gl_Symbol
35436                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35437 $as_echo "$ac_res" >&6; }
35438     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
35439   cat >>confdefs.h <<_ACEOF
35440 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
35441 _ACEOF
35442
35443                      eval ac_cv_have_decl_$gl_func=yes
35444 fi
35445       done
35446
35447
35448
35449
35450
35451
35452
35453
35454
35455
35456
35457
35458      if test $gl_cv_have_include_next = yes; then
35459        gl_cv_next_stdlib_h='<'stdlib.h'>'
35460      else
35461        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
35462 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
35463 if ${gl_cv_next_stdlib_h+:} false; then :
35464   $as_echo_n "(cached) " >&6
35465 else
35466
35467                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35468 /* end confdefs.h.  */
35469 #include <stdlib.h>
35470
35471 _ACEOF
35472                                                                                                                         case "$host_os" in
35473                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
35474                  *)    gl_absname_cpp="$ac_cpp" ;;
35475                esac
35476
35477                case "$host_os" in
35478                  mingw*)
35479                                                                                                                                      gl_dirsep_regex='[/\\]'
35480                    ;;
35481                  *)
35482                    gl_dirsep_regex='\/'
35483                    ;;
35484                esac
35485                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35486
35487                gl_header_literal_regex=`echo 'stdlib.h' \
35488                                         | sed -e "$gl_make_literal_regex_sed"`
35489                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35490                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35491                    s|^/[^/]|//&|
35492                    p
35493                    q
35494                  }'
35495                                                             gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35496                       sed -n "$gl_absolute_header_sed"`'"'
35497
35498
35499 fi
35500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
35501 $as_echo "$gl_cv_next_stdlib_h" >&6; }
35502      fi
35503      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
35504
35505      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35506        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35507        gl_next_as_first_directive='<'stdlib.h'>'
35508      else
35509        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35510        gl_next_as_first_directive=$gl_cv_next_stdlib_h
35511      fi
35512      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
35513
35514
35515
35516
35517
35518
35519     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     setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
35520     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
35521     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
35522 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
35523 if eval \${$as_gl_Symbol+:} false; then :
35524   $as_echo_n "(cached) " >&6
35525 else
35526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35527 /* end confdefs.h.  */
35528 #include <stdlib.h>
35529 #if HAVE_SYS_LOADAVG_H
35530 # include <sys/loadavg.h>
35531 #endif
35532 #if HAVE_RANDOM_H
35533 # include <random.h>
35534 #endif
35535
35536 int
35537 main ()
35538 {
35539 #undef $gl_func
35540   (void) $gl_func;
35541   ;
35542   return 0;
35543 }
35544 _ACEOF
35545 if ac_fn_c_try_compile "$LINENO"; then :
35546   eval "$as_gl_Symbol=yes"
35547 else
35548   eval "$as_gl_Symbol=no"
35549 fi
35550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35551 fi
35552 eval ac_res=\$$as_gl_Symbol
35553                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35554 $as_echo "$ac_res" >&6; }
35555     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
35556   cat >>confdefs.h <<_ACEOF
35557 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
35558 _ACEOF
35559
35560                      eval ac_cv_have_decl_$gl_func=yes
35561 fi
35562       done
35563
35564
35565
35566
35567
35568
35569
35570
35571
35572   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
35573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
35574 $as_echo_n "checking for working strerror function... " >&6; }
35575 if ${gl_cv_func_working_strerror+:} false; then :
35576   $as_echo_n "(cached) " >&6
35577 else
35578   if test "$cross_compiling" = yes; then :
35579            gl_cv_func_working_strerror="guessing no"
35580 else
35581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35582 /* end confdefs.h.  */
35583 #include <string.h>
35584
35585 int
35586 main ()
35587 {
35588 if (!*strerror (-2)) return 1;
35589   ;
35590   return 0;
35591 }
35592 _ACEOF
35593 if ac_fn_c_try_run "$LINENO"; then :
35594   gl_cv_func_working_strerror=yes
35595 else
35596   gl_cv_func_working_strerror=no
35597 fi
35598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35599   conftest.$ac_objext conftest.beam conftest.$ac_ext
35600 fi
35601
35602
35603 fi
35604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
35605 $as_echo "$gl_cv_func_working_strerror" >&6; }
35606     if test "$gl_cv_func_working_strerror" != yes; then
35607                   REPLACE_STRERROR=1
35608     fi
35609
35610                   case "$gl_cv_func_strerror_r_works" in
35611         *no) REPLACE_STRERROR=1 ;;
35612       esac
35613
35614   else
35615             REPLACE_STRERROR=1
35616   fi
35617
35618 if test $REPLACE_STRERROR = 1; then
35619
35620
35621
35622
35623
35624
35625
35626
35627   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
35628
35629 fi
35630
35631
35632 cat >>confdefs.h <<_ACEOF
35633 #define GNULIB_STRERROR 1
35634 _ACEOF
35635
35636
35637
35638
35639
35640
35641
35642           GNULIB_STRERROR=1
35643
35644
35645
35646
35647
35648 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
35649
35650
35651
35652
35653
35654 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
35655
35656
35657
35658
35659
35660
35661
35662
35663   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
35664
35665
35666
35667
35668
35669   :
35670
35671
35672
35673
35674
35675   if test $ac_cv_header_sys_socket_h != yes; then
35676                     for ac_header in winsock2.h
35677 do :
35678   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
35679 if test "x$ac_cv_header_winsock2_h" = xyes; then :
35680   cat >>confdefs.h <<_ACEOF
35681 #define HAVE_WINSOCK2_H 1
35682 _ACEOF
35683
35684 fi
35685
35686 done
35687
35688   fi
35689   if test "$ac_cv_header_winsock2_h" = yes; then
35690     HAVE_WINSOCK2_H=1
35691     UNISTD_H_HAVE_WINSOCK2_H=1
35692     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
35693   else
35694     HAVE_WINSOCK2_H=0
35695   fi
35696
35697
35698 fi
35699
35700
35701
35702
35703
35704
35705
35706   :
35707
35708
35709
35710
35711
35712   if test $ac_cv_have_decl_strerror_r = no; then
35713     HAVE_DECL_STRERROR_R=0
35714   fi
35715
35716   if test $ac_cv_func_strerror_r = yes; then
35717     if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
35718       if test $gl_cv_func_strerror_r_posix_signature = yes; then
35719         case "$gl_cv_func_strerror_r_works" in
35720                     *no) REPLACE_STRERROR_R=1 ;;
35721         esac
35722       else
35723                 REPLACE_STRERROR_R=1
35724       fi
35725     else
35726                   REPLACE_STRERROR_R=1
35727     fi
35728   fi
35729
35730 if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
35731
35732
35733
35734
35735
35736
35737
35738
35739   gl_LIBOBJS="$gl_LIBOBJS strerror_r.$ac_objext"
35740
35741
35742
35743   :
35744
35745
35746
35747
35748
35749
35750   :
35751
35752
35753
35754
35755
35756
35757   :
35758
35759
35760
35761
35762
35763
35764 fi
35765
35766
35767
35768
35769
35770           GNULIB_STRERROR_R=1
35771
35772
35773
35774
35775
35776 $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
35777
35778
35779
35780
35781
35782
35783
35784
35785
35786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
35787 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
35788 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
35789   $as_echo_n "(cached) " >&6
35790 else
35791
35792                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35793 /* end confdefs.h.  */
35794 #include <sys/select.h>
35795 int
35796 main ()
35797 {
35798 struct timeval b;
35799   ;
35800   return 0;
35801 }
35802 _ACEOF
35803 if ac_fn_c_try_compile "$LINENO"; then :
35804   gl_cv_header_sys_select_h_selfcontained=yes
35805 else
35806   gl_cv_header_sys_select_h_selfcontained=no
35807 fi
35808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35809                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
35810         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35811 /* end confdefs.h.  */
35812 #include <sys/select.h>
35813 int
35814 main ()
35815 {
35816 int memset; int bzero;
35817   ;
35818   return 0;
35819 }
35820
35821 _ACEOF
35822 if ac_fn_c_try_compile "$LINENO"; then :
35823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35824 /* end confdefs.h.  */
35825 #include <sys/select.h>
35826 int
35827 main ()
35828 {
35829
35830                   #undef memset
35831                   #define memset nonexistent_memset
35832                   extern
35833                   #ifdef __cplusplus
35834                   "C"
35835                   #endif
35836                   void *memset (void *, int, unsigned long);
35837                   #undef bzero
35838                   #define bzero nonexistent_bzero
35839                   extern
35840                   #ifdef __cplusplus
35841                   "C"
35842                   #endif
35843                   void bzero (void *, unsigned long);
35844                   fd_set fds;
35845                   FD_ZERO (&fds);
35846
35847   ;
35848   return 0;
35849 }
35850
35851 _ACEOF
35852 if ac_fn_c_try_link "$LINENO"; then :
35853
35854 else
35855   gl_cv_header_sys_select_h_selfcontained=no
35856 fi
35857 rm -f core conftest.err conftest.$ac_objext \
35858     conftest$ac_exeext conftest.$ac_ext
35859
35860 fi
35861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35862       fi
35863
35864 fi
35865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
35866 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
35867
35868
35869
35870
35871
35872
35873   :
35874
35875
35876
35877
35878
35879
35880
35881
35882      if test $gl_cv_have_include_next = yes; then
35883        gl_cv_next_sys_select_h='<'sys/select.h'>'
35884      else
35885        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
35886 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
35887 if ${gl_cv_next_sys_select_h+:} false; then :
35888   $as_echo_n "(cached) " >&6
35889 else
35890
35891              if test $ac_cv_header_sys_select_h = yes; then
35892
35893
35894                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35895 /* end confdefs.h.  */
35896 #include <sys/select.h>
35897
35898 _ACEOF
35899                                                                                                                         case "$host_os" in
35900                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
35901                  *)    gl_absname_cpp="$ac_cpp" ;;
35902                esac
35903
35904                case "$host_os" in
35905                  mingw*)
35906                                                                                                                                      gl_dirsep_regex='[/\\]'
35907                    ;;
35908                  *)
35909                    gl_dirsep_regex='\/'
35910                    ;;
35911                esac
35912                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35913
35914                gl_header_literal_regex=`echo 'sys/select.h' \
35915                                         | sed -e "$gl_make_literal_regex_sed"`
35916                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35917                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35918                    s|^/[^/]|//&|
35919                    p
35920                    q
35921                  }'
35922                                                             gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35923                       sed -n "$gl_absolute_header_sed"`'"'
35924           else
35925                gl_cv_next_sys_select_h='<'sys/select.h'>'
35926              fi
35927
35928
35929 fi
35930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
35931 $as_echo "$gl_cv_next_sys_select_h" >&6; }
35932      fi
35933      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
35934
35935      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35936        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35937        gl_next_as_first_directive='<'sys/select.h'>'
35938      else
35939        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35940        gl_next_as_first_directive=$gl_cv_next_sys_select_h
35941      fi
35942      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
35943
35944
35945
35946
35947   if test $ac_cv_header_sys_select_h = yes; then
35948     HAVE_SYS_SELECT_H=1
35949   else
35950     HAVE_SYS_SELECT_H=0
35951   fi
35952
35953
35954
35955
35956
35957   :
35958
35959
35960
35961
35962
35963   if test $ac_cv_header_sys_socket_h != yes; then
35964                     for ac_header in winsock2.h
35965 do :
35966   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
35967 if test "x$ac_cv_header_winsock2_h" = xyes; then :
35968   cat >>confdefs.h <<_ACEOF
35969 #define HAVE_WINSOCK2_H 1
35970 _ACEOF
35971
35972 fi
35973
35974 done
35975
35976   fi
35977   if test "$ac_cv_header_winsock2_h" = yes; then
35978     HAVE_WINSOCK2_H=1
35979     UNISTD_H_HAVE_WINSOCK2_H=1
35980     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
35981   else
35982     HAVE_WINSOCK2_H=0
35983   fi
35984
35985
35986
35987
35988     for gl_func in pselect select; do
35989     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
35990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
35991 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
35992 if eval \${$as_gl_Symbol+:} false; then :
35993   $as_echo_n "(cached) " >&6
35994 else
35995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35996 /* end confdefs.h.  */
35997
35998 /* Some systems require prerequisite headers.  */
35999 #include <sys/types.h>
36000 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
36001 # include <sys/time.h>
36002 #endif
36003 #include <sys/select.h>
36004
36005 int
36006 main ()
36007 {
36008 #undef $gl_func
36009   (void) $gl_func;
36010   ;
36011   return 0;
36012 }
36013 _ACEOF
36014 if ac_fn_c_try_compile "$LINENO"; then :
36015   eval "$as_gl_Symbol=yes"
36016 else
36017   eval "$as_gl_Symbol=no"
36018 fi
36019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36020 fi
36021 eval ac_res=\$$as_gl_Symbol
36022                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36023 $as_echo "$ac_res" >&6; }
36024     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
36025   cat >>confdefs.h <<_ACEOF
36026 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
36027 _ACEOF
36028
36029                      eval ac_cv_have_decl_$gl_func=yes
36030 fi
36031       done
36032
36033
36034
36035
36036
36037
36038
36039
36040         case "$host_os" in
36041     osf*)
36042
36043 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
36044
36045       ;;
36046   esac
36047
36048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
36049 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
36050 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
36051   $as_echo_n "(cached) " >&6
36052 else
36053
36054       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36055 /* end confdefs.h.  */
36056 #include <sys/socket.h>
36057 int
36058 main ()
36059 {
36060
36061   ;
36062   return 0;
36063 }
36064 _ACEOF
36065 if ac_fn_c_try_compile "$LINENO"; then :
36066   gl_cv_header_sys_socket_h_selfcontained=yes
36067 else
36068   gl_cv_header_sys_socket_h_selfcontained=no
36069 fi
36070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36071
36072 fi
36073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
36074 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
36075   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
36076             for ac_func in shutdown
36077 do :
36078   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
36079 if test "x$ac_cv_func_shutdown" = xyes; then :
36080   cat >>confdefs.h <<_ACEOF
36081 #define HAVE_SHUTDOWN 1
36082 _ACEOF
36083
36084 fi
36085 done
36086
36087     if test $ac_cv_func_shutdown = yes; then
36088       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
36089 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
36090 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
36091   $as_echo_n "(cached) " >&6
36092 else
36093
36094           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36095 /* end confdefs.h.  */
36096 #include <sys/socket.h>
36097 int
36098 main ()
36099 {
36100 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
36101   ;
36102   return 0;
36103 }
36104 _ACEOF
36105 if ac_fn_c_try_compile "$LINENO"; then :
36106   gl_cv_header_sys_socket_h_shut=yes
36107 else
36108   gl_cv_header_sys_socket_h_shut=no
36109 fi
36110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36111
36112 fi
36113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
36114 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
36115       if test $gl_cv_header_sys_socket_h_shut = no; then
36116         SYS_SOCKET_H='sys/socket.h'
36117       fi
36118     fi
36119   fi
36120   # We need to check for ws2tcpip.h now.
36121
36122
36123
36124
36125
36126
36127
36128
36129   :
36130
36131
36132
36133
36134
36135
36136
36137
36138      if test $gl_cv_have_include_next = yes; then
36139        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
36140      else
36141        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
36142 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
36143 if ${gl_cv_next_sys_socket_h+:} false; then :
36144   $as_echo_n "(cached) " >&6
36145 else
36146
36147              if test $ac_cv_header_sys_socket_h = yes; then
36148
36149
36150                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36151 /* end confdefs.h.  */
36152 #include <sys/socket.h>
36153
36154 _ACEOF
36155                                                                                                                         case "$host_os" in
36156                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
36157                  *)    gl_absname_cpp="$ac_cpp" ;;
36158                esac
36159
36160                case "$host_os" in
36161                  mingw*)
36162                                                                                                                                      gl_dirsep_regex='[/\\]'
36163                    ;;
36164                  *)
36165                    gl_dirsep_regex='\/'
36166                    ;;
36167                esac
36168                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36169
36170                gl_header_literal_regex=`echo 'sys/socket.h' \
36171                                         | sed -e "$gl_make_literal_regex_sed"`
36172                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36173                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36174                    s|^/[^/]|//&|
36175                    p
36176                    q
36177                  }'
36178                                                             gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36179                       sed -n "$gl_absolute_header_sed"`'"'
36180           else
36181                gl_cv_next_sys_socket_h='<'sys/socket.h'>'
36182              fi
36183
36184
36185 fi
36186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
36187 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
36188      fi
36189      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
36190
36191      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36192        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36193        gl_next_as_first_directive='<'sys/socket.h'>'
36194      else
36195        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36196        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
36197      fi
36198      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
36199
36200
36201
36202
36203   if test $ac_cv_header_sys_socket_h = yes; then
36204     HAVE_SYS_SOCKET_H=1
36205     HAVE_WS2TCPIP_H=0
36206   else
36207     HAVE_SYS_SOCKET_H=0
36208     if test $ac_cv_header_ws2tcpip_h = yes; then
36209       HAVE_WS2TCPIP_H=1
36210     else
36211       HAVE_WS2TCPIP_H=0
36212     fi
36213   fi
36214
36215
36216
36217   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
36218   /* sys/types.h is not needed according to POSIX, but the
36219      sys/socket.h in i386-unknown-freebsd4.10 and
36220      powerpc-apple-darwin5.5 required it. */
36221 #include <sys/types.h>
36222 #ifdef HAVE_SYS_SOCKET_H
36223 #include <sys/socket.h>
36224 #endif
36225 #ifdef HAVE_WS2TCPIP_H
36226 #include <ws2tcpip.h>
36227 #endif
36228
36229 "
36230 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
36231
36232 cat >>confdefs.h <<_ACEOF
36233 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
36234 _ACEOF
36235
36236
36237 fi
36238 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
36239   /* sys/types.h is not needed according to POSIX, but the
36240      sys/socket.h in i386-unknown-freebsd4.10 and
36241      powerpc-apple-darwin5.5 required it. */
36242 #include <sys/types.h>
36243 #ifdef HAVE_SYS_SOCKET_H
36244 #include <sys/socket.h>
36245 #endif
36246 #ifdef HAVE_WS2TCPIP_H
36247 #include <ws2tcpip.h>
36248 #endif
36249
36250 "
36251 if test "x$ac_cv_type_sa_family_t" = xyes; then :
36252
36253 cat >>confdefs.h <<_ACEOF
36254 #define HAVE_SA_FAMILY_T 1
36255 _ACEOF
36256
36257
36258 fi
36259
36260   if test $ac_cv_type_struct_sockaddr_storage = no; then
36261     HAVE_STRUCT_SOCKADDR_STORAGE=0
36262   fi
36263   if test $ac_cv_type_sa_family_t = no; then
36264     HAVE_SA_FAMILY_T=0
36265   fi
36266   if test $ac_cv_type_struct_sockaddr_storage != no; then
36267     ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
36268        #ifdef HAVE_SYS_SOCKET_H
36269        #include <sys/socket.h>
36270        #endif
36271        #ifdef HAVE_WS2TCPIP_H
36272        #include <ws2tcpip.h>
36273        #endif
36274
36275 "
36276 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
36277
36278 cat >>confdefs.h <<_ACEOF
36279 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
36280 _ACEOF
36281
36282
36283 else
36284   HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
36285 fi
36286
36287   fi
36288   if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
36289      || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
36290     SYS_SOCKET_H='sys/socket.h'
36291   fi
36292
36293
36294
36295
36296   :
36297
36298
36299
36300
36301
36302   if test $ac_cv_header_sys_socket_h != yes; then
36303                     for ac_header in winsock2.h
36304 do :
36305   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
36306 if test "x$ac_cv_header_winsock2_h" = xyes; then :
36307   cat >>confdefs.h <<_ACEOF
36308 #define HAVE_WINSOCK2_H 1
36309 _ACEOF
36310
36311 fi
36312
36313 done
36314
36315   fi
36316   if test "$ac_cv_header_winsock2_h" = yes; then
36317     HAVE_WINSOCK2_H=1
36318     UNISTD_H_HAVE_WINSOCK2_H=1
36319     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
36320   else
36321     HAVE_WINSOCK2_H=0
36322   fi
36323
36324
36325
36326
36327     for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
36328     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
36329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
36330 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
36331 if eval \${$as_gl_Symbol+:} false; then :
36332   $as_echo_n "(cached) " >&6
36333 else
36334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36335 /* end confdefs.h.  */
36336
36337 /* Some systems require prerequisite headers.  */
36338 #include <sys/types.h>
36339 #include <sys/socket.h>
36340
36341 int
36342 main ()
36343 {
36344 #undef $gl_func
36345   (void) $gl_func;
36346   ;
36347   return 0;
36348 }
36349 _ACEOF
36350 if ac_fn_c_try_compile "$LINENO"; then :
36351   eval "$as_gl_Symbol=yes"
36352 else
36353   eval "$as_gl_Symbol=no"
36354 fi
36355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36356 fi
36357 eval ac_res=\$$as_gl_Symbol
36358                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36359 $as_echo "$ac_res" >&6; }
36360     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
36361   cat >>confdefs.h <<_ACEOF
36362 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
36363 _ACEOF
36364
36365                      eval ac_cv_have_decl_$gl_func=yes
36366 fi
36367       done
36368
36369
36370
36371
36372
36373
36374
36375
36376
36377
36378
36379
36380
36381
36382
36383
36384   :
36385
36386
36387
36388
36389
36390
36391
36392
36393      if test $gl_cv_have_include_next = yes; then
36394        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
36395      else
36396        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
36397 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
36398 if ${gl_cv_next_sys_stat_h+:} false; then :
36399   $as_echo_n "(cached) " >&6
36400 else
36401
36402              if test $ac_cv_header_sys_stat_h = yes; then
36403
36404
36405                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36406 /* end confdefs.h.  */
36407 #include <sys/stat.h>
36408
36409 _ACEOF
36410                                                                                                                         case "$host_os" in
36411                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
36412                  *)    gl_absname_cpp="$ac_cpp" ;;
36413                esac
36414
36415                case "$host_os" in
36416                  mingw*)
36417                                                                                                                                      gl_dirsep_regex='[/\\]'
36418                    ;;
36419                  *)
36420                    gl_dirsep_regex='\/'
36421                    ;;
36422                esac
36423                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36424
36425                gl_header_literal_regex=`echo 'sys/stat.h' \
36426                                         | sed -e "$gl_make_literal_regex_sed"`
36427                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36428                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36429                    s|^/[^/]|//&|
36430                    p
36431                    q
36432                  }'
36433                                                             gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36434                       sed -n "$gl_absolute_header_sed"`'"'
36435           else
36436                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
36437              fi
36438
36439
36440 fi
36441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
36442 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
36443      fi
36444      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
36445
36446      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36447        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36448        gl_next_as_first_directive='<'sys/stat.h'>'
36449      else
36450        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36451        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
36452      fi
36453      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
36454
36455
36456
36457
36458
36459
36460
36461       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
36462      #include <sys/stat.h>
36463 "
36464 if test "x$ac_cv_type_nlink_t" = xyes; then :
36465
36466 else
36467
36468 $as_echo "#define nlink_t int" >>confdefs.h
36469
36470 fi
36471
36472
36473
36474     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
36475     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
36476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
36477 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
36478 if eval \${$as_gl_Symbol+:} false; then :
36479   $as_echo_n "(cached) " >&6
36480 else
36481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36482 /* end confdefs.h.  */
36483 #include <sys/stat.h>
36484
36485 int
36486 main ()
36487 {
36488 #undef $gl_func
36489   (void) $gl_func;
36490   ;
36491   return 0;
36492 }
36493 _ACEOF
36494 if ac_fn_c_try_compile "$LINENO"; then :
36495   eval "$as_gl_Symbol=yes"
36496 else
36497   eval "$as_gl_Symbol=no"
36498 fi
36499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36500 fi
36501 eval ac_res=\$$as_gl_Symbol
36502                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36503 $as_echo "$ac_res" >&6; }
36504     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
36505   cat >>confdefs.h <<_ACEOF
36506 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
36507 _ACEOF
36508
36509                      eval ac_cv_have_decl_$gl_func=yes
36510 fi
36511       done
36512
36513
36514
36515
36516
36517
36518
36519
36520
36521
36522
36523
36524
36525
36526
36527
36528
36529      if test $gl_cv_have_include_next = yes; then
36530        gl_cv_next_sys_types_h='<'sys/types.h'>'
36531      else
36532        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
36533 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
36534 if ${gl_cv_next_sys_types_h+:} false; then :
36535   $as_echo_n "(cached) " >&6
36536 else
36537
36538                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36539 /* end confdefs.h.  */
36540 #include <sys/types.h>
36541
36542 _ACEOF
36543                                                                                                                         case "$host_os" in
36544                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
36545                  *)    gl_absname_cpp="$ac_cpp" ;;
36546                esac
36547
36548                case "$host_os" in
36549                  mingw*)
36550                                                                                                                                      gl_dirsep_regex='[/\\]'
36551                    ;;
36552                  *)
36553                    gl_dirsep_regex='\/'
36554                    ;;
36555                esac
36556                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36557
36558                gl_header_literal_regex=`echo 'sys/types.h' \
36559                                         | sed -e "$gl_make_literal_regex_sed"`
36560                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36561                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36562                    s|^/[^/]|//&|
36563                    p
36564                    q
36565                  }'
36566                                                             gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36567                       sed -n "$gl_absolute_header_sed"`'"'
36568
36569
36570 fi
36571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
36572 $as_echo "$gl_cv_next_sys_types_h" >&6; }
36573      fi
36574      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
36575
36576      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36577        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36578        gl_next_as_first_directive='<'sys/types.h'>'
36579      else
36580        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36581        gl_next_as_first_directive=$gl_cv_next_sys_types_h
36582      fi
36583      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
36584
36585
36586
36587
36588
36589
36590
36591
36592
36593
36594
36595
36596
36597
36598
36599
36600
36601
36602   :
36603
36604
36605
36606
36607
36608
36609
36610
36611      if test $gl_cv_have_include_next = yes; then
36612        gl_cv_next_sys_uio_h='<'sys/uio.h'>'
36613      else
36614        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
36615 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
36616 if ${gl_cv_next_sys_uio_h+:} false; then :
36617   $as_echo_n "(cached) " >&6
36618 else
36619
36620              if test $ac_cv_header_sys_uio_h = yes; then
36621
36622
36623                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36624 /* end confdefs.h.  */
36625 #include <sys/uio.h>
36626
36627 _ACEOF
36628                                                                                                                         case "$host_os" in
36629                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
36630                  *)    gl_absname_cpp="$ac_cpp" ;;
36631                esac
36632
36633                case "$host_os" in
36634                  mingw*)
36635                                                                                                                                      gl_dirsep_regex='[/\\]'
36636                    ;;
36637                  *)
36638                    gl_dirsep_regex='\/'
36639                    ;;
36640                esac
36641                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36642
36643                gl_header_literal_regex=`echo 'sys/uio.h' \
36644                                         | sed -e "$gl_make_literal_regex_sed"`
36645                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36646                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36647                    s|^/[^/]|//&|
36648                    p
36649                    q
36650                  }'
36651                                                             gl_cv_next_sys_uio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36652                       sed -n "$gl_absolute_header_sed"`'"'
36653           else
36654                gl_cv_next_sys_uio_h='<'sys/uio.h'>'
36655              fi
36656
36657
36658 fi
36659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
36660 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
36661      fi
36662      NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
36663
36664      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36665        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36666        gl_next_as_first_directive='<'sys/uio.h'>'
36667      else
36668        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36669        gl_next_as_first_directive=$gl_cv_next_sys_uio_h
36670      fi
36671      NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
36672
36673
36674
36675
36676   if test $ac_cv_header_sys_uio_h = yes; then
36677     HAVE_SYS_UIO_H=1
36678   else
36679     HAVE_SYS_UIO_H=0
36680   fi
36681
36682
36683
36684
36685
36686
36687
36688
36689
36690
36691
36692
36693
36694
36695
36696
36697
36698
36699
36700
36701
36702
36703
36704   :
36705
36706
36707
36708
36709
36710
36711
36712
36713      if test $gl_cv_have_include_next = yes; then
36714        gl_cv_next_unistd_h='<'unistd.h'>'
36715      else
36716        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
36717 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
36718 if ${gl_cv_next_unistd_h+:} false; then :
36719   $as_echo_n "(cached) " >&6
36720 else
36721
36722              if test $ac_cv_header_unistd_h = yes; then
36723
36724
36725                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36726 /* end confdefs.h.  */
36727 #include <unistd.h>
36728
36729 _ACEOF
36730                                                                                                                         case "$host_os" in
36731                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
36732                  *)    gl_absname_cpp="$ac_cpp" ;;
36733                esac
36734
36735                case "$host_os" in
36736                  mingw*)
36737                                                                                                                                      gl_dirsep_regex='[/\\]'
36738                    ;;
36739                  *)
36740                    gl_dirsep_regex='\/'
36741                    ;;
36742                esac
36743                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36744
36745                gl_header_literal_regex=`echo 'unistd.h' \
36746                                         | sed -e "$gl_make_literal_regex_sed"`
36747                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36748                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36749                    s|^/[^/]|//&|
36750                    p
36751                    q
36752                  }'
36753                                                             gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36754                       sed -n "$gl_absolute_header_sed"`'"'
36755           else
36756                gl_cv_next_unistd_h='<'unistd.h'>'
36757              fi
36758
36759
36760 fi
36761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
36762 $as_echo "$gl_cv_next_unistd_h" >&6; }
36763      fi
36764      NEXT_UNISTD_H=$gl_cv_next_unistd_h
36765
36766      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36767        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36768        gl_next_as_first_directive='<'unistd.h'>'
36769      else
36770        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36771        gl_next_as_first_directive=$gl_cv_next_unistd_h
36772      fi
36773      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
36774
36775
36776
36777
36778   if test $ac_cv_header_unistd_h = yes; then
36779     HAVE_UNISTD_H=1
36780   else
36781     HAVE_UNISTD_H=0
36782   fi
36783
36784
36785
36786
36787
36788     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
36789     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
36790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
36791 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
36792 if eval \${$as_gl_Symbol+:} false; then :
36793   $as_echo_n "(cached) " >&6
36794 else
36795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36796 /* end confdefs.h.  */
36797
36798 #if HAVE_UNISTD_H
36799 # include <unistd.h>
36800 #endif
36801 /* Some systems declare various items in the wrong headers.  */
36802 #if !(defined __GLIBC__ && !defined __UCLIBC__)
36803 # include <fcntl.h>
36804 # include <stdio.h>
36805 # include <stdlib.h>
36806 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
36807 #  include <io.h>
36808 # endif
36809 #endif
36810
36811 int
36812 main ()
36813 {
36814 #undef $gl_func
36815   (void) $gl_func;
36816   ;
36817   return 0;
36818 }
36819 _ACEOF
36820 if ac_fn_c_try_compile "$LINENO"; then :
36821   eval "$as_gl_Symbol=yes"
36822 else
36823   eval "$as_gl_Symbol=no"
36824 fi
36825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36826 fi
36827 eval ac_res=\$$as_gl_Symbol
36828                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36829 $as_echo "$ac_res" >&6; }
36830     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
36831   cat >>confdefs.h <<_ACEOF
36832 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
36833 _ACEOF
36834
36835                      eval ac_cv_have_decl_$gl_func=yes
36836 fi
36837       done
36838
36839
36840
36841   # Check whether --enable-valgrind-tests was given.
36842 if test "${enable_valgrind_tests+set}" = set; then :
36843   enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
36844 else
36845   opt_valgrind_tests=yes
36846 fi
36847
36848
36849   # Run self-tests under valgrind?
36850   if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
36851     for ac_prog in valgrind
36852 do
36853   # Extract the first word of "$ac_prog", so it can be a program name with args.
36854 set dummy $ac_prog; ac_word=$2
36855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36856 $as_echo_n "checking for $ac_word... " >&6; }
36857 if ${ac_cv_prog_VALGRIND+:} false; then :
36858   $as_echo_n "(cached) " >&6
36859 else
36860   if test -n "$VALGRIND"; then
36861   ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
36862 else
36863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36864 for as_dir in $PATH
36865 do
36866   IFS=$as_save_IFS
36867   test -z "$as_dir" && as_dir=.
36868     for ac_exec_ext in '' $ac_executable_extensions; do
36869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36870     ac_cv_prog_VALGRIND="$ac_prog"
36871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36872     break 2
36873   fi
36874 done
36875   done
36876 IFS=$as_save_IFS
36877
36878 fi
36879 fi
36880 VALGRIND=$ac_cv_prog_VALGRIND
36881 if test -n "$VALGRIND"; then
36882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
36883 $as_echo "$VALGRIND" >&6; }
36884 else
36885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36886 $as_echo "no" >&6; }
36887 fi
36888
36889
36890   test -n "$VALGRIND" && break
36891 done
36892
36893   fi
36894
36895   OPTS="-q --error-exitcode=1 --leak-check=full"
36896
36897   if test -n "$VALGRIND" \
36898      && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
36899     opt_valgrind_tests=yes
36900     VALGRIND="$VALGRIND $OPTS"
36901   else
36902     opt_valgrind_tests=no
36903     VALGRIND=
36904   fi
36905
36906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
36907 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
36908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
36909 $as_echo "$opt_valgrind_tests" >&6; }
36910
36911
36912
36913   :
36914
36915
36916
36917
36918
36919   if test $ac_cv_func_vasnprintf = no; then
36920
36921
36922   :
36923
36924
36925
36926
36927
36928
36929
36930
36931
36932
36933
36934
36935
36936   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
36937
36938
36939
36940
36941
36942
36943
36944
36945
36946   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
36947
36948
36949
36950
36951
36952
36953
36954
36955
36956   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
36957
36958
36959
36960
36961
36962
36963
36964
36965
36966   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
36967
36968   if test $ac_cv_func_vasnprintf = yes; then
36969
36970 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
36971
36972   fi
36973
36974
36975
36976
36977
36978
36979
36980
36981
36982
36983
36984   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
36985 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
36986
36987 else
36988
36989 $as_echo "#define ptrdiff_t long" >>confdefs.h
36990
36991
36992 fi
36993
36994
36995
36996
36997
36998
36999
37000   fi
37001
37002
37003 # Check whether --with-packager was given.
37004 if test "${with_packager+set}" = set; then :
37005   withval=$with_packager;       case $withval in
37006         yes|no) ;;
37007         *)
37008 cat >>confdefs.h <<_ACEOF
37009 #define PACKAGE_PACKAGER "$withval"
37010 _ACEOF
37011  ;;
37012       esac
37013
37014 fi
37015
37016
37017
37018 # Check whether --with-packager-version was given.
37019 if test "${with_packager_version+set}" = set; then :
37020   withval=$with_packager_version;       case $withval in
37021         yes|no) ;;
37022         *)
37023 cat >>confdefs.h <<_ACEOF
37024 #define PACKAGE_PACKAGER_VERSION "$withval"
37025 _ACEOF
37026  ;;
37027       esac
37028
37029 fi
37030
37031
37032
37033 # Check whether --with-packager-bug-reports was given.
37034 if test "${with_packager_bug_reports+set}" = set; then :
37035   withval=$with_packager_bug_reports;       case $withval in
37036         yes|no) ;;
37037         *)
37038 cat >>confdefs.h <<_ACEOF
37039 #define PACKAGE_PACKAGER_BUG_REPORTS "$withval"
37040 _ACEOF
37041  ;;
37042       esac
37043
37044 fi
37045
37046
37047   if test "X$with_packager" = "X" && \
37048      test "X$with_packager_version$with_packager_bug_reports" != "X"
37049   then
37050     as_fn_error $? "The --with-packager-{bug-reports,version} options require --with-packager" "$LINENO" 5
37051   fi
37052
37053
37054
37055
37056
37057
37058
37059
37060
37061
37062
37063   :
37064
37065
37066
37067
37068
37069
37070
37071
37072      if test $gl_cv_have_include_next = yes; then
37073        gl_cv_next_wchar_h='<'wchar.h'>'
37074      else
37075        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
37076 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
37077 if ${gl_cv_next_wchar_h+:} false; then :
37078   $as_echo_n "(cached) " >&6
37079 else
37080
37081              if test $ac_cv_header_wchar_h = yes; then
37082
37083
37084                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37085 /* end confdefs.h.  */
37086 #include <wchar.h>
37087
37088 _ACEOF
37089                                                                                                                         case "$host_os" in
37090                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
37091                  *)    gl_absname_cpp="$ac_cpp" ;;
37092                esac
37093
37094                case "$host_os" in
37095                  mingw*)
37096                                                                                                                                      gl_dirsep_regex='[/\\]'
37097                    ;;
37098                  *)
37099                    gl_dirsep_regex='\/'
37100                    ;;
37101                esac
37102                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
37103
37104                gl_header_literal_regex=`echo 'wchar.h' \
37105                                         | sed -e "$gl_make_literal_regex_sed"`
37106                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
37107                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
37108                    s|^/[^/]|//&|
37109                    p
37110                    q
37111                  }'
37112                                                             gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
37113                       sed -n "$gl_absolute_header_sed"`'"'
37114           else
37115                gl_cv_next_wchar_h='<'wchar.h'>'
37116              fi
37117
37118
37119 fi
37120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
37121 $as_echo "$gl_cv_next_wchar_h" >&6; }
37122      fi
37123      NEXT_WCHAR_H=$gl_cv_next_wchar_h
37124
37125      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
37126        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
37127        gl_next_as_first_directive='<'wchar.h'>'
37128      else
37129        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
37130        gl_next_as_first_directive=$gl_cv_next_wchar_h
37131      fi
37132      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
37133
37134
37135
37136
37137   if test $ac_cv_header_wchar_h = yes; then
37138     HAVE_WCHAR_H=1
37139   else
37140     HAVE_WCHAR_H=0
37141   fi
37142
37143
37144
37145
37146
37147   if test $gt_cv_c_wint_t = yes; then
37148     HAVE_WINT_T=1
37149   else
37150     HAVE_WINT_T=0
37151   fi
37152
37153
37154
37155     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
37156     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
37157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
37158 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
37159 if eval \${$as_gl_Symbol+:} false; then :
37160   $as_echo_n "(cached) " >&6
37161 else
37162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37163 /* end confdefs.h.  */
37164
37165 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
37166    <wchar.h>.
37167    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
37168    included before <wchar.h>.  */
37169 #if !(defined __GLIBC__ && !defined __UCLIBC__)
37170 # include <stddef.h>
37171 # include <stdio.h>
37172 # include <time.h>
37173 #endif
37174 #include <wchar.h>
37175
37176 int
37177 main ()
37178 {
37179 #undef $gl_func
37180   (void) $gl_func;
37181   ;
37182   return 0;
37183 }
37184 _ACEOF
37185 if ac_fn_c_try_compile "$LINENO"; then :
37186   eval "$as_gl_Symbol=yes"
37187 else
37188   eval "$as_gl_Symbol=no"
37189 fi
37190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37191 fi
37192 eval ac_res=\$$as_gl_Symbol
37193                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
37194 $as_echo "$ac_res" >&6; }
37195     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
37196   cat >>confdefs.h <<_ACEOF
37197 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
37198 _ACEOF
37199
37200                      eval ac_cv_have_decl_$gl_func=yes
37201 fi
37202       done
37203
37204
37205
37206
37207
37208   for ac_header in stdint.h
37209 do :
37210   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
37211 if test "x$ac_cv_header_stdint_h" = xyes; then :
37212   cat >>confdefs.h <<_ACEOF
37213 #define HAVE_STDINT_H 1
37214 _ACEOF
37215
37216 fi
37217
37218 done
37219
37220
37221   # End of code from modules
37222
37223
37224
37225
37226
37227
37228
37229
37230
37231   gltests_libdeps=
37232   gltests_ltlibdeps=
37233
37234
37235
37236
37237
37238
37239
37240
37241
37242   gl_source_base='gl/tests'
37243   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
37244
37245   gl_module_indicator_condition=$gltests_WITNESS
37246
37247
37248
37249
37250
37251
37252 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
37253
37254
37255   if test $HAVE_DUP2 = 1; then
37256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
37257 $as_echo_n "checking whether dup2 works... " >&6; }
37258 if ${gl_cv_func_dup2_works+:} false; then :
37259   $as_echo_n "(cached) " >&6
37260 else
37261   if test "$cross_compiling" = yes; then :
37262   case "$host_os" in
37263            mingw*) # on this platform, dup2 always returns 0 for success
37264              gl_cv_func_dup2_works=no;;
37265            cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
37266              gl_cv_func_dup2_works=no;;
37267            linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
37268                    # closed fd may yield -EBADF instead of -1 / errno=EBADF.
37269              gl_cv_func_dup2_works=no;;
37270            freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
37271              gl_cv_func_dup2_works=no;;
37272            haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
37273              gl_cv_func_dup2_works=no;;
37274            *) gl_cv_func_dup2_works=yes;;
37275          esac
37276 else
37277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37278 /* end confdefs.h.  */
37279
37280          #include <unistd.h>
37281 #include <fcntl.h>
37282 #include <errno.h>
37283 int
37284 main ()
37285 {
37286 int result = 0;
37287 #ifdef FD_CLOEXEC
37288             if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
37289               result |= 1;
37290 #endif
37291             if (dup2 (1, 1) == 0)
37292               result |= 2;
37293 #ifdef FD_CLOEXEC
37294             if (fcntl (1, F_GETFD) != FD_CLOEXEC)
37295               result |= 4;
37296 #endif
37297             close (0);
37298             if (dup2 (0, 0) != -1)
37299               result |= 8;
37300             /* Many gnulib modules require POSIX conformance of EBADF.  */
37301             if (dup2 (2, 1000000) == -1 && errno != EBADF)
37302               result |= 16;
37303             return result;
37304
37305   ;
37306   return 0;
37307 }
37308
37309 _ACEOF
37310 if ac_fn_c_try_run "$LINENO"; then :
37311   gl_cv_func_dup2_works=yes
37312 else
37313   gl_cv_func_dup2_works=no
37314 fi
37315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37316   conftest.$ac_objext conftest.beam conftest.$ac_ext
37317 fi
37318
37319
37320 fi
37321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
37322 $as_echo "$gl_cv_func_dup2_works" >&6; }
37323     if test "$gl_cv_func_dup2_works" = no; then
37324       REPLACE_DUP2=1
37325     fi
37326   fi
37327
37328
37329 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
37330
37331
37332
37333
37334
37335
37336
37337
37338   gltests_LIBOBJS="$gltests_LIBOBJS dup2.$ac_objext"
37339
37340
37341 fi
37342
37343
37344
37345
37346
37347     if test "$GNULIB_DUP2" != 1; then
37348         if test "$GNULIB_DUP2" = 0; then
37349       GNULIB_DUP2=$gl_module_indicator_condition
37350     else
37351       GNULIB_DUP2="($GNULIB_DUP2 || $gl_module_indicator_condition)"
37352     fi
37353   fi
37354
37355
37356
37357
37358
37359 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
37360
37361
37362
37363
37364
37365
37366
37367
37368
37369
37370
37371
37372
37373
37374      if test $gl_cv_have_include_next = yes; then
37375        gl_cv_next_fcntl_h='<'fcntl.h'>'
37376      else
37377        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
37378 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
37379 if ${gl_cv_next_fcntl_h+:} false; then :
37380   $as_echo_n "(cached) " >&6
37381 else
37382
37383                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37384 /* end confdefs.h.  */
37385 #include <fcntl.h>
37386
37387 _ACEOF
37388                                                                                                                         case "$host_os" in
37389                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
37390                  *)    gl_absname_cpp="$ac_cpp" ;;
37391                esac
37392
37393                case "$host_os" in
37394                  mingw*)
37395                                                                                                                                      gl_dirsep_regex='[/\\]'
37396                    ;;
37397                  *)
37398                    gl_dirsep_regex='\/'
37399                    ;;
37400                esac
37401                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
37402
37403                gl_header_literal_regex=`echo 'fcntl.h' \
37404                                         | sed -e "$gl_make_literal_regex_sed"`
37405                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
37406                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
37407                    s|^/[^/]|//&|
37408                    p
37409                    q
37410                  }'
37411                                                             gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
37412                       sed -n "$gl_absolute_header_sed"`'"'
37413
37414
37415 fi
37416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
37417 $as_echo "$gl_cv_next_fcntl_h" >&6; }
37418      fi
37419      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
37420
37421      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
37422        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
37423        gl_next_as_first_directive='<'fcntl.h'>'
37424      else
37425        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
37426        gl_next_as_first_directive=$gl_cv_next_fcntl_h
37427      fi
37428      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
37429
37430
37431
37432
37433
37434
37435
37436
37437
37438
37439     for gl_func in fcntl openat; do
37440     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
37441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
37442 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
37443 if eval \${$as_gl_Symbol+:} false; then :
37444   $as_echo_n "(cached) " >&6
37445 else
37446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37447 /* end confdefs.h.  */
37448 #include <fcntl.h>
37449
37450 int
37451 main ()
37452 {
37453 #undef $gl_func
37454   (void) $gl_func;
37455   ;
37456   return 0;
37457 }
37458 _ACEOF
37459 if ac_fn_c_try_compile "$LINENO"; then :
37460   eval "$as_gl_Symbol=yes"
37461 else
37462   eval "$as_gl_Symbol=no"
37463 fi
37464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37465 fi
37466 eval ac_res=\$$as_gl_Symbol
37467                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
37468 $as_echo "$ac_res" >&6; }
37469     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
37470   cat >>confdefs.h <<_ACEOF
37471 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
37472 _ACEOF
37473
37474                      eval ac_cv_have_decl_$gl_func=yes
37475 fi
37476       done
37477
37478
37479
37480
37481
37482   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
37483     REPLACE_FDOPEN=1
37484   else
37485         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
37486 $as_echo_n "checking whether fdopen sets errno... " >&6; }
37487 if ${gl_cv_func_fdopen_works+:} false; then :
37488   $as_echo_n "(cached) " >&6
37489 else
37490
37491         if test "$cross_compiling" = yes; then :
37492   case "$host_os" in
37493              mingw*) gl_cv_func_fdopen_works="guessing no" ;;
37494              *)      gl_cv_func_fdopen_works="guessing yes" ;;
37495            esac
37496
37497 else
37498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37499 /* end confdefs.h.  */
37500
37501 #include <stdio.h>
37502 #include <errno.h>
37503 int
37504 main (void)
37505 {
37506   FILE *fp;
37507   errno = 0;
37508   fp = fdopen (-1, "r");
37509   if (fp != NULL)
37510     return 1;
37511   if (errno == 0)
37512     return 2;
37513   return 0;
37514 }
37515 _ACEOF
37516 if ac_fn_c_try_run "$LINENO"; then :
37517   gl_cv_func_fdopen_works=yes
37518 else
37519   gl_cv_func_fdopen_works=no
37520 fi
37521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37522   conftest.$ac_objext conftest.beam conftest.$ac_ext
37523 fi
37524
37525
37526 fi
37527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
37528 $as_echo "$gl_cv_func_fdopen_works" >&6; }
37529     case "$gl_cv_func_fdopen_works" in
37530       *no) REPLACE_FDOPEN=1 ;;
37531     esac
37532   fi
37533
37534 if test $REPLACE_FDOPEN = 1; then
37535
37536
37537
37538
37539
37540
37541
37542
37543   gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext"
37544
37545
37546 fi
37547
37548
37549
37550
37551
37552     if test "$GNULIB_FDOPEN" != 1; then
37553         if test "$GNULIB_FDOPEN" = 0; then
37554       GNULIB_FDOPEN=$gl_module_indicator_condition
37555     else
37556       GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
37557     fi
37558   fi
37559
37560
37561
37562
37563
37564 $as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
37565
37566
37567
37568
37569
37570
37571
37572
37573
37574
37575   :
37576
37577
37578
37579
37580
37581   if test $ac_cv_func_ftruncate = no; then
37582     HAVE_FTRUNCATE=0
37583   fi
37584
37585 if test $HAVE_FTRUNCATE = 0; then
37586
37587
37588
37589
37590
37591
37592
37593
37594   gltests_LIBOBJS="$gltests_LIBOBJS ftruncate.$ac_objext"
37595
37596
37597
37598   for ac_func in chsize
37599 do :
37600   ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize"
37601 if test "x$ac_cv_func_chsize" = xyes; then :
37602   cat >>confdefs.h <<_ACEOF
37603 #define HAVE_CHSIZE 1
37604 _ACEOF
37605
37606 fi
37607 done
37608
37609
37610 fi
37611
37612
37613
37614
37615
37616     if test "$GNULIB_FTRUNCATE" != 1; then
37617         if test "$GNULIB_FTRUNCATE" = 0; then
37618       GNULIB_FTRUNCATE=$gl_module_indicator_condition
37619     else
37620       GNULIB_FTRUNCATE="($GNULIB_FTRUNCATE || $gl_module_indicator_condition)"
37621     fi
37622   fi
37623
37624
37625
37626
37627
37628 $as_echo "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h
37629
37630
37631
37632
37633
37634
37635
37636
37637   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
37638   *yes,yes) ;;
37639   *)
37640         REPLACE_GETCWD=1
37641     ;;
37642   esac
37643
37644 if test $REPLACE_GETCWD = 1; then
37645
37646
37647
37648
37649
37650
37651
37652
37653   gltests_LIBOBJS="$gltests_LIBOBJS getcwd-lgpl.$ac_objext"
37654
37655 fi
37656
37657
37658
37659
37660
37661     if test "$GNULIB_GETCWD" != 1; then
37662         if test "$GNULIB_GETCWD" = 0; then
37663       GNULIB_GETCWD=$gl_module_indicator_condition
37664     else
37665       GNULIB_GETCWD="($GNULIB_GETCWD || $gl_module_indicator_condition)"
37666     fi
37667   fi
37668
37669
37670
37671
37672
37673 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
37674
37675
37676
37677
37678
37679
37680   for ac_func in getpagesize
37681 do :
37682   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
37683 if test "x$ac_cv_func_getpagesize" = xyes; then :
37684   cat >>confdefs.h <<_ACEOF
37685 #define HAVE_GETPAGESIZE 1
37686 _ACEOF
37687
37688 fi
37689 done
37690
37691   if test $ac_cv_func_getpagesize = no; then
37692     HAVE_GETPAGESIZE=0
37693     for ac_header in OS.h
37694 do :
37695   ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
37696 if test "x$ac_cv_header_OS_h" = xyes; then :
37697   cat >>confdefs.h <<_ACEOF
37698 #define HAVE_OS_H 1
37699 _ACEOF
37700
37701 fi
37702
37703 done
37704
37705     if test $ac_cv_header_OS_h = yes; then
37706       HAVE_OS_H=1
37707     fi
37708     for ac_header in sys/param.h
37709 do :
37710   ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
37711 if test "x$ac_cv_header_sys_param_h" = xyes; then :
37712   cat >>confdefs.h <<_ACEOF
37713 #define HAVE_SYS_PARAM_H 1
37714 _ACEOF
37715
37716 fi
37717
37718 done
37719
37720     if test $ac_cv_header_sys_param_h = yes; then
37721       HAVE_SYS_PARAM_H=1
37722     fi
37723   fi
37724   case "$host_os" in
37725     mingw*)
37726       REPLACE_GETPAGESIZE=1
37727       ;;
37728   esac
37729       ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
37730 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
37731
37732 else
37733   HAVE_DECL_GETPAGESIZE=0
37734 fi
37735
37736
37737 if test $REPLACE_GETPAGESIZE = 1; then
37738
37739
37740
37741
37742
37743
37744
37745
37746   gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
37747
37748 fi
37749
37750
37751
37752
37753
37754     if test "$GNULIB_GETPAGESIZE" != 1; then
37755         if test "$GNULIB_GETPAGESIZE" = 0; then
37756       GNULIB_GETPAGESIZE=$gl_module_indicator_condition
37757     else
37758       GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
37759     fi
37760   fi
37761
37762
37763
37764
37765
37766 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
37767
37768
37769
37770
37771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
37772 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
37773 if ${ac_cv_c_bigendian+:} false; then :
37774   $as_echo_n "(cached) " >&6
37775 else
37776   ac_cv_c_bigendian=unknown
37777     # See if we're dealing with a universal compiler.
37778     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37779 /* end confdefs.h.  */
37780 #ifndef __APPLE_CC__
37781                not a universal capable compiler
37782              #endif
37783              typedef int dummy;
37784
37785 _ACEOF
37786 if ac_fn_c_try_compile "$LINENO"; then :
37787
37788         # Check for potential -arch flags.  It is not universal unless
37789         # there are at least two -arch flags with different values.
37790         ac_arch=
37791         ac_prev=
37792         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
37793          if test -n "$ac_prev"; then
37794            case $ac_word in
37795              i?86 | x86_64 | ppc | ppc64)
37796                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
37797                  ac_arch=$ac_word
37798                else
37799                  ac_cv_c_bigendian=universal
37800                  break
37801                fi
37802                ;;
37803            esac
37804            ac_prev=
37805          elif test "x$ac_word" = "x-arch"; then
37806            ac_prev=arch
37807          fi
37808        done
37809 fi
37810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37811     if test $ac_cv_c_bigendian = unknown; then
37812       # See if sys/param.h defines the BYTE_ORDER macro.
37813       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37814 /* end confdefs.h.  */
37815 #include <sys/types.h>
37816              #include <sys/param.h>
37817
37818 int
37819 main ()
37820 {
37821 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
37822                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
37823                      && LITTLE_ENDIAN)
37824               bogus endian macros
37825              #endif
37826
37827   ;
37828   return 0;
37829 }
37830 _ACEOF
37831 if ac_fn_c_try_compile "$LINENO"; then :
37832   # It does; now see whether it defined to BIG_ENDIAN or not.
37833          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37834 /* end confdefs.h.  */
37835 #include <sys/types.h>
37836                 #include <sys/param.h>
37837
37838 int
37839 main ()
37840 {
37841 #if BYTE_ORDER != BIG_ENDIAN
37842                  not big endian
37843                 #endif
37844
37845   ;
37846   return 0;
37847 }
37848 _ACEOF
37849 if ac_fn_c_try_compile "$LINENO"; then :
37850   ac_cv_c_bigendian=yes
37851 else
37852   ac_cv_c_bigendian=no
37853 fi
37854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37855 fi
37856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37857     fi
37858     if test $ac_cv_c_bigendian = unknown; then
37859       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
37860       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37861 /* end confdefs.h.  */
37862 #include <limits.h>
37863
37864 int
37865 main ()
37866 {
37867 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
37868               bogus endian macros
37869              #endif
37870
37871   ;
37872   return 0;
37873 }
37874 _ACEOF
37875 if ac_fn_c_try_compile "$LINENO"; then :
37876   # It does; now see whether it defined to _BIG_ENDIAN or not.
37877          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37878 /* end confdefs.h.  */
37879 #include <limits.h>
37880
37881 int
37882 main ()
37883 {
37884 #ifndef _BIG_ENDIAN
37885                  not big endian
37886                 #endif
37887
37888   ;
37889   return 0;
37890 }
37891 _ACEOF
37892 if ac_fn_c_try_compile "$LINENO"; then :
37893   ac_cv_c_bigendian=yes
37894 else
37895   ac_cv_c_bigendian=no
37896 fi
37897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37898 fi
37899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37900     fi
37901     if test $ac_cv_c_bigendian = unknown; then
37902       # Compile a test program.
37903       if test "$cross_compiling" = yes; then :
37904   # Try to guess by grepping values from an object file.
37905          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37906 /* end confdefs.h.  */
37907 short int ascii_mm[] =
37908                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
37909                 short int ascii_ii[] =
37910                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
37911                 int use_ascii (int i) {
37912                   return ascii_mm[i] + ascii_ii[i];
37913                 }
37914                 short int ebcdic_ii[] =
37915                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
37916                 short int ebcdic_mm[] =
37917                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
37918                 int use_ebcdic (int i) {
37919                   return ebcdic_mm[i] + ebcdic_ii[i];
37920                 }
37921                 extern int foo;
37922
37923 int
37924 main ()
37925 {
37926 return use_ascii (foo) == use_ebcdic (foo);
37927   ;
37928   return 0;
37929 }
37930 _ACEOF
37931 if ac_fn_c_try_compile "$LINENO"; then :
37932   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
37933               ac_cv_c_bigendian=yes
37934             fi
37935             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
37936               if test "$ac_cv_c_bigendian" = unknown; then
37937                 ac_cv_c_bigendian=no
37938               else
37939                 # finding both strings is unlikely to happen, but who knows?
37940                 ac_cv_c_bigendian=unknown
37941               fi
37942             fi
37943 fi
37944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37945 else
37946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37947 /* end confdefs.h.  */
37948 $ac_includes_default
37949 int
37950 main ()
37951 {
37952
37953              /* Are we little or big endian?  From Harbison&Steele.  */
37954              union
37955              {
37956                long int l;
37957                char c[sizeof (long int)];
37958              } u;
37959              u.l = 1;
37960              return u.c[sizeof (long int) - 1] == 1;
37961
37962   ;
37963   return 0;
37964 }
37965 _ACEOF
37966 if ac_fn_c_try_run "$LINENO"; then :
37967   ac_cv_c_bigendian=no
37968 else
37969   ac_cv_c_bigendian=yes
37970 fi
37971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37972   conftest.$ac_objext conftest.beam conftest.$ac_ext
37973 fi
37974
37975     fi
37976 fi
37977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
37978 $as_echo "$ac_cv_c_bigendian" >&6; }
37979  case $ac_cv_c_bigendian in #(
37980    yes)
37981      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
37982 ;; #(
37983    no)
37984       ;; #(
37985    universal)
37986
37987 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
37988
37989      ;; #(
37990    *)
37991      as_fn_error $? "unknown endianness
37992  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
37993  esac
37994
37995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
37996 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
37997 if ${ac_cv_c_bigendian+:} false; then :
37998   $as_echo_n "(cached) " >&6
37999 else
38000   ac_cv_c_bigendian=unknown
38001     # See if we're dealing with a universal compiler.
38002     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38003 /* end confdefs.h.  */
38004 #ifndef __APPLE_CC__
38005                not a universal capable compiler
38006              #endif
38007              typedef int dummy;
38008
38009 _ACEOF
38010 if ac_fn_c_try_compile "$LINENO"; then :
38011
38012         # Check for potential -arch flags.  It is not universal unless
38013         # there are at least two -arch flags with different values.
38014         ac_arch=
38015         ac_prev=
38016         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
38017          if test -n "$ac_prev"; then
38018            case $ac_word in
38019              i?86 | x86_64 | ppc | ppc64)
38020                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
38021                  ac_arch=$ac_word
38022                else
38023                  ac_cv_c_bigendian=universal
38024                  break
38025                fi
38026                ;;
38027            esac
38028            ac_prev=
38029          elif test "x$ac_word" = "x-arch"; then
38030            ac_prev=arch
38031          fi
38032        done
38033 fi
38034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38035     if test $ac_cv_c_bigendian = unknown; then
38036       # See if sys/param.h defines the BYTE_ORDER macro.
38037       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38038 /* end confdefs.h.  */
38039 #include <sys/types.h>
38040              #include <sys/param.h>
38041
38042 int
38043 main ()
38044 {
38045 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
38046                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
38047                      && LITTLE_ENDIAN)
38048               bogus endian macros
38049              #endif
38050
38051   ;
38052   return 0;
38053 }
38054 _ACEOF
38055 if ac_fn_c_try_compile "$LINENO"; then :
38056   # It does; now see whether it defined to BIG_ENDIAN or not.
38057          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38058 /* end confdefs.h.  */
38059 #include <sys/types.h>
38060                 #include <sys/param.h>
38061
38062 int
38063 main ()
38064 {
38065 #if BYTE_ORDER != BIG_ENDIAN
38066                  not big endian
38067                 #endif
38068
38069   ;
38070   return 0;
38071 }
38072 _ACEOF
38073 if ac_fn_c_try_compile "$LINENO"; then :
38074   ac_cv_c_bigendian=yes
38075 else
38076   ac_cv_c_bigendian=no
38077 fi
38078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38079 fi
38080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38081     fi
38082     if test $ac_cv_c_bigendian = unknown; then
38083       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
38084       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38085 /* end confdefs.h.  */
38086 #include <limits.h>
38087
38088 int
38089 main ()
38090 {
38091 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
38092               bogus endian macros
38093              #endif
38094
38095   ;
38096   return 0;
38097 }
38098 _ACEOF
38099 if ac_fn_c_try_compile "$LINENO"; then :
38100   # It does; now see whether it defined to _BIG_ENDIAN or not.
38101          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38102 /* end confdefs.h.  */
38103 #include <limits.h>
38104
38105 int
38106 main ()
38107 {
38108 #ifndef _BIG_ENDIAN
38109                  not big endian
38110                 #endif
38111
38112   ;
38113   return 0;
38114 }
38115 _ACEOF
38116 if ac_fn_c_try_compile "$LINENO"; then :
38117   ac_cv_c_bigendian=yes
38118 else
38119   ac_cv_c_bigendian=no
38120 fi
38121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38122 fi
38123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38124     fi
38125     if test $ac_cv_c_bigendian = unknown; then
38126       # Compile a test program.
38127       if test "$cross_compiling" = yes; then :
38128   # Try to guess by grepping values from an object file.
38129          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38130 /* end confdefs.h.  */
38131 short int ascii_mm[] =
38132                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
38133                 short int ascii_ii[] =
38134                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
38135                 int use_ascii (int i) {
38136                   return ascii_mm[i] + ascii_ii[i];
38137                 }
38138                 short int ebcdic_ii[] =
38139                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
38140                 short int ebcdic_mm[] =
38141                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
38142                 int use_ebcdic (int i) {
38143                   return ebcdic_mm[i] + ebcdic_ii[i];
38144                 }
38145                 extern int foo;
38146
38147 int
38148 main ()
38149 {
38150 return use_ascii (foo) == use_ebcdic (foo);
38151   ;
38152   return 0;
38153 }
38154 _ACEOF
38155 if ac_fn_c_try_compile "$LINENO"; then :
38156   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
38157               ac_cv_c_bigendian=yes
38158             fi
38159             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
38160               if test "$ac_cv_c_bigendian" = unknown; then
38161                 ac_cv_c_bigendian=no
38162               else
38163                 # finding both strings is unlikely to happen, but who knows?
38164                 ac_cv_c_bigendian=unknown
38165               fi
38166             fi
38167 fi
38168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38169 else
38170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38171 /* end confdefs.h.  */
38172 $ac_includes_default
38173 int
38174 main ()
38175 {
38176
38177              /* Are we little or big endian?  From Harbison&Steele.  */
38178              union
38179              {
38180                long int l;
38181                char c[sizeof (long int)];
38182              } u;
38183              u.l = 1;
38184              return u.c[sizeof (long int) - 1] == 1;
38185
38186   ;
38187   return 0;
38188 }
38189 _ACEOF
38190 if ac_fn_c_try_run "$LINENO"; then :
38191   ac_cv_c_bigendian=no
38192 else
38193   ac_cv_c_bigendian=yes
38194 fi
38195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38196   conftest.$ac_objext conftest.beam conftest.$ac_ext
38197 fi
38198
38199     fi
38200 fi
38201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
38202 $as_echo "$ac_cv_c_bigendian" >&6; }
38203  case $ac_cv_c_bigendian in #(
38204    yes)
38205      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
38206 ;; #(
38207    no)
38208       ;; #(
38209    universal)
38210
38211 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
38212
38213      ;; #(
38214    *)
38215      as_fn_error $? "unknown endianness
38216  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
38217  esac
38218
38219
38220
38221
38222
38223
38224   PRIPTR_PREFIX=
38225   if test -n "$STDINT_H"; then
38226         PRIPTR_PREFIX='"l"'
38227   else
38228         for glpfx in '' l ll I64; do
38229       case $glpfx in
38230         '')  gltype1='int';;
38231         l)   gltype1='long int';;
38232         ll)  gltype1='long long int';;
38233         I64) gltype1='__int64';;
38234       esac
38235       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38236 /* end confdefs.h.  */
38237 #include <stdint.h>
38238            extern intptr_t foo;
38239            extern $gltype1 foo;
38240 int
38241 main ()
38242 {
38243
38244   ;
38245   return 0;
38246 }
38247 _ACEOF
38248 if ac_fn_c_try_compile "$LINENO"; then :
38249   PRIPTR_PREFIX='"'$glpfx'"'
38250 fi
38251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38252       test -n "$PRIPTR_PREFIX" && break
38253     done
38254   fi
38255
38256
38257
38258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
38259 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
38260 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
38261   $as_echo_n "(cached) " >&6
38262 else
38263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38264 /* end confdefs.h.  */
38265 /* Work also in C++ mode.  */
38266             #define __STDC_LIMIT_MACROS 1
38267
38268             /* Work if build is not clean.  */
38269             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
38270
38271             #include <limits.h>
38272             #if HAVE_STDINT_H
38273              #include <stdint.h>
38274             #endif
38275
38276             #if defined INT32_MAX && defined INTMAX_MAX
38277              #define CONDITION (INT32_MAX < INTMAX_MAX)
38278             #elif HAVE_LONG_LONG_INT
38279              #define CONDITION (sizeof (int) < sizeof (long long int))
38280             #else
38281              #define CONDITION 0
38282             #endif
38283             int test[CONDITION ? 1 : -1];
38284 int
38285 main ()
38286 {
38287
38288   ;
38289   return 0;
38290 }
38291 _ACEOF
38292 if ac_fn_c_try_compile "$LINENO"; then :
38293   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
38294 else
38295   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
38296 fi
38297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38298 fi
38299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
38300 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
38301   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
38302     INT32_MAX_LT_INTMAX_MAX=1;
38303   else
38304     INT32_MAX_LT_INTMAX_MAX=0;
38305   fi
38306
38307
38308   if test $APPLE_UNIVERSAL_BUILD = 0; then
38309
38310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
38311 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
38312 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
38313   $as_echo_n "(cached) " >&6
38314 else
38315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38316 /* end confdefs.h.  */
38317 /* Work also in C++ mode.  */
38318             #define __STDC_LIMIT_MACROS 1
38319
38320             /* Work if build is not clean.  */
38321             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
38322
38323             #include <limits.h>
38324             #if HAVE_STDINT_H
38325              #include <stdint.h>
38326             #endif
38327
38328             #if defined INT64_MAX
38329              #define CONDITION (INT64_MAX == LONG_MAX)
38330             #elif HAVE_LONG_LONG_INT
38331              #define CONDITION (sizeof (long long int) == sizeof (long int))
38332             #else
38333              #define CONDITION 0
38334             #endif
38335             int test[CONDITION ? 1 : -1];
38336 int
38337 main ()
38338 {
38339
38340   ;
38341   return 0;
38342 }
38343 _ACEOF
38344 if ac_fn_c_try_compile "$LINENO"; then :
38345   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
38346 else
38347   gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
38348 fi
38349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38350 fi
38351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
38352 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
38353   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
38354     INT64_MAX_EQ_LONG_MAX=1;
38355   else
38356     INT64_MAX_EQ_LONG_MAX=0;
38357   fi
38358
38359
38360   else
38361     INT64_MAX_EQ_LONG_MAX=-1
38362   fi
38363
38364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
38365 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
38366 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
38367   $as_echo_n "(cached) " >&6
38368 else
38369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38370 /* end confdefs.h.  */
38371 /* Work also in C++ mode.  */
38372             #define __STDC_LIMIT_MACROS 1
38373
38374             /* Work if build is not clean.  */
38375             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
38376
38377             #include <limits.h>
38378             #if HAVE_STDINT_H
38379              #include <stdint.h>
38380             #endif
38381
38382             #if defined UINT32_MAX && defined UINTMAX_MAX
38383              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
38384             #elif HAVE_LONG_LONG_INT
38385              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
38386             #else
38387              #define CONDITION 0
38388             #endif
38389             int test[CONDITION ? 1 : -1];
38390 int
38391 main ()
38392 {
38393
38394   ;
38395   return 0;
38396 }
38397 _ACEOF
38398 if ac_fn_c_try_compile "$LINENO"; then :
38399   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
38400 else
38401   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
38402 fi
38403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38404 fi
38405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
38406 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
38407   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
38408     UINT32_MAX_LT_UINTMAX_MAX=1;
38409   else
38410     UINT32_MAX_LT_UINTMAX_MAX=0;
38411   fi
38412
38413
38414   if test $APPLE_UNIVERSAL_BUILD = 0; then
38415
38416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
38417 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
38418 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
38419   $as_echo_n "(cached) " >&6
38420 else
38421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38422 /* end confdefs.h.  */
38423 /* Work also in C++ mode.  */
38424             #define __STDC_LIMIT_MACROS 1
38425
38426             /* Work if build is not clean.  */
38427             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
38428
38429             #include <limits.h>
38430             #if HAVE_STDINT_H
38431              #include <stdint.h>
38432             #endif
38433
38434             #if defined UINT64_MAX
38435              #define CONDITION (UINT64_MAX == ULONG_MAX)
38436             #elif HAVE_LONG_LONG_INT
38437              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
38438             #else
38439              #define CONDITION 0
38440             #endif
38441             int test[CONDITION ? 1 : -1];
38442 int
38443 main ()
38444 {
38445
38446   ;
38447   return 0;
38448 }
38449 _ACEOF
38450 if ac_fn_c_try_compile "$LINENO"; then :
38451   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
38452 else
38453   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
38454 fi
38455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38456 fi
38457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
38458 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
38459   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
38460     UINT64_MAX_EQ_ULONG_MAX=1;
38461   else
38462     UINT64_MAX_EQ_ULONG_MAX=0;
38463   fi
38464
38465
38466   else
38467     UINT64_MAX_EQ_ULONG_MAX=-1
38468   fi
38469
38470
38471
38472
38473
38474
38475   HAVE_IOCTL=1
38476   if test "$ac_cv_header_winsock2_h" = yes; then
38477                 HAVE_IOCTL=0
38478   else
38479     for ac_func in ioctl
38480 do :
38481   ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
38482 if test "x$ac_cv_func_ioctl" = xyes; then :
38483   cat >>confdefs.h <<_ACEOF
38484 #define HAVE_IOCTL 1
38485 _ACEOF
38486
38487 fi
38488 done
38489
38490                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl with POSIX signature" >&5
38491 $as_echo_n "checking for ioctl with POSIX signature... " >&6; }
38492 if ${gl_cv_func_ioctl_posix_signature+:} false; then :
38493   $as_echo_n "(cached) " >&6
38494 else
38495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38496 /* end confdefs.h.  */
38497 #include <sys/ioctl.h>
38498 int
38499 main ()
38500 {
38501 extern
38502               #ifdef __cplusplus
38503               "C"
38504               #endif
38505               int ioctl (int, int, ...);
38506
38507   ;
38508   return 0;
38509 }
38510
38511 _ACEOF
38512 if ac_fn_c_try_compile "$LINENO"; then :
38513   gl_cv_func_ioctl_posix_signature=yes
38514 else
38515   gl_cv_func_ioctl_posix_signature=no
38516 fi
38517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38518
38519 fi
38520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ioctl_posix_signature" >&5
38521 $as_echo "$gl_cv_func_ioctl_posix_signature" >&6; }
38522     if test $gl_cv_func_ioctl_posix_signature != yes; then
38523       REPLACE_IOCTL=1
38524     fi
38525   fi
38526
38527 if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then
38528
38529
38530
38531
38532
38533
38534
38535
38536   gltests_LIBOBJS="$gltests_LIBOBJS ioctl.$ac_objext"
38537
38538 fi
38539
38540
38541
38542
38543
38544     if test "$GNULIB_IOCTL" != 1; then
38545         if test "$GNULIB_IOCTL" = 0; then
38546       GNULIB_IOCTL=$gl_module_indicator_condition
38547     else
38548       GNULIB_IOCTL="($GNULIB_IOCTL || $gl_module_indicator_condition)"
38549     fi
38550   fi
38551
38552
38553
38554
38555
38556 $as_echo "#define GNULIB_TEST_IOCTL 1" >>confdefs.h
38557
38558
38559
38560
38561
38562
38563   :
38564
38565
38566
38567
38568
38569   if test $ac_cv_func_lstat = yes; then
38570
38571     if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
38572       REPLACE_LSTAT=1
38573     fi
38574   else
38575     HAVE_LSTAT=0
38576   fi
38577
38578 if test $REPLACE_LSTAT = 1; then
38579
38580
38581
38582
38583
38584
38585
38586
38587   gltests_LIBOBJS="$gltests_LIBOBJS lstat.$ac_objext"
38588
38589
38590
38591   :
38592
38593 fi
38594
38595
38596
38597
38598
38599     if test "$GNULIB_LSTAT" != 1; then
38600         if test "$GNULIB_LSTAT" = 0; then
38601       GNULIB_LSTAT=$gl_module_indicator_condition
38602     else
38603       GNULIB_LSTAT="($GNULIB_LSTAT || $gl_module_indicator_condition)"
38604     fi
38605   fi
38606
38607
38608
38609
38610
38611 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
38612
38613
38614
38615
38616
38617
38618   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
38619   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
38620   # irrelevant for anonymous mappings.
38621   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
38622 if test "x$ac_cv_func_mmap" = xyes; then :
38623   gl_have_mmap=yes
38624 else
38625   gl_have_mmap=no
38626 fi
38627
38628
38629   # Try to allow MAP_ANONYMOUS.
38630   gl_have_mmap_anonymous=no
38631   if test $gl_have_mmap = yes; then
38632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
38633 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
38634     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38635 /* end confdefs.h.  */
38636
38637 #include <sys/mman.h>
38638 #ifdef MAP_ANONYMOUS
38639     I cant identify this map
38640 #endif
38641
38642 _ACEOF
38643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38644   $EGREP "I cant identify this map" >/dev/null 2>&1; then :
38645   gl_have_mmap_anonymous=yes
38646 fi
38647 rm -f conftest*
38648
38649     if test $gl_have_mmap_anonymous != yes; then
38650       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38651 /* end confdefs.h.  */
38652
38653 #include <sys/mman.h>
38654 #ifdef MAP_ANON
38655     I cant identify this map
38656 #endif
38657
38658 _ACEOF
38659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38660   $EGREP "I cant identify this map" >/dev/null 2>&1; then :
38661
38662 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
38663
38664          gl_have_mmap_anonymous=yes
38665 fi
38666 rm -f conftest*
38667
38668     fi
38669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
38670 $as_echo "$gl_have_mmap_anonymous" >&6; }
38671     if test $gl_have_mmap_anonymous = yes; then
38672
38673 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
38674
38675     fi
38676   fi
38677
38678
38679   :
38680
38681
38682
38683
38684
38685
38686   :
38687
38688
38689
38690
38691
38692
38693
38694   case "$host_os" in
38695     mingw* | pw*)
38696       REPLACE_OPEN=1
38697       ;;
38698     *)
38699
38700   :
38701
38702
38703
38704
38705
38706       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
38707 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
38708 if ${gl_cv_func_open_slash+:} false; then :
38709   $as_echo_n "(cached) " >&6
38710 else
38711   # Assume that if we have lstat, we can also check symlinks.
38712           if test $ac_cv_func_lstat = yes; then
38713             touch conftest.tmp
38714             ln -s conftest.tmp conftest.lnk
38715           fi
38716           if test "$cross_compiling" = yes; then :
38717
38718              case "$host_os" in
38719                freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
38720                  gl_cv_func_open_slash="guessing no" ;;
38721                *)
38722                  gl_cv_func_open_slash="guessing yes" ;;
38723              esac
38724
38725 else
38726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38727 /* end confdefs.h.  */
38728
38729 #include <fcntl.h>
38730 #if HAVE_UNISTD_H
38731 # include <unistd.h>
38732 #endif
38733 int main ()
38734 {
38735   int result = 0;
38736 #if HAVE_LSTAT
38737   if (open ("conftest.lnk/", O_RDONLY) != -1)
38738     result |= 1;
38739 #endif
38740   if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
38741     result |= 2;
38742   return result;
38743 }
38744 _ACEOF
38745 if ac_fn_c_try_run "$LINENO"; then :
38746   gl_cv_func_open_slash=yes
38747 else
38748   gl_cv_func_open_slash=no
38749 fi
38750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38751   conftest.$ac_objext conftest.beam conftest.$ac_ext
38752 fi
38753
38754           rm -f conftest.sl conftest.tmp conftest.lnk
38755
38756 fi
38757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
38758 $as_echo "$gl_cv_func_open_slash" >&6; }
38759       case "$gl_cv_func_open_slash" in
38760         *no)
38761
38762 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
38763
38764           REPLACE_OPEN=1
38765           ;;
38766       esac
38767       ;;
38768   esac
38769
38770
38771
38772 if test $REPLACE_OPEN = 1; then
38773
38774
38775
38776
38777
38778
38779
38780
38781   gltests_LIBOBJS="$gltests_LIBOBJS open.$ac_objext"
38782
38783
38784
38785
38786   :
38787
38788 fi
38789
38790
38791
38792
38793
38794     if test "$GNULIB_OPEN" != 1; then
38795         if test "$GNULIB_OPEN" = 0; then
38796       GNULIB_OPEN=$gl_module_indicator_condition
38797     else
38798       GNULIB_OPEN="($GNULIB_OPEN || $gl_module_indicator_condition)"
38799     fi
38800   fi
38801
38802
38803
38804
38805
38806 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
38807
38808
38809
38810
38811
38812   :
38813
38814
38815
38816
38817
38818
38819
38820
38821
38822
38823   :
38824
38825
38826
38827
38828
38829   if test $ac_cv_func_pipe != yes; then
38830     HAVE_PIPE=0
38831   fi
38832
38833 if test $HAVE_PIPE = 0; then
38834
38835
38836
38837
38838
38839
38840
38841
38842   gltests_LIBOBJS="$gltests_LIBOBJS pipe.$ac_objext"
38843
38844 fi
38845
38846
38847
38848
38849
38850     if test "$GNULIB_PIPE" != 1; then
38851         if test "$GNULIB_PIPE" = 0; then
38852       GNULIB_PIPE=$gl_module_indicator_condition
38853     else
38854       GNULIB_PIPE="($GNULIB_PIPE || $gl_module_indicator_condition)"
38855     fi
38856   fi
38857
38858
38859
38860
38861
38862 $as_echo "#define GNULIB_TEST_PIPE 1" >>confdefs.h
38863
38864
38865
38866
38867   :
38868
38869
38870
38871
38872
38873
38874
38875
38876   :
38877
38878
38879
38880
38881
38882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
38883 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
38884 if ${gl_cv_func_stat_dir_slash+:} false; then :
38885   $as_echo_n "(cached) " >&6
38886 else
38887   if test "$cross_compiling" = yes; then :
38888   case $host_os in
38889             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
38890             *) gl_cv_func_stat_dir_slash="guessing yes";;
38891           esac
38892 else
38893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38894 /* end confdefs.h.  */
38895 #include <sys/stat.h>
38896
38897 int
38898 main ()
38899 {
38900 struct stat st; return stat (".", &st) != stat ("./", &st);
38901   ;
38902   return 0;
38903 }
38904 _ACEOF
38905 if ac_fn_c_try_run "$LINENO"; then :
38906   gl_cv_func_stat_dir_slash=yes
38907 else
38908   gl_cv_func_stat_dir_slash=no
38909 fi
38910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38911   conftest.$ac_objext conftest.beam conftest.$ac_ext
38912 fi
38913
38914 fi
38915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
38916 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
38917       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
38918 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
38919 if ${gl_cv_func_stat_file_slash+:} false; then :
38920   $as_echo_n "(cached) " >&6
38921 else
38922   touch conftest.tmp
38923        # Assume that if we have lstat, we can also check symlinks.
38924        if test $ac_cv_func_lstat = yes; then
38925          ln -s conftest.tmp conftest.lnk
38926        fi
38927        if test "$cross_compiling" = yes; then :
38928   gl_cv_func_stat_file_slash="guessing no"
38929 else
38930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38931 /* end confdefs.h.  */
38932 #include <sys/stat.h>
38933
38934 int
38935 main ()
38936 {
38937 int result = 0;
38938       struct stat st;
38939       if (!stat ("conftest.tmp/", &st))
38940         result |= 1;
38941 #if HAVE_LSTAT
38942       if (!stat ("conftest.lnk/", &st))
38943         result |= 2;
38944 #endif
38945       return result;
38946
38947   ;
38948   return 0;
38949 }
38950 _ACEOF
38951 if ac_fn_c_try_run "$LINENO"; then :
38952   gl_cv_func_stat_file_slash=yes
38953 else
38954   gl_cv_func_stat_file_slash=no
38955 fi
38956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38957   conftest.$ac_objext conftest.beam conftest.$ac_ext
38958 fi
38959
38960        rm -f conftest.tmp conftest.lnk
38961 fi
38962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
38963 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
38964   case $gl_cv_func_stat_dir_slash in
38965     *no) REPLACE_STAT=1
38966
38967 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
38968 ;;
38969   esac
38970   case $gl_cv_func_stat_file_slash in
38971     *no) REPLACE_STAT=1
38972
38973 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
38974 ;;
38975   esac
38976
38977 if test $REPLACE_STAT = 1; then
38978
38979
38980
38981
38982
38983
38984
38985
38986   gltests_LIBOBJS="$gltests_LIBOBJS stat.$ac_objext"
38987
38988
38989
38990   :
38991
38992 fi
38993
38994
38995
38996
38997
38998     if test "$GNULIB_STAT" != 1; then
38999         if test "$GNULIB_STAT" = 0; then
39000       GNULIB_STAT=$gl_module_indicator_condition
39001     else
39002       GNULIB_STAT="($GNULIB_STAT || $gl_module_indicator_condition)"
39003     fi
39004   fi
39005
39006
39007
39008
39009
39010 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
39011
39012
39013
39014
39015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
39016 $as_echo_n "checking for wchar_t... " >&6; }
39017 if ${gt_cv_c_wchar_t+:} false; then :
39018   $as_echo_n "(cached) " >&6
39019 else
39020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39021 /* end confdefs.h.  */
39022 #include <stddef.h>
39023             wchar_t foo = (wchar_t)'\0';
39024 int
39025 main ()
39026 {
39027
39028   ;
39029   return 0;
39030 }
39031 _ACEOF
39032 if ac_fn_c_try_compile "$LINENO"; then :
39033   gt_cv_c_wchar_t=yes
39034 else
39035   gt_cv_c_wchar_t=no
39036 fi
39037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39038 fi
39039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
39040 $as_echo "$gt_cv_c_wchar_t" >&6; }
39041   if test $gt_cv_c_wchar_t = yes; then
39042
39043 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
39044
39045   fi
39046
39047
39048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
39049 $as_echo_n "checking for wint_t... " >&6; }
39050 if ${gt_cv_c_wint_t+:} false; then :
39051   $as_echo_n "(cached) " >&6
39052 else
39053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39054 /* end confdefs.h.  */
39055
39056 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
39057    <wchar.h>.
39058    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
39059    before <wchar.h>.  */
39060 #include <stddef.h>
39061 #include <stdio.h>
39062 #include <time.h>
39063 #include <wchar.h>
39064             wint_t foo = (wchar_t)'\0';
39065 int
39066 main ()
39067 {
39068
39069   ;
39070   return 0;
39071 }
39072 _ACEOF
39073 if ac_fn_c_try_compile "$LINENO"; then :
39074   gt_cv_c_wint_t=yes
39075 else
39076   gt_cv_c_wint_t=no
39077 fi
39078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39079 fi
39080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
39081 $as_echo "$gt_cv_c_wint_t" >&6; }
39082   if test $gt_cv_c_wint_t = yes; then
39083
39084 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
39085
39086   fi
39087
39088
39089
39090
39091   :
39092
39093
39094
39095
39096
39097         if test $ac_cv_func_symlink = no; then
39098     HAVE_SYMLINK=0
39099   else
39100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
39101 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
39102 if ${gl_cv_func_symlink_works+:} false; then :
39103   $as_echo_n "(cached) " >&6
39104 else
39105   if test "$cross_compiling" = yes; then :
39106   gl_cv_func_symlink_works="guessing no"
39107 else
39108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39109 /* end confdefs.h.  */
39110 #include <unistd.h>
39111
39112 int
39113 main ()
39114 {
39115 int result = 0;
39116              if (!symlink ("a", "conftest.link/"))
39117                result |= 1;
39118              if (symlink ("conftest.f", "conftest.lnk2"))
39119                result |= 2;
39120              else if (!symlink ("a", "conftest.lnk2/"))
39121                result |= 4;
39122              return result;
39123
39124   ;
39125   return 0;
39126 }
39127 _ACEOF
39128 if ac_fn_c_try_run "$LINENO"; then :
39129   gl_cv_func_symlink_works=yes
39130 else
39131   gl_cv_func_symlink_works=no
39132 fi
39133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39134   conftest.$ac_objext conftest.beam conftest.$ac_ext
39135 fi
39136
39137       rm -f conftest.f conftest.link conftest.lnk2
39138 fi
39139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
39140 $as_echo "$gl_cv_func_symlink_works" >&6; }
39141     if test "$gl_cv_func_symlink_works" != yes; then
39142       REPLACE_SYMLINK=1
39143     fi
39144   fi
39145
39146 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
39147
39148
39149
39150
39151
39152
39153
39154
39155   gltests_LIBOBJS="$gltests_LIBOBJS symlink.$ac_objext"
39156
39157 fi
39158
39159
39160
39161
39162
39163     if test "$GNULIB_SYMLINK" != 1; then
39164         if test "$GNULIB_SYMLINK" = 0; then
39165       GNULIB_SYMLINK=$gl_module_indicator_condition
39166     else
39167       GNULIB_SYMLINK="($GNULIB_SYMLINK || $gl_module_indicator_condition)"
39168     fi
39169   fi
39170
39171
39172
39173
39174
39175 $as_echo "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h
39176
39177
39178
39179
39180
39181
39182
39183   :
39184
39185
39186
39187
39188
39189   if test $ac_cv_header_sys_ioctl_h = yes; then
39190     HAVE_SYS_IOCTL_H=1
39191             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/ioctl.h> declares ioctl" >&5
39192 $as_echo_n "checking whether <sys/ioctl.h> declares ioctl... " >&6; }
39193 if ${gl_cv_decl_ioctl_in_sys_ioctl_h+:} false; then :
39194   $as_echo_n "(cached) " >&6
39195 else
39196          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39197 /* end confdefs.h.  */
39198 #include <sys/ioctl.h>
39199
39200 int
39201 main ()
39202 {
39203 (void) ioctl;
39204   ;
39205   return 0;
39206 }
39207 _ACEOF
39208 if ac_fn_c_try_compile "$LINENO"; then :
39209   gl_cv_decl_ioctl_in_sys_ioctl_h=yes
39210 else
39211   gl_cv_decl_ioctl_in_sys_ioctl_h=no
39212 fi
39213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39214
39215 fi
39216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_ioctl_in_sys_ioctl_h" >&5
39217 $as_echo "$gl_cv_decl_ioctl_in_sys_ioctl_h" >&6; }
39218   else
39219     HAVE_SYS_IOCTL_H=0
39220   fi
39221
39222
39223
39224
39225
39226
39227
39228   :
39229
39230
39231
39232
39233
39234
39235
39236
39237      if test $gl_cv_have_include_next = yes; then
39238        gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
39239      else
39240        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/ioctl.h>" >&5
39241 $as_echo_n "checking absolute name of <sys/ioctl.h>... " >&6; }
39242 if ${gl_cv_next_sys_ioctl_h+:} false; then :
39243   $as_echo_n "(cached) " >&6
39244 else
39245
39246              if test $ac_cv_header_sys_ioctl_h = yes; then
39247
39248
39249                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39250 /* end confdefs.h.  */
39251 #include <sys/ioctl.h>
39252
39253 _ACEOF
39254                                                                                                                         case "$host_os" in
39255                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
39256                  *)    gl_absname_cpp="$ac_cpp" ;;
39257                esac
39258
39259                case "$host_os" in
39260                  mingw*)
39261                                                                                                                                      gl_dirsep_regex='[/\\]'
39262                    ;;
39263                  *)
39264                    gl_dirsep_regex='\/'
39265                    ;;
39266                esac
39267                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
39268
39269                gl_header_literal_regex=`echo 'sys/ioctl.h' \
39270                                         | sed -e "$gl_make_literal_regex_sed"`
39271                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
39272                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
39273                    s|^/[^/]|//&|
39274                    p
39275                    q
39276                  }'
39277                                                             gl_cv_next_sys_ioctl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39278                       sed -n "$gl_absolute_header_sed"`'"'
39279           else
39280                gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
39281              fi
39282
39283
39284 fi
39285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_ioctl_h" >&5
39286 $as_echo "$gl_cv_next_sys_ioctl_h" >&6; }
39287      fi
39288      NEXT_SYS_IOCTL_H=$gl_cv_next_sys_ioctl_h
39289
39290      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39291        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39292        gl_next_as_first_directive='<'sys/ioctl.h'>'
39293      else
39294        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39295        gl_next_as_first_directive=$gl_cv_next_sys_ioctl_h
39296      fi
39297      NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H=$gl_next_as_first_directive
39298
39299
39300
39301
39302
39303
39304     for gl_func in ioctl; do
39305     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
39306     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
39307 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
39308 if eval \${$as_gl_Symbol+:} false; then :
39309   $as_echo_n "(cached) " >&6
39310 else
39311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39312 /* end confdefs.h.  */
39313 #include <sys/ioctl.h>
39314 /* Some platforms declare ioctl in the wrong header.  */
39315 #if !(defined __GLIBC__ && !defined __UCLIBC__)
39316 # include <unistd.h>
39317 #endif
39318
39319 int
39320 main ()
39321 {
39322 #undef $gl_func
39323   (void) $gl_func;
39324   ;
39325   return 0;
39326 }
39327 _ACEOF
39328 if ac_fn_c_try_compile "$LINENO"; then :
39329   eval "$as_gl_Symbol=yes"
39330 else
39331   eval "$as_gl_Symbol=no"
39332 fi
39333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39334 fi
39335 eval ac_res=\$$as_gl_Symbol
39336                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39337 $as_echo "$ac_res" >&6; }
39338     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
39339   cat >>confdefs.h <<_ACEOF
39340 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
39341 _ACEOF
39342
39343                      eval ac_cv_have_decl_$gl_func=yes
39344 fi
39345       done
39346
39347
39348
39349
39350   :
39351
39352
39353
39354
39355
39356
39357
39358
39359
39360   if test $gl_threads_api = posix; then
39361     gl_save_LIBS="$LIBS"
39362     LIBS="$LIBS $LIBMULTITHREAD"
39363     for ac_func in pthread_atfork
39364 do :
39365   ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
39366 if test "x$ac_cv_func_pthread_atfork" = xyes; then :
39367   cat >>confdefs.h <<_ACEOF
39368 #define HAVE_PTHREAD_ATFORK 1
39369 _ACEOF
39370
39371 fi
39372 done
39373
39374     LIBS="$gl_save_LIBS"
39375   fi
39376
39377 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
39378
39379
39380   # Check whether --enable-valgrind-tests was given.
39381 if test "${enable_valgrind_tests+set}" = set; then :
39382   enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
39383 else
39384   opt_valgrind_tests=yes
39385 fi
39386
39387
39388   # Run self-tests under valgrind?
39389   if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
39390     for ac_prog in valgrind
39391 do
39392   # Extract the first word of "$ac_prog", so it can be a program name with args.
39393 set dummy $ac_prog; ac_word=$2
39394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39395 $as_echo_n "checking for $ac_word... " >&6; }
39396 if ${ac_cv_prog_VALGRIND+:} false; then :
39397   $as_echo_n "(cached) " >&6
39398 else
39399   if test -n "$VALGRIND"; then
39400   ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
39401 else
39402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39403 for as_dir in $PATH
39404 do
39405   IFS=$as_save_IFS
39406   test -z "$as_dir" && as_dir=.
39407     for ac_exec_ext in '' $ac_executable_extensions; do
39408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39409     ac_cv_prog_VALGRIND="$ac_prog"
39410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39411     break 2
39412   fi
39413 done
39414   done
39415 IFS=$as_save_IFS
39416
39417 fi
39418 fi
39419 VALGRIND=$ac_cv_prog_VALGRIND
39420 if test -n "$VALGRIND"; then
39421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
39422 $as_echo "$VALGRIND" >&6; }
39423 else
39424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39425 $as_echo "no" >&6; }
39426 fi
39427
39428
39429   test -n "$VALGRIND" && break
39430 done
39431
39432   fi
39433
39434   OPTS="-q --error-exitcode=1 --leak-check=full"
39435
39436   if test -n "$VALGRIND" \
39437      && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
39438     opt_valgrind_tests=yes
39439     VALGRIND="$VALGRIND $OPTS"
39440   else
39441     opt_valgrind_tests=no
39442     VALGRIND=
39443   fi
39444
39445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
39446 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
39447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
39448 $as_echo "$opt_valgrind_tests" >&6; }
39449
39450 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
39451
39452
39453
39454     YIELD_LIB=
39455   if test $gl_threads_api = posix; then
39456         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
39457 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
39458 if ${ac_cv_lib_rt_sched_yield+:} false; then :
39459   $as_echo_n "(cached) " >&6
39460 else
39461   ac_check_lib_save_LIBS=$LIBS
39462 LIBS="-lrt  $LIBS"
39463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39464 /* end confdefs.h.  */
39465
39466 /* Override any GCC internal prototype to avoid an error.
39467    Use char because int might match the return type of a GCC
39468    builtin and then its argument prototype would still apply.  */
39469 #ifdef __cplusplus
39470 extern "C"
39471 #endif
39472 char sched_yield ();
39473 int
39474 main ()
39475 {
39476 return sched_yield ();
39477   ;
39478   return 0;
39479 }
39480 _ACEOF
39481 if ac_fn_c_try_link "$LINENO"; then :
39482   ac_cv_lib_rt_sched_yield=yes
39483 else
39484   ac_cv_lib_rt_sched_yield=no
39485 fi
39486 rm -f core conftest.err conftest.$ac_objext \
39487     conftest$ac_exeext conftest.$ac_ext
39488 LIBS=$ac_check_lib_save_LIBS
39489 fi
39490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
39491 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
39492 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
39493   YIELD_LIB=-lrt
39494 else
39495          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
39496 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
39497 if ${ac_cv_lib_posix4_sched_yield+:} false; then :
39498   $as_echo_n "(cached) " >&6
39499 else
39500   ac_check_lib_save_LIBS=$LIBS
39501 LIBS="-lposix4  $LIBS"
39502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39503 /* end confdefs.h.  */
39504
39505 /* Override any GCC internal prototype to avoid an error.
39506    Use char because int might match the return type of a GCC
39507    builtin and then its argument prototype would still apply.  */
39508 #ifdef __cplusplus
39509 extern "C"
39510 #endif
39511 char sched_yield ();
39512 int
39513 main ()
39514 {
39515 return sched_yield ();
39516   ;
39517   return 0;
39518 }
39519 _ACEOF
39520 if ac_fn_c_try_link "$LINENO"; then :
39521   ac_cv_lib_posix4_sched_yield=yes
39522 else
39523   ac_cv_lib_posix4_sched_yield=no
39524 fi
39525 rm -f core conftest.err conftest.$ac_objext \
39526     conftest$ac_exeext conftest.$ac_ext
39527 LIBS=$ac_check_lib_save_LIBS
39528 fi
39529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
39530 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
39531 if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
39532   YIELD_LIB=-lposix4
39533 fi
39534
39535 fi
39536
39537   fi
39538
39539
39540
39541
39542
39543
39544
39545
39546
39547
39548
39549
39550   LIBTESTS_LIBDEPS="$gltests_libdeps"
39551
39552
39553
39554 # Check whether --enable-gcc-warnings was given.
39555 if test "${enable_gcc_warnings+set}" = set; then :
39556   enableval=$enable_gcc_warnings; case $enableval in
39557      yes|no) ;;
39558      *)      as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
39559    esac
39560    gl_gcc_warnings=$enableval
39561 else
39562   gl_gcc_warnings=no
39563
39564 fi
39565
39566
39567 if test "$gl_gcc_warnings" = yes; then
39568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Werror" >&5
39569 $as_echo_n "checking whether compiler handles -Werror... " >&6; }
39570 if ${gl_cv_warn__Werror+:} false; then :
39571   $as_echo_n "(cached) " >&6
39572 else
39573
39574   gl_save_CPPFLAGS="$CPPFLAGS"
39575   CPPFLAGS="${CPPFLAGS} -Werror"
39576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39577 /* end confdefs.h.  */
39578
39579 int
39580 main ()
39581 {
39582
39583   ;
39584   return 0;
39585 }
39586 _ACEOF
39587 if ac_fn_c_try_cpp "$LINENO"; then :
39588   gl_cv_warn__Werror=yes
39589 else
39590   gl_cv_warn__Werror=no
39591 fi
39592 rm -f conftest.err conftest.i conftest.$ac_ext
39593   CPPFLAGS="$gl_save_CPPFLAGS"
39594
39595 fi
39596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Werror" >&5
39597 $as_echo "$gl_cv_warn__Werror" >&6; }
39598 if test "x$gl_cv_warn__Werror" = xyes; then :
39599   as_fn_append WERROR_CFLAGS " -Werror"
39600 fi
39601
39602   as_gl_Warn=`$as_echo "gl_cv_warn_-Wframe-larger-than=5120" | $as_tr_sh`
39603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wframe-larger-than=5120" >&5
39604 $as_echo_n "checking whether compiler handles -Wframe-larger-than=5120... " >&6; }
39605 if eval \${$as_gl_Warn+:} false; then :
39606   $as_echo_n "(cached) " >&6
39607 else
39608
39609   gl_save_CPPFLAGS="$CPPFLAGS"
39610   CPPFLAGS="${CPPFLAGS} -Wframe-larger-than=5120"
39611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39612 /* end confdefs.h.  */
39613
39614 int
39615 main ()
39616 {
39617
39618   ;
39619   return 0;
39620 }
39621 _ACEOF
39622 if ac_fn_c_try_cpp "$LINENO"; then :
39623   eval "$as_gl_Warn=yes"
39624 else
39625   eval "$as_gl_Warn=no"
39626 fi
39627 rm -f conftest.err conftest.i conftest.$ac_ext
39628   CPPFLAGS="$gl_save_CPPFLAGS"
39629
39630 fi
39631 eval ac_res=\$$as_gl_Warn
39632                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39633 $as_echo "$ac_res" >&6; }
39634 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
39635   as_fn_append WSTACK_CFLAGS " -Wframe-larger-than=5120"
39636 fi
39637
39638
39639   nw="$nw -Wsystem-headers"         # Don't let system headers trigger warnings
39640   nw="$nw -Wc++-compat"             # We don't care about C++ compilers
39641   nw="$nw -Wundef"                  # Warns on '#if GNULIB_FOO' etc in gnulib
39642   nw="$nw -Wtraditional"            # Warns on #elif which we use often
39643   nw="$nw -Wlogical-op"             # Too many false positives
39644   nw="$nw -Wold-style-definition"   #
39645   nw="$nw -Wpadded"                 # Our structs are not padded
39646   nw="$nw -Wunreachable-code"       # Too many false positives
39647   nw="$nw -Wtraditional-conversion" # Too many warnings for now
39648   nw="$nw -Wcast-qual"              # Too many warnings for now
39649   nw="$nw -Waggregate-return"       # Too many warnings for now
39650   nw="$nw -Wshadow"                 # Too many warnings for now
39651   nw="$nw -Wswitch-default"         # Too many warnings for now
39652   nw="$nw -Wswitch-enum"            # Too many warnings for now
39653   nw="$nw -Wconversion"             # Too many warnings for now
39654   nw="$nw -Wsign-conversion"        # Too many warnings for now
39655   nw="$nw -Wformat-y2k"             # Too many warnings for now
39656   nw="$nw -Wvla"                    # There is no point to avoid C99 variable length arrays
39657   nw="$nw -Wformat-nonliteral"      # Incompatible with gettext _()
39658   nw="$nw -Wunsafe-loop-optimizations"
39659   nw="$nw -Wstrict-overflow"
39660   nw="$nw -Wmissing-noreturn"
39661
39662
39663
39664   if test -n "$GCC"; then
39665
39666             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
39667 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
39668     if ${gl_cv_cc_nomfi_supported+:} false; then :
39669   $as_echo_n "(cached) " >&6
39670 else
39671
39672       gl_save_CFLAGS="$CFLAGS"
39673       CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
39674       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39675 /* end confdefs.h.  */
39676
39677 int
39678 main ()
39679 {
39680
39681   ;
39682   return 0;
39683 }
39684 _ACEOF
39685 if ac_fn_c_try_compile "$LINENO"; then :
39686   gl_cv_cc_nomfi_supported=yes
39687 else
39688   gl_cv_cc_nomfi_supported=no
39689 fi
39690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39691       CFLAGS="$gl_save_CFLAGS"
39692 fi
39693
39694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
39695 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
39696
39697     if test "$gl_cv_cc_nomfi_supported" = yes; then
39698                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
39699 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
39700       if ${gl_cv_cc_nomfi_needed+:} false; then :
39701   $as_echo_n "(cached) " >&6
39702 else
39703
39704         gl_save_CFLAGS="$CFLAGS"
39705         CFLAGS="$CFLAGS -W -Werror"
39706         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39707 /* end confdefs.h.  */
39708 void f (void)
39709                {
39710                  typedef struct { int a; int b; } s_t;
39711                  s_t s1 = { 0, };
39712                }
39713
39714 int
39715 main ()
39716 {
39717
39718   ;
39719   return 0;
39720 }
39721 _ACEOF
39722 if ac_fn_c_try_compile "$LINENO"; then :
39723   gl_cv_cc_nomfi_needed=no
39724 else
39725   gl_cv_cc_nomfi_needed=yes
39726 fi
39727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39728         CFLAGS="$gl_save_CFLAGS"
39729
39730 fi
39731
39732       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
39733 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
39734     fi
39735   fi
39736
39737   gl_manywarn_set=
39738   for gl_manywarn_item in \
39739     -Wall \
39740     -W \
39741     -Wformat-y2k \
39742     -Wformat-nonliteral \
39743     -Wformat-security \
39744     -Winit-self \
39745     -Wmissing-include-dirs \
39746     -Wswitch-default \
39747     -Wswitch-enum \
39748     -Wunused \
39749     -Wunknown-pragmas \
39750     -Wstrict-aliasing \
39751     -Wstrict-overflow \
39752     -Wsystem-headers \
39753     -Wfloat-equal \
39754     -Wtraditional \
39755     -Wtraditional-conversion \
39756     -Wdeclaration-after-statement \
39757     -Wundef \
39758     -Wshadow \
39759     -Wunsafe-loop-optimizations \
39760     -Wpointer-arith \
39761     -Wbad-function-cast \
39762     -Wc++-compat \
39763     -Wcast-qual \
39764     -Wcast-align \
39765     -Wwrite-strings \
39766     -Wconversion \
39767     -Wsign-conversion \
39768     -Wlogical-op \
39769     -Waggregate-return \
39770     -Wstrict-prototypes \
39771     -Wold-style-definition \
39772     -Wmissing-prototypes \
39773     -Wmissing-declarations \
39774     -Wmissing-noreturn \
39775     -Wmissing-format-attribute \
39776     -Wpacked \
39777     -Wpadded \
39778     -Wredundant-decls \
39779     -Wnested-externs \
39780     -Wunreachable-code \
39781     -Winline \
39782     -Winvalid-pch \
39783     -Wlong-long \
39784     -Wvla \
39785     -Wvolatile-register-var \
39786     -Wdisabled-optimization \
39787     -Wstack-protector \
39788     -Woverlength-strings \
39789     -Wbuiltin-macro-redefined \
39790     -Wmudflap \
39791     -Wpacked-bitfield-compat \
39792     -Wsync-nand \
39793     ; do
39794     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
39795   done
39796   # The following are not documented in the manual but are included in
39797   # output from gcc --help=warnings.
39798   for gl_manywarn_item in \
39799     -Wattributes \
39800     -Wcoverage-mismatch \
39801     -Wmultichar \
39802     -Wunused-macros \
39803     ; do
39804     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
39805   done
39806   # More warnings from gcc 4.6.2 --help=warnings.
39807   for gl_manywarn_item in \
39808     -Wabi \
39809     -Wcpp \
39810     -Wdeprecated \
39811     -Wdeprecated-declarations \
39812     -Wdiv-by-zero \
39813     -Wdouble-promotion \
39814     -Wendif-labels \
39815     -Wextra \
39816     -Wformat-contains-nul \
39817     -Wformat-extra-args \
39818     -Wformat-zero-length \
39819     -Wformat=2 \
39820     -Wmultichar \
39821     -Wnormalized=nfc \
39822     -Woverflow \
39823     -Wpointer-to-int-cast \
39824     -Wpragmas \
39825     -Wsuggest-attribute=const \
39826     -Wsuggest-attribute=noreturn \
39827     -Wsuggest-attribute=pure \
39828     -Wtrampolines \
39829     ; do
39830     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
39831   done
39832
39833   # Disable the missing-field-initializers warning if needed
39834   if test "$gl_cv_cc_nomfi_needed" = yes; then
39835     gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
39836   fi
39837
39838   ws=$gl_manywarn_set
39839
39840
39841   gl_warn_set=
39842   set x $ws; shift
39843   for gl_warn_item
39844   do
39845     case " $nw " in
39846       *" $gl_warn_item "*)
39847         ;;
39848       *)
39849         gl_warn_set="$gl_warn_set $gl_warn_item"
39850         ;;
39851     esac
39852   done
39853   ws=$gl_warn_set
39854
39855   for w in $ws; do
39856     as_gl_Warn=`$as_echo "gl_cv_warn_$w" | $as_tr_sh`
39857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles $w" >&5
39858 $as_echo_n "checking whether compiler handles $w... " >&6; }
39859 if eval \${$as_gl_Warn+:} false; then :
39860   $as_echo_n "(cached) " >&6
39861 else
39862
39863   gl_save_CPPFLAGS="$CPPFLAGS"
39864   CPPFLAGS="${CPPFLAGS} $w"
39865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39866 /* end confdefs.h.  */
39867
39868 int
39869 main ()
39870 {
39871
39872   ;
39873   return 0;
39874 }
39875 _ACEOF
39876 if ac_fn_c_try_cpp "$LINENO"; then :
39877   eval "$as_gl_Warn=yes"
39878 else
39879   eval "$as_gl_Warn=no"
39880 fi
39881 rm -f conftest.err conftest.i conftest.$ac_ext
39882   CPPFLAGS="$gl_save_CPPFLAGS"
39883
39884 fi
39885 eval ac_res=\$$as_gl_Warn
39886                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39887 $as_echo "$ac_res" >&6; }
39888 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
39889   as_fn_append WARN_CFLAGS " $w"
39890 fi
39891
39892   done
39893
39894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-missing-field-initializers" >&5
39895 $as_echo_n "checking whether compiler handles -Wno-missing-field-initializers... " >&6; }
39896 if ${gl_cv_warn__Wno_missing_field_initializers+:} false; then :
39897   $as_echo_n "(cached) " >&6
39898 else
39899
39900   gl_save_CPPFLAGS="$CPPFLAGS"
39901   CPPFLAGS="${CPPFLAGS} -Wno-missing-field-initializers"
39902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39903 /* end confdefs.h.  */
39904
39905 int
39906 main ()
39907 {
39908
39909   ;
39910   return 0;
39911 }
39912 _ACEOF
39913 if ac_fn_c_try_cpp "$LINENO"; then :
39914   gl_cv_warn__Wno_missing_field_initializers=yes
39915 else
39916   gl_cv_warn__Wno_missing_field_initializers=no
39917 fi
39918 rm -f conftest.err conftest.i conftest.$ac_ext
39919   CPPFLAGS="$gl_save_CPPFLAGS"
39920
39921 fi
39922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_missing_field_initializers" >&5
39923 $as_echo "$gl_cv_warn__Wno_missing_field_initializers" >&6; }
39924 if test "x$gl_cv_warn__Wno_missing_field_initializers" = xyes; then :
39925   as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
39926 fi
39927  # We need this one
39928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-sign-compare" >&5
39929 $as_echo_n "checking whether compiler handles -Wno-sign-compare... " >&6; }
39930 if ${gl_cv_warn__Wno_sign_compare+:} false; then :
39931   $as_echo_n "(cached) " >&6
39932 else
39933
39934   gl_save_CPPFLAGS="$CPPFLAGS"
39935   CPPFLAGS="${CPPFLAGS} -Wno-sign-compare"
39936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39937 /* end confdefs.h.  */
39938
39939 int
39940 main ()
39941 {
39942
39943   ;
39944   return 0;
39945 }
39946 _ACEOF
39947 if ac_fn_c_try_cpp "$LINENO"; then :
39948   gl_cv_warn__Wno_sign_compare=yes
39949 else
39950   gl_cv_warn__Wno_sign_compare=no
39951 fi
39952 rm -f conftest.err conftest.i conftest.$ac_ext
39953   CPPFLAGS="$gl_save_CPPFLAGS"
39954
39955 fi
39956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_sign_compare" >&5
39957 $as_echo "$gl_cv_warn__Wno_sign_compare" >&6; }
39958 if test "x$gl_cv_warn__Wno_sign_compare" = xyes; then :
39959   as_fn_append WARN_CFLAGS " -Wno-sign-compare"
39960 fi
39961      # Too many warnings for now
39962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-pointer-sign" >&5
39963 $as_echo_n "checking whether compiler handles -Wno-pointer-sign... " >&6; }
39964 if ${gl_cv_warn__Wno_pointer_sign+:} false; then :
39965   $as_echo_n "(cached) " >&6
39966 else
39967
39968   gl_save_CPPFLAGS="$CPPFLAGS"
39969   CPPFLAGS="${CPPFLAGS} -Wno-pointer-sign"
39970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39971 /* end confdefs.h.  */
39972
39973 int
39974 main ()
39975 {
39976
39977   ;
39978   return 0;
39979 }
39980 _ACEOF
39981 if ac_fn_c_try_cpp "$LINENO"; then :
39982   gl_cv_warn__Wno_pointer_sign=yes
39983 else
39984   gl_cv_warn__Wno_pointer_sign=no
39985 fi
39986 rm -f conftest.err conftest.i conftest.$ac_ext
39987   CPPFLAGS="$gl_save_CPPFLAGS"
39988
39989 fi
39990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_pointer_sign" >&5
39991 $as_echo "$gl_cv_warn__Wno_pointer_sign" >&6; }
39992 if test "x$gl_cv_warn__Wno_pointer_sign" = xyes; then :
39993   as_fn_append WARN_CFLAGS " -Wno-pointer-sign"
39994 fi
39995      # Too many warnings for now
39996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-unused-parameter" >&5
39997 $as_echo_n "checking whether compiler handles -Wno-unused-parameter... " >&6; }
39998 if ${gl_cv_warn__Wno_unused_parameter+:} false; then :
39999   $as_echo_n "(cached) " >&6
40000 else
40001
40002   gl_save_CPPFLAGS="$CPPFLAGS"
40003   CPPFLAGS="${CPPFLAGS} -Wno-unused-parameter"
40004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40005 /* end confdefs.h.  */
40006
40007 int
40008 main ()
40009 {
40010
40011   ;
40012   return 0;
40013 }
40014 _ACEOF
40015 if ac_fn_c_try_cpp "$LINENO"; then :
40016   gl_cv_warn__Wno_unused_parameter=yes
40017 else
40018   gl_cv_warn__Wno_unused_parameter=no
40019 fi
40020 rm -f conftest.err conftest.i conftest.$ac_ext
40021   CPPFLAGS="$gl_save_CPPFLAGS"
40022
40023 fi
40024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_unused_parameter" >&5
40025 $as_echo "$gl_cv_warn__Wno_unused_parameter" >&6; }
40026 if test "x$gl_cv_warn__Wno_unused_parameter" = xyes; then :
40027   as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
40028 fi
40029  # Too many warnings for now
40030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-unused-parameter" >&5
40031 $as_echo_n "checking whether compiler handles -Wno-unused-parameter... " >&6; }
40032 if ${gl_cv_warn__Wno_unused_parameter+:} false; then :
40033   $as_echo_n "(cached) " >&6
40034 else
40035
40036   gl_save_CPPFLAGS="$CPPFLAGS"
40037   CPPFLAGS="${CPPFLAGS} -Wno-unused-parameter"
40038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40039 /* end confdefs.h.  */
40040
40041 int
40042 main ()
40043 {
40044
40045   ;
40046   return 0;
40047 }
40048 _ACEOF
40049 if ac_fn_c_try_cpp "$LINENO"; then :
40050   gl_cv_warn__Wno_unused_parameter=yes
40051 else
40052   gl_cv_warn__Wno_unused_parameter=no
40053 fi
40054 rm -f conftest.err conftest.i conftest.$ac_ext
40055   CPPFLAGS="$gl_save_CPPFLAGS"
40056
40057 fi
40058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_unused_parameter" >&5
40059 $as_echo "$gl_cv_warn__Wno_unused_parameter" >&6; }
40060 if test "x$gl_cv_warn__Wno_unused_parameter" = xyes; then :
40061   as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
40062 fi
40063  # Too many warnings for now
40064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-stack-protector" >&5
40065 $as_echo_n "checking whether compiler handles -Wno-stack-protector... " >&6; }
40066 if ${gl_cv_warn__Wno_stack_protector+:} false; then :
40067   $as_echo_n "(cached) " >&6
40068 else
40069
40070   gl_save_CPPFLAGS="$CPPFLAGS"
40071   CPPFLAGS="${CPPFLAGS} -Wno-stack-protector"
40072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40073 /* end confdefs.h.  */
40074
40075 int
40076 main ()
40077 {
40078
40079   ;
40080   return 0;
40081 }
40082 _ACEOF
40083 if ac_fn_c_try_cpp "$LINENO"; then :
40084   gl_cv_warn__Wno_stack_protector=yes
40085 else
40086   gl_cv_warn__Wno_stack_protector=no
40087 fi
40088 rm -f conftest.err conftest.i conftest.$ac_ext
40089   CPPFLAGS="$gl_save_CPPFLAGS"
40090
40091 fi
40092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_stack_protector" >&5
40093 $as_echo "$gl_cv_warn__Wno_stack_protector" >&6; }
40094 if test "x$gl_cv_warn__Wno_stack_protector" = xyes; then :
40095   as_fn_append WARN_CFLAGS " -Wno-stack-protector"
40096 fi
40097   # Some functions cannot be protected
40098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-int-to-pointer-cast" >&5
40099 $as_echo_n "checking whether compiler handles -Wno-int-to-pointer-cast... " >&6; }
40100 if ${gl_cv_warn__Wno_int_to_pointer_cast+:} false; then :
40101   $as_echo_n "(cached) " >&6
40102 else
40103
40104   gl_save_CPPFLAGS="$CPPFLAGS"
40105   CPPFLAGS="${CPPFLAGS} -Wno-int-to-pointer-cast"
40106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40107 /* end confdefs.h.  */
40108
40109 int
40110 main ()
40111 {
40112
40113   ;
40114   return 0;
40115 }
40116 _ACEOF
40117 if ac_fn_c_try_cpp "$LINENO"; then :
40118   gl_cv_warn__Wno_int_to_pointer_cast=yes
40119 else
40120   gl_cv_warn__Wno_int_to_pointer_cast=no
40121 fi
40122 rm -f conftest.err conftest.i conftest.$ac_ext
40123   CPPFLAGS="$gl_save_CPPFLAGS"
40124
40125 fi
40126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_int_to_pointer_cast" >&5
40127 $as_echo "$gl_cv_warn__Wno_int_to_pointer_cast" >&6; }
40128 if test "x$gl_cv_warn__Wno_int_to_pointer_cast" = xyes; then :
40129   as_fn_append WARN_CFLAGS " -Wno-int-to-pointer-cast"
40130 fi
40131   # Some files cannot be compiled with that (gl_fd_to_handle)
40132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fdiagnostics-show-option" >&5
40133 $as_echo_n "checking whether compiler handles -fdiagnostics-show-option... " >&6; }
40134 if ${gl_cv_warn__fdiagnostics_show_option+:} false; then :
40135   $as_echo_n "(cached) " >&6
40136 else
40137
40138   gl_save_CPPFLAGS="$CPPFLAGS"
40139   CPPFLAGS="${CPPFLAGS} -fdiagnostics-show-option"
40140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40141 /* end confdefs.h.  */
40142
40143 int
40144 main ()
40145 {
40146
40147   ;
40148   return 0;
40149 }
40150 _ACEOF
40151 if ac_fn_c_try_cpp "$LINENO"; then :
40152   gl_cv_warn__fdiagnostics_show_option=yes
40153 else
40154   gl_cv_warn__fdiagnostics_show_option=no
40155 fi
40156 rm -f conftest.err conftest.i conftest.$ac_ext
40157   CPPFLAGS="$gl_save_CPPFLAGS"
40158
40159 fi
40160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fdiagnostics_show_option" >&5
40161 $as_echo "$gl_cv_warn__fdiagnostics_show_option" >&6; }
40162 if test "x$gl_cv_warn__fdiagnostics_show_option" = xyes; then :
40163   as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
40164 fi
40165
40166 fi
40167
40168 # Export things for */configure.ac.
40169 export WERROR_CFLAGS
40170 export WSTACK_CFLAGS
40171 export WARN_CFLAGS
40172 export use_cxx
40173
40174
40175 $as_echo "#define GNUTLS_COMPAT_H 1" >>confdefs.h
40176
40177
40178
40179
40180 subdirs="$subdirs lib"
40181
40182 subdirs="$subdirs libextra"
40183
40184
40185 ac_config_files="$ac_config_files guile/pre-inst-guile"
40186
40187 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/manpages/Makefile doc/reference/Makefile doc/scripts/Makefile gl/Makefile gl/tests/Makefile guile/Makefile guile/modules/Makefile guile/src/Makefile guile/tests/Makefile src/Makefile src/cfg/Makefile src/cfg/platon/Makefile src/cfg/platon/str/Makefile tests/Makefile tests/key-id/Makefile tests/dsa/Makefile tests/openpgp-certs/Makefile tests/safe-renegotiation/Makefile tests/pathlen/Makefile tests/pkcs1-padding/Makefile tests/pkcs12-decode/Makefile tests/pkcs8-decode/Makefile tests/rsa-md5-collision/Makefile tests/sha2/Makefile tests/userid/Makefile tests/suite/Makefile"
40188
40189
40190 cat >confcache <<\_ACEOF
40191 # This file is a shell script that caches the results of configure
40192 # tests run on this system so they can be shared between configure
40193 # scripts and configure runs, see configure's option --config-cache.
40194 # It is not useful on other systems.  If it contains results you don't
40195 # want to keep, you may remove or edit it.
40196 #
40197 # config.status only pays attention to the cache file if you give it
40198 # the --recheck option to rerun configure.
40199 #
40200 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40201 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40202 # following values.
40203
40204 _ACEOF
40205
40206 # The following way of writing the cache mishandles newlines in values,
40207 # but we know of no workaround that is simple, portable, and efficient.
40208 # So, we kill variables containing newlines.
40209 # Ultrix sh set writes to stderr and can't be redirected directly,
40210 # and sets the high bit in the cache file unless we assign to the vars.
40211 (
40212   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40213     eval ac_val=\$$ac_var
40214     case $ac_val in #(
40215     *${as_nl}*)
40216       case $ac_var in #(
40217       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
40218 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
40219       esac
40220       case $ac_var in #(
40221       _ | IFS | as_nl) ;; #(
40222       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
40223       *) { eval $ac_var=; unset $ac_var;} ;;
40224       esac ;;
40225     esac
40226   done
40227
40228   (set) 2>&1 |
40229     case $as_nl`(ac_space=' '; set) 2>&1` in #(
40230     *${as_nl}ac_space=\ *)
40231       # `set' does not quote correctly, so add quotes: double-quote
40232       # substitution turns \\\\ into \\, and sed turns \\ into \.
40233       sed -n \
40234         "s/'/'\\\\''/g;
40235           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40236       ;; #(
40237     *)
40238       # `set' quotes correctly as required by POSIX, so do not add quotes.
40239       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40240       ;;
40241     esac |
40242     sort
40243 ) |
40244   sed '
40245      /^ac_cv_env_/b end
40246      t clear
40247      :clear
40248      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40249      t end
40250      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40251      :end' >>confcache
40252 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40253   if test -w "$cache_file"; then
40254     if test "x$cache_file" != "x/dev/null"; then
40255       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
40256 $as_echo "$as_me: updating cache $cache_file" >&6;}
40257       if test ! -f "$cache_file" || test -h "$cache_file"; then
40258         cat confcache >"$cache_file"
40259       else
40260         case $cache_file in #(
40261         */* | ?:*)
40262           mv -f confcache "$cache_file"$$ &&
40263           mv -f "$cache_file"$$ "$cache_file" ;; #(
40264         *)
40265           mv -f confcache "$cache_file" ;;
40266         esac
40267       fi
40268     fi
40269   else
40270     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
40271 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
40272   fi
40273 fi
40274 rm -f confcache
40275
40276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40277 # Let make expand exec_prefix.
40278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40279
40280 DEFS=-DHAVE_CONFIG_H
40281
40282 ac_libobjs=
40283 ac_ltlibobjs=
40284 U=
40285 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40286   # 1. Remove the extension, and $U if already installed.
40287   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
40288   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
40289   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
40290   #    will be set to the directory where LIBOBJS objects are built.
40291   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
40292   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
40293 done
40294 LIBOBJS=$ac_libobjs
40295
40296 LTLIBOBJS=$ac_ltlibobjs
40297
40298
40299  if test -n "$EXEEXT"; then
40300   am__EXEEXT_TRUE=
40301   am__EXEEXT_FALSE='#'
40302 else
40303   am__EXEEXT_TRUE='#'
40304   am__EXEEXT_FALSE=
40305 fi
40306
40307 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40308   as_fn_error $? "conditional \"AMDEP\" was never defined.
40309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40310 fi
40311 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40312   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
40313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40314 fi
40315 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
40316   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
40317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40318 fi
40319 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
40320   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
40321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40322 fi
40323 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
40324   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
40325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40326 fi
40327 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
40328   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
40329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40330 fi
40331 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
40332   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
40333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40334 fi
40335 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
40336   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
40337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40338 fi
40339 if test -z "${ENABLE_CXX_TRUE}" && test -z "${ENABLE_CXX_FALSE}"; then
40340   as_fn_error $? "conditional \"ENABLE_CXX\" was never defined.
40341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40342 fi
40343 if test -z "${WANT_TEST_SUITE_TRUE}" && test -z "${WANT_TEST_SUITE_FALSE}"; then
40344   as_fn_error $? "conditional \"WANT_TEST_SUITE\" was never defined.
40345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40346 fi
40347 if test -z "${ENABLE_NETTLE_TRUE}" && test -z "${ENABLE_NETTLE_FALSE}"; then
40348   as_fn_error $? "conditional \"ENABLE_NETTLE\" was never defined.
40349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40350 fi
40351 if test -z "${ENABLE_MINITASN1_TRUE}" && test -z "${ENABLE_MINITASN1_FALSE}"; then
40352   as_fn_error $? "conditional \"ENABLE_MINITASN1\" was never defined.
40353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40354 fi
40355 if test -z "${USE_LZO_TRUE}" && test -z "${USE_LZO_FALSE}"; then
40356   as_fn_error $? "conditional \"USE_LZO\" was never defined.
40357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40358 fi
40359 if test -z "${ENABLE_OPRFI_TRUE}" && test -z "${ENABLE_OPRFI_FALSE}"; then
40360   as_fn_error $? "conditional \"ENABLE_OPRFI\" was never defined.
40361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40362 fi
40363 if test -z "${ENABLE_SRP_TRUE}" && test -z "${ENABLE_SRP_FALSE}"; then
40364   as_fn_error $? "conditional \"ENABLE_SRP\" was never defined.
40365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40366 fi
40367 if test -z "${ENABLE_PSK_TRUE}" && test -z "${ENABLE_PSK_FALSE}"; then
40368   as_fn_error $? "conditional \"ENABLE_PSK\" was never defined.
40369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40370 fi
40371 if test -z "${ENABLE_ANON_TRUE}" && test -z "${ENABLE_ANON_FALSE}"; then
40372   as_fn_error $? "conditional \"ENABLE_ANON\" was never defined.
40373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40374 fi
40375 if test -z "${ENABLE_PKI_TRUE}" && test -z "${ENABLE_PKI_FALSE}"; then
40376   as_fn_error $? "conditional \"ENABLE_PKI\" was never defined.
40377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40378 fi
40379 if test -z "${ENABLE_OPENPGP_TRUE}" && test -z "${ENABLE_OPENPGP_FALSE}"; then
40380   as_fn_error $? "conditional \"ENABLE_OPENPGP\" was never defined.
40381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40382 fi
40383 if test -z "${ENABLE_SESSION_TICKET_TRUE}" && test -z "${ENABLE_SESSION_TICKET_FALSE}"; then
40384   as_fn_error $? "conditional \"ENABLE_SESSION_TICKET\" was never defined.
40385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40386 fi
40387 if test -z "${ENABLE_OPENSSL_TRUE}" && test -z "${ENABLE_OPENSSL_FALSE}"; then
40388   as_fn_error $? "conditional \"ENABLE_OPENSSL\" was never defined.
40389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40390 fi
40391 if test -z "${HAVE_FORK_TRUE}" && test -z "${HAVE_FORK_FALSE}"; then
40392   as_fn_error $? "conditional \"HAVE_FORK\" was never defined.
40393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40394 fi
40395 if test -z "${ENABLE_PKCS11_TRUE}" && test -z "${ENABLE_PKCS11_FALSE}"; then
40396   as_fn_error $? "conditional \"ENABLE_PKCS11\" was never defined.
40397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40398 fi
40399 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
40400   as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
40401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40402 fi
40403 if test -z "${HAVE_GCC_GNU89_INLINE_OPTION_TRUE}" && test -z "${HAVE_GCC_GNU89_INLINE_OPTION_FALSE}"; then
40404   as_fn_error $? "conditional \"HAVE_GCC_GNU89_INLINE_OPTION\" was never defined.
40405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40406 fi
40407 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
40408   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
40409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40410 fi
40411 if test -z "${HAVE_LIBCFG_TRUE}" && test -z "${HAVE_LIBCFG_FALSE}"; then
40412   as_fn_error $? "conditional \"HAVE_LIBCFG\" was never defined.
40413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40414 fi
40415 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
40416   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
40417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40418 fi
40419 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
40420   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
40421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40422 fi
40423 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
40424   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
40425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40426 fi
40427 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
40428   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
40429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40430 fi
40431 CONFIG_INCLUDE=config.h
40432
40433 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
40434   as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
40435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40436 fi
40437 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
40438   as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
40439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40440 fi
40441 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
40442   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
40443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40444 fi
40445 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
40446   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
40447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40448 fi
40449 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
40450   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
40451 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40452 fi
40453 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
40454   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
40455 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40456 fi
40457
40458
40459     gl_libobjs=
40460     gl_ltlibobjs=
40461     if test -n "$gl_LIBOBJS"; then
40462       # Remove the extension.
40463       sed_drop_objext='s/\.o$//;s/\.obj$//'
40464       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
40465         gl_libobjs="$gl_libobjs $i.$ac_objext"
40466         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
40467       done
40468     fi
40469     gl_LIBOBJS=$gl_libobjs
40470
40471     gl_LTLIBOBJS=$gl_ltlibobjs
40472
40473
40474
40475
40476
40477     gltests_libobjs=
40478     gltests_ltlibobjs=
40479     if test -n "$gltests_LIBOBJS"; then
40480       # Remove the extension.
40481       sed_drop_objext='s/\.o$//;s/\.obj$//'
40482       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
40483         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
40484         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
40485       done
40486     fi
40487     gltests_LIBOBJS=$gltests_libobjs
40488
40489     gltests_LTLIBOBJS=$gltests_ltlibobjs
40490
40491
40492
40493 : "${CONFIG_STATUS=./config.status}"
40494 ac_write_fail=0
40495 ac_clean_files_save=$ac_clean_files
40496 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
40498 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
40499 as_write_fail=0
40500 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
40501 #! $SHELL
40502 # Generated by $as_me.
40503 # Run this file to recreate the current configuration.
40504 # Compiler output produced by configure, useful for debugging
40505 # configure, is in config.log if it exists.
40506
40507 debug=false
40508 ac_cs_recheck=false
40509 ac_cs_silent=false
40510
40511 SHELL=\${CONFIG_SHELL-$SHELL}
40512 export SHELL
40513 _ASEOF
40514 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
40515 ## -------------------- ##
40516 ## M4sh Initialization. ##
40517 ## -------------------- ##
40518
40519 # Be more Bourne compatible
40520 DUALCASE=1; export DUALCASE # for MKS sh
40521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
40522   emulate sh
40523   NULLCMD=:
40524   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
40525   # is contrary to our usage.  Disable this feature.
40526   alias -g '${1+"$@"}'='"$@"'
40527   setopt NO_GLOB_SUBST
40528 else
40529   case `(set -o) 2>/dev/null` in #(
40530   *posix*) :
40531     set -o posix ;; #(
40532   *) :
40533      ;;
40534 esac
40535 fi
40536
40537
40538 as_nl='
40539 '
40540 export as_nl
40541 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40542 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40543 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40544 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
40545 # Prefer a ksh shell builtin over an external printf program on Solaris,
40546 # but without wasting forks for bash or zsh.
40547 if test -z "$BASH_VERSION$ZSH_VERSION" \
40548     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
40549   as_echo='print -r --'
40550   as_echo_n='print -rn --'
40551 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
40552   as_echo='printf %s\n'
40553   as_echo_n='printf %s'
40554 else
40555   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
40556     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
40557     as_echo_n='/usr/ucb/echo -n'
40558   else
40559     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
40560     as_echo_n_body='eval
40561       arg=$1;
40562       case $arg in #(
40563       *"$as_nl"*)
40564         expr "X$arg" : "X\\(.*\\)$as_nl";
40565         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
40566       esac;
40567       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
40568     '
40569     export as_echo_n_body
40570     as_echo_n='sh -c $as_echo_n_body as_echo'
40571   fi
40572   export as_echo_body
40573   as_echo='sh -c $as_echo_body as_echo'
40574 fi
40575
40576 # The user is always right.
40577 if test "${PATH_SEPARATOR+set}" != set; then
40578   PATH_SEPARATOR=:
40579   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
40580     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
40581       PATH_SEPARATOR=';'
40582   }
40583 fi
40584
40585
40586 # IFS
40587 # We need space, tab and new line, in precisely that order.  Quoting is
40588 # there to prevent editors from complaining about space-tab.
40589 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
40590 # splitting by setting IFS to empty value.)
40591 IFS=" ""        $as_nl"
40592
40593 # Find who we are.  Look in the path if we contain no directory separator.
40594 as_myself=
40595 case $0 in #((
40596   *[\\/]* ) as_myself=$0 ;;
40597   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40598 for as_dir in $PATH
40599 do
40600   IFS=$as_save_IFS
40601   test -z "$as_dir" && as_dir=.
40602     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40603   done
40604 IFS=$as_save_IFS
40605
40606      ;;
40607 esac
40608 # We did not find ourselves, most probably we were run as `sh COMMAND'
40609 # in which case we are not to be found in the path.
40610 if test "x$as_myself" = x; then
40611   as_myself=$0
40612 fi
40613 if test ! -f "$as_myself"; then
40614   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
40615   exit 1
40616 fi
40617
40618 # Unset variables that we do not need and which cause bugs (e.g. in
40619 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
40620 # suppresses any "Segmentation fault" message there.  '((' could
40621 # trigger a bug in pdksh 5.2.14.
40622 for as_var in BASH_ENV ENV MAIL MAILPATH
40623 do eval test x\${$as_var+set} = xset \
40624   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
40625 done
40626 PS1='$ '
40627 PS2='> '
40628 PS4='+ '
40629
40630 # NLS nuisances.
40631 LC_ALL=C
40632 export LC_ALL
40633 LANGUAGE=C
40634 export LANGUAGE
40635
40636 # CDPATH.
40637 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40638
40639
40640 # as_fn_error STATUS ERROR [LINENO LOG_FD]
40641 # ----------------------------------------
40642 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
40643 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
40644 # script with STATUS, using 1 if that was 0.
40645 as_fn_error ()
40646 {
40647   as_status=$1; test $as_status -eq 0 && as_status=1
40648   if test "$4"; then
40649     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
40650     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
40651   fi
40652   $as_echo "$as_me: error: $2" >&2
40653   as_fn_exit $as_status
40654 } # as_fn_error
40655
40656
40657 # as_fn_set_status STATUS
40658 # -----------------------
40659 # Set $? to STATUS, without forking.
40660 as_fn_set_status ()
40661 {
40662   return $1
40663 } # as_fn_set_status
40664
40665 # as_fn_exit STATUS
40666 # -----------------
40667 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
40668 as_fn_exit ()
40669 {
40670   set +e
40671   as_fn_set_status $1
40672   exit $1
40673 } # as_fn_exit
40674
40675 # as_fn_unset VAR
40676 # ---------------
40677 # Portably unset VAR.
40678 as_fn_unset ()
40679 {
40680   { eval $1=; unset $1;}
40681 }
40682 as_unset=as_fn_unset
40683 # as_fn_append VAR VALUE
40684 # ----------------------
40685 # Append the text in VALUE to the end of the definition contained in VAR. Take
40686 # advantage of any shell optimizations that allow amortized linear growth over
40687 # repeated appends, instead of the typical quadratic growth present in naive
40688 # implementations.
40689 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
40690   eval 'as_fn_append ()
40691   {
40692     eval $1+=\$2
40693   }'
40694 else
40695   as_fn_append ()
40696   {
40697     eval $1=\$$1\$2
40698   }
40699 fi # as_fn_append
40700
40701 # as_fn_arith ARG...
40702 # ------------------
40703 # Perform arithmetic evaluation on the ARGs, and store the result in the
40704 # global $as_val. Take advantage of shells that can avoid forks. The arguments
40705 # must be portable across $(()) and expr.
40706 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
40707   eval 'as_fn_arith ()
40708   {
40709     as_val=$(( $* ))
40710   }'
40711 else
40712   as_fn_arith ()
40713   {
40714     as_val=`expr "$@" || test $? -eq 1`
40715   }
40716 fi # as_fn_arith
40717
40718
40719 if expr a : '\(a\)' >/dev/null 2>&1 &&
40720    test "X`expr 00001 : '.*\(...\)'`" = X001; then
40721   as_expr=expr
40722 else
40723   as_expr=false
40724 fi
40725
40726 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
40727   as_basename=basename
40728 else
40729   as_basename=false
40730 fi
40731
40732 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40733   as_dirname=dirname
40734 else
40735   as_dirname=false
40736 fi
40737
40738 as_me=`$as_basename -- "$0" ||
40739 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40740          X"$0" : 'X\(//\)$' \| \
40741          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
40742 $as_echo X/"$0" |
40743     sed '/^.*\/\([^/][^/]*\)\/*$/{
40744             s//\1/
40745             q
40746           }
40747           /^X\/\(\/\/\)$/{
40748             s//\1/
40749             q
40750           }
40751           /^X\/\(\/\).*/{
40752             s//\1/
40753             q
40754           }
40755           s/.*/./; q'`
40756
40757 # Avoid depending upon Character Ranges.
40758 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40759 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40760 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40761 as_cr_digits='0123456789'
40762 as_cr_alnum=$as_cr_Letters$as_cr_digits
40763
40764 ECHO_C= ECHO_N= ECHO_T=
40765 case `echo -n x` in #(((((
40766 -n*)
40767   case `echo 'xy\c'` in
40768   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
40769   xy)  ECHO_C='\c';;
40770   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
40771        ECHO_T=' ';;
40772   esac;;
40773 *)
40774   ECHO_N='-n';;
40775 esac
40776
40777 rm -f conf$$ conf$$.exe conf$$.file
40778 if test -d conf$$.dir; then
40779   rm -f conf$$.dir/conf$$.file
40780 else
40781   rm -f conf$$.dir
40782   mkdir conf$$.dir 2>/dev/null
40783 fi
40784 if (echo >conf$$.file) 2>/dev/null; then
40785   if ln -s conf$$.file conf$$ 2>/dev/null; then
40786     as_ln_s='ln -s'
40787     # ... but there are two gotchas:
40788     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
40789     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
40790     # In both cases, we have to default to `cp -p'.
40791     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
40792       as_ln_s='cp -p'
40793   elif ln conf$$.file conf$$ 2>/dev/null; then
40794     as_ln_s=ln
40795   else
40796     as_ln_s='cp -p'
40797   fi
40798 else
40799   as_ln_s='cp -p'
40800 fi
40801 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
40802 rmdir conf$$.dir 2>/dev/null
40803
40804
40805 # as_fn_mkdir_p
40806 # -------------
40807 # Create "$as_dir" as a directory, including parents if necessary.
40808 as_fn_mkdir_p ()
40809 {
40810
40811   case $as_dir in #(
40812   -*) as_dir=./$as_dir;;
40813   esac
40814   test -d "$as_dir" || eval $as_mkdir_p || {
40815     as_dirs=
40816     while :; do
40817       case $as_dir in #(
40818       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
40819       *) as_qdir=$as_dir;;
40820       esac
40821       as_dirs="'$as_qdir' $as_dirs"
40822       as_dir=`$as_dirname -- "$as_dir" ||
40823 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40824          X"$as_dir" : 'X\(//\)[^/]' \| \
40825          X"$as_dir" : 'X\(//\)$' \| \
40826          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40827 $as_echo X"$as_dir" |
40828     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40829             s//\1/
40830             q
40831           }
40832           /^X\(\/\/\)[^/].*/{
40833             s//\1/
40834             q
40835           }
40836           /^X\(\/\/\)$/{
40837             s//\1/
40838             q
40839           }
40840           /^X\(\/\).*/{
40841             s//\1/
40842             q
40843           }
40844           s/.*/./; q'`
40845       test -d "$as_dir" && break
40846     done
40847     test -z "$as_dirs" || eval "mkdir $as_dirs"
40848   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
40849
40850
40851 } # as_fn_mkdir_p
40852 if mkdir -p . 2>/dev/null; then
40853   as_mkdir_p='mkdir -p "$as_dir"'
40854 else
40855   test -d ./-p && rmdir ./-p
40856   as_mkdir_p=false
40857 fi
40858
40859 if test -x / >/dev/null 2>&1; then
40860   as_test_x='test -x'
40861 else
40862   if ls -dL / >/dev/null 2>&1; then
40863     as_ls_L_option=L
40864   else
40865     as_ls_L_option=
40866   fi
40867   as_test_x='
40868     eval sh -c '\''
40869       if test -d "$1"; then
40870         test -d "$1/.";
40871       else
40872         case $1 in #(
40873         -*)set "./$1";;
40874         esac;
40875         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
40876         ???[sx]*):;;*)false;;esac;fi
40877     '\'' sh
40878   '
40879 fi
40880 as_executable_p=$as_test_x
40881
40882 # Sed expression to map a string onto a valid CPP name.
40883 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40884
40885 # Sed expression to map a string onto a valid variable name.
40886 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40887
40888
40889 exec 6>&1
40890 ## ----------------------------------- ##
40891 ## Main body of $CONFIG_STATUS script. ##
40892 ## ----------------------------------- ##
40893 _ASEOF
40894 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
40895
40896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40897 # Save the log message, to keep $0 and so on meaningful, and to
40898 # report actual input values of CONFIG_FILES etc. instead of their
40899 # values after options handling.
40900 ac_log="
40901 This file was extended by GnuTLS $as_me 2.12.20, which was
40902 generated by GNU Autoconf 2.68.  Invocation command line was
40903
40904   CONFIG_FILES    = $CONFIG_FILES
40905   CONFIG_HEADERS  = $CONFIG_HEADERS
40906   CONFIG_LINKS    = $CONFIG_LINKS
40907   CONFIG_COMMANDS = $CONFIG_COMMANDS
40908   $ $0 $@
40909
40910 on `(hostname || uname -n) 2>/dev/null | sed 1q`
40911 "
40912
40913 _ACEOF
40914
40915 case $ac_config_files in *"
40916 "*) set x $ac_config_files; shift; ac_config_files=$*;;
40917 esac
40918
40919 case $ac_config_headers in *"
40920 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
40921 esac
40922
40923
40924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40925 # Files that config.status was made for.
40926 config_files="$ac_config_files"
40927 config_headers="$ac_config_headers"
40928 config_links="$ac_config_links"
40929 config_commands="$ac_config_commands"
40930
40931 _ACEOF
40932
40933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40934 ac_cs_usage="\
40935 \`$as_me' instantiates files and other configuration actions
40936 from templates according to the current configuration.  Unless the files
40937 and actions are specified as TAGs, all are instantiated by default.
40938
40939 Usage: $0 [OPTION]... [TAG]...
40940
40941   -h, --help       print this help, then exit
40942   -V, --version    print version number and configuration settings, then exit
40943       --config     print configuration, then exit
40944   -q, --quiet, --silent
40945                    do not print progress messages
40946   -d, --debug      don't remove temporary files
40947       --recheck    update $as_me by reconfiguring in the same conditions
40948       --file=FILE[:TEMPLATE]
40949                    instantiate the configuration file FILE
40950       --header=FILE[:TEMPLATE]
40951                    instantiate the configuration header FILE
40952
40953 Configuration files:
40954 $config_files
40955
40956 Configuration headers:
40957 $config_headers
40958
40959 Configuration links:
40960 $config_links
40961
40962 Configuration commands:
40963 $config_commands
40964
40965 Report bugs to <bug-gnutls@gnu.org>."
40966
40967 _ACEOF
40968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40969 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40970 ac_cs_version="\\
40971 GnuTLS config.status 2.12.20
40972 configured by $0, generated by GNU Autoconf 2.68,
40973   with options \\"\$ac_cs_config\\"
40974
40975 Copyright (C) 2010 Free Software Foundation, Inc.
40976 This config.status script is free software; the Free Software Foundation
40977 gives unlimited permission to copy, distribute and modify it."
40978
40979 ac_pwd='$ac_pwd'
40980 srcdir='$srcdir'
40981 INSTALL='$INSTALL'
40982 MKDIR_P='$MKDIR_P'
40983 AWK='$AWK'
40984 test -n "\$AWK" || AWK=awk
40985 _ACEOF
40986
40987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40988 # The default lists apply if the user does not specify any file.
40989 ac_need_defaults=:
40990 while test $# != 0
40991 do
40992   case $1 in
40993   --*=?*)
40994     ac_option=`expr "X$1" : 'X\([^=]*\)='`
40995     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
40996     ac_shift=:
40997     ;;
40998   --*=)
40999     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41000     ac_optarg=
41001     ac_shift=:
41002     ;;
41003   *)
41004     ac_option=$1
41005     ac_optarg=$2
41006     ac_shift=shift
41007     ;;
41008   esac
41009
41010   case $ac_option in
41011   # Handling of the options.
41012   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41013     ac_cs_recheck=: ;;
41014   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41015     $as_echo "$ac_cs_version"; exit ;;
41016   --config | --confi | --conf | --con | --co | --c )
41017     $as_echo "$ac_cs_config"; exit ;;
41018   --debug | --debu | --deb | --de | --d | -d )
41019     debug=: ;;
41020   --file | --fil | --fi | --f )
41021     $ac_shift
41022     case $ac_optarg in
41023     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41024     '') as_fn_error $? "missing file argument" ;;
41025     esac
41026     as_fn_append CONFIG_FILES " '$ac_optarg'"
41027     ac_need_defaults=false;;
41028   --header | --heade | --head | --hea )
41029     $ac_shift
41030     case $ac_optarg in
41031     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41032     esac
41033     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
41034     ac_need_defaults=false;;
41035   --he | --h)
41036     # Conflict between --help and --header
41037     as_fn_error $? "ambiguous option: \`$1'
41038 Try \`$0 --help' for more information.";;
41039   --help | --hel | -h )
41040     $as_echo "$ac_cs_usage"; exit ;;
41041   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41042   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41043     ac_cs_silent=: ;;
41044
41045   # This is an error.
41046   -*) as_fn_error $? "unrecognized option: \`$1'
41047 Try \`$0 --help' for more information." ;;
41048
41049   *) as_fn_append ac_config_targets " $1"
41050      ac_need_defaults=false ;;
41051
41052   esac
41053   shift
41054 done
41055
41056 ac_configure_extra_args=
41057
41058 if $ac_cs_silent; then
41059   exec 6>/dev/null
41060   ac_configure_extra_args="$ac_configure_extra_args --silent"
41061 fi
41062
41063 _ACEOF
41064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41065 if \$ac_cs_recheck; then
41066   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41067   shift
41068   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41069   CONFIG_SHELL='$SHELL'
41070   export CONFIG_SHELL
41071   exec "\$@"
41072 fi
41073
41074 _ACEOF
41075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41076 exec 5>>config.log
41077 {
41078   echo
41079   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41080 ## Running $as_me. ##
41081 _ASBOX
41082   $as_echo "$ac_log"
41083 } >&5
41084
41085 _ACEOF
41086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41087 #
41088 # INIT-COMMANDS
41089 #
41090 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41091
41092
41093 # The HP-UX ksh and POSIX shell print the target directory to stdout
41094 # if CDPATH is set.
41095 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41096
41097 sed_quote_subst='$sed_quote_subst'
41098 double_quote_subst='$double_quote_subst'
41099 delay_variable_subst='$delay_variable_subst'
41100 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
41101 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41102 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41103 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41104 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41105 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41106 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41107 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41108 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41109 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41110 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41111 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41112 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41113 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41114 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41115 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41116 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41117 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41118 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41119 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41120 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41121 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41122 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41123 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41124 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41125 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41126 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41127 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41128 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41129 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41130 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41131 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41132 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41133 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41134 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41135 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41136 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41137 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41138 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41139 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41140 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41141 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41142 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41143 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41144 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41145 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41146 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41147 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41148 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41149 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41150 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41151 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41152 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41153 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41154 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41155 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41156 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41157 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"`'
41158 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41159 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41160 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41161 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41162 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41163 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41164 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41165 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41166 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41167 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41168 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41169 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41170 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41171 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41172 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41173 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41174 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41175 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41176 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41177 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41178 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41179 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41180 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41181 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41182 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41183 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41184 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41185 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41186 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41187 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41188 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41189 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41190 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41191 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41192 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41193 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41194 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41195 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41196 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41197 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41198 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41199 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41200 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41201 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41202 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41203 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41204 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41205 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41206 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41207 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41208 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41209 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41210 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41211 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41212 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41213 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41214 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41215 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41216 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41217 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41218 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41219 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41220 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41221 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41222 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41223 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41224 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
41225 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41226 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41227 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41228 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41229 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41230 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41231 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
41232 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
41233 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
41234 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
41235 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
41236 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
41237 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
41238 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
41239 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41240 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41241 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
41242 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
41243 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
41244 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
41245 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
41246 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
41247 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
41248 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
41249 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
41250 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
41251 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
41252 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
41253 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41254 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41255 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41256 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41257 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41258 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41259 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
41260 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
41261 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
41262 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
41263 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
41264 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
41265 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
41266 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
41267 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
41268 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
41269 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
41270 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
41271 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
41272 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41273 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
41274 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
41275 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41276 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
41277 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
41278 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
41279 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
41280 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
41281 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
41282 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
41283 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
41284 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
41285
41286 LTCC='$LTCC'
41287 LTCFLAGS='$LTCFLAGS'
41288 compiler='$compiler_DEFAULT'
41289
41290 # A function that is used when there is no print builtin or printf.
41291 func_fallback_echo ()
41292 {
41293   eval 'cat <<_LTECHO_EOF
41294 \$1
41295 _LTECHO_EOF'
41296 }
41297
41298 # Quote evaled strings.
41299 for var in AS \
41300 DLLTOOL \
41301 OBJDUMP \
41302 SHELL \
41303 ECHO \
41304 PATH_SEPARATOR \
41305 SED \
41306 GREP \
41307 EGREP \
41308 FGREP \
41309 LD \
41310 NM \
41311 LN_S \
41312 lt_SP2NL \
41313 lt_NL2SP \
41314 reload_flag \
41315 deplibs_check_method \
41316 file_magic_cmd \
41317 file_magic_glob \
41318 want_nocaseglob \
41319 sharedlib_from_linklib_cmd \
41320 AR \
41321 AR_FLAGS \
41322 archiver_list_spec \
41323 STRIP \
41324 RANLIB \
41325 CC \
41326 CFLAGS \
41327 compiler \
41328 lt_cv_sys_global_symbol_pipe \
41329 lt_cv_sys_global_symbol_to_cdecl \
41330 lt_cv_sys_global_symbol_to_c_name_address \
41331 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41332 nm_file_list_spec \
41333 lt_prog_compiler_no_builtin_flag \
41334 lt_prog_compiler_pic \
41335 lt_prog_compiler_wl \
41336 lt_prog_compiler_static \
41337 lt_cv_prog_compiler_c_o \
41338 need_locks \
41339 MANIFEST_TOOL \
41340 DSYMUTIL \
41341 NMEDIT \
41342 LIPO \
41343 OTOOL \
41344 OTOOL64 \
41345 shrext_cmds \
41346 export_dynamic_flag_spec \
41347 whole_archive_flag_spec \
41348 compiler_needs_object \
41349 with_gnu_ld \
41350 allow_undefined_flag \
41351 no_undefined_flag \
41352 hardcode_libdir_flag_spec \
41353 hardcode_libdir_separator \
41354 exclude_expsyms \
41355 include_expsyms \
41356 file_list_spec \
41357 variables_saved_for_relink \
41358 libname_spec \
41359 library_names_spec \
41360 soname_spec \
41361 install_override_mode \
41362 finish_eval \
41363 old_striplib \
41364 striplib \
41365 compiler_lib_search_dirs \
41366 predep_objects \
41367 postdep_objects \
41368 predeps \
41369 postdeps \
41370 compiler_lib_search_path \
41371 LD_CXX \
41372 reload_flag_CXX \
41373 compiler_CXX \
41374 lt_prog_compiler_no_builtin_flag_CXX \
41375 lt_prog_compiler_pic_CXX \
41376 lt_prog_compiler_wl_CXX \
41377 lt_prog_compiler_static_CXX \
41378 lt_cv_prog_compiler_c_o_CXX \
41379 export_dynamic_flag_spec_CXX \
41380 whole_archive_flag_spec_CXX \
41381 compiler_needs_object_CXX \
41382 with_gnu_ld_CXX \
41383 allow_undefined_flag_CXX \
41384 no_undefined_flag_CXX \
41385 hardcode_libdir_flag_spec_CXX \
41386 hardcode_libdir_separator_CXX \
41387 exclude_expsyms_CXX \
41388 include_expsyms_CXX \
41389 file_list_spec_CXX \
41390 compiler_lib_search_dirs_CXX \
41391 predep_objects_CXX \
41392 postdep_objects_CXX \
41393 predeps_CXX \
41394 postdeps_CXX \
41395 compiler_lib_search_path_CXX; do
41396     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41397     *[\\\\\\\`\\"\\\$]*)
41398       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
41399       ;;
41400     *)
41401       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41402       ;;
41403     esac
41404 done
41405
41406 # Double-quote double-evaled strings.
41407 for var in reload_cmds \
41408 old_postinstall_cmds \
41409 old_postuninstall_cmds \
41410 old_archive_cmds \
41411 extract_expsyms_cmds \
41412 old_archive_from_new_cmds \
41413 old_archive_from_expsyms_cmds \
41414 archive_cmds \
41415 archive_expsym_cmds \
41416 module_cmds \
41417 module_expsym_cmds \
41418 export_symbols_cmds \
41419 prelink_cmds \
41420 postlink_cmds \
41421 postinstall_cmds \
41422 postuninstall_cmds \
41423 finish_cmds \
41424 sys_lib_search_path_spec \
41425 sys_lib_dlsearch_path_spec \
41426 reload_cmds_CXX \
41427 old_archive_cmds_CXX \
41428 old_archive_from_new_cmds_CXX \
41429 old_archive_from_expsyms_cmds_CXX \
41430 archive_cmds_CXX \
41431 archive_expsym_cmds_CXX \
41432 module_cmds_CXX \
41433 module_expsym_cmds_CXX \
41434 export_symbols_cmds_CXX \
41435 prelink_cmds_CXX \
41436 postlink_cmds_CXX; do
41437     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41438     *[\\\\\\\`\\"\\\$]*)
41439       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
41440       ;;
41441     *)
41442       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41443       ;;
41444     esac
41445 done
41446
41447 ac_aux_dir='$ac_aux_dir'
41448 xsi_shell='$xsi_shell'
41449 lt_shell_append='$lt_shell_append'
41450
41451 # See if we are running on zsh, and set the options which allow our
41452 # commands through without removal of \ escapes INIT.
41453 if test -n "\${ZSH_VERSION+set}" ; then
41454    setopt NO_GLOB_SUBST
41455 fi
41456
41457
41458     PACKAGE='$PACKAGE'
41459     VERSION='$VERSION'
41460     TIMESTAMP='$TIMESTAMP'
41461     RM='$RM'
41462     ofile='$ofile'
41463
41464
41465
41466
41467
41468 GNUmakefile=$GNUmakefile
41469
41470 _ACEOF
41471
41472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41473
41474 # Handling of arguments.
41475 for ac_config_target in $ac_config_targets
41476 do
41477   case $ac_config_target in
41478     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
41479     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41480     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
41481     "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
41482     "guile/pre-inst-guile") CONFIG_FILES="$CONFIG_FILES guile/pre-inst-guile" ;;
41483     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41484     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
41485     "doc/credentials/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/Makefile" ;;
41486     "doc/credentials/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/openpgp/Makefile" ;;
41487     "doc/credentials/srp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/srp/Makefile" ;;
41488     "doc/credentials/x509/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/x509/Makefile" ;;
41489     "doc/cyclo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/cyclo/Makefile" ;;
41490     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
41491     "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
41492     "doc/manpages/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpages/Makefile" ;;
41493     "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
41494     "doc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/scripts/Makefile" ;;
41495     "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
41496     "gl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gl/tests/Makefile" ;;
41497     "guile/Makefile") CONFIG_FILES="$CONFIG_FILES guile/Makefile" ;;
41498     "guile/modules/Makefile") CONFIG_FILES="$CONFIG_FILES guile/modules/Makefile" ;;
41499     "guile/src/Makefile") CONFIG_FILES="$CONFIG_FILES guile/src/Makefile" ;;
41500     "guile/tests/Makefile") CONFIG_FILES="$CONFIG_FILES guile/tests/Makefile" ;;
41501     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
41502     "src/cfg/Makefile") CONFIG_FILES="$CONFIG_FILES src/cfg/Makefile" ;;
41503     "src/cfg/platon/Makefile") CONFIG_FILES="$CONFIG_FILES src/cfg/platon/Makefile" ;;
41504     "src/cfg/platon/str/Makefile") CONFIG_FILES="$CONFIG_FILES src/cfg/platon/str/Makefile" ;;
41505     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
41506     "tests/key-id/Makefile") CONFIG_FILES="$CONFIG_FILES tests/key-id/Makefile" ;;
41507     "tests/dsa/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dsa/Makefile" ;;
41508     "tests/openpgp-certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp-certs/Makefile" ;;
41509     "tests/safe-renegotiation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/safe-renegotiation/Makefile" ;;
41510     "tests/pathlen/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pathlen/Makefile" ;;
41511     "tests/pkcs1-padding/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs1-padding/Makefile" ;;
41512     "tests/pkcs12-decode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs12-decode/Makefile" ;;
41513     "tests/pkcs8-decode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs8-decode/Makefile" ;;
41514     "tests/rsa-md5-collision/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rsa-md5-collision/Makefile" ;;
41515     "tests/sha2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sha2/Makefile" ;;
41516     "tests/userid/Makefile") CONFIG_FILES="$CONFIG_FILES tests/userid/Makefile" ;;
41517     "tests/suite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/suite/Makefile" ;;
41518
41519   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
41520   esac
41521 done
41522
41523
41524 # If the user did not use the arguments to specify the items to instantiate,
41525 # then the envvar interface is used.  Set only those that are not.
41526 # We use the long form for the default assignment because of an extremely
41527 # bizarre bug on SunOS 4.1.3.
41528 if $ac_need_defaults; then
41529   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41530   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41531   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
41532   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41533 fi
41534
41535 # Have a temporary directory for convenience.  Make it in the build tree
41536 # simply because there is no reason against having it here, and in addition,
41537 # creating and moving files from /tmp can sometimes cause problems.
41538 # Hook for its removal unless debugging.
41539 # Note that there is a small window in which the directory will not be cleaned:
41540 # after its creation but before its name has been assigned to `$tmp'.
41541 $debug ||
41542 {
41543   tmp= ac_tmp=
41544   trap 'exit_status=$?
41545   : "${ac_tmp:=$tmp}"
41546   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
41547 ' 0
41548   trap 'as_fn_exit 1' 1 2 13 15
41549 }
41550 # Create a (secure) tmp directory for tmp files.
41551
41552 {
41553   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
41554   test -d "$tmp"
41555 }  ||
41556 {
41557   tmp=./conf$$-$RANDOM
41558   (umask 077 && mkdir "$tmp")
41559 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
41560 ac_tmp=$tmp
41561
41562 # Set up the scripts for CONFIG_FILES section.
41563 # No need to generate them if there are no CONFIG_FILES.
41564 # This happens for instance with `./config.status config.h'.
41565 if test -n "$CONFIG_FILES"; then
41566
41567
41568 ac_cr=`echo X | tr X '\015'`
41569 # On cygwin, bash can eat \r inside `` if the user requested igncr.
41570 # But we know of no other shell where ac_cr would be empty at this
41571 # point, so we can use a bashism as a fallback.
41572 if test "x$ac_cr" = x; then
41573   eval ac_cr=\$\'\\r\'
41574 fi
41575 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
41576 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
41577   ac_cs_awk_cr='\\r'
41578 else
41579   ac_cs_awk_cr=$ac_cr
41580 fi
41581
41582 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
41583 _ACEOF
41584
41585
41586 {
41587   echo "cat >conf$$subs.awk <<_ACEOF" &&
41588   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
41589   echo "_ACEOF"
41590 } >conf$$subs.sh ||
41591   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
41592 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
41593 ac_delim='%!_!# '
41594 for ac_last_try in false false false false false :; do
41595   . ./conf$$subs.sh ||
41596     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
41597
41598   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
41599   if test $ac_delim_n = $ac_delim_num; then
41600     break
41601   elif $ac_last_try; then
41602     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
41603   else
41604     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41605   fi
41606 done
41607 rm -f conf$$subs.sh
41608
41609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41610 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
41611 _ACEOF
41612 sed -n '
41613 h
41614 s/^/S["/; s/!.*/"]=/
41615 p
41616 g
41617 s/^[^!]*!//
41618 :repl
41619 t repl
41620 s/'"$ac_delim"'$//
41621 t delim
41622 :nl
41623 h
41624 s/\(.\{148\}\)..*/\1/
41625 t more1
41626 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
41627 p
41628 n
41629 b repl
41630 :more1
41631 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
41632 p
41633 g
41634 s/.\{148\}//
41635 t nl
41636 :delim
41637 h
41638 s/\(.\{148\}\)..*/\1/
41639 t more2
41640 s/["\\]/\\&/g; s/^/"/; s/$/"/
41641 p
41642 b
41643 :more2
41644 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
41645 p
41646 g
41647 s/.\{148\}//
41648 t delim
41649 ' <conf$$subs.awk | sed '
41650 /^[^""]/{
41651   N
41652   s/\n//
41653 }
41654 ' >>$CONFIG_STATUS || ac_write_fail=1
41655 rm -f conf$$subs.awk
41656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41657 _ACAWK
41658 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
41659   for (key in S) S_is_set[key] = 1
41660   FS = "\a"
41661
41662 }
41663 {
41664   line = $ 0
41665   nfields = split(line, field, "@")
41666   substed = 0
41667   len = length(field[1])
41668   for (i = 2; i < nfields; i++) {
41669     key = field[i]
41670     keylen = length(key)
41671     if (S_is_set[key]) {
41672       value = S[key]
41673       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
41674       len += length(value) + length(field[++i])
41675       substed = 1
41676     } else
41677       len += 1 + keylen
41678   }
41679
41680   print line
41681 }
41682
41683 _ACAWK
41684 _ACEOF
41685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41686 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
41687   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
41688 else
41689   cat
41690 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
41691   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
41692 _ACEOF
41693
41694 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
41695 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
41696 # trailing colons and then remove the whole line if VPATH becomes empty
41697 # (actually we leave an empty line to preserve line numbers).
41698 if test "x$srcdir" = x.; then
41699   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
41700 h
41701 s///
41702 s/^/:/
41703 s/[      ]*$/:/
41704 s/:\$(srcdir):/:/g
41705 s/:\${srcdir}:/:/g
41706 s/:@srcdir@:/:/g
41707 s/^:*//
41708 s/:*$//
41709 x
41710 s/\(=[   ]*\).*/\1/
41711 G
41712 s/\n//
41713 s/^[^=]*=[       ]*$//
41714 }'
41715 fi
41716
41717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41718 fi # test -n "$CONFIG_FILES"
41719
41720 # Set up the scripts for CONFIG_HEADERS section.
41721 # No need to generate them if there are no CONFIG_HEADERS.
41722 # This happens for instance with `./config.status Makefile'.
41723 if test -n "$CONFIG_HEADERS"; then
41724 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
41725 BEGIN {
41726 _ACEOF
41727
41728 # Transform confdefs.h into an awk script `defines.awk', embedded as
41729 # here-document in config.status, that substitutes the proper values into
41730 # config.h.in to produce config.h.
41731
41732 # Create a delimiter string that does not exist in confdefs.h, to ease
41733 # handling of long lines.
41734 ac_delim='%!_!# '
41735 for ac_last_try in false false :; do
41736   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
41737   if test -z "$ac_tt"; then
41738     break
41739   elif $ac_last_try; then
41740     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
41741   else
41742     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41743   fi
41744 done
41745
41746 # For the awk script, D is an array of macro values keyed by name,
41747 # likewise P contains macro parameters if any.  Preserve backslash
41748 # newline sequences.
41749
41750 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
41751 sed -n '
41752 s/.\{148\}/&'"$ac_delim"'/g
41753 t rset
41754 :rset
41755 s/^[     ]*#[    ]*define[       ][      ]*/ /
41756 t def
41757 d
41758 :def
41759 s/\\$//
41760 t bsnl
41761 s/["\\]/\\&/g
41762 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
41763 D["\1"]=" \3"/p
41764 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
41765 d
41766 :bsnl
41767 s/["\\]/\\&/g
41768 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
41769 D["\1"]=" \3\\\\\\n"\\/p
41770 t cont
41771 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
41772 t cont
41773 d
41774 :cont
41775 n
41776 s/.\{148\}/&'"$ac_delim"'/g
41777 t clear
41778 :clear
41779 s/\\$//
41780 t bsnlc
41781 s/["\\]/\\&/g; s/^/"/; s/$/"/p
41782 d
41783 :bsnlc
41784 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
41785 b cont
41786 ' <confdefs.h | sed '
41787 s/'"$ac_delim"'/"\\\
41788 "/g' >>$CONFIG_STATUS || ac_write_fail=1
41789
41790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41791   for (key in D) D_is_set[key] = 1
41792   FS = "\a"
41793 }
41794 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
41795   line = \$ 0
41796   split(line, arg, " ")
41797   if (arg[1] == "#") {
41798     defundef = arg[2]
41799     mac1 = arg[3]
41800   } else {
41801     defundef = substr(arg[1], 2)
41802     mac1 = arg[2]
41803   }
41804   split(mac1, mac2, "(") #)
41805   macro = mac2[1]
41806   prefix = substr(line, 1, index(line, defundef) - 1)
41807   if (D_is_set[macro]) {
41808     # Preserve the white space surrounding the "#".
41809     print prefix "define", macro P[macro] D[macro]
41810     next
41811   } else {
41812     # Replace #undef with comments.  This is necessary, for example,
41813     # in the case of _POSIX_SOURCE, which is predefined and required
41814     # on some systems where configure will not decide to define it.
41815     if (defundef == "undef") {
41816       print "/*", prefix defundef, macro, "*/"
41817       next
41818     }
41819   }
41820 }
41821 { print }
41822 _ACAWK
41823 _ACEOF
41824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41825   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
41826 fi # test -n "$CONFIG_HEADERS"
41827
41828
41829 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
41830 shift
41831 for ac_tag
41832 do
41833   case $ac_tag in
41834   :[FHLC]) ac_mode=$ac_tag; continue;;
41835   esac
41836   case $ac_mode$ac_tag in
41837   :[FHL]*:*);;
41838   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
41839   :[FH]-) ac_tag=-:-;;
41840   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
41841   esac
41842   ac_save_IFS=$IFS
41843   IFS=:
41844   set x $ac_tag
41845   IFS=$ac_save_IFS
41846   shift
41847   ac_file=$1
41848   shift
41849
41850   case $ac_mode in
41851   :L) ac_source=$1;;
41852   :[FH])
41853     ac_file_inputs=
41854     for ac_f
41855     do
41856       case $ac_f in
41857       -) ac_f="$ac_tmp/stdin";;
41858       *) # Look for the file first in the build tree, then in the source tree
41859          # (if the path is not absolute).  The absolute path cannot be DOS-style,
41860          # because $ac_f cannot contain `:'.
41861          test -f "$ac_f" ||
41862            case $ac_f in
41863            [\\/$]*) false;;
41864            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
41865            esac ||
41866            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
41867       esac
41868       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
41869       as_fn_append ac_file_inputs " '$ac_f'"
41870     done
41871
41872     # Let's still pretend it is `configure' which instantiates (i.e., don't
41873     # use $as_me), people would be surprised to read:
41874     #    /* config.h.  Generated by config.status.  */
41875     configure_input='Generated from '`
41876           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
41877         `' by configure.'
41878     if test x"$ac_file" != x-; then
41879       configure_input="$ac_file.  $configure_input"
41880       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
41881 $as_echo "$as_me: creating $ac_file" >&6;}
41882     fi
41883     # Neutralize special characters interpreted by sed in replacement strings.
41884     case $configure_input in #(
41885     *\&* | *\|* | *\\* )
41886        ac_sed_conf_input=`$as_echo "$configure_input" |
41887        sed 's/[\\\\&|]/\\\\&/g'`;; #(
41888     *) ac_sed_conf_input=$configure_input;;
41889     esac
41890
41891     case $ac_tag in
41892     *:-:* | *:-) cat >"$ac_tmp/stdin" \
41893       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
41894     esac
41895     ;;
41896   esac
41897
41898   ac_dir=`$as_dirname -- "$ac_file" ||
41899 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41900          X"$ac_file" : 'X\(//\)[^/]' \| \
41901          X"$ac_file" : 'X\(//\)$' \| \
41902          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
41903 $as_echo X"$ac_file" |
41904     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41905             s//\1/
41906             q
41907           }
41908           /^X\(\/\/\)[^/].*/{
41909             s//\1/
41910             q
41911           }
41912           /^X\(\/\/\)$/{
41913             s//\1/
41914             q
41915           }
41916           /^X\(\/\).*/{
41917             s//\1/
41918             q
41919           }
41920           s/.*/./; q'`
41921   as_dir="$ac_dir"; as_fn_mkdir_p
41922   ac_builddir=.
41923
41924 case "$ac_dir" in
41925 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
41926 *)
41927   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
41928   # A ".." for each directory in $ac_dir_suffix.
41929   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
41930   case $ac_top_builddir_sub in
41931   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
41932   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
41933   esac ;;
41934 esac
41935 ac_abs_top_builddir=$ac_pwd
41936 ac_abs_builddir=$ac_pwd$ac_dir_suffix
41937 # for backward compatibility:
41938 ac_top_builddir=$ac_top_build_prefix
41939
41940 case $srcdir in
41941   .)  # We are building in place.
41942     ac_srcdir=.
41943     ac_top_srcdir=$ac_top_builddir_sub
41944     ac_abs_top_srcdir=$ac_pwd ;;
41945   [\\/]* | ?:[\\/]* )  # Absolute name.
41946     ac_srcdir=$srcdir$ac_dir_suffix;
41947     ac_top_srcdir=$srcdir
41948     ac_abs_top_srcdir=$srcdir ;;
41949   *) # Relative name.
41950     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
41951     ac_top_srcdir=$ac_top_build_prefix$srcdir
41952     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
41953 esac
41954 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
41955
41956
41957   case $ac_mode in
41958   :F)
41959   #
41960   # CONFIG_FILE
41961   #
41962
41963   case $INSTALL in
41964   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41965   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
41966   esac
41967   ac_MKDIR_P=$MKDIR_P
41968   case $MKDIR_P in
41969   [\\/$]* | ?:[\\/]* ) ;;
41970   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
41971   esac
41972 _ACEOF
41973
41974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41975 # If the template does not know about datarootdir, expand it.
41976 # FIXME: This hack should be removed a few years after 2.60.
41977 ac_datarootdir_hack=; ac_datarootdir_seen=
41978 ac_sed_dataroot='
41979 /datarootdir/ {
41980   p
41981   q
41982 }
41983 /@datadir@/p
41984 /@docdir@/p
41985 /@infodir@/p
41986 /@localedir@/p
41987 /@mandir@/p'
41988 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
41989 *datarootdir*) ac_datarootdir_seen=yes;;
41990 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
41991   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
41992 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
41993 _ACEOF
41994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41995   ac_datarootdir_hack='
41996   s&@datadir@&$datadir&g
41997   s&@docdir@&$docdir&g
41998   s&@infodir@&$infodir&g
41999   s&@localedir@&$localedir&g
42000   s&@mandir@&$mandir&g
42001   s&\\\${datarootdir}&$datarootdir&g' ;;
42002 esac
42003 _ACEOF
42004
42005 # Neutralize VPATH when `$srcdir' = `.'.
42006 # Shell code in configure.ac might set extrasub.
42007 # FIXME: do we really want to maintain this feature?
42008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42009 ac_sed_extra="$ac_vpsub
42010 $extrasub
42011 _ACEOF
42012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42013 :t
42014 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42015 s|@configure_input@|$ac_sed_conf_input|;t t
42016 s&@top_builddir@&$ac_top_builddir_sub&;t t
42017 s&@top_build_prefix@&$ac_top_build_prefix&;t t
42018 s&@srcdir@&$ac_srcdir&;t t
42019 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42020 s&@top_srcdir@&$ac_top_srcdir&;t t
42021 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42022 s&@builddir@&$ac_builddir&;t t
42023 s&@abs_builddir@&$ac_abs_builddir&;t t
42024 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42025 s&@INSTALL@&$ac_INSTALL&;t t
42026 s&@MKDIR_P@&$ac_MKDIR_P&;t t
42027 $ac_datarootdir_hack
42028 "
42029 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42030   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42031
42032 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42033   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42034   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
42035       "$ac_tmp/out"`; test -z "$ac_out"; } &&
42036   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42037 which seems to be undefined.  Please make sure it is defined" >&5
42038 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42039 which seems to be undefined.  Please make sure it is defined" >&2;}
42040
42041   rm -f "$ac_tmp/stdin"
42042   case $ac_file in
42043   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42044   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42045   esac \
42046   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42047  ;;
42048   :H)
42049   #
42050   # CONFIG_HEADER
42051   #
42052   if test x"$ac_file" != x-; then
42053     {
42054       $as_echo "/* $configure_input  */" \
42055       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42056     } >"$ac_tmp/config.h" \
42057       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42058     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42059       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42060 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42061     else
42062       rm -f "$ac_file"
42063       mv "$ac_tmp/config.h" "$ac_file" \
42064         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42065     fi
42066   else
42067     $as_echo "/* $configure_input  */" \
42068       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42069       || as_fn_error $? "could not create -" "$LINENO" 5
42070   fi
42071 # Compute "$ac_file"'s index in $config_headers.
42072 _am_arg="$ac_file"
42073 _am_stamp_count=1
42074 for _am_header in $config_headers :; do
42075   case $_am_header in
42076     $_am_arg | $_am_arg:* )
42077       break ;;
42078     * )
42079       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42080   esac
42081 done
42082 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42083 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42084          X"$_am_arg" : 'X\(//\)[^/]' \| \
42085          X"$_am_arg" : 'X\(//\)$' \| \
42086          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42087 $as_echo X"$_am_arg" |
42088     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42089             s//\1/
42090             q
42091           }
42092           /^X\(\/\/\)[^/].*/{
42093             s//\1/
42094             q
42095           }
42096           /^X\(\/\/\)$/{
42097             s//\1/
42098             q
42099           }
42100           /^X\(\/\).*/{
42101             s//\1/
42102             q
42103           }
42104           s/.*/./; q'`/stamp-h$_am_stamp_count
42105  ;;
42106   :L)
42107   #
42108   # CONFIG_LINK
42109   #
42110
42111   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
42112     :
42113   else
42114     # Prefer the file from the source tree if names are identical.
42115     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
42116       ac_source=$srcdir/$ac_source
42117     fi
42118
42119     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
42120 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
42121
42122     if test ! -r "$ac_source"; then
42123       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
42124     fi
42125     rm -f "$ac_file"
42126
42127     # Try a relative symlink, then a hard link, then a copy.
42128     case $ac_source in
42129     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
42130         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
42131     esac
42132     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
42133       ln "$ac_source" "$ac_file" 2>/dev/null ||
42134       cp -p "$ac_source" "$ac_file" ||
42135       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
42136   fi
42137  ;;
42138   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42139 $as_echo "$as_me: executing $ac_file commands" >&6;}
42140  ;;
42141   esac
42142
42143
42144   case $ac_file$ac_mode in
42145     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
42146   # Autoconf 2.62 quotes --file arguments for eval, but not when files
42147   # are listed without --file.  Let's play safe and only enable the eval
42148   # if we detect the quoting.
42149   case $CONFIG_FILES in
42150   *\'*) eval set x "$CONFIG_FILES" ;;
42151   *)   set x $CONFIG_FILES ;;
42152   esac
42153   shift
42154   for mf
42155   do
42156     # Strip MF so we end up with the name of the file.
42157     mf=`echo "$mf" | sed -e 's/:.*$//'`
42158     # Check whether this is an Automake generated Makefile or not.
42159     # We used to match only the files named `Makefile.in', but
42160     # some people rename them; so instead we look at the file content.
42161     # Grep'ing the first line is not enough: some people post-process
42162     # each Makefile.in and add a new line on top of each file to say so.
42163     # Grep'ing the whole file is not good either: AIX grep has a line
42164     # limit of 2048, but all sed's we know have understand at least 4000.
42165     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
42166       dirpart=`$as_dirname -- "$mf" ||
42167 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42168          X"$mf" : 'X\(//\)[^/]' \| \
42169          X"$mf" : 'X\(//\)$' \| \
42170          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42171 $as_echo X"$mf" |
42172     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42173             s//\1/
42174             q
42175           }
42176           /^X\(\/\/\)[^/].*/{
42177             s//\1/
42178             q
42179           }
42180           /^X\(\/\/\)$/{
42181             s//\1/
42182             q
42183           }
42184           /^X\(\/\).*/{
42185             s//\1/
42186             q
42187           }
42188           s/.*/./; q'`
42189     else
42190       continue
42191     fi
42192     # Extract the definition of DEPDIR, am__include, and am__quote
42193     # from the Makefile without running `make'.
42194     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42195     test -z "$DEPDIR" && continue
42196     am__include=`sed -n 's/^am__include = //p' < "$mf"`
42197     test -z "am__include" && continue
42198     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42199     # When using ansi2knr, U may be empty or an underscore; expand it
42200     U=`sed -n 's/^U = //p' < "$mf"`
42201     # Find all dependency output files, they are included files with
42202     # $(DEPDIR) in their names.  We invoke sed twice because it is the
42203     # simplest approach to changing $(DEPDIR) to its actual value in the
42204     # expansion.
42205     for file in `sed -n "
42206       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42207          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42208       # Make sure the directory exists.
42209       test -f "$dirpart/$file" && continue
42210       fdir=`$as_dirname -- "$file" ||
42211 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42212          X"$file" : 'X\(//\)[^/]' \| \
42213          X"$file" : 'X\(//\)$' \| \
42214          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42215 $as_echo X"$file" |
42216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42217             s//\1/
42218             q
42219           }
42220           /^X\(\/\/\)[^/].*/{
42221             s//\1/
42222             q
42223           }
42224           /^X\(\/\/\)$/{
42225             s//\1/
42226             q
42227           }
42228           /^X\(\/\).*/{
42229             s//\1/
42230             q
42231           }
42232           s/.*/./; q'`
42233       as_dir=$dirpart/$fdir; as_fn_mkdir_p
42234       # echo "creating $dirpart/$file"
42235       echo '# dummy' > "$dirpart/$file"
42236     done
42237   done
42238 }
42239  ;;
42240     "libtool":C)
42241
42242     # See if we are running on zsh, and set the options which allow our
42243     # commands through without removal of \ escapes.
42244     if test -n "${ZSH_VERSION+set}" ; then
42245       setopt NO_GLOB_SUBST
42246     fi
42247
42248     cfgfile="${ofile}T"
42249     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42250     $RM "$cfgfile"
42251
42252     cat <<_LT_EOF >> "$cfgfile"
42253 #! $SHELL
42254
42255 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
42256 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
42257 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
42258 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42259 #
42260 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
42261 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
42262 #                 Foundation, Inc.
42263 #   Written by Gordon Matzigkeit, 1996
42264 #
42265 #   This file is part of GNU Libtool.
42266 #
42267 # GNU Libtool is free software; you can redistribute it and/or
42268 # modify it under the terms of the GNU General Public License as
42269 # published by the Free Software Foundation; either version 2 of
42270 # the License, or (at your option) any later version.
42271 #
42272 # As a special exception to the GNU General Public License,
42273 # if you distribute this file as part of a program or library that
42274 # is built using GNU Libtool, you may include this file under the
42275 # same distribution terms that you use for the rest of that program.
42276 #
42277 # GNU Libtool is distributed in the hope that it will be useful,
42278 # but WITHOUT ANY WARRANTY; without even the implied warranty of
42279 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
42280 # GNU General Public License for more details.
42281 #
42282 # You should have received a copy of the GNU General Public License
42283 # along with GNU Libtool; see the file COPYING.  If not, a copy
42284 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
42285 # obtained by writing to the Free Software Foundation, Inc.,
42286 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
42287
42288
42289 # The names of the tagged configurations supported by this script.
42290 available_tags="CXX "
42291
42292 # ### BEGIN LIBTOOL CONFIG
42293
42294 # Assembler program.
42295 AS=$lt_AS
42296
42297 # DLL creation program.
42298 DLLTOOL=$lt_DLLTOOL
42299
42300 # Object dumper program.
42301 OBJDUMP=$lt_OBJDUMP
42302
42303 # Which release of libtool.m4 was used?
42304 macro_version=$macro_version
42305 macro_revision=$macro_revision
42306
42307 # Whether or not to build shared libraries.
42308 build_libtool_libs=$enable_shared
42309
42310 # Whether or not to build static libraries.
42311 build_old_libs=$enable_static
42312
42313 # What type of objects to build.
42314 pic_mode=$pic_mode
42315
42316 # Whether or not to optimize for fast installation.
42317 fast_install=$enable_fast_install
42318
42319 # Shell to use when invoking shell scripts.
42320 SHELL=$lt_SHELL
42321
42322 # An echo program that protects backslashes.
42323 ECHO=$lt_ECHO
42324
42325 # The PATH separator for the build system.
42326 PATH_SEPARATOR=$lt_PATH_SEPARATOR
42327
42328 # The host system.
42329 host_alias=$host_alias
42330 host=$host
42331 host_os=$host_os
42332
42333 # The build system.
42334 build_alias=$build_alias
42335 build=$build
42336 build_os=$build_os
42337
42338 # A sed program that does not truncate output.
42339 SED=$lt_SED
42340
42341 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42342 Xsed="\$SED -e 1s/^X//"
42343
42344 # A grep program that handles long lines.
42345 GREP=$lt_GREP
42346
42347 # An ERE matcher.
42348 EGREP=$lt_EGREP
42349
42350 # A literal string matcher.
42351 FGREP=$lt_FGREP
42352
42353 # A BSD- or MS-compatible name lister.
42354 NM=$lt_NM
42355
42356 # Whether we need soft or hard links.
42357 LN_S=$lt_LN_S
42358
42359 # What is the maximum length of a command?
42360 max_cmd_len=$max_cmd_len
42361
42362 # Object file suffix (normally "o").
42363 objext=$ac_objext
42364
42365 # Executable file suffix (normally "").
42366 exeext=$exeext
42367
42368 # whether the shell understands "unset".
42369 lt_unset=$lt_unset
42370
42371 # turn spaces into newlines.
42372 SP2NL=$lt_lt_SP2NL
42373
42374 # turn newlines into spaces.
42375 NL2SP=$lt_lt_NL2SP
42376
42377 # convert \$build file names to \$host format.
42378 to_host_file_cmd=$lt_cv_to_host_file_cmd
42379
42380 # convert \$build files to toolchain format.
42381 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42382
42383 # Method to check whether dependent libraries are shared objects.
42384 deplibs_check_method=$lt_deplibs_check_method
42385
42386 # Command to use when deplibs_check_method = "file_magic".
42387 file_magic_cmd=$lt_file_magic_cmd
42388
42389 # How to find potential files when deplibs_check_method = "file_magic".
42390 file_magic_glob=$lt_file_magic_glob
42391
42392 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42393 want_nocaseglob=$lt_want_nocaseglob
42394
42395 # Command to associate shared and link libraries.
42396 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42397
42398 # The archiver.
42399 AR=$lt_AR
42400
42401 # Flags to create an archive.
42402 AR_FLAGS=$lt_AR_FLAGS
42403
42404 # How to feed a file listing to the archiver.
42405 archiver_list_spec=$lt_archiver_list_spec
42406
42407 # A symbol stripping program.
42408 STRIP=$lt_STRIP
42409
42410 # Commands used to install an old-style archive.
42411 RANLIB=$lt_RANLIB
42412 old_postinstall_cmds=$lt_old_postinstall_cmds
42413 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42414
42415 # Whether to use a lock for old archive extraction.
42416 lock_old_archive_extraction=$lock_old_archive_extraction
42417
42418 # A C compiler.
42419 LTCC=$lt_CC
42420
42421 # LTCC compiler flags.
42422 LTCFLAGS=$lt_CFLAGS
42423
42424 # Take the output of nm and produce a listing of raw symbols and C names.
42425 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42426
42427 # Transform the output of nm in a proper C declaration.
42428 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42429
42430 # Transform the output of nm in a C name address pair.
42431 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42432
42433 # Transform the output of nm in a C name address pair when lib prefix is needed.
42434 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42435
42436 # Specify filename containing input files for \$NM.
42437 nm_file_list_spec=$lt_nm_file_list_spec
42438
42439 # The root where to search for dependent libraries,and in which our libraries should be installed.
42440 lt_sysroot=$lt_sysroot
42441
42442 # The name of the directory that contains temporary libtool files.
42443 objdir=$objdir
42444
42445 # Used to examine libraries when file_magic_cmd begins with "file".
42446 MAGIC_CMD=$MAGIC_CMD
42447
42448 # Must we lock files when doing compilation?
42449 need_locks=$lt_need_locks
42450
42451 # Manifest tool.
42452 MANIFEST_TOOL=$lt_MANIFEST_TOOL
42453
42454 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
42455 DSYMUTIL=$lt_DSYMUTIL
42456
42457 # Tool to change global to local symbols on Mac OS X.
42458 NMEDIT=$lt_NMEDIT
42459
42460 # Tool to manipulate fat objects and archives on Mac OS X.
42461 LIPO=$lt_LIPO
42462
42463 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
42464 OTOOL=$lt_OTOOL
42465
42466 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
42467 OTOOL64=$lt_OTOOL64
42468
42469 # Old archive suffix (normally "a").
42470 libext=$libext
42471
42472 # Shared library suffix (normally ".so").
42473 shrext_cmds=$lt_shrext_cmds
42474
42475 # The commands to extract the exported symbol list from a shared archive.
42476 extract_expsyms_cmds=$lt_extract_expsyms_cmds
42477
42478 # Variables whose values should be saved in libtool wrapper scripts and
42479 # restored at link time.
42480 variables_saved_for_relink=$lt_variables_saved_for_relink
42481
42482 # Do we need the "lib" prefix for modules?
42483 need_lib_prefix=$need_lib_prefix
42484
42485 # Do we need a version for libraries?
42486 need_version=$need_version
42487
42488 # Library versioning type.
42489 version_type=$version_type
42490
42491 # Shared library runtime path variable.
42492 runpath_var=$runpath_var
42493
42494 # Shared library path variable.
42495 shlibpath_var=$shlibpath_var
42496
42497 # Is shlibpath searched before the hard-coded library search path?
42498 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
42499
42500 # Format of library name prefix.
42501 libname_spec=$lt_libname_spec
42502
42503 # List of archive names.  First name is the real one, the rest are links.
42504 # The last name is the one that the linker finds with -lNAME
42505 library_names_spec=$lt_library_names_spec
42506
42507 # The coded name of the library, if different from the real name.
42508 soname_spec=$lt_soname_spec
42509
42510 # Permission mode override for installation of shared libraries.
42511 install_override_mode=$lt_install_override_mode
42512
42513 # Command to use after installation of a shared archive.
42514 postinstall_cmds=$lt_postinstall_cmds
42515
42516 # Command to use after uninstallation of a shared archive.
42517 postuninstall_cmds=$lt_postuninstall_cmds
42518
42519 # Commands used to finish a libtool library installation in a directory.
42520 finish_cmds=$lt_finish_cmds
42521
42522 # As "finish_cmds", except a single script fragment to be evaled but
42523 # not shown.
42524 finish_eval=$lt_finish_eval
42525
42526 # Whether we should hardcode library paths into libraries.
42527 hardcode_into_libs=$hardcode_into_libs
42528
42529 # Compile-time system search path for libraries.
42530 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
42531
42532 # Run-time system search path for libraries.
42533 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
42534
42535 # Whether dlopen is supported.
42536 dlopen_support=$enable_dlopen
42537
42538 # Whether dlopen of programs is supported.
42539 dlopen_self=$enable_dlopen_self
42540
42541 # Whether dlopen of statically linked programs is supported.
42542 dlopen_self_static=$enable_dlopen_self_static
42543
42544 # Commands to strip libraries.
42545 old_striplib=$lt_old_striplib
42546 striplib=$lt_striplib
42547
42548
42549 # The linker used to build libraries.
42550 LD=$lt_LD
42551
42552 # How to create reloadable object files.
42553 reload_flag=$lt_reload_flag
42554 reload_cmds=$lt_reload_cmds
42555
42556 # Commands used to build an old-style archive.
42557 old_archive_cmds=$lt_old_archive_cmds
42558
42559 # A language specific compiler.
42560 CC=$lt_compiler
42561
42562 # Is the compiler the GNU compiler?
42563 with_gcc=$GCC
42564
42565 # Compiler flag to turn off builtin functions.
42566 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
42567
42568 # Additional compiler flags for building library objects.
42569 pic_flag=$lt_lt_prog_compiler_pic
42570
42571 # How to pass a linker flag through the compiler.
42572 wl=$lt_lt_prog_compiler_wl
42573
42574 # Compiler flag to prevent dynamic linking.
42575 link_static_flag=$lt_lt_prog_compiler_static
42576
42577 # Does compiler simultaneously support -c and -o options?
42578 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
42579
42580 # Whether or not to add -lc for building shared libraries.
42581 build_libtool_need_lc=$archive_cmds_need_lc
42582
42583 # Whether or not to disallow shared libs when runtime libs are static.
42584 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
42585
42586 # Compiler flag to allow reflexive dlopens.
42587 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
42588
42589 # Compiler flag to generate shared objects directly from archives.
42590 whole_archive_flag_spec=$lt_whole_archive_flag_spec
42591
42592 # Whether the compiler copes with passing no objects directly.
42593 compiler_needs_object=$lt_compiler_needs_object
42594
42595 # Create an old-style archive from a shared archive.
42596 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
42597
42598 # Create a temporary old-style archive to link instead of a shared archive.
42599 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
42600
42601 # Commands used to build a shared archive.
42602 archive_cmds=$lt_archive_cmds
42603 archive_expsym_cmds=$lt_archive_expsym_cmds
42604
42605 # Commands used to build a loadable module if different from building
42606 # a shared archive.
42607 module_cmds=$lt_module_cmds
42608 module_expsym_cmds=$lt_module_expsym_cmds
42609
42610 # Whether we are building with GNU ld or not.
42611 with_gnu_ld=$lt_with_gnu_ld
42612
42613 # Flag that allows shared libraries with undefined symbols to be built.
42614 allow_undefined_flag=$lt_allow_undefined_flag
42615
42616 # Flag that enforces no undefined symbols.
42617 no_undefined_flag=$lt_no_undefined_flag
42618
42619 # Flag to hardcode \$libdir into a binary during linking.
42620 # This must work even if \$libdir does not exist
42621 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
42622
42623 # Whether we need a single "-rpath" flag with a separated argument.
42624 hardcode_libdir_separator=$lt_hardcode_libdir_separator
42625
42626 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
42627 # DIR into the resulting binary.
42628 hardcode_direct=$hardcode_direct
42629
42630 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
42631 # DIR into the resulting binary and the resulting library dependency is
42632 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
42633 # library is relocated.
42634 hardcode_direct_absolute=$hardcode_direct_absolute
42635
42636 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
42637 # into the resulting binary.
42638 hardcode_minus_L=$hardcode_minus_L
42639
42640 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
42641 # into the resulting binary.
42642 hardcode_shlibpath_var=$hardcode_shlibpath_var
42643
42644 # Set to "yes" if building a shared library automatically hardcodes DIR
42645 # into the library and all subsequent libraries and executables linked
42646 # against it.
42647 hardcode_automatic=$hardcode_automatic
42648
42649 # Set to yes if linker adds runtime paths of dependent libraries
42650 # to runtime path list.
42651 inherit_rpath=$inherit_rpath
42652
42653 # Whether libtool must link a program against all its dependency libraries.
42654 link_all_deplibs=$link_all_deplibs
42655
42656 # Set to "yes" if exported symbols are required.
42657 always_export_symbols=$always_export_symbols
42658
42659 # The commands to list exported symbols.
42660 export_symbols_cmds=$lt_export_symbols_cmds
42661
42662 # Symbols that should not be listed in the preloaded symbols.
42663 exclude_expsyms=$lt_exclude_expsyms
42664
42665 # Symbols that must always be exported.
42666 include_expsyms=$lt_include_expsyms
42667
42668 # Commands necessary for linking programs (against libraries) with templates.
42669 prelink_cmds=$lt_prelink_cmds
42670
42671 # Commands necessary for finishing linking programs.
42672 postlink_cmds=$lt_postlink_cmds
42673
42674 # Specify filename containing input files.
42675 file_list_spec=$lt_file_list_spec
42676
42677 # How to hardcode a shared library path into an executable.
42678 hardcode_action=$hardcode_action
42679
42680 # The directories searched by this compiler when creating a shared library.
42681 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
42682
42683 # Dependencies to place before and after the objects being linked to
42684 # create a shared library.
42685 predep_objects=$lt_predep_objects
42686 postdep_objects=$lt_postdep_objects
42687 predeps=$lt_predeps
42688 postdeps=$lt_postdeps
42689
42690 # The library search path used internally by the compiler when linking
42691 # a shared library.
42692 compiler_lib_search_path=$lt_compiler_lib_search_path
42693
42694 # ### END LIBTOOL CONFIG
42695
42696 _LT_EOF
42697
42698   case $host_os in
42699   aix3*)
42700     cat <<\_LT_EOF >> "$cfgfile"
42701 # AIX sometimes has problems with the GCC collect2 program.  For some
42702 # reason, if we set the COLLECT_NAMES environment variable, the problems
42703 # vanish in a puff of smoke.
42704 if test "X${COLLECT_NAMES+set}" != Xset; then
42705   COLLECT_NAMES=
42706   export COLLECT_NAMES
42707 fi
42708 _LT_EOF
42709     ;;
42710   esac
42711
42712
42713 ltmain="$ac_aux_dir/ltmain.sh"
42714
42715
42716   # We use sed instead of cat because bash on DJGPP gets confused if
42717   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
42718   # text mode, it properly converts lines to CR/LF.  This bash problem
42719   # is reportedly fixed, but why not run on old versions too?
42720   sed '$q' "$ltmain" >> "$cfgfile" \
42721      || (rm -f "$cfgfile"; exit 1)
42722
42723   if test x"$xsi_shell" = xyes; then
42724   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
42725 func_dirname ()\
42726 {\
42727 \    case ${1} in\
42728 \      */*) func_dirname_result="${1%/*}${2}" ;;\
42729 \      *  ) func_dirname_result="${3}" ;;\
42730 \    esac\
42731 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
42732   && mv -f "$cfgfile.tmp" "$cfgfile" \
42733     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42734 test 0 -eq $? || _lt_function_replace_fail=:
42735
42736
42737   sed -e '/^func_basename ()$/,/^} # func_basename /c\
42738 func_basename ()\
42739 {\
42740 \    func_basename_result="${1##*/}"\
42741 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
42742   && mv -f "$cfgfile.tmp" "$cfgfile" \
42743     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42744 test 0 -eq $? || _lt_function_replace_fail=:
42745
42746
42747   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
42748 func_dirname_and_basename ()\
42749 {\
42750 \    case ${1} in\
42751 \      */*) func_dirname_result="${1%/*}${2}" ;;\
42752 \      *  ) func_dirname_result="${3}" ;;\
42753 \    esac\
42754 \    func_basename_result="${1##*/}"\
42755 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
42756   && mv -f "$cfgfile.tmp" "$cfgfile" \
42757     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42758 test 0 -eq $? || _lt_function_replace_fail=:
42759
42760
42761   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
42762 func_stripname ()\
42763 {\
42764 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
42765 \    # positional parameters, so assign one to ordinary parameter first.\
42766 \    func_stripname_result=${3}\
42767 \    func_stripname_result=${func_stripname_result#"${1}"}\
42768 \    func_stripname_result=${func_stripname_result%"${2}"}\
42769 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
42770   && mv -f "$cfgfile.tmp" "$cfgfile" \
42771     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42772 test 0 -eq $? || _lt_function_replace_fail=:
42773
42774
42775   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
42776 func_split_long_opt ()\
42777 {\
42778 \    func_split_long_opt_name=${1%%=*}\
42779 \    func_split_long_opt_arg=${1#*=}\
42780 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
42781   && mv -f "$cfgfile.tmp" "$cfgfile" \
42782     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42783 test 0 -eq $? || _lt_function_replace_fail=:
42784
42785
42786   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
42787 func_split_short_opt ()\
42788 {\
42789 \    func_split_short_opt_arg=${1#??}\
42790 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
42791 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
42792   && mv -f "$cfgfile.tmp" "$cfgfile" \
42793     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42794 test 0 -eq $? || _lt_function_replace_fail=:
42795
42796
42797   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
42798 func_lo2o ()\
42799 {\
42800 \    case ${1} in\
42801 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
42802 \      *)    func_lo2o_result=${1} ;;\
42803 \    esac\
42804 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
42805   && mv -f "$cfgfile.tmp" "$cfgfile" \
42806     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42807 test 0 -eq $? || _lt_function_replace_fail=:
42808
42809
42810   sed -e '/^func_xform ()$/,/^} # func_xform /c\
42811 func_xform ()\
42812 {\
42813     func_xform_result=${1%.*}.lo\
42814 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
42815   && mv -f "$cfgfile.tmp" "$cfgfile" \
42816     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42817 test 0 -eq $? || _lt_function_replace_fail=:
42818
42819
42820   sed -e '/^func_arith ()$/,/^} # func_arith /c\
42821 func_arith ()\
42822 {\
42823     func_arith_result=$(( $* ))\
42824 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
42825   && mv -f "$cfgfile.tmp" "$cfgfile" \
42826     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42827 test 0 -eq $? || _lt_function_replace_fail=:
42828
42829
42830   sed -e '/^func_len ()$/,/^} # func_len /c\
42831 func_len ()\
42832 {\
42833     func_len_result=${#1}\
42834 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
42835   && mv -f "$cfgfile.tmp" "$cfgfile" \
42836     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42837 test 0 -eq $? || _lt_function_replace_fail=:
42838
42839 fi
42840
42841 if test x"$lt_shell_append" = xyes; then
42842   sed -e '/^func_append ()$/,/^} # func_append /c\
42843 func_append ()\
42844 {\
42845     eval "${1}+=\\${2}"\
42846 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
42847   && mv -f "$cfgfile.tmp" "$cfgfile" \
42848     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42849 test 0 -eq $? || _lt_function_replace_fail=:
42850
42851
42852   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
42853 func_append_quoted ()\
42854 {\
42855 \    func_quote_for_eval "${2}"\
42856 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
42857 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
42858   && mv -f "$cfgfile.tmp" "$cfgfile" \
42859     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42860 test 0 -eq $? || _lt_function_replace_fail=:
42861
42862
42863   # Save a `func_append' function call where possible by direct use of '+='
42864   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
42865     && mv -f "$cfgfile.tmp" "$cfgfile" \
42866       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42867   test 0 -eq $? || _lt_function_replace_fail=:
42868 else
42869   # Save a `func_append' function call even when '+=' is not available
42870   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
42871     && mv -f "$cfgfile.tmp" "$cfgfile" \
42872       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42873   test 0 -eq $? || _lt_function_replace_fail=:
42874 fi
42875
42876 if test x"$_lt_function_replace_fail" = x":"; then
42877   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
42878 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
42879 fi
42880
42881
42882    mv -f "$cfgfile" "$ofile" ||
42883     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
42884   chmod +x "$ofile"
42885
42886
42887     cat <<_LT_EOF >> "$ofile"
42888
42889 # ### BEGIN LIBTOOL TAG CONFIG: CXX
42890
42891 # The linker used to build libraries.
42892 LD=$lt_LD_CXX
42893
42894 # How to create reloadable object files.
42895 reload_flag=$lt_reload_flag_CXX
42896 reload_cmds=$lt_reload_cmds_CXX
42897
42898 # Commands used to build an old-style archive.
42899 old_archive_cmds=$lt_old_archive_cmds_CXX
42900
42901 # A language specific compiler.
42902 CC=$lt_compiler_CXX
42903
42904 # Is the compiler the GNU compiler?
42905 with_gcc=$GCC_CXX
42906
42907 # Compiler flag to turn off builtin functions.
42908 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
42909
42910 # Additional compiler flags for building library objects.
42911 pic_flag=$lt_lt_prog_compiler_pic_CXX
42912
42913 # How to pass a linker flag through the compiler.
42914 wl=$lt_lt_prog_compiler_wl_CXX
42915
42916 # Compiler flag to prevent dynamic linking.
42917 link_static_flag=$lt_lt_prog_compiler_static_CXX
42918
42919 # Does compiler simultaneously support -c and -o options?
42920 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
42921
42922 # Whether or not to add -lc for building shared libraries.
42923 build_libtool_need_lc=$archive_cmds_need_lc_CXX
42924
42925 # Whether or not to disallow shared libs when runtime libs are static.
42926 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
42927
42928 # Compiler flag to allow reflexive dlopens.
42929 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
42930
42931 # Compiler flag to generate shared objects directly from archives.
42932 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
42933
42934 # Whether the compiler copes with passing no objects directly.
42935 compiler_needs_object=$lt_compiler_needs_object_CXX
42936
42937 # Create an old-style archive from a shared archive.
42938 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
42939
42940 # Create a temporary old-style archive to link instead of a shared archive.
42941 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
42942
42943 # Commands used to build a shared archive.
42944 archive_cmds=$lt_archive_cmds_CXX
42945 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
42946
42947 # Commands used to build a loadable module if different from building
42948 # a shared archive.
42949 module_cmds=$lt_module_cmds_CXX
42950 module_expsym_cmds=$lt_module_expsym_cmds_CXX
42951
42952 # Whether we are building with GNU ld or not.
42953 with_gnu_ld=$lt_with_gnu_ld_CXX
42954
42955 # Flag that allows shared libraries with undefined symbols to be built.
42956 allow_undefined_flag=$lt_allow_undefined_flag_CXX
42957
42958 # Flag that enforces no undefined symbols.
42959 no_undefined_flag=$lt_no_undefined_flag_CXX
42960
42961 # Flag to hardcode \$libdir into a binary during linking.
42962 # This must work even if \$libdir does not exist
42963 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
42964
42965 # Whether we need a single "-rpath" flag with a separated argument.
42966 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
42967
42968 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
42969 # DIR into the resulting binary.
42970 hardcode_direct=$hardcode_direct_CXX
42971
42972 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
42973 # DIR into the resulting binary and the resulting library dependency is
42974 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
42975 # library is relocated.
42976 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
42977
42978 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
42979 # into the resulting binary.
42980 hardcode_minus_L=$hardcode_minus_L_CXX
42981
42982 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
42983 # into the resulting binary.
42984 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
42985
42986 # Set to "yes" if building a shared library automatically hardcodes DIR
42987 # into the library and all subsequent libraries and executables linked
42988 # against it.
42989 hardcode_automatic=$hardcode_automatic_CXX
42990
42991 # Set to yes if linker adds runtime paths of dependent libraries
42992 # to runtime path list.
42993 inherit_rpath=$inherit_rpath_CXX
42994
42995 # Whether libtool must link a program against all its dependency libraries.
42996 link_all_deplibs=$link_all_deplibs_CXX
42997
42998 # Set to "yes" if exported symbols are required.
42999 always_export_symbols=$always_export_symbols_CXX
43000
43001 # The commands to list exported symbols.
43002 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43003
43004 # Symbols that should not be listed in the preloaded symbols.
43005 exclude_expsyms=$lt_exclude_expsyms_CXX
43006
43007 # Symbols that must always be exported.
43008 include_expsyms=$lt_include_expsyms_CXX
43009
43010 # Commands necessary for linking programs (against libraries) with templates.
43011 prelink_cmds=$lt_prelink_cmds_CXX
43012
43013 # Commands necessary for finishing linking programs.
43014 postlink_cmds=$lt_postlink_cmds_CXX
43015
43016 # Specify filename containing input files.
43017 file_list_spec=$lt_file_list_spec_CXX
43018
43019 # How to hardcode a shared library path into an executable.
43020 hardcode_action=$hardcode_action_CXX
43021
43022 # The directories searched by this compiler when creating a shared library.
43023 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43024
43025 # Dependencies to place before and after the objects being linked to
43026 # create a shared library.
43027 predep_objects=$lt_predep_objects_CXX
43028 postdep_objects=$lt_postdep_objects_CXX
43029 predeps=$lt_predeps_CXX
43030 postdeps=$lt_postdeps_CXX
43031
43032 # The library search path used internally by the compiler when linking
43033 # a shared library.
43034 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43035
43036 # ### END LIBTOOL TAG CONFIG: CXX
43037 _LT_EOF
43038
43039  ;;
43040     "guile/pre-inst-guile":F) chmod +x guile/pre-inst-guile ;;
43041
43042   esac
43043 done # for ac_tag
43044
43045
43046 as_fn_exit 0
43047 _ACEOF
43048 ac_clean_files=$ac_clean_files_save
43049
43050 test $ac_write_fail = 0 ||
43051   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43052
43053
43054 # configure is writing to config.log, and then calls config.status.
43055 # config.status does its own redirection, appending to config.log.
43056 # Unfortunately, on DOS this fails, as config.log is still kept open
43057 # by configure, so config.status won't be able to write to it; its
43058 # output is simply discarded.  So we exec the FD to /dev/null,
43059 # effectively closing config.log, so it can be properly (re)opened and
43060 # appended to by config.status.  When coming back to configure, we
43061 # need to make the FD available again.
43062 if test "$no_create" != yes; then
43063   ac_cs_success=:
43064   ac_config_status_args=
43065   test "$silent" = yes &&
43066     ac_config_status_args="$ac_config_status_args --quiet"
43067   exec 5>/dev/null
43068   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43069   exec 5>>config.log
43070   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43071   # would make configure fail if this is the last instruction.
43072   $ac_cs_success || as_fn_exit 1
43073 fi
43074
43075 #
43076 # CONFIG_SUBDIRS section.
43077 #
43078 if test "$no_recursion" != yes; then
43079
43080   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43081   # so they do not pile up.
43082   ac_sub_configure_args=
43083   ac_prev=
43084   eval "set x $ac_configure_args"
43085   shift
43086   for ac_arg
43087   do
43088     if test -n "$ac_prev"; then
43089       ac_prev=
43090       continue
43091     fi
43092     case $ac_arg in
43093     -cache-file | --cache-file | --cache-fil | --cache-fi \
43094     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43095       ac_prev=cache_file ;;
43096     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43097     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43098     | --c=*)
43099       ;;
43100     --config-cache | -C)
43101       ;;
43102     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43103       ac_prev=srcdir ;;
43104     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43105       ;;
43106     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43107       ac_prev=prefix ;;
43108     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43109       ;;
43110     --disable-option-checking)
43111       ;;
43112     *)
43113       case $ac_arg in
43114       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43115       esac
43116       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43117     esac
43118   done
43119
43120   # Always prepend --prefix to ensure using the same prefix
43121   # in subdir configurations.
43122   ac_arg="--prefix=$prefix"
43123   case $ac_arg in
43124   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43125   esac
43126   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43127
43128   # Pass --silent
43129   if test "$silent" = yes; then
43130     ac_sub_configure_args="--silent $ac_sub_configure_args"
43131   fi
43132
43133   # Always prepend --disable-option-checking to silence warnings, since
43134   # different subdirs can have different --enable and --with options.
43135   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43136
43137   ac_popdir=`pwd`
43138   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43139
43140     # Do not complain, so a configure script can configure whichever
43141     # parts of a large source tree are present.
43142     test -d "$srcdir/$ac_dir" || continue
43143
43144     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43145     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43146     $as_echo "$ac_msg" >&6
43147     as_dir="$ac_dir"; as_fn_mkdir_p
43148     ac_builddir=.
43149
43150 case "$ac_dir" in
43151 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43152 *)
43153   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43154   # A ".." for each directory in $ac_dir_suffix.
43155   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43156   case $ac_top_builddir_sub in
43157   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43158   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43159   esac ;;
43160 esac
43161 ac_abs_top_builddir=$ac_pwd
43162 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43163 # for backward compatibility:
43164 ac_top_builddir=$ac_top_build_prefix
43165
43166 case $srcdir in
43167   .)  # We are building in place.
43168     ac_srcdir=.
43169     ac_top_srcdir=$ac_top_builddir_sub
43170     ac_abs_top_srcdir=$ac_pwd ;;
43171   [\\/]* | ?:[\\/]* )  # Absolute name.
43172     ac_srcdir=$srcdir$ac_dir_suffix;
43173     ac_top_srcdir=$srcdir
43174     ac_abs_top_srcdir=$srcdir ;;
43175   *) # Relative name.
43176     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43177     ac_top_srcdir=$ac_top_build_prefix$srcdir
43178     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43179 esac
43180 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43181
43182
43183     cd "$ac_dir"
43184
43185     # Check for guested configure; otherwise get Cygnus style configure.
43186     if test -f "$ac_srcdir/configure.gnu"; then
43187       ac_sub_configure=$ac_srcdir/configure.gnu
43188     elif test -f "$ac_srcdir/configure"; then
43189       ac_sub_configure=$ac_srcdir/configure
43190     elif test -f "$ac_srcdir/configure.in"; then
43191       # This should be Cygnus configure.
43192       ac_sub_configure=$ac_aux_dir/configure
43193     else
43194       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
43195 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43196       ac_sub_configure=
43197     fi
43198
43199     # The recursion is here.
43200     if test -n "$ac_sub_configure"; then
43201       # Make the cache file name correct relative to the subdirectory.
43202       case $cache_file in
43203       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43204       *) # Relative name.
43205         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
43206       esac
43207
43208       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43209 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43210       # The eval makes quoting arguments work.
43211       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
43212            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
43213         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
43214     fi
43215
43216     cd "$ac_popdir"
43217   done
43218 fi
43219 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43220   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43221 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43222 fi
43223
43224
43225 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
43226
43227   version:          ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
43228   Host type:        ${host}
43229   Install prefix:   ${prefix}
43230   Compiler:         ${CC}
43231   Warning flags:    errors: ${WERROR_CFLAGS} warnings: ${WARN_CFLAGS}
43232   Library types:    Shared=${enable_shared}, Static=${enable_static}
43233   Valgrind:         $opt_valgrind_tests ${VALGRIND}
43234   Guile wrappers:   $opt_guile_bindings
43235   C++ library:      $use_cxx
43236   OpenSSL library:  $enable_openssl
43237   /dev/crypto:      $enable_cryptodev
43238   Crypto library:   $cryptolib
43239   PKCS#11 support:  $with_p11_kit
43240 " >&5
43241 $as_echo "$as_me: summary of build options:
43242
43243   version:          ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
43244   Host type:        ${host}
43245   Install prefix:   ${prefix}
43246   Compiler:         ${CC}
43247   Warning flags:    errors: ${WERROR_CFLAGS} warnings: ${WARN_CFLAGS}
43248   Library types:    Shared=${enable_shared}, Static=${enable_static}
43249   Valgrind:         $opt_valgrind_tests ${VALGRIND}
43250   Guile wrappers:   $opt_guile_bindings
43251   C++ library:      $use_cxx
43252   OpenSSL library:  $enable_openssl
43253   /dev/crypto:      $enable_cryptodev
43254   Crypto library:   $cryptolib
43255   PKCS#11 support:  $with_p11_kit
43256 " >&6;}