Imported Upstream version 3.3.27
[platform/upstream/gnutls.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GnuTLS 3.3.27.
4 #
5 # Report bugs to <bugs@gnutls.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and bugs@gnutls.org
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='GnuTLS'
592 PACKAGE_TARNAME='gnutls'
593 PACKAGE_VERSION='3.3.27'
594 PACKAGE_STRING='GnuTLS 3.3.27'
595 PACKAGE_BUGREPORT='bugs@gnutls.org'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 gl_header_list=
635 gt_needs=
636 gl_func_list=
637 ac_subst_vars='ggltests_LTLIBOBJS
638 ggltests_LIBOBJS
639 ggl_LTLIBOBJS
640 ggl_LIBOBJS
641 gltests_LTLIBOBJS
642 gltests_LIBOBJS
643 gl_LTLIBOBJS
644 gl_LIBOBJS
645 CONFIG_INCLUDE
646 am__EXEEXT_FALSE
647 am__EXEEXT_TRUE
648 LTLIBOBJS
649 LIBOBJS
650 YEAR
651 ENABLE_CRYWRAP_FALSE
652 ENABLE_CRYWRAP_TRUE
653 LIBIDN_LIBS
654 LIBIDN_CFLAGS
655 NEEDS_LIBRT_FALSE
656 NEEDS_LIBRT_TRUE
657 LIBGNUTLS_CFLAGS
658 LIBGNUTLS_LIBS
659 HAVE_GUILE_FALSE
660 HAVE_GUILE_TRUE
661 guileextensiondir
662 GUILE_SITE
663 GUILE_LDFLAGS
664 GUILE_CFLAGS
665 GUILE_TOOLS
666 GUILE_CONFIG
667 GUILE
668 guile_snarf
669 GNUTLS_REQUIRES_PRIVATE
670 LIBZ_PREFIX
671 LTLIBZ
672 LIBZ
673 HAVE_LIBZ
674 DEFINE_SSIZE_T
675 LIBOPTS_DIR
676 LIBOPTS_CFLAGS
677 LIBOPTS_LDADD
678 NEED_LIBOPTS_FALSE
679 NEED_LIBOPTS_TRUE
680 INSTALL_LIBOPTS_FALSE
681 INSTALL_LIBOPTS_TRUE
682 POSIX_SHELL
683 GL_GENERATE_STDNORETURN_H_FALSE
684 GL_GENERATE_STDNORETURN_H_TRUE
685 STDNORETURN_H
686 TROUSERS_LIB
687 ENABLE_TROUSERS_FALSE
688 ENABLE_TROUSERS_TRUE
689 TSS_CFLAGS
690 TSS_LIBS
691 HAVE_BUGGY_P11_KIT_FALSE
692 HAVE_BUGGY_P11_KIT_TRUE
693 ENABLE_PKCS11_FALSE
694 ENABLE_PKCS11_TRUE
695 P11_KIT_LIBS
696 P11_KIT_CFLAGS
697 ENABLE_DANE_FALSE
698 ENABLE_DANE_TRUE
699 UNBOUND_CFLAGS
700 UNBOUND_LIBS
701 ENABLE_SSL3_FALSE
702 ENABLE_SSL3_TRUE
703 ENABLE_ARCFOUR128_FALSE
704 ENABLE_ARCFOUR128_TRUE
705 ENABLE_SELF_CHECKS_FALSE
706 ENABLE_SELF_CHECKS_TRUE
707 ENABLE_NON_SUITEB_CURVES_FALSE
708 ENABLE_NON_SUITEB_CURVES_TRUE
709 FIPS140_LIBS
710 ENABLE_FIPS140_FALSE
711 ENABLE_FIPS140_TRUE
712 LIBDL_PREFIX
713 LTLIBDL
714 LIBDL
715 HAVE_LIBDL
716 CXXCPP
717 OTOOL64
718 OTOOL
719 LIPO
720 NMEDIT
721 DSYMUTIL
722 MANIFEST_TOOL
723 DLLTOOL
724 OBJDUMP
725 NM
726 ac_ct_DUMPBIN
727 DUMPBIN
728 LD
729 FGREP
730 LIBTOOL
731 LN_S
732 WERROR_CFLAGS
733 WARN_CFLAGS
734 WSTACK_CFLAGS
735 ggltests_WITNESS
736 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
737 NEXT_SIGNAL_H
738 REPLACE_RAISE
739 REPLACE_PTHREAD_SIGMASK
740 HAVE_SIGHANDLER_T
741 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
742 HAVE_STRUCT_SIGACTION_SA_SIGACTION
743 HAVE_SIGACTION
744 HAVE_SIGINFO_T
745 HAVE_SIGSET_T
746 HAVE_RAISE
747 HAVE_PTHREAD_SIGMASK
748 HAVE_POSIX_SIGNALBLOCKING
749 GNULIB_SIGACTION
750 GNULIB_SIGPROCMASK
751 GNULIB_SIGNAL_H_SIGPIPE
752 GNULIB_RAISE
753 GNULIB_PTHREAD_SIGMASK
754 LIB_SELECT
755 HAVE_SYS_SELECT_H
756 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
757 NEXT_SYS_SELECT_H
758 REPLACE_SELECT
759 REPLACE_PSELECT
760 HAVE_PSELECT
761 GNULIB_SELECT
762 GNULIB_PSELECT
763 INET_PTON_LIB
764 GETADDRINFO_LIB
765 INET_NTOP_LIB
766 SERVENT_LIB
767 HOSTENT_LIB
768 LIB_CLOCK_GETTIME
769 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
770 NEXT_ARPA_INET_H
771 HAVE_ARPA_INET_H
772 REPLACE_INET_PTON
773 REPLACE_INET_NTOP
774 HAVE_DECL_INET_PTON
775 HAVE_DECL_INET_NTOP
776 GNULIB_INET_PTON
777 GNULIB_INET_NTOP
778 LIBTESTS_LIBDEPS
779 abs_aux_dir
780 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
781 NEXT_INTTYPES_H
782 UINT64_MAX_EQ_ULONG_MAX
783 UINT32_MAX_LT_UINTMAX_MAX
784 PRIPTR_PREFIX
785 PRI_MACROS_BROKEN
786 INT64_MAX_EQ_LONG_MAX
787 INT32_MAX_LT_INTMAX_MAX
788 REPLACE_STRTOUMAX
789 REPLACE_STRTOIMAX
790 HAVE_DECL_STRTOUMAX
791 HAVE_DECL_STRTOIMAX
792 HAVE_DECL_IMAXDIV
793 HAVE_DECL_IMAXABS
794 GNULIB_STRTOUMAX
795 GNULIB_STRTOIMAX
796 GNULIB_IMAXDIV
797 GNULIB_IMAXABS
798 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
799 NEXT_FCNTL_H
800 REPLACE_OPENAT
801 REPLACE_OPEN
802 REPLACE_FCNTL
803 HAVE_OPENAT
804 HAVE_FCNTL
805 GNULIB_OPENAT
806 GNULIB_OPEN
807 GNULIB_NONBLOCKING
808 GNULIB_FCNTL
809 gltests_WITNESS
810 HAVE_WINT_T
811 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
812 NEXT_WCHAR_H
813 REPLACE_WCSWIDTH
814 REPLACE_WCWIDTH
815 REPLACE_WCSNRTOMBS
816 REPLACE_WCSRTOMBS
817 REPLACE_WCRTOMB
818 REPLACE_MBSNRTOWCS
819 REPLACE_MBSRTOWCS
820 REPLACE_MBRLEN
821 REPLACE_MBRTOWC
822 REPLACE_MBSINIT
823 REPLACE_WCTOB
824 REPLACE_BTOWC
825 REPLACE_MBSTATE_T
826 HAVE_DECL_WCWIDTH
827 HAVE_DECL_WCTOB
828 HAVE_WCSWIDTH
829 HAVE_WCSTOK
830 HAVE_WCSSTR
831 HAVE_WCSPBRK
832 HAVE_WCSSPN
833 HAVE_WCSCSPN
834 HAVE_WCSRCHR
835 HAVE_WCSCHR
836 HAVE_WCSDUP
837 HAVE_WCSXFRM
838 HAVE_WCSCOLL
839 HAVE_WCSNCASECMP
840 HAVE_WCSCASECMP
841 HAVE_WCSNCMP
842 HAVE_WCSCMP
843 HAVE_WCSNCAT
844 HAVE_WCSCAT
845 HAVE_WCPNCPY
846 HAVE_WCSNCPY
847 HAVE_WCPCPY
848 HAVE_WCSCPY
849 HAVE_WCSNLEN
850 HAVE_WCSLEN
851 HAVE_WMEMSET
852 HAVE_WMEMMOVE
853 HAVE_WMEMCPY
854 HAVE_WMEMCMP
855 HAVE_WMEMCHR
856 HAVE_WCSNRTOMBS
857 HAVE_WCSRTOMBS
858 HAVE_WCRTOMB
859 HAVE_MBSNRTOWCS
860 HAVE_MBSRTOWCS
861 HAVE_MBRLEN
862 HAVE_MBRTOWC
863 HAVE_MBSINIT
864 HAVE_BTOWC
865 GNULIB_WCSWIDTH
866 GNULIB_WCSTOK
867 GNULIB_WCSSTR
868 GNULIB_WCSPBRK
869 GNULIB_WCSSPN
870 GNULIB_WCSCSPN
871 GNULIB_WCSRCHR
872 GNULIB_WCSCHR
873 GNULIB_WCSDUP
874 GNULIB_WCSXFRM
875 GNULIB_WCSCOLL
876 GNULIB_WCSNCASECMP
877 GNULIB_WCSCASECMP
878 GNULIB_WCSNCMP
879 GNULIB_WCSCMP
880 GNULIB_WCSNCAT
881 GNULIB_WCSCAT
882 GNULIB_WCPNCPY
883 GNULIB_WCSNCPY
884 GNULIB_WCPCPY
885 GNULIB_WCSCPY
886 GNULIB_WCSNLEN
887 GNULIB_WCSLEN
888 GNULIB_WMEMSET
889 GNULIB_WMEMMOVE
890 GNULIB_WMEMCPY
891 GNULIB_WMEMCMP
892 GNULIB_WMEMCHR
893 GNULIB_WCWIDTH
894 GNULIB_WCSNRTOMBS
895 GNULIB_WCSRTOMBS
896 GNULIB_WCRTOMB
897 GNULIB_MBSNRTOWCS
898 GNULIB_MBSRTOWCS
899 GNULIB_MBRLEN
900 GNULIB_MBRTOWC
901 GNULIB_MBSINIT
902 GNULIB_WCTOB
903 GNULIB_BTOWC
904 HAVE_FEATURES_H
905 VALGRIND
906 HAVE_UNISTD_H
907 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
908 NEXT_UNISTD_H
909 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
910 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
911 TIME_H_DEFINES_STRUCT_TIMESPEC
912 NEXT_AS_FIRST_DIRECTIVE_TIME_H
913 NEXT_TIME_H
914 REPLACE_LOCALTIME
915 REPLACE_GMTIME
916 REPLACE_TIMEGM
917 REPLACE_NANOSLEEP
918 REPLACE_MKTIME
919 REPLACE_LOCALTIME_R
920 HAVE_TIMEGM
921 HAVE_STRPTIME
922 HAVE_NANOSLEEP
923 HAVE_DECL_LOCALTIME_R
924 GNULIB_TIME_R
925 GNULIB_TIMEGM
926 GNULIB_STRPTIME
927 GNULIB_NANOSLEEP
928 GNULIB_MKTIME
929 HAVE_SYS_UIO_H
930 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
931 NEXT_SYS_UIO_H
932 HAVE_WS2TCPIP_H
933 HAVE_SYS_SOCKET_H
934 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
935 NEXT_SYS_SOCKET_H
936 HAVE_ACCEPT4
937 HAVE_SA_FAMILY_T
938 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
939 HAVE_STRUCT_SOCKADDR_STORAGE
940 GNULIB_ACCEPT4
941 GNULIB_SHUTDOWN
942 GNULIB_SETSOCKOPT
943 GNULIB_SENDTO
944 GNULIB_RECVFROM
945 GNULIB_SEND
946 GNULIB_RECV
947 GNULIB_LISTEN
948 GNULIB_GETSOCKOPT
949 GNULIB_GETSOCKNAME
950 GNULIB_GETPEERNAME
951 GNULIB_BIND
952 GNULIB_ACCEPT
953 GNULIB_CONNECT
954 GNULIB_SOCKET
955 HAVE_STRINGS_H
956 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
957 NEXT_STRINGS_H
958 NEXT_AS_FIRST_DIRECTIVE_STRING_H
959 NEXT_STRING_H
960 HAVE_DECL_STRNCASECMP
961 HAVE_STRCASECMP
962 HAVE_FFS
963 GNULIB_FFS
964 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
965 NEXT_STDLIB_H
966 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
967 NEXT_STDIO_H
968 GL_GENERATE_STDINT_H_FALSE
969 GL_GENERATE_STDINT_H_TRUE
970 STDINT_H
971 WINT_T_SUFFIX
972 WCHAR_T_SUFFIX
973 SIG_ATOMIC_T_SUFFIX
974 SIZE_T_SUFFIX
975 PTRDIFF_T_SUFFIX
976 HAVE_SIGNED_WINT_T
977 HAVE_SIGNED_WCHAR_T
978 HAVE_SIGNED_SIG_ATOMIC_T
979 BITSIZEOF_WINT_T
980 BITSIZEOF_WCHAR_T
981 BITSIZEOF_SIG_ATOMIC_T
982 BITSIZEOF_SIZE_T
983 BITSIZEOF_PTRDIFF_T
984 HAVE_SYS_BITYPES_H
985 HAVE_SYS_INTTYPES_H
986 HAVE_STDINT_H
987 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
988 NEXT_STDINT_H
989 HAVE_SYS_TYPES_H
990 HAVE_INTTYPES_H
991 HAVE_WCHAR_H
992 HAVE_UNSIGNED_LONG_LONG_INT
993 HAVE_LONG_LONG_INT
994 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
995 NEXT_STDDEF_H
996 GL_GENERATE_STDDEF_H_FALSE
997 GL_GENERATE_STDDEF_H_TRUE
998 STDDEF_H
999 HAVE_WCHAR_T
1000 HAVE_MAX_ALIGN_T
1001 REPLACE_NULL
1002 HAVE__BOOL
1003 GL_GENERATE_STDBOOL_H_FALSE
1004 GL_GENERATE_STDBOOL_H_TRUE
1005 STDBOOL_H
1006 GL_GENERATE_STDALIGN_H_FALSE
1007 GL_GENERATE_STDALIGN_H_TRUE
1008 STDALIGN_H
1009 PMCCABE
1010 GL_GENERATE_NETINET_IN_H_FALSE
1011 GL_GENERATE_NETINET_IN_H_TRUE
1012 NETINET_IN_H
1013 HAVE_NETINET_IN_H
1014 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
1015 NEXT_NETINET_IN_H
1016 HAVE_NETDB_H
1017 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
1018 NEXT_NETDB_H
1019 REPLACE_GAI_STRERROR
1020 HAVE_DECL_GETNAMEINFO
1021 HAVE_DECL_GETADDRINFO
1022 HAVE_DECL_GAI_STRERROR
1023 HAVE_DECL_FREEADDRINFO
1024 HAVE_STRUCT_ADDRINFO
1025 GNULIB_GETADDRINFO
1026 APPLE_UNIVERSAL_BUILD
1027 UNDEFINE_STRTOK_R
1028 REPLACE_STRTOK_R
1029 REPLACE_STRSIGNAL
1030 REPLACE_STRNLEN
1031 REPLACE_STRNDUP
1032 REPLACE_STRNCAT
1033 REPLACE_STRERROR_R
1034 REPLACE_STRERROR
1035 REPLACE_STRCHRNUL
1036 REPLACE_STRCASESTR
1037 REPLACE_STRSTR
1038 REPLACE_STRDUP
1039 REPLACE_STPNCPY
1040 REPLACE_MEMMEM
1041 REPLACE_MEMCHR
1042 HAVE_STRVERSCMP
1043 HAVE_DECL_STRSIGNAL
1044 HAVE_DECL_STRERROR_R
1045 HAVE_DECL_STRTOK_R
1046 HAVE_STRCASESTR
1047 HAVE_STRSEP
1048 HAVE_STRPBRK
1049 HAVE_DECL_STRNLEN
1050 HAVE_DECL_STRNDUP
1051 HAVE_DECL_STRDUP
1052 HAVE_STRCHRNUL
1053 HAVE_STPNCPY
1054 HAVE_STPCPY
1055 HAVE_RAWMEMCHR
1056 HAVE_DECL_MEMRCHR
1057 HAVE_MEMPCPY
1058 HAVE_DECL_MEMMEM
1059 HAVE_MEMCHR
1060 HAVE_FFSLL
1061 HAVE_FFSL
1062 HAVE_MBSLEN
1063 GNULIB_STRVERSCMP
1064 GNULIB_STRSIGNAL
1065 GNULIB_STRERROR_R
1066 GNULIB_STRERROR
1067 GNULIB_MBSTOK_R
1068 GNULIB_MBSSEP
1069 GNULIB_MBSSPN
1070 GNULIB_MBSPBRK
1071 GNULIB_MBSCSPN
1072 GNULIB_MBSCASESTR
1073 GNULIB_MBSPCASECMP
1074 GNULIB_MBSNCASECMP
1075 GNULIB_MBSCASECMP
1076 GNULIB_MBSSTR
1077 GNULIB_MBSRCHR
1078 GNULIB_MBSCHR
1079 GNULIB_MBSNLEN
1080 GNULIB_MBSLEN
1081 GNULIB_STRTOK_R
1082 GNULIB_STRCASESTR
1083 GNULIB_STRSTR
1084 GNULIB_STRSEP
1085 GNULIB_STRPBRK
1086 GNULIB_STRNLEN
1087 GNULIB_STRNDUP
1088 GNULIB_STRNCAT
1089 GNULIB_STRDUP
1090 GNULIB_STRCHRNUL
1091 GNULIB_STPNCPY
1092 GNULIB_STPCPY
1093 GNULIB_RAWMEMCHR
1094 GNULIB_MEMRCHR
1095 GNULIB_MEMPCPY
1096 GNULIB_MEMMEM
1097 GNULIB_MEMCHR
1098 GNULIB_FFSLL
1099 GNULIB_FFSL
1100 REPLACE_WCTOMB
1101 REPLACE_UNSETENV
1102 REPLACE_STRTOD
1103 REPLACE_SETENV
1104 REPLACE_REALPATH
1105 REPLACE_REALLOC
1106 REPLACE_RANDOM_R
1107 REPLACE_QSORT_R
1108 REPLACE_PUTENV
1109 REPLACE_PTSNAME_R
1110 REPLACE_PTSNAME
1111 REPLACE_MKSTEMP
1112 REPLACE_MBTOWC
1113 REPLACE_MALLOC
1114 REPLACE_CANONICALIZE_FILE_NAME
1115 REPLACE_CALLOC
1116 HAVE_DECL_UNSETENV
1117 HAVE_UNLOCKPT
1118 HAVE_SYS_LOADAVG_H
1119 HAVE_STRUCT_RANDOM_DATA
1120 HAVE_STRTOULL
1121 HAVE_STRTOLL
1122 HAVE_STRTOD
1123 HAVE_DECL_SETENV
1124 HAVE_SETENV
1125 HAVE_SECURE_GETENV
1126 HAVE_RPMATCH
1127 HAVE_REALPATH
1128 HAVE_RANDOM_R
1129 HAVE_RANDOM_H
1130 HAVE_RANDOM
1131 HAVE_PTSNAME_R
1132 HAVE_PTSNAME
1133 HAVE_POSIX_OPENPT
1134 HAVE_MKSTEMPS
1135 HAVE_MKSTEMP
1136 HAVE_MKOSTEMPS
1137 HAVE_MKOSTEMP
1138 HAVE_MKDTEMP
1139 HAVE_GRANTPT
1140 HAVE_GETSUBOPT
1141 HAVE_DECL_GETLOADAVG
1142 HAVE_CANONICALIZE_FILE_NAME
1143 HAVE_ATOLL
1144 HAVE__EXIT
1145 GNULIB_WCTOMB
1146 GNULIB_UNSETENV
1147 GNULIB_UNLOCKPT
1148 GNULIB_SYSTEM_POSIX
1149 GNULIB_STRTOULL
1150 GNULIB_STRTOLL
1151 GNULIB_STRTOD
1152 GNULIB_SETENV
1153 GNULIB_SECURE_GETENV
1154 GNULIB_RPMATCH
1155 GNULIB_REALPATH
1156 GNULIB_REALLOC_POSIX
1157 GNULIB_RANDOM_R
1158 GNULIB_RANDOM
1159 GNULIB_QSORT_R
1160 GNULIB_PUTENV
1161 GNULIB_PTSNAME_R
1162 GNULIB_PTSNAME
1163 GNULIB_POSIX_OPENPT
1164 GNULIB_MKSTEMPS
1165 GNULIB_MKSTEMP
1166 GNULIB_MKOSTEMPS
1167 GNULIB_MKOSTEMP
1168 GNULIB_MKDTEMP
1169 GNULIB_MBTOWC
1170 GNULIB_MALLOC_POSIX
1171 GNULIB_GRANTPT
1172 GNULIB_GETSUBOPT
1173 GNULIB_GETLOADAVG
1174 GNULIB_CANONICALIZE_FILE_NAME
1175 GNULIB_CALLOC_POSIX
1176 GNULIB_ATOLL
1177 GNULIB__EXIT
1178 HAVE_LD_VERSION_SCRIPT_FALSE
1179 HAVE_LD_VERSION_SCRIPT_TRUE
1180 HAVE_LD_OUTPUT_DEF_FALSE
1181 HAVE_LD_OUTPUT_DEF_TRUE
1182 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1183 NEXT_SYS_TIME_H
1184 REPLACE_STRUCT_TIMEVAL
1185 REPLACE_GETTIMEOFDAY
1186 HAVE_SYS_TIME_H
1187 HAVE_STRUCT_TIMEVAL
1188 HAVE_GETTIMEOFDAY
1189 GNULIB_GETTIMEOFDAY
1190 WINDOWS_64_BIT_OFF_T
1191 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
1192 NEXT_SYS_TYPES_H
1193 REPLACE_VSPRINTF
1194 REPLACE_VSNPRINTF
1195 REPLACE_VPRINTF
1196 REPLACE_VFPRINTF
1197 REPLACE_VDPRINTF
1198 REPLACE_VASPRINTF
1199 REPLACE_TMPFILE
1200 REPLACE_STDIO_WRITE_FUNCS
1201 REPLACE_STDIO_READ_FUNCS
1202 REPLACE_SPRINTF
1203 REPLACE_SNPRINTF
1204 REPLACE_RENAMEAT
1205 REPLACE_RENAME
1206 REPLACE_REMOVE
1207 REPLACE_PRINTF
1208 REPLACE_POPEN
1209 REPLACE_PERROR
1210 REPLACE_OBSTACK_PRINTF
1211 REPLACE_GETLINE
1212 REPLACE_GETDELIM
1213 REPLACE_FTELLO
1214 REPLACE_FTELL
1215 REPLACE_FSEEKO
1216 REPLACE_FSEEK
1217 REPLACE_FREOPEN
1218 REPLACE_FPURGE
1219 REPLACE_FPRINTF
1220 REPLACE_FOPEN
1221 REPLACE_FFLUSH
1222 REPLACE_FDOPEN
1223 REPLACE_FCLOSE
1224 REPLACE_DPRINTF
1225 HAVE_VDPRINTF
1226 HAVE_VASPRINTF
1227 HAVE_RENAMEAT
1228 HAVE_POPEN
1229 HAVE_PCLOSE
1230 HAVE_FTELLO
1231 HAVE_FSEEKO
1232 HAVE_DPRINTF
1233 HAVE_DECL_VSNPRINTF
1234 HAVE_DECL_SNPRINTF
1235 HAVE_DECL_OBSTACK_PRINTF
1236 HAVE_DECL_GETLINE
1237 HAVE_DECL_GETDELIM
1238 HAVE_DECL_FTELLO
1239 HAVE_DECL_FSEEKO
1240 HAVE_DECL_FPURGE
1241 GNULIB_VSPRINTF_POSIX
1242 GNULIB_VSNPRINTF
1243 GNULIB_VPRINTF_POSIX
1244 GNULIB_VPRINTF
1245 GNULIB_VFPRINTF_POSIX
1246 GNULIB_VFPRINTF
1247 GNULIB_VDPRINTF
1248 GNULIB_VSCANF
1249 GNULIB_VFSCANF
1250 GNULIB_VASPRINTF
1251 GNULIB_TMPFILE
1252 GNULIB_STDIO_H_SIGPIPE
1253 GNULIB_STDIO_H_NONBLOCKING
1254 GNULIB_SPRINTF_POSIX
1255 GNULIB_SNPRINTF
1256 GNULIB_SCANF
1257 GNULIB_RENAMEAT
1258 GNULIB_RENAME
1259 GNULIB_REMOVE
1260 GNULIB_PUTS
1261 GNULIB_PUTCHAR
1262 GNULIB_PUTC
1263 GNULIB_PRINTF_POSIX
1264 GNULIB_PRINTF
1265 GNULIB_POPEN
1266 GNULIB_PERROR
1267 GNULIB_PCLOSE
1268 GNULIB_OBSTACK_PRINTF_POSIX
1269 GNULIB_OBSTACK_PRINTF
1270 GNULIB_GETLINE
1271 GNULIB_GETDELIM
1272 GNULIB_GETCHAR
1273 GNULIB_GETC
1274 GNULIB_FWRITE
1275 GNULIB_FTELLO
1276 GNULIB_FTELL
1277 GNULIB_FSEEKO
1278 GNULIB_FSEEK
1279 GNULIB_FSCANF
1280 GNULIB_FREOPEN
1281 GNULIB_FREAD
1282 GNULIB_FPUTS
1283 GNULIB_FPUTC
1284 GNULIB_FPURGE
1285 GNULIB_FPRINTF_POSIX
1286 GNULIB_FPRINTF
1287 GNULIB_FOPEN
1288 GNULIB_FGETS
1289 GNULIB_FGETC
1290 GNULIB_FFLUSH
1291 GNULIB_FDOPEN
1292 GNULIB_FCLOSE
1293 GNULIB_DPRINTF
1294 WINDOWS_64_BIT_ST_SIZE
1295 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1296 NEXT_SYS_STAT_H
1297 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1298 REPLACE_UTIMENSAT
1299 REPLACE_STAT
1300 REPLACE_MKNOD
1301 REPLACE_MKFIFO
1302 REPLACE_MKDIR
1303 REPLACE_LSTAT
1304 REPLACE_FUTIMENS
1305 REPLACE_FSTATAT
1306 REPLACE_FSTAT
1307 HAVE_UTIMENSAT
1308 HAVE_MKNODAT
1309 HAVE_MKNOD
1310 HAVE_MKFIFOAT
1311 HAVE_MKFIFO
1312 HAVE_MKDIRAT
1313 HAVE_LSTAT
1314 HAVE_LCHMOD
1315 HAVE_FUTIMENS
1316 HAVE_FSTATAT
1317 HAVE_FCHMODAT
1318 GNULIB_UTIMENSAT
1319 GNULIB_STAT
1320 GNULIB_MKNODAT
1321 GNULIB_MKNOD
1322 GNULIB_MKFIFOAT
1323 GNULIB_MKFIFO
1324 GNULIB_MKDIRAT
1325 GNULIB_LSTAT
1326 GNULIB_LCHMOD
1327 GNULIB_FUTIMENS
1328 GNULIB_FSTATAT
1329 GNULIB_FSTAT
1330 GNULIB_FCHMODAT
1331 REPLACE_ITOLD
1332 GL_GENERATE_FLOAT_H_FALSE
1333 GL_GENERATE_FLOAT_H_TRUE
1334 FLOAT_H
1335 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1336 NEXT_FLOAT_H
1337 EOVERFLOW_VALUE
1338 EOVERFLOW_HIDDEN
1339 ENOLINK_VALUE
1340 ENOLINK_HIDDEN
1341 EMULTIHOP_VALUE
1342 EMULTIHOP_HIDDEN
1343 GL_GENERATE_ERRNO_H_FALSE
1344 GL_GENERATE_ERRNO_H_TRUE
1345 ERRNO_H
1346 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1347 NEXT_ERRNO_H
1348 PRAGMA_COLUMNS
1349 PRAGMA_SYSTEM_HEADER
1350 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1351 INCLUDE_NEXT
1352 GL_GENERATE_BYTESWAP_H_FALSE
1353 GL_GENERATE_BYTESWAP_H_TRUE
1354 BYTESWAP_H
1355 GL_GENERATE_ALLOCA_H_FALSE
1356 GL_GENERATE_ALLOCA_H_TRUE
1357 ALLOCA_H
1358 ALLOCA
1359 LTALLOCA
1360 GL_COND_LIBTOOL_FALSE
1361 GL_COND_LIBTOOL_TRUE
1362 LIBICONV_PREFIX
1363 HAVE_LIBICONV
1364 LIBNSL_PREFIX
1365 LTLIBNSL
1366 LIBNSL
1367 HAVE_LIBNSL
1368 LIBPTHREAD_PREFIX
1369 LTLIBPTHREAD
1370 LIBPTHREAD
1371 HAVE_LIBPTHREAD
1372 LIBRT_PREFIX
1373 LTLIBRT
1374 LIBRT
1375 HAVE_LIBRT
1376 HAVE_FORK_FALSE
1377 HAVE_FORK_TRUE
1378 POSUB
1379 LTLIBINTL
1380 LIBINTL
1381 INTLLIBS
1382 LTLIBICONV
1383 LIBICONV
1384 INTL_MACOSX_LIBS
1385 XGETTEXT_EXTRA_OPTIONS
1386 MSGMERGE
1387 XGETTEXT_015
1388 XGETTEXT
1389 GMSGFMT_015
1390 MSGFMT_015
1391 GMSGFMT
1392 MSGFMT
1393 GETTEXT_MACRO_VERSION
1394 USE_NLS
1395 GTK_DOC_USE_REBASE_FALSE
1396 GTK_DOC_USE_REBASE_TRUE
1397 GTK_DOC_USE_LIBTOOL_FALSE
1398 GTK_DOC_USE_LIBTOOL_TRUE
1399 GTK_DOC_BUILD_PDF_FALSE
1400 GTK_DOC_BUILD_PDF_TRUE
1401 GTK_DOC_BUILD_HTML_FALSE
1402 GTK_DOC_BUILD_HTML_TRUE
1403 ENABLE_GTK_DOC_FALSE
1404 ENABLE_GTK_DOC_TRUE
1405 HTML_DIR
1406 GTKDOC_MKPDF
1407 GTKDOC_REBASE
1408 GTKDOC_CHECK
1409 ENABLE_TESTS_FALSE
1410 ENABLE_TESTS_TRUE
1411 ENABLE_DOC_FALSE
1412 ENABLE_DOC_TRUE
1413 LIBSOCKET
1414 HAVE_WINSOCK2_H
1415 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1416 UNISTD_H_HAVE_WINSOCK2_H
1417 REPLACE_WRITE
1418 REPLACE_USLEEP
1419 REPLACE_UNLINKAT
1420 REPLACE_UNLINK
1421 REPLACE_TTYNAME_R
1422 REPLACE_SYMLINKAT
1423 REPLACE_SYMLINK
1424 REPLACE_SLEEP
1425 REPLACE_RMDIR
1426 REPLACE_READLINKAT
1427 REPLACE_READLINK
1428 REPLACE_READ
1429 REPLACE_PWRITE
1430 REPLACE_PREAD
1431 REPLACE_LSEEK
1432 REPLACE_LINKAT
1433 REPLACE_LINK
1434 REPLACE_LCHOWN
1435 REPLACE_ISATTY
1436 REPLACE_GETPAGESIZE
1437 REPLACE_GETGROUPS
1438 REPLACE_GETLOGIN_R
1439 REPLACE_GETDTABLESIZE
1440 REPLACE_GETDOMAINNAME
1441 REPLACE_GETCWD
1442 REPLACE_FTRUNCATE
1443 REPLACE_FCHOWNAT
1444 REPLACE_DUP2
1445 REPLACE_DUP
1446 REPLACE_CLOSE
1447 REPLACE_CHOWN
1448 HAVE_SYS_PARAM_H
1449 HAVE_OS_H
1450 HAVE_DECL_TTYNAME_R
1451 HAVE_DECL_SETHOSTNAME
1452 HAVE_DECL_GETUSERSHELL
1453 HAVE_DECL_GETPAGESIZE
1454 HAVE_DECL_GETLOGIN_R
1455 HAVE_DECL_GETDOMAINNAME
1456 HAVE_DECL_FDATASYNC
1457 HAVE_DECL_FCHDIR
1458 HAVE_DECL_ENVIRON
1459 HAVE_USLEEP
1460 HAVE_UNLINKAT
1461 HAVE_SYMLINKAT
1462 HAVE_SYMLINK
1463 HAVE_SLEEP
1464 HAVE_SETHOSTNAME
1465 HAVE_READLINKAT
1466 HAVE_READLINK
1467 HAVE_PWRITE
1468 HAVE_PREAD
1469 HAVE_PIPE2
1470 HAVE_PIPE
1471 HAVE_LINKAT
1472 HAVE_LINK
1473 HAVE_LCHOWN
1474 HAVE_GROUP_MEMBER
1475 HAVE_GETPAGESIZE
1476 HAVE_GETLOGIN
1477 HAVE_GETHOSTNAME
1478 HAVE_GETGROUPS
1479 HAVE_GETDTABLESIZE
1480 HAVE_FTRUNCATE
1481 HAVE_FSYNC
1482 HAVE_FDATASYNC
1483 HAVE_FCHOWNAT
1484 HAVE_FCHDIR
1485 HAVE_FACCESSAT
1486 HAVE_EUIDACCESS
1487 HAVE_DUP3
1488 HAVE_DUP2
1489 HAVE_CHOWN
1490 GNULIB_WRITE
1491 GNULIB_USLEEP
1492 GNULIB_UNLINKAT
1493 GNULIB_UNLINK
1494 GNULIB_UNISTD_H_SIGPIPE
1495 GNULIB_UNISTD_H_NONBLOCKING
1496 GNULIB_TTYNAME_R
1497 GNULIB_SYMLINKAT
1498 GNULIB_SYMLINK
1499 GNULIB_SLEEP
1500 GNULIB_SETHOSTNAME
1501 GNULIB_RMDIR
1502 GNULIB_READLINKAT
1503 GNULIB_READLINK
1504 GNULIB_READ
1505 GNULIB_PWRITE
1506 GNULIB_PREAD
1507 GNULIB_PIPE2
1508 GNULIB_PIPE
1509 GNULIB_LSEEK
1510 GNULIB_LINKAT
1511 GNULIB_LINK
1512 GNULIB_LCHOWN
1513 GNULIB_ISATTY
1514 GNULIB_GROUP_MEMBER
1515 GNULIB_GETUSERSHELL
1516 GNULIB_GETPAGESIZE
1517 GNULIB_GETLOGIN_R
1518 GNULIB_GETLOGIN
1519 GNULIB_GETHOSTNAME
1520 GNULIB_GETGROUPS
1521 GNULIB_GETDTABLESIZE
1522 GNULIB_GETDOMAINNAME
1523 GNULIB_GETCWD
1524 GNULIB_FTRUNCATE
1525 GNULIB_FSYNC
1526 GNULIB_FDATASYNC
1527 GNULIB_FCHOWNAT
1528 GNULIB_FCHDIR
1529 GNULIB_FACCESSAT
1530 GNULIB_EUIDACCESS
1531 GNULIB_ENVIRON
1532 GNULIB_DUP3
1533 GNULIB_DUP2
1534 GNULIB_DUP
1535 GNULIB_CLOSE
1536 GNULIB_CHOWN
1537 GNULIB_CHDIR
1538 ENABLE_OPENSSL_FALSE
1539 ENABLE_OPENSSL_TRUE
1540 ENABLE_SESSION_TICKETS_FALSE
1541 ENABLE_SESSION_TICKETS_TRUE
1542 ENABLE_OCSP_FALSE
1543 ENABLE_OCSP_TRUE
1544 ENABLE_OPENPGP_FALSE
1545 ENABLE_OPENPGP_TRUE
1546 ENABLE_ECDHE_FALSE
1547 ENABLE_ECDHE_TRUE
1548 ENABLE_DHE_FALSE
1549 ENABLE_DHE_TRUE
1550 ENABLE_ANON_FALSE
1551 ENABLE_ANON_TRUE
1552 ENABLE_PSK_FALSE
1553 ENABLE_PSK_TRUE
1554 ENABLE_SRP_FALSE
1555 ENABLE_SRP_TRUE
1556 ENABLE_HEARTBEAT_FALSE
1557 ENABLE_HEARTBEAT_TRUE
1558 ENABLE_RSA_EXPORT_FALSE
1559 ENABLE_RSA_EXPORT_TRUE
1560 ENABLE_ALPN_FALSE
1561 ENABLE_ALPN_TRUE
1562 ENABLE_DTLS_SRTP_FALSE
1563 ENABLE_DTLS_SRTP_TRUE
1564 ENABLE_MINITASN1_FALSE
1565 ENABLE_MINITASN1_TRUE
1566 LIBTASN1_LIBS
1567 LIBTASN1_CFLAGS
1568 GMP_LIBS
1569 GMP_CFLAGS
1570 USE_NETTLE3_FALSE
1571 USE_NETTLE3_TRUE
1572 ENABLE_NETTLE_FALSE
1573 ENABLE_NETTLE_TRUE
1574 HOGWEED_LIBS
1575 HOGWEED_CFLAGS
1576 NETTLE_LIBS
1577 NETTLE_CFLAGS
1578 DLL_VERSION
1579 CRYWRAP_PATCHLEVEL
1580 CXX_LT_AGE
1581 CXX_LT_REVISION
1582 CXX_LT_CURRENT
1583 LT_DANE_AGE
1584 LT_DANE_REVISION
1585 LT_DANE_CURRENT
1586 LT_SSL_AGE
1587 LT_SSL_REVISION
1588 LT_SSL_CURRENT
1589 LT_AGE
1590 LT_REVISION
1591 LT_CURRENT
1592 HAVE_GCC_FALSE
1593 HAVE_GCC_TRUE
1594 HAVE_GCC_GNU89_INLINE_OPTION_FALSE
1595 HAVE_GCC_GNU89_INLINE_OPTION_TRUE
1596 ASM_X86_FALSE
1597 ASM_X86_TRUE
1598 ASM_X86_32_FALSE
1599 ASM_X86_32_TRUE
1600 ASM_X86_64_FALSE
1601 ASM_X86_64_TRUE
1602 ENABLE_PADLOCK_FALSE
1603 ENABLE_PADLOCK_TRUE
1604 ENABLE_PADLOCK
1605 ELF_FALSE
1606 ELF_TRUE
1607 MACOSX_FALSE
1608 MACOSX_TRUE
1609 WINDOWS_FALSE
1610 WINDOWS_TRUE
1611 WANT_TEST_SUITE_FALSE
1612 WANT_TEST_SUITE_TRUE
1613 ENABLE_CXX_FALSE
1614 ENABLE_CXX_TRUE
1615 NUMBER_VERSION
1616 PATCH_VERSION
1617 MINOR_VERSION
1618 MAJOR_VERSION
1619 AUTOGEN
1620 SED
1621 YFLAGS
1622 YACC
1623 am__fastdepCXX_FALSE
1624 am__fastdepCXX_TRUE
1625 CXXDEPMODE
1626 ac_ct_CXX
1627 CXXFLAGS
1628 CXX
1629 ac_ct_AR
1630 am__fastdepCCAS_FALSE
1631 am__fastdepCCAS_TRUE
1632 CCASDEPMODE
1633 CCASFLAGS
1634 CCAS
1635 RANLIB
1636 ARFLAGS
1637 AR
1638 EGREP
1639 GREP
1640 CPP
1641 am__fastdepCC_FALSE
1642 am__fastdepCC_TRUE
1643 CCDEPMODE
1644 am__nodep
1645 AMDEPBACKSLASH
1646 AMDEP_FALSE
1647 AMDEP_TRUE
1648 am__quote
1649 am__include
1650 DEPDIR
1651 OBJEXT
1652 EXEEXT
1653 ac_ct_CC
1654 CPPFLAGS
1655 LDFLAGS
1656 CFLAGS
1657 CC
1658 PKG_CONFIG
1659 AM_BACKSLASH
1660 AM_DEFAULT_VERBOSITY
1661 AM_DEFAULT_V
1662 AM_V
1663 am__untar
1664 am__tar
1665 AMTAR
1666 am__leading_dot
1667 SET_MAKE
1668 AWK
1669 mkdir_p
1670 MKDIR_P
1671 INSTALL_STRIP_PROGRAM
1672 STRIP
1673 install_sh
1674 MAKEINFO
1675 AUTOHEADER
1676 AUTOMAKE
1677 AUTOCONF
1678 ACLOCAL
1679 VERSION
1680 PACKAGE
1681 CYGPATH_W
1682 am__isrc
1683 INSTALL_DATA
1684 INSTALL_SCRIPT
1685 INSTALL_PROGRAM
1686 host_os
1687 host_vendor
1688 host_cpu
1689 host
1690 build_os
1691 build_vendor
1692 build_cpu
1693 build
1694 target_alias
1695 host_alias
1696 build_alias
1697 LIBS
1698 ECHO_T
1699 ECHO_N
1700 ECHO_C
1701 DEFS
1702 mandir
1703 localedir
1704 libdir
1705 psdir
1706 pdfdir
1707 dvidir
1708 htmldir
1709 infodir
1710 docdir
1711 oldincludedir
1712 includedir
1713 runstatedir
1714 localstatedir
1715 sharedstatedir
1716 sysconfdir
1717 datadir
1718 datarootdir
1719 libexecdir
1720 sbindir
1721 bindir
1722 program_transform_name
1723 prefix
1724 exec_prefix
1725 PACKAGE_URL
1726 PACKAGE_BUGREPORT
1727 PACKAGE_STRING
1728 PACKAGE_VERSION
1729 PACKAGE_TARNAME
1730 PACKAGE_NAME
1731 PATH_SEPARATOR
1732 SHELL'
1733 ac_subst_files=''
1734 ac_user_opts='
1735 enable_option_checking
1736 enable_silent_rules
1737 enable_dependency_tracking
1738 enable_largefile
1739 enable_cxx
1740 enable_hardware_acceleration
1741 enable_padlock
1742 with_nettle_mini
1743 with_included_libtasn1
1744 enable_dtls_srtp_support
1745 enable_alpn_support
1746 enable_rsa_export
1747 enable_heartbeat_support
1748 enable_srp_authentication
1749 enable_psk_authentication
1750 enable_anon_authentication
1751 enable_dhe
1752 enable_ecdhe
1753 enable_openpgp_authentication
1754 enable_cryptodev
1755 enable_ocsp
1756 enable_session_tickets
1757 enable_openssl_compatibility
1758 enable_doc
1759 enable_tests
1760 with_html_dir
1761 enable_gtk_doc
1762 enable_gtk_doc_html
1763 enable_gtk_doc_pdf
1764 enable_nls
1765 with_gnu_ld
1766 enable_rpath
1767 with_libiconv_prefix
1768 with_libintl_prefix
1769 with_librt_prefix
1770 with_libpthread_prefix
1771 with_libnsl_prefix
1772 enable_ld_version_script
1773 enable_valgrind_tests
1774 enable_gcc_warnings
1775 enable_static
1776 enable_shared
1777 with_pic
1778 enable_fast_install
1779 with_sysroot
1780 enable_libtool_lock
1781 enable_self_checks
1782 with_libdl_prefix
1783 enable_fips140_mode
1784 enable_non_suiteb_curves
1785 with_arcfour128
1786 with_ssl3
1787 enable_libdane
1788 with_unbound_root_key_file
1789 with_system_priority_file
1790 with_p11_kit
1791 with_tpm
1792 with_trousers_lib
1793 enable_local_libopts
1794 enable_libopts_install
1795 with_autoopts_config
1796 with_regex_header
1797 with_libregex
1798 with_libregex_cflags
1799 with_libregex_libs
1800 enable_optional_args
1801 with_zlib
1802 with_libz_prefix
1803 with_default_trust_store_pkcs11
1804 with_default_trust_store_dir
1805 with_default_trust_store_file
1806 with_default_crl_file
1807 with_default_blacklist_file
1808 enable_guile
1809 with_guile_site_dir
1810 enable_crywrap
1811 '
1812       ac_precious_vars='build_alias
1813 host_alias
1814 target_alias
1815 PKG_CONFIG
1816 CC
1817 CFLAGS
1818 LDFLAGS
1819 LIBS
1820 CPPFLAGS
1821 CPP
1822 CCAS
1823 CCASFLAGS
1824 CXX
1825 CXXFLAGS
1826 CCC
1827 YACC
1828 YFLAGS
1829 NETTLE_CFLAGS
1830 NETTLE_LIBS
1831 HOGWEED_CFLAGS
1832 HOGWEED_LIBS
1833 GMP_CFLAGS
1834 GMP_LIBS
1835 LIBTASN1_CFLAGS
1836 LIBTASN1_LIBS
1837 CXXCPP
1838 P11_KIT_CFLAGS
1839 P11_KIT_LIBS
1840 LIBIDN_CFLAGS
1841 LIBIDN_LIBS'
1842
1843
1844 # Initialize some variables set by options.
1845 ac_init_help=
1846 ac_init_version=false
1847 ac_unrecognized_opts=
1848 ac_unrecognized_sep=
1849 # The variables have the same names as the options, with
1850 # dashes changed to underlines.
1851 cache_file=/dev/null
1852 exec_prefix=NONE
1853 no_create=
1854 no_recursion=
1855 prefix=NONE
1856 program_prefix=NONE
1857 program_suffix=NONE
1858 program_transform_name=s,x,x,
1859 silent=
1860 site=
1861 srcdir=
1862 verbose=
1863 x_includes=NONE
1864 x_libraries=NONE
1865
1866 # Installation directory options.
1867 # These are left unexpanded so users can "make install exec_prefix=/foo"
1868 # and all the variables that are supposed to be based on exec_prefix
1869 # by default will actually change.
1870 # Use braces instead of parens because sh, perl, etc. also accept them.
1871 # (The list follows the same order as the GNU Coding Standards.)
1872 bindir='${exec_prefix}/bin'
1873 sbindir='${exec_prefix}/sbin'
1874 libexecdir='${exec_prefix}/libexec'
1875 datarootdir='${prefix}/share'
1876 datadir='${datarootdir}'
1877 sysconfdir='${prefix}/etc'
1878 sharedstatedir='${prefix}/com'
1879 localstatedir='${prefix}/var'
1880 runstatedir='${localstatedir}/run'
1881 includedir='${prefix}/include'
1882 oldincludedir='/usr/include'
1883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1884 infodir='${datarootdir}/info'
1885 htmldir='${docdir}'
1886 dvidir='${docdir}'
1887 pdfdir='${docdir}'
1888 psdir='${docdir}'
1889 libdir='${exec_prefix}/lib'
1890 localedir='${datarootdir}/locale'
1891 mandir='${datarootdir}/man'
1892
1893 ac_prev=
1894 ac_dashdash=
1895 for ac_option
1896 do
1897   # If the previous option needs an argument, assign it.
1898   if test -n "$ac_prev"; then
1899     eval $ac_prev=\$ac_option
1900     ac_prev=
1901     continue
1902   fi
1903
1904   case $ac_option in
1905   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1906   *=)   ac_optarg= ;;
1907   *)    ac_optarg=yes ;;
1908   esac
1909
1910   # Accept the important Cygnus configure options, so we can diagnose typos.
1911
1912   case $ac_dashdash$ac_option in
1913   --)
1914     ac_dashdash=yes ;;
1915
1916   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1917     ac_prev=bindir ;;
1918   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1919     bindir=$ac_optarg ;;
1920
1921   -build | --build | --buil | --bui | --bu)
1922     ac_prev=build_alias ;;
1923   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1924     build_alias=$ac_optarg ;;
1925
1926   -cache-file | --cache-file | --cache-fil | --cache-fi \
1927   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1928     ac_prev=cache_file ;;
1929   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1930   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1931     cache_file=$ac_optarg ;;
1932
1933   --config-cache | -C)
1934     cache_file=config.cache ;;
1935
1936   -datadir | --datadir | --datadi | --datad)
1937     ac_prev=datadir ;;
1938   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1939     datadir=$ac_optarg ;;
1940
1941   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1942   | --dataroo | --dataro | --datar)
1943     ac_prev=datarootdir ;;
1944   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1945   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1946     datarootdir=$ac_optarg ;;
1947
1948   -disable-* | --disable-*)
1949     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1950     # Reject names that are not valid shell variable names.
1951     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1952       as_fn_error $? "invalid feature name: $ac_useropt"
1953     ac_useropt_orig=$ac_useropt
1954     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1955     case $ac_user_opts in
1956       *"
1957 "enable_$ac_useropt"
1958 "*) ;;
1959       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1960          ac_unrecognized_sep=', ';;
1961     esac
1962     eval enable_$ac_useropt=no ;;
1963
1964   -docdir | --docdir | --docdi | --doc | --do)
1965     ac_prev=docdir ;;
1966   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1967     docdir=$ac_optarg ;;
1968
1969   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1970     ac_prev=dvidir ;;
1971   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1972     dvidir=$ac_optarg ;;
1973
1974   -enable-* | --enable-*)
1975     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1976     # Reject names that are not valid shell variable names.
1977     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1978       as_fn_error $? "invalid feature name: $ac_useropt"
1979     ac_useropt_orig=$ac_useropt
1980     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1981     case $ac_user_opts in
1982       *"
1983 "enable_$ac_useropt"
1984 "*) ;;
1985       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1986          ac_unrecognized_sep=', ';;
1987     esac
1988     eval enable_$ac_useropt=\$ac_optarg ;;
1989
1990   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1991   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1992   | --exec | --exe | --ex)
1993     ac_prev=exec_prefix ;;
1994   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1995   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1996   | --exec=* | --exe=* | --ex=*)
1997     exec_prefix=$ac_optarg ;;
1998
1999   -gas | --gas | --ga | --g)
2000     # Obsolete; use --with-gas.
2001     with_gas=yes ;;
2002
2003   -help | --help | --hel | --he | -h)
2004     ac_init_help=long ;;
2005   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2006     ac_init_help=recursive ;;
2007   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2008     ac_init_help=short ;;
2009
2010   -host | --host | --hos | --ho)
2011     ac_prev=host_alias ;;
2012   -host=* | --host=* | --hos=* | --ho=*)
2013     host_alias=$ac_optarg ;;
2014
2015   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2016     ac_prev=htmldir ;;
2017   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2018   | --ht=*)
2019     htmldir=$ac_optarg ;;
2020
2021   -includedir | --includedir | --includedi | --included | --include \
2022   | --includ | --inclu | --incl | --inc)
2023     ac_prev=includedir ;;
2024   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2025   | --includ=* | --inclu=* | --incl=* | --inc=*)
2026     includedir=$ac_optarg ;;
2027
2028   -infodir | --infodir | --infodi | --infod | --info | --inf)
2029     ac_prev=infodir ;;
2030   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2031     infodir=$ac_optarg ;;
2032
2033   -libdir | --libdir | --libdi | --libd)
2034     ac_prev=libdir ;;
2035   -libdir=* | --libdir=* | --libdi=* | --libd=*)
2036     libdir=$ac_optarg ;;
2037
2038   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2039   | --libexe | --libex | --libe)
2040     ac_prev=libexecdir ;;
2041   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2042   | --libexe=* | --libex=* | --libe=*)
2043     libexecdir=$ac_optarg ;;
2044
2045   -localedir | --localedir | --localedi | --localed | --locale)
2046     ac_prev=localedir ;;
2047   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2048     localedir=$ac_optarg ;;
2049
2050   -localstatedir | --localstatedir | --localstatedi | --localstated \
2051   | --localstate | --localstat | --localsta | --localst | --locals)
2052     ac_prev=localstatedir ;;
2053   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2054   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2055     localstatedir=$ac_optarg ;;
2056
2057   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2058     ac_prev=mandir ;;
2059   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2060     mandir=$ac_optarg ;;
2061
2062   -nfp | --nfp | --nf)
2063     # Obsolete; use --without-fp.
2064     with_fp=no ;;
2065
2066   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2067   | --no-cr | --no-c | -n)
2068     no_create=yes ;;
2069
2070   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2071   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2072     no_recursion=yes ;;
2073
2074   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2075   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2076   | --oldin | --oldi | --old | --ol | --o)
2077     ac_prev=oldincludedir ;;
2078   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2079   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2080   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2081     oldincludedir=$ac_optarg ;;
2082
2083   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2084     ac_prev=prefix ;;
2085   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2086     prefix=$ac_optarg ;;
2087
2088   -program-prefix | --program-prefix | --program-prefi | --program-pref \
2089   | --program-pre | --program-pr | --program-p)
2090     ac_prev=program_prefix ;;
2091   -program-prefix=* | --program-prefix=* | --program-prefi=* \
2092   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2093     program_prefix=$ac_optarg ;;
2094
2095   -program-suffix | --program-suffix | --program-suffi | --program-suff \
2096   | --program-suf | --program-su | --program-s)
2097     ac_prev=program_suffix ;;
2098   -program-suffix=* | --program-suffix=* | --program-suffi=* \
2099   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2100     program_suffix=$ac_optarg ;;
2101
2102   -program-transform-name | --program-transform-name \
2103   | --program-transform-nam | --program-transform-na \
2104   | --program-transform-n | --program-transform- \
2105   | --program-transform | --program-transfor \
2106   | --program-transfo | --program-transf \
2107   | --program-trans | --program-tran \
2108   | --progr-tra | --program-tr | --program-t)
2109     ac_prev=program_transform_name ;;
2110   -program-transform-name=* | --program-transform-name=* \
2111   | --program-transform-nam=* | --program-transform-na=* \
2112   | --program-transform-n=* | --program-transform-=* \
2113   | --program-transform=* | --program-transfor=* \
2114   | --program-transfo=* | --program-transf=* \
2115   | --program-trans=* | --program-tran=* \
2116   | --progr-tra=* | --program-tr=* | --program-t=*)
2117     program_transform_name=$ac_optarg ;;
2118
2119   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2120     ac_prev=pdfdir ;;
2121   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2122     pdfdir=$ac_optarg ;;
2123
2124   -psdir | --psdir | --psdi | --psd | --ps)
2125     ac_prev=psdir ;;
2126   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2127     psdir=$ac_optarg ;;
2128
2129   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2130   | -silent | --silent | --silen | --sile | --sil)
2131     silent=yes ;;
2132
2133   -runstatedir | --runstatedir | --runstatedi | --runstated \
2134   | --runstate | --runstat | --runsta | --runst | --runs \
2135   | --run | --ru | --r)
2136     ac_prev=runstatedir ;;
2137   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2138   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2139   | --run=* | --ru=* | --r=*)
2140     runstatedir=$ac_optarg ;;
2141
2142   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2143     ac_prev=sbindir ;;
2144   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2145   | --sbi=* | --sb=*)
2146     sbindir=$ac_optarg ;;
2147
2148   -sharedstatedir | --sharedstatedir | --sharedstatedi \
2149   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2150   | --sharedst | --shareds | --shared | --share | --shar \
2151   | --sha | --sh)
2152     ac_prev=sharedstatedir ;;
2153   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2154   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2155   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2156   | --sha=* | --sh=*)
2157     sharedstatedir=$ac_optarg ;;
2158
2159   -site | --site | --sit)
2160     ac_prev=site ;;
2161   -site=* | --site=* | --sit=*)
2162     site=$ac_optarg ;;
2163
2164   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2165     ac_prev=srcdir ;;
2166   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2167     srcdir=$ac_optarg ;;
2168
2169   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2170   | --syscon | --sysco | --sysc | --sys | --sy)
2171     ac_prev=sysconfdir ;;
2172   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2173   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2174     sysconfdir=$ac_optarg ;;
2175
2176   -target | --target | --targe | --targ | --tar | --ta | --t)
2177     ac_prev=target_alias ;;
2178   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2179     target_alias=$ac_optarg ;;
2180
2181   -v | -verbose | --verbose | --verbos | --verbo | --verb)
2182     verbose=yes ;;
2183
2184   -version | --version | --versio | --versi | --vers | -V)
2185     ac_init_version=: ;;
2186
2187   -with-* | --with-*)
2188     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2189     # Reject names that are not valid shell variable names.
2190     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2191       as_fn_error $? "invalid package name: $ac_useropt"
2192     ac_useropt_orig=$ac_useropt
2193     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2194     case $ac_user_opts in
2195       *"
2196 "with_$ac_useropt"
2197 "*) ;;
2198       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2199          ac_unrecognized_sep=', ';;
2200     esac
2201     eval with_$ac_useropt=\$ac_optarg ;;
2202
2203   -without-* | --without-*)
2204     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2205     # Reject names that are not valid shell variable names.
2206     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2207       as_fn_error $? "invalid package name: $ac_useropt"
2208     ac_useropt_orig=$ac_useropt
2209     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2210     case $ac_user_opts in
2211       *"
2212 "with_$ac_useropt"
2213 "*) ;;
2214       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2215          ac_unrecognized_sep=', ';;
2216     esac
2217     eval with_$ac_useropt=no ;;
2218
2219   --x)
2220     # Obsolete; use --with-x.
2221     with_x=yes ;;
2222
2223   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2224   | --x-incl | --x-inc | --x-in | --x-i)
2225     ac_prev=x_includes ;;
2226   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2227   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2228     x_includes=$ac_optarg ;;
2229
2230   -x-libraries | --x-libraries | --x-librarie | --x-librari \
2231   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2232     ac_prev=x_libraries ;;
2233   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2234   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2235     x_libraries=$ac_optarg ;;
2236
2237   -*) as_fn_error $? "unrecognized option: \`$ac_option'
2238 Try \`$0 --help' for more information"
2239     ;;
2240
2241   *=*)
2242     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2243     # Reject names that are not valid shell variable names.
2244     case $ac_envvar in #(
2245       '' | [0-9]* | *[!_$as_cr_alnum]* )
2246       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2247     esac
2248     eval $ac_envvar=\$ac_optarg
2249     export $ac_envvar ;;
2250
2251   *)
2252     # FIXME: should be removed in autoconf 3.0.
2253     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2254     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2255       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2256     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2257     ;;
2258
2259   esac
2260 done
2261
2262 if test -n "$ac_prev"; then
2263   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2264   as_fn_error $? "missing argument to $ac_option"
2265 fi
2266
2267 if test -n "$ac_unrecognized_opts"; then
2268   case $enable_option_checking in
2269     no) ;;
2270     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2271     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2272   esac
2273 fi
2274
2275 # Check all directory arguments for consistency.
2276 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2277                 datadir sysconfdir sharedstatedir localstatedir includedir \
2278                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2279                 libdir localedir mandir runstatedir
2280 do
2281   eval ac_val=\$$ac_var
2282   # Remove trailing slashes.
2283   case $ac_val in
2284     */ )
2285       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2286       eval $ac_var=\$ac_val;;
2287   esac
2288   # Be sure to have absolute directory names.
2289   case $ac_val in
2290     [\\/$]* | ?:[\\/]* )  continue;;
2291     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2292   esac
2293   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2294 done
2295
2296 # There might be people who depend on the old broken behavior: `$host'
2297 # used to hold the argument of --host etc.
2298 # FIXME: To remove some day.
2299 build=$build_alias
2300 host=$host_alias
2301 target=$target_alias
2302
2303 # FIXME: To remove some day.
2304 if test "x$host_alias" != x; then
2305   if test "x$build_alias" = x; then
2306     cross_compiling=maybe
2307   elif test "x$build_alias" != "x$host_alias"; then
2308     cross_compiling=yes
2309   fi
2310 fi
2311
2312 ac_tool_prefix=
2313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2314
2315 test "$silent" = yes && exec 6>/dev/null
2316
2317
2318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2319 ac_ls_di=`ls -di .` &&
2320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2321   as_fn_error $? "working directory cannot be determined"
2322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2323   as_fn_error $? "pwd does not report name of working directory"
2324
2325
2326 # Find the source files, if location was not specified.
2327 if test -z "$srcdir"; then
2328   ac_srcdir_defaulted=yes
2329   # Try the directory containing this script, then the parent directory.
2330   ac_confdir=`$as_dirname -- "$as_myself" ||
2331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2332          X"$as_myself" : 'X\(//\)[^/]' \| \
2333          X"$as_myself" : 'X\(//\)$' \| \
2334          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2335 $as_echo X"$as_myself" |
2336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2337             s//\1/
2338             q
2339           }
2340           /^X\(\/\/\)[^/].*/{
2341             s//\1/
2342             q
2343           }
2344           /^X\(\/\/\)$/{
2345             s//\1/
2346             q
2347           }
2348           /^X\(\/\).*/{
2349             s//\1/
2350             q
2351           }
2352           s/.*/./; q'`
2353   srcdir=$ac_confdir
2354   if test ! -r "$srcdir/$ac_unique_file"; then
2355     srcdir=..
2356   fi
2357 else
2358   ac_srcdir_defaulted=no
2359 fi
2360 if test ! -r "$srcdir/$ac_unique_file"; then
2361   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2362   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2363 fi
2364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2365 ac_abs_confdir=`(
2366         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2367         pwd)`
2368 # When building in place, set srcdir=.
2369 if test "$ac_abs_confdir" = "$ac_pwd"; then
2370   srcdir=.
2371 fi
2372 # Remove unnecessary trailing slashes from srcdir.
2373 # Double slashes in file names in object file debugging info
2374 # mess up M-x gdb in Emacs.
2375 case $srcdir in
2376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2377 esac
2378 for ac_var in $ac_precious_vars; do
2379   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2380   eval ac_env_${ac_var}_value=\$${ac_var}
2381   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2382   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2383 done
2384
2385 #
2386 # Report the --help message.
2387 #
2388 if test "$ac_init_help" = "long"; then
2389   # Omit some internal or obsolete options to make the list less imposing.
2390   # This message is too long to be a string in the A/UX 3.1 sh.
2391   cat <<_ACEOF
2392 \`configure' configures GnuTLS 3.3.27 to adapt to many kinds of systems.
2393
2394 Usage: $0 [OPTION]... [VAR=VALUE]...
2395
2396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2397 VAR=VALUE.  See below for descriptions of some of the useful variables.
2398
2399 Defaults for the options are specified in brackets.
2400
2401 Configuration:
2402   -h, --help              display this help and exit
2403       --help=short        display options specific to this package
2404       --help=recursive    display the short help of all the included packages
2405   -V, --version           display version information and exit
2406   -q, --quiet, --silent   do not print \`checking ...' messages
2407       --cache-file=FILE   cache test results in FILE [disabled]
2408   -C, --config-cache      alias for \`--cache-file=config.cache'
2409   -n, --no-create         do not create output files
2410       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2411
2412 Installation directories:
2413   --prefix=PREFIX         install architecture-independent files in PREFIX
2414                           [$ac_default_prefix]
2415   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2416                           [PREFIX]
2417
2418 By default, \`make install' will install all the files in
2419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2421 for instance \`--prefix=\$HOME'.
2422
2423 For better control, use the options below.
2424
2425 Fine tuning of the installation directories:
2426   --bindir=DIR            user executables [EPREFIX/bin]
2427   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2428   --libexecdir=DIR        program executables [EPREFIX/libexec]
2429   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2430   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2431   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2432   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2433   --libdir=DIR            object code libraries [EPREFIX/lib]
2434   --includedir=DIR        C header files [PREFIX/include]
2435   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2436   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2437   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2438   --infodir=DIR           info documentation [DATAROOTDIR/info]
2439   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2440   --mandir=DIR            man documentation [DATAROOTDIR/man]
2441   --docdir=DIR            documentation root [DATAROOTDIR/doc/gnutls]
2442   --htmldir=DIR           html documentation [DOCDIR]
2443   --dvidir=DIR            dvi documentation [DOCDIR]
2444   --pdfdir=DIR            pdf documentation [DOCDIR]
2445   --psdir=DIR             ps documentation [DOCDIR]
2446 _ACEOF
2447
2448   cat <<\_ACEOF
2449
2450 Program names:
2451   --program-prefix=PREFIX            prepend PREFIX to installed program names
2452   --program-suffix=SUFFIX            append SUFFIX to installed program names
2453   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2454
2455 System types:
2456   --build=BUILD     configure for building on BUILD [guessed]
2457   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2458 _ACEOF
2459 fi
2460
2461 if test -n "$ac_init_help"; then
2462   case $ac_init_help in
2463      short | recursive ) echo "Configuration of GnuTLS 3.3.27:";;
2464    esac
2465   cat <<\_ACEOF
2466
2467 Optional Features:
2468   --disable-option-checking  ignore unrecognized --enable/--with options
2469   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2470   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2471   --enable-silent-rules   less verbose build output (undo: "make V=1")
2472   --disable-silent-rules  verbose build output (undo: "make V=0")
2473   --enable-dependency-tracking
2474                           do not reject slow dependency extractors
2475   --disable-dependency-tracking
2476                           speeds up one-time build
2477   --disable-largefile     omit support for large files
2478   --disable-cxx           unconditionally disable the C++ library
2479   --disable-hardware-acceleration
2480                           unconditionally disable hardware acceleration
2481   --disable-padlock       unconditionally disable padlock acceleration
2482   --disable-dtls-srtp-support
2483                           disable support for the DTLS-SRTP extension
2484   --disable-alpn-support  disable support for the Application Layer Protocol
2485                           Negotiation (ALPN) extension
2486   --disable-rsa-export    disable the RSA-EXPORT support
2487   --disable-heartbeat-support
2488                           disable support for the heartbeat extension
2489   --disable-srp-authentication
2490                           disable the SRP authentication support
2491   --disable-psk-authentication
2492                           disable the PSK authentication support
2493   --disable-anon-authentication
2494                           disable the anonymous authentication support
2495   --disable-dhe           disable the DHE support
2496   --disable-ecdhe         disable the ECDHE support
2497   --disable-openpgp-authentication
2498                           disable the OpenPGP authentication support
2499   --enable-cryptodev      enable cryptodev support
2500   --disable-ocsp          disable OCSP support
2501   --disable-session-tickets
2502                           disable session tickets support
2503   --disable-openssl-compatibility
2504                           disable the OpenSSL compatibility support
2505   --disable-doc           don't generate any documentation
2506   --disable-tests         don't compile or run any tests
2507   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
2508   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
2509   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
2510   --disable-nls           do not use Native Language Support
2511   --disable-rpath         do not hardcode runtime library paths
2512   --enable-ld-version-script
2513                           enable linker version script (default is enabled
2514                           when possible)
2515   --disable-valgrind-tests
2516                           don't try to run self tests under valgrind
2517   --enable-gcc-warnings   turn on lots of GCC warnings (for developers)
2518   --enable-static[=PKGS]  build static libraries [default=no]
2519   --enable-shared[=PKGS]  build shared libraries [default=yes]
2520   --enable-fast-install[=PKGS]
2521                           optimize for fast installation [default=yes]
2522   --disable-libtool-lock  avoid locking (might break parallel builds)
2523   --enable-self-checks    enable self checking functionality
2524   --enable-fips140-mode   enable FIPS140-2 mode (implies self checks)
2525   --disable-non-suiteb-curves
2526                           disable curves not in SuiteB
2527   --disable-libdane       disable the built of libdane
2528   --disable-nls           disable nls support in libopts
2529   --enable-local-libopts  Use the supplied libopts tearoff code
2530   --enable-libopts-install
2531                           Install libopts with client installation
2532   --disable-optional-args not wanting optional option args
2533   --enable-guile          build GNU Guile bindings
2534   --disable-crywrap       unconditionally disable the crywrap TLS proxy
2535                           service
2536
2537 Optional Packages:
2538   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2539   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2540   --with-nettle-mini      Link against a mini-nettle (that includes mini-gmp)
2541   --with-included-libtasn1
2542                           use the included libtasn1
2543   --with-html-dir=PATH    path to installed docs
2544   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2545   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2546   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2547   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2548   --without-libintl-prefix     don't search for libintl in includedir and libdir
2549   --with-librt-prefix[=DIR]  search for librt in DIR/include and DIR/lib
2550   --without-librt-prefix     don't search for librt in includedir and libdir
2551   --with-libpthread-prefix[=DIR]  search for libpthread in DIR/include and DIR/lib
2552   --without-libpthread-prefix     don't search for libpthread in includedir and libdir
2553   --with-libnsl-prefix[=DIR]  search for libnsl in DIR/include and DIR/lib
2554   --without-libnsl-prefix     don't search for libnsl in includedir and libdir
2555   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2556                           both]
2557   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2558   --with-sysroot=DIR Search for dependent libraries within DIR
2559                         (or the compiler's sysroot if not specified).
2560   --with-libdl-prefix[=DIR]  search for libdl in DIR/include and DIR/lib
2561   --without-libdl-prefix     don't search for libdl in includedir and libdir
2562   --with-arcfour128       include ARCFOUR128 in priority strings
2563   --with-ssl3             include SSL3.0 in priority strings
2564   --with-unbound-root-key-file
2565                           specify the unbound root key file
2566   --with-system-priority-file
2567                           specify the system priority file
2568   --without-p11-kit       Build without p11-kit and PKCS#11 support
2569   --without-tpm           Disable TPM (trousers) support.
2570   --with-trousers-lib=LIB set the location of the trousers library
2571   --with-autoopts-config  specify the config-info script
2572   --with-regex-header     a reg expr header is specified
2573   --with-libregex         libregex installation prefix
2574   --with-libregex-cflags  libregex compile flags
2575   --with-libregex-libs    libregex link command arguments
2576   --without-zlib          disable zlib compression support
2577   --with-libz-prefix[=DIR]  search for libz in DIR/include and DIR/lib
2578   --without-libz-prefix     don't search for libz in includedir and libdir
2579   --with-default-trust-store-pkcs11=URI
2580                           use the given pkcs11 uri as default trust store
2581   --with-default-trust-store-dir=DIR
2582                           use the given directory as default trust store
2583   --with-default-trust-store-file=FILE
2584                           use the given file default trust store
2585   --with-default-crl-file=FILE
2586                           use the given CRL file as default
2587   --with-default-blacklist-file=FILE
2588                           use the given certificate blacklist file as default
2589   --with-guile-site-dir   use the given directory as the Guile site (use with
2590                           care)
2591
2592 Some influential environment variables:
2593   PKG_CONFIG  path to pkg-config utility
2594   CC          C compiler command
2595   CFLAGS      C compiler flags
2596   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2597               nonstandard directory <lib dir>
2598   LIBS        libraries to pass to the linker, e.g. -l<library>
2599   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2600               you have headers in a nonstandard directory <include dir>
2601   CPP         C preprocessor
2602   CCAS        assembler compiler command (defaults to CC)
2603   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2604   CXX         C++ compiler command
2605   CXXFLAGS    C++ compiler flags
2606   YACC        The `Yet Another Compiler Compiler' implementation to use.
2607               Defaults to the first program found out of: `bison -y', `byacc',
2608               `yacc'.
2609   YFLAGS      The list of arguments that will be passed by default to $YACC.
2610               This script will default YFLAGS to the empty string to avoid a
2611               default value of `-d' given by some make applications.
2612   NETTLE_CFLAGS
2613               C compiler flags for NETTLE, overriding pkg-config
2614   NETTLE_LIBS linker flags for NETTLE, overriding pkg-config
2615   HOGWEED_CFLAGS
2616               C compiler flags for HOGWEED, overriding pkg-config
2617   HOGWEED_LIBS
2618               linker flags for HOGWEED, overriding pkg-config
2619   GMP_CFLAGS  C compiler flags for gmp
2620   GMP_LIBS    linker flags for gmp
2621   LIBTASN1_CFLAGS
2622               C compiler flags for LIBTASN1, overriding pkg-config
2623   LIBTASN1_LIBS
2624               linker flags for LIBTASN1, overriding pkg-config
2625   CXXCPP      C++ preprocessor
2626   P11_KIT_CFLAGS
2627               C compiler flags for P11_KIT, overriding pkg-config
2628   P11_KIT_LIBS
2629               linker flags for P11_KIT, overriding pkg-config
2630   LIBIDN_CFLAGS
2631               C compiler flags for LIBIDN, overriding pkg-config
2632   LIBIDN_LIBS linker flags for LIBIDN, overriding pkg-config
2633
2634 Use these variables to override the choices made by `configure' or to help
2635 it to find libraries and programs with nonstandard names/locations.
2636
2637 Report bugs to <bugs@gnutls.org>.
2638 _ACEOF
2639 ac_status=$?
2640 fi
2641
2642 if test "$ac_init_help" = "recursive"; then
2643   # If there are subdirs, report their specific --help.
2644   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2645     test -d "$ac_dir" ||
2646       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2647       continue
2648     ac_builddir=.
2649
2650 case "$ac_dir" in
2651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2652 *)
2653   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2654   # A ".." for each directory in $ac_dir_suffix.
2655   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2656   case $ac_top_builddir_sub in
2657   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2658   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2659   esac ;;
2660 esac
2661 ac_abs_top_builddir=$ac_pwd
2662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2663 # for backward compatibility:
2664 ac_top_builddir=$ac_top_build_prefix
2665
2666 case $srcdir in
2667   .)  # We are building in place.
2668     ac_srcdir=.
2669     ac_top_srcdir=$ac_top_builddir_sub
2670     ac_abs_top_srcdir=$ac_pwd ;;
2671   [\\/]* | ?:[\\/]* )  # Absolute name.
2672     ac_srcdir=$srcdir$ac_dir_suffix;
2673     ac_top_srcdir=$srcdir
2674     ac_abs_top_srcdir=$srcdir ;;
2675   *) # Relative name.
2676     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2677     ac_top_srcdir=$ac_top_build_prefix$srcdir
2678     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2679 esac
2680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2681
2682     cd "$ac_dir" || { ac_status=$?; continue; }
2683     # Check for guested configure.
2684     if test -f "$ac_srcdir/configure.gnu"; then
2685       echo &&
2686       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2687     elif test -f "$ac_srcdir/configure"; then
2688       echo &&
2689       $SHELL "$ac_srcdir/configure" --help=recursive
2690     else
2691       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2692     fi || ac_status=$?
2693     cd "$ac_pwd" || { ac_status=$?; break; }
2694   done
2695 fi
2696
2697 test -n "$ac_init_help" && exit $ac_status
2698 if $ac_init_version; then
2699   cat <<\_ACEOF
2700 GnuTLS configure 3.3.27
2701 generated by GNU Autoconf 2.69
2702
2703 Copyright (C) 2012 Free Software Foundation, Inc.
2704 This configure script is free software; the Free Software Foundation
2705 gives unlimited permission to copy, distribute and modify it.
2706 _ACEOF
2707   exit
2708 fi
2709
2710 ## ------------------------ ##
2711 ## Autoconf initialization. ##
2712 ## ------------------------ ##
2713
2714 # ac_fn_c_try_compile LINENO
2715 # --------------------------
2716 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2717 ac_fn_c_try_compile ()
2718 {
2719   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2720   rm -f conftest.$ac_objext
2721   if { { ac_try="$ac_compile"
2722 case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2727 $as_echo "$ac_try_echo"; } >&5
2728   (eval "$ac_compile") 2>conftest.err
2729   ac_status=$?
2730   if test -s conftest.err; then
2731     grep -v '^ *+' conftest.err >conftest.er1
2732     cat conftest.er1 >&5
2733     mv -f conftest.er1 conftest.err
2734   fi
2735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2736   test $ac_status = 0; } && {
2737          test -z "$ac_c_werror_flag" ||
2738          test ! -s conftest.err
2739        } && test -s conftest.$ac_objext; then :
2740   ac_retval=0
2741 else
2742   $as_echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2744
2745         ac_retval=1
2746 fi
2747   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2748   as_fn_set_status $ac_retval
2749
2750 } # ac_fn_c_try_compile
2751
2752 # ac_fn_c_try_cpp LINENO
2753 # ----------------------
2754 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2755 ac_fn_c_try_cpp ()
2756 {
2757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2758   if { { ac_try="$ac_cpp conftest.$ac_ext"
2759 case "(($ac_try" in
2760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761   *) ac_try_echo=$ac_try;;
2762 esac
2763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2764 $as_echo "$ac_try_echo"; } >&5
2765   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2766   ac_status=$?
2767   if test -s conftest.err; then
2768     grep -v '^ *+' conftest.err >conftest.er1
2769     cat conftest.er1 >&5
2770     mv -f conftest.er1 conftest.err
2771   fi
2772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2773   test $ac_status = 0; } > conftest.i && {
2774          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2775          test ! -s conftest.err
2776        }; then :
2777   ac_retval=0
2778 else
2779   $as_echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782     ac_retval=1
2783 fi
2784   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2785   as_fn_set_status $ac_retval
2786
2787 } # ac_fn_c_try_cpp
2788
2789 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2790 # -------------------------------------------------------
2791 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2792 # the include files in INCLUDES and setting the cache variable VAR
2793 # accordingly.
2794 ac_fn_c_check_header_mongrel ()
2795 {
2796   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2797   if eval \${$3+:} false; then :
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2799 $as_echo_n "checking for $2... " >&6; }
2800 if eval \${$3+:} false; then :
2801   $as_echo_n "(cached) " >&6
2802 fi
2803 eval ac_res=\$$3
2804                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2805 $as_echo "$ac_res" >&6; }
2806 else
2807   # Is the header compilable?
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2809 $as_echo_n "checking $2 usability... " >&6; }
2810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811 /* end confdefs.h.  */
2812 $4
2813 #include <$2>
2814 _ACEOF
2815 if ac_fn_c_try_compile "$LINENO"; then :
2816   ac_header_compiler=yes
2817 else
2818   ac_header_compiler=no
2819 fi
2820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2822 $as_echo "$ac_header_compiler" >&6; }
2823
2824 # Is the header present?
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2826 $as_echo_n "checking $2 presence... " >&6; }
2827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828 /* end confdefs.h.  */
2829 #include <$2>
2830 _ACEOF
2831 if ac_fn_c_try_cpp "$LINENO"; then :
2832   ac_header_preproc=yes
2833 else
2834   ac_header_preproc=no
2835 fi
2836 rm -f conftest.err conftest.i conftest.$ac_ext
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2838 $as_echo "$ac_header_preproc" >&6; }
2839
2840 # So?  What about this header?
2841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2842   yes:no: )
2843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2844 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2845     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2846 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2847     ;;
2848   no:yes:* )
2849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2850 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2852 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2854 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2856 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2859 ( $as_echo "## ------------------------------ ##
2860 ## Report this to bugs@gnutls.org ##
2861 ## ------------------------------ ##"
2862      ) | sed "s/^/$as_me: WARNING:     /" >&2
2863     ;;
2864 esac
2865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2866 $as_echo_n "checking for $2... " >&6; }
2867 if eval \${$3+:} false; then :
2868   $as_echo_n "(cached) " >&6
2869 else
2870   eval "$3=\$ac_header_compiler"
2871 fi
2872 eval ac_res=\$$3
2873                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2874 $as_echo "$ac_res" >&6; }
2875 fi
2876   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2877
2878 } # ac_fn_c_check_header_mongrel
2879
2880 # ac_fn_c_try_run LINENO
2881 # ----------------------
2882 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2883 # that executables *can* be run.
2884 ac_fn_c_try_run ()
2885 {
2886   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2887   if { { ac_try="$ac_link"
2888 case "(($ac_try" in
2889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890   *) ac_try_echo=$ac_try;;
2891 esac
2892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2893 $as_echo "$ac_try_echo"; } >&5
2894   (eval "$ac_link") 2>&5
2895   ac_status=$?
2896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2897   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2898   { { case "(($ac_try" in
2899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900   *) ac_try_echo=$ac_try;;
2901 esac
2902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903 $as_echo "$ac_try_echo"; } >&5
2904   (eval "$ac_try") 2>&5
2905   ac_status=$?
2906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907   test $ac_status = 0; }; }; then :
2908   ac_retval=0
2909 else
2910   $as_echo "$as_me: program exited with status $ac_status" >&5
2911        $as_echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2913
2914        ac_retval=$ac_status
2915 fi
2916   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2917   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2918   as_fn_set_status $ac_retval
2919
2920 } # ac_fn_c_try_run
2921
2922 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2923 # -------------------------------------------------------
2924 # Tests whether HEADER exists and can be compiled using the include files in
2925 # INCLUDES, setting the cache variable VAR accordingly.
2926 ac_fn_c_check_header_compile ()
2927 {
2928   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2930 $as_echo_n "checking for $2... " >&6; }
2931 if eval \${$3+:} false; then :
2932   $as_echo_n "(cached) " >&6
2933 else
2934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2935 /* end confdefs.h.  */
2936 $4
2937 #include <$2>
2938 _ACEOF
2939 if ac_fn_c_try_compile "$LINENO"; then :
2940   eval "$3=yes"
2941 else
2942   eval "$3=no"
2943 fi
2944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2945 fi
2946 eval ac_res=\$$3
2947                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2948 $as_echo "$ac_res" >&6; }
2949   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2950
2951 } # ac_fn_c_check_header_compile
2952
2953 # ac_fn_c_try_link LINENO
2954 # -----------------------
2955 # Try to link conftest.$ac_ext, and return whether this succeeded.
2956 ac_fn_c_try_link ()
2957 {
2958   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2959   rm -f conftest.$ac_objext conftest$ac_exeext
2960   if { { ac_try="$ac_link"
2961 case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966 $as_echo "$ac_try_echo"; } >&5
2967   (eval "$ac_link") 2>conftest.err
2968   ac_status=$?
2969   if test -s conftest.err; then
2970     grep -v '^ *+' conftest.err >conftest.er1
2971     cat conftest.er1 >&5
2972     mv -f conftest.er1 conftest.err
2973   fi
2974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975   test $ac_status = 0; } && {
2976          test -z "$ac_c_werror_flag" ||
2977          test ! -s conftest.err
2978        } && test -s conftest$ac_exeext && {
2979          test "$cross_compiling" = yes ||
2980          test -x conftest$ac_exeext
2981        }; then :
2982   ac_retval=0
2983 else
2984   $as_echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987         ac_retval=1
2988 fi
2989   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2990   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2991   # interfere with the next link command; also delete a directory that is
2992   # left behind by Apple's compiler.  We do this before executing the actions.
2993   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2994   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2995   as_fn_set_status $ac_retval
2996
2997 } # ac_fn_c_try_link
2998
2999 # ac_fn_cxx_try_compile LINENO
3000 # ----------------------------
3001 # Try to compile conftest.$ac_ext, and return whether this succeeded.
3002 ac_fn_cxx_try_compile ()
3003 {
3004   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3005   rm -f conftest.$ac_objext
3006   if { { ac_try="$ac_compile"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 $as_echo "$ac_try_echo"; } >&5
3013   (eval "$ac_compile") 2>conftest.err
3014   ac_status=$?
3015   if test -s conftest.err; then
3016     grep -v '^ *+' conftest.err >conftest.er1
3017     cat conftest.er1 >&5
3018     mv -f conftest.er1 conftest.err
3019   fi
3020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3021   test $ac_status = 0; } && {
3022          test -z "$ac_cxx_werror_flag" ||
3023          test ! -s conftest.err
3024        } && test -s conftest.$ac_objext; then :
3025   ac_retval=0
3026 else
3027   $as_echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3029
3030         ac_retval=1
3031 fi
3032   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3033   as_fn_set_status $ac_retval
3034
3035 } # ac_fn_cxx_try_compile
3036
3037 # ac_fn_c_check_func LINENO FUNC VAR
3038 # ----------------------------------
3039 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3040 ac_fn_c_check_func ()
3041 {
3042   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3044 $as_echo_n "checking for $2... " >&6; }
3045 if eval \${$3+:} false; then :
3046   $as_echo_n "(cached) " >&6
3047 else
3048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h.  */
3050 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3052 #define $2 innocuous_$2
3053
3054 /* System header to define __stub macros and hopefully few prototypes,
3055     which can conflict with char $2 (); below.
3056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3057     <limits.h> exists even on freestanding compilers.  */
3058
3059 #ifdef __STDC__
3060 # include <limits.h>
3061 #else
3062 # include <assert.h>
3063 #endif
3064
3065 #undef $2
3066
3067 /* Override any GCC internal prototype to avoid an error.
3068    Use char because int might match the return type of a GCC
3069    builtin and then its argument prototype would still apply.  */
3070 #ifdef __cplusplus
3071 extern "C"
3072 #endif
3073 char $2 ();
3074 /* The GNU C library defines this for functions which it implements
3075     to always fail with ENOSYS.  Some functions are actually named
3076     something starting with __ and the normal name is an alias.  */
3077 #if defined __stub_$2 || defined __stub___$2
3078 choke me
3079 #endif
3080
3081 int
3082 main ()
3083 {
3084 return $2 ();
3085   ;
3086   return 0;
3087 }
3088 _ACEOF
3089 if ac_fn_c_try_link "$LINENO"; then :
3090   eval "$3=yes"
3091 else
3092   eval "$3=no"
3093 fi
3094 rm -f core conftest.err conftest.$ac_objext \
3095     conftest$ac_exeext conftest.$ac_ext
3096 fi
3097 eval ac_res=\$$3
3098                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3099 $as_echo "$ac_res" >&6; }
3100   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3101
3102 } # ac_fn_c_check_func
3103
3104 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3105 # --------------------------------------------
3106 # Tries to find the compile-time value of EXPR in a program that includes
3107 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3108 # computed
3109 ac_fn_c_compute_int ()
3110 {
3111   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3112   if test "$cross_compiling" = yes; then
3113     # Depending upon the size, compute the lo and hi bounds.
3114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115 /* end confdefs.h.  */
3116 $4
3117 int
3118 main ()
3119 {
3120 static int test_array [1 - 2 * !(($2) >= 0)];
3121 test_array [0] = 0;
3122 return test_array [0];
3123
3124   ;
3125   return 0;
3126 }
3127 _ACEOF
3128 if ac_fn_c_try_compile "$LINENO"; then :
3129   ac_lo=0 ac_mid=0
3130   while :; do
3131     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132 /* end confdefs.h.  */
3133 $4
3134 int
3135 main ()
3136 {
3137 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3138 test_array [0] = 0;
3139 return test_array [0];
3140
3141   ;
3142   return 0;
3143 }
3144 _ACEOF
3145 if ac_fn_c_try_compile "$LINENO"; then :
3146   ac_hi=$ac_mid; break
3147 else
3148   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3149                         if test $ac_lo -le $ac_mid; then
3150                           ac_lo= ac_hi=
3151                           break
3152                         fi
3153                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3154 fi
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156   done
3157 else
3158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h.  */
3160 $4
3161 int
3162 main ()
3163 {
3164 static int test_array [1 - 2 * !(($2) < 0)];
3165 test_array [0] = 0;
3166 return test_array [0];
3167
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 if ac_fn_c_try_compile "$LINENO"; then :
3173   ac_hi=-1 ac_mid=-1
3174   while :; do
3175     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h.  */
3177 $4
3178 int
3179 main ()
3180 {
3181 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3182 test_array [0] = 0;
3183 return test_array [0];
3184
3185   ;
3186   return 0;
3187 }
3188 _ACEOF
3189 if ac_fn_c_try_compile "$LINENO"; then :
3190   ac_lo=$ac_mid; break
3191 else
3192   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3193                         if test $ac_mid -le $ac_hi; then
3194                           ac_lo= ac_hi=
3195                           break
3196                         fi
3197                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3198 fi
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200   done
3201 else
3202   ac_lo= ac_hi=
3203 fi
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 fi
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 # Binary search between lo and hi bounds.
3208 while test "x$ac_lo" != "x$ac_hi"; do
3209   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h.  */
3212 $4
3213 int
3214 main ()
3215 {
3216 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3217 test_array [0] = 0;
3218 return test_array [0];
3219
3220   ;
3221   return 0;
3222 }
3223 _ACEOF
3224 if ac_fn_c_try_compile "$LINENO"; then :
3225   ac_hi=$ac_mid
3226 else
3227   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3228 fi
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 done
3231 case $ac_lo in #((
3232 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3233 '') ac_retval=1 ;;
3234 esac
3235   else
3236     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h.  */
3238 $4
3239 static long int longval () { return $2; }
3240 static unsigned long int ulongval () { return $2; }
3241 #include <stdio.h>
3242 #include <stdlib.h>
3243 int
3244 main ()
3245 {
3246
3247   FILE *f = fopen ("conftest.val", "w");
3248   if (! f)
3249     return 1;
3250   if (($2) < 0)
3251     {
3252       long int i = longval ();
3253       if (i != ($2))
3254         return 1;
3255       fprintf (f, "%ld", i);
3256     }
3257   else
3258     {
3259       unsigned long int i = ulongval ();
3260       if (i != ($2))
3261         return 1;
3262       fprintf (f, "%lu", i);
3263     }
3264   /* Do not output a trailing newline, as this causes \r\n confusion
3265      on some platforms.  */
3266   return ferror (f) || fclose (f) != 0;
3267
3268   ;
3269   return 0;
3270 }
3271 _ACEOF
3272 if ac_fn_c_try_run "$LINENO"; then :
3273   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3274 else
3275   ac_retval=1
3276 fi
3277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3278   conftest.$ac_objext conftest.beam conftest.$ac_ext
3279 rm -f conftest.val
3280
3281   fi
3282   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3283   as_fn_set_status $ac_retval
3284
3285 } # ac_fn_c_compute_int
3286
3287 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3288 # -------------------------------------------
3289 # Tests whether TYPE exists after having included INCLUDES, setting cache
3290 # variable VAR accordingly.
3291 ac_fn_c_check_type ()
3292 {
3293   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3295 $as_echo_n "checking for $2... " >&6; }
3296 if eval \${$3+:} false; then :
3297   $as_echo_n "(cached) " >&6
3298 else
3299   eval "$3=no"
3300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h.  */
3302 $4
3303 int
3304 main ()
3305 {
3306 if (sizeof ($2))
3307          return 0;
3308   ;
3309   return 0;
3310 }
3311 _ACEOF
3312 if ac_fn_c_try_compile "$LINENO"; then :
3313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h.  */
3315 $4
3316 int
3317 main ()
3318 {
3319 if (sizeof (($2)))
3320             return 0;
3321   ;
3322   return 0;
3323 }
3324 _ACEOF
3325 if ac_fn_c_try_compile "$LINENO"; then :
3326
3327 else
3328   eval "$3=yes"
3329 fi
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 fi
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 fi
3334 eval ac_res=\$$3
3335                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3336 $as_echo "$ac_res" >&6; }
3337   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3338
3339 } # ac_fn_c_check_type
3340
3341 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3342 # ---------------------------------------------
3343 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3344 # accordingly.
3345 ac_fn_c_check_decl ()
3346 {
3347   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3348   as_decl_name=`echo $2|sed 's/ *(.*//'`
3349   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3351 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3352 if eval \${$3+:} false; then :
3353   $as_echo_n "(cached) " >&6
3354 else
3355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h.  */
3357 $4
3358 int
3359 main ()
3360 {
3361 #ifndef $as_decl_name
3362 #ifdef __cplusplus
3363   (void) $as_decl_use;
3364 #else
3365   (void) $as_decl_name;
3366 #endif
3367 #endif
3368
3369   ;
3370   return 0;
3371 }
3372 _ACEOF
3373 if ac_fn_c_try_compile "$LINENO"; then :
3374   eval "$3=yes"
3375 else
3376   eval "$3=no"
3377 fi
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 fi
3380 eval ac_res=\$$3
3381                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3382 $as_echo "$ac_res" >&6; }
3383   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3384
3385 } # ac_fn_c_check_decl
3386
3387 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3388 # ----------------------------------------------------
3389 # Tries to find if the field MEMBER exists in type AGGR, after including
3390 # INCLUDES, setting cache variable VAR accordingly.
3391 ac_fn_c_check_member ()
3392 {
3393   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3395 $as_echo_n "checking for $2.$3... " >&6; }
3396 if eval \${$4+:} false; then :
3397   $as_echo_n "(cached) " >&6
3398 else
3399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h.  */
3401 $5
3402 int
3403 main ()
3404 {
3405 static $2 ac_aggr;
3406 if (ac_aggr.$3)
3407 return 0;
3408   ;
3409   return 0;
3410 }
3411 _ACEOF
3412 if ac_fn_c_try_compile "$LINENO"; then :
3413   eval "$4=yes"
3414 else
3415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h.  */
3417 $5
3418 int
3419 main ()
3420 {
3421 static $2 ac_aggr;
3422 if (sizeof ac_aggr.$3)
3423 return 0;
3424   ;
3425   return 0;
3426 }
3427 _ACEOF
3428 if ac_fn_c_try_compile "$LINENO"; then :
3429   eval "$4=yes"
3430 else
3431   eval "$4=no"
3432 fi
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 fi
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 fi
3437 eval ac_res=\$$4
3438                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3439 $as_echo "$ac_res" >&6; }
3440   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3441
3442 } # ac_fn_c_check_member
3443
3444 # ac_fn_cxx_try_cpp LINENO
3445 # ------------------------
3446 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3447 ac_fn_cxx_try_cpp ()
3448 {
3449   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3450   if { { ac_try="$ac_cpp conftest.$ac_ext"
3451 case "(($ac_try" in
3452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453   *) ac_try_echo=$ac_try;;
3454 esac
3455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456 $as_echo "$ac_try_echo"; } >&5
3457   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3458   ac_status=$?
3459   if test -s conftest.err; then
3460     grep -v '^ *+' conftest.err >conftest.er1
3461     cat conftest.er1 >&5
3462     mv -f conftest.er1 conftest.err
3463   fi
3464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465   test $ac_status = 0; } > conftest.i && {
3466          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3467          test ! -s conftest.err
3468        }; then :
3469   ac_retval=0
3470 else
3471   $as_echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3473
3474     ac_retval=1
3475 fi
3476   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3477   as_fn_set_status $ac_retval
3478
3479 } # ac_fn_cxx_try_cpp
3480
3481 # ac_fn_cxx_try_link LINENO
3482 # -------------------------
3483 # Try to link conftest.$ac_ext, and return whether this succeeded.
3484 ac_fn_cxx_try_link ()
3485 {
3486   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3487   rm -f conftest.$ac_objext conftest$ac_exeext
3488   if { { ac_try="$ac_link"
3489 case "(($ac_try" in
3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491   *) ac_try_echo=$ac_try;;
3492 esac
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495   (eval "$ac_link") 2>conftest.err
3496   ac_status=$?
3497   if test -s conftest.err; then
3498     grep -v '^ *+' conftest.err >conftest.er1
3499     cat conftest.er1 >&5
3500     mv -f conftest.er1 conftest.err
3501   fi
3502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503   test $ac_status = 0; } && {
3504          test -z "$ac_cxx_werror_flag" ||
3505          test ! -s conftest.err
3506        } && test -s conftest$ac_exeext && {
3507          test "$cross_compiling" = yes ||
3508          test -x conftest$ac_exeext
3509        }; then :
3510   ac_retval=0
3511 else
3512   $as_echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515         ac_retval=1
3516 fi
3517   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3518   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3519   # interfere with the next link command; also delete a directory that is
3520   # left behind by Apple's compiler.  We do this before executing the actions.
3521   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3522   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3523   as_fn_set_status $ac_retval
3524
3525 } # ac_fn_cxx_try_link
3526 cat >config.log <<_ACEOF
3527 This file contains any messages produced by compilers while
3528 running configure, to aid debugging if configure makes a mistake.
3529
3530 It was created by GnuTLS $as_me 3.3.27, which was
3531 generated by GNU Autoconf 2.69.  Invocation command line was
3532
3533   $ $0 $@
3534
3535 _ACEOF
3536 exec 5>>config.log
3537 {
3538 cat <<_ASUNAME
3539 ## --------- ##
3540 ## Platform. ##
3541 ## --------- ##
3542
3543 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3544 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3545 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3546 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3547 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3548
3549 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3550 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3551
3552 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3553 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3554 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3555 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3556 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3557 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3558 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3559
3560 _ASUNAME
3561
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3564 do
3565   IFS=$as_save_IFS
3566   test -z "$as_dir" && as_dir=.
3567     $as_echo "PATH: $as_dir"
3568   done
3569 IFS=$as_save_IFS
3570
3571 } >&5
3572
3573 cat >&5 <<_ACEOF
3574
3575
3576 ## ----------- ##
3577 ## Core tests. ##
3578 ## ----------- ##
3579
3580 _ACEOF
3581
3582
3583 # Keep a trace of the command line.
3584 # Strip out --no-create and --no-recursion so they do not pile up.
3585 # Strip out --silent because we don't want to record it for future runs.
3586 # Also quote any args containing shell meta-characters.
3587 # Make two passes to allow for proper duplicate-argument suppression.
3588 ac_configure_args=
3589 ac_configure_args0=
3590 ac_configure_args1=
3591 ac_must_keep_next=false
3592 for ac_pass in 1 2
3593 do
3594   for ac_arg
3595   do
3596     case $ac_arg in
3597     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3598     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3599     | -silent | --silent | --silen | --sile | --sil)
3600       continue ;;
3601     *\'*)
3602       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3603     esac
3604     case $ac_pass in
3605     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3606     2)
3607       as_fn_append ac_configure_args1 " '$ac_arg'"
3608       if test $ac_must_keep_next = true; then
3609         ac_must_keep_next=false # Got value, back to normal.
3610       else
3611         case $ac_arg in
3612           *=* | --config-cache | -C | -disable-* | --disable-* \
3613           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3614           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3615           | -with-* | --with-* | -without-* | --without-* | --x)
3616             case "$ac_configure_args0 " in
3617               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3618             esac
3619             ;;
3620           -* ) ac_must_keep_next=true ;;
3621         esac
3622       fi
3623       as_fn_append ac_configure_args " '$ac_arg'"
3624       ;;
3625     esac
3626   done
3627 done
3628 { ac_configure_args0=; unset ac_configure_args0;}
3629 { ac_configure_args1=; unset ac_configure_args1;}
3630
3631 # When interrupted or exit'd, cleanup temporary files, and complete
3632 # config.log.  We remove comments because anyway the quotes in there
3633 # would cause problems or look ugly.
3634 # WARNING: Use '\'' to represent an apostrophe within the trap.
3635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3636 trap 'exit_status=$?
3637   # Save into config.log some information that might help in debugging.
3638   {
3639     echo
3640
3641     $as_echo "## ---------------- ##
3642 ## Cache variables. ##
3643 ## ---------------- ##"
3644     echo
3645     # The following way of writing the cache mishandles newlines in values,
3646 (
3647   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3648     eval ac_val=\$$ac_var
3649     case $ac_val in #(
3650     *${as_nl}*)
3651       case $ac_var in #(
3652       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3653 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3654       esac
3655       case $ac_var in #(
3656       _ | IFS | as_nl) ;; #(
3657       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3658       *) { eval $ac_var=; unset $ac_var;} ;;
3659       esac ;;
3660     esac
3661   done
3662   (set) 2>&1 |
3663     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3664     *${as_nl}ac_space=\ *)
3665       sed -n \
3666         "s/'\''/'\''\\\\'\'''\''/g;
3667           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3668       ;; #(
3669     *)
3670       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3671       ;;
3672     esac |
3673     sort
3674 )
3675     echo
3676
3677     $as_echo "## ----------------- ##
3678 ## Output variables. ##
3679 ## ----------------- ##"
3680     echo
3681     for ac_var in $ac_subst_vars
3682     do
3683       eval ac_val=\$$ac_var
3684       case $ac_val in
3685       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3686       esac
3687       $as_echo "$ac_var='\''$ac_val'\''"
3688     done | sort
3689     echo
3690
3691     if test -n "$ac_subst_files"; then
3692       $as_echo "## ------------------- ##
3693 ## File substitutions. ##
3694 ## ------------------- ##"
3695       echo
3696       for ac_var in $ac_subst_files
3697       do
3698         eval ac_val=\$$ac_var
3699         case $ac_val in
3700         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3701         esac
3702         $as_echo "$ac_var='\''$ac_val'\''"
3703       done | sort
3704       echo
3705     fi
3706
3707     if test -s confdefs.h; then
3708       $as_echo "## ----------- ##
3709 ## confdefs.h. ##
3710 ## ----------- ##"
3711       echo
3712       cat confdefs.h
3713       echo
3714     fi
3715     test "$ac_signal" != 0 &&
3716       $as_echo "$as_me: caught signal $ac_signal"
3717     $as_echo "$as_me: exit $exit_status"
3718   } >&5
3719   rm -f core *.core core.conftest.* &&
3720     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3721     exit $exit_status
3722 ' 0
3723 for ac_signal in 1 2 13 15; do
3724   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3725 done
3726 ac_signal=0
3727
3728 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3729 rm -f -r conftest* confdefs.h
3730
3731 $as_echo "/* confdefs.h */" > confdefs.h
3732
3733 # Predefined preprocessor variables.
3734
3735 cat >>confdefs.h <<_ACEOF
3736 #define PACKAGE_NAME "$PACKAGE_NAME"
3737 _ACEOF
3738
3739 cat >>confdefs.h <<_ACEOF
3740 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3741 _ACEOF
3742
3743 cat >>confdefs.h <<_ACEOF
3744 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3745 _ACEOF
3746
3747 cat >>confdefs.h <<_ACEOF
3748 #define PACKAGE_STRING "$PACKAGE_STRING"
3749 _ACEOF
3750
3751 cat >>confdefs.h <<_ACEOF
3752 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3753 _ACEOF
3754
3755 cat >>confdefs.h <<_ACEOF
3756 #define PACKAGE_URL "$PACKAGE_URL"
3757 _ACEOF
3758
3759
3760 # Let the site file select an alternate cache file if it wants to.
3761 # Prefer an explicitly selected file to automatically selected ones.
3762 ac_site_file1=NONE
3763 ac_site_file2=NONE
3764 if test -n "$CONFIG_SITE"; then
3765   # We do not want a PATH search for config.site.
3766   case $CONFIG_SITE in #((
3767     -*)  ac_site_file1=./$CONFIG_SITE;;
3768     */*) ac_site_file1=$CONFIG_SITE;;
3769     *)   ac_site_file1=./$CONFIG_SITE;;
3770   esac
3771 elif test "x$prefix" != xNONE; then
3772   ac_site_file1=$prefix/share/config.site
3773   ac_site_file2=$prefix/etc/config.site
3774 else
3775   ac_site_file1=$ac_default_prefix/share/config.site
3776   ac_site_file2=$ac_default_prefix/etc/config.site
3777 fi
3778 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3779 do
3780   test "x$ac_site_file" = xNONE && continue
3781   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3782     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3783 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3784     sed 's/^/| /' "$ac_site_file" >&5
3785     . "$ac_site_file" \
3786       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error $? "failed to load site script $ac_site_file
3789 See \`config.log' for more details" "$LINENO" 5; }
3790   fi
3791 done
3792
3793 if test -r "$cache_file"; then
3794   # Some versions of bash will fail to source /dev/null (special files
3795   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3796   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3797     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3798 $as_echo "$as_me: loading cache $cache_file" >&6;}
3799     case $cache_file in
3800       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3801       *)                      . "./$cache_file";;
3802     esac
3803   fi
3804 else
3805   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3806 $as_echo "$as_me: creating cache $cache_file" >&6;}
3807   >$cache_file
3808 fi
3809
3810 gl_header_list="$gl_header_list sys/socket.h"
3811 gt_needs="$gt_needs "
3812 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3813 gl_header_list="$gl_header_list sys/stat.h"
3814 gl_func_list="$gl_func_list getdelim"
3815 gl_header_list="$gl_header_list sys/time.h"
3816 gl_func_list="$gl_func_list gettimeofday"
3817 gl_header_list="$gl_header_list unistd.h"
3818 gl_header_list="$gl_header_list sys/mman.h"
3819 gl_func_list="$gl_func_list mprotect"
3820 gl_header_list="$gl_header_list netdb.h"
3821 gl_header_list="$gl_header_list netinet/in.h"
3822 gl_func_list="$gl_func_list snprintf"
3823 gl_header_list="$gl_header_list wchar.h"
3824 gl_header_list="$gl_header_list stdint.h"
3825 gl_header_list="$gl_header_list strings.h"
3826 gl_func_list="$gl_func_list strndup"
3827 gl_header_list="$gl_header_list sys/uio.h"
3828 gl_func_list="$gl_func_list localtime_r"
3829 gl_func_list="$gl_func_list vasnprintf"
3830 gl_header_list="$gl_header_list features.h"
3831 gl_header_list="$gl_header_list inttypes.h"
3832 gl_func_list="$gl_func_list shutdown"
3833 gl_header_list="$gl_header_list arpa/inet.h"
3834 gl_func_list="$gl_func_list getdtablesize"
3835 gl_header_list="$gl_header_list stdio_ext.h"
3836 gl_header_list="$gl_header_list termios.h"
3837 gl_func_list="$gl_func_list __fsetlocking"
3838 gl_func_list="$gl_func_list tcgetattr"
3839 gl_func_list="$gl_func_list tcsetattr"
3840 gl_func_list="$gl_func_list nanotime"
3841 gl_header_list="$gl_header_list sys/select.h"
3842 gl_func_list="$gl_func_list setenv"
3843 gl_func_list="$gl_func_list strdup"
3844 # Check that the precious variables saved in the cache have kept the same
3845 # value.
3846 ac_cache_corrupted=false
3847 for ac_var in $ac_precious_vars; do
3848   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3849   eval ac_new_set=\$ac_env_${ac_var}_set
3850   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3851   eval ac_new_val=\$ac_env_${ac_var}_value
3852   case $ac_old_set,$ac_new_set in
3853     set,)
3854       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3855 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3856       ac_cache_corrupted=: ;;
3857     ,set)
3858       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3859 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3860       ac_cache_corrupted=: ;;
3861     ,);;
3862     *)
3863       if test "x$ac_old_val" != "x$ac_new_val"; then
3864         # differences in whitespace do not lead to failure.
3865         ac_old_val_w=`echo x $ac_old_val`
3866         ac_new_val_w=`echo x $ac_new_val`
3867         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3868           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3869 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3870           ac_cache_corrupted=:
3871         else
3872           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3873 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3874           eval $ac_var=\$ac_old_val
3875         fi
3876         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3877 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3878         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3879 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3880       fi;;
3881   esac
3882   # Pass precious variables to config.status.
3883   if test "$ac_new_set" = set; then
3884     case $ac_new_val in
3885     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3886     *) ac_arg=$ac_var=$ac_new_val ;;
3887     esac
3888     case " $ac_configure_args " in
3889       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3890       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3891     esac
3892   fi
3893 done
3894 if $ac_cache_corrupted; then
3895   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3898 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3899   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3900 fi
3901 ## -------------------- ##
3902 ## Main body of script. ##
3903 ## -------------------- ##
3904
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910
3911
3912 ac_aux_dir=
3913 for ac_dir in build-aux "$srcdir"/build-aux; do
3914   if test -f "$ac_dir/install-sh"; then
3915     ac_aux_dir=$ac_dir
3916     ac_install_sh="$ac_aux_dir/install-sh -c"
3917     break
3918   elif test -f "$ac_dir/install.sh"; then
3919     ac_aux_dir=$ac_dir
3920     ac_install_sh="$ac_aux_dir/install.sh -c"
3921     break
3922   elif test -f "$ac_dir/shtool"; then
3923     ac_aux_dir=$ac_dir
3924     ac_install_sh="$ac_aux_dir/shtool install -c"
3925     break
3926   fi
3927 done
3928 if test -z "$ac_aux_dir"; then
3929   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3930 fi
3931
3932 # These three variables are undocumented and unsupported,
3933 # and are intended to be withdrawn in a future Autoconf release.
3934 # They can cause serious problems if a builder's source tree is in a directory
3935 # whose full name contains unusual characters.
3936 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3937 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3938 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3939
3940
3941
3942 # Make sure we can run config.sub.
3943 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3944   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3945
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3947 $as_echo_n "checking build system type... " >&6; }
3948 if ${ac_cv_build+:} false; then :
3949   $as_echo_n "(cached) " >&6
3950 else
3951   ac_build_alias=$build_alias
3952 test "x$ac_build_alias" = x &&
3953   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3954 test "x$ac_build_alias" = x &&
3955   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3956 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3957   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3958
3959 fi
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3961 $as_echo "$ac_cv_build" >&6; }
3962 case $ac_cv_build in
3963 *-*-*) ;;
3964 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3965 esac
3966 build=$ac_cv_build
3967 ac_save_IFS=$IFS; IFS='-'
3968 set x $ac_cv_build
3969 shift
3970 build_cpu=$1
3971 build_vendor=$2
3972 shift; shift
3973 # Remember, the first character of IFS is used to create $*,
3974 # except with old shells:
3975 build_os=$*
3976 IFS=$ac_save_IFS
3977 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3978
3979
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3981 $as_echo_n "checking host system type... " >&6; }
3982 if ${ac_cv_host+:} false; then :
3983   $as_echo_n "(cached) " >&6
3984 else
3985   if test "x$host_alias" = x; then
3986   ac_cv_host=$ac_cv_build
3987 else
3988   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3989     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3990 fi
3991
3992 fi
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3994 $as_echo "$ac_cv_host" >&6; }
3995 case $ac_cv_host in
3996 *-*-*) ;;
3997 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3998 esac
3999 host=$ac_cv_host
4000 ac_save_IFS=$IFS; IFS='-'
4001 set x $ac_cv_host
4002 shift
4003 host_cpu=$1
4004 host_vendor=$2
4005 shift; shift
4006 # Remember, the first character of IFS is used to create $*,
4007 # except with old shells:
4008 host_os=$*
4009 IFS=$ac_save_IFS
4010 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4011
4012
4013
4014 am__api_version='1.15'
4015
4016 # Find a good install program.  We prefer a C program (faster),
4017 # so one script is as good as another.  But avoid the broken or
4018 # incompatible versions:
4019 # SysV /etc/install, /usr/sbin/install
4020 # SunOS /usr/etc/install
4021 # IRIX /sbin/install
4022 # AIX /bin/install
4023 # AmigaOS /C/install, which installs bootblocks on floppy discs
4024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4027 # OS/2's system install, which has a completely different semantic
4028 # ./install, which can be erroneously created by make from ./install.sh.
4029 # Reject install programs that cannot install multiple files.
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4031 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4032 if test -z "$INSTALL"; then
4033 if ${ac_cv_path_install+:} false; then :
4034   $as_echo_n "(cached) " >&6
4035 else
4036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039   IFS=$as_save_IFS
4040   test -z "$as_dir" && as_dir=.
4041     # Account for people who put trailing slashes in PATH elements.
4042 case $as_dir/ in #((
4043   ./ | .// | /[cC]/* | \
4044   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4045   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4046   /usr/ucb/* ) ;;
4047   *)
4048     # OSF1 and SCO ODT 3.0 have their own names for install.
4049     # Don't use installbsd from OSF since it installs stuff as root
4050     # by default.
4051     for ac_prog in ginstall scoinst install; do
4052       for ac_exec_ext in '' $ac_executable_extensions; do
4053         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4054           if test $ac_prog = install &&
4055             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4056             # AIX install.  It has an incompatible calling convention.
4057             :
4058           elif test $ac_prog = install &&
4059             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4060             # program-specific install script used by HP pwplus--don't use.
4061             :
4062           else
4063             rm -rf conftest.one conftest.two conftest.dir
4064             echo one > conftest.one
4065             echo two > conftest.two
4066             mkdir conftest.dir
4067             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4068               test -s conftest.one && test -s conftest.two &&
4069               test -s conftest.dir/conftest.one &&
4070               test -s conftest.dir/conftest.two
4071             then
4072               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4073               break 3
4074             fi
4075           fi
4076         fi
4077       done
4078     done
4079     ;;
4080 esac
4081
4082   done
4083 IFS=$as_save_IFS
4084
4085 rm -rf conftest.one conftest.two conftest.dir
4086
4087 fi
4088   if test "${ac_cv_path_install+set}" = set; then
4089     INSTALL=$ac_cv_path_install
4090   else
4091     # As a last resort, use the slow shell script.  Don't cache a
4092     # value for INSTALL within a source directory, because that will
4093     # break other packages using the cache if that directory is
4094     # removed, or if the value is a relative name.
4095     INSTALL=$ac_install_sh
4096   fi
4097 fi
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4099 $as_echo "$INSTALL" >&6; }
4100
4101 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4102 # It thinks the first close brace ends the variable substitution.
4103 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4104
4105 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4106
4107 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4108
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4110 $as_echo_n "checking whether build environment is sane... " >&6; }
4111 # Reject unsafe characters in $srcdir or the absolute working directory
4112 # name.  Accept space and tab only in the latter.
4113 am_lf='
4114 '
4115 case `pwd` in
4116   *[\\\"\#\$\&\'\`$am_lf]*)
4117     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4118 esac
4119 case $srcdir in
4120   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4121     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4122 esac
4123
4124 # Do 'set' in a subshell so we don't clobber the current shell's
4125 # arguments.  Must try -L first in case configure is actually a
4126 # symlink; some systems play weird games with the mod time of symlinks
4127 # (eg FreeBSD returns the mod time of the symlink's containing
4128 # directory).
4129 if (
4130    am_has_slept=no
4131    for am_try in 1 2; do
4132      echo "timestamp, slept: $am_has_slept" > conftest.file
4133      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4134      if test "$*" = "X"; then
4135         # -L didn't work.
4136         set X `ls -t "$srcdir/configure" conftest.file`
4137      fi
4138      if test "$*" != "X $srcdir/configure conftest.file" \
4139         && test "$*" != "X conftest.file $srcdir/configure"; then
4140
4141         # If neither matched, then we have a broken ls.  This can happen
4142         # if, for instance, CONFIG_SHELL is bash and it inherits a
4143         # broken ls alias from the environment.  This has actually
4144         # happened.  Such a system could not be considered "sane".
4145         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4146   alias in your environment" "$LINENO" 5
4147      fi
4148      if test "$2" = conftest.file || test $am_try -eq 2; then
4149        break
4150      fi
4151      # Just in case.
4152      sleep 1
4153      am_has_slept=yes
4154    done
4155    test "$2" = conftest.file
4156    )
4157 then
4158    # Ok.
4159    :
4160 else
4161    as_fn_error $? "newly created file is older than distributed files!
4162 Check your system clock" "$LINENO" 5
4163 fi
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4165 $as_echo "yes" >&6; }
4166 # If we didn't sleep, we still need to ensure time stamps of config.status and
4167 # generated files are strictly newer.
4168 am_sleep_pid=
4169 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4170   ( sleep 1 ) &
4171   am_sleep_pid=$!
4172 fi
4173
4174 rm -f conftest.file
4175
4176 test "$program_prefix" != NONE &&
4177   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4178 # Use a double $ so make ignores it.
4179 test "$program_suffix" != NONE &&
4180   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4181 # Double any \ or $.
4182 # By default was `s,x,x', remove it if useless.
4183 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4184 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4185
4186 # Expand $ac_aux_dir to an absolute path.
4187 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4188
4189 if test x"${MISSING+set}" != xset; then
4190   case $am_aux_dir in
4191   *\ * | *\     *)
4192     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4193   *)
4194     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4195   esac
4196 fi
4197 # Use eval to expand $SHELL
4198 if eval "$MISSING --is-lightweight"; then
4199   am_missing_run="$MISSING "
4200 else
4201   am_missing_run=
4202   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4203 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4204 fi
4205
4206 if test x"${install_sh+set}" != xset; then
4207   case $am_aux_dir in
4208   *\ * | *\     *)
4209     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4210   *)
4211     install_sh="\${SHELL} $am_aux_dir/install-sh"
4212   esac
4213 fi
4214
4215 # Installed binaries are usually stripped using 'strip' when the user
4216 # run "make install-strip".  However 'strip' might not be the right
4217 # tool to use in cross-compilation environments, therefore Automake
4218 # will honor the 'STRIP' environment variable to overrule this program.
4219 if test "$cross_compiling" != no; then
4220   if test -n "$ac_tool_prefix"; then
4221   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4222 set dummy ${ac_tool_prefix}strip; ac_word=$2
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224 $as_echo_n "checking for $ac_word... " >&6; }
4225 if ${ac_cv_prog_STRIP+:} false; then :
4226   $as_echo_n "(cached) " >&6
4227 else
4228   if test -n "$STRIP"; then
4229   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4230 else
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234   IFS=$as_save_IFS
4235   test -z "$as_dir" && as_dir=.
4236     for ac_exec_ext in '' $ac_executable_extensions; do
4237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4238     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240     break 2
4241   fi
4242 done
4243   done
4244 IFS=$as_save_IFS
4245
4246 fi
4247 fi
4248 STRIP=$ac_cv_prog_STRIP
4249 if test -n "$STRIP"; then
4250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4251 $as_echo "$STRIP" >&6; }
4252 else
4253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4255 fi
4256
4257
4258 fi
4259 if test -z "$ac_cv_prog_STRIP"; then
4260   ac_ct_STRIP=$STRIP
4261   # Extract the first word of "strip", so it can be a program name with args.
4262 set dummy strip; ac_word=$2
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264 $as_echo_n "checking for $ac_word... " >&6; }
4265 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4266   $as_echo_n "(cached) " >&6
4267 else
4268   if test -n "$ac_ct_STRIP"; then
4269   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274   IFS=$as_save_IFS
4275   test -z "$as_dir" && as_dir=.
4276     for ac_exec_ext in '' $ac_executable_extensions; do
4277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4278     ac_cv_prog_ac_ct_STRIP="strip"
4279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280     break 2
4281   fi
4282 done
4283   done
4284 IFS=$as_save_IFS
4285
4286 fi
4287 fi
4288 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4289 if test -n "$ac_ct_STRIP"; then
4290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4291 $as_echo "$ac_ct_STRIP" >&6; }
4292 else
4293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4295 fi
4296
4297   if test "x$ac_ct_STRIP" = x; then
4298     STRIP=":"
4299   else
4300     case $cross_compiling:$ac_tool_warned in
4301 yes:)
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4304 ac_tool_warned=yes ;;
4305 esac
4306     STRIP=$ac_ct_STRIP
4307   fi
4308 else
4309   STRIP="$ac_cv_prog_STRIP"
4310 fi
4311
4312 fi
4313 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4314
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4316 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4317 if test -z "$MKDIR_P"; then
4318   if ${ac_cv_path_mkdir+:} false; then :
4319   $as_echo_n "(cached) " >&6
4320 else
4321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4323 do
4324   IFS=$as_save_IFS
4325   test -z "$as_dir" && as_dir=.
4326     for ac_prog in mkdir gmkdir; do
4327          for ac_exec_ext in '' $ac_executable_extensions; do
4328            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4329            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4330              'mkdir (GNU coreutils) '* | \
4331              'mkdir (coreutils) '* | \
4332              'mkdir (fileutils) '4.1*)
4333                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4334                break 3;;
4335            esac
4336          done
4337        done
4338   done
4339 IFS=$as_save_IFS
4340
4341 fi
4342
4343   test -d ./--version && rmdir ./--version
4344   if test "${ac_cv_path_mkdir+set}" = set; then
4345     MKDIR_P="$ac_cv_path_mkdir -p"
4346   else
4347     # As a last resort, use the slow shell script.  Don't cache a
4348     # value for MKDIR_P within a source directory, because that will
4349     # break other packages using the cache if that directory is
4350     # removed, or if the value is a relative name.
4351     MKDIR_P="$ac_install_sh -d"
4352   fi
4353 fi
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4355 $as_echo "$MKDIR_P" >&6; }
4356
4357 for ac_prog in gawk mawk nawk awk
4358 do
4359   # Extract the first word of "$ac_prog", so it can be a program name with args.
4360 set dummy $ac_prog; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if ${ac_cv_prog_AWK+:} false; then :
4364   $as_echo_n "(cached) " >&6
4365 else
4366   if test -n "$AWK"; then
4367   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372   IFS=$as_save_IFS
4373   test -z "$as_dir" && as_dir=.
4374     for ac_exec_ext in '' $ac_executable_extensions; do
4375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376     ac_cv_prog_AWK="$ac_prog"
4377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378     break 2
4379   fi
4380 done
4381   done
4382 IFS=$as_save_IFS
4383
4384 fi
4385 fi
4386 AWK=$ac_cv_prog_AWK
4387 if test -n "$AWK"; then
4388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4389 $as_echo "$AWK" >&6; }
4390 else
4391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4393 fi
4394
4395
4396   test -n "$AWK" && break
4397 done
4398
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4400 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4401 set x ${MAKE-make}
4402 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4403 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4404   $as_echo_n "(cached) " >&6
4405 else
4406   cat >conftest.make <<\_ACEOF
4407 SHELL = /bin/sh
4408 all:
4409         @echo '@@@%%%=$(MAKE)=@@@%%%'
4410 _ACEOF
4411 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4412 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4413   *@@@%%%=?*=@@@%%%*)
4414     eval ac_cv_prog_make_${ac_make}_set=yes;;
4415   *)
4416     eval ac_cv_prog_make_${ac_make}_set=no;;
4417 esac
4418 rm -f conftest.make
4419 fi
4420 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4422 $as_echo "yes" >&6; }
4423   SET_MAKE=
4424 else
4425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427   SET_MAKE="MAKE=${MAKE-make}"
4428 fi
4429
4430 rm -rf .tst 2>/dev/null
4431 mkdir .tst 2>/dev/null
4432 if test -d .tst; then
4433   am__leading_dot=.
4434 else
4435   am__leading_dot=_
4436 fi
4437 rmdir .tst 2>/dev/null
4438
4439 # Check whether --enable-silent-rules was given.
4440 if test "${enable_silent_rules+set}" = set; then :
4441   enableval=$enable_silent_rules;
4442 fi
4443
4444 case $enable_silent_rules in # (((
4445   yes) AM_DEFAULT_VERBOSITY=0;;
4446    no) AM_DEFAULT_VERBOSITY=1;;
4447     *) AM_DEFAULT_VERBOSITY=1;;
4448 esac
4449 am_make=${MAKE-make}
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4451 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4452 if ${am_cv_make_support_nested_variables+:} false; then :
4453   $as_echo_n "(cached) " >&6
4454 else
4455   if $as_echo 'TRUE=$(BAR$(V))
4456 BAR0=false
4457 BAR1=true
4458 V=1
4459 am__doit:
4460         @$(TRUE)
4461 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4462   am_cv_make_support_nested_variables=yes
4463 else
4464   am_cv_make_support_nested_variables=no
4465 fi
4466 fi
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4468 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4469 if test $am_cv_make_support_nested_variables = yes; then
4470     AM_V='$(V)'
4471   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4472 else
4473   AM_V=$AM_DEFAULT_VERBOSITY
4474   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4475 fi
4476 AM_BACKSLASH='\'
4477
4478 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4479   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4480   # is not polluted with repeated "-I."
4481   am__isrc=' -I$(srcdir)'
4482   # test to see if srcdir already configured
4483   if test -f $srcdir/config.status; then
4484     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4485   fi
4486 fi
4487
4488 # test whether we have cygpath
4489 if test -z "$CYGPATH_W"; then
4490   if (cygpath --version) >/dev/null 2>/dev/null; then
4491     CYGPATH_W='cygpath -w'
4492   else
4493     CYGPATH_W=echo
4494   fi
4495 fi
4496
4497
4498 # Define the identity of the package.
4499  PACKAGE='gnutls'
4500  VERSION='3.3.27'
4501
4502
4503 cat >>confdefs.h <<_ACEOF
4504 #define PACKAGE "$PACKAGE"
4505 _ACEOF
4506
4507
4508 cat >>confdefs.h <<_ACEOF
4509 #define VERSION "$VERSION"
4510 _ACEOF
4511
4512 # Some tools Automake needs.
4513
4514 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4515
4516
4517 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4518
4519
4520 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4521
4522
4523 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4524
4525
4526 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4527
4528 # For better backward compatibility.  To be removed once Automake 1.9.x
4529 # dies out for good.  For more background, see:
4530 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4531 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4532 mkdir_p='$(MKDIR_P)'
4533
4534 # We need awk for the "check" target (and possibly the TAP driver).  The
4535 # system "awk" is bad on some platforms.
4536 # Always define AMTAR for backward compatibility.  Yes, it's still used
4537 # in the wild :-(  We should find a proper way to deprecate it ...
4538 AMTAR='$${TAR-tar}'
4539
4540
4541 # We'll loop over all known methods to create a tar archive until one works.
4542 _am_tools='gnutar  pax cpio none'
4543
4544 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4545
4546
4547
4548
4549
4550
4551 # POSIX will say in a future version that running "rm -f" with no argument
4552 # is OK; and we want to be able to make that assumption in our Makefile
4553 # recipes.  So use an aggressive probe to check that the usage we want is
4554 # actually supported "in the wild" to an acceptable degree.
4555 # See automake bug#10828.
4556 # To make any issue more visible, cause the running configure to be aborted
4557 # by default if the 'rm' program in use doesn't match our expectations; the
4558 # user can still override this though.
4559 if rm -f && rm -fr && rm -rf; then : OK; else
4560   cat >&2 <<'END'
4561 Oops!
4562
4563 Your 'rm' program seems unable to run without file operands specified
4564 on the command line, even when the '-f' option is present.  This is contrary
4565 to the behaviour of most rm programs out there, and not conforming with
4566 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4567
4568 Please tell bug-automake@gnu.org about your system, including the value
4569 of your $PATH and any error possibly output before this message.  This
4570 can help us improve future automake versions.
4571
4572 END
4573   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4574     echo 'Configuration will proceed anyway, since you have set the' >&2
4575     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4576     echo >&2
4577   else
4578     cat >&2 <<'END'
4579 Aborting the configuration process, to ensure you take notice of the issue.
4580
4581 You can download and install GNU coreutils to get an 'rm' implementation
4582 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4583
4584 If you want to complete the configuration process using your problematic
4585 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4586 to "yes", and re-run configure.
4587
4588 END
4589     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4590   fi
4591 fi
4592
4593 # Check whether --enable-silent-rules was given.
4594 if test "${enable_silent_rules+set}" = set; then :
4595   enableval=$enable_silent_rules;
4596 fi
4597
4598 case $enable_silent_rules in # (((
4599   yes) AM_DEFAULT_VERBOSITY=0;;
4600    no) AM_DEFAULT_VERBOSITY=1;;
4601     *) AM_DEFAULT_VERBOSITY=0;;
4602 esac
4603 am_make=${MAKE-make}
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4605 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4606 if ${am_cv_make_support_nested_variables+:} false; then :
4607   $as_echo_n "(cached) " >&6
4608 else
4609   if $as_echo 'TRUE=$(BAR$(V))
4610 BAR0=false
4611 BAR1=true
4612 V=1
4613 am__doit:
4614         @$(TRUE)
4615 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4616   am_cv_make_support_nested_variables=yes
4617 else
4618   am_cv_make_support_nested_variables=no
4619 fi
4620 fi
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4622 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4623 if test $am_cv_make_support_nested_variables = yes; then
4624     AM_V='$(V)'
4625   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4626 else
4627   AM_V=$AM_DEFAULT_VERBOSITY
4628   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4629 fi
4630 AM_BACKSLASH='\'
4631
4632 ac_config_headers="$ac_config_headers config.h"
4633
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
4636 *** Checking for compilation programs...
4637 " >&5
4638 $as_echo "***
4639 *** Checking for compilation programs...
4640 " >&6; }
4641
4642
4643
4644 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4645         if test -n "$ac_tool_prefix"; then
4646   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4647 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4651   $as_echo_n "(cached) " >&6
4652 else
4653   case $PKG_CONFIG in
4654   [\\/]* | ?:[\\/]*)
4655   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4656   ;;
4657   *)
4658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661   IFS=$as_save_IFS
4662   test -z "$as_dir" && as_dir=.
4663     for ac_exec_ext in '' $ac_executable_extensions; do
4664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667     break 2
4668   fi
4669 done
4670   done
4671 IFS=$as_save_IFS
4672
4673   ;;
4674 esac
4675 fi
4676 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4677 if test -n "$PKG_CONFIG"; then
4678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4679 $as_echo "$PKG_CONFIG" >&6; }
4680 else
4681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4683 fi
4684
4685
4686 fi
4687 if test -z "$ac_cv_path_PKG_CONFIG"; then
4688   ac_pt_PKG_CONFIG=$PKG_CONFIG
4689   # Extract the first word of "pkg-config", so it can be a program name with args.
4690 set dummy pkg-config; ac_word=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4694   $as_echo_n "(cached) " >&6
4695 else
4696   case $ac_pt_PKG_CONFIG in
4697   [\\/]* | ?:[\\/]*)
4698   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4699   ;;
4700   *)
4701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706     for ac_exec_ext in '' $ac_executable_extensions; do
4707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713   done
4714 IFS=$as_save_IFS
4715
4716   ;;
4717 esac
4718 fi
4719 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4720 if test -n "$ac_pt_PKG_CONFIG"; then
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4722 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4723 else
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4726 fi
4727
4728   if test "x$ac_pt_PKG_CONFIG" = x; then
4729     PKG_CONFIG=""
4730   else
4731     case $cross_compiling:$ac_tool_warned in
4732 yes:)
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735 ac_tool_warned=yes ;;
4736 esac
4737     PKG_CONFIG=$ac_pt_PKG_CONFIG
4738   fi
4739 else
4740   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4741 fi
4742
4743 fi
4744 if test -n "$PKG_CONFIG"; then
4745         _pkg_min_version=0.9.0
4746         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4747 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4748         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4749                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4750 $as_echo "yes" >&6; }
4751         else
4752                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4754                 PKG_CONFIG=""
4755         fi
4756
4757 fi
4758 ac_ext=c
4759 ac_cpp='$CPP $CPPFLAGS'
4760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4763 if test -n "$ac_tool_prefix"; then
4764   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4765 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_prog_CC+:} false; then :
4769   $as_echo_n "(cached) " >&6
4770 else
4771   if test -n "$CC"; then
4772   ac_cv_prog_CC="$CC" # Let the user override the test.
4773 else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777   IFS=$as_save_IFS
4778   test -z "$as_dir" && as_dir=.
4779     for ac_exec_ext in '' $ac_executable_extensions; do
4780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4781     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783     break 2
4784   fi
4785 done
4786   done
4787 IFS=$as_save_IFS
4788
4789 fi
4790 fi
4791 CC=$ac_cv_prog_CC
4792 if test -n "$CC"; then
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4794 $as_echo "$CC" >&6; }
4795 else
4796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4798 fi
4799
4800
4801 fi
4802 if test -z "$ac_cv_prog_CC"; then
4803   ac_ct_CC=$CC
4804   # Extract the first word of "gcc", so it can be a program name with args.
4805 set dummy gcc; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4809   $as_echo_n "(cached) " >&6
4810 else
4811   if test -n "$ac_ct_CC"; then
4812   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4813 else
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4816 do
4817   IFS=$as_save_IFS
4818   test -z "$as_dir" && as_dir=.
4819     for ac_exec_ext in '' $ac_executable_extensions; do
4820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821     ac_cv_prog_ac_ct_CC="gcc"
4822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823     break 2
4824   fi
4825 done
4826   done
4827 IFS=$as_save_IFS
4828
4829 fi
4830 fi
4831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4832 if test -n "$ac_ct_CC"; then
4833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4834 $as_echo "$ac_ct_CC" >&6; }
4835 else
4836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4838 fi
4839
4840   if test "x$ac_ct_CC" = x; then
4841     CC=""
4842   else
4843     case $cross_compiling:$ac_tool_warned in
4844 yes:)
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4847 ac_tool_warned=yes ;;
4848 esac
4849     CC=$ac_ct_CC
4850   fi
4851 else
4852   CC="$ac_cv_prog_CC"
4853 fi
4854
4855 if test -z "$CC"; then
4856           if test -n "$ac_tool_prefix"; then
4857     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4858 set dummy ${ac_tool_prefix}cc; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if ${ac_cv_prog_CC+:} false; then :
4862   $as_echo_n "(cached) " >&6
4863 else
4864   if test -n "$CC"; then
4865   ac_cv_prog_CC="$CC" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870   IFS=$as_save_IFS
4871   test -z "$as_dir" && as_dir=.
4872     for ac_exec_ext in '' $ac_executable_extensions; do
4873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874     ac_cv_prog_CC="${ac_tool_prefix}cc"
4875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876     break 2
4877   fi
4878 done
4879   done
4880 IFS=$as_save_IFS
4881
4882 fi
4883 fi
4884 CC=$ac_cv_prog_CC
4885 if test -n "$CC"; then
4886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4887 $as_echo "$CC" >&6; }
4888 else
4889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4891 fi
4892
4893
4894   fi
4895 fi
4896 if test -z "$CC"; then
4897   # Extract the first word of "cc", so it can be a program name with args.
4898 set dummy cc; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if ${ac_cv_prog_CC+:} false; then :
4902   $as_echo_n "(cached) " >&6
4903 else
4904   if test -n "$CC"; then
4905   ac_cv_prog_CC="$CC" # Let the user override the test.
4906 else
4907   ac_prog_rejected=no
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911   IFS=$as_save_IFS
4912   test -z "$as_dir" && as_dir=.
4913     for ac_exec_ext in '' $ac_executable_extensions; do
4914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4916        ac_prog_rejected=yes
4917        continue
4918      fi
4919     ac_cv_prog_CC="cc"
4920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921     break 2
4922   fi
4923 done
4924   done
4925 IFS=$as_save_IFS
4926
4927 if test $ac_prog_rejected = yes; then
4928   # We found a bogon in the path, so make sure we never use it.
4929   set dummy $ac_cv_prog_CC
4930   shift
4931   if test $# != 0; then
4932     # We chose a different compiler from the bogus one.
4933     # However, it has the same basename, so the bogon will be chosen
4934     # first if we set CC to just the basename; use the full file name.
4935     shift
4936     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4937   fi
4938 fi
4939 fi
4940 fi
4941 CC=$ac_cv_prog_CC
4942 if test -n "$CC"; then
4943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4944 $as_echo "$CC" >&6; }
4945 else
4946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4948 fi
4949
4950
4951 fi
4952 if test -z "$CC"; then
4953   if test -n "$ac_tool_prefix"; then
4954   for ac_prog in cl.exe
4955   do
4956     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_CC+:} false; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   if test -n "$CC"; then
4964   ac_cv_prog_CC="$CC" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971     for ac_exec_ext in '' $ac_executable_extensions; do
4972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975     break 2
4976   fi
4977 done
4978   done
4979 IFS=$as_save_IFS
4980
4981 fi
4982 fi
4983 CC=$ac_cv_prog_CC
4984 if test -n "$CC"; then
4985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4986 $as_echo "$CC" >&6; }
4987 else
4988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4990 fi
4991
4992
4993     test -n "$CC" && break
4994   done
4995 fi
4996 if test -z "$CC"; then
4997   ac_ct_CC=$CC
4998   for ac_prog in cl.exe
4999 do
5000   # Extract the first word of "$ac_prog", so it can be a program name with args.
5001 set dummy $ac_prog; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5005   $as_echo_n "(cached) " >&6
5006 else
5007   if test -n "$ac_ct_CC"; then
5008   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013   IFS=$as_save_IFS
5014   test -z "$as_dir" && as_dir=.
5015     for ac_exec_ext in '' $ac_executable_extensions; do
5016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017     ac_cv_prog_ac_ct_CC="$ac_prog"
5018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019     break 2
5020   fi
5021 done
5022   done
5023 IFS=$as_save_IFS
5024
5025 fi
5026 fi
5027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5028 if test -n "$ac_ct_CC"; then
5029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5030 $as_echo "$ac_ct_CC" >&6; }
5031 else
5032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5034 fi
5035
5036
5037   test -n "$ac_ct_CC" && break
5038 done
5039
5040   if test "x$ac_ct_CC" = x; then
5041     CC=""
5042   else
5043     case $cross_compiling:$ac_tool_warned in
5044 yes:)
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047 ac_tool_warned=yes ;;
5048 esac
5049     CC=$ac_ct_CC
5050   fi
5051 fi
5052
5053 fi
5054
5055
5056 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5058 as_fn_error $? "no acceptable C compiler found in \$PATH
5059 See \`config.log' for more details" "$LINENO" 5; }
5060
5061 # Provide some information about the compiler.
5062 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5063 set X $ac_compile
5064 ac_compiler=$2
5065 for ac_option in --version -v -V -qversion; do
5066   { { ac_try="$ac_compiler $ac_option >&5"
5067 case "(($ac_try" in
5068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069   *) ac_try_echo=$ac_try;;
5070 esac
5071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5072 $as_echo "$ac_try_echo"; } >&5
5073   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5074   ac_status=$?
5075   if test -s conftest.err; then
5076     sed '10a\
5077 ... rest of stderr output deleted ...
5078          10q' conftest.err >conftest.er1
5079     cat conftest.er1 >&5
5080   fi
5081   rm -f conftest.er1 conftest.err
5082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5083   test $ac_status = 0; }
5084 done
5085
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h.  */
5088
5089 int
5090 main ()
5091 {
5092
5093   ;
5094   return 0;
5095 }
5096 _ACEOF
5097 ac_clean_files_save=$ac_clean_files
5098 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5099 # Try to create an executable without -o first, disregard a.out.
5100 # It will help us diagnose broken compilers, and finding out an intuition
5101 # of exeext.
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5103 $as_echo_n "checking whether the C compiler works... " >&6; }
5104 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5105
5106 # The possible output files:
5107 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5108
5109 ac_rmfiles=
5110 for ac_file in $ac_files
5111 do
5112   case $ac_file in
5113     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5114     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5115   esac
5116 done
5117 rm -f $ac_rmfiles
5118
5119 if { { ac_try="$ac_link_default"
5120 case "(($ac_try" in
5121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122   *) ac_try_echo=$ac_try;;
5123 esac
5124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5125 $as_echo "$ac_try_echo"; } >&5
5126   (eval "$ac_link_default") 2>&5
5127   ac_status=$?
5128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5129   test $ac_status = 0; }; then :
5130   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5131 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5132 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5133 # so that the user can short-circuit this test for compilers unknown to
5134 # Autoconf.
5135 for ac_file in $ac_files ''
5136 do
5137   test -f "$ac_file" || continue
5138   case $ac_file in
5139     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5140         ;;
5141     [ab].out )
5142         # We found the default executable, but exeext='' is most
5143         # certainly right.
5144         break;;
5145     *.* )
5146         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5147         then :; else
5148            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5149         fi
5150         # We set ac_cv_exeext here because the later test for it is not
5151         # safe: cross compilers may not add the suffix if given an `-o'
5152         # argument, so we may need to know it at that point already.
5153         # Even if this section looks crufty: it has the advantage of
5154         # actually working.
5155         break;;
5156     * )
5157         break;;
5158   esac
5159 done
5160 test "$ac_cv_exeext" = no && ac_cv_exeext=
5161
5162 else
5163   ac_file=''
5164 fi
5165 if test -z "$ac_file"; then :
5166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5168 $as_echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5170
5171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5173 as_fn_error 77 "C compiler cannot create executables
5174 See \`config.log' for more details" "$LINENO" 5; }
5175 else
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5177 $as_echo "yes" >&6; }
5178 fi
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5180 $as_echo_n "checking for C compiler default output file name... " >&6; }
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5182 $as_echo "$ac_file" >&6; }
5183 ac_exeext=$ac_cv_exeext
5184
5185 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5186 ac_clean_files=$ac_clean_files_save
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5188 $as_echo_n "checking for suffix of executables... " >&6; }
5189 if { { ac_try="$ac_link"
5190 case "(($ac_try" in
5191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192   *) ac_try_echo=$ac_try;;
5193 esac
5194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5195 $as_echo "$ac_try_echo"; } >&5
5196   (eval "$ac_link") 2>&5
5197   ac_status=$?
5198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5199   test $ac_status = 0; }; then :
5200   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5201 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5202 # work properly (i.e., refer to `conftest.exe'), while it won't with
5203 # `rm'.
5204 for ac_file in conftest.exe conftest conftest.*; do
5205   test -f "$ac_file" || continue
5206   case $ac_file in
5207     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5208     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5209           break;;
5210     * ) break;;
5211   esac
5212 done
5213 else
5214   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5216 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5217 See \`config.log' for more details" "$LINENO" 5; }
5218 fi
5219 rm -f conftest conftest$ac_cv_exeext
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5221 $as_echo "$ac_cv_exeext" >&6; }
5222
5223 rm -f conftest.$ac_ext
5224 EXEEXT=$ac_cv_exeext
5225 ac_exeext=$EXEEXT
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h.  */
5228 #include <stdio.h>
5229 int
5230 main ()
5231 {
5232 FILE *f = fopen ("conftest.out", "w");
5233  return ferror (f) || fclose (f) != 0;
5234
5235   ;
5236   return 0;
5237 }
5238 _ACEOF
5239 ac_clean_files="$ac_clean_files conftest.out"
5240 # Check that the compiler produces executables we can run.  If not, either
5241 # the compiler is broken, or we cross compile.
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5243 $as_echo_n "checking whether we are cross compiling... " >&6; }
5244 if test "$cross_compiling" != yes; then
5245   { { ac_try="$ac_link"
5246 case "(($ac_try" in
5247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248   *) ac_try_echo=$ac_try;;
5249 esac
5250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5251 $as_echo "$ac_try_echo"; } >&5
5252   (eval "$ac_link") 2>&5
5253   ac_status=$?
5254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5255   test $ac_status = 0; }
5256   if { ac_try='./conftest$ac_cv_exeext'
5257   { { case "(($ac_try" in
5258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259   *) ac_try_echo=$ac_try;;
5260 esac
5261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5262 $as_echo "$ac_try_echo"; } >&5
5263   (eval "$ac_try") 2>&5
5264   ac_status=$?
5265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5266   test $ac_status = 0; }; }; then
5267     cross_compiling=no
5268   else
5269     if test "$cross_compiling" = maybe; then
5270         cross_compiling=yes
5271     else
5272         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5274 as_fn_error $? "cannot run C compiled programs.
5275 If you meant to cross compile, use \`--host'.
5276 See \`config.log' for more details" "$LINENO" 5; }
5277     fi
5278   fi
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5281 $as_echo "$cross_compiling" >&6; }
5282
5283 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5284 ac_clean_files=$ac_clean_files_save
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5286 $as_echo_n "checking for suffix of object files... " >&6; }
5287 if ${ac_cv_objext+:} false; then :
5288   $as_echo_n "(cached) " >&6
5289 else
5290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h.  */
5292
5293 int
5294 main ()
5295 {
5296
5297   ;
5298   return 0;
5299 }
5300 _ACEOF
5301 rm -f conftest.o conftest.obj
5302 if { { ac_try="$ac_compile"
5303 case "(($ac_try" in
5304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305   *) ac_try_echo=$ac_try;;
5306 esac
5307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5308 $as_echo "$ac_try_echo"; } >&5
5309   (eval "$ac_compile") 2>&5
5310   ac_status=$?
5311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5312   test $ac_status = 0; }; then :
5313   for ac_file in conftest.o conftest.obj conftest.*; do
5314   test -f "$ac_file" || continue;
5315   case $ac_file in
5316     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5317     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5318        break;;
5319   esac
5320 done
5321 else
5322   $as_echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5327 as_fn_error $? "cannot compute suffix of object files: cannot compile
5328 See \`config.log' for more details" "$LINENO" 5; }
5329 fi
5330 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5333 $as_echo "$ac_cv_objext" >&6; }
5334 OBJEXT=$ac_cv_objext
5335 ac_objext=$OBJEXT
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5337 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5338 if ${ac_cv_c_compiler_gnu+:} false; then :
5339   $as_echo_n "(cached) " >&6
5340 else
5341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h.  */
5343
5344 int
5345 main ()
5346 {
5347 #ifndef __GNUC__
5348        choke me
5349 #endif
5350
5351   ;
5352   return 0;
5353 }
5354 _ACEOF
5355 if ac_fn_c_try_compile "$LINENO"; then :
5356   ac_compiler_gnu=yes
5357 else
5358   ac_compiler_gnu=no
5359 fi
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5362
5363 fi
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5365 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5366 if test $ac_compiler_gnu = yes; then
5367   GCC=yes
5368 else
5369   GCC=
5370 fi
5371 ac_test_CFLAGS=${CFLAGS+set}
5372 ac_save_CFLAGS=$CFLAGS
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5374 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5375 if ${ac_cv_prog_cc_g+:} false; then :
5376   $as_echo_n "(cached) " >&6
5377 else
5378   ac_save_c_werror_flag=$ac_c_werror_flag
5379    ac_c_werror_flag=yes
5380    ac_cv_prog_cc_g=no
5381    CFLAGS="-g"
5382    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h.  */
5384
5385 int
5386 main ()
5387 {
5388
5389   ;
5390   return 0;
5391 }
5392 _ACEOF
5393 if ac_fn_c_try_compile "$LINENO"; then :
5394   ac_cv_prog_cc_g=yes
5395 else
5396   CFLAGS=""
5397       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h.  */
5399
5400 int
5401 main ()
5402 {
5403
5404   ;
5405   return 0;
5406 }
5407 _ACEOF
5408 if ac_fn_c_try_compile "$LINENO"; then :
5409
5410 else
5411   ac_c_werror_flag=$ac_save_c_werror_flag
5412          CFLAGS="-g"
5413          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h.  */
5415
5416 int
5417 main ()
5418 {
5419
5420   ;
5421   return 0;
5422 }
5423 _ACEOF
5424 if ac_fn_c_try_compile "$LINENO"; then :
5425   ac_cv_prog_cc_g=yes
5426 fi
5427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428 fi
5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430 fi
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432    ac_c_werror_flag=$ac_save_c_werror_flag
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5435 $as_echo "$ac_cv_prog_cc_g" >&6; }
5436 if test "$ac_test_CFLAGS" = set; then
5437   CFLAGS=$ac_save_CFLAGS
5438 elif test $ac_cv_prog_cc_g = yes; then
5439   if test "$GCC" = yes; then
5440     CFLAGS="-g -O2"
5441   else
5442     CFLAGS="-g"
5443   fi
5444 else
5445   if test "$GCC" = yes; then
5446     CFLAGS="-O2"
5447   else
5448     CFLAGS=
5449   fi
5450 fi
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5452 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5453 if ${ac_cv_prog_cc_c89+:} false; then :
5454   $as_echo_n "(cached) " >&6
5455 else
5456   ac_cv_prog_cc_c89=no
5457 ac_save_CC=$CC
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h.  */
5460 #include <stdarg.h>
5461 #include <stdio.h>
5462 struct stat;
5463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5464 struct buf { int x; };
5465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5466 static char *e (p, i)
5467      char **p;
5468      int i;
5469 {
5470   return p[i];
5471 }
5472 static char *f (char * (*g) (char **, int), char **p, ...)
5473 {
5474   char *s;
5475   va_list v;
5476   va_start (v,p);
5477   s = g (p, va_arg (v,int));
5478   va_end (v);
5479   return s;
5480 }
5481
5482 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5483    function prototypes and stuff, but not '\xHH' hex character constants.
5484    These don't provoke an error unfortunately, instead are silently treated
5485    as 'x'.  The following induces an error, until -std is added to get
5486    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5487    array size at least.  It's necessary to write '\x00'==0 to get something
5488    that's true only with -std.  */
5489 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5490
5491 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5492    inside strings and character constants.  */
5493 #define FOO(x) 'x'
5494 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5495
5496 int test (int i, double x);
5497 struct s1 {int (*f) (int a);};
5498 struct s2 {int (*f) (double a);};
5499 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5500 int argc;
5501 char **argv;
5502 int
5503 main ()
5504 {
5505 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5506   ;
5507   return 0;
5508 }
5509 _ACEOF
5510 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5511         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5512 do
5513   CC="$ac_save_CC $ac_arg"
5514   if ac_fn_c_try_compile "$LINENO"; then :
5515   ac_cv_prog_cc_c89=$ac_arg
5516 fi
5517 rm -f core conftest.err conftest.$ac_objext
5518   test "x$ac_cv_prog_cc_c89" != "xno" && break
5519 done
5520 rm -f conftest.$ac_ext
5521 CC=$ac_save_CC
5522
5523 fi
5524 # AC_CACHE_VAL
5525 case "x$ac_cv_prog_cc_c89" in
5526   x)
5527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5528 $as_echo "none needed" >&6; } ;;
5529   xno)
5530     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5531 $as_echo "unsupported" >&6; } ;;
5532   *)
5533     CC="$CC $ac_cv_prog_cc_c89"
5534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5535 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5536 esac
5537 if test "x$ac_cv_prog_cc_c89" != xno; then :
5538
5539 fi
5540
5541 ac_ext=c
5542 ac_cpp='$CPP $CPPFLAGS'
5543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5546
5547 ac_ext=c
5548 ac_cpp='$CPP $CPPFLAGS'
5549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5553 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5554 if ${am_cv_prog_cc_c_o+:} false; then :
5555   $as_echo_n "(cached) " >&6
5556 else
5557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h.  */
5559
5560 int
5561 main ()
5562 {
5563
5564   ;
5565   return 0;
5566 }
5567 _ACEOF
5568   # Make sure it works both with $CC and with simple cc.
5569   # Following AC_PROG_CC_C_O, we do the test twice because some
5570   # compilers refuse to overwrite an existing .o file with -o,
5571   # though they will create one.
5572   am_cv_prog_cc_c_o=yes
5573   for am_i in 1 2; do
5574     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5575    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5576    ac_status=$?
5577    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578    (exit $ac_status); } \
5579          && test -f conftest2.$ac_objext; then
5580       : OK
5581     else
5582       am_cv_prog_cc_c_o=no
5583       break
5584     fi
5585   done
5586   rm -f core conftest*
5587   unset am_i
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5590 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5591 if test "$am_cv_prog_cc_c_o" != yes; then
5592    # Losing compiler, so override with the script.
5593    # FIXME: It is wrong to rewrite CC.
5594    # But if we don't then we get into trouble of one sort or another.
5595    # A longer-term fix would be to have automake use am__CC in this case,
5596    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5597    CC="$am_aux_dir/compile $CC"
5598 fi
5599 ac_ext=c
5600 ac_cpp='$CPP $CPPFLAGS'
5601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5604
5605 DEPDIR="${am__leading_dot}deps"
5606
5607 ac_config_commands="$ac_config_commands depfiles"
5608
5609
5610 am_make=${MAKE-make}
5611 cat > confinc << 'END'
5612 am__doit:
5613         @echo this is the am__doit target
5614 .PHONY: am__doit
5615 END
5616 # If we don't find an include directive, just comment out the code.
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5618 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5619 am__include="#"
5620 am__quote=
5621 _am_result=none
5622 # First try GNU make style include.
5623 echo "include confinc" > confmf
5624 # Ignore all kinds of additional output from 'make'.
5625 case `$am_make -s -f confmf 2> /dev/null` in #(
5626 *the\ am__doit\ target*)
5627   am__include=include
5628   am__quote=
5629   _am_result=GNU
5630   ;;
5631 esac
5632 # Now try BSD make style include.
5633 if test "$am__include" = "#"; then
5634    echo '.include "confinc"' > confmf
5635    case `$am_make -s -f confmf 2> /dev/null` in #(
5636    *the\ am__doit\ target*)
5637      am__include=.include
5638      am__quote="\""
5639      _am_result=BSD
5640      ;;
5641    esac
5642 fi
5643
5644
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5646 $as_echo "$_am_result" >&6; }
5647 rm -f confinc confmf
5648
5649 # Check whether --enable-dependency-tracking was given.
5650 if test "${enable_dependency_tracking+set}" = set; then :
5651   enableval=$enable_dependency_tracking;
5652 fi
5653
5654 if test "x$enable_dependency_tracking" != xno; then
5655   am_depcomp="$ac_aux_dir/depcomp"
5656   AMDEPBACKSLASH='\'
5657   am__nodep='_no'
5658 fi
5659  if test "x$enable_dependency_tracking" != xno; then
5660   AMDEP_TRUE=
5661   AMDEP_FALSE='#'
5662 else
5663   AMDEP_TRUE='#'
5664   AMDEP_FALSE=
5665 fi
5666
5667
5668
5669 depcc="$CC"   am_compiler_list=
5670
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5672 $as_echo_n "checking dependency style of $depcc... " >&6; }
5673 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5674   $as_echo_n "(cached) " >&6
5675 else
5676   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5677   # We make a subdir and do the tests there.  Otherwise we can end up
5678   # making bogus files that we don't know about and never remove.  For
5679   # instance it was reported that on HP-UX the gcc test will end up
5680   # making a dummy file named 'D' -- because '-MD' means "put the output
5681   # in D".
5682   rm -rf conftest.dir
5683   mkdir conftest.dir
5684   # Copy depcomp to subdir because otherwise we won't find it if we're
5685   # using a relative directory.
5686   cp "$am_depcomp" conftest.dir
5687   cd conftest.dir
5688   # We will build objects and dependencies in a subdirectory because
5689   # it helps to detect inapplicable dependency modes.  For instance
5690   # both Tru64's cc and ICC support -MD to output dependencies as a
5691   # side effect of compilation, but ICC will put the dependencies in
5692   # the current directory while Tru64 will put them in the object
5693   # directory.
5694   mkdir sub
5695
5696   am_cv_CC_dependencies_compiler_type=none
5697   if test "$am_compiler_list" = ""; then
5698      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5699   fi
5700   am__universal=false
5701   case " $depcc " in #(
5702      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5703      esac
5704
5705   for depmode in $am_compiler_list; do
5706     # Setup a source with many dependencies, because some compilers
5707     # like to wrap large dependency lists on column 80 (with \), and
5708     # we should not choose a depcomp mode which is confused by this.
5709     #
5710     # We need to recreate these files for each test, as the compiler may
5711     # overwrite some of them when testing with obscure command lines.
5712     # This happens at least with the AIX C compiler.
5713     : > sub/conftest.c
5714     for i in 1 2 3 4 5 6; do
5715       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5716       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5717       # Solaris 10 /bin/sh.
5718       echo '/* dummy */' > sub/conftst$i.h
5719     done
5720     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5721
5722     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5723     # mode.  It turns out that the SunPro C++ compiler does not properly
5724     # handle '-M -o', and we need to detect this.  Also, some Intel
5725     # versions had trouble with output in subdirs.
5726     am__obj=sub/conftest.${OBJEXT-o}
5727     am__minus_obj="-o $am__obj"
5728     case $depmode in
5729     gcc)
5730       # This depmode causes a compiler race in universal mode.
5731       test "$am__universal" = false || continue
5732       ;;
5733     nosideeffect)
5734       # After this tag, mechanisms are not by side-effect, so they'll
5735       # only be used when explicitly requested.
5736       if test "x$enable_dependency_tracking" = xyes; then
5737         continue
5738       else
5739         break
5740       fi
5741       ;;
5742     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5743       # This compiler won't grok '-c -o', but also, the minuso test has
5744       # not run yet.  These depmodes are late enough in the game, and
5745       # so weak that their functioning should not be impacted.
5746       am__obj=conftest.${OBJEXT-o}
5747       am__minus_obj=
5748       ;;
5749     none) break ;;
5750     esac
5751     if depmode=$depmode \
5752        source=sub/conftest.c object=$am__obj \
5753        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5754        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5755          >/dev/null 2>conftest.err &&
5756        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5757        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5758        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5759        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5760       # icc doesn't choke on unknown options, it will just issue warnings
5761       # or remarks (even with -Werror).  So we grep stderr for any message
5762       # that says an option was ignored or not supported.
5763       # When given -MP, icc 7.0 and 7.1 complain thusly:
5764       #   icc: Command line warning: ignoring option '-M'; no argument required
5765       # The diagnosis changed in icc 8.0:
5766       #   icc: Command line remark: option '-MP' not supported
5767       if (grep 'ignoring option' conftest.err ||
5768           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5769         am_cv_CC_dependencies_compiler_type=$depmode
5770         break
5771       fi
5772     fi
5773   done
5774
5775   cd ..
5776   rm -rf conftest.dir
5777 else
5778   am_cv_CC_dependencies_compiler_type=none
5779 fi
5780
5781 fi
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5783 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5784 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5785
5786  if
5787   test "x$enable_dependency_tracking" != xno \
5788   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5789   am__fastdepCC_TRUE=
5790   am__fastdepCC_FALSE='#'
5791 else
5792   am__fastdepCC_TRUE='#'
5793   am__fastdepCC_FALSE=
5794 fi
5795
5796
5797
5798 ac_ext=c
5799 ac_cpp='$CPP $CPPFLAGS'
5800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5804 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5805 # On Suns, sometimes $CPP names a directory.
5806 if test -n "$CPP" && test -d "$CPP"; then
5807   CPP=
5808 fi
5809 if test -z "$CPP"; then
5810   if ${ac_cv_prog_CPP+:} false; then :
5811   $as_echo_n "(cached) " >&6
5812 else
5813       # Double quotes because CPP needs to be expanded
5814     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5815     do
5816       ac_preproc_ok=false
5817 for ac_c_preproc_warn_flag in '' yes
5818 do
5819   # Use a header file that comes with gcc, so configuring glibc
5820   # with a fresh cross-compiler works.
5821   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5822   # <limits.h> exists even on freestanding compilers.
5823   # On the NeXT, cc -E runs the code through the compiler's parser,
5824   # not just through cpp. "Syntax error" is here to catch this case.
5825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h.  */
5827 #ifdef __STDC__
5828 # include <limits.h>
5829 #else
5830 # include <assert.h>
5831 #endif
5832                      Syntax error
5833 _ACEOF
5834 if ac_fn_c_try_cpp "$LINENO"; then :
5835
5836 else
5837   # Broken: fails on valid input.
5838 continue
5839 fi
5840 rm -f conftest.err conftest.i conftest.$ac_ext
5841
5842   # OK, works on sane cases.  Now check whether nonexistent headers
5843   # can be detected and how.
5844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h.  */
5846 #include <ac_nonexistent.h>
5847 _ACEOF
5848 if ac_fn_c_try_cpp "$LINENO"; then :
5849   # Broken: success on invalid input.
5850 continue
5851 else
5852   # Passes both tests.
5853 ac_preproc_ok=:
5854 break
5855 fi
5856 rm -f conftest.err conftest.i conftest.$ac_ext
5857
5858 done
5859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5860 rm -f conftest.i conftest.err conftest.$ac_ext
5861 if $ac_preproc_ok; then :
5862   break
5863 fi
5864
5865     done
5866     ac_cv_prog_CPP=$CPP
5867
5868 fi
5869   CPP=$ac_cv_prog_CPP
5870 else
5871   ac_cv_prog_CPP=$CPP
5872 fi
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5874 $as_echo "$CPP" >&6; }
5875 ac_preproc_ok=false
5876 for ac_c_preproc_warn_flag in '' yes
5877 do
5878   # Use a header file that comes with gcc, so configuring glibc
5879   # with a fresh cross-compiler works.
5880   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5881   # <limits.h> exists even on freestanding compilers.
5882   # On the NeXT, cc -E runs the code through the compiler's parser,
5883   # not just through cpp. "Syntax error" is here to catch this case.
5884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h.  */
5886 #ifdef __STDC__
5887 # include <limits.h>
5888 #else
5889 # include <assert.h>
5890 #endif
5891                      Syntax error
5892 _ACEOF
5893 if ac_fn_c_try_cpp "$LINENO"; then :
5894
5895 else
5896   # Broken: fails on valid input.
5897 continue
5898 fi
5899 rm -f conftest.err conftest.i conftest.$ac_ext
5900
5901   # OK, works on sane cases.  Now check whether nonexistent headers
5902   # can be detected and how.
5903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h.  */
5905 #include <ac_nonexistent.h>
5906 _ACEOF
5907 if ac_fn_c_try_cpp "$LINENO"; then :
5908   # Broken: success on invalid input.
5909 continue
5910 else
5911   # Passes both tests.
5912 ac_preproc_ok=:
5913 break
5914 fi
5915 rm -f conftest.err conftest.i conftest.$ac_ext
5916
5917 done
5918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5919 rm -f conftest.i conftest.err conftest.$ac_ext
5920 if $ac_preproc_ok; then :
5921
5922 else
5923   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5925 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5926 See \`config.log' for more details" "$LINENO" 5; }
5927 fi
5928
5929 ac_ext=c
5930 ac_cpp='$CPP $CPPFLAGS'
5931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5934
5935
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5937 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5938 if ${ac_cv_path_GREP+:} false; then :
5939   $as_echo_n "(cached) " >&6
5940 else
5941   if test -z "$GREP"; then
5942   ac_path_GREP_found=false
5943   # Loop through the user's path and test for each of PROGNAME-LIST
5944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5946 do
5947   IFS=$as_save_IFS
5948   test -z "$as_dir" && as_dir=.
5949     for ac_prog in grep ggrep; do
5950     for ac_exec_ext in '' $ac_executable_extensions; do
5951       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5952       as_fn_executable_p "$ac_path_GREP" || continue
5953 # Check for GNU ac_path_GREP and select it if it is found.
5954   # Check for GNU $ac_path_GREP
5955 case `"$ac_path_GREP" --version 2>&1` in
5956 *GNU*)
5957   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5958 *)
5959   ac_count=0
5960   $as_echo_n 0123456789 >"conftest.in"
5961   while :
5962   do
5963     cat "conftest.in" "conftest.in" >"conftest.tmp"
5964     mv "conftest.tmp" "conftest.in"
5965     cp "conftest.in" "conftest.nl"
5966     $as_echo 'GREP' >> "conftest.nl"
5967     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5968     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5969     as_fn_arith $ac_count + 1 && ac_count=$as_val
5970     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5971       # Best one so far, save it but keep looking for a better one
5972       ac_cv_path_GREP="$ac_path_GREP"
5973       ac_path_GREP_max=$ac_count
5974     fi
5975     # 10*(2^10) chars as input seems more than enough
5976     test $ac_count -gt 10 && break
5977   done
5978   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5979 esac
5980
5981       $ac_path_GREP_found && break 3
5982     done
5983   done
5984   done
5985 IFS=$as_save_IFS
5986   if test -z "$ac_cv_path_GREP"; then
5987     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5988   fi
5989 else
5990   ac_cv_path_GREP=$GREP
5991 fi
5992
5993 fi
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5995 $as_echo "$ac_cv_path_GREP" >&6; }
5996  GREP="$ac_cv_path_GREP"
5997
5998
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6000 $as_echo_n "checking for egrep... " >&6; }
6001 if ${ac_cv_path_EGREP+:} false; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6005    then ac_cv_path_EGREP="$GREP -E"
6006    else
6007      if test -z "$EGREP"; then
6008   ac_path_EGREP_found=false
6009   # Loop through the user's path and test for each of PROGNAME-LIST
6010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6012 do
6013   IFS=$as_save_IFS
6014   test -z "$as_dir" && as_dir=.
6015     for ac_prog in egrep; do
6016     for ac_exec_ext in '' $ac_executable_extensions; do
6017       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6018       as_fn_executable_p "$ac_path_EGREP" || continue
6019 # Check for GNU ac_path_EGREP and select it if it is found.
6020   # Check for GNU $ac_path_EGREP
6021 case `"$ac_path_EGREP" --version 2>&1` in
6022 *GNU*)
6023   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6024 *)
6025   ac_count=0
6026   $as_echo_n 0123456789 >"conftest.in"
6027   while :
6028   do
6029     cat "conftest.in" "conftest.in" >"conftest.tmp"
6030     mv "conftest.tmp" "conftest.in"
6031     cp "conftest.in" "conftest.nl"
6032     $as_echo 'EGREP' >> "conftest.nl"
6033     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6034     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6035     as_fn_arith $ac_count + 1 && ac_count=$as_val
6036     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6037       # Best one so far, save it but keep looking for a better one
6038       ac_cv_path_EGREP="$ac_path_EGREP"
6039       ac_path_EGREP_max=$ac_count
6040     fi
6041     # 10*(2^10) chars as input seems more than enough
6042     test $ac_count -gt 10 && break
6043   done
6044   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6045 esac
6046
6047       $ac_path_EGREP_found && break 3
6048     done
6049   done
6050   done
6051 IFS=$as_save_IFS
6052   if test -z "$ac_cv_path_EGREP"; then
6053     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6054   fi
6055 else
6056   ac_cv_path_EGREP=$EGREP
6057 fi
6058
6059    fi
6060 fi
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6062 $as_echo "$ac_cv_path_EGREP" >&6; }
6063  EGREP="$ac_cv_path_EGREP"
6064
6065
6066
6067
6068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6069 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6070 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6071   $as_echo_n "(cached) " >&6
6072 else
6073
6074       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h.  */
6076
6077 #ifdef __ACK__
6078 Amsterdam
6079 #endif
6080
6081 _ACEOF
6082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6083   $EGREP "Amsterdam" >/dev/null 2>&1; then :
6084   gl_cv_c_amsterdam_compiler=yes
6085 else
6086   gl_cv_c_amsterdam_compiler=no
6087 fi
6088 rm -f conftest*
6089
6090
6091 fi
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6093 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6094   if test -z "$AR"; then
6095     if test $gl_cv_c_amsterdam_compiler = yes; then
6096       AR='cc -c.a'
6097       if test -z "$ARFLAGS"; then
6098         ARFLAGS='-o'
6099       fi
6100     else
6101                   if test -n "$ac_tool_prefix"; then
6102   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6103 set dummy ${ac_tool_prefix}ar; ac_word=$2
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105 $as_echo_n "checking for $ac_word... " >&6; }
6106 if ${ac_cv_prog_AR+:} false; then :
6107   $as_echo_n "(cached) " >&6
6108 else
6109   if test -n "$AR"; then
6110   ac_cv_prog_AR="$AR" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115   IFS=$as_save_IFS
6116   test -z "$as_dir" && as_dir=.
6117     for ac_exec_ext in '' $ac_executable_extensions; do
6118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119     ac_cv_prog_AR="${ac_tool_prefix}ar"
6120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121     break 2
6122   fi
6123 done
6124   done
6125 IFS=$as_save_IFS
6126
6127 fi
6128 fi
6129 AR=$ac_cv_prog_AR
6130 if test -n "$AR"; then
6131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6132 $as_echo "$AR" >&6; }
6133 else
6134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135 $as_echo "no" >&6; }
6136 fi
6137
6138
6139 fi
6140 if test -z "$ac_cv_prog_AR"; then
6141   ac_ct_AR=$AR
6142   # Extract the first word of "ar", so it can be a program name with args.
6143 set dummy ar; ac_word=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6147   $as_echo_n "(cached) " >&6
6148 else
6149   if test -n "$ac_ct_AR"; then
6150   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155   IFS=$as_save_IFS
6156   test -z "$as_dir" && as_dir=.
6157     for ac_exec_ext in '' $ac_executable_extensions; do
6158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6159     ac_cv_prog_ac_ct_AR="ar"
6160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161     break 2
6162   fi
6163 done
6164   done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6170 if test -n "$ac_ct_AR"; then
6171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6172 $as_echo "$ac_ct_AR" >&6; }
6173 else
6174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6176 fi
6177
6178   if test "x$ac_ct_AR" = x; then
6179     AR="ar"
6180   else
6181     case $cross_compiling:$ac_tool_warned in
6182 yes:)
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6185 ac_tool_warned=yes ;;
6186 esac
6187     AR=$ac_ct_AR
6188   fi
6189 else
6190   AR="$ac_cv_prog_AR"
6191 fi
6192
6193       if test -z "$ARFLAGS"; then
6194         ARFLAGS='cru'
6195       fi
6196     fi
6197   else
6198     if test -z "$ARFLAGS"; then
6199       ARFLAGS='cru'
6200     fi
6201   fi
6202
6203
6204   if test -z "$RANLIB"; then
6205     if test $gl_cv_c_amsterdam_compiler = yes; then
6206       RANLIB=':'
6207     else
6208             if test -n "$ac_tool_prefix"; then
6209   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6210 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if ${ac_cv_prog_RANLIB+:} false; then :
6214   $as_echo_n "(cached) " >&6
6215 else
6216   if test -n "$RANLIB"; then
6217   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222   IFS=$as_save_IFS
6223   test -z "$as_dir" && as_dir=.
6224     for ac_exec_ext in '' $ac_executable_extensions; do
6225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6226     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228     break 2
6229   fi
6230 done
6231   done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 RANLIB=$ac_cv_prog_RANLIB
6237 if test -n "$RANLIB"; then
6238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6239 $as_echo "$RANLIB" >&6; }
6240 else
6241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6243 fi
6244
6245
6246 fi
6247 if test -z "$ac_cv_prog_RANLIB"; then
6248   ac_ct_RANLIB=$RANLIB
6249   # Extract the first word of "ranlib", so it can be a program name with args.
6250 set dummy ranlib; ac_word=$2
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252 $as_echo_n "checking for $ac_word... " >&6; }
6253 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6254   $as_echo_n "(cached) " >&6
6255 else
6256   if test -n "$ac_ct_RANLIB"; then
6257   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262   IFS=$as_save_IFS
6263   test -z "$as_dir" && as_dir=.
6264     for ac_exec_ext in '' $ac_executable_extensions; do
6265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266     ac_cv_prog_ac_ct_RANLIB="ranlib"
6267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268     break 2
6269   fi
6270 done
6271   done
6272 IFS=$as_save_IFS
6273
6274 fi
6275 fi
6276 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6277 if test -n "$ac_ct_RANLIB"; then
6278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6279 $as_echo "$ac_ct_RANLIB" >&6; }
6280 else
6281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 $as_echo "no" >&6; }
6283 fi
6284
6285   if test "x$ac_ct_RANLIB" = x; then
6286     RANLIB=":"
6287   else
6288     case $cross_compiling:$ac_tool_warned in
6289 yes:)
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6292 ac_tool_warned=yes ;;
6293 esac
6294     RANLIB=$ac_ct_RANLIB
6295   fi
6296 else
6297   RANLIB="$ac_cv_prog_RANLIB"
6298 fi
6299
6300     fi
6301   fi
6302
6303
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6305 $as_echo_n "checking for ANSI C header files... " >&6; }
6306 if ${ac_cv_header_stdc+:} false; then :
6307   $as_echo_n "(cached) " >&6
6308 else
6309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h.  */
6311 #include <stdlib.h>
6312 #include <stdarg.h>
6313 #include <string.h>
6314 #include <float.h>
6315
6316 int
6317 main ()
6318 {
6319
6320   ;
6321   return 0;
6322 }
6323 _ACEOF
6324 if ac_fn_c_try_compile "$LINENO"; then :
6325   ac_cv_header_stdc=yes
6326 else
6327   ac_cv_header_stdc=no
6328 fi
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330
6331 if test $ac_cv_header_stdc = yes; then
6332   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h.  */
6335 #include <string.h>
6336
6337 _ACEOF
6338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6339   $EGREP "memchr" >/dev/null 2>&1; then :
6340
6341 else
6342   ac_cv_header_stdc=no
6343 fi
6344 rm -f conftest*
6345
6346 fi
6347
6348 if test $ac_cv_header_stdc = yes; then
6349   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h.  */
6352 #include <stdlib.h>
6353
6354 _ACEOF
6355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6356   $EGREP "free" >/dev/null 2>&1; then :
6357
6358 else
6359   ac_cv_header_stdc=no
6360 fi
6361 rm -f conftest*
6362
6363 fi
6364
6365 if test $ac_cv_header_stdc = yes; then
6366   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6367   if test "$cross_compiling" = yes; then :
6368   :
6369 else
6370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h.  */
6372 #include <ctype.h>
6373 #include <stdlib.h>
6374 #if ((' ' & 0x0FF) == 0x020)
6375 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6376 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6377 #else
6378 # define ISLOWER(c) \
6379                    (('a' <= (c) && (c) <= 'i') \
6380                      || ('j' <= (c) && (c) <= 'r') \
6381                      || ('s' <= (c) && (c) <= 'z'))
6382 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6383 #endif
6384
6385 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6386 int
6387 main ()
6388 {
6389   int i;
6390   for (i = 0; i < 256; i++)
6391     if (XOR (islower (i), ISLOWER (i))
6392         || toupper (i) != TOUPPER (i))
6393       return 2;
6394   return 0;
6395 }
6396 _ACEOF
6397 if ac_fn_c_try_run "$LINENO"; then :
6398
6399 else
6400   ac_cv_header_stdc=no
6401 fi
6402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6403   conftest.$ac_objext conftest.beam conftest.$ac_ext
6404 fi
6405
6406 fi
6407 fi
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6409 $as_echo "$ac_cv_header_stdc" >&6; }
6410 if test $ac_cv_header_stdc = yes; then
6411
6412 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6413
6414 fi
6415
6416 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6417 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6418                   inttypes.h stdint.h unistd.h
6419 do :
6420   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6421 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6422 "
6423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6424   cat >>confdefs.h <<_ACEOF
6425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6426 _ACEOF
6427
6428 fi
6429
6430 done
6431
6432
6433
6434   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6435 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6436   MINIX=yes
6437 else
6438   MINIX=
6439 fi
6440
6441
6442   if test "$MINIX" = yes; then
6443
6444 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6445
6446
6447 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6448
6449
6450 $as_echo "#define _MINIX 1" >>confdefs.h
6451
6452
6453 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6454
6455   fi
6456
6457
6458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6459 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6460 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6461   $as_echo_n "(cached) " >&6
6462 else
6463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h.  */
6465
6466 #         define __EXTENSIONS__ 1
6467           $ac_includes_default
6468 int
6469 main ()
6470 {
6471
6472   ;
6473   return 0;
6474 }
6475 _ACEOF
6476 if ac_fn_c_try_compile "$LINENO"; then :
6477   ac_cv_safe_to_define___extensions__=yes
6478 else
6479   ac_cv_safe_to_define___extensions__=no
6480 fi
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482 fi
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6484 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6485   test $ac_cv_safe_to_define___extensions__ = yes &&
6486     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6487
6488   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6489
6490   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6491
6492   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6493
6494   $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
6495
6496   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6497
6498   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6499
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6501 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6502 if ${ac_cv_should_define__xopen_source+:} false; then :
6503   $as_echo_n "(cached) " >&6
6504 else
6505   ac_cv_should_define__xopen_source=no
6506      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h.  */
6508
6509           #include <wchar.h>
6510           mbstate_t x;
6511 int
6512 main ()
6513 {
6514
6515   ;
6516   return 0;
6517 }
6518 _ACEOF
6519 if ac_fn_c_try_compile "$LINENO"; then :
6520
6521 else
6522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h.  */
6524
6525              #define _XOPEN_SOURCE 500
6526              #include <wchar.h>
6527              mbstate_t x;
6528 int
6529 main ()
6530 {
6531
6532   ;
6533   return 0;
6534 }
6535 _ACEOF
6536 if ac_fn_c_try_compile "$LINENO"; then :
6537   ac_cv_should_define__xopen_source=yes
6538 fi
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 fi
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 fi
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6544 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6545   test $ac_cv_should_define__xopen_source = yes &&
6546     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558   # IEEE behaviour is the default on all CPUs except Alpha and SH
6559   # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6560   # and the GCC 4.1.2 manual).
6561   case "$host_cpu" in
6562     alpha*)
6563       # On Alpha systems, a compiler option provides the behaviour.
6564       # See the ieee(3) manual page, also available at
6565       # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
6566       if test -n "$GCC"; then
6567         # GCC has the option -mieee.
6568         # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6569         CPPFLAGS="$CPPFLAGS -mieee"
6570       else
6571         # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6572         # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6573         CPPFLAGS="$CPPFLAGS -ieee"
6574       fi
6575       ;;
6576     sh*)
6577       if test -n "$GCC"; then
6578         # GCC has the option -mieee.
6579         CPPFLAGS="$CPPFLAGS -mieee"
6580       fi
6581       ;;
6582   esac
6583
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6585 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6586 if ${ac_cv_sys_largefile_source+:} false; then :
6587   $as_echo_n "(cached) " >&6
6588 else
6589   while :; do
6590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h.  */
6592 #include <sys/types.h> /* for off_t */
6593      #include <stdio.h>
6594 int
6595 main ()
6596 {
6597 int (*fp) (FILE *, off_t, int) = fseeko;
6598      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6599   ;
6600   return 0;
6601 }
6602 _ACEOF
6603 if ac_fn_c_try_link "$LINENO"; then :
6604   ac_cv_sys_largefile_source=no; break
6605 fi
6606 rm -f core conftest.err conftest.$ac_objext \
6607     conftest$ac_exeext conftest.$ac_ext
6608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h.  */
6610 #define _LARGEFILE_SOURCE 1
6611 #include <sys/types.h> /* for off_t */
6612      #include <stdio.h>
6613 int
6614 main ()
6615 {
6616 int (*fp) (FILE *, off_t, int) = fseeko;
6617      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6618   ;
6619   return 0;
6620 }
6621 _ACEOF
6622 if ac_fn_c_try_link "$LINENO"; then :
6623   ac_cv_sys_largefile_source=1; break
6624 fi
6625 rm -f core conftest.err conftest.$ac_objext \
6626     conftest$ac_exeext conftest.$ac_ext
6627   ac_cv_sys_largefile_source=unknown
6628   break
6629 done
6630 fi
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6632 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6633 case $ac_cv_sys_largefile_source in #(
6634   no | unknown) ;;
6635   *)
6636 cat >>confdefs.h <<_ACEOF
6637 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6638 _ACEOF
6639 ;;
6640 esac
6641 rm -rf conftest*
6642
6643 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6644 # in glibc 2.1.3, but that breaks too many other things.
6645 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6646 if test $ac_cv_sys_largefile_source != unknown; then
6647
6648 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
6649
6650 fi
6651
6652 # Check whether --enable-largefile was given.
6653 if test "${enable_largefile+set}" = set; then :
6654   enableval=$enable_largefile;
6655 fi
6656
6657 if test "$enable_largefile" != no; then
6658
6659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6660 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6661 if ${ac_cv_sys_largefile_CC+:} false; then :
6662   $as_echo_n "(cached) " >&6
6663 else
6664   ac_cv_sys_largefile_CC=no
6665      if test "$GCC" != yes; then
6666        ac_save_CC=$CC
6667        while :; do
6668          # IRIX 6.2 and later do not support large files by default,
6669          # so use the C compiler's -n32 option if that helps.
6670          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h.  */
6672 #include <sys/types.h>
6673  /* Check that off_t can represent 2**63 - 1 correctly.
6674     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6675     since some C++ compilers masquerading as C compilers
6676     incorrectly reject 9223372036854775807.  */
6677 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6678   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6679                        && LARGE_OFF_T % 2147483647 == 1)
6680                       ? 1 : -1];
6681 int
6682 main ()
6683 {
6684
6685   ;
6686   return 0;
6687 }
6688 _ACEOF
6689          if ac_fn_c_try_compile "$LINENO"; then :
6690   break
6691 fi
6692 rm -f core conftest.err conftest.$ac_objext
6693          CC="$CC -n32"
6694          if ac_fn_c_try_compile "$LINENO"; then :
6695   ac_cv_sys_largefile_CC=' -n32'; break
6696 fi
6697 rm -f core conftest.err conftest.$ac_objext
6698          break
6699        done
6700        CC=$ac_save_CC
6701        rm -f conftest.$ac_ext
6702     fi
6703 fi
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6705 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6706   if test "$ac_cv_sys_largefile_CC" != no; then
6707     CC=$CC$ac_cv_sys_largefile_CC
6708   fi
6709
6710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6711 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6712 if ${ac_cv_sys_file_offset_bits+:} false; then :
6713   $as_echo_n "(cached) " >&6
6714 else
6715   while :; do
6716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h.  */
6718 #include <sys/types.h>
6719  /* Check that off_t can represent 2**63 - 1 correctly.
6720     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6721     since some C++ compilers masquerading as C compilers
6722     incorrectly reject 9223372036854775807.  */
6723 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6724   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6725                        && LARGE_OFF_T % 2147483647 == 1)
6726                       ? 1 : -1];
6727 int
6728 main ()
6729 {
6730
6731   ;
6732   return 0;
6733 }
6734 _ACEOF
6735 if ac_fn_c_try_compile "$LINENO"; then :
6736   ac_cv_sys_file_offset_bits=no; break
6737 fi
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h.  */
6741 #define _FILE_OFFSET_BITS 64
6742 #include <sys/types.h>
6743  /* Check that off_t can represent 2**63 - 1 correctly.
6744     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6745     since some C++ compilers masquerading as C compilers
6746     incorrectly reject 9223372036854775807.  */
6747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6748   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6749                        && LARGE_OFF_T % 2147483647 == 1)
6750                       ? 1 : -1];
6751 int
6752 main ()
6753 {
6754
6755   ;
6756   return 0;
6757 }
6758 _ACEOF
6759 if ac_fn_c_try_compile "$LINENO"; then :
6760   ac_cv_sys_file_offset_bits=64; break
6761 fi
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763   ac_cv_sys_file_offset_bits=unknown
6764   break
6765 done
6766 fi
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6768 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6769 case $ac_cv_sys_file_offset_bits in #(
6770   no | unknown) ;;
6771   *)
6772 cat >>confdefs.h <<_ACEOF
6773 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6774 _ACEOF
6775 ;;
6776 esac
6777 rm -rf conftest*
6778   if test $ac_cv_sys_file_offset_bits = unknown; then
6779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6780 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6781 if ${ac_cv_sys_large_files+:} false; then :
6782   $as_echo_n "(cached) " >&6
6783 else
6784   while :; do
6785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h.  */
6787 #include <sys/types.h>
6788  /* Check that off_t can represent 2**63 - 1 correctly.
6789     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6790     since some C++ compilers masquerading as C compilers
6791     incorrectly reject 9223372036854775807.  */
6792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6793   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6794                        && LARGE_OFF_T % 2147483647 == 1)
6795                       ? 1 : -1];
6796 int
6797 main ()
6798 {
6799
6800   ;
6801   return 0;
6802 }
6803 _ACEOF
6804 if ac_fn_c_try_compile "$LINENO"; then :
6805   ac_cv_sys_large_files=no; break
6806 fi
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h.  */
6810 #define _LARGE_FILES 1
6811 #include <sys/types.h>
6812  /* Check that off_t can represent 2**63 - 1 correctly.
6813     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6814     since some C++ compilers masquerading as C compilers
6815     incorrectly reject 9223372036854775807.  */
6816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6817   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6818                        && LARGE_OFF_T % 2147483647 == 1)
6819                       ? 1 : -1];
6820 int
6821 main ()
6822 {
6823
6824   ;
6825   return 0;
6826 }
6827 _ACEOF
6828 if ac_fn_c_try_compile "$LINENO"; then :
6829   ac_cv_sys_large_files=1; break
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832   ac_cv_sys_large_files=unknown
6833   break
6834 done
6835 fi
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6837 $as_echo "$ac_cv_sys_large_files" >&6; }
6838 case $ac_cv_sys_large_files in #(
6839   no | unknown) ;;
6840   *)
6841 cat >>confdefs.h <<_ACEOF
6842 #define _LARGE_FILES $ac_cv_sys_large_files
6843 _ACEOF
6844 ;;
6845 esac
6846 rm -rf conftest*
6847   fi
6848
6849
6850 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6851
6852 fi
6853
6854
6855
6856   # Code from module absolute-header:
6857   # Code from module alloca:
6858   # Code from module alloca-opt:
6859   # Code from module alloca-opt-tests:
6860   # Code from module base64:
6861   # Code from module base64-tests:
6862   # Code from module binary-io:
6863   # Code from module binary-io-tests:
6864   # Code from module byteswap:
6865   # Code from module byteswap-tests:
6866   # Code from module c-ctype:
6867   # Code from module c-ctype-tests:
6868   # Code from module errno:
6869   # Code from module errno-tests:
6870   # Code from module extensions:
6871
6872   # Code from module extern-inline:
6873   # Code from module fcntl-h:
6874   # Code from module fcntl-h-tests:
6875   # Code from module fdopen:
6876   # Code from module fdopen-tests:
6877   # Code from module fgetc-tests:
6878   # Code from module float:
6879   # Code from module float-tests:
6880   # Code from module fpieee:
6881
6882   # Code from module fpucw:
6883   # Code from module fputc-tests:
6884   # Code from module fread-tests:
6885   # Code from module fstat:
6886   # Code from module fstat-tests:
6887   # Code from module ftell:
6888   # Code from module ftell-tests:
6889   # Code from module ftello:
6890
6891   # Code from module ftello-tests:
6892   # Code from module func:
6893   # Code from module func-tests:
6894   # Code from module fwrite-tests:
6895   # Code from module gendocs:
6896   # Code from module getdelim:
6897   # Code from module getdelim-tests:
6898   # Code from module getline:
6899   # Code from module getline-tests:
6900   # Code from module getpagesize:
6901   # Code from module gettext:
6902   # Code from module gettext-h:
6903   # Code from module gettimeofday:
6904   # Code from module gettimeofday-tests:
6905   # Code from module gnumakefile:
6906   # Code from module hash-pjw-bare:
6907   # Code from module havelib:
6908   # Code from module iconv:
6909   # Code from module iconv-tests:
6910   # Code from module include_next:
6911   # Code from module intprops:
6912   # Code from module intprops-tests:
6913   # Code from module inttypes:
6914   # Code from module inttypes-incomplete:
6915   # Code from module inttypes-tests:
6916   # Code from module largefile:
6917
6918   # Code from module lib-msvc-compat:
6919   # Code from module lib-symbol-versions:
6920   # Code from module lseek:
6921   # Code from module maintainer-makefile:
6922   # Code from module malloc-posix:
6923   # Code from module manywarnings:
6924   # Code from module memchr:
6925   # Code from module memchr-tests:
6926   # Code from module memmem-simple:
6927   # Code from module minmax:
6928   # Code from module msvc-inval:
6929   # Code from module msvc-nothrow:
6930   # Code from module multiarch:
6931   # Code from module netdb:
6932   # Code from module netdb-tests:
6933   # Code from module netinet_in:
6934   # Code from module netinet_in-tests:
6935   # Code from module pmccabe2html:
6936   # Code from module read-file:
6937   # Code from module read-file-tests:
6938   # Code from module realloc-posix:
6939   # Code from module size_max:
6940   # Code from module snippet/_Noreturn:
6941   # Code from module snippet/arg-nonnull:
6942   # Code from module snippet/c++defs:
6943   # Code from module snippet/warn-on-use:
6944   # Code from module snprintf:
6945   # Code from module snprintf-tests:
6946   # Code from module socklen:
6947   # Code from module ssize_t:
6948   # Code from module stdalign:
6949   # Code from module stdalign-tests:
6950   # Code from module stdbool:
6951   # Code from module stdbool-tests:
6952   # Code from module stddef:
6953   # Code from module stddef-tests:
6954   # Code from module stdint:
6955   # Code from module stdint-tests:
6956   # Code from module stdio:
6957   # Code from module stdio-tests:
6958   # Code from module stdlib:
6959   # Code from module stdlib-tests:
6960   # Code from module strcase:
6961   # Code from module string:
6962   # Code from module string-tests:
6963   # Code from module strings:
6964   # Code from module strings-tests:
6965   # Code from module strndup:
6966   # Code from module strnlen:
6967   # Code from module strnlen-tests:
6968   # Code from module strtok_r:
6969   # Code from module strverscmp:
6970   # Code from module strverscmp-tests:
6971   # Code from module sys_socket:
6972   # Code from module sys_socket-tests:
6973   # Code from module sys_stat:
6974   # Code from module sys_stat-tests:
6975   # Code from module sys_time:
6976   # Code from module sys_time-tests:
6977   # Code from module sys_types:
6978   # Code from module sys_types-tests:
6979   # Code from module sys_uio:
6980   # Code from module sys_uio-tests:
6981   # Code from module test-framework-sh:
6982   # Code from module test-framework-sh-tests:
6983   # Code from module time:
6984   # Code from module time-tests:
6985   # Code from module time_r:
6986   # Code from module u64:
6987   # Code from module u64-tests:
6988   # Code from module unistd:
6989   # Code from module unistd-tests:
6990   # Code from module useless-if-before-free:
6991   # Code from module valgrind-tests:
6992   # Code from module vasnprintf:
6993   # Code from module vasnprintf-tests:
6994   # Code from module vasprintf:
6995   # Code from module vasprintf-tests:
6996   # Code from module vc-list-files:
6997   # Code from module vc-list-files-tests:
6998   # Code from module verify:
6999   # Code from module verify-tests:
7000   # Code from module vsnprintf:
7001   # Code from module vsnprintf-tests:
7002   # Code from module warnings:
7003   # Code from module wchar:
7004   # Code from module wchar-tests:
7005   # Code from module xsize:
7006
7007
7008
7009   # Code from module absolute-header:
7010   # Code from module accept:
7011   # Code from module alloca:
7012   # Code from module alloca-opt:
7013   # Code from module arpa_inet:
7014   # Code from module bind:
7015   # Code from module c-ctype:
7016   # Code from module clock-time:
7017   # Code from module close:
7018   # Code from module connect:
7019   # Code from module dup2:
7020   # Code from module environ:
7021   # Code from module errno:
7022   # Code from module error:
7023   # Code from module exitfail:
7024   # Code from module extensions:
7025
7026   # Code from module extern-inline:
7027   # Code from module fd-hook:
7028   # Code from module float:
7029   # Code from module fseek:
7030   # Code from module fseeko:
7031
7032   # Code from module fstat:
7033   # Code from module ftell:
7034   # Code from module ftello:
7035
7036   # Code from module getaddrinfo:
7037   # Code from module getdelim:
7038   # Code from module getline:
7039   # Code from module getpass:
7040   # Code from module getpeername:
7041   # Code from module gettext-h:
7042   # Code from module gettime:
7043   # Code from module gettimeofday:
7044   # Code from module hostent:
7045   # Code from module include_next:
7046   # Code from module inet_ntop:
7047   # Code from module inet_pton:
7048   # Code from module intprops:
7049   # Code from module largefile:
7050
7051   # Code from module listen:
7052   # Code from module lseek:
7053   # Code from module malloc-posix:
7054   # Code from module malloca:
7055   # Code from module memchr:
7056   # Code from module minmax:
7057   # Code from module mktime:
7058   # Code from module msvc-inval:
7059   # Code from module msvc-nothrow:
7060   # Code from module multiarch:
7061   # Code from module netdb:
7062   # Code from module netinet_in:
7063   # Code from module parse-datetime:
7064   # Code from module progname:
7065   # Code from module read-file:
7066   # Code from module realloc-posix:
7067   # Code from module recv:
7068   # Code from module recvfrom:
7069   # Code from module select:
7070   # Code from module send:
7071   # Code from module sendto:
7072   # Code from module servent:
7073   # Code from module setenv:
7074   # Code from module setsockopt:
7075   # Code from module shutdown:
7076   # Code from module signal-h:
7077   # Code from module size_max:
7078   # Code from module snippet/_Noreturn:
7079   # Code from module snippet/arg-nonnull:
7080   # Code from module snippet/c++defs:
7081   # Code from module snippet/warn-on-use:
7082   # Code from module snprintf:
7083   # Code from module socket:
7084   # Code from module socketlib:
7085   # Code from module sockets:
7086   # Code from module socklen:
7087   # Code from module ssize_t:
7088   # Code from module stdalign:
7089   # Code from module stdbool:
7090   # Code from module stddef:
7091   # Code from module stdint:
7092   # Code from module stdio:
7093   # Code from module stdlib:
7094   # Code from module strdup-posix:
7095   # Code from module strerror:
7096   # Code from module strerror-override:
7097   # Code from module string:
7098   # Code from module sys_select:
7099   # Code from module sys_socket:
7100   # Code from module sys_stat:
7101   # Code from module sys_time:
7102   # Code from module sys_types:
7103   # Code from module sys_uio:
7104   # Code from module time:
7105   # Code from module time_r:
7106   # Code from module timespec:
7107   # Code from module unistd:
7108   # Code from module unsetenv:
7109   # Code from module vasnprintf:
7110   # Code from module verify:
7111   # Code from module wchar:
7112   # Code from module xalloc:
7113   # Code from module xalloc-die:
7114   # Code from module xalloc-oversized:
7115   # Code from module xsize:
7116
7117 # By default we simply use the C compiler to build assembly code.
7118
7119 test "${CCAS+set}" = set || CCAS=$CC
7120 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
7121
7122
7123
7124 depcc="$CCAS"   am_compiler_list=
7125
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7127 $as_echo_n "checking dependency style of $depcc... " >&6; }
7128 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
7129   $as_echo_n "(cached) " >&6
7130 else
7131   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7132   # We make a subdir and do the tests there.  Otherwise we can end up
7133   # making bogus files that we don't know about and never remove.  For
7134   # instance it was reported that on HP-UX the gcc test will end up
7135   # making a dummy file named 'D' -- because '-MD' means "put the output
7136   # in D".
7137   rm -rf conftest.dir
7138   mkdir conftest.dir
7139   # Copy depcomp to subdir because otherwise we won't find it if we're
7140   # using a relative directory.
7141   cp "$am_depcomp" conftest.dir
7142   cd conftest.dir
7143   # We will build objects and dependencies in a subdirectory because
7144   # it helps to detect inapplicable dependency modes.  For instance
7145   # both Tru64's cc and ICC support -MD to output dependencies as a
7146   # side effect of compilation, but ICC will put the dependencies in
7147   # the current directory while Tru64 will put them in the object
7148   # directory.
7149   mkdir sub
7150
7151   am_cv_CCAS_dependencies_compiler_type=none
7152   if test "$am_compiler_list" = ""; then
7153      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7154   fi
7155   am__universal=false
7156
7157
7158   for depmode in $am_compiler_list; do
7159     # Setup a source with many dependencies, because some compilers
7160     # like to wrap large dependency lists on column 80 (with \), and
7161     # we should not choose a depcomp mode which is confused by this.
7162     #
7163     # We need to recreate these files for each test, as the compiler may
7164     # overwrite some of them when testing with obscure command lines.
7165     # This happens at least with the AIX C compiler.
7166     : > sub/conftest.c
7167     for i in 1 2 3 4 5 6; do
7168       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7169       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7170       # Solaris 10 /bin/sh.
7171       echo '/* dummy */' > sub/conftst$i.h
7172     done
7173     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7174
7175     # We check with '-c' and '-o' for the sake of the "dashmstdout"
7176     # mode.  It turns out that the SunPro C++ compiler does not properly
7177     # handle '-M -o', and we need to detect this.  Also, some Intel
7178     # versions had trouble with output in subdirs.
7179     am__obj=sub/conftest.${OBJEXT-o}
7180     am__minus_obj="-o $am__obj"
7181     case $depmode in
7182     gcc)
7183       # This depmode causes a compiler race in universal mode.
7184       test "$am__universal" = false || continue
7185       ;;
7186     nosideeffect)
7187       # After this tag, mechanisms are not by side-effect, so they'll
7188       # only be used when explicitly requested.
7189       if test "x$enable_dependency_tracking" = xyes; then
7190         continue
7191       else
7192         break
7193       fi
7194       ;;
7195     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7196       # This compiler won't grok '-c -o', but also, the minuso test has
7197       # not run yet.  These depmodes are late enough in the game, and
7198       # so weak that their functioning should not be impacted.
7199       am__obj=conftest.${OBJEXT-o}
7200       am__minus_obj=
7201       ;;
7202     none) break ;;
7203     esac
7204     if depmode=$depmode \
7205        source=sub/conftest.c object=$am__obj \
7206        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7207        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7208          >/dev/null 2>conftest.err &&
7209        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7210        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7211        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7212        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7213       # icc doesn't choke on unknown options, it will just issue warnings
7214       # or remarks (even with -Werror).  So we grep stderr for any message
7215       # that says an option was ignored or not supported.
7216       # When given -MP, icc 7.0 and 7.1 complain thusly:
7217       #   icc: Command line warning: ignoring option '-M'; no argument required
7218       # The diagnosis changed in icc 8.0:
7219       #   icc: Command line remark: option '-MP' not supported
7220       if (grep 'ignoring option' conftest.err ||
7221           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7222         am_cv_CCAS_dependencies_compiler_type=$depmode
7223         break
7224       fi
7225     fi
7226   done
7227
7228   cd ..
7229   rm -rf conftest.dir
7230 else
7231   am_cv_CCAS_dependencies_compiler_type=none
7232 fi
7233
7234 fi
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
7236 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
7237 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
7238
7239  if
7240   test "x$enable_dependency_tracking" != xno \
7241   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
7242   am__fastdepCCAS_TRUE=
7243   am__fastdepCCAS_FALSE='#'
7244 else
7245   am__fastdepCCAS_TRUE='#'
7246   am__fastdepCCAS_FALSE=
7247 fi
7248
7249
7250 if test -n "$ac_tool_prefix"; then
7251   for ac_prog in ar lib "link -lib"
7252   do
7253     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256 $as_echo_n "checking for $ac_word... " >&6; }
7257 if ${ac_cv_prog_AR+:} false; then :
7258   $as_echo_n "(cached) " >&6
7259 else
7260   if test -n "$AR"; then
7261   ac_cv_prog_AR="$AR" # Let the user override the test.
7262 else
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH
7265 do
7266   IFS=$as_save_IFS
7267   test -z "$as_dir" && as_dir=.
7268     for ac_exec_ext in '' $ac_executable_extensions; do
7269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7272     break 2
7273   fi
7274 done
7275   done
7276 IFS=$as_save_IFS
7277
7278 fi
7279 fi
7280 AR=$ac_cv_prog_AR
7281 if test -n "$AR"; then
7282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7283 $as_echo "$AR" >&6; }
7284 else
7285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286 $as_echo "no" >&6; }
7287 fi
7288
7289
7290     test -n "$AR" && break
7291   done
7292 fi
7293 if test -z "$AR"; then
7294   ac_ct_AR=$AR
7295   for ac_prog in ar lib "link -lib"
7296 do
7297   # Extract the first word of "$ac_prog", so it can be a program name with args.
7298 set dummy $ac_prog; ac_word=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7302   $as_echo_n "(cached) " >&6
7303 else
7304   if test -n "$ac_ct_AR"; then
7305   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7306 else
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 for as_dir in $PATH
7309 do
7310   IFS=$as_save_IFS
7311   test -z "$as_dir" && as_dir=.
7312     for ac_exec_ext in '' $ac_executable_extensions; do
7313   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7314     ac_cv_prog_ac_ct_AR="$ac_prog"
7315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316     break 2
7317   fi
7318 done
7319   done
7320 IFS=$as_save_IFS
7321
7322 fi
7323 fi
7324 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7325 if test -n "$ac_ct_AR"; then
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7327 $as_echo "$ac_ct_AR" >&6; }
7328 else
7329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7331 fi
7332
7333
7334   test -n "$ac_ct_AR" && break
7335 done
7336
7337   if test "x$ac_ct_AR" = x; then
7338     AR="false"
7339   else
7340     case $cross_compiling:$ac_tool_warned in
7341 yes:)
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 ac_tool_warned=yes ;;
7345 esac
7346     AR=$ac_ct_AR
7347   fi
7348 fi
7349
7350 : ${AR=ar}
7351
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7353 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
7354 if ${am_cv_ar_interface+:} false; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   ac_ext=c
7358 ac_cpp='$CPP $CPPFLAGS'
7359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7362
7363    am_cv_ar_interface=ar
7364    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h.  */
7366 int some_variable = 0;
7367 _ACEOF
7368 if ac_fn_c_try_compile "$LINENO"; then :
7369   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7370       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7371   (eval $am_ar_try) 2>&5
7372   ac_status=$?
7373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7374   test $ac_status = 0; }
7375       if test "$ac_status" -eq 0; then
7376         am_cv_ar_interface=ar
7377       else
7378         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7379         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7380   (eval $am_ar_try) 2>&5
7381   ac_status=$?
7382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7383   test $ac_status = 0; }
7384         if test "$ac_status" -eq 0; then
7385           am_cv_ar_interface=lib
7386         else
7387           am_cv_ar_interface=unknown
7388         fi
7389       fi
7390       rm -f conftest.lib libconftest.a
7391
7392 fi
7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394    ac_ext=c
7395 ac_cpp='$CPP $CPPFLAGS'
7396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7399
7400 fi
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7402 $as_echo "$am_cv_ar_interface" >&6; }
7403
7404 case $am_cv_ar_interface in
7405 ar)
7406   ;;
7407 lib)
7408   # Microsoft lib, so override with the ar-lib wrapper script.
7409   # FIXME: It is wrong to rewrite AR.
7410   # But if we don't then we get into trouble of one sort or another.
7411   # A longer-term fix would be to have automake use am__AR in this case,
7412   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7413   # similar.
7414   AR="$am_aux_dir/ar-lib $AR"
7415   ;;
7416 unknown)
7417   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7418   ;;
7419 esac
7420
7421 ac_ext=cpp
7422 ac_cpp='$CXXCPP $CPPFLAGS'
7423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7426 if test -z "$CXX"; then
7427   if test -n "$CCC"; then
7428     CXX=$CCC
7429   else
7430     if test -n "$ac_tool_prefix"; then
7431   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7432   do
7433     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_CXX+:} false; then :
7438   $as_echo_n "(cached) " >&6
7439 else
7440   if test -n "$CXX"; then
7441   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446   IFS=$as_save_IFS
7447   test -z "$as_dir" && as_dir=.
7448     for ac_exec_ext in '' $ac_executable_extensions; do
7449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452     break 2
7453   fi
7454 done
7455   done
7456 IFS=$as_save_IFS
7457
7458 fi
7459 fi
7460 CXX=$ac_cv_prog_CXX
7461 if test -n "$CXX"; then
7462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7463 $as_echo "$CXX" >&6; }
7464 else
7465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7467 fi
7468
7469
7470     test -n "$CXX" && break
7471   done
7472 fi
7473 if test -z "$CXX"; then
7474   ac_ct_CXX=$CXX
7475   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7476 do
7477   # Extract the first word of "$ac_prog", so it can be a program name with args.
7478 set dummy $ac_prog; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7482   $as_echo_n "(cached) " >&6
7483 else
7484   if test -n "$ac_ct_CXX"; then
7485   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7486 else
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7489 do
7490   IFS=$as_save_IFS
7491   test -z "$as_dir" && as_dir=.
7492     for ac_exec_ext in '' $ac_executable_extensions; do
7493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7494     ac_cv_prog_ac_ct_CXX="$ac_prog"
7495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496     break 2
7497   fi
7498 done
7499   done
7500 IFS=$as_save_IFS
7501
7502 fi
7503 fi
7504 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7505 if test -n "$ac_ct_CXX"; then
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7507 $as_echo "$ac_ct_CXX" >&6; }
7508 else
7509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7511 fi
7512
7513
7514   test -n "$ac_ct_CXX" && break
7515 done
7516
7517   if test "x$ac_ct_CXX" = x; then
7518     CXX="g++"
7519   else
7520     case $cross_compiling:$ac_tool_warned in
7521 yes:)
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7524 ac_tool_warned=yes ;;
7525 esac
7526     CXX=$ac_ct_CXX
7527   fi
7528 fi
7529
7530   fi
7531 fi
7532 # Provide some information about the compiler.
7533 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7534 set X $ac_compile
7535 ac_compiler=$2
7536 for ac_option in --version -v -V -qversion; do
7537   { { ac_try="$ac_compiler $ac_option >&5"
7538 case "(($ac_try" in
7539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540   *) ac_try_echo=$ac_try;;
7541 esac
7542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7543 $as_echo "$ac_try_echo"; } >&5
7544   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7545   ac_status=$?
7546   if test -s conftest.err; then
7547     sed '10a\
7548 ... rest of stderr output deleted ...
7549          10q' conftest.err >conftest.er1
7550     cat conftest.er1 >&5
7551   fi
7552   rm -f conftest.er1 conftest.err
7553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7554   test $ac_status = 0; }
7555 done
7556
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7558 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7559 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7560   $as_echo_n "(cached) " >&6
7561 else
7562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h.  */
7564
7565 int
7566 main ()
7567 {
7568 #ifndef __GNUC__
7569        choke me
7570 #endif
7571
7572   ;
7573   return 0;
7574 }
7575 _ACEOF
7576 if ac_fn_cxx_try_compile "$LINENO"; then :
7577   ac_compiler_gnu=yes
7578 else
7579   ac_compiler_gnu=no
7580 fi
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7583
7584 fi
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7586 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7587 if test $ac_compiler_gnu = yes; then
7588   GXX=yes
7589 else
7590   GXX=
7591 fi
7592 ac_test_CXXFLAGS=${CXXFLAGS+set}
7593 ac_save_CXXFLAGS=$CXXFLAGS
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7595 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7596 if ${ac_cv_prog_cxx_g+:} false; then :
7597   $as_echo_n "(cached) " >&6
7598 else
7599   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7600    ac_cxx_werror_flag=yes
7601    ac_cv_prog_cxx_g=no
7602    CXXFLAGS="-g"
7603    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h.  */
7605
7606 int
7607 main ()
7608 {
7609
7610   ;
7611   return 0;
7612 }
7613 _ACEOF
7614 if ac_fn_cxx_try_compile "$LINENO"; then :
7615   ac_cv_prog_cxx_g=yes
7616 else
7617   CXXFLAGS=""
7618       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h.  */
7620
7621 int
7622 main ()
7623 {
7624
7625   ;
7626   return 0;
7627 }
7628 _ACEOF
7629 if ac_fn_cxx_try_compile "$LINENO"; then :
7630
7631 else
7632   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7633          CXXFLAGS="-g"
7634          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h.  */
7636
7637 int
7638 main ()
7639 {
7640
7641   ;
7642   return 0;
7643 }
7644 _ACEOF
7645 if ac_fn_cxx_try_compile "$LINENO"; then :
7646   ac_cv_prog_cxx_g=yes
7647 fi
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649 fi
7650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7651 fi
7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7654 fi
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7656 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7657 if test "$ac_test_CXXFLAGS" = set; then
7658   CXXFLAGS=$ac_save_CXXFLAGS
7659 elif test $ac_cv_prog_cxx_g = yes; then
7660   if test "$GXX" = yes; then
7661     CXXFLAGS="-g -O2"
7662   else
7663     CXXFLAGS="-g"
7664   fi
7665 else
7666   if test "$GXX" = yes; then
7667     CXXFLAGS="-O2"
7668   else
7669     CXXFLAGS=
7670   fi
7671 fi
7672 ac_ext=c
7673 ac_cpp='$CPP $CPPFLAGS'
7674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7677
7678 depcc="$CXX"  am_compiler_list=
7679
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7681 $as_echo_n "checking dependency style of $depcc... " >&6; }
7682 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7683   $as_echo_n "(cached) " >&6
7684 else
7685   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7686   # We make a subdir and do the tests there.  Otherwise we can end up
7687   # making bogus files that we don't know about and never remove.  For
7688   # instance it was reported that on HP-UX the gcc test will end up
7689   # making a dummy file named 'D' -- because '-MD' means "put the output
7690   # in D".
7691   rm -rf conftest.dir
7692   mkdir conftest.dir
7693   # Copy depcomp to subdir because otherwise we won't find it if we're
7694   # using a relative directory.
7695   cp "$am_depcomp" conftest.dir
7696   cd conftest.dir
7697   # We will build objects and dependencies in a subdirectory because
7698   # it helps to detect inapplicable dependency modes.  For instance
7699   # both Tru64's cc and ICC support -MD to output dependencies as a
7700   # side effect of compilation, but ICC will put the dependencies in
7701   # the current directory while Tru64 will put them in the object
7702   # directory.
7703   mkdir sub
7704
7705   am_cv_CXX_dependencies_compiler_type=none
7706   if test "$am_compiler_list" = ""; then
7707      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7708   fi
7709   am__universal=false
7710   case " $depcc " in #(
7711      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7712      esac
7713
7714   for depmode in $am_compiler_list; do
7715     # Setup a source with many dependencies, because some compilers
7716     # like to wrap large dependency lists on column 80 (with \), and
7717     # we should not choose a depcomp mode which is confused by this.
7718     #
7719     # We need to recreate these files for each test, as the compiler may
7720     # overwrite some of them when testing with obscure command lines.
7721     # This happens at least with the AIX C compiler.
7722     : > sub/conftest.c
7723     for i in 1 2 3 4 5 6; do
7724       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7725       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7726       # Solaris 10 /bin/sh.
7727       echo '/* dummy */' > sub/conftst$i.h
7728     done
7729     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7730
7731     # We check with '-c' and '-o' for the sake of the "dashmstdout"
7732     # mode.  It turns out that the SunPro C++ compiler does not properly
7733     # handle '-M -o', and we need to detect this.  Also, some Intel
7734     # versions had trouble with output in subdirs.
7735     am__obj=sub/conftest.${OBJEXT-o}
7736     am__minus_obj="-o $am__obj"
7737     case $depmode in
7738     gcc)
7739       # This depmode causes a compiler race in universal mode.
7740       test "$am__universal" = false || continue
7741       ;;
7742     nosideeffect)
7743       # After this tag, mechanisms are not by side-effect, so they'll
7744       # only be used when explicitly requested.
7745       if test "x$enable_dependency_tracking" = xyes; then
7746         continue
7747       else
7748         break
7749       fi
7750       ;;
7751     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7752       # This compiler won't grok '-c -o', but also, the minuso test has
7753       # not run yet.  These depmodes are late enough in the game, and
7754       # so weak that their functioning should not be impacted.
7755       am__obj=conftest.${OBJEXT-o}
7756       am__minus_obj=
7757       ;;
7758     none) break ;;
7759     esac
7760     if depmode=$depmode \
7761        source=sub/conftest.c object=$am__obj \
7762        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7763        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7764          >/dev/null 2>conftest.err &&
7765        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7766        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7767        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7768        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7769       # icc doesn't choke on unknown options, it will just issue warnings
7770       # or remarks (even with -Werror).  So we grep stderr for any message
7771       # that says an option was ignored or not supported.
7772       # When given -MP, icc 7.0 and 7.1 complain thusly:
7773       #   icc: Command line warning: ignoring option '-M'; no argument required
7774       # The diagnosis changed in icc 8.0:
7775       #   icc: Command line remark: option '-MP' not supported
7776       if (grep 'ignoring option' conftest.err ||
7777           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7778         am_cv_CXX_dependencies_compiler_type=$depmode
7779         break
7780       fi
7781     fi
7782   done
7783
7784   cd ..
7785   rm -rf conftest.dir
7786 else
7787   am_cv_CXX_dependencies_compiler_type=none
7788 fi
7789
7790 fi
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7792 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7793 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7794
7795  if
7796   test "x$enable_dependency_tracking" != xno \
7797   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7798   am__fastdepCXX_TRUE=
7799   am__fastdepCXX_FALSE='#'
7800 else
7801   am__fastdepCXX_TRUE='#'
7802   am__fastdepCXX_FALSE=
7803 fi
7804
7805
7806
7807 for ac_prog in 'bison -y' byacc
7808 do
7809   # Extract the first word of "$ac_prog", so it can be a program name with args.
7810 set dummy $ac_prog; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if ${ac_cv_prog_YACC+:} false; then :
7814   $as_echo_n "(cached) " >&6
7815 else
7816   if test -n "$YACC"; then
7817   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822   IFS=$as_save_IFS
7823   test -z "$as_dir" && as_dir=.
7824     for ac_exec_ext in '' $ac_executable_extensions; do
7825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7826     ac_cv_prog_YACC="$ac_prog"
7827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828     break 2
7829   fi
7830 done
7831   done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 YACC=$ac_cv_prog_YACC
7837 if test -n "$YACC"; then
7838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7839 $as_echo "$YACC" >&6; }
7840 else
7841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 fi
7844
7845
7846   test -n "$YACC" && break
7847 done
7848 test -n "$YACC" || YACC="yacc"
7849
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7851 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7852 if ${ac_cv_path_SED+:} false; then :
7853   $as_echo_n "(cached) " >&6
7854 else
7855             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7856      for ac_i in 1 2 3 4 5 6 7; do
7857        ac_script="$ac_script$as_nl$ac_script"
7858      done
7859      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7860      { ac_script=; unset ac_script;}
7861      if test -z "$SED"; then
7862   ac_path_SED_found=false
7863   # Loop through the user's path and test for each of PROGNAME-LIST
7864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7866 do
7867   IFS=$as_save_IFS
7868   test -z "$as_dir" && as_dir=.
7869     for ac_prog in sed gsed; do
7870     for ac_exec_ext in '' $ac_executable_extensions; do
7871       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7872       as_fn_executable_p "$ac_path_SED" || continue
7873 # Check for GNU ac_path_SED and select it if it is found.
7874   # Check for GNU $ac_path_SED
7875 case `"$ac_path_SED" --version 2>&1` in
7876 *GNU*)
7877   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7878 *)
7879   ac_count=0
7880   $as_echo_n 0123456789 >"conftest.in"
7881   while :
7882   do
7883     cat "conftest.in" "conftest.in" >"conftest.tmp"
7884     mv "conftest.tmp" "conftest.in"
7885     cp "conftest.in" "conftest.nl"
7886     $as_echo '' >> "conftest.nl"
7887     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7888     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7889     as_fn_arith $ac_count + 1 && ac_count=$as_val
7890     if test $ac_count -gt ${ac_path_SED_max-0}; then
7891       # Best one so far, save it but keep looking for a better one
7892       ac_cv_path_SED="$ac_path_SED"
7893       ac_path_SED_max=$ac_count
7894     fi
7895     # 10*(2^10) chars as input seems more than enough
7896     test $ac_count -gt 10 && break
7897   done
7898   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7899 esac
7900
7901       $ac_path_SED_found && break 3
7902     done
7903   done
7904   done
7905 IFS=$as_save_IFS
7906   if test -z "$ac_cv_path_SED"; then
7907     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7908   fi
7909 else
7910   ac_cv_path_SED=$SED
7911 fi
7912
7913 fi
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7915 $as_echo "$ac_cv_path_SED" >&6; }
7916  SED="$ac_cv_path_SED"
7917   rm -f conftest.sed
7918
7919 # Extract the first word of "autogen", so it can be a program name with args.
7920 set dummy autogen; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if ${ac_cv_prog_AUTOGEN+:} false; then :
7924   $as_echo_n "(cached) " >&6
7925 else
7926   if test -n "$AUTOGEN"; then
7927   ac_cv_prog_AUTOGEN="$AUTOGEN" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932   IFS=$as_save_IFS
7933   test -z "$as_dir" && as_dir=.
7934     for ac_exec_ext in '' $ac_executable_extensions; do
7935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936     ac_cv_prog_AUTOGEN="autogen"
7937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938     break 2
7939   fi
7940 done
7941   done
7942 IFS=$as_save_IFS
7943
7944   test -z "$ac_cv_prog_AUTOGEN" && ac_cv_prog_AUTOGEN="/bin/true"
7945 fi
7946 fi
7947 AUTOGEN=$ac_cv_prog_AUTOGEN
7948 if test -n "$AUTOGEN"; then
7949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOGEN" >&5
7950 $as_echo "$AUTOGEN" >&6; }
7951 else
7952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7954 fi
7955
7956
7957
7958
7959
7960 if test x"$AUTOGEN" = "x/bin/true"; then
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7962 ***
7963 *** autogen not found. Will not link against libopts.
7964 *** " >&5
7965 $as_echo "$as_me: WARNING:
7966 ***
7967 *** autogen not found. Will not link against libopts.
7968 *** " >&2;}
7969 enable_local_libopts=yes
7970 fi
7971
7972 # For includes/gnutls/gnutls.h.in.
7973 MAJOR_VERSION=`echo $PACKAGE_VERSION | sed 's/\(.*\)\..*\..*/\1/g'`
7974
7975 MINOR_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\.\(.*\)\..*/\1/g'`
7976
7977 PATCH_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\..*\.\([0-9]*\).*/\1/g'`
7978
7979 NUMBER_VERSION=`printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION`
7980
7981
7982 touch suppressions.valgrind
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7984 $as_echo_n "checking for inline... " >&6; }
7985 if ${ac_cv_c_inline+:} false; then :
7986   $as_echo_n "(cached) " >&6
7987 else
7988   ac_cv_c_inline=no
7989 for ac_kw in inline __inline__ __inline; do
7990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h.  */
7992 #ifndef __cplusplus
7993 typedef int foo_t;
7994 static $ac_kw foo_t static_foo () {return 0; }
7995 $ac_kw foo_t foo () {return 0; }
7996 #endif
7997
7998 _ACEOF
7999 if ac_fn_c_try_compile "$LINENO"; then :
8000   ac_cv_c_inline=$ac_kw
8001 fi
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003   test "$ac_cv_c_inline" != no && break
8004 done
8005
8006 fi
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8008 $as_echo "$ac_cv_c_inline" >&6; }
8009
8010 case $ac_cv_c_inline in
8011   inline | yes) ;;
8012   *)
8013     case $ac_cv_c_inline in
8014       no) ac_val=;;
8015       *) ac_val=$ac_cv_c_inline;;
8016     esac
8017     cat >>confdefs.h <<_ACEOF
8018 #ifndef __cplusplus
8019 #define inline $ac_val
8020 #endif
8021 _ACEOF
8022     ;;
8023 esac
8024
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8026 $as_echo_n "checking for ANSI C header files... " >&6; }
8027 if ${ac_cv_header_stdc+:} false; then :
8028   $as_echo_n "(cached) " >&6
8029 else
8030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h.  */
8032 #include <stdlib.h>
8033 #include <stdarg.h>
8034 #include <string.h>
8035 #include <float.h>
8036
8037 int
8038 main ()
8039 {
8040
8041   ;
8042   return 0;
8043 }
8044 _ACEOF
8045 if ac_fn_c_try_compile "$LINENO"; then :
8046   ac_cv_header_stdc=yes
8047 else
8048   ac_cv_header_stdc=no
8049 fi
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051
8052 if test $ac_cv_header_stdc = yes; then
8053   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h.  */
8056 #include <string.h>
8057
8058 _ACEOF
8059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8060   $EGREP "memchr" >/dev/null 2>&1; then :
8061
8062 else
8063   ac_cv_header_stdc=no
8064 fi
8065 rm -f conftest*
8066
8067 fi
8068
8069 if test $ac_cv_header_stdc = yes; then
8070   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h.  */
8073 #include <stdlib.h>
8074
8075 _ACEOF
8076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8077   $EGREP "free" >/dev/null 2>&1; then :
8078
8079 else
8080   ac_cv_header_stdc=no
8081 fi
8082 rm -f conftest*
8083
8084 fi
8085
8086 if test $ac_cv_header_stdc = yes; then
8087   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8088   if test "$cross_compiling" = yes; then :
8089   :
8090 else
8091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h.  */
8093 #include <ctype.h>
8094 #include <stdlib.h>
8095 #if ((' ' & 0x0FF) == 0x020)
8096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8098 #else
8099 # define ISLOWER(c) \
8100                    (('a' <= (c) && (c) <= 'i') \
8101                      || ('j' <= (c) && (c) <= 'r') \
8102                      || ('s' <= (c) && (c) <= 'z'))
8103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8104 #endif
8105
8106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8107 int
8108 main ()
8109 {
8110   int i;
8111   for (i = 0; i < 256; i++)
8112     if (XOR (islower (i), ISLOWER (i))
8113         || toupper (i) != TOUPPER (i))
8114       return 2;
8115   return 0;
8116 }
8117 _ACEOF
8118 if ac_fn_c_try_run "$LINENO"; then :
8119
8120 else
8121   ac_cv_header_stdc=no
8122 fi
8123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8124   conftest.$ac_objext conftest.beam conftest.$ac_ext
8125 fi
8126
8127 fi
8128 fi
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8130 $as_echo "$ac_cv_header_stdc" >&6; }
8131 if test $ac_cv_header_stdc = yes; then
8132
8133 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8134
8135 fi
8136
8137
8138 # For the C++ code
8139 # Check whether --enable-cxx was given.
8140 if test "${enable_cxx+set}" = set; then :
8141   enableval=$enable_cxx; use_cxx=$enableval
8142 else
8143   use_cxx=yes
8144 fi
8145
8146 if test "$use_cxx" != "no"; then
8147   ac_ext=cpp
8148 ac_cpp='$CXXCPP $CPPFLAGS'
8149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8152
8153
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h.  */
8156
8157 int
8158 main ()
8159 {
8160
8161   ;
8162   return 0;
8163 }
8164 _ACEOF
8165 if ac_fn_cxx_try_compile "$LINENO"; then :
8166   use_cxx=yes
8167 else
8168   use_cxx=no
8169 fi
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171   ac_ext=c
8172 ac_cpp='$CPP $CPPFLAGS'
8173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8176
8177 fi
8178  if test "$use_cxx" != "no"; then
8179   ENABLE_CXX_TRUE=
8180   ENABLE_CXX_FALSE='#'
8181 else
8182   ENABLE_CXX_TRUE='#'
8183   ENABLE_CXX_FALSE=
8184 fi
8185
8186  if test -f tests/suite/mini-eagain2.c; then
8187   WANT_TEST_SUITE_TRUE=
8188   WANT_TEST_SUITE_FALSE='#'
8189 else
8190   WANT_TEST_SUITE_TRUE='#'
8191   WANT_TEST_SUITE_FALSE=
8192 fi
8193
8194
8195 use_accel=yes
8196 case "$host" in
8197   *mingw32* | *mingw64*)
8198     have_win=yes
8199   ;;
8200   *darwin*)
8201     have_macosx=yes
8202   ;;
8203   *solaris*)
8204     use_accel=no
8205     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8206 ***
8207 *** In solaris hardware acceleration is disabled by default due to issues
8208 *** with the assembler. Use --enable-hardware-acceleration to enable it.
8209 *** " >&5
8210 $as_echo "$as_me: WARNING:
8211 ***
8212 *** In solaris hardware acceleration is disabled by default due to issues
8213 *** with the assembler. Use --enable-hardware-acceleration to enable it.
8214 *** " >&2;}
8215   ;;
8216   *)
8217     have_elf=yes
8218   ;;
8219 esac
8220
8221  if test "$have_win" = yes; then
8222   WINDOWS_TRUE=
8223   WINDOWS_FALSE='#'
8224 else
8225   WINDOWS_TRUE='#'
8226   WINDOWS_FALSE=
8227 fi
8228
8229  if test "$have_macosx" = yes; then
8230   MACOSX_TRUE=
8231   MACOSX_FALSE='#'
8232 else
8233   MACOSX_TRUE='#'
8234   MACOSX_FALSE=
8235 fi
8236
8237  if test "$have_elf" = yes; then
8238   ELF_TRUE=
8239   ELF_FALSE='#'
8240 else
8241   ELF_TRUE='#'
8242   ELF_FALSE=
8243 fi
8244
8245
8246 # Check whether --enable-hardware-acceleration was given.
8247 if test "${enable_hardware_acceleration+set}" = set; then :
8248   enableval=$enable_hardware_acceleration; use_accel=$enableval
8249 fi
8250
8251 hw_accel=none
8252
8253
8254 if test "$use_accel" != "no"; then
8255 case $host_cpu in
8256   i?86 | x86_64 | amd64)
8257       for ac_header in cpuid.h
8258 do :
8259   ac_fn_c_check_header_mongrel "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default"
8260 if test "x$ac_cv_header_cpuid_h" = xyes; then :
8261   cat >>confdefs.h <<_ACEOF
8262 #define HAVE_CPUID_H 1
8263 _ACEOF
8264
8265 fi
8266
8267 done
8268
8269       if test "$host_cpu" = "x86_64" || test "$host_cpu" = "amd64"; then
8270         hw_accel="x86-64"
8271       else
8272         hw_accel="x86"
8273       fi
8274   ;;
8275   *)
8276   ;;
8277 esac
8278
8279 fi
8280
8281 # Check whether --enable-padlock was given.
8282 if test "${enable_padlock+set}" = set; then :
8283   enableval=$enable_padlock; use_padlock=$enableval
8284 else
8285   use_padlock=yes
8286 fi
8287
8288
8289 if test "$use_padlock" != "no"; then
8290
8291 $as_echo "#define ENABLE_PADLOCK 1" >>confdefs.h
8292
8293
8294 fi
8295  if test "$use_padlock" = "yes"; then
8296   ENABLE_PADLOCK_TRUE=
8297   ENABLE_PADLOCK_FALSE='#'
8298 else
8299   ENABLE_PADLOCK_TRUE='#'
8300   ENABLE_PADLOCK_FALSE=
8301 fi
8302
8303  if test x"$hw_accel" = x"x86-64"; then
8304   ASM_X86_64_TRUE=
8305   ASM_X86_64_FALSE='#'
8306 else
8307   ASM_X86_64_TRUE='#'
8308   ASM_X86_64_FALSE=
8309 fi
8310
8311  if test x"$hw_accel" = x"x86"; then
8312   ASM_X86_32_TRUE=
8313   ASM_X86_32_FALSE='#'
8314 else
8315   ASM_X86_32_TRUE='#'
8316   ASM_X86_32_FALSE=
8317 fi
8318
8319  if test x"$hw_accel" = x"x86" || test x"$hw_accel" = x"x86-64"; then
8320   ASM_X86_TRUE=
8321   ASM_X86_FALSE='#'
8322 else
8323   ASM_X86_TRUE='#'
8324   ASM_X86_FALSE=
8325 fi
8326
8327  if test "$gnu89_inline" = "yes"]; then
8328   HAVE_GCC_GNU89_INLINE_OPTION_TRUE=
8329   HAVE_GCC_GNU89_INLINE_OPTION_FALSE='#'
8330 else
8331   HAVE_GCC_GNU89_INLINE_OPTION_TRUE='#'
8332   HAVE_GCC_GNU89_INLINE_OPTION_FALSE=
8333 fi
8334
8335  if test "$GCC" = "yes"; then
8336   HAVE_GCC_TRUE=
8337   HAVE_GCC_FALSE='#'
8338 else
8339   HAVE_GCC_TRUE='#'
8340   HAVE_GCC_FALSE=
8341 fi
8342
8343
8344
8345
8346   # Library code modified:                              REVISION++
8347   # Interfaces changed/added/removed:   CURRENT++       REVISION=0
8348   # Interfaces added:                             AGE++
8349   # Interfaces removed:                           AGE=0 (+bump all symbol versions in .map)
8350   LT_CURRENT=71
8351
8352   LT_REVISION=1
8353
8354   LT_AGE=43
8355
8356
8357   LT_SSL_CURRENT=27
8358
8359   LT_SSL_REVISION=2
8360
8361   LT_SSL_AGE=0
8362
8363
8364   LT_DANE_CURRENT=5
8365
8366   LT_DANE_REVISION=0
8367
8368   LT_DANE_AGE=5
8369
8370
8371   CXX_LT_CURRENT=29
8372
8373   CXX_LT_REVISION=0
8374
8375   CXX_LT_AGE=1
8376
8377
8378   CRYWRAP_PATCHLEVEL=3
8379
8380
8381   # Used when creating the Windows libgnutls-XX.def files.
8382   DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
8383
8384
8385
8386 pkg_failed=no
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NETTLE" >&5
8388 $as_echo_n "checking for NETTLE... " >&6; }
8389
8390 if test -n "$PKG_CONFIG"; then
8391     if test -n "$NETTLE_CFLAGS"; then
8392         pkg_cv_NETTLE_CFLAGS="$NETTLE_CFLAGS"
8393     else
8394         if test -n "$PKG_CONFIG" && \
8395     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle >= 2.7\""; } >&5
8396   ($PKG_CONFIG --exists --print-errors "nettle >= 2.7") 2>&5
8397   ac_status=$?
8398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8399   test $ac_status = 0; }; then
8400   pkg_cv_NETTLE_CFLAGS=`$PKG_CONFIG --cflags "nettle >= 2.7" 2>/dev/null`
8401 else
8402   pkg_failed=yes
8403 fi
8404     fi
8405 else
8406         pkg_failed=untried
8407 fi
8408 if test -n "$PKG_CONFIG"; then
8409     if test -n "$NETTLE_LIBS"; then
8410         pkg_cv_NETTLE_LIBS="$NETTLE_LIBS"
8411     else
8412         if test -n "$PKG_CONFIG" && \
8413     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle >= 2.7\""; } >&5
8414   ($PKG_CONFIG --exists --print-errors "nettle >= 2.7") 2>&5
8415   ac_status=$?
8416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8417   test $ac_status = 0; }; then
8418   pkg_cv_NETTLE_LIBS=`$PKG_CONFIG --libs "nettle >= 2.7" 2>/dev/null`
8419 else
8420   pkg_failed=yes
8421 fi
8422     fi
8423 else
8424         pkg_failed=untried
8425 fi
8426
8427
8428
8429 if test $pkg_failed = yes; then
8430
8431 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8432         _pkg_short_errors_supported=yes
8433 else
8434         _pkg_short_errors_supported=no
8435 fi
8436         if test $_pkg_short_errors_supported = yes; then
8437                 NETTLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nettle >= 2.7"`
8438         else
8439                 NETTLE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nettle >= 2.7"`
8440         fi
8441         # Put the nasty error message in config.log where it belongs
8442         echo "$NETTLE_PKG_ERRORS" >&5
8443
8444         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8446
8447 as_fn_error $? "
8448   ***
8449   *** Libnettle 2.7.1 was not found.
8450 " "$LINENO" 5
8451
8452 elif test $pkg_failed = untried; then
8453
8454 as_fn_error $? "
8455   ***
8456   *** Libnettle 2.7.1 was not found.
8457 " "$LINENO" 5
8458
8459 else
8460         NETTLE_CFLAGS=$pkg_cv_NETTLE_CFLAGS
8461         NETTLE_LIBS=$pkg_cv_NETTLE_LIBS
8462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8463 $as_echo "yes" >&6; }
8464         cryptolib="nettle"
8465 fi
8466
8467 pkg_failed=no
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HOGWEED" >&5
8469 $as_echo_n "checking for HOGWEED... " >&6; }
8470
8471 if test -n "$PKG_CONFIG"; then
8472     if test -n "$HOGWEED_CFLAGS"; then
8473         pkg_cv_HOGWEED_CFLAGS="$HOGWEED_CFLAGS"
8474     else
8475         if test -n "$PKG_CONFIG" && \
8476     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hogweed >= 2.7\""; } >&5
8477   ($PKG_CONFIG --exists --print-errors "hogweed >= 2.7") 2>&5
8478   ac_status=$?
8479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8480   test $ac_status = 0; }; then
8481   pkg_cv_HOGWEED_CFLAGS=`$PKG_CONFIG --cflags "hogweed >= 2.7" 2>/dev/null`
8482 else
8483   pkg_failed=yes
8484 fi
8485     fi
8486 else
8487         pkg_failed=untried
8488 fi
8489 if test -n "$PKG_CONFIG"; then
8490     if test -n "$HOGWEED_LIBS"; then
8491         pkg_cv_HOGWEED_LIBS="$HOGWEED_LIBS"
8492     else
8493         if test -n "$PKG_CONFIG" && \
8494     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hogweed >= 2.7\""; } >&5
8495   ($PKG_CONFIG --exists --print-errors "hogweed >= 2.7") 2>&5
8496   ac_status=$?
8497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8498   test $ac_status = 0; }; then
8499   pkg_cv_HOGWEED_LIBS=`$PKG_CONFIG --libs "hogweed >= 2.7" 2>/dev/null`
8500 else
8501   pkg_failed=yes
8502 fi
8503     fi
8504 else
8505         pkg_failed=untried
8506 fi
8507
8508
8509
8510 if test $pkg_failed = yes; then
8511
8512 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8513         _pkg_short_errors_supported=yes
8514 else
8515         _pkg_short_errors_supported=no
8516 fi
8517         if test $_pkg_short_errors_supported = yes; then
8518                 HOGWEED_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hogweed >= 2.7"`
8519         else
8520                 HOGWEED_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hogweed >= 2.7"`
8521         fi
8522         # Put the nasty error message in config.log where it belongs
8523         echo "$HOGWEED_PKG_ERRORS" >&5
8524
8525         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8527
8528 as_fn_error $? "
8529   ***
8530   *** Libhogweed (nettle's companion library) was not found. Note that you must compile nettle with gmp support.
8531 " "$LINENO" 5
8532
8533 elif test $pkg_failed = untried; then
8534
8535 as_fn_error $? "
8536   ***
8537   *** Libhogweed (nettle's companion library) was not found. Note that you must compile nettle with gmp support.
8538 " "$LINENO" 5
8539
8540 else
8541         HOGWEED_CFLAGS=$pkg_cv_HOGWEED_CFLAGS
8542         HOGWEED_LIBS=$pkg_cv_HOGWEED_LIBS
8543         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8544 $as_echo "yes" >&6; }
8545         :
8546 fi
8547    if test "$cryptolib" = "nettle"; then
8548   ENABLE_NETTLE_TRUE=
8549   ENABLE_NETTLE_FALSE='#'
8550 else
8551   ENABLE_NETTLE_TRUE='#'
8552   ENABLE_NETTLE_FALSE=
8553 fi
8554
8555
8556 $as_echo "#define HAVE_LIBNETTLE 1" >>confdefs.h
8557
8558   nettle_version=`$PKG_CONFIG --modversion nettle`
8559
8560   if $PKG_CONFIG --atleast-version=3.0 nettle; then
8561
8562 $as_echo "#define USE_NETTLE3 1" >>confdefs.h
8563
8564         use_nettle3=yes
8565   else
8566         use_nettle3=no
8567   fi
8568    if test "$use_nettle3" = "yes"; then
8569   USE_NETTLE3_TRUE=
8570   USE_NETTLE3_FALSE='#'
8571 else
8572   USE_NETTLE3_TRUE='#'
8573   USE_NETTLE3_FALSE=
8574 fi
8575
8576
8577   GNUTLS_REQUIRES_PRIVATE="Requires.private: nettle, hogweed"
8578
8579
8580 # Check whether --with-nettle-mini was given.
8581 if test "${with_nettle_mini+set}" = set; then :
8582   withval=$with_nettle_mini; mini_nettle=$withval
8583 else
8584   mini_nettle=no
8585 fi
8586
8587
8588
8589
8590   if test "$mini_nettle" != no;then
8591     GMP_CLFLAGS=""
8592     GMP_LIBS=""
8593   else
8594     if test x$GMP_LIBS = x; then
8595         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_cmp in -lgmp" >&5
8596 $as_echo_n "checking for __gmpz_cmp in -lgmp... " >&6; }
8597 if ${ac_cv_lib_gmp___gmpz_cmp+:} false; then :
8598   $as_echo_n "(cached) " >&6
8599 else
8600   ac_check_lib_save_LIBS=$LIBS
8601 LIBS="-lgmp  $LIBS"
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h.  */
8604
8605 /* Override any GCC internal prototype to avoid an error.
8606    Use char because int might match the return type of a GCC
8607    builtin and then its argument prototype would still apply.  */
8608 #ifdef __cplusplus
8609 extern "C"
8610 #endif
8611 char __gmpz_cmp ();
8612 int
8613 main ()
8614 {
8615 return __gmpz_cmp ();
8616   ;
8617   return 0;
8618 }
8619 _ACEOF
8620 if ac_fn_c_try_link "$LINENO"; then :
8621   ac_cv_lib_gmp___gmpz_cmp=yes
8622 else
8623   ac_cv_lib_gmp___gmpz_cmp=no
8624 fi
8625 rm -f core conftest.err conftest.$ac_objext \
8626     conftest$ac_exeext conftest.$ac_ext
8627 LIBS=$ac_check_lib_save_LIBS
8628 fi
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_cmp" >&5
8630 $as_echo "$ac_cv_lib_gmp___gmpz_cmp" >&6; }
8631 if test "x$ac_cv_lib_gmp___gmpz_cmp" = xyes; then :
8632   GMP_LIBS="-lgmp"
8633 else
8634   as_fn_error $? "
8635 ***
8636 *** gmp was not found.
8637 " "$LINENO" 5
8638 fi
8639
8640     fi
8641   fi
8642
8643
8644
8645
8646 # Check whether --with-included-libtasn1 was given.
8647 if test "${with_included_libtasn1+set}" = set; then :
8648   withval=$with_included_libtasn1; included_libtasn1=$withval
8649 else
8650   included_libtasn1=no
8651 fi
8652
8653   if test "$included_libtasn1" = "no"; then
8654
8655 pkg_failed=no
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTASN1" >&5
8657 $as_echo_n "checking for LIBTASN1... " >&6; }
8658
8659 if test -n "$PKG_CONFIG"; then
8660     if test -n "$LIBTASN1_CFLAGS"; then
8661         pkg_cv_LIBTASN1_CFLAGS="$LIBTASN1_CFLAGS"
8662     else
8663         if test -n "$PKG_CONFIG" && \
8664     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtasn1 >= 3.9\""; } >&5
8665   ($PKG_CONFIG --exists --print-errors "libtasn1 >= 3.9") 2>&5
8666   ac_status=$?
8667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8668   test $ac_status = 0; }; then
8669   pkg_cv_LIBTASN1_CFLAGS=`$PKG_CONFIG --cflags "libtasn1 >= 3.9" 2>/dev/null`
8670 else
8671   pkg_failed=yes
8672 fi
8673     fi
8674 else
8675         pkg_failed=untried
8676 fi
8677 if test -n "$PKG_CONFIG"; then
8678     if test -n "$LIBTASN1_LIBS"; then
8679         pkg_cv_LIBTASN1_LIBS="$LIBTASN1_LIBS"
8680     else
8681         if test -n "$PKG_CONFIG" && \
8682     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtasn1 >= 3.9\""; } >&5
8683   ($PKG_CONFIG --exists --print-errors "libtasn1 >= 3.9") 2>&5
8684   ac_status=$?
8685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8686   test $ac_status = 0; }; then
8687   pkg_cv_LIBTASN1_LIBS=`$PKG_CONFIG --libs "libtasn1 >= 3.9" 2>/dev/null`
8688 else
8689   pkg_failed=yes
8690 fi
8691     fi
8692 else
8693         pkg_failed=untried
8694 fi
8695
8696
8697
8698 if test $pkg_failed = yes; then
8699
8700 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8701         _pkg_short_errors_supported=yes
8702 else
8703         _pkg_short_errors_supported=no
8704 fi
8705         if test $_pkg_short_errors_supported = yes; then
8706                 LIBTASN1_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libtasn1 >= 3.9"`
8707         else
8708                 LIBTASN1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libtasn1 >= 3.9"`
8709         fi
8710         # Put the nasty error message in config.log where it belongs
8711         echo "$LIBTASN1_PKG_ERRORS" >&5
8712
8713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8715                 included_libtasn1=yes
8716 elif test $pkg_failed = untried; then
8717         included_libtasn1=yes
8718 else
8719         LIBTASN1_CFLAGS=$pkg_cv_LIBTASN1_CFLAGS
8720         LIBTASN1_LIBS=$pkg_cv_LIBTASN1_LIBS
8721         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8722 $as_echo "yes" >&6; }
8723         :
8724 fi
8725     if test "$included_libtasn1" = yes; then
8726       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8727   ***
8728   *** Libtasn1 was not found. Will use the included one.
8729   " >&5
8730 $as_echo "$as_me: WARNING:
8731   ***
8732   *** Libtasn1 was not found. Will use the included one.
8733   " >&2;}
8734     fi
8735   fi
8736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included minitasn1" >&5
8737 $as_echo_n "checking whether to use the included minitasn1... " >&6; }
8738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $included_libtasn1" >&5
8739 $as_echo "$included_libtasn1" >&6; }
8740    if test "$included_libtasn1" = "yes"; then
8741   ENABLE_MINITASN1_TRUE=
8742   ENABLE_MINITASN1_FALSE='#'
8743 else
8744   ENABLE_MINITASN1_TRUE='#'
8745   ENABLE_MINITASN1_FALSE=
8746 fi
8747
8748
8749   if test "$included_libtasn1" = "no"; then
8750     GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libtasn1"
8751     oldlibs="$LIBS"
8752     LIBS="$LIBS $LIBTASN1_LIBS"
8753     oldcflags="$CFLAGS"
8754     CFLAGS="$CFLAGS $LIBTASN1_CFLAGS"
8755     ac_fn_c_check_func "$LINENO" "asn1_decode_simple_ber" "ac_cv_func_asn1_decode_simple_ber"
8756 if test "x$ac_cv_func_asn1_decode_simple_ber" = xyes; then :
8757
8758 $as_echo "#define HAVE_ASN1_DECODE_SIMPLE_BER 1" >>confdefs.h
8759
8760 fi
8761
8762     LIBS="$oldlibs"
8763   else
8764
8765 $as_echo "#define HAVE_ASN1_DECODE_SIMPLE_BER 1" >>confdefs.h
8766
8767   fi
8768
8769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C99 macros are supported" >&5
8770 $as_echo_n "checking whether C99 macros are supported... " >&6; }
8771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h.  */
8773
8774 int
8775 main ()
8776 {
8777
8778     #define test_mac(...)
8779     int z,y,x;
8780     test_mac(x,y,z);
8781     return 0;
8782
8783   ;
8784   return 0;
8785 }
8786 _ACEOF
8787 if ac_fn_c_try_compile "$LINENO"; then :
8788
8789
8790 $as_echo "#define C99_MACROS 1" >>confdefs.h
8791
8792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8793 $as_echo "yes" >&6; }
8794
8795 else
8796
8797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8799     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C99 macros not supported. This may affect compiling." >&5
8800 $as_echo "$as_me: WARNING: C99 macros not supported. This may affect compiling." >&2;}
8801
8802 fi
8803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8804
8805   ac_enable_srtp=yes
8806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable DTLS-SRTP extension" >&5
8807 $as_echo_n "checking whether to disable DTLS-SRTP extension... " >&6; }
8808   # Check whether --enable-dtls-srtp-support was given.
8809 if test "${enable_dtls_srtp_support+set}" = set; then :
8810   enableval=$enable_dtls_srtp_support; ac_enable_srtp=$enableval
8811 fi
8812
8813   if test x$ac_enable_srtp != xno; then
8814    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8816
8817 $as_echo "#define ENABLE_DTLS_SRTP 1" >>confdefs.h
8818
8819   else
8820    ac_full=0
8821    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8822 $as_echo "yes" >&6; }
8823   fi
8824    if test "$ac_enable_srtp" != "no"; then
8825   ENABLE_DTLS_SRTP_TRUE=
8826   ENABLE_DTLS_SRTP_FALSE='#'
8827 else
8828   ENABLE_DTLS_SRTP_TRUE='#'
8829   ENABLE_DTLS_SRTP_FALSE=
8830 fi
8831
8832
8833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable ALPN extension" >&5
8834 $as_echo_n "checking whether to disable ALPN extension... " >&6; }
8835   # Check whether --enable-alpn-support was given.
8836 if test "${enable_alpn_support+set}" = set; then :
8837   enableval=$enable_alpn_support; ac_enable_alpn=$enableval
8838 else
8839   ac_enable_alpn=yes
8840 fi
8841
8842   if test x$ac_enable_alpn != xno; then
8843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844 $as_echo "no" >&6; }
8845
8846 $as_echo "#define ENABLE_ALPN 1" >>confdefs.h
8847
8848   else
8849    ac_full=0
8850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8851 $as_echo "yes" >&6; }
8852   fi
8853    if test "$ac_enable_alpn" != "no"; then
8854   ENABLE_ALPN_TRUE=
8855   ENABLE_ALPN_FALSE='#'
8856 else
8857   ENABLE_ALPN_TRUE='#'
8858   ENABLE_ALPN_FALSE=
8859 fi
8860
8861
8862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable RSA-EXPORT support" >&5
8863 $as_echo_n "checking whether to disable RSA-EXPORT support... " >&6; }
8864   # Check whether --enable-rsa-export was given.
8865 if test "${enable_rsa_export+set}" = set; then :
8866   enableval=$enable_rsa_export; ac_enable_rsa_export=$enableval
8867 else
8868   ac_enable_rsa_export=yes
8869 fi
8870
8871   if test x$ac_enable_rsa_export != xno; then
8872    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 $as_echo "no" >&6; }
8874
8875 $as_echo "#define ENABLE_RSA_EXPORT 1" >>confdefs.h
8876
8877   else
8878    ac_full=0
8879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8880 $as_echo "yes" >&6; }
8881   fi
8882    if test "$ac_enable_rsa_export" != "no"; then
8883   ENABLE_RSA_EXPORT_TRUE=
8884   ENABLE_RSA_EXPORT_FALSE='#'
8885 else
8886   ENABLE_RSA_EXPORT_TRUE='#'
8887   ENABLE_RSA_EXPORT_FALSE=
8888 fi
8889
8890
8891   ac_enable_heartbeat=yes
8892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable TLS heartbeat support" >&5
8893 $as_echo_n "checking whether to disable TLS heartbeat support... " >&6; }
8894   # Check whether --enable-heartbeat-support was given.
8895 if test "${enable_heartbeat_support+set}" = set; then :
8896   enableval=$enable_heartbeat_support; ac_enable_heartbeat=$enableval
8897 fi
8898
8899   if test x$ac_enable_heartbeat != xno; then
8900    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8901 $as_echo "yes" >&6; }
8902
8903 $as_echo "#define ENABLE_HEARTBEAT 1" >>confdefs.h
8904
8905   else
8906    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8908   fi
8909    if test "$ac_enable_heartbeat" != "no"; then
8910   ENABLE_HEARTBEAT_TRUE=
8911   ENABLE_HEARTBEAT_FALSE='#'
8912 else
8913   ENABLE_HEARTBEAT_TRUE='#'
8914   ENABLE_HEARTBEAT_FALSE=
8915 fi
8916
8917
8918   ac_enable_srp=yes
8919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SRP authentication support" >&5
8920 $as_echo_n "checking whether to disable SRP authentication support... " >&6; }
8921   # Check whether --enable-srp-authentication was given.
8922 if test "${enable_srp_authentication+set}" = set; then :
8923   enableval=$enable_srp_authentication; ac_enable_srp=$enableval
8924 fi
8925
8926   if test x$ac_enable_srp != xno; then
8927    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 $as_echo "no" >&6; }
8929
8930 $as_echo "#define ENABLE_SRP 1" >>confdefs.h
8931
8932   else
8933    ac_full=0
8934    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8935 $as_echo "yes" >&6; }
8936   fi
8937    if test "$ac_enable_srp" != "no"; then
8938   ENABLE_SRP_TRUE=
8939   ENABLE_SRP_FALSE='#'
8940 else
8941   ENABLE_SRP_TRUE='#'
8942   ENABLE_SRP_FALSE=
8943 fi
8944
8945
8946   ac_enable_psk=yes
8947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable PSK authentication support" >&5
8948 $as_echo_n "checking whether to disable PSK authentication support... " >&6; }
8949   # Check whether --enable-psk-authentication was given.
8950 if test "${enable_psk_authentication+set}" = set; then :
8951   enableval=$enable_psk_authentication; ac_enable_psk=$enableval
8952 fi
8953
8954   if test x$ac_enable_psk != xno; then
8955    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956 $as_echo "no" >&6; }
8957
8958 $as_echo "#define ENABLE_PSK 1" >>confdefs.h
8959
8960   else
8961    ac_full=0
8962    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8963 $as_echo "yes" >&6; }
8964   fi
8965    if test "$ac_enable_psk" != "no"; then
8966   ENABLE_PSK_TRUE=
8967   ENABLE_PSK_FALSE='#'
8968 else
8969   ENABLE_PSK_TRUE='#'
8970   ENABLE_PSK_FALSE=
8971 fi
8972
8973
8974   ac_enable_anon=yes
8975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable anonymous authentication support" >&5
8976 $as_echo_n "checking whether to disable anonymous authentication support... " >&6; }
8977   # Check whether --enable-anon-authentication was given.
8978 if test "${enable_anon_authentication+set}" = set; then :
8979   enableval=$enable_anon_authentication; ac_enable_anon=$enableval
8980 fi
8981
8982   if test x$ac_enable_anon != xno; then
8983    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }
8985
8986 $as_echo "#define ENABLE_ANON 1" >>confdefs.h
8987
8988   else
8989    ac_full=0
8990    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8991 $as_echo "yes" >&6; }
8992   fi
8993    if test "$ac_enable_anon" != "no"; then
8994   ENABLE_ANON_TRUE=
8995   ENABLE_ANON_FALSE='#'
8996 else
8997   ENABLE_ANON_TRUE='#'
8998   ENABLE_ANON_FALSE=
8999 fi
9000
9001
9002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable DHE support" >&5
9003 $as_echo_n "checking whether to disable DHE support... " >&6; }
9004   # Check whether --enable-dhe was given.
9005 if test "${enable_dhe+set}" = set; then :
9006   enableval=$enable_dhe; ac_enable_dhe=$enableval
9007 else
9008   ac_enable_dhe=yes
9009 fi
9010
9011   if test x$ac_enable_dhe != xno; then
9012    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013 $as_echo "no" >&6; }
9014
9015 $as_echo "#define ENABLE_DHE 1" >>confdefs.h
9016
9017   else
9018    ac_full=0
9019    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9020 $as_echo "yes" >&6; }
9021   fi
9022    if test "$ac_enable_dhe" != "no"; then
9023   ENABLE_DHE_TRUE=
9024   ENABLE_DHE_FALSE='#'
9025 else
9026   ENABLE_DHE_TRUE='#'
9027   ENABLE_DHE_FALSE=
9028 fi
9029
9030
9031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable ECDHE support" >&5
9032 $as_echo_n "checking whether to disable ECDHE support... " >&6; }
9033   # Check whether --enable-ecdhe was given.
9034 if test "${enable_ecdhe+set}" = set; then :
9035   enableval=$enable_ecdhe; ac_enable_ecdhe=$enableval
9036 else
9037   ac_enable_ecdhe=yes
9038 fi
9039
9040   if test x$ac_enable_ecdhe != xno; then
9041    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9043
9044 $as_echo "#define ENABLE_ECDHE 1" >>confdefs.h
9045
9046   else
9047    ac_full=0
9048    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9049 $as_echo "yes" >&6; }
9050   fi
9051    if test "$ac_enable_ecdhe" != "no"; then
9052   ENABLE_ECDHE_TRUE=
9053   ENABLE_ECDHE_FALSE='#'
9054 else
9055   ENABLE_ECDHE_TRUE='#'
9056   ENABLE_ECDHE_FALSE=
9057 fi
9058
9059
9060   ac_enable_openpgp=yes
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OpenPGP Certificate authentication support" >&5
9062 $as_echo_n "checking whether to disable OpenPGP Certificate authentication support... " >&6; }
9063   # Check whether --enable-openpgp-authentication was given.
9064 if test "${enable_openpgp_authentication+set}" = set; then :
9065   enableval=$enable_openpgp_authentication; ac_enable_openpgp=$enableval
9066 fi
9067
9068   if test x$ac_enable_openpgp = xno; then
9069    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9070 $as_echo "yes" >&6; }
9071    ac_full=0
9072   else
9073
9074 $as_echo "#define ENABLE_OPENPGP 1" >>confdefs.h
9075
9076    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077 $as_echo "no" >&6; }
9078   fi
9079    if test "$ac_enable_openpgp" = "yes"; then
9080   ENABLE_OPENPGP_TRUE=
9081   ENABLE_OPENPGP_FALSE='#'
9082 else
9083   ENABLE_OPENPGP_TRUE='#'
9084   ENABLE_OPENPGP_FALSE=
9085 fi
9086
9087
9088   # For cryptodev
9089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add cryptodev support" >&5
9090 $as_echo_n "checking whether to add cryptodev support... " >&6; }
9091   # Check whether --enable-cryptodev was given.
9092 if test "${enable_cryptodev+set}" = set; then :
9093   enableval=$enable_cryptodev; enable_cryptodev=$enableval
9094 else
9095   enable_cryptodev=no
9096 fi
9097
9098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cryptodev" >&5
9099 $as_echo "$enable_cryptodev" >&6; }
9100
9101   if test "$enable_cryptodev" = "yes"; then
9102
9103 $as_echo "#define ENABLE_CRYPTODEV 1" >>confdefs.h
9104
9105   fi
9106
9107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OCSP support" >&5
9108 $as_echo_n "checking whether to disable OCSP support... " >&6; }
9109   # Check whether --enable-ocsp was given.
9110 if test "${enable_ocsp+set}" = set; then :
9111   enableval=$enable_ocsp; ac_enable_ocsp=$enableval
9112 else
9113   ac_enable_ocsp=yes
9114 fi
9115
9116   if test x$ac_enable_ocsp != xno; then
9117    ac_enable_ocsp=yes
9118    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9120
9121 $as_echo "#define ENABLE_OCSP 1" >>confdefs.h
9122
9123   else
9124    ac_full=0
9125    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9126 $as_echo "yes" >&6; }
9127   fi
9128    if test "$ac_enable_ocsp" != "no"; then
9129   ENABLE_OCSP_TRUE=
9130   ENABLE_OCSP_FALSE='#'
9131 else
9132   ENABLE_OCSP_TRUE='#'
9133   ENABLE_OCSP_FALSE=
9134 fi
9135
9136
9137
9138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable session tickets support" >&5
9139 $as_echo_n "checking whether to disable session tickets support... " >&6; }
9140   # Check whether --enable-session-tickets was given.
9141 if test "${enable_session_tickets+set}" = set; then :
9142   enableval=$enable_session_tickets; ac_enable_session_tickets=$enableval
9143 else
9144   ac_enable_session_tickets=yes
9145 fi
9146
9147   if test x$ac_enable_session_tickets != xno; then
9148    ac_enable_session_tickets=yes
9149    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9151
9152 $as_echo "#define ENABLE_SESSION_TICKETS 1" >>confdefs.h
9153
9154   else
9155    ac_full=0
9156    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9157 $as_echo "yes" >&6; }
9158   fi
9159    if test "$ac_enable_session_tickets" != "no"; then
9160   ENABLE_SESSION_TICKETS_TRUE=
9161   ENABLE_SESSION_TICKETS_FALSE='#'
9162 else
9163   ENABLE_SESSION_TICKETS_TRUE='#'
9164   ENABLE_SESSION_TICKETS_FALSE=
9165 fi
9166
9167
9168   # For storing integers in pointers without warnings
9169   # http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
9170   # The cast to long int works around a bug in the HP C Compiler
9171 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9172 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9173 # This bug is HP SR number 8606223364.
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
9175 $as_echo_n "checking size of void *... " >&6; }
9176 if ${ac_cv_sizeof_void_p+:} false; then :
9177   $as_echo_n "(cached) " >&6
9178 else
9179   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
9180
9181 else
9182   if test "$ac_cv_type_void_p" = yes; then
9183      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9185 as_fn_error 77 "cannot compute sizeof (void *)
9186 See \`config.log' for more details" "$LINENO" 5; }
9187    else
9188      ac_cv_sizeof_void_p=0
9189    fi
9190 fi
9191
9192 fi
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
9194 $as_echo "$ac_cv_sizeof_void_p" >&6; }
9195
9196
9197
9198 cat >>confdefs.h <<_ACEOF
9199 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
9200 _ACEOF
9201
9202
9203   # The cast to long int works around a bug in the HP C Compiler
9204 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9205 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9206 # This bug is HP SR number 8606223364.
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9208 $as_echo_n "checking size of long long... " >&6; }
9209 if ${ac_cv_sizeof_long_long+:} false; then :
9210   $as_echo_n "(cached) " >&6
9211 else
9212   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
9213
9214 else
9215   if test "$ac_cv_type_long_long" = yes; then
9216      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9218 as_fn_error 77 "cannot compute sizeof (long long)
9219 See \`config.log' for more details" "$LINENO" 5; }
9220    else
9221      ac_cv_sizeof_long_long=0
9222    fi
9223 fi
9224
9225 fi
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
9227 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9228
9229
9230
9231 cat >>confdefs.h <<_ACEOF
9232 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9233 _ACEOF
9234
9235
9236   # The cast to long int works around a bug in the HP C Compiler
9237 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9238 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9239 # This bug is HP SR number 8606223364.
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9241 $as_echo_n "checking size of long... " >&6; }
9242 if ${ac_cv_sizeof_long+:} false; then :
9243   $as_echo_n "(cached) " >&6
9244 else
9245   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
9246
9247 else
9248   if test "$ac_cv_type_long" = yes; then
9249      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9251 as_fn_error 77 "cannot compute sizeof (long)
9252 See \`config.log' for more details" "$LINENO" 5; }
9253    else
9254      ac_cv_sizeof_long=0
9255    fi
9256 fi
9257
9258 fi
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9260 $as_echo "$ac_cv_sizeof_long" >&6; }
9261
9262
9263
9264 cat >>confdefs.h <<_ACEOF
9265 #define SIZEOF_LONG $ac_cv_sizeof_long
9266 _ACEOF
9267
9268
9269   # The cast to long int works around a bug in the HP C Compiler
9270 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9271 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9272 # This bug is HP SR number 8606223364.
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
9274 $as_echo_n "checking size of int... " >&6; }
9275 if ${ac_cv_sizeof_int+:} false; then :
9276   $as_echo_n "(cached) " >&6
9277 else
9278   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
9279
9280 else
9281   if test "$ac_cv_type_int" = yes; then
9282      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9284 as_fn_error 77 "cannot compute sizeof (int)
9285 See \`config.log' for more details" "$LINENO" 5; }
9286    else
9287      ac_cv_sizeof_int=0
9288    fi
9289 fi
9290
9291 fi
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
9293 $as_echo "$ac_cv_sizeof_int" >&6; }
9294
9295
9296
9297 cat >>confdefs.h <<_ACEOF
9298 #define SIZEOF_INT $ac_cv_sizeof_int
9299 _ACEOF
9300
9301
9302   if test x$ac_cv_sizeof_void_p = x$ac_cv_sizeof_long;then
9303
9304 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long)" >>confdefs.h
9305
9306   elif test x$ac_cv_sizeof_void_p = x$ac_cv_sizeof_long_long;then
9307
9308 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long long)" >>confdefs.h
9309
9310    else
9311       $as_echo "#define GNUTLS_POINTER_TO_INT_CAST /**/" >>confdefs.h
9312
9313    fi
9314
9315
9316
9317   GNULIB_CHDIR=0;
9318   GNULIB_CHOWN=0;
9319   GNULIB_CLOSE=0;
9320   GNULIB_DUP=0;
9321   GNULIB_DUP2=0;
9322   GNULIB_DUP3=0;
9323   GNULIB_ENVIRON=0;
9324   GNULIB_EUIDACCESS=0;
9325   GNULIB_FACCESSAT=0;
9326   GNULIB_FCHDIR=0;
9327   GNULIB_FCHOWNAT=0;
9328   GNULIB_FDATASYNC=0;
9329   GNULIB_FSYNC=0;
9330   GNULIB_FTRUNCATE=0;
9331   GNULIB_GETCWD=0;
9332   GNULIB_GETDOMAINNAME=0;
9333   GNULIB_GETDTABLESIZE=0;
9334   GNULIB_GETGROUPS=0;
9335   GNULIB_GETHOSTNAME=0;
9336   GNULIB_GETLOGIN=0;
9337   GNULIB_GETLOGIN_R=0;
9338   GNULIB_GETPAGESIZE=0;
9339   GNULIB_GETUSERSHELL=0;
9340   GNULIB_GROUP_MEMBER=0;
9341   GNULIB_ISATTY=0;
9342   GNULIB_LCHOWN=0;
9343   GNULIB_LINK=0;
9344   GNULIB_LINKAT=0;
9345   GNULIB_LSEEK=0;
9346   GNULIB_PIPE=0;
9347   GNULIB_PIPE2=0;
9348   GNULIB_PREAD=0;
9349   GNULIB_PWRITE=0;
9350   GNULIB_READ=0;
9351   GNULIB_READLINK=0;
9352   GNULIB_READLINKAT=0;
9353   GNULIB_RMDIR=0;
9354   GNULIB_SETHOSTNAME=0;
9355   GNULIB_SLEEP=0;
9356   GNULIB_SYMLINK=0;
9357   GNULIB_SYMLINKAT=0;
9358   GNULIB_TTYNAME_R=0;
9359   GNULIB_UNISTD_H_NONBLOCKING=0;
9360   GNULIB_UNISTD_H_SIGPIPE=0;
9361   GNULIB_UNLINK=0;
9362   GNULIB_UNLINKAT=0;
9363   GNULIB_USLEEP=0;
9364   GNULIB_WRITE=0;
9365     HAVE_CHOWN=1;
9366   HAVE_DUP2=1;
9367   HAVE_DUP3=1;
9368   HAVE_EUIDACCESS=1;
9369   HAVE_FACCESSAT=1;
9370   HAVE_FCHDIR=1;
9371   HAVE_FCHOWNAT=1;
9372   HAVE_FDATASYNC=1;
9373   HAVE_FSYNC=1;
9374   HAVE_FTRUNCATE=1;
9375   HAVE_GETDTABLESIZE=1;
9376   HAVE_GETGROUPS=1;
9377   HAVE_GETHOSTNAME=1;
9378   HAVE_GETLOGIN=1;
9379   HAVE_GETPAGESIZE=1;
9380   HAVE_GROUP_MEMBER=1;
9381   HAVE_LCHOWN=1;
9382   HAVE_LINK=1;
9383   HAVE_LINKAT=1;
9384   HAVE_PIPE=1;
9385   HAVE_PIPE2=1;
9386   HAVE_PREAD=1;
9387   HAVE_PWRITE=1;
9388   HAVE_READLINK=1;
9389   HAVE_READLINKAT=1;
9390   HAVE_SETHOSTNAME=1;
9391   HAVE_SLEEP=1;
9392   HAVE_SYMLINK=1;
9393   HAVE_SYMLINKAT=1;
9394   HAVE_UNLINKAT=1;
9395   HAVE_USLEEP=1;
9396   HAVE_DECL_ENVIRON=1;
9397   HAVE_DECL_FCHDIR=1;
9398   HAVE_DECL_FDATASYNC=1;
9399   HAVE_DECL_GETDOMAINNAME=1;
9400   HAVE_DECL_GETLOGIN_R=1;
9401   HAVE_DECL_GETPAGESIZE=1;
9402   HAVE_DECL_GETUSERSHELL=1;
9403   HAVE_DECL_SETHOSTNAME=1;
9404   HAVE_DECL_TTYNAME_R=1;
9405   HAVE_OS_H=0;
9406   HAVE_SYS_PARAM_H=0;
9407   REPLACE_CHOWN=0;
9408   REPLACE_CLOSE=0;
9409   REPLACE_DUP=0;
9410   REPLACE_DUP2=0;
9411   REPLACE_FCHOWNAT=0;
9412   REPLACE_FTRUNCATE=0;
9413   REPLACE_GETCWD=0;
9414   REPLACE_GETDOMAINNAME=0;
9415   REPLACE_GETDTABLESIZE=0;
9416   REPLACE_GETLOGIN_R=0;
9417   REPLACE_GETGROUPS=0;
9418   REPLACE_GETPAGESIZE=0;
9419   REPLACE_ISATTY=0;
9420   REPLACE_LCHOWN=0;
9421   REPLACE_LINK=0;
9422   REPLACE_LINKAT=0;
9423   REPLACE_LSEEK=0;
9424   REPLACE_PREAD=0;
9425   REPLACE_PWRITE=0;
9426   REPLACE_READ=0;
9427   REPLACE_READLINK=0;
9428   REPLACE_READLINKAT=0;
9429   REPLACE_RMDIR=0;
9430   REPLACE_SLEEP=0;
9431   REPLACE_SYMLINK=0;
9432   REPLACE_SYMLINKAT=0;
9433   REPLACE_TTYNAME_R=0;
9434   REPLACE_UNLINK=0;
9435   REPLACE_UNLINKAT=0;
9436   REPLACE_USLEEP=0;
9437   REPLACE_WRITE=0;
9438   UNISTD_H_HAVE_WINSOCK2_H=0;
9439   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
9440
9441
9442
9443
9444
9445
9446   for ac_header in $gl_header_list
9447 do :
9448   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9449 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9451   cat >>confdefs.h <<_ACEOF
9452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9453 _ACEOF
9454
9455 fi
9456
9457 done
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468   :
9469
9470
9471
9472
9473
9474   if test $ac_cv_header_sys_socket_h != yes; then
9475                     for ac_header in winsock2.h
9476 do :
9477   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9478 if test "x$ac_cv_header_winsock2_h" = xyes; then :
9479   cat >>confdefs.h <<_ACEOF
9480 #define HAVE_WINSOCK2_H 1
9481 _ACEOF
9482
9483 fi
9484
9485 done
9486
9487   fi
9488   if test "$ac_cv_header_winsock2_h" = yes; then
9489     HAVE_WINSOCK2_H=1
9490     UNISTD_H_HAVE_WINSOCK2_H=1
9491     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9492   else
9493     HAVE_WINSOCK2_H=0
9494   fi
9495
9496    LIBSOCKET=
9497   if test $HAVE_WINSOCK2_H = 1; then
9498         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
9499 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
9500 if ${gl_cv_func_wsastartup+:} false; then :
9501   $as_echo_n "(cached) " >&6
9502 else
9503
9504       gl_save_LIBS="$LIBS"
9505       LIBS="$LIBS -lws2_32"
9506       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h.  */
9508
9509 #ifdef HAVE_WINSOCK2_H
9510 # include <winsock2.h>
9511 #endif
9512 int
9513 main ()
9514 {
9515
9516           WORD wVersionRequested = MAKEWORD(1, 1);
9517           WSADATA wsaData;
9518           int err = WSAStartup(wVersionRequested, &wsaData);
9519           WSACleanup ();
9520   ;
9521   return 0;
9522 }
9523 _ACEOF
9524 if ac_fn_c_try_link "$LINENO"; then :
9525   gl_cv_func_wsastartup=yes
9526 else
9527   gl_cv_func_wsastartup=no
9528 fi
9529 rm -f core conftest.err conftest.$ac_objext \
9530     conftest$ac_exeext conftest.$ac_ext
9531       LIBS="$gl_save_LIBS"
9532
9533 fi
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
9535 $as_echo "$gl_cv_func_wsastartup" >&6; }
9536     if test "$gl_cv_func_wsastartup" = "yes"; then
9537
9538 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
9539
9540       LIBSOCKET='-lws2_32'
9541     fi
9542   else
9543                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
9544 $as_echo_n "checking for library containing setsockopt... " >&6; }
9545 if ${gl_cv_lib_socket+:} false; then :
9546   $as_echo_n "(cached) " >&6
9547 else
9548
9549       gl_cv_lib_socket=
9550       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h.  */
9552 extern
9553 #ifdef __cplusplus
9554 "C"
9555 #endif
9556 char setsockopt();
9557 int
9558 main ()
9559 {
9560 setsockopt();
9561   ;
9562   return 0;
9563 }
9564 _ACEOF
9565 if ac_fn_c_try_link "$LINENO"; then :
9566
9567 else
9568   gl_save_LIBS="$LIBS"
9569          LIBS="$gl_save_LIBS -lsocket"
9570          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h.  */
9572 extern
9573 #ifdef __cplusplus
9574 "C"
9575 #endif
9576 char setsockopt();
9577 int
9578 main ()
9579 {
9580 setsockopt();
9581   ;
9582   return 0;
9583 }
9584 _ACEOF
9585 if ac_fn_c_try_link "$LINENO"; then :
9586   gl_cv_lib_socket="-lsocket"
9587 fi
9588 rm -f core conftest.err conftest.$ac_objext \
9589     conftest$ac_exeext conftest.$ac_ext
9590          if test -z "$gl_cv_lib_socket"; then
9591            LIBS="$gl_save_LIBS -lnetwork"
9592            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h.  */
9594 extern
9595 #ifdef __cplusplus
9596 "C"
9597 #endif
9598 char setsockopt();
9599 int
9600 main ()
9601 {
9602 setsockopt();
9603   ;
9604   return 0;
9605 }
9606 _ACEOF
9607 if ac_fn_c_try_link "$LINENO"; then :
9608   gl_cv_lib_socket="-lnetwork"
9609 fi
9610 rm -f core conftest.err conftest.$ac_objext \
9611     conftest$ac_exeext conftest.$ac_ext
9612            if test -z "$gl_cv_lib_socket"; then
9613              LIBS="$gl_save_LIBS -lnet"
9614              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h.  */
9616 extern
9617 #ifdef __cplusplus
9618 "C"
9619 #endif
9620 char setsockopt();
9621 int
9622 main ()
9623 {
9624 setsockopt();
9625   ;
9626   return 0;
9627 }
9628 _ACEOF
9629 if ac_fn_c_try_link "$LINENO"; then :
9630   gl_cv_lib_socket="-lnet"
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext \
9633     conftest$ac_exeext conftest.$ac_ext
9634            fi
9635          fi
9636          LIBS="$gl_save_LIBS"
9637
9638 fi
9639 rm -f core conftest.err conftest.$ac_objext \
9640     conftest$ac_exeext conftest.$ac_ext
9641       if test -z "$gl_cv_lib_socket"; then
9642         gl_cv_lib_socket="none needed"
9643       fi
9644
9645 fi
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
9647 $as_echo "$gl_cv_lib_socket" >&6; }
9648     if test "$gl_cv_lib_socket" != "none needed"; then
9649       LIBSOCKET="$gl_cv_lib_socket"
9650     fi
9651   fi
9652
9653
9654
9655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build OpenSSL compatibility layer" >&5
9656 $as_echo_n "checking whether to build OpenSSL compatibility layer... " >&6; }
9657   # Check whether --enable-openssl-compatibility was given.
9658 if test "${enable_openssl_compatibility+set}" = set; then :
9659   enableval=$enable_openssl_compatibility; enable_openssl=$enableval
9660 else
9661   enable_openssl=yes
9662 fi
9663
9664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
9665 $as_echo "$enable_openssl" >&6; }
9666    if test "$enable_openssl" = "yes"; then
9667   ENABLE_OPENSSL_TRUE=
9668   ENABLE_OPENSSL_FALSE='#'
9669 else
9670   ENABLE_OPENSSL_TRUE='#'
9671   ENABLE_OPENSSL_FALSE=
9672 fi
9673
9674
9675   # We link to ../lib's gnulib, which needs -lws2_32 via LIBSOCKET in Makefile.am.
9676
9677
9678
9679
9680   :
9681
9682
9683
9684
9685 # Check whether --enable-doc was given.
9686 if test "${enable_doc+set}" = set; then :
9687   enableval=$enable_doc; enable_doc=$enableval
9688 else
9689   enable_doc=yes
9690 fi
9691
9692  if test "$enable_doc" != "no"; then
9693   ENABLE_DOC_TRUE=
9694   ENABLE_DOC_FALSE='#'
9695 else
9696   ENABLE_DOC_TRUE='#'
9697   ENABLE_DOC_FALSE=
9698 fi
9699
9700
9701 # Check whether --enable-tests was given.
9702 if test "${enable_tests+set}" = set; then :
9703   enableval=$enable_tests; enable_tests=$enableval
9704 else
9705   enable_tests=yes
9706 fi
9707
9708  if test "$enable_tests" != "no"; then
9709   ENABLE_TESTS_TRUE=
9710   ENABLE_TESTS_FALSE='#'
9711 else
9712   ENABLE_TESTS_TRUE='#'
9713   ENABLE_TESTS_FALSE=
9714 fi
9715
9716
9717
9718
9719     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
9720 set dummy gtkdoc-check; ac_word=$2
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722 $as_echo_n "checking for $ac_word... " >&6; }
9723 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
9724   $as_echo_n "(cached) " >&6
9725 else
9726   case $GTKDOC_CHECK in
9727   [\\/]* | ?:[\\/]*)
9728   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
9729   ;;
9730   *)
9731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 for as_dir in $PATH
9733 do
9734   IFS=$as_save_IFS
9735   test -z "$as_dir" && as_dir=.
9736     for ac_exec_ext in '' $ac_executable_extensions; do
9737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9738     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
9739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740     break 2
9741   fi
9742 done
9743   done
9744 IFS=$as_save_IFS
9745
9746   ;;
9747 esac
9748 fi
9749 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
9750 if test -n "$GTKDOC_CHECK"; then
9751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
9752 $as_echo "$GTKDOC_CHECK" >&6; }
9753 else
9754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9755 $as_echo "no" >&6; }
9756 fi
9757
9758
9759   for ac_prog in gtkdoc-rebase
9760 do
9761   # Extract the first word of "$ac_prog", so it can be a program name with args.
9762 set dummy $ac_prog; ac_word=$2
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9764 $as_echo_n "checking for $ac_word... " >&6; }
9765 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
9766   $as_echo_n "(cached) " >&6
9767 else
9768   case $GTKDOC_REBASE in
9769   [\\/]* | ?:[\\/]*)
9770   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
9771   ;;
9772   *)
9773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774 for as_dir in $PATH
9775 do
9776   IFS=$as_save_IFS
9777   test -z "$as_dir" && as_dir=.
9778     for ac_exec_ext in '' $ac_executable_extensions; do
9779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9780     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
9781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9782     break 2
9783   fi
9784 done
9785   done
9786 IFS=$as_save_IFS
9787
9788   ;;
9789 esac
9790 fi
9791 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
9792 if test -n "$GTKDOC_REBASE"; then
9793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
9794 $as_echo "$GTKDOC_REBASE" >&6; }
9795 else
9796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9797 $as_echo "no" >&6; }
9798 fi
9799
9800
9801   test -n "$GTKDOC_REBASE" && break
9802 done
9803 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
9804
9805   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
9806 set dummy gtkdoc-mkpdf; ac_word=$2
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808 $as_echo_n "checking for $ac_word... " >&6; }
9809 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
9810   $as_echo_n "(cached) " >&6
9811 else
9812   case $GTKDOC_MKPDF in
9813   [\\/]* | ?:[\\/]*)
9814   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
9815   ;;
9816   *)
9817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818 for as_dir in $PATH
9819 do
9820   IFS=$as_save_IFS
9821   test -z "$as_dir" && as_dir=.
9822     for ac_exec_ext in '' $ac_executable_extensions; do
9823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9824     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
9825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9826     break 2
9827   fi
9828 done
9829   done
9830 IFS=$as_save_IFS
9831
9832   ;;
9833 esac
9834 fi
9835 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
9836 if test -n "$GTKDOC_MKPDF"; then
9837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
9838 $as_echo "$GTKDOC_MKPDF" >&6; }
9839 else
9840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841 $as_echo "no" >&6; }
9842 fi
9843
9844
9845
9846
9847 # Check whether --with-html-dir was given.
9848 if test "${with_html_dir+set}" = set; then :
9849   withval=$with_html_dir;
9850 else
9851   with_html_dir='${datadir}/gtk-doc/html'
9852 fi
9853
9854   HTML_DIR="$with_html_dir"
9855
9856
9857     # Check whether --enable-gtk-doc was given.
9858 if test "${enable_gtk_doc+set}" = set; then :
9859   enableval=$enable_gtk_doc;
9860 else
9861   enable_gtk_doc=no
9862 fi
9863
9864
9865   if test x$enable_gtk_doc = xyes; then
9866     if test -n "$PKG_CONFIG" && \
9867     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.1\""; } >&5
9868   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.1") 2>&5
9869   ac_status=$?
9870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9871   test $ac_status = 0; }; then
9872   :
9873 else
9874   as_fn_error $? "You need to have gtk-doc >= 1.1 installed to build $PACKAGE_NAME" "$LINENO" 5
9875 fi
9876   fi
9877
9878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
9879 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
9880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
9881 $as_echo "$enable_gtk_doc" >&6; }
9882
9883     # Check whether --enable-gtk-doc-html was given.
9884 if test "${enable_gtk_doc_html+set}" = set; then :
9885   enableval=$enable_gtk_doc_html;
9886 else
9887   enable_gtk_doc_html=yes
9888 fi
9889
9890     # Check whether --enable-gtk-doc-pdf was given.
9891 if test "${enable_gtk_doc_pdf+set}" = set; then :
9892   enableval=$enable_gtk_doc_pdf;
9893 else
9894   enable_gtk_doc_pdf=no
9895 fi
9896
9897
9898   if test -z "$GTKDOC_MKPDF"; then
9899     enable_gtk_doc_pdf=no
9900   fi
9901
9902
9903    if test x$enable_gtk_doc = xyes; then
9904   ENABLE_GTK_DOC_TRUE=
9905   ENABLE_GTK_DOC_FALSE='#'
9906 else
9907   ENABLE_GTK_DOC_TRUE='#'
9908   ENABLE_GTK_DOC_FALSE=
9909 fi
9910
9911    if test x$enable_gtk_doc_html = xyes; then
9912   GTK_DOC_BUILD_HTML_TRUE=
9913   GTK_DOC_BUILD_HTML_FALSE='#'
9914 else
9915   GTK_DOC_BUILD_HTML_TRUE='#'
9916   GTK_DOC_BUILD_HTML_FALSE=
9917 fi
9918
9919    if test x$enable_gtk_doc_pdf = xyes; then
9920   GTK_DOC_BUILD_PDF_TRUE=
9921   GTK_DOC_BUILD_PDF_FALSE='#'
9922 else
9923   GTK_DOC_BUILD_PDF_TRUE='#'
9924   GTK_DOC_BUILD_PDF_FALSE=
9925 fi
9926
9927    if test -n "$LIBTOOL"; then
9928   GTK_DOC_USE_LIBTOOL_TRUE=
9929   GTK_DOC_USE_LIBTOOL_FALSE='#'
9930 else
9931   GTK_DOC_USE_LIBTOOL_TRUE='#'
9932   GTK_DOC_USE_LIBTOOL_FALSE=
9933 fi
9934
9935    if test -n "$GTKDOC_REBASE"; then
9936   GTK_DOC_USE_REBASE_TRUE=
9937   GTK_DOC_USE_REBASE_FALSE='#'
9938 else
9939   GTK_DOC_USE_REBASE_TRUE='#'
9940   GTK_DOC_USE_REBASE_FALSE=
9941 fi
9942
9943
9944
9945 mkdir_p="$MKDIR_P"
9946 case $mkdir_p in
9947   [\\/$]* | ?:[\\/]*) ;;
9948   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9949 esac
9950
9951
9952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
9953 $as_echo_n "checking whether NLS is requested... " >&6; }
9954     # Check whether --enable-nls was given.
9955 if test "${enable_nls+set}" = set; then :
9956   enableval=$enable_nls; USE_NLS=$enableval
9957 else
9958   USE_NLS=yes
9959 fi
9960
9961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9962 $as_echo "$USE_NLS" >&6; }
9963
9964
9965
9966
9967       GETTEXT_MACRO_VERSION=0.18
9968
9969
9970
9971
9972 # Prepare PATH_SEPARATOR.
9973 # The user is always right.
9974 if test "${PATH_SEPARATOR+set}" != set; then
9975   echo "#! /bin/sh" >conf$$.sh
9976   echo  "exit 0"   >>conf$$.sh
9977   chmod +x conf$$.sh
9978   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9979     PATH_SEPARATOR=';'
9980   else
9981     PATH_SEPARATOR=:
9982   fi
9983   rm -f conf$$.sh
9984 fi
9985
9986 # Find out how to test for executable files. Don't use a zero-byte file,
9987 # as systems may use methods other than mode bits to determine executability.
9988 cat >conf$$.file <<_ASEOF
9989 #! /bin/sh
9990 exit 0
9991 _ASEOF
9992 chmod +x conf$$.file
9993 if test -x conf$$.file >/dev/null 2>&1; then
9994   ac_executable_p="test -x"
9995 else
9996   ac_executable_p="test -f"
9997 fi
9998 rm -f conf$$.file
9999
10000 # Extract the first word of "msgfmt", so it can be a program name with args.
10001 set dummy msgfmt; ac_word=$2
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10003 $as_echo_n "checking for $ac_word... " >&6; }
10004 if ${ac_cv_path_MSGFMT+:} false; then :
10005   $as_echo_n "(cached) " >&6
10006 else
10007   case "$MSGFMT" in
10008   [\\/]* | ?:[\\/]*)
10009     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10010     ;;
10011   *)
10012     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10013     for ac_dir in $PATH; do
10014       IFS="$ac_save_IFS"
10015       test -z "$ac_dir" && ac_dir=.
10016       for ac_exec_ext in '' $ac_executable_extensions; do
10017         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10018           echo "$as_me: trying $ac_dir/$ac_word..." >&5
10019           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
10020      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10021             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10022             break 2
10023           fi
10024         fi
10025       done
10026     done
10027     IFS="$ac_save_IFS"
10028   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10029     ;;
10030 esac
10031 fi
10032 MSGFMT="$ac_cv_path_MSGFMT"
10033 if test "$MSGFMT" != ":"; then
10034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
10035 $as_echo "$MSGFMT" >&6; }
10036 else
10037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10039 fi
10040
10041   # Extract the first word of "gmsgfmt", so it can be a program name with args.
10042 set dummy gmsgfmt; ac_word=$2
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044 $as_echo_n "checking for $ac_word... " >&6; }
10045 if ${ac_cv_path_GMSGFMT+:} false; then :
10046   $as_echo_n "(cached) " >&6
10047 else
10048   case $GMSGFMT in
10049   [\\/]* | ?:[\\/]*)
10050   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10051   ;;
10052   *)
10053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10055 do
10056   IFS=$as_save_IFS
10057   test -z "$as_dir" && as_dir=.
10058     for ac_exec_ext in '' $ac_executable_extensions; do
10059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062     break 2
10063   fi
10064 done
10065   done
10066 IFS=$as_save_IFS
10067
10068   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10069   ;;
10070 esac
10071 fi
10072 GMSGFMT=$ac_cv_path_GMSGFMT
10073 if test -n "$GMSGFMT"; then
10074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
10075 $as_echo "$GMSGFMT" >&6; }
10076 else
10077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078 $as_echo "no" >&6; }
10079 fi
10080
10081
10082
10083     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10084     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
10085     *) MSGFMT_015=$MSGFMT ;;
10086   esac
10087
10088   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10089     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
10090     *) GMSGFMT_015=$GMSGFMT ;;
10091   esac
10092
10093
10094
10095 # Prepare PATH_SEPARATOR.
10096 # The user is always right.
10097 if test "${PATH_SEPARATOR+set}" != set; then
10098   echo "#! /bin/sh" >conf$$.sh
10099   echo  "exit 0"   >>conf$$.sh
10100   chmod +x conf$$.sh
10101   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10102     PATH_SEPARATOR=';'
10103   else
10104     PATH_SEPARATOR=:
10105   fi
10106   rm -f conf$$.sh
10107 fi
10108
10109 # Find out how to test for executable files. Don't use a zero-byte file,
10110 # as systems may use methods other than mode bits to determine executability.
10111 cat >conf$$.file <<_ASEOF
10112 #! /bin/sh
10113 exit 0
10114 _ASEOF
10115 chmod +x conf$$.file
10116 if test -x conf$$.file >/dev/null 2>&1; then
10117   ac_executable_p="test -x"
10118 else
10119   ac_executable_p="test -f"
10120 fi
10121 rm -f conf$$.file
10122
10123 # Extract the first word of "xgettext", so it can be a program name with args.
10124 set dummy xgettext; ac_word=$2
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10126 $as_echo_n "checking for $ac_word... " >&6; }
10127 if ${ac_cv_path_XGETTEXT+:} false; then :
10128   $as_echo_n "(cached) " >&6
10129 else
10130   case "$XGETTEXT" in
10131   [\\/]* | ?:[\\/]*)
10132     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10133     ;;
10134   *)
10135     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10136     for ac_dir in $PATH; do
10137       IFS="$ac_save_IFS"
10138       test -z "$ac_dir" && ac_dir=.
10139       for ac_exec_ext in '' $ac_executable_extensions; do
10140         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10141           echo "$as_me: trying $ac_dir/$ac_word..." >&5
10142           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
10143      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10144             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10145             break 2
10146           fi
10147         fi
10148       done
10149     done
10150     IFS="$ac_save_IFS"
10151   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10152     ;;
10153 esac
10154 fi
10155 XGETTEXT="$ac_cv_path_XGETTEXT"
10156 if test "$XGETTEXT" != ":"; then
10157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
10158 $as_echo "$XGETTEXT" >&6; }
10159 else
10160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161 $as_echo "no" >&6; }
10162 fi
10163
10164     rm -f messages.po
10165
10166     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10167     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
10168     *) XGETTEXT_015=$XGETTEXT ;;
10169   esac
10170
10171
10172
10173 # Prepare PATH_SEPARATOR.
10174 # The user is always right.
10175 if test "${PATH_SEPARATOR+set}" != set; then
10176   echo "#! /bin/sh" >conf$$.sh
10177   echo  "exit 0"   >>conf$$.sh
10178   chmod +x conf$$.sh
10179   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10180     PATH_SEPARATOR=';'
10181   else
10182     PATH_SEPARATOR=:
10183   fi
10184   rm -f conf$$.sh
10185 fi
10186
10187 # Find out how to test for executable files. Don't use a zero-byte file,
10188 # as systems may use methods other than mode bits to determine executability.
10189 cat >conf$$.file <<_ASEOF
10190 #! /bin/sh
10191 exit 0
10192 _ASEOF
10193 chmod +x conf$$.file
10194 if test -x conf$$.file >/dev/null 2>&1; then
10195   ac_executable_p="test -x"
10196 else
10197   ac_executable_p="test -f"
10198 fi
10199 rm -f conf$$.file
10200
10201 # Extract the first word of "msgmerge", so it can be a program name with args.
10202 set dummy msgmerge; ac_word=$2
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10204 $as_echo_n "checking for $ac_word... " >&6; }
10205 if ${ac_cv_path_MSGMERGE+:} false; then :
10206   $as_echo_n "(cached) " >&6
10207 else
10208   case "$MSGMERGE" in
10209   [\\/]* | ?:[\\/]*)
10210     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10211     ;;
10212   *)
10213     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10214     for ac_dir in $PATH; do
10215       IFS="$ac_save_IFS"
10216       test -z "$ac_dir" && ac_dir=.
10217       for ac_exec_ext in '' $ac_executable_extensions; do
10218         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10219           echo "$as_me: trying $ac_dir/$ac_word..." >&5
10220           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
10221             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10222             break 2
10223           fi
10224         fi
10225       done
10226     done
10227     IFS="$ac_save_IFS"
10228   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10229     ;;
10230 esac
10231 fi
10232 MSGMERGE="$ac_cv_path_MSGMERGE"
10233 if test "$MSGMERGE" != ":"; then
10234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
10235 $as_echo "$MSGMERGE" >&6; }
10236 else
10237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238 $as_echo "no" >&6; }
10239 fi
10240
10241
10242         test -n "$localedir" || localedir='${datadir}/locale'
10243
10244
10245     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
10246
10247
10248   ac_config_commands="$ac_config_commands po-directories"
10249
10250
10251
10252       if test "X$prefix" = "XNONE"; then
10253     acl_final_prefix="$ac_default_prefix"
10254   else
10255     acl_final_prefix="$prefix"
10256   fi
10257   if test "X$exec_prefix" = "XNONE"; then
10258     acl_final_exec_prefix='${prefix}'
10259   else
10260     acl_final_exec_prefix="$exec_prefix"
10261   fi
10262   acl_save_prefix="$prefix"
10263   prefix="$acl_final_prefix"
10264   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10265   prefix="$acl_save_prefix"
10266
10267
10268 # Check whether --with-gnu-ld was given.
10269 if test "${with_gnu_ld+set}" = set; then :
10270   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10271 else
10272   with_gnu_ld=no
10273 fi
10274
10275 # Prepare PATH_SEPARATOR.
10276 # The user is always right.
10277 if test "${PATH_SEPARATOR+set}" != set; then
10278   echo "#! /bin/sh" >conf$$.sh
10279   echo  "exit 0"   >>conf$$.sh
10280   chmod +x conf$$.sh
10281   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10282     PATH_SEPARATOR=';'
10283   else
10284     PATH_SEPARATOR=:
10285   fi
10286   rm -f conf$$.sh
10287 fi
10288 ac_prog=ld
10289 if test "$GCC" = yes; then
10290   # Check if gcc -print-prog-name=ld gives a path.
10291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10292 $as_echo_n "checking for ld used by GCC... " >&6; }
10293   case $host in
10294   *-*-mingw*)
10295     # gcc leaves a trailing carriage return which upsets mingw
10296     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10297   *)
10298     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10299   esac
10300   case $ac_prog in
10301     # Accept absolute paths.
10302     [\\/]* | [A-Za-z]:[\\/]*)
10303       re_direlt='/[^/][^/]*/\.\./'
10304       # Canonicalize the path of ld
10305       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10306       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10307         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10308       done
10309       test -z "$LD" && LD="$ac_prog"
10310       ;;
10311   "")
10312     # If it fails, then pretend we aren't using GCC.
10313     ac_prog=ld
10314     ;;
10315   *)
10316     # If it is relative, then search for the first ld in PATH.
10317     with_gnu_ld=unknown
10318     ;;
10319   esac
10320 elif test "$with_gnu_ld" = yes; then
10321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10322 $as_echo_n "checking for GNU ld... " >&6; }
10323 else
10324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10325 $as_echo_n "checking for non-GNU ld... " >&6; }
10326 fi
10327 if ${acl_cv_path_LD+:} false; then :
10328   $as_echo_n "(cached) " >&6
10329 else
10330   if test -z "$LD"; then
10331   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10332   for ac_dir in $PATH; do
10333     test -z "$ac_dir" && ac_dir=.
10334     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10335       acl_cv_path_LD="$ac_dir/$ac_prog"
10336       # Check to see if the program is GNU ld.  I'd rather use --version,
10337       # but apparently some GNU ld's only accept -v.
10338       # Break only if it was the GNU/non-GNU ld that we prefer.
10339       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10340       *GNU* | *'with BFD'*)
10341         test "$with_gnu_ld" != no && break ;;
10342       *)
10343         test "$with_gnu_ld" != yes && break ;;
10344       esac
10345     fi
10346   done
10347   IFS="$ac_save_ifs"
10348 else
10349   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10350 fi
10351 fi
10352
10353 LD="$acl_cv_path_LD"
10354 if test -n "$LD"; then
10355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10356 $as_echo "$LD" >&6; }
10357 else
10358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; }
10360 fi
10361 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10363 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10364 if ${acl_cv_prog_gnu_ld+:} false; then :
10365   $as_echo_n "(cached) " >&6
10366 else
10367   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10368 case `$LD -v 2>&1 </dev/null` in
10369 *GNU* | *'with BFD'*)
10370   acl_cv_prog_gnu_ld=yes ;;
10371 *)
10372   acl_cv_prog_gnu_ld=no ;;
10373 esac
10374 fi
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10376 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10377 with_gnu_ld=$acl_cv_prog_gnu_ld
10378
10379
10380
10381
10382                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10383 $as_echo_n "checking for shared library run path origin... " >&6; }
10384 if ${acl_cv_rpath+:} false; then :
10385   $as_echo_n "(cached) " >&6
10386 else
10387
10388     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10389     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10390     . ./conftest.sh
10391     rm -f ./conftest.sh
10392     acl_cv_rpath=done
10393
10394 fi
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10396 $as_echo "$acl_cv_rpath" >&6; }
10397   wl="$acl_cv_wl"
10398   acl_libext="$acl_cv_libext"
10399   acl_shlibext="$acl_cv_shlibext"
10400   acl_libname_spec="$acl_cv_libname_spec"
10401   acl_library_names_spec="$acl_cv_library_names_spec"
10402   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10403   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10404   acl_hardcode_direct="$acl_cv_hardcode_direct"
10405   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
10406     # Check whether --enable-rpath was given.
10407 if test "${enable_rpath+set}" = set; then :
10408   enableval=$enable_rpath; :
10409 else
10410   enable_rpath=yes
10411 fi
10412
10413
10414
10415
10416   acl_libdirstem=lib
10417   acl_libdirstem2=
10418   case "$host_os" in
10419     solaris*)
10420                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
10421 $as_echo_n "checking for 64-bit host... " >&6; }
10422 if ${gl_cv_solaris_64bit+:} false; then :
10423   $as_echo_n "(cached) " >&6
10424 else
10425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h.  */
10427
10428 #ifdef _LP64
10429 sixtyfour bits
10430 #endif
10431
10432 _ACEOF
10433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10434   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
10435   gl_cv_solaris_64bit=yes
10436 else
10437   gl_cv_solaris_64bit=no
10438 fi
10439 rm -f conftest*
10440
10441
10442 fi
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
10444 $as_echo "$gl_cv_solaris_64bit" >&6; }
10445       if test $gl_cv_solaris_64bit = yes; then
10446         acl_libdirstem=lib/64
10447         case "$host_cpu" in
10448           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
10449           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
10450         esac
10451       fi
10452       ;;
10453     *)
10454       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10455       if test -n "$searchpath"; then
10456         acl_save_IFS="${IFS=    }"; IFS=":"
10457         for searchdir in $searchpath; do
10458           if test -d "$searchdir"; then
10459             case "$searchdir" in
10460               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10461               */../ | */.. )
10462                 # Better ignore directories of this form. They are misleading.
10463                 ;;
10464               *) searchdir=`cd "$searchdir" && pwd`
10465                  case "$searchdir" in
10466                    */lib64 ) acl_libdirstem=lib64 ;;
10467                  esac ;;
10468             esac
10469           fi
10470         done
10471         IFS="$acl_save_IFS"
10472       fi
10473       ;;
10474   esac
10475   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488     use_additional=yes
10489
10490   acl_save_prefix="$prefix"
10491   prefix="$acl_final_prefix"
10492   acl_save_exec_prefix="$exec_prefix"
10493   exec_prefix="$acl_final_exec_prefix"
10494
10495     eval additional_includedir=\"$includedir\"
10496     eval additional_libdir=\"$libdir\"
10497
10498   exec_prefix="$acl_save_exec_prefix"
10499   prefix="$acl_save_prefix"
10500
10501
10502 # Check whether --with-libiconv-prefix was given.
10503 if test "${with_libiconv_prefix+set}" = set; then :
10504   withval=$with_libiconv_prefix;
10505     if test "X$withval" = "Xno"; then
10506       use_additional=no
10507     else
10508       if test "X$withval" = "X"; then
10509
10510   acl_save_prefix="$prefix"
10511   prefix="$acl_final_prefix"
10512   acl_save_exec_prefix="$exec_prefix"
10513   exec_prefix="$acl_final_exec_prefix"
10514
10515           eval additional_includedir=\"$includedir\"
10516           eval additional_libdir=\"$libdir\"
10517
10518   exec_prefix="$acl_save_exec_prefix"
10519   prefix="$acl_save_prefix"
10520
10521       else
10522         additional_includedir="$withval/include"
10523         additional_libdir="$withval/$acl_libdirstem"
10524         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10525            && ! test -d "$withval/$acl_libdirstem"; then
10526           additional_libdir="$withval/$acl_libdirstem2"
10527         fi
10528       fi
10529     fi
10530
10531 fi
10532
10533       LIBICONV=
10534   LTLIBICONV=
10535   INCICONV=
10536   LIBICONV_PREFIX=
10537       HAVE_LIBICONV=
10538   rpathdirs=
10539   ltrpathdirs=
10540   names_already_handled=
10541   names_next_round='iconv '
10542   while test -n "$names_next_round"; do
10543     names_this_round="$names_next_round"
10544     names_next_round=
10545     for name in $names_this_round; do
10546       already_handled=
10547       for n in $names_already_handled; do
10548         if test "$n" = "$name"; then
10549           already_handled=yes
10550           break
10551         fi
10552       done
10553       if test -z "$already_handled"; then
10554         names_already_handled="$names_already_handled $name"
10555                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10556         eval value=\"\$HAVE_LIB$uppername\"
10557         if test -n "$value"; then
10558           if test "$value" = yes; then
10559             eval value=\"\$LIB$uppername\"
10560             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10561             eval value=\"\$LTLIB$uppername\"
10562             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10563           else
10564                                     :
10565           fi
10566         else
10567                               found_dir=
10568           found_la=
10569           found_so=
10570           found_a=
10571           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10572           if test -n "$acl_shlibext"; then
10573             shrext=".$acl_shlibext"             # typically: shrext=.so
10574           else
10575             shrext=
10576           fi
10577           if test $use_additional = yes; then
10578             dir="$additional_libdir"
10579                                     if test -n "$acl_shlibext"; then
10580               if test -f "$dir/$libname$shrext"; then
10581                 found_dir="$dir"
10582                 found_so="$dir/$libname$shrext"
10583               else
10584                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10585                   ver=`(cd "$dir" && \
10586                         for f in "$libname$shrext".*; do echo "$f"; done \
10587                         | sed -e "s,^$libname$shrext\\\\.,," \
10588                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10589                         | sed 1q ) 2>/dev/null`
10590                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10591                     found_dir="$dir"
10592                     found_so="$dir/$libname$shrext.$ver"
10593                   fi
10594                 else
10595                   eval library_names=\"$acl_library_names_spec\"
10596                   for f in $library_names; do
10597                     if test -f "$dir/$f"; then
10598                       found_dir="$dir"
10599                       found_so="$dir/$f"
10600                       break
10601                     fi
10602                   done
10603                 fi
10604               fi
10605             fi
10606                         if test "X$found_dir" = "X"; then
10607               if test -f "$dir/$libname.$acl_libext"; then
10608                 found_dir="$dir"
10609                 found_a="$dir/$libname.$acl_libext"
10610               fi
10611             fi
10612             if test "X$found_dir" != "X"; then
10613               if test -f "$dir/$libname.la"; then
10614                 found_la="$dir/$libname.la"
10615               fi
10616             fi
10617           fi
10618           if test "X$found_dir" = "X"; then
10619             for x in $LDFLAGS $LTLIBICONV; do
10620
10621   acl_save_prefix="$prefix"
10622   prefix="$acl_final_prefix"
10623   acl_save_exec_prefix="$exec_prefix"
10624   exec_prefix="$acl_final_exec_prefix"
10625   eval x=\"$x\"
10626   exec_prefix="$acl_save_exec_prefix"
10627   prefix="$acl_save_prefix"
10628
10629               case "$x" in
10630                 -L*)
10631                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10632                                     if test -n "$acl_shlibext"; then
10633                     if test -f "$dir/$libname$shrext"; then
10634                       found_dir="$dir"
10635                       found_so="$dir/$libname$shrext"
10636                     else
10637                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10638                         ver=`(cd "$dir" && \
10639                               for f in "$libname$shrext".*; do echo "$f"; done \
10640                               | sed -e "s,^$libname$shrext\\\\.,," \
10641                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10642                               | sed 1q ) 2>/dev/null`
10643                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10644                           found_dir="$dir"
10645                           found_so="$dir/$libname$shrext.$ver"
10646                         fi
10647                       else
10648                         eval library_names=\"$acl_library_names_spec\"
10649                         for f in $library_names; do
10650                           if test -f "$dir/$f"; then
10651                             found_dir="$dir"
10652                             found_so="$dir/$f"
10653                             break
10654                           fi
10655                         done
10656                       fi
10657                     fi
10658                   fi
10659                                     if test "X$found_dir" = "X"; then
10660                     if test -f "$dir/$libname.$acl_libext"; then
10661                       found_dir="$dir"
10662                       found_a="$dir/$libname.$acl_libext"
10663                     fi
10664                   fi
10665                   if test "X$found_dir" != "X"; then
10666                     if test -f "$dir/$libname.la"; then
10667                       found_la="$dir/$libname.la"
10668                     fi
10669                   fi
10670                   ;;
10671               esac
10672               if test "X$found_dir" != "X"; then
10673                 break
10674               fi
10675             done
10676           fi
10677           if test "X$found_dir" != "X"; then
10678                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10679             if test "X$found_so" != "X"; then
10680                                                         if test "$enable_rpath" = no \
10681                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10682                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10683                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10684               else
10685                                                                                 haveit=
10686                 for x in $ltrpathdirs; do
10687                   if test "X$x" = "X$found_dir"; then
10688                     haveit=yes
10689                     break
10690                   fi
10691                 done
10692                 if test -z "$haveit"; then
10693                   ltrpathdirs="$ltrpathdirs $found_dir"
10694                 fi
10695                                 if test "$acl_hardcode_direct" = yes; then
10696                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10697                 else
10698                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10699                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10700                                                             haveit=
10701                     for x in $rpathdirs; do
10702                       if test "X$x" = "X$found_dir"; then
10703                         haveit=yes
10704                         break
10705                       fi
10706                     done
10707                     if test -z "$haveit"; then
10708                       rpathdirs="$rpathdirs $found_dir"
10709                     fi
10710                   else
10711                                                                                 haveit=
10712                     for x in $LDFLAGS $LIBICONV; do
10713
10714   acl_save_prefix="$prefix"
10715   prefix="$acl_final_prefix"
10716   acl_save_exec_prefix="$exec_prefix"
10717   exec_prefix="$acl_final_exec_prefix"
10718   eval x=\"$x\"
10719   exec_prefix="$acl_save_exec_prefix"
10720   prefix="$acl_save_prefix"
10721
10722                       if test "X$x" = "X-L$found_dir"; then
10723                         haveit=yes
10724                         break
10725                       fi
10726                     done
10727                     if test -z "$haveit"; then
10728                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10729                     fi
10730                     if test "$acl_hardcode_minus_L" != no; then
10731                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10732                     else
10733                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10734                     fi
10735                   fi
10736                 fi
10737               fi
10738             else
10739               if test "X$found_a" != "X"; then
10740                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10741               else
10742                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10743               fi
10744             fi
10745                         additional_includedir=
10746             case "$found_dir" in
10747               */$acl_libdirstem | */$acl_libdirstem/)
10748                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10749                 if test "$name" = 'iconv'; then
10750                   LIBICONV_PREFIX="$basedir"
10751                 fi
10752                 additional_includedir="$basedir/include"
10753                 ;;
10754               */$acl_libdirstem2 | */$acl_libdirstem2/)
10755                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10756                 if test "$name" = 'iconv'; then
10757                   LIBICONV_PREFIX="$basedir"
10758                 fi
10759                 additional_includedir="$basedir/include"
10760                 ;;
10761             esac
10762             if test "X$additional_includedir" != "X"; then
10763                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10764                 haveit=
10765                 if test "X$additional_includedir" = "X/usr/local/include"; then
10766                   if test -n "$GCC"; then
10767                     case $host_os in
10768                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10769                     esac
10770                   fi
10771                 fi
10772                 if test -z "$haveit"; then
10773                   for x in $CPPFLAGS $INCICONV; do
10774
10775   acl_save_prefix="$prefix"
10776   prefix="$acl_final_prefix"
10777   acl_save_exec_prefix="$exec_prefix"
10778   exec_prefix="$acl_final_exec_prefix"
10779   eval x=\"$x\"
10780   exec_prefix="$acl_save_exec_prefix"
10781   prefix="$acl_save_prefix"
10782
10783                     if test "X$x" = "X-I$additional_includedir"; then
10784                       haveit=yes
10785                       break
10786                     fi
10787                   done
10788                   if test -z "$haveit"; then
10789                     if test -d "$additional_includedir"; then
10790                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10791                     fi
10792                   fi
10793                 fi
10794               fi
10795             fi
10796                         if test -n "$found_la"; then
10797                                                         save_libdir="$libdir"
10798               case "$found_la" in
10799                 */* | *\\*) . "$found_la" ;;
10800                 *) . "./$found_la" ;;
10801               esac
10802               libdir="$save_libdir"
10803                             for dep in $dependency_libs; do
10804                 case "$dep" in
10805                   -L*)
10806                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10807                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
10808                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
10809                       haveit=
10810                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
10811                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
10812                         if test -n "$GCC"; then
10813                           case $host_os in
10814                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10815                           esac
10816                         fi
10817                       fi
10818                       if test -z "$haveit"; then
10819                         haveit=
10820                         for x in $LDFLAGS $LIBICONV; do
10821
10822   acl_save_prefix="$prefix"
10823   prefix="$acl_final_prefix"
10824   acl_save_exec_prefix="$exec_prefix"
10825   exec_prefix="$acl_final_exec_prefix"
10826   eval x=\"$x\"
10827   exec_prefix="$acl_save_exec_prefix"
10828   prefix="$acl_save_prefix"
10829
10830                           if test "X$x" = "X-L$additional_libdir"; then
10831                             haveit=yes
10832                             break
10833                           fi
10834                         done
10835                         if test -z "$haveit"; then
10836                           if test -d "$additional_libdir"; then
10837                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10838                           fi
10839                         fi
10840                         haveit=
10841                         for x in $LDFLAGS $LTLIBICONV; do
10842
10843   acl_save_prefix="$prefix"
10844   prefix="$acl_final_prefix"
10845   acl_save_exec_prefix="$exec_prefix"
10846   exec_prefix="$acl_final_exec_prefix"
10847   eval x=\"$x\"
10848   exec_prefix="$acl_save_exec_prefix"
10849   prefix="$acl_save_prefix"
10850
10851                           if test "X$x" = "X-L$additional_libdir"; then
10852                             haveit=yes
10853                             break
10854                           fi
10855                         done
10856                         if test -z "$haveit"; then
10857                           if test -d "$additional_libdir"; then
10858                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10859                           fi
10860                         fi
10861                       fi
10862                     fi
10863                     ;;
10864                   -R*)
10865                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10866                     if test "$enable_rpath" != no; then
10867                                                                   haveit=
10868                       for x in $rpathdirs; do
10869                         if test "X$x" = "X$dir"; then
10870                           haveit=yes
10871                           break
10872                         fi
10873                       done
10874                       if test -z "$haveit"; then
10875                         rpathdirs="$rpathdirs $dir"
10876                       fi
10877                                                                   haveit=
10878                       for x in $ltrpathdirs; do
10879                         if test "X$x" = "X$dir"; then
10880                           haveit=yes
10881                           break
10882                         fi
10883                       done
10884                       if test -z "$haveit"; then
10885                         ltrpathdirs="$ltrpathdirs $dir"
10886                       fi
10887                     fi
10888                     ;;
10889                   -l*)
10890                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10891                     ;;
10892                   *.la)
10893                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10894                     ;;
10895                   *)
10896                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10897                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10898                     ;;
10899                 esac
10900               done
10901             fi
10902           else
10903                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10904             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10905           fi
10906         fi
10907       fi
10908     done
10909   done
10910   if test "X$rpathdirs" != "X"; then
10911     if test -n "$acl_hardcode_libdir_separator"; then
10912                         alldirs=
10913       for found_dir in $rpathdirs; do
10914         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10915       done
10916             acl_save_libdir="$libdir"
10917       libdir="$alldirs"
10918       eval flag=\"$acl_hardcode_libdir_flag_spec\"
10919       libdir="$acl_save_libdir"
10920       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10921     else
10922             for found_dir in $rpathdirs; do
10923         acl_save_libdir="$libdir"
10924         libdir="$found_dir"
10925         eval flag=\"$acl_hardcode_libdir_flag_spec\"
10926         libdir="$acl_save_libdir"
10927         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10928       done
10929     fi
10930   fi
10931   if test "X$ltrpathdirs" != "X"; then
10932             for found_dir in $ltrpathdirs; do
10933       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10934     done
10935   fi
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10968 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10969 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10970   $as_echo_n "(cached) " >&6
10971 else
10972   gt_save_LIBS="$LIBS"
10973      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10974      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h.  */
10976 #include <CoreFoundation/CFPreferences.h>
10977 int
10978 main ()
10979 {
10980 CFPreferencesCopyAppValue(NULL, NULL)
10981   ;
10982   return 0;
10983 }
10984 _ACEOF
10985 if ac_fn_c_try_link "$LINENO"; then :
10986   gt_cv_func_CFPreferencesCopyAppValue=yes
10987 else
10988   gt_cv_func_CFPreferencesCopyAppValue=no
10989 fi
10990 rm -f core conftest.err conftest.$ac_objext \
10991     conftest$ac_exeext conftest.$ac_ext
10992      LIBS="$gt_save_LIBS"
10993 fi
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10995 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10996   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10997
10998 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10999
11000   fi
11001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11002 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
11003 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
11004   $as_echo_n "(cached) " >&6
11005 else
11006   gt_save_LIBS="$LIBS"
11007      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11008      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h.  */
11010 #include <CoreFoundation/CFLocale.h>
11011 int
11012 main ()
11013 {
11014 CFLocaleCopyCurrent();
11015   ;
11016   return 0;
11017 }
11018 _ACEOF
11019 if ac_fn_c_try_link "$LINENO"; then :
11020   gt_cv_func_CFLocaleCopyCurrent=yes
11021 else
11022   gt_cv_func_CFLocaleCopyCurrent=no
11023 fi
11024 rm -f core conftest.err conftest.$ac_objext \
11025     conftest$ac_exeext conftest.$ac_ext
11026      LIBS="$gt_save_LIBS"
11027 fi
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11029 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11030   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11031
11032 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11033
11034   fi
11035   INTL_MACOSX_LIBS=
11036   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11037     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11038   fi
11039
11040
11041
11042
11043
11044
11045   LIBINTL=
11046   LTLIBINTL=
11047   POSUB=
11048
11049     case " $gt_needs " in
11050     *" need-formatstring-macros "*) gt_api_version=3 ;;
11051     *" need-ngettext "*) gt_api_version=2 ;;
11052     *) gt_api_version=1 ;;
11053   esac
11054   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
11055   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
11056
11057     if test "$USE_NLS" = "yes"; then
11058     gt_use_preinstalled_gnugettext=no
11059
11060
11061         if test $gt_api_version -ge 3; then
11062           gt_revision_test_code='
11063 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
11064 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
11065 #endif
11066 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
11067 '
11068         else
11069           gt_revision_test_code=
11070         fi
11071         if test $gt_api_version -ge 2; then
11072           gt_expression_test_code=' + * ngettext ("", "", 0)'
11073         else
11074           gt_expression_test_code=
11075         fi
11076
11077         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
11078 $as_echo_n "checking for GNU gettext in libc... " >&6; }
11079 if eval \${$gt_func_gnugettext_libc+:} false; then :
11080   $as_echo_n "(cached) " >&6
11081 else
11082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h.  */
11084 #include <libintl.h>
11085 $gt_revision_test_code
11086 extern int _nl_msg_cat_cntr;
11087 extern int *_nl_domain_bindings;
11088 int
11089 main ()
11090 {
11091 bindtextdomain ("", "");
11092 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
11093   ;
11094   return 0;
11095 }
11096 _ACEOF
11097 if ac_fn_c_try_link "$LINENO"; then :
11098   eval "$gt_func_gnugettext_libc=yes"
11099 else
11100   eval "$gt_func_gnugettext_libc=no"
11101 fi
11102 rm -f core conftest.err conftest.$ac_objext \
11103     conftest$ac_exeext conftest.$ac_ext
11104 fi
11105 eval ac_res=\$$gt_func_gnugettext_libc
11106                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11107 $as_echo "$ac_res" >&6; }
11108
11109         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
11110
11111
11112
11113
11114
11115           am_save_CPPFLAGS="$CPPFLAGS"
11116
11117   for element in $INCICONV; do
11118     haveit=
11119     for x in $CPPFLAGS; do
11120
11121   acl_save_prefix="$prefix"
11122   prefix="$acl_final_prefix"
11123   acl_save_exec_prefix="$exec_prefix"
11124   exec_prefix="$acl_final_exec_prefix"
11125   eval x=\"$x\"
11126   exec_prefix="$acl_save_exec_prefix"
11127   prefix="$acl_save_prefix"
11128
11129       if test "X$x" = "X$element"; then
11130         haveit=yes
11131         break
11132       fi
11133     done
11134     if test -z "$haveit"; then
11135       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11136     fi
11137   done
11138
11139
11140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11141 $as_echo_n "checking for iconv... " >&6; }
11142 if ${am_cv_func_iconv+:} false; then :
11143   $as_echo_n "(cached) " >&6
11144 else
11145
11146     am_cv_func_iconv="no, consider installing GNU libiconv"
11147     am_cv_lib_iconv=no
11148     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h.  */
11150 #include <stdlib.h>
11151 #include <iconv.h>
11152 int
11153 main ()
11154 {
11155 iconv_t cd = iconv_open("","");
11156        iconv(cd,NULL,NULL,NULL,NULL);
11157        iconv_close(cd);
11158   ;
11159   return 0;
11160 }
11161 _ACEOF
11162 if ac_fn_c_try_link "$LINENO"; then :
11163   am_cv_func_iconv=yes
11164 fi
11165 rm -f core conftest.err conftest.$ac_objext \
11166     conftest$ac_exeext conftest.$ac_ext
11167     if test "$am_cv_func_iconv" != yes; then
11168       am_save_LIBS="$LIBS"
11169       LIBS="$LIBS $LIBICONV"
11170       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h.  */
11172 #include <stdlib.h>
11173 #include <iconv.h>
11174 int
11175 main ()
11176 {
11177 iconv_t cd = iconv_open("","");
11178          iconv(cd,NULL,NULL,NULL,NULL);
11179          iconv_close(cd);
11180   ;
11181   return 0;
11182 }
11183 _ACEOF
11184 if ac_fn_c_try_link "$LINENO"; then :
11185   am_cv_lib_iconv=yes
11186         am_cv_func_iconv=yes
11187 fi
11188 rm -f core conftest.err conftest.$ac_objext \
11189     conftest$ac_exeext conftest.$ac_ext
11190       LIBS="$am_save_LIBS"
11191     fi
11192
11193 fi
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11195 $as_echo "$am_cv_func_iconv" >&6; }
11196   if test "$am_cv_func_iconv" = yes; then
11197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11198 $as_echo_n "checking for working iconv... " >&6; }
11199 if ${am_cv_func_iconv_works+:} false; then :
11200   $as_echo_n "(cached) " >&6
11201 else
11202
11203             am_save_LIBS="$LIBS"
11204       if test $am_cv_lib_iconv = yes; then
11205         LIBS="$LIBS $LIBICONV"
11206       fi
11207       if test "$cross_compiling" = yes; then :
11208   case "$host_os" in
11209            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11210            *)            am_cv_func_iconv_works="guessing yes" ;;
11211          esac
11212 else
11213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h.  */
11215
11216 #include <iconv.h>
11217 #include <string.h>
11218 int main ()
11219 {
11220   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11221      returns.  */
11222   {
11223     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11224     if (cd_utf8_to_88591 != (iconv_t)(-1))
11225       {
11226         static const char input[] = "\342\202\254"; /* EURO SIGN */
11227         char buf[10];
11228         const char *inptr = input;
11229         size_t inbytesleft = strlen (input);
11230         char *outptr = buf;
11231         size_t outbytesleft = sizeof (buf);
11232         size_t res = iconv (cd_utf8_to_88591,
11233                             (char **) &inptr, &inbytesleft,
11234                             &outptr, &outbytesleft);
11235         if (res == 0)
11236           return 1;
11237       }
11238   }
11239   /* Test against Solaris 10 bug: Failures are not distinguishable from
11240      successful returns.  */
11241   {
11242     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11243     if (cd_ascii_to_88591 != (iconv_t)(-1))
11244       {
11245         static const char input[] = "\263";
11246         char buf[10];
11247         const char *inptr = input;
11248         size_t inbytesleft = strlen (input);
11249         char *outptr = buf;
11250         size_t outbytesleft = sizeof (buf);
11251         size_t res = iconv (cd_ascii_to_88591,
11252                             (char **) &inptr, &inbytesleft,
11253                             &outptr, &outbytesleft);
11254         if (res == 0)
11255           return 1;
11256       }
11257   }
11258 #if 0 /* This bug could be worked around by the caller.  */
11259   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
11260   {
11261     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11262     if (cd_88591_to_utf8 != (iconv_t)(-1))
11263       {
11264         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11265         char buf[50];
11266         const char *inptr = input;
11267         size_t inbytesleft = strlen (input);
11268         char *outptr = buf;
11269         size_t outbytesleft = sizeof (buf);
11270         size_t res = iconv (cd_88591_to_utf8,
11271                             (char **) &inptr, &inbytesleft,
11272                             &outptr, &outbytesleft);
11273         if ((int)res > 0)
11274           return 1;
11275       }
11276   }
11277 #endif
11278   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11279      provided.  */
11280   if (/* Try standardized names.  */
11281       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
11282       /* Try IRIX, OSF/1 names.  */
11283       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
11284       /* Try AIX names.  */
11285       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
11286       /* Try HP-UX names.  */
11287       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
11288     return 1;
11289   return 0;
11290 }
11291 _ACEOF
11292 if ac_fn_c_try_run "$LINENO"; then :
11293   am_cv_func_iconv_works=yes
11294 else
11295   am_cv_func_iconv_works=no
11296 fi
11297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11298   conftest.$ac_objext conftest.beam conftest.$ac_ext
11299 fi
11300
11301       LIBS="$am_save_LIBS"
11302
11303 fi
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11305 $as_echo "$am_cv_func_iconv_works" >&6; }
11306     case "$am_cv_func_iconv_works" in
11307       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11308       *)   am_func_iconv=yes ;;
11309     esac
11310   else
11311     am_func_iconv=no am_cv_lib_iconv=no
11312   fi
11313   if test "$am_func_iconv" = yes; then
11314
11315 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11316
11317   fi
11318   if test "$am_cv_lib_iconv" = yes; then
11319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11320 $as_echo_n "checking how to link with libiconv... " >&6; }
11321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11322 $as_echo "$LIBICONV" >&6; }
11323   else
11324             CPPFLAGS="$am_save_CPPFLAGS"
11325     LIBICONV=
11326     LTLIBICONV=
11327   fi
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339     use_additional=yes
11340
11341   acl_save_prefix="$prefix"
11342   prefix="$acl_final_prefix"
11343   acl_save_exec_prefix="$exec_prefix"
11344   exec_prefix="$acl_final_exec_prefix"
11345
11346     eval additional_includedir=\"$includedir\"
11347     eval additional_libdir=\"$libdir\"
11348
11349   exec_prefix="$acl_save_exec_prefix"
11350   prefix="$acl_save_prefix"
11351
11352
11353 # Check whether --with-libintl-prefix was given.
11354 if test "${with_libintl_prefix+set}" = set; then :
11355   withval=$with_libintl_prefix;
11356     if test "X$withval" = "Xno"; then
11357       use_additional=no
11358     else
11359       if test "X$withval" = "X"; then
11360
11361   acl_save_prefix="$prefix"
11362   prefix="$acl_final_prefix"
11363   acl_save_exec_prefix="$exec_prefix"
11364   exec_prefix="$acl_final_exec_prefix"
11365
11366           eval additional_includedir=\"$includedir\"
11367           eval additional_libdir=\"$libdir\"
11368
11369   exec_prefix="$acl_save_exec_prefix"
11370   prefix="$acl_save_prefix"
11371
11372       else
11373         additional_includedir="$withval/include"
11374         additional_libdir="$withval/$acl_libdirstem"
11375         if test "$acl_libdirstem2" != "$acl_libdirstem" \
11376            && ! test -d "$withval/$acl_libdirstem"; then
11377           additional_libdir="$withval/$acl_libdirstem2"
11378         fi
11379       fi
11380     fi
11381
11382 fi
11383
11384       LIBINTL=
11385   LTLIBINTL=
11386   INCINTL=
11387   LIBINTL_PREFIX=
11388       HAVE_LIBINTL=
11389   rpathdirs=
11390   ltrpathdirs=
11391   names_already_handled=
11392   names_next_round='intl '
11393   while test -n "$names_next_round"; do
11394     names_this_round="$names_next_round"
11395     names_next_round=
11396     for name in $names_this_round; do
11397       already_handled=
11398       for n in $names_already_handled; do
11399         if test "$n" = "$name"; then
11400           already_handled=yes
11401           break
11402         fi
11403       done
11404       if test -z "$already_handled"; then
11405         names_already_handled="$names_already_handled $name"
11406                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11407         eval value=\"\$HAVE_LIB$uppername\"
11408         if test -n "$value"; then
11409           if test "$value" = yes; then
11410             eval value=\"\$LIB$uppername\"
11411             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11412             eval value=\"\$LTLIB$uppername\"
11413             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11414           else
11415                                     :
11416           fi
11417         else
11418                               found_dir=
11419           found_la=
11420           found_so=
11421           found_a=
11422           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11423           if test -n "$acl_shlibext"; then
11424             shrext=".$acl_shlibext"             # typically: shrext=.so
11425           else
11426             shrext=
11427           fi
11428           if test $use_additional = yes; then
11429             dir="$additional_libdir"
11430                                     if test -n "$acl_shlibext"; then
11431               if test -f "$dir/$libname$shrext"; then
11432                 found_dir="$dir"
11433                 found_so="$dir/$libname$shrext"
11434               else
11435                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11436                   ver=`(cd "$dir" && \
11437                         for f in "$libname$shrext".*; do echo "$f"; done \
11438                         | sed -e "s,^$libname$shrext\\\\.,," \
11439                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11440                         | sed 1q ) 2>/dev/null`
11441                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11442                     found_dir="$dir"
11443                     found_so="$dir/$libname$shrext.$ver"
11444                   fi
11445                 else
11446                   eval library_names=\"$acl_library_names_spec\"
11447                   for f in $library_names; do
11448                     if test -f "$dir/$f"; then
11449                       found_dir="$dir"
11450                       found_so="$dir/$f"
11451                       break
11452                     fi
11453                   done
11454                 fi
11455               fi
11456             fi
11457                         if test "X$found_dir" = "X"; then
11458               if test -f "$dir/$libname.$acl_libext"; then
11459                 found_dir="$dir"
11460                 found_a="$dir/$libname.$acl_libext"
11461               fi
11462             fi
11463             if test "X$found_dir" != "X"; then
11464               if test -f "$dir/$libname.la"; then
11465                 found_la="$dir/$libname.la"
11466               fi
11467             fi
11468           fi
11469           if test "X$found_dir" = "X"; then
11470             for x in $LDFLAGS $LTLIBINTL; do
11471
11472   acl_save_prefix="$prefix"
11473   prefix="$acl_final_prefix"
11474   acl_save_exec_prefix="$exec_prefix"
11475   exec_prefix="$acl_final_exec_prefix"
11476   eval x=\"$x\"
11477   exec_prefix="$acl_save_exec_prefix"
11478   prefix="$acl_save_prefix"
11479
11480               case "$x" in
11481                 -L*)
11482                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11483                                     if test -n "$acl_shlibext"; then
11484                     if test -f "$dir/$libname$shrext"; then
11485                       found_dir="$dir"
11486                       found_so="$dir/$libname$shrext"
11487                     else
11488                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11489                         ver=`(cd "$dir" && \
11490                               for f in "$libname$shrext".*; do echo "$f"; done \
11491                               | sed -e "s,^$libname$shrext\\\\.,," \
11492                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11493                               | sed 1q ) 2>/dev/null`
11494                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11495                           found_dir="$dir"
11496                           found_so="$dir/$libname$shrext.$ver"
11497                         fi
11498                       else
11499                         eval library_names=\"$acl_library_names_spec\"
11500                         for f in $library_names; do
11501                           if test -f "$dir/$f"; then
11502                             found_dir="$dir"
11503                             found_so="$dir/$f"
11504                             break
11505                           fi
11506                         done
11507                       fi
11508                     fi
11509                   fi
11510                                     if test "X$found_dir" = "X"; then
11511                     if test -f "$dir/$libname.$acl_libext"; then
11512                       found_dir="$dir"
11513                       found_a="$dir/$libname.$acl_libext"
11514                     fi
11515                   fi
11516                   if test "X$found_dir" != "X"; then
11517                     if test -f "$dir/$libname.la"; then
11518                       found_la="$dir/$libname.la"
11519                     fi
11520                   fi
11521                   ;;
11522               esac
11523               if test "X$found_dir" != "X"; then
11524                 break
11525               fi
11526             done
11527           fi
11528           if test "X$found_dir" != "X"; then
11529                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11530             if test "X$found_so" != "X"; then
11531                                                         if test "$enable_rpath" = no \
11532                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11533                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11534                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11535               else
11536                                                                                 haveit=
11537                 for x in $ltrpathdirs; do
11538                   if test "X$x" = "X$found_dir"; then
11539                     haveit=yes
11540                     break
11541                   fi
11542                 done
11543                 if test -z "$haveit"; then
11544                   ltrpathdirs="$ltrpathdirs $found_dir"
11545                 fi
11546                                 if test "$acl_hardcode_direct" = yes; then
11547                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11548                 else
11549                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11550                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11551                                                             haveit=
11552                     for x in $rpathdirs; do
11553                       if test "X$x" = "X$found_dir"; then
11554                         haveit=yes
11555                         break
11556                       fi
11557                     done
11558                     if test -z "$haveit"; then
11559                       rpathdirs="$rpathdirs $found_dir"
11560                     fi
11561                   else
11562                                                                                 haveit=
11563                     for x in $LDFLAGS $LIBINTL; do
11564
11565   acl_save_prefix="$prefix"
11566   prefix="$acl_final_prefix"
11567   acl_save_exec_prefix="$exec_prefix"
11568   exec_prefix="$acl_final_exec_prefix"
11569   eval x=\"$x\"
11570   exec_prefix="$acl_save_exec_prefix"
11571   prefix="$acl_save_prefix"
11572
11573                       if test "X$x" = "X-L$found_dir"; then
11574                         haveit=yes
11575                         break
11576                       fi
11577                     done
11578                     if test -z "$haveit"; then
11579                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11580                     fi
11581                     if test "$acl_hardcode_minus_L" != no; then
11582                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11583                     else
11584                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11585                     fi
11586                   fi
11587                 fi
11588               fi
11589             else
11590               if test "X$found_a" != "X"; then
11591                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11592               else
11593                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11594               fi
11595             fi
11596                         additional_includedir=
11597             case "$found_dir" in
11598               */$acl_libdirstem | */$acl_libdirstem/)
11599                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11600                 if test "$name" = 'intl'; then
11601                   LIBINTL_PREFIX="$basedir"
11602                 fi
11603                 additional_includedir="$basedir/include"
11604                 ;;
11605               */$acl_libdirstem2 | */$acl_libdirstem2/)
11606                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11607                 if test "$name" = 'intl'; then
11608                   LIBINTL_PREFIX="$basedir"
11609                 fi
11610                 additional_includedir="$basedir/include"
11611                 ;;
11612             esac
11613             if test "X$additional_includedir" != "X"; then
11614                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11615                 haveit=
11616                 if test "X$additional_includedir" = "X/usr/local/include"; then
11617                   if test -n "$GCC"; then
11618                     case $host_os in
11619                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11620                     esac
11621                   fi
11622                 fi
11623                 if test -z "$haveit"; then
11624                   for x in $CPPFLAGS $INCINTL; do
11625
11626   acl_save_prefix="$prefix"
11627   prefix="$acl_final_prefix"
11628   acl_save_exec_prefix="$exec_prefix"
11629   exec_prefix="$acl_final_exec_prefix"
11630   eval x=\"$x\"
11631   exec_prefix="$acl_save_exec_prefix"
11632   prefix="$acl_save_prefix"
11633
11634                     if test "X$x" = "X-I$additional_includedir"; then
11635                       haveit=yes
11636                       break
11637                     fi
11638                   done
11639                   if test -z "$haveit"; then
11640                     if test -d "$additional_includedir"; then
11641                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11642                     fi
11643                   fi
11644                 fi
11645               fi
11646             fi
11647                         if test -n "$found_la"; then
11648                                                         save_libdir="$libdir"
11649               case "$found_la" in
11650                 */* | *\\*) . "$found_la" ;;
11651                 *) . "./$found_la" ;;
11652               esac
11653               libdir="$save_libdir"
11654                             for dep in $dependency_libs; do
11655                 case "$dep" in
11656                   -L*)
11657                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11658                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11659                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11660                       haveit=
11661                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11662                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11663                         if test -n "$GCC"; then
11664                           case $host_os in
11665                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11666                           esac
11667                         fi
11668                       fi
11669                       if test -z "$haveit"; then
11670                         haveit=
11671                         for x in $LDFLAGS $LIBINTL; do
11672
11673   acl_save_prefix="$prefix"
11674   prefix="$acl_final_prefix"
11675   acl_save_exec_prefix="$exec_prefix"
11676   exec_prefix="$acl_final_exec_prefix"
11677   eval x=\"$x\"
11678   exec_prefix="$acl_save_exec_prefix"
11679   prefix="$acl_save_prefix"
11680
11681                           if test "X$x" = "X-L$additional_libdir"; then
11682                             haveit=yes
11683                             break
11684                           fi
11685                         done
11686                         if test -z "$haveit"; then
11687                           if test -d "$additional_libdir"; then
11688                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11689                           fi
11690                         fi
11691                         haveit=
11692                         for x in $LDFLAGS $LTLIBINTL; do
11693
11694   acl_save_prefix="$prefix"
11695   prefix="$acl_final_prefix"
11696   acl_save_exec_prefix="$exec_prefix"
11697   exec_prefix="$acl_final_exec_prefix"
11698   eval x=\"$x\"
11699   exec_prefix="$acl_save_exec_prefix"
11700   prefix="$acl_save_prefix"
11701
11702                           if test "X$x" = "X-L$additional_libdir"; then
11703                             haveit=yes
11704                             break
11705                           fi
11706                         done
11707                         if test -z "$haveit"; then
11708                           if test -d "$additional_libdir"; then
11709                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11710                           fi
11711                         fi
11712                       fi
11713                     fi
11714                     ;;
11715                   -R*)
11716                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11717                     if test "$enable_rpath" != no; then
11718                                                                   haveit=
11719                       for x in $rpathdirs; do
11720                         if test "X$x" = "X$dir"; then
11721                           haveit=yes
11722                           break
11723                         fi
11724                       done
11725                       if test -z "$haveit"; then
11726                         rpathdirs="$rpathdirs $dir"
11727                       fi
11728                                                                   haveit=
11729                       for x in $ltrpathdirs; do
11730                         if test "X$x" = "X$dir"; then
11731                           haveit=yes
11732                           break
11733                         fi
11734                       done
11735                       if test -z "$haveit"; then
11736                         ltrpathdirs="$ltrpathdirs $dir"
11737                       fi
11738                     fi
11739                     ;;
11740                   -l*)
11741                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11742                     ;;
11743                   *.la)
11744                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11745                     ;;
11746                   *)
11747                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11748                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11749                     ;;
11750                 esac
11751               done
11752             fi
11753           else
11754                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11755             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11756           fi
11757         fi
11758       fi
11759     done
11760   done
11761   if test "X$rpathdirs" != "X"; then
11762     if test -n "$acl_hardcode_libdir_separator"; then
11763                         alldirs=
11764       for found_dir in $rpathdirs; do
11765         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11766       done
11767             acl_save_libdir="$libdir"
11768       libdir="$alldirs"
11769       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11770       libdir="$acl_save_libdir"
11771       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11772     else
11773             for found_dir in $rpathdirs; do
11774         acl_save_libdir="$libdir"
11775         libdir="$found_dir"
11776         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11777         libdir="$acl_save_libdir"
11778         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11779       done
11780     fi
11781   fi
11782   if test "X$ltrpathdirs" != "X"; then
11783             for found_dir in $ltrpathdirs; do
11784       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11785     done
11786   fi
11787
11788
11789
11790
11791
11792
11793           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11794 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11795 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11796   $as_echo_n "(cached) " >&6
11797 else
11798   gt_save_CPPFLAGS="$CPPFLAGS"
11799             CPPFLAGS="$CPPFLAGS $INCINTL"
11800             gt_save_LIBS="$LIBS"
11801             LIBS="$LIBS $LIBINTL"
11802                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h.  */
11804 #include <libintl.h>
11805 $gt_revision_test_code
11806 extern int _nl_msg_cat_cntr;
11807 extern
11808 #ifdef __cplusplus
11809 "C"
11810 #endif
11811 const char *_nl_expand_alias (const char *);
11812 int
11813 main ()
11814 {
11815 bindtextdomain ("", "");
11816 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11817   ;
11818   return 0;
11819 }
11820 _ACEOF
11821 if ac_fn_c_try_link "$LINENO"; then :
11822   eval "$gt_func_gnugettext_libintl=yes"
11823 else
11824   eval "$gt_func_gnugettext_libintl=no"
11825 fi
11826 rm -f core conftest.err conftest.$ac_objext \
11827     conftest$ac_exeext conftest.$ac_ext
11828                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11829               LIBS="$LIBS $LIBICONV"
11830               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11831 /* end confdefs.h.  */
11832 #include <libintl.h>
11833 $gt_revision_test_code
11834 extern int _nl_msg_cat_cntr;
11835 extern
11836 #ifdef __cplusplus
11837 "C"
11838 #endif
11839 const char *_nl_expand_alias (const char *);
11840 int
11841 main ()
11842 {
11843 bindtextdomain ("", "");
11844 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11845   ;
11846   return 0;
11847 }
11848 _ACEOF
11849 if ac_fn_c_try_link "$LINENO"; then :
11850   LIBINTL="$LIBINTL $LIBICONV"
11851                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11852                 eval "$gt_func_gnugettext_libintl=yes"
11853
11854 fi
11855 rm -f core conftest.err conftest.$ac_objext \
11856     conftest$ac_exeext conftest.$ac_ext
11857             fi
11858             CPPFLAGS="$gt_save_CPPFLAGS"
11859             LIBS="$gt_save_LIBS"
11860 fi
11861 eval ac_res=\$$gt_func_gnugettext_libintl
11862                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11863 $as_echo "$ac_res" >&6; }
11864         fi
11865
11866                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11867            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11868                 && test "$PACKAGE" != gettext-runtime \
11869                 && test "$PACKAGE" != gettext-tools; }; then
11870           gt_use_preinstalled_gnugettext=yes
11871         else
11872                     LIBINTL=
11873           LTLIBINTL=
11874           INCINTL=
11875         fi
11876
11877
11878
11879     if test -n "$INTL_MACOSX_LIBS"; then
11880       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11881          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11882                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11883         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11884       fi
11885     fi
11886
11887     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11888        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11889
11890 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11891
11892     else
11893       USE_NLS=no
11894     fi
11895   fi
11896
11897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11898 $as_echo_n "checking whether to use NLS... " >&6; }
11899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11900 $as_echo "$USE_NLS" >&6; }
11901   if test "$USE_NLS" = "yes"; then
11902     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11903 $as_echo_n "checking where the gettext function comes from... " >&6; }
11904     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11905       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11906         gt_source="external libintl"
11907       else
11908         gt_source="libc"
11909       fi
11910     else
11911       gt_source="included intl directory"
11912     fi
11913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11914 $as_echo "$gt_source" >&6; }
11915   fi
11916
11917   if test "$USE_NLS" = "yes"; then
11918
11919     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11920       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11921         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11922 $as_echo_n "checking how to link with libintl... " >&6; }
11923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11924 $as_echo "$LIBINTL" >&6; }
11925
11926   for element in $INCINTL; do
11927     haveit=
11928     for x in $CPPFLAGS; do
11929
11930   acl_save_prefix="$prefix"
11931   prefix="$acl_final_prefix"
11932   acl_save_exec_prefix="$exec_prefix"
11933   exec_prefix="$acl_final_exec_prefix"
11934   eval x=\"$x\"
11935   exec_prefix="$acl_save_exec_prefix"
11936   prefix="$acl_save_prefix"
11937
11938       if test "X$x" = "X$element"; then
11939         haveit=yes
11940         break
11941       fi
11942     done
11943     if test -z "$haveit"; then
11944       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11945     fi
11946   done
11947
11948       fi
11949
11950
11951 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11952
11953
11954 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11955
11956     fi
11957
11958         POSUB=po
11959   fi
11960
11961
11962
11963     INTLLIBS="$LIBINTL"
11964
11965
11966
11967
11968
11969
11970
11971
11972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11973 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11974 if ${ac_cv_c_bigendian+:} false; then :
11975   $as_echo_n "(cached) " >&6
11976 else
11977   ac_cv_c_bigendian=unknown
11978     # See if we're dealing with a universal compiler.
11979     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h.  */
11981 #ifndef __APPLE_CC__
11982                not a universal capable compiler
11983              #endif
11984              typedef int dummy;
11985
11986 _ACEOF
11987 if ac_fn_c_try_compile "$LINENO"; then :
11988
11989         # Check for potential -arch flags.  It is not universal unless
11990         # there are at least two -arch flags with different values.
11991         ac_arch=
11992         ac_prev=
11993         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11994          if test -n "$ac_prev"; then
11995            case $ac_word in
11996              i?86 | x86_64 | ppc | ppc64)
11997                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11998                  ac_arch=$ac_word
11999                else
12000                  ac_cv_c_bigendian=universal
12001                  break
12002                fi
12003                ;;
12004            esac
12005            ac_prev=
12006          elif test "x$ac_word" = "x-arch"; then
12007            ac_prev=arch
12008          fi
12009        done
12010 fi
12011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012     if test $ac_cv_c_bigendian = unknown; then
12013       # See if sys/param.h defines the BYTE_ORDER macro.
12014       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h.  */
12016 #include <sys/types.h>
12017              #include <sys/param.h>
12018
12019 int
12020 main ()
12021 {
12022 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12023                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12024                      && LITTLE_ENDIAN)
12025               bogus endian macros
12026              #endif
12027
12028   ;
12029   return 0;
12030 }
12031 _ACEOF
12032 if ac_fn_c_try_compile "$LINENO"; then :
12033   # It does; now see whether it defined to BIG_ENDIAN or not.
12034          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h.  */
12036 #include <sys/types.h>
12037                 #include <sys/param.h>
12038
12039 int
12040 main ()
12041 {
12042 #if BYTE_ORDER != BIG_ENDIAN
12043                  not big endian
12044                 #endif
12045
12046   ;
12047   return 0;
12048 }
12049 _ACEOF
12050 if ac_fn_c_try_compile "$LINENO"; then :
12051   ac_cv_c_bigendian=yes
12052 else
12053   ac_cv_c_bigendian=no
12054 fi
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 fi
12057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12058     fi
12059     if test $ac_cv_c_bigendian = unknown; then
12060       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12061       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h.  */
12063 #include <limits.h>
12064
12065 int
12066 main ()
12067 {
12068 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12069               bogus endian macros
12070              #endif
12071
12072   ;
12073   return 0;
12074 }
12075 _ACEOF
12076 if ac_fn_c_try_compile "$LINENO"; then :
12077   # It does; now see whether it defined to _BIG_ENDIAN or not.
12078          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h.  */
12080 #include <limits.h>
12081
12082 int
12083 main ()
12084 {
12085 #ifndef _BIG_ENDIAN
12086                  not big endian
12087                 #endif
12088
12089   ;
12090   return 0;
12091 }
12092 _ACEOF
12093 if ac_fn_c_try_compile "$LINENO"; then :
12094   ac_cv_c_bigendian=yes
12095 else
12096   ac_cv_c_bigendian=no
12097 fi
12098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12099 fi
12100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12101     fi
12102     if test $ac_cv_c_bigendian = unknown; then
12103       # Compile a test program.
12104       if test "$cross_compiling" = yes; then :
12105   # Try to guess by grepping values from an object file.
12106          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h.  */
12108 short int ascii_mm[] =
12109                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12110                 short int ascii_ii[] =
12111                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12112                 int use_ascii (int i) {
12113                   return ascii_mm[i] + ascii_ii[i];
12114                 }
12115                 short int ebcdic_ii[] =
12116                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12117                 short int ebcdic_mm[] =
12118                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12119                 int use_ebcdic (int i) {
12120                   return ebcdic_mm[i] + ebcdic_ii[i];
12121                 }
12122                 extern int foo;
12123
12124 int
12125 main ()
12126 {
12127 return use_ascii (foo) == use_ebcdic (foo);
12128   ;
12129   return 0;
12130 }
12131 _ACEOF
12132 if ac_fn_c_try_compile "$LINENO"; then :
12133   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12134               ac_cv_c_bigendian=yes
12135             fi
12136             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12137               if test "$ac_cv_c_bigendian" = unknown; then
12138                 ac_cv_c_bigendian=no
12139               else
12140                 # finding both strings is unlikely to happen, but who knows?
12141                 ac_cv_c_bigendian=unknown
12142               fi
12143             fi
12144 fi
12145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146 else
12147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h.  */
12149 $ac_includes_default
12150 int
12151 main ()
12152 {
12153
12154              /* Are we little or big endian?  From Harbison&Steele.  */
12155              union
12156              {
12157                long int l;
12158                char c[sizeof (long int)];
12159              } u;
12160              u.l = 1;
12161              return u.c[sizeof (long int) - 1] == 1;
12162
12163   ;
12164   return 0;
12165 }
12166 _ACEOF
12167 if ac_fn_c_try_run "$LINENO"; then :
12168   ac_cv_c_bigendian=no
12169 else
12170   ac_cv_c_bigendian=yes
12171 fi
12172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12173   conftest.$ac_objext conftest.beam conftest.$ac_ext
12174 fi
12175
12176     fi
12177 fi
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12179 $as_echo "$ac_cv_c_bigendian" >&6; }
12180  case $ac_cv_c_bigendian in #(
12181    yes)
12182      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12183 ;; #(
12184    no)
12185       ;; #(
12186    universal)
12187
12188 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12189
12190      ;; #(
12191    *)
12192      as_fn_error $? "unknown endianness
12193  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12194  esac
12195
12196
12197 for ac_func in secure_getenv fork inet_ntop inet_pton getrusage getpwuid_r nanosleep daemon getpid clock_gettime iconv localtime vasprintf
12198 do :
12199   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12200 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12201 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12202   cat >>confdefs.h <<_ACEOF
12203 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12204 _ACEOF
12205
12206 fi
12207 done
12208
12209 if test "$ac_cv_func_vasprintf" != "yes";then
12210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
12211 $as_echo_n "checking for va_copy... " >&6; }
12212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h.  */
12214
12215         #include <stdarg.h>
12216         va_list a;
12217 int
12218 main ()
12219 {
12220
12221         va_list b;
12222         va_copy(b,a);
12223         va_end(b);
12224   ;
12225   return 0;
12226 }
12227 _ACEOF
12228 if ac_fn_c_try_link "$LINENO"; then :
12229
12230 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
12231
12232         { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
12233 $as_echo "va_copy" >&6; }
12234 else
12235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h.  */
12237
12238                 #include <stdarg.h>
12239                 va_list a;
12240 int
12241 main ()
12242 {
12243
12244                 va_list b;
12245                 __va_copy(b,a);
12246                 va_end(b);
12247   ;
12248   return 0;
12249 }
12250 _ACEOF
12251 if ac_fn_c_try_link "$LINENO"; then :
12252
12253 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
12254
12255                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
12256 $as_echo "__va_copy" >&6; }
12257 else
12258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12260                 as_fn_error $? "Your system lacks vasprintf() and va_copy()" "$LINENO" 5
12261 fi
12262 rm -f core conftest.err conftest.$ac_objext \
12263     conftest$ac_exeext conftest.$ac_ext
12264
12265 fi
12266 rm -f core conftest.err conftest.$ac_objext \
12267     conftest$ac_exeext conftest.$ac_ext
12268 fi
12269
12270  if test "$ac_cv_func_fork" != "no"; then
12271   HAVE_FORK_TRUE=
12272   HAVE_FORK_FALSE='#'
12273 else
12274   HAVE_FORK_TRUE='#'
12275   HAVE_FORK_FALSE=
12276 fi
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292     use_additional=yes
12293
12294   acl_save_prefix="$prefix"
12295   prefix="$acl_final_prefix"
12296   acl_save_exec_prefix="$exec_prefix"
12297   exec_prefix="$acl_final_exec_prefix"
12298
12299     eval additional_includedir=\"$includedir\"
12300     eval additional_libdir=\"$libdir\"
12301
12302   exec_prefix="$acl_save_exec_prefix"
12303   prefix="$acl_save_prefix"
12304
12305
12306 # Check whether --with-librt-prefix was given.
12307 if test "${with_librt_prefix+set}" = set; then :
12308   withval=$with_librt_prefix;
12309     if test "X$withval" = "Xno"; then
12310       use_additional=no
12311     else
12312       if test "X$withval" = "X"; then
12313
12314   acl_save_prefix="$prefix"
12315   prefix="$acl_final_prefix"
12316   acl_save_exec_prefix="$exec_prefix"
12317   exec_prefix="$acl_final_exec_prefix"
12318
12319           eval additional_includedir=\"$includedir\"
12320           eval additional_libdir=\"$libdir\"
12321
12322   exec_prefix="$acl_save_exec_prefix"
12323   prefix="$acl_save_prefix"
12324
12325       else
12326         additional_includedir="$withval/include"
12327         additional_libdir="$withval/$acl_libdirstem"
12328         if test "$acl_libdirstem2" != "$acl_libdirstem" \
12329            && ! test -d "$withval/$acl_libdirstem"; then
12330           additional_libdir="$withval/$acl_libdirstem2"
12331         fi
12332       fi
12333     fi
12334
12335 fi
12336
12337       LIBRT=
12338   LTLIBRT=
12339   INCRT=
12340   LIBRT_PREFIX=
12341       HAVE_LIBRT=
12342   rpathdirs=
12343   ltrpathdirs=
12344   names_already_handled=
12345   names_next_round='rt '
12346   while test -n "$names_next_round"; do
12347     names_this_round="$names_next_round"
12348     names_next_round=
12349     for name in $names_this_round; do
12350       already_handled=
12351       for n in $names_already_handled; do
12352         if test "$n" = "$name"; then
12353           already_handled=yes
12354           break
12355         fi
12356       done
12357       if test -z "$already_handled"; then
12358         names_already_handled="$names_already_handled $name"
12359                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12360         eval value=\"\$HAVE_LIB$uppername\"
12361         if test -n "$value"; then
12362           if test "$value" = yes; then
12363             eval value=\"\$LIB$uppername\"
12364             test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
12365             eval value=\"\$LTLIB$uppername\"
12366             test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
12367           else
12368                                     :
12369           fi
12370         else
12371                               found_dir=
12372           found_la=
12373           found_so=
12374           found_a=
12375           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12376           if test -n "$acl_shlibext"; then
12377             shrext=".$acl_shlibext"             # typically: shrext=.so
12378           else
12379             shrext=
12380           fi
12381           if test $use_additional = yes; then
12382             dir="$additional_libdir"
12383                                     if test -n "$acl_shlibext"; then
12384               if test -f "$dir/$libname$shrext"; then
12385                 found_dir="$dir"
12386                 found_so="$dir/$libname$shrext"
12387               else
12388                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12389                   ver=`(cd "$dir" && \
12390                         for f in "$libname$shrext".*; do echo "$f"; done \
12391                         | sed -e "s,^$libname$shrext\\\\.,," \
12392                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12393                         | sed 1q ) 2>/dev/null`
12394                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12395                     found_dir="$dir"
12396                     found_so="$dir/$libname$shrext.$ver"
12397                   fi
12398                 else
12399                   eval library_names=\"$acl_library_names_spec\"
12400                   for f in $library_names; do
12401                     if test -f "$dir/$f"; then
12402                       found_dir="$dir"
12403                       found_so="$dir/$f"
12404                       break
12405                     fi
12406                   done
12407                 fi
12408               fi
12409             fi
12410                         if test "X$found_dir" = "X"; then
12411               if test -f "$dir/$libname.$acl_libext"; then
12412                 found_dir="$dir"
12413                 found_a="$dir/$libname.$acl_libext"
12414               fi
12415             fi
12416             if test "X$found_dir" != "X"; then
12417               if test -f "$dir/$libname.la"; then
12418                 found_la="$dir/$libname.la"
12419               fi
12420             fi
12421           fi
12422           if test "X$found_dir" = "X"; then
12423             for x in $LDFLAGS $LTLIBRT; do
12424
12425   acl_save_prefix="$prefix"
12426   prefix="$acl_final_prefix"
12427   acl_save_exec_prefix="$exec_prefix"
12428   exec_prefix="$acl_final_exec_prefix"
12429   eval x=\"$x\"
12430   exec_prefix="$acl_save_exec_prefix"
12431   prefix="$acl_save_prefix"
12432
12433               case "$x" in
12434                 -L*)
12435                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12436                                     if test -n "$acl_shlibext"; then
12437                     if test -f "$dir/$libname$shrext"; then
12438                       found_dir="$dir"
12439                       found_so="$dir/$libname$shrext"
12440                     else
12441                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12442                         ver=`(cd "$dir" && \
12443                               for f in "$libname$shrext".*; do echo "$f"; done \
12444                               | sed -e "s,^$libname$shrext\\\\.,," \
12445                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12446                               | sed 1q ) 2>/dev/null`
12447                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12448                           found_dir="$dir"
12449                           found_so="$dir/$libname$shrext.$ver"
12450                         fi
12451                       else
12452                         eval library_names=\"$acl_library_names_spec\"
12453                         for f in $library_names; do
12454                           if test -f "$dir/$f"; then
12455                             found_dir="$dir"
12456                             found_so="$dir/$f"
12457                             break
12458                           fi
12459                         done
12460                       fi
12461                     fi
12462                   fi
12463                                     if test "X$found_dir" = "X"; then
12464                     if test -f "$dir/$libname.$acl_libext"; then
12465                       found_dir="$dir"
12466                       found_a="$dir/$libname.$acl_libext"
12467                     fi
12468                   fi
12469                   if test "X$found_dir" != "X"; then
12470                     if test -f "$dir/$libname.la"; then
12471                       found_la="$dir/$libname.la"
12472                     fi
12473                   fi
12474                   ;;
12475               esac
12476               if test "X$found_dir" != "X"; then
12477                 break
12478               fi
12479             done
12480           fi
12481           if test "X$found_dir" != "X"; then
12482                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
12483             if test "X$found_so" != "X"; then
12484                                                         if test "$enable_rpath" = no \
12485                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12486                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12487                                 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
12488               else
12489                                                                                 haveit=
12490                 for x in $ltrpathdirs; do
12491                   if test "X$x" = "X$found_dir"; then
12492                     haveit=yes
12493                     break
12494                   fi
12495                 done
12496                 if test -z "$haveit"; then
12497                   ltrpathdirs="$ltrpathdirs $found_dir"
12498                 fi
12499                                 if test "$acl_hardcode_direct" = yes; then
12500                                                       LIBRT="${LIBRT}${LIBRT:+ }$found_so"
12501                 else
12502                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12503                                                             LIBRT="${LIBRT}${LIBRT:+ }$found_so"
12504                                                             haveit=
12505                     for x in $rpathdirs; do
12506                       if test "X$x" = "X$found_dir"; then
12507                         haveit=yes
12508                         break
12509                       fi
12510                     done
12511                     if test -z "$haveit"; then
12512                       rpathdirs="$rpathdirs $found_dir"
12513                     fi
12514                   else
12515                                                                                 haveit=
12516                     for x in $LDFLAGS $LIBRT; do
12517
12518   acl_save_prefix="$prefix"
12519   prefix="$acl_final_prefix"
12520   acl_save_exec_prefix="$exec_prefix"
12521   exec_prefix="$acl_final_exec_prefix"
12522   eval x=\"$x\"
12523   exec_prefix="$acl_save_exec_prefix"
12524   prefix="$acl_save_prefix"
12525
12526                       if test "X$x" = "X-L$found_dir"; then
12527                         haveit=yes
12528                         break
12529                       fi
12530                     done
12531                     if test -z "$haveit"; then
12532                       LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
12533                     fi
12534                     if test "$acl_hardcode_minus_L" != no; then
12535                                                                                         LIBRT="${LIBRT}${LIBRT:+ }$found_so"
12536                     else
12537                                                                                                                                                                                 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
12538                     fi
12539                   fi
12540                 fi
12541               fi
12542             else
12543               if test "X$found_a" != "X"; then
12544                                 LIBRT="${LIBRT}${LIBRT:+ }$found_a"
12545               else
12546                                                 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
12547               fi
12548             fi
12549                         additional_includedir=
12550             case "$found_dir" in
12551               */$acl_libdirstem | */$acl_libdirstem/)
12552                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12553                 if test "$name" = 'rt'; then
12554                   LIBRT_PREFIX="$basedir"
12555                 fi
12556                 additional_includedir="$basedir/include"
12557                 ;;
12558               */$acl_libdirstem2 | */$acl_libdirstem2/)
12559                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12560                 if test "$name" = 'rt'; then
12561                   LIBRT_PREFIX="$basedir"
12562                 fi
12563                 additional_includedir="$basedir/include"
12564                 ;;
12565             esac
12566             if test "X$additional_includedir" != "X"; then
12567                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12568                 haveit=
12569                 if test "X$additional_includedir" = "X/usr/local/include"; then
12570                   if test -n "$GCC"; then
12571                     case $host_os in
12572                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12573                     esac
12574                   fi
12575                 fi
12576                 if test -z "$haveit"; then
12577                   for x in $CPPFLAGS $INCRT; do
12578
12579   acl_save_prefix="$prefix"
12580   prefix="$acl_final_prefix"
12581   acl_save_exec_prefix="$exec_prefix"
12582   exec_prefix="$acl_final_exec_prefix"
12583   eval x=\"$x\"
12584   exec_prefix="$acl_save_exec_prefix"
12585   prefix="$acl_save_prefix"
12586
12587                     if test "X$x" = "X-I$additional_includedir"; then
12588                       haveit=yes
12589                       break
12590                     fi
12591                   done
12592                   if test -z "$haveit"; then
12593                     if test -d "$additional_includedir"; then
12594                                             INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
12595                     fi
12596                   fi
12597                 fi
12598               fi
12599             fi
12600                         if test -n "$found_la"; then
12601                                                         save_libdir="$libdir"
12602               case "$found_la" in
12603                 */* | *\\*) . "$found_la" ;;
12604                 *) . "./$found_la" ;;
12605               esac
12606               libdir="$save_libdir"
12607                             for dep in $dependency_libs; do
12608                 case "$dep" in
12609                   -L*)
12610                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12611                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12612                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12613                       haveit=
12614                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12615                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12616                         if test -n "$GCC"; then
12617                           case $host_os in
12618                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12619                           esac
12620                         fi
12621                       fi
12622                       if test -z "$haveit"; then
12623                         haveit=
12624                         for x in $LDFLAGS $LIBRT; do
12625
12626   acl_save_prefix="$prefix"
12627   prefix="$acl_final_prefix"
12628   acl_save_exec_prefix="$exec_prefix"
12629   exec_prefix="$acl_final_exec_prefix"
12630   eval x=\"$x\"
12631   exec_prefix="$acl_save_exec_prefix"
12632   prefix="$acl_save_prefix"
12633
12634                           if test "X$x" = "X-L$additional_libdir"; then
12635                             haveit=yes
12636                             break
12637                           fi
12638                         done
12639                         if test -z "$haveit"; then
12640                           if test -d "$additional_libdir"; then
12641                                                         LIBRT="${LIBRT}${LIBRT:+ }-L$additional_libdir"
12642                           fi
12643                         fi
12644                         haveit=
12645                         for x in $LDFLAGS $LTLIBRT; do
12646
12647   acl_save_prefix="$prefix"
12648   prefix="$acl_final_prefix"
12649   acl_save_exec_prefix="$exec_prefix"
12650   exec_prefix="$acl_final_exec_prefix"
12651   eval x=\"$x\"
12652   exec_prefix="$acl_save_exec_prefix"
12653   prefix="$acl_save_prefix"
12654
12655                           if test "X$x" = "X-L$additional_libdir"; then
12656                             haveit=yes
12657                             break
12658                           fi
12659                         done
12660                         if test -z "$haveit"; then
12661                           if test -d "$additional_libdir"; then
12662                                                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$additional_libdir"
12663                           fi
12664                         fi
12665                       fi
12666                     fi
12667                     ;;
12668                   -R*)
12669                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12670                     if test "$enable_rpath" != no; then
12671                                                                   haveit=
12672                       for x in $rpathdirs; do
12673                         if test "X$x" = "X$dir"; then
12674                           haveit=yes
12675                           break
12676                         fi
12677                       done
12678                       if test -z "$haveit"; then
12679                         rpathdirs="$rpathdirs $dir"
12680                       fi
12681                                                                   haveit=
12682                       for x in $ltrpathdirs; do
12683                         if test "X$x" = "X$dir"; then
12684                           haveit=yes
12685                           break
12686                         fi
12687                       done
12688                       if test -z "$haveit"; then
12689                         ltrpathdirs="$ltrpathdirs $dir"
12690                       fi
12691                     fi
12692                     ;;
12693                   -l*)
12694                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12695                     ;;
12696                   *.la)
12697                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12698                     ;;
12699                   *)
12700                                         LIBRT="${LIBRT}${LIBRT:+ }$dep"
12701                     LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
12702                     ;;
12703                 esac
12704               done
12705             fi
12706           else
12707                                                             LIBRT="${LIBRT}${LIBRT:+ }-l$name"
12708             LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
12709           fi
12710         fi
12711       fi
12712     done
12713   done
12714   if test "X$rpathdirs" != "X"; then
12715     if test -n "$acl_hardcode_libdir_separator"; then
12716                         alldirs=
12717       for found_dir in $rpathdirs; do
12718         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12719       done
12720             acl_save_libdir="$libdir"
12721       libdir="$alldirs"
12722       eval flag=\"$acl_hardcode_libdir_flag_spec\"
12723       libdir="$acl_save_libdir"
12724       LIBRT="${LIBRT}${LIBRT:+ }$flag"
12725     else
12726             for found_dir in $rpathdirs; do
12727         acl_save_libdir="$libdir"
12728         libdir="$found_dir"
12729         eval flag=\"$acl_hardcode_libdir_flag_spec\"
12730         libdir="$acl_save_libdir"
12731         LIBRT="${LIBRT}${LIBRT:+ }$flag"
12732       done
12733     fi
12734   fi
12735   if test "X$ltrpathdirs" != "X"; then
12736             for found_dir in $ltrpathdirs; do
12737       LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
12738     done
12739   fi
12740
12741
12742
12743
12744
12745
12746
12747         ac_save_CPPFLAGS="$CPPFLAGS"
12748
12749   for element in $INCRT; do
12750     haveit=
12751     for x in $CPPFLAGS; do
12752
12753   acl_save_prefix="$prefix"
12754   prefix="$acl_final_prefix"
12755   acl_save_exec_prefix="$exec_prefix"
12756   exec_prefix="$acl_final_exec_prefix"
12757   eval x=\"$x\"
12758   exec_prefix="$acl_save_exec_prefix"
12759   prefix="$acl_save_prefix"
12760
12761       if test "X$x" = "X$element"; then
12762         haveit=yes
12763         break
12764       fi
12765     done
12766     if test -z "$haveit"; then
12767       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12768     fi
12769   done
12770
12771
12772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
12773 $as_echo_n "checking for librt... " >&6; }
12774 if ${ac_cv_librt+:} false; then :
12775   $as_echo_n "(cached) " >&6
12776 else
12777
12778     ac_save_LIBS="$LIBS"
12779                                 case " $LIBRT" in
12780       *" -l"*) LIBS="$LIBS $LIBRT" ;;
12781       *)       LIBS="$LIBRT $LIBS" ;;
12782     esac
12783     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h.  */
12785 #include <time.h>
12786 #include <signal.h>
12787
12788 int
12789 main ()
12790 {
12791 timer_create (0,0,0);
12792   ;
12793   return 0;
12794 }
12795 _ACEOF
12796 if ac_fn_c_try_link "$LINENO"; then :
12797   ac_cv_librt=yes
12798 else
12799   ac_cv_librt='no'
12800 fi
12801 rm -f core conftest.err conftest.$ac_objext \
12802     conftest$ac_exeext conftest.$ac_ext
12803     LIBS="$ac_save_LIBS"
12804
12805 fi
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
12807 $as_echo "$ac_cv_librt" >&6; }
12808   if test "$ac_cv_librt" = yes; then
12809     HAVE_LIBRT=yes
12810
12811 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
12812
12813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
12814 $as_echo_n "checking how to link with librt... " >&6; }
12815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
12816 $as_echo "$LIBRT" >&6; }
12817   else
12818     HAVE_LIBRT=no
12819             CPPFLAGS="$ac_save_CPPFLAGS"
12820     LIBRT=
12821     LTLIBRT=
12822     LIBRT_PREFIX=
12823   fi
12824
12825
12826
12827
12828
12829
12830
12831
12832 if test "$have_win" != "yes";then
12833   for ac_func in pthread_mutex_lock
12834 do :
12835   ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
12836 if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then :
12837   cat >>confdefs.h <<_ACEOF
12838 #define HAVE_PTHREAD_MUTEX_LOCK 1
12839 _ACEOF
12840
12841 fi
12842 done
12843
12844   if test "$ac_cv_func_pthread_mutex_lock" != "yes";then
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858     use_additional=yes
12859
12860   acl_save_prefix="$prefix"
12861   prefix="$acl_final_prefix"
12862   acl_save_exec_prefix="$exec_prefix"
12863   exec_prefix="$acl_final_exec_prefix"
12864
12865     eval additional_includedir=\"$includedir\"
12866     eval additional_libdir=\"$libdir\"
12867
12868   exec_prefix="$acl_save_exec_prefix"
12869   prefix="$acl_save_prefix"
12870
12871
12872 # Check whether --with-libpthread-prefix was given.
12873 if test "${with_libpthread_prefix+set}" = set; then :
12874   withval=$with_libpthread_prefix;
12875     if test "X$withval" = "Xno"; then
12876       use_additional=no
12877     else
12878       if test "X$withval" = "X"; then
12879
12880   acl_save_prefix="$prefix"
12881   prefix="$acl_final_prefix"
12882   acl_save_exec_prefix="$exec_prefix"
12883   exec_prefix="$acl_final_exec_prefix"
12884
12885           eval additional_includedir=\"$includedir\"
12886           eval additional_libdir=\"$libdir\"
12887
12888   exec_prefix="$acl_save_exec_prefix"
12889   prefix="$acl_save_prefix"
12890
12891       else
12892         additional_includedir="$withval/include"
12893         additional_libdir="$withval/$acl_libdirstem"
12894         if test "$acl_libdirstem2" != "$acl_libdirstem" \
12895            && ! test -d "$withval/$acl_libdirstem"; then
12896           additional_libdir="$withval/$acl_libdirstem2"
12897         fi
12898       fi
12899     fi
12900
12901 fi
12902
12903       LIBPTHREAD=
12904   LTLIBPTHREAD=
12905   INCPTHREAD=
12906   LIBPTHREAD_PREFIX=
12907       HAVE_LIBPTHREAD=
12908   rpathdirs=
12909   ltrpathdirs=
12910   names_already_handled=
12911   names_next_round='pthread '
12912   while test -n "$names_next_round"; do
12913     names_this_round="$names_next_round"
12914     names_next_round=
12915     for name in $names_this_round; do
12916       already_handled=
12917       for n in $names_already_handled; do
12918         if test "$n" = "$name"; then
12919           already_handled=yes
12920           break
12921         fi
12922       done
12923       if test -z "$already_handled"; then
12924         names_already_handled="$names_already_handled $name"
12925                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12926         eval value=\"\$HAVE_LIB$uppername\"
12927         if test -n "$value"; then
12928           if test "$value" = yes; then
12929             eval value=\"\$LIB$uppername\"
12930             test -z "$value" || LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$value"
12931             eval value=\"\$LTLIB$uppername\"
12932             test -z "$value" || LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$value"
12933           else
12934                                     :
12935           fi
12936         else
12937                               found_dir=
12938           found_la=
12939           found_so=
12940           found_a=
12941           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12942           if test -n "$acl_shlibext"; then
12943             shrext=".$acl_shlibext"             # typically: shrext=.so
12944           else
12945             shrext=
12946           fi
12947           if test $use_additional = yes; then
12948             dir="$additional_libdir"
12949                                     if test -n "$acl_shlibext"; then
12950               if test -f "$dir/$libname$shrext"; then
12951                 found_dir="$dir"
12952                 found_so="$dir/$libname$shrext"
12953               else
12954                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12955                   ver=`(cd "$dir" && \
12956                         for f in "$libname$shrext".*; do echo "$f"; done \
12957                         | sed -e "s,^$libname$shrext\\\\.,," \
12958                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12959                         | sed 1q ) 2>/dev/null`
12960                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12961                     found_dir="$dir"
12962                     found_so="$dir/$libname$shrext.$ver"
12963                   fi
12964                 else
12965                   eval library_names=\"$acl_library_names_spec\"
12966                   for f in $library_names; do
12967                     if test -f "$dir/$f"; then
12968                       found_dir="$dir"
12969                       found_so="$dir/$f"
12970                       break
12971                     fi
12972                   done
12973                 fi
12974               fi
12975             fi
12976                         if test "X$found_dir" = "X"; then
12977               if test -f "$dir/$libname.$acl_libext"; then
12978                 found_dir="$dir"
12979                 found_a="$dir/$libname.$acl_libext"
12980               fi
12981             fi
12982             if test "X$found_dir" != "X"; then
12983               if test -f "$dir/$libname.la"; then
12984                 found_la="$dir/$libname.la"
12985               fi
12986             fi
12987           fi
12988           if test "X$found_dir" = "X"; then
12989             for x in $LDFLAGS $LTLIBPTHREAD; do
12990
12991   acl_save_prefix="$prefix"
12992   prefix="$acl_final_prefix"
12993   acl_save_exec_prefix="$exec_prefix"
12994   exec_prefix="$acl_final_exec_prefix"
12995   eval x=\"$x\"
12996   exec_prefix="$acl_save_exec_prefix"
12997   prefix="$acl_save_prefix"
12998
12999               case "$x" in
13000                 -L*)
13001                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13002                                     if test -n "$acl_shlibext"; then
13003                     if test -f "$dir/$libname$shrext"; then
13004                       found_dir="$dir"
13005                       found_so="$dir/$libname$shrext"
13006                     else
13007                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13008                         ver=`(cd "$dir" && \
13009                               for f in "$libname$shrext".*; do echo "$f"; done \
13010                               | sed -e "s,^$libname$shrext\\\\.,," \
13011                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13012                               | sed 1q ) 2>/dev/null`
13013                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13014                           found_dir="$dir"
13015                           found_so="$dir/$libname$shrext.$ver"
13016                         fi
13017                       else
13018                         eval library_names=\"$acl_library_names_spec\"
13019                         for f in $library_names; do
13020                           if test -f "$dir/$f"; then
13021                             found_dir="$dir"
13022                             found_so="$dir/$f"
13023                             break
13024                           fi
13025                         done
13026                       fi
13027                     fi
13028                   fi
13029                                     if test "X$found_dir" = "X"; then
13030                     if test -f "$dir/$libname.$acl_libext"; then
13031                       found_dir="$dir"
13032                       found_a="$dir/$libname.$acl_libext"
13033                     fi
13034                   fi
13035                   if test "X$found_dir" != "X"; then
13036                     if test -f "$dir/$libname.la"; then
13037                       found_la="$dir/$libname.la"
13038                     fi
13039                   fi
13040                   ;;
13041               esac
13042               if test "X$found_dir" != "X"; then
13043                 break
13044               fi
13045             done
13046           fi
13047           if test "X$found_dir" != "X"; then
13048                         LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$found_dir -l$name"
13049             if test "X$found_so" != "X"; then
13050                                                         if test "$enable_rpath" = no \
13051                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13052                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13053                                 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
13054               else
13055                                                                                 haveit=
13056                 for x in $ltrpathdirs; do
13057                   if test "X$x" = "X$found_dir"; then
13058                     haveit=yes
13059                     break
13060                   fi
13061                 done
13062                 if test -z "$haveit"; then
13063                   ltrpathdirs="$ltrpathdirs $found_dir"
13064                 fi
13065                                 if test "$acl_hardcode_direct" = yes; then
13066                                                       LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
13067                 else
13068                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13069                                                             LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
13070                                                             haveit=
13071                     for x in $rpathdirs; do
13072                       if test "X$x" = "X$found_dir"; then
13073                         haveit=yes
13074                         break
13075                       fi
13076                     done
13077                     if test -z "$haveit"; then
13078                       rpathdirs="$rpathdirs $found_dir"
13079                     fi
13080                   else
13081                                                                                 haveit=
13082                     for x in $LDFLAGS $LIBPTHREAD; do
13083
13084   acl_save_prefix="$prefix"
13085   prefix="$acl_final_prefix"
13086   acl_save_exec_prefix="$exec_prefix"
13087   exec_prefix="$acl_final_exec_prefix"
13088   eval x=\"$x\"
13089   exec_prefix="$acl_save_exec_prefix"
13090   prefix="$acl_save_prefix"
13091
13092                       if test "X$x" = "X-L$found_dir"; then
13093                         haveit=yes
13094                         break
13095                       fi
13096                     done
13097                     if test -z "$haveit"; then
13098                       LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir"
13099                     fi
13100                     if test "$acl_hardcode_minus_L" != no; then
13101                                                                                         LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
13102                     else
13103                                                                                                                                                                                 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
13104                     fi
13105                   fi
13106                 fi
13107               fi
13108             else
13109               if test "X$found_a" != "X"; then
13110                                 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_a"
13111               else
13112                                                 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir -l$name"
13113               fi
13114             fi
13115                         additional_includedir=
13116             case "$found_dir" in
13117               */$acl_libdirstem | */$acl_libdirstem/)
13118                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13119                 if test "$name" = 'pthread'; then
13120                   LIBPTHREAD_PREFIX="$basedir"
13121                 fi
13122                 additional_includedir="$basedir/include"
13123                 ;;
13124               */$acl_libdirstem2 | */$acl_libdirstem2/)
13125                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13126                 if test "$name" = 'pthread'; then
13127                   LIBPTHREAD_PREFIX="$basedir"
13128                 fi
13129                 additional_includedir="$basedir/include"
13130                 ;;
13131             esac
13132             if test "X$additional_includedir" != "X"; then
13133                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13134                 haveit=
13135                 if test "X$additional_includedir" = "X/usr/local/include"; then
13136                   if test -n "$GCC"; then
13137                     case $host_os in
13138                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13139                     esac
13140                   fi
13141                 fi
13142                 if test -z "$haveit"; then
13143                   for x in $CPPFLAGS $INCPTHREAD; do
13144
13145   acl_save_prefix="$prefix"
13146   prefix="$acl_final_prefix"
13147   acl_save_exec_prefix="$exec_prefix"
13148   exec_prefix="$acl_final_exec_prefix"
13149   eval x=\"$x\"
13150   exec_prefix="$acl_save_exec_prefix"
13151   prefix="$acl_save_prefix"
13152
13153                     if test "X$x" = "X-I$additional_includedir"; then
13154                       haveit=yes
13155                       break
13156                     fi
13157                   done
13158                   if test -z "$haveit"; then
13159                     if test -d "$additional_includedir"; then
13160                                             INCPTHREAD="${INCPTHREAD}${INCPTHREAD:+ }-I$additional_includedir"
13161                     fi
13162                   fi
13163                 fi
13164               fi
13165             fi
13166                         if test -n "$found_la"; then
13167                                                         save_libdir="$libdir"
13168               case "$found_la" in
13169                 */* | *\\*) . "$found_la" ;;
13170                 *) . "./$found_la" ;;
13171               esac
13172               libdir="$save_libdir"
13173                             for dep in $dependency_libs; do
13174                 case "$dep" in
13175                   -L*)
13176                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13177                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13178                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13179                       haveit=
13180                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13181                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13182                         if test -n "$GCC"; then
13183                           case $host_os in
13184                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13185                           esac
13186                         fi
13187                       fi
13188                       if test -z "$haveit"; then
13189                         haveit=
13190                         for x in $LDFLAGS $LIBPTHREAD; do
13191
13192   acl_save_prefix="$prefix"
13193   prefix="$acl_final_prefix"
13194   acl_save_exec_prefix="$exec_prefix"
13195   exec_prefix="$acl_final_exec_prefix"
13196   eval x=\"$x\"
13197   exec_prefix="$acl_save_exec_prefix"
13198   prefix="$acl_save_prefix"
13199
13200                           if test "X$x" = "X-L$additional_libdir"; then
13201                             haveit=yes
13202                             break
13203                           fi
13204                         done
13205                         if test -z "$haveit"; then
13206                           if test -d "$additional_libdir"; then
13207                                                         LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$additional_libdir"
13208                           fi
13209                         fi
13210                         haveit=
13211                         for x in $LDFLAGS $LTLIBPTHREAD; do
13212
13213   acl_save_prefix="$prefix"
13214   prefix="$acl_final_prefix"
13215   acl_save_exec_prefix="$exec_prefix"
13216   exec_prefix="$acl_final_exec_prefix"
13217   eval x=\"$x\"
13218   exec_prefix="$acl_save_exec_prefix"
13219   prefix="$acl_save_prefix"
13220
13221                           if test "X$x" = "X-L$additional_libdir"; then
13222                             haveit=yes
13223                             break
13224                           fi
13225                         done
13226                         if test -z "$haveit"; then
13227                           if test -d "$additional_libdir"; then
13228                                                         LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$additional_libdir"
13229                           fi
13230                         fi
13231                       fi
13232                     fi
13233                     ;;
13234                   -R*)
13235                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13236                     if test "$enable_rpath" != no; then
13237                                                                   haveit=
13238                       for x in $rpathdirs; do
13239                         if test "X$x" = "X$dir"; then
13240                           haveit=yes
13241                           break
13242                         fi
13243                       done
13244                       if test -z "$haveit"; then
13245                         rpathdirs="$rpathdirs $dir"
13246                       fi
13247                                                                   haveit=
13248                       for x in $ltrpathdirs; do
13249                         if test "X$x" = "X$dir"; then
13250                           haveit=yes
13251                           break
13252                         fi
13253                       done
13254                       if test -z "$haveit"; then
13255                         ltrpathdirs="$ltrpathdirs $dir"
13256                       fi
13257                     fi
13258                     ;;
13259                   -l*)
13260                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13261                     ;;
13262                   *.la)
13263                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13264                     ;;
13265                   *)
13266                                         LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$dep"
13267                     LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$dep"
13268                     ;;
13269                 esac
13270               done
13271             fi
13272           else
13273                                                             LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
13274             LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-l$name"
13275           fi
13276         fi
13277       fi
13278     done
13279   done
13280   if test "X$rpathdirs" != "X"; then
13281     if test -n "$acl_hardcode_libdir_separator"; then
13282                         alldirs=
13283       for found_dir in $rpathdirs; do
13284         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13285       done
13286             acl_save_libdir="$libdir"
13287       libdir="$alldirs"
13288       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13289       libdir="$acl_save_libdir"
13290       LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
13291     else
13292             for found_dir in $rpathdirs; do
13293         acl_save_libdir="$libdir"
13294         libdir="$found_dir"
13295         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13296         libdir="$acl_save_libdir"
13297         LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
13298       done
13299     fi
13300   fi
13301   if test "X$ltrpathdirs" != "X"; then
13302             for found_dir in $ltrpathdirs; do
13303       LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-R$found_dir"
13304     done
13305   fi
13306
13307
13308
13309
13310
13311
13312
13313         ac_save_CPPFLAGS="$CPPFLAGS"
13314
13315   for element in $INCPTHREAD; do
13316     haveit=
13317     for x in $CPPFLAGS; do
13318
13319   acl_save_prefix="$prefix"
13320   prefix="$acl_final_prefix"
13321   acl_save_exec_prefix="$exec_prefix"
13322   exec_prefix="$acl_final_exec_prefix"
13323   eval x=\"$x\"
13324   exec_prefix="$acl_save_exec_prefix"
13325   prefix="$acl_save_prefix"
13326
13327       if test "X$x" = "X$element"; then
13328         haveit=yes
13329         break
13330       fi
13331     done
13332     if test -z "$haveit"; then
13333       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13334     fi
13335   done
13336
13337
13338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpthread" >&5
13339 $as_echo_n "checking for libpthread... " >&6; }
13340 if ${ac_cv_libpthread+:} false; then :
13341   $as_echo_n "(cached) " >&6
13342 else
13343
13344     ac_save_LIBS="$LIBS"
13345                                 case " $LIBPTHREAD" in
13346       *" -l"*) LIBS="$LIBS $LIBPTHREAD" ;;
13347       *)       LIBS="$LIBPTHREAD $LIBS" ;;
13348     esac
13349     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350 /* end confdefs.h.  */
13351 #include <pthread.h>
13352 int
13353 main ()
13354 {
13355 pthread_mutex_lock (0);
13356   ;
13357   return 0;
13358 }
13359 _ACEOF
13360 if ac_fn_c_try_link "$LINENO"; then :
13361   ac_cv_libpthread=yes
13362 else
13363   ac_cv_libpthread='no'
13364 fi
13365 rm -f core conftest.err conftest.$ac_objext \
13366     conftest$ac_exeext conftest.$ac_ext
13367     LIBS="$ac_save_LIBS"
13368
13369 fi
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpthread" >&5
13371 $as_echo "$ac_cv_libpthread" >&6; }
13372   if test "$ac_cv_libpthread" = yes; then
13373     HAVE_LIBPTHREAD=yes
13374
13375 $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
13376
13377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpthread" >&5
13378 $as_echo_n "checking how to link with libpthread... " >&6; }
13379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPTHREAD" >&5
13380 $as_echo "$LIBPTHREAD" >&6; }
13381   else
13382     HAVE_LIBPTHREAD=no
13383             CPPFLAGS="$ac_save_CPPFLAGS"
13384     LIBPTHREAD=
13385     LTLIBPTHREAD=
13386     LIBPTHREAD_PREFIX=
13387   fi
13388
13389
13390
13391
13392
13393
13394
13395   fi
13396 fi
13397
13398 if test "$ac_cv_func_nanosleep" != "yes";then
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412     use_additional=yes
13413
13414   acl_save_prefix="$prefix"
13415   prefix="$acl_final_prefix"
13416   acl_save_exec_prefix="$exec_prefix"
13417   exec_prefix="$acl_final_exec_prefix"
13418
13419     eval additional_includedir=\"$includedir\"
13420     eval additional_libdir=\"$libdir\"
13421
13422   exec_prefix="$acl_save_exec_prefix"
13423   prefix="$acl_save_prefix"
13424
13425
13426 # Check whether --with-librt-prefix was given.
13427 if test "${with_librt_prefix+set}" = set; then :
13428   withval=$with_librt_prefix;
13429     if test "X$withval" = "Xno"; then
13430       use_additional=no
13431     else
13432       if test "X$withval" = "X"; then
13433
13434   acl_save_prefix="$prefix"
13435   prefix="$acl_final_prefix"
13436   acl_save_exec_prefix="$exec_prefix"
13437   exec_prefix="$acl_final_exec_prefix"
13438
13439           eval additional_includedir=\"$includedir\"
13440           eval additional_libdir=\"$libdir\"
13441
13442   exec_prefix="$acl_save_exec_prefix"
13443   prefix="$acl_save_prefix"
13444
13445       else
13446         additional_includedir="$withval/include"
13447         additional_libdir="$withval/$acl_libdirstem"
13448         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13449            && ! test -d "$withval/$acl_libdirstem"; then
13450           additional_libdir="$withval/$acl_libdirstem2"
13451         fi
13452       fi
13453     fi
13454
13455 fi
13456
13457       LIBRT=
13458   LTLIBRT=
13459   INCRT=
13460   LIBRT_PREFIX=
13461       HAVE_LIBRT=
13462   rpathdirs=
13463   ltrpathdirs=
13464   names_already_handled=
13465   names_next_round='rt '
13466   while test -n "$names_next_round"; do
13467     names_this_round="$names_next_round"
13468     names_next_round=
13469     for name in $names_this_round; do
13470       already_handled=
13471       for n in $names_already_handled; do
13472         if test "$n" = "$name"; then
13473           already_handled=yes
13474           break
13475         fi
13476       done
13477       if test -z "$already_handled"; then
13478         names_already_handled="$names_already_handled $name"
13479                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13480         eval value=\"\$HAVE_LIB$uppername\"
13481         if test -n "$value"; then
13482           if test "$value" = yes; then
13483             eval value=\"\$LIB$uppername\"
13484             test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
13485             eval value=\"\$LTLIB$uppername\"
13486             test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
13487           else
13488                                     :
13489           fi
13490         else
13491                               found_dir=
13492           found_la=
13493           found_so=
13494           found_a=
13495           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13496           if test -n "$acl_shlibext"; then
13497             shrext=".$acl_shlibext"             # typically: shrext=.so
13498           else
13499             shrext=
13500           fi
13501           if test $use_additional = yes; then
13502             dir="$additional_libdir"
13503                                     if test -n "$acl_shlibext"; then
13504               if test -f "$dir/$libname$shrext"; then
13505                 found_dir="$dir"
13506                 found_so="$dir/$libname$shrext"
13507               else
13508                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13509                   ver=`(cd "$dir" && \
13510                         for f in "$libname$shrext".*; do echo "$f"; done \
13511                         | sed -e "s,^$libname$shrext\\\\.,," \
13512                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13513                         | sed 1q ) 2>/dev/null`
13514                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13515                     found_dir="$dir"
13516                     found_so="$dir/$libname$shrext.$ver"
13517                   fi
13518                 else
13519                   eval library_names=\"$acl_library_names_spec\"
13520                   for f in $library_names; do
13521                     if test -f "$dir/$f"; then
13522                       found_dir="$dir"
13523                       found_so="$dir/$f"
13524                       break
13525                     fi
13526                   done
13527                 fi
13528               fi
13529             fi
13530                         if test "X$found_dir" = "X"; then
13531               if test -f "$dir/$libname.$acl_libext"; then
13532                 found_dir="$dir"
13533                 found_a="$dir/$libname.$acl_libext"
13534               fi
13535             fi
13536             if test "X$found_dir" != "X"; then
13537               if test -f "$dir/$libname.la"; then
13538                 found_la="$dir/$libname.la"
13539               fi
13540             fi
13541           fi
13542           if test "X$found_dir" = "X"; then
13543             for x in $LDFLAGS $LTLIBRT; do
13544
13545   acl_save_prefix="$prefix"
13546   prefix="$acl_final_prefix"
13547   acl_save_exec_prefix="$exec_prefix"
13548   exec_prefix="$acl_final_exec_prefix"
13549   eval x=\"$x\"
13550   exec_prefix="$acl_save_exec_prefix"
13551   prefix="$acl_save_prefix"
13552
13553               case "$x" in
13554                 -L*)
13555                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13556                                     if test -n "$acl_shlibext"; then
13557                     if test -f "$dir/$libname$shrext"; then
13558                       found_dir="$dir"
13559                       found_so="$dir/$libname$shrext"
13560                     else
13561                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13562                         ver=`(cd "$dir" && \
13563                               for f in "$libname$shrext".*; do echo "$f"; done \
13564                               | sed -e "s,^$libname$shrext\\\\.,," \
13565                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13566                               | sed 1q ) 2>/dev/null`
13567                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13568                           found_dir="$dir"
13569                           found_so="$dir/$libname$shrext.$ver"
13570                         fi
13571                       else
13572                         eval library_names=\"$acl_library_names_spec\"
13573                         for f in $library_names; do
13574                           if test -f "$dir/$f"; then
13575                             found_dir="$dir"
13576                             found_so="$dir/$f"
13577                             break
13578                           fi
13579                         done
13580                       fi
13581                     fi
13582                   fi
13583                                     if test "X$found_dir" = "X"; then
13584                     if test -f "$dir/$libname.$acl_libext"; then
13585                       found_dir="$dir"
13586                       found_a="$dir/$libname.$acl_libext"
13587                     fi
13588                   fi
13589                   if test "X$found_dir" != "X"; then
13590                     if test -f "$dir/$libname.la"; then
13591                       found_la="$dir/$libname.la"
13592                     fi
13593                   fi
13594                   ;;
13595               esac
13596               if test "X$found_dir" != "X"; then
13597                 break
13598               fi
13599             done
13600           fi
13601           if test "X$found_dir" != "X"; then
13602                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
13603             if test "X$found_so" != "X"; then
13604                                                         if test "$enable_rpath" = no \
13605                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13606                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13607                                 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13608               else
13609                                                                                 haveit=
13610                 for x in $ltrpathdirs; do
13611                   if test "X$x" = "X$found_dir"; then
13612                     haveit=yes
13613                     break
13614                   fi
13615                 done
13616                 if test -z "$haveit"; then
13617                   ltrpathdirs="$ltrpathdirs $found_dir"
13618                 fi
13619                                 if test "$acl_hardcode_direct" = yes; then
13620                                                       LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13621                 else
13622                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13623                                                             LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13624                                                             haveit=
13625                     for x in $rpathdirs; do
13626                       if test "X$x" = "X$found_dir"; then
13627                         haveit=yes
13628                         break
13629                       fi
13630                     done
13631                     if test -z "$haveit"; then
13632                       rpathdirs="$rpathdirs $found_dir"
13633                     fi
13634                   else
13635                                                                                 haveit=
13636                     for x in $LDFLAGS $LIBRT; do
13637
13638   acl_save_prefix="$prefix"
13639   prefix="$acl_final_prefix"
13640   acl_save_exec_prefix="$exec_prefix"
13641   exec_prefix="$acl_final_exec_prefix"
13642   eval x=\"$x\"
13643   exec_prefix="$acl_save_exec_prefix"
13644   prefix="$acl_save_prefix"
13645
13646                       if test "X$x" = "X-L$found_dir"; then
13647                         haveit=yes
13648                         break
13649                       fi
13650                     done
13651                     if test -z "$haveit"; then
13652                       LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
13653                     fi
13654                     if test "$acl_hardcode_minus_L" != no; then
13655                                                                                         LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13656                     else
13657                                                                                                                                                                                 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
13658                     fi
13659                   fi
13660                 fi
13661               fi
13662             else
13663               if test "X$found_a" != "X"; then
13664                                 LIBRT="${LIBRT}${LIBRT:+ }$found_a"
13665               else
13666                                                 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
13667               fi
13668             fi
13669                         additional_includedir=
13670             case "$found_dir" in
13671               */$acl_libdirstem | */$acl_libdirstem/)
13672                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13673                 if test "$name" = 'rt'; then
13674                   LIBRT_PREFIX="$basedir"
13675                 fi
13676                 additional_includedir="$basedir/include"
13677                 ;;
13678               */$acl_libdirstem2 | */$acl_libdirstem2/)
13679                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13680                 if test "$name" = 'rt'; then
13681                   LIBRT_PREFIX="$basedir"
13682                 fi
13683                 additional_includedir="$basedir/include"
13684                 ;;
13685             esac
13686             if test "X$additional_includedir" != "X"; then
13687                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13688                 haveit=
13689                 if test "X$additional_includedir" = "X/usr/local/include"; then
13690                   if test -n "$GCC"; then
13691                     case $host_os in
13692                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13693                     esac
13694                   fi
13695                 fi
13696                 if test -z "$haveit"; then
13697                   for x in $CPPFLAGS $INCRT; do
13698
13699   acl_save_prefix="$prefix"
13700   prefix="$acl_final_prefix"
13701   acl_save_exec_prefix="$exec_prefix"
13702   exec_prefix="$acl_final_exec_prefix"
13703   eval x=\"$x\"
13704   exec_prefix="$acl_save_exec_prefix"
13705   prefix="$acl_save_prefix"
13706
13707                     if test "X$x" = "X-I$additional_includedir"; then
13708                       haveit=yes
13709                       break
13710                     fi
13711                   done
13712                   if test -z "$haveit"; then
13713                     if test -d "$additional_includedir"; then
13714                                             INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
13715                     fi
13716                   fi
13717                 fi
13718               fi
13719             fi
13720                         if test -n "$found_la"; then
13721                                                         save_libdir="$libdir"
13722               case "$found_la" in
13723                 */* | *\\*) . "$found_la" ;;
13724                 *) . "./$found_la" ;;
13725               esac
13726               libdir="$save_libdir"
13727                             for dep in $dependency_libs; do
13728                 case "$dep" in
13729                   -L*)
13730                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13731                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13732                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13733                       haveit=
13734                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13735                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13736                         if test -n "$GCC"; then
13737                           case $host_os in
13738                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13739                           esac
13740                         fi
13741                       fi
13742                       if test -z "$haveit"; then
13743                         haveit=
13744                         for x in $LDFLAGS $LIBRT; do
13745
13746   acl_save_prefix="$prefix"
13747   prefix="$acl_final_prefix"
13748   acl_save_exec_prefix="$exec_prefix"
13749   exec_prefix="$acl_final_exec_prefix"
13750   eval x=\"$x\"
13751   exec_prefix="$acl_save_exec_prefix"
13752   prefix="$acl_save_prefix"
13753
13754                           if test "X$x" = "X-L$additional_libdir"; then
13755                             haveit=yes
13756                             break
13757                           fi
13758                         done
13759                         if test -z "$haveit"; then
13760                           if test -d "$additional_libdir"; then
13761                                                         LIBRT="${LIBRT}${LIBRT:+ }-L$additional_libdir"
13762                           fi
13763                         fi
13764                         haveit=
13765                         for x in $LDFLAGS $LTLIBRT; do
13766
13767   acl_save_prefix="$prefix"
13768   prefix="$acl_final_prefix"
13769   acl_save_exec_prefix="$exec_prefix"
13770   exec_prefix="$acl_final_exec_prefix"
13771   eval x=\"$x\"
13772   exec_prefix="$acl_save_exec_prefix"
13773   prefix="$acl_save_prefix"
13774
13775                           if test "X$x" = "X-L$additional_libdir"; then
13776                             haveit=yes
13777                             break
13778                           fi
13779                         done
13780                         if test -z "$haveit"; then
13781                           if test -d "$additional_libdir"; then
13782                                                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$additional_libdir"
13783                           fi
13784                         fi
13785                       fi
13786                     fi
13787                     ;;
13788                   -R*)
13789                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13790                     if test "$enable_rpath" != no; then
13791                                                                   haveit=
13792                       for x in $rpathdirs; do
13793                         if test "X$x" = "X$dir"; then
13794                           haveit=yes
13795                           break
13796                         fi
13797                       done
13798                       if test -z "$haveit"; then
13799                         rpathdirs="$rpathdirs $dir"
13800                       fi
13801                                                                   haveit=
13802                       for x in $ltrpathdirs; do
13803                         if test "X$x" = "X$dir"; then
13804                           haveit=yes
13805                           break
13806                         fi
13807                       done
13808                       if test -z "$haveit"; then
13809                         ltrpathdirs="$ltrpathdirs $dir"
13810                       fi
13811                     fi
13812                     ;;
13813                   -l*)
13814                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13815                     ;;
13816                   *.la)
13817                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13818                     ;;
13819                   *)
13820                                         LIBRT="${LIBRT}${LIBRT:+ }$dep"
13821                     LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
13822                     ;;
13823                 esac
13824               done
13825             fi
13826           else
13827                                                             LIBRT="${LIBRT}${LIBRT:+ }-l$name"
13828             LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
13829           fi
13830         fi
13831       fi
13832     done
13833   done
13834   if test "X$rpathdirs" != "X"; then
13835     if test -n "$acl_hardcode_libdir_separator"; then
13836                         alldirs=
13837       for found_dir in $rpathdirs; do
13838         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13839       done
13840             acl_save_libdir="$libdir"
13841       libdir="$alldirs"
13842       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13843       libdir="$acl_save_libdir"
13844       LIBRT="${LIBRT}${LIBRT:+ }$flag"
13845     else
13846             for found_dir in $rpathdirs; do
13847         acl_save_libdir="$libdir"
13848         libdir="$found_dir"
13849         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13850         libdir="$acl_save_libdir"
13851         LIBRT="${LIBRT}${LIBRT:+ }$flag"
13852       done
13853     fi
13854   fi
13855   if test "X$ltrpathdirs" != "X"; then
13856             for found_dir in $ltrpathdirs; do
13857       LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
13858     done
13859   fi
13860
13861
13862
13863
13864
13865
13866
13867         ac_save_CPPFLAGS="$CPPFLAGS"
13868
13869   for element in $INCRT; do
13870     haveit=
13871     for x in $CPPFLAGS; do
13872
13873   acl_save_prefix="$prefix"
13874   prefix="$acl_final_prefix"
13875   acl_save_exec_prefix="$exec_prefix"
13876   exec_prefix="$acl_final_exec_prefix"
13877   eval x=\"$x\"
13878   exec_prefix="$acl_save_exec_prefix"
13879   prefix="$acl_save_prefix"
13880
13881       if test "X$x" = "X$element"; then
13882         haveit=yes
13883         break
13884       fi
13885     done
13886     if test -z "$haveit"; then
13887       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13888     fi
13889   done
13890
13891
13892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
13893 $as_echo_n "checking for librt... " >&6; }
13894 if ${ac_cv_librt+:} false; then :
13895   $as_echo_n "(cached) " >&6
13896 else
13897
13898     ac_save_LIBS="$LIBS"
13899                                 case " $LIBRT" in
13900       *" -l"*) LIBS="$LIBS $LIBRT" ;;
13901       *)       LIBS="$LIBRT $LIBS" ;;
13902     esac
13903     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h.  */
13905 #include <time.h>
13906 int
13907 main ()
13908 {
13909 nanosleep (0, 0);
13910   ;
13911   return 0;
13912 }
13913 _ACEOF
13914 if ac_fn_c_try_link "$LINENO"; then :
13915   ac_cv_librt=yes
13916 else
13917   ac_cv_librt='no'
13918 fi
13919 rm -f core conftest.err conftest.$ac_objext \
13920     conftest$ac_exeext conftest.$ac_ext
13921     LIBS="$ac_save_LIBS"
13922
13923 fi
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
13925 $as_echo "$ac_cv_librt" >&6; }
13926   if test "$ac_cv_librt" = yes; then
13927     HAVE_LIBRT=yes
13928
13929 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
13930
13931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
13932 $as_echo_n "checking how to link with librt... " >&6; }
13933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
13934 $as_echo "$LIBRT" >&6; }
13935   else
13936     HAVE_LIBRT=no
13937             CPPFLAGS="$ac_save_CPPFLAGS"
13938     LIBRT=
13939     LTLIBRT=
13940     LIBRT_PREFIX=
13941   fi
13942
13943
13944
13945
13946
13947
13948
13949   gnutls_needs_librt=yes
13950 fi
13951
13952 if test "$ac_cv_func_inet_pton" != "yes";then
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966     use_additional=yes
13967
13968   acl_save_prefix="$prefix"
13969   prefix="$acl_final_prefix"
13970   acl_save_exec_prefix="$exec_prefix"
13971   exec_prefix="$acl_final_exec_prefix"
13972
13973     eval additional_includedir=\"$includedir\"
13974     eval additional_libdir=\"$libdir\"
13975
13976   exec_prefix="$acl_save_exec_prefix"
13977   prefix="$acl_save_prefix"
13978
13979
13980 # Check whether --with-libnsl-prefix was given.
13981 if test "${with_libnsl_prefix+set}" = set; then :
13982   withval=$with_libnsl_prefix;
13983     if test "X$withval" = "Xno"; then
13984       use_additional=no
13985     else
13986       if test "X$withval" = "X"; then
13987
13988   acl_save_prefix="$prefix"
13989   prefix="$acl_final_prefix"
13990   acl_save_exec_prefix="$exec_prefix"
13991   exec_prefix="$acl_final_exec_prefix"
13992
13993           eval additional_includedir=\"$includedir\"
13994           eval additional_libdir=\"$libdir\"
13995
13996   exec_prefix="$acl_save_exec_prefix"
13997   prefix="$acl_save_prefix"
13998
13999       else
14000         additional_includedir="$withval/include"
14001         additional_libdir="$withval/$acl_libdirstem"
14002         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14003            && ! test -d "$withval/$acl_libdirstem"; then
14004           additional_libdir="$withval/$acl_libdirstem2"
14005         fi
14006       fi
14007     fi
14008
14009 fi
14010
14011       LIBNSL=
14012   LTLIBNSL=
14013   INCNSL=
14014   LIBNSL_PREFIX=
14015       HAVE_LIBNSL=
14016   rpathdirs=
14017   ltrpathdirs=
14018   names_already_handled=
14019   names_next_round='nsl '
14020   while test -n "$names_next_round"; do
14021     names_this_round="$names_next_round"
14022     names_next_round=
14023     for name in $names_this_round; do
14024       already_handled=
14025       for n in $names_already_handled; do
14026         if test "$n" = "$name"; then
14027           already_handled=yes
14028           break
14029         fi
14030       done
14031       if test -z "$already_handled"; then
14032         names_already_handled="$names_already_handled $name"
14033                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14034         eval value=\"\$HAVE_LIB$uppername\"
14035         if test -n "$value"; then
14036           if test "$value" = yes; then
14037             eval value=\"\$LIB$uppername\"
14038             test -z "$value" || LIBNSL="${LIBNSL}${LIBNSL:+ }$value"
14039             eval value=\"\$LTLIB$uppername\"
14040             test -z "$value" || LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }$value"
14041           else
14042                                     :
14043           fi
14044         else
14045                               found_dir=
14046           found_la=
14047           found_so=
14048           found_a=
14049           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14050           if test -n "$acl_shlibext"; then
14051             shrext=".$acl_shlibext"             # typically: shrext=.so
14052           else
14053             shrext=
14054           fi
14055           if test $use_additional = yes; then
14056             dir="$additional_libdir"
14057                                     if test -n "$acl_shlibext"; then
14058               if test -f "$dir/$libname$shrext"; then
14059                 found_dir="$dir"
14060                 found_so="$dir/$libname$shrext"
14061               else
14062                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14063                   ver=`(cd "$dir" && \
14064                         for f in "$libname$shrext".*; do echo "$f"; done \
14065                         | sed -e "s,^$libname$shrext\\\\.,," \
14066                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14067                         | sed 1q ) 2>/dev/null`
14068                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14069                     found_dir="$dir"
14070                     found_so="$dir/$libname$shrext.$ver"
14071                   fi
14072                 else
14073                   eval library_names=\"$acl_library_names_spec\"
14074                   for f in $library_names; do
14075                     if test -f "$dir/$f"; then
14076                       found_dir="$dir"
14077                       found_so="$dir/$f"
14078                       break
14079                     fi
14080                   done
14081                 fi
14082               fi
14083             fi
14084                         if test "X$found_dir" = "X"; then
14085               if test -f "$dir/$libname.$acl_libext"; then
14086                 found_dir="$dir"
14087                 found_a="$dir/$libname.$acl_libext"
14088               fi
14089             fi
14090             if test "X$found_dir" != "X"; then
14091               if test -f "$dir/$libname.la"; then
14092                 found_la="$dir/$libname.la"
14093               fi
14094             fi
14095           fi
14096           if test "X$found_dir" = "X"; then
14097             for x in $LDFLAGS $LTLIBNSL; do
14098
14099   acl_save_prefix="$prefix"
14100   prefix="$acl_final_prefix"
14101   acl_save_exec_prefix="$exec_prefix"
14102   exec_prefix="$acl_final_exec_prefix"
14103   eval x=\"$x\"
14104   exec_prefix="$acl_save_exec_prefix"
14105   prefix="$acl_save_prefix"
14106
14107               case "$x" in
14108                 -L*)
14109                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14110                                     if test -n "$acl_shlibext"; then
14111                     if test -f "$dir/$libname$shrext"; then
14112                       found_dir="$dir"
14113                       found_so="$dir/$libname$shrext"
14114                     else
14115                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14116                         ver=`(cd "$dir" && \
14117                               for f in "$libname$shrext".*; do echo "$f"; done \
14118                               | sed -e "s,^$libname$shrext\\\\.,," \
14119                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14120                               | sed 1q ) 2>/dev/null`
14121                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14122                           found_dir="$dir"
14123                           found_so="$dir/$libname$shrext.$ver"
14124                         fi
14125                       else
14126                         eval library_names=\"$acl_library_names_spec\"
14127                         for f in $library_names; do
14128                           if test -f "$dir/$f"; then
14129                             found_dir="$dir"
14130                             found_so="$dir/$f"
14131                             break
14132                           fi
14133                         done
14134                       fi
14135                     fi
14136                   fi
14137                                     if test "X$found_dir" = "X"; then
14138                     if test -f "$dir/$libname.$acl_libext"; then
14139                       found_dir="$dir"
14140                       found_a="$dir/$libname.$acl_libext"
14141                     fi
14142                   fi
14143                   if test "X$found_dir" != "X"; then
14144                     if test -f "$dir/$libname.la"; then
14145                       found_la="$dir/$libname.la"
14146                     fi
14147                   fi
14148                   ;;
14149               esac
14150               if test "X$found_dir" != "X"; then
14151                 break
14152               fi
14153             done
14154           fi
14155           if test "X$found_dir" != "X"; then
14156                         LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }-L$found_dir -l$name"
14157             if test "X$found_so" != "X"; then
14158                                                         if test "$enable_rpath" = no \
14159                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14160                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14161                                 LIBNSL="${LIBNSL}${LIBNSL:+ }$found_so"
14162               else
14163                                                                                 haveit=
14164                 for x in $ltrpathdirs; do
14165                   if test "X$x" = "X$found_dir"; then
14166                     haveit=yes
14167                     break
14168                   fi
14169                 done
14170                 if test -z "$haveit"; then
14171                   ltrpathdirs="$ltrpathdirs $found_dir"
14172                 fi
14173                                 if test "$acl_hardcode_direct" = yes; then
14174                                                       LIBNSL="${LIBNSL}${LIBNSL:+ }$found_so"
14175                 else
14176                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14177                                                             LIBNSL="${LIBNSL}${LIBNSL:+ }$found_so"
14178                                                             haveit=
14179                     for x in $rpathdirs; do
14180                       if test "X$x" = "X$found_dir"; then
14181                         haveit=yes
14182                         break
14183                       fi
14184                     done
14185                     if test -z "$haveit"; then
14186                       rpathdirs="$rpathdirs $found_dir"
14187                     fi
14188                   else
14189                                                                                 haveit=
14190                     for x in $LDFLAGS $LIBNSL; do
14191
14192   acl_save_prefix="$prefix"
14193   prefix="$acl_final_prefix"
14194   acl_save_exec_prefix="$exec_prefix"
14195   exec_prefix="$acl_final_exec_prefix"
14196   eval x=\"$x\"
14197   exec_prefix="$acl_save_exec_prefix"
14198   prefix="$acl_save_prefix"
14199
14200                       if test "X$x" = "X-L$found_dir"; then
14201                         haveit=yes
14202                         break
14203                       fi
14204                     done
14205                     if test -z "$haveit"; then
14206                       LIBNSL="${LIBNSL}${LIBNSL:+ }-L$found_dir"
14207                     fi
14208                     if test "$acl_hardcode_minus_L" != no; then
14209                                                                                         LIBNSL="${LIBNSL}${LIBNSL:+ }$found_so"
14210                     else
14211                                                                                                                                                                                 LIBNSL="${LIBNSL}${LIBNSL:+ }-l$name"
14212                     fi
14213                   fi
14214                 fi
14215               fi
14216             else
14217               if test "X$found_a" != "X"; then
14218                                 LIBNSL="${LIBNSL}${LIBNSL:+ }$found_a"
14219               else
14220                                                 LIBNSL="${LIBNSL}${LIBNSL:+ }-L$found_dir -l$name"
14221               fi
14222             fi
14223                         additional_includedir=
14224             case "$found_dir" in
14225               */$acl_libdirstem | */$acl_libdirstem/)
14226                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14227                 if test "$name" = 'nsl'; then
14228                   LIBNSL_PREFIX="$basedir"
14229                 fi
14230                 additional_includedir="$basedir/include"
14231                 ;;
14232               */$acl_libdirstem2 | */$acl_libdirstem2/)
14233                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14234                 if test "$name" = 'nsl'; then
14235                   LIBNSL_PREFIX="$basedir"
14236                 fi
14237                 additional_includedir="$basedir/include"
14238                 ;;
14239             esac
14240             if test "X$additional_includedir" != "X"; then
14241                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14242                 haveit=
14243                 if test "X$additional_includedir" = "X/usr/local/include"; then
14244                   if test -n "$GCC"; then
14245                     case $host_os in
14246                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14247                     esac
14248                   fi
14249                 fi
14250                 if test -z "$haveit"; then
14251                   for x in $CPPFLAGS $INCNSL; do
14252
14253   acl_save_prefix="$prefix"
14254   prefix="$acl_final_prefix"
14255   acl_save_exec_prefix="$exec_prefix"
14256   exec_prefix="$acl_final_exec_prefix"
14257   eval x=\"$x\"
14258   exec_prefix="$acl_save_exec_prefix"
14259   prefix="$acl_save_prefix"
14260
14261                     if test "X$x" = "X-I$additional_includedir"; then
14262                       haveit=yes
14263                       break
14264                     fi
14265                   done
14266                   if test -z "$haveit"; then
14267                     if test -d "$additional_includedir"; then
14268                                             INCNSL="${INCNSL}${INCNSL:+ }-I$additional_includedir"
14269                     fi
14270                   fi
14271                 fi
14272               fi
14273             fi
14274                         if test -n "$found_la"; then
14275                                                         save_libdir="$libdir"
14276               case "$found_la" in
14277                 */* | *\\*) . "$found_la" ;;
14278                 *) . "./$found_la" ;;
14279               esac
14280               libdir="$save_libdir"
14281                             for dep in $dependency_libs; do
14282                 case "$dep" in
14283                   -L*)
14284                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14285                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14286                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14287                       haveit=
14288                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14289                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14290                         if test -n "$GCC"; then
14291                           case $host_os in
14292                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14293                           esac
14294                         fi
14295                       fi
14296                       if test -z "$haveit"; then
14297                         haveit=
14298                         for x in $LDFLAGS $LIBNSL; do
14299
14300   acl_save_prefix="$prefix"
14301   prefix="$acl_final_prefix"
14302   acl_save_exec_prefix="$exec_prefix"
14303   exec_prefix="$acl_final_exec_prefix"
14304   eval x=\"$x\"
14305   exec_prefix="$acl_save_exec_prefix"
14306   prefix="$acl_save_prefix"
14307
14308                           if test "X$x" = "X-L$additional_libdir"; then
14309                             haveit=yes
14310                             break
14311                           fi
14312                         done
14313                         if test -z "$haveit"; then
14314                           if test -d "$additional_libdir"; then
14315                                                         LIBNSL="${LIBNSL}${LIBNSL:+ }-L$additional_libdir"
14316                           fi
14317                         fi
14318                         haveit=
14319                         for x in $LDFLAGS $LTLIBNSL; do
14320
14321   acl_save_prefix="$prefix"
14322   prefix="$acl_final_prefix"
14323   acl_save_exec_prefix="$exec_prefix"
14324   exec_prefix="$acl_final_exec_prefix"
14325   eval x=\"$x\"
14326   exec_prefix="$acl_save_exec_prefix"
14327   prefix="$acl_save_prefix"
14328
14329                           if test "X$x" = "X-L$additional_libdir"; then
14330                             haveit=yes
14331                             break
14332                           fi
14333                         done
14334                         if test -z "$haveit"; then
14335                           if test -d "$additional_libdir"; then
14336                                                         LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }-L$additional_libdir"
14337                           fi
14338                         fi
14339                       fi
14340                     fi
14341                     ;;
14342                   -R*)
14343                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14344                     if test "$enable_rpath" != no; then
14345                                                                   haveit=
14346                       for x in $rpathdirs; do
14347                         if test "X$x" = "X$dir"; then
14348                           haveit=yes
14349                           break
14350                         fi
14351                       done
14352                       if test -z "$haveit"; then
14353                         rpathdirs="$rpathdirs $dir"
14354                       fi
14355                                                                   haveit=
14356                       for x in $ltrpathdirs; do
14357                         if test "X$x" = "X$dir"; then
14358                           haveit=yes
14359                           break
14360                         fi
14361                       done
14362                       if test -z "$haveit"; then
14363                         ltrpathdirs="$ltrpathdirs $dir"
14364                       fi
14365                     fi
14366                     ;;
14367                   -l*)
14368                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14369                     ;;
14370                   *.la)
14371                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14372                     ;;
14373                   *)
14374                                         LIBNSL="${LIBNSL}${LIBNSL:+ }$dep"
14375                     LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }$dep"
14376                     ;;
14377                 esac
14378               done
14379             fi
14380           else
14381                                                             LIBNSL="${LIBNSL}${LIBNSL:+ }-l$name"
14382             LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }-l$name"
14383           fi
14384         fi
14385       fi
14386     done
14387   done
14388   if test "X$rpathdirs" != "X"; then
14389     if test -n "$acl_hardcode_libdir_separator"; then
14390                         alldirs=
14391       for found_dir in $rpathdirs; do
14392         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14393       done
14394             acl_save_libdir="$libdir"
14395       libdir="$alldirs"
14396       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14397       libdir="$acl_save_libdir"
14398       LIBNSL="${LIBNSL}${LIBNSL:+ }$flag"
14399     else
14400             for found_dir in $rpathdirs; do
14401         acl_save_libdir="$libdir"
14402         libdir="$found_dir"
14403         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14404         libdir="$acl_save_libdir"
14405         LIBNSL="${LIBNSL}${LIBNSL:+ }$flag"
14406       done
14407     fi
14408   fi
14409   if test "X$ltrpathdirs" != "X"; then
14410             for found_dir in $ltrpathdirs; do
14411       LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }-R$found_dir"
14412     done
14413   fi
14414
14415
14416
14417
14418
14419
14420
14421         ac_save_CPPFLAGS="$CPPFLAGS"
14422
14423   for element in $INCNSL; do
14424     haveit=
14425     for x in $CPPFLAGS; do
14426
14427   acl_save_prefix="$prefix"
14428   prefix="$acl_final_prefix"
14429   acl_save_exec_prefix="$exec_prefix"
14430   exec_prefix="$acl_final_exec_prefix"
14431   eval x=\"$x\"
14432   exec_prefix="$acl_save_exec_prefix"
14433   prefix="$acl_save_prefix"
14434
14435       if test "X$x" = "X$element"; then
14436         haveit=yes
14437         break
14438       fi
14439     done
14440     if test -z "$haveit"; then
14441       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14442     fi
14443   done
14444
14445
14446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnsl" >&5
14447 $as_echo_n "checking for libnsl... " >&6; }
14448 if ${ac_cv_libnsl+:} false; then :
14449   $as_echo_n "(cached) " >&6
14450 else
14451
14452     ac_save_LIBS="$LIBS"
14453                                 case " $LIBNSL" in
14454       *" -l"*) LIBS="$LIBS $LIBNSL" ;;
14455       *)       LIBS="$LIBNSL $LIBS" ;;
14456     esac
14457     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h.  */
14459 #include <arpa/inet.h>
14460 int
14461 main ()
14462 {
14463 inet_pton(0,0,0);
14464   ;
14465   return 0;
14466 }
14467 _ACEOF
14468 if ac_fn_c_try_link "$LINENO"; then :
14469   ac_cv_libnsl=yes
14470 else
14471   ac_cv_libnsl='no'
14472 fi
14473 rm -f core conftest.err conftest.$ac_objext \
14474     conftest$ac_exeext conftest.$ac_ext
14475     LIBS="$ac_save_LIBS"
14476
14477 fi
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libnsl" >&5
14479 $as_echo "$ac_cv_libnsl" >&6; }
14480   if test "$ac_cv_libnsl" = yes; then
14481     HAVE_LIBNSL=yes
14482
14483 $as_echo "#define HAVE_LIBNSL 1" >>confdefs.h
14484
14485     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libnsl" >&5
14486 $as_echo_n "checking how to link with libnsl... " >&6; }
14487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNSL" >&5
14488 $as_echo "$LIBNSL" >&6; }
14489   else
14490     HAVE_LIBNSL=no
14491             CPPFLAGS="$ac_save_CPPFLAGS"
14492     LIBNSL=
14493     LTLIBNSL=
14494     LIBNSL_PREFIX=
14495   fi
14496
14497
14498
14499
14500
14501
14502
14503 fi
14504
14505 if test "$ac_cv_func_clock_gettime" != "yes";then
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519     use_additional=yes
14520
14521   acl_save_prefix="$prefix"
14522   prefix="$acl_final_prefix"
14523   acl_save_exec_prefix="$exec_prefix"
14524   exec_prefix="$acl_final_exec_prefix"
14525
14526     eval additional_includedir=\"$includedir\"
14527     eval additional_libdir=\"$libdir\"
14528
14529   exec_prefix="$acl_save_exec_prefix"
14530   prefix="$acl_save_prefix"
14531
14532
14533 # Check whether --with-librt-prefix was given.
14534 if test "${with_librt_prefix+set}" = set; then :
14535   withval=$with_librt_prefix;
14536     if test "X$withval" = "Xno"; then
14537       use_additional=no
14538     else
14539       if test "X$withval" = "X"; then
14540
14541   acl_save_prefix="$prefix"
14542   prefix="$acl_final_prefix"
14543   acl_save_exec_prefix="$exec_prefix"
14544   exec_prefix="$acl_final_exec_prefix"
14545
14546           eval additional_includedir=\"$includedir\"
14547           eval additional_libdir=\"$libdir\"
14548
14549   exec_prefix="$acl_save_exec_prefix"
14550   prefix="$acl_save_prefix"
14551
14552       else
14553         additional_includedir="$withval/include"
14554         additional_libdir="$withval/$acl_libdirstem"
14555         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14556            && ! test -d "$withval/$acl_libdirstem"; then
14557           additional_libdir="$withval/$acl_libdirstem2"
14558         fi
14559       fi
14560     fi
14561
14562 fi
14563
14564       LIBRT=
14565   LTLIBRT=
14566   INCRT=
14567   LIBRT_PREFIX=
14568       HAVE_LIBRT=
14569   rpathdirs=
14570   ltrpathdirs=
14571   names_already_handled=
14572   names_next_round='rt '
14573   while test -n "$names_next_round"; do
14574     names_this_round="$names_next_round"
14575     names_next_round=
14576     for name in $names_this_round; do
14577       already_handled=
14578       for n in $names_already_handled; do
14579         if test "$n" = "$name"; then
14580           already_handled=yes
14581           break
14582         fi
14583       done
14584       if test -z "$already_handled"; then
14585         names_already_handled="$names_already_handled $name"
14586                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14587         eval value=\"\$HAVE_LIB$uppername\"
14588         if test -n "$value"; then
14589           if test "$value" = yes; then
14590             eval value=\"\$LIB$uppername\"
14591             test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
14592             eval value=\"\$LTLIB$uppername\"
14593             test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
14594           else
14595                                     :
14596           fi
14597         else
14598                               found_dir=
14599           found_la=
14600           found_so=
14601           found_a=
14602           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14603           if test -n "$acl_shlibext"; then
14604             shrext=".$acl_shlibext"             # typically: shrext=.so
14605           else
14606             shrext=
14607           fi
14608           if test $use_additional = yes; then
14609             dir="$additional_libdir"
14610                                     if test -n "$acl_shlibext"; then
14611               if test -f "$dir/$libname$shrext"; then
14612                 found_dir="$dir"
14613                 found_so="$dir/$libname$shrext"
14614               else
14615                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14616                   ver=`(cd "$dir" && \
14617                         for f in "$libname$shrext".*; do echo "$f"; done \
14618                         | sed -e "s,^$libname$shrext\\\\.,," \
14619                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14620                         | sed 1q ) 2>/dev/null`
14621                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14622                     found_dir="$dir"
14623                     found_so="$dir/$libname$shrext.$ver"
14624                   fi
14625                 else
14626                   eval library_names=\"$acl_library_names_spec\"
14627                   for f in $library_names; do
14628                     if test -f "$dir/$f"; then
14629                       found_dir="$dir"
14630                       found_so="$dir/$f"
14631                       break
14632                     fi
14633                   done
14634                 fi
14635               fi
14636             fi
14637                         if test "X$found_dir" = "X"; then
14638               if test -f "$dir/$libname.$acl_libext"; then
14639                 found_dir="$dir"
14640                 found_a="$dir/$libname.$acl_libext"
14641               fi
14642             fi
14643             if test "X$found_dir" != "X"; then
14644               if test -f "$dir/$libname.la"; then
14645                 found_la="$dir/$libname.la"
14646               fi
14647             fi
14648           fi
14649           if test "X$found_dir" = "X"; then
14650             for x in $LDFLAGS $LTLIBRT; do
14651
14652   acl_save_prefix="$prefix"
14653   prefix="$acl_final_prefix"
14654   acl_save_exec_prefix="$exec_prefix"
14655   exec_prefix="$acl_final_exec_prefix"
14656   eval x=\"$x\"
14657   exec_prefix="$acl_save_exec_prefix"
14658   prefix="$acl_save_prefix"
14659
14660               case "$x" in
14661                 -L*)
14662                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14663                                     if test -n "$acl_shlibext"; then
14664                     if test -f "$dir/$libname$shrext"; then
14665                       found_dir="$dir"
14666                       found_so="$dir/$libname$shrext"
14667                     else
14668                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14669                         ver=`(cd "$dir" && \
14670                               for f in "$libname$shrext".*; do echo "$f"; done \
14671                               | sed -e "s,^$libname$shrext\\\\.,," \
14672                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14673                               | sed 1q ) 2>/dev/null`
14674                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14675                           found_dir="$dir"
14676                           found_so="$dir/$libname$shrext.$ver"
14677                         fi
14678                       else
14679                         eval library_names=\"$acl_library_names_spec\"
14680                         for f in $library_names; do
14681                           if test -f "$dir/$f"; then
14682                             found_dir="$dir"
14683                             found_so="$dir/$f"
14684                             break
14685                           fi
14686                         done
14687                       fi
14688                     fi
14689                   fi
14690                                     if test "X$found_dir" = "X"; then
14691                     if test -f "$dir/$libname.$acl_libext"; then
14692                       found_dir="$dir"
14693                       found_a="$dir/$libname.$acl_libext"
14694                     fi
14695                   fi
14696                   if test "X$found_dir" != "X"; then
14697                     if test -f "$dir/$libname.la"; then
14698                       found_la="$dir/$libname.la"
14699                     fi
14700                   fi
14701                   ;;
14702               esac
14703               if test "X$found_dir" != "X"; then
14704                 break
14705               fi
14706             done
14707           fi
14708           if test "X$found_dir" != "X"; then
14709                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
14710             if test "X$found_so" != "X"; then
14711                                                         if test "$enable_rpath" = no \
14712                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14713                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14714                                 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
14715               else
14716                                                                                 haveit=
14717                 for x in $ltrpathdirs; do
14718                   if test "X$x" = "X$found_dir"; then
14719                     haveit=yes
14720                     break
14721                   fi
14722                 done
14723                 if test -z "$haveit"; then
14724                   ltrpathdirs="$ltrpathdirs $found_dir"
14725                 fi
14726                                 if test "$acl_hardcode_direct" = yes; then
14727                                                       LIBRT="${LIBRT}${LIBRT:+ }$found_so"
14728                 else
14729                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14730                                                             LIBRT="${LIBRT}${LIBRT:+ }$found_so"
14731                                                             haveit=
14732                     for x in $rpathdirs; do
14733                       if test "X$x" = "X$found_dir"; then
14734                         haveit=yes
14735                         break
14736                       fi
14737                     done
14738                     if test -z "$haveit"; then
14739                       rpathdirs="$rpathdirs $found_dir"
14740                     fi
14741                   else
14742                                                                                 haveit=
14743                     for x in $LDFLAGS $LIBRT; do
14744
14745   acl_save_prefix="$prefix"
14746   prefix="$acl_final_prefix"
14747   acl_save_exec_prefix="$exec_prefix"
14748   exec_prefix="$acl_final_exec_prefix"
14749   eval x=\"$x\"
14750   exec_prefix="$acl_save_exec_prefix"
14751   prefix="$acl_save_prefix"
14752
14753                       if test "X$x" = "X-L$found_dir"; then
14754                         haveit=yes
14755                         break
14756                       fi
14757                     done
14758                     if test -z "$haveit"; then
14759                       LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
14760                     fi
14761                     if test "$acl_hardcode_minus_L" != no; then
14762                                                                                         LIBRT="${LIBRT}${LIBRT:+ }$found_so"
14763                     else
14764                                                                                                                                                                                 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
14765                     fi
14766                   fi
14767                 fi
14768               fi
14769             else
14770               if test "X$found_a" != "X"; then
14771                                 LIBRT="${LIBRT}${LIBRT:+ }$found_a"
14772               else
14773                                                 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
14774               fi
14775             fi
14776                         additional_includedir=
14777             case "$found_dir" in
14778               */$acl_libdirstem | */$acl_libdirstem/)
14779                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14780                 if test "$name" = 'rt'; then
14781                   LIBRT_PREFIX="$basedir"
14782                 fi
14783                 additional_includedir="$basedir/include"
14784                 ;;
14785               */$acl_libdirstem2 | */$acl_libdirstem2/)
14786                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14787                 if test "$name" = 'rt'; then
14788                   LIBRT_PREFIX="$basedir"
14789                 fi
14790                 additional_includedir="$basedir/include"
14791                 ;;
14792             esac
14793             if test "X$additional_includedir" != "X"; then
14794                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14795                 haveit=
14796                 if test "X$additional_includedir" = "X/usr/local/include"; then
14797                   if test -n "$GCC"; then
14798                     case $host_os in
14799                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14800                     esac
14801                   fi
14802                 fi
14803                 if test -z "$haveit"; then
14804                   for x in $CPPFLAGS $INCRT; do
14805
14806   acl_save_prefix="$prefix"
14807   prefix="$acl_final_prefix"
14808   acl_save_exec_prefix="$exec_prefix"
14809   exec_prefix="$acl_final_exec_prefix"
14810   eval x=\"$x\"
14811   exec_prefix="$acl_save_exec_prefix"
14812   prefix="$acl_save_prefix"
14813
14814                     if test "X$x" = "X-I$additional_includedir"; then
14815                       haveit=yes
14816                       break
14817                     fi
14818                   done
14819                   if test -z "$haveit"; then
14820                     if test -d "$additional_includedir"; then
14821                                             INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
14822                     fi
14823                   fi
14824                 fi
14825               fi
14826             fi
14827                         if test -n "$found_la"; then
14828                                                         save_libdir="$libdir"
14829               case "$found_la" in
14830                 */* | *\\*) . "$found_la" ;;
14831                 *) . "./$found_la" ;;
14832               esac
14833               libdir="$save_libdir"
14834                             for dep in $dependency_libs; do
14835                 case "$dep" in
14836                   -L*)
14837                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14838                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14839                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14840                       haveit=
14841                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14842                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14843                         if test -n "$GCC"; then
14844                           case $host_os in
14845                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14846                           esac
14847                         fi
14848                       fi
14849                       if test -z "$haveit"; then
14850                         haveit=
14851                         for x in $LDFLAGS $LIBRT; do
14852
14853   acl_save_prefix="$prefix"
14854   prefix="$acl_final_prefix"
14855   acl_save_exec_prefix="$exec_prefix"
14856   exec_prefix="$acl_final_exec_prefix"
14857   eval x=\"$x\"
14858   exec_prefix="$acl_save_exec_prefix"
14859   prefix="$acl_save_prefix"
14860
14861                           if test "X$x" = "X-L$additional_libdir"; then
14862                             haveit=yes
14863                             break
14864                           fi
14865                         done
14866                         if test -z "$haveit"; then
14867                           if test -d "$additional_libdir"; then
14868                                                         LIBRT="${LIBRT}${LIBRT:+ }-L$additional_libdir"
14869                           fi
14870                         fi
14871                         haveit=
14872                         for x in $LDFLAGS $LTLIBRT; do
14873
14874   acl_save_prefix="$prefix"
14875   prefix="$acl_final_prefix"
14876   acl_save_exec_prefix="$exec_prefix"
14877   exec_prefix="$acl_final_exec_prefix"
14878   eval x=\"$x\"
14879   exec_prefix="$acl_save_exec_prefix"
14880   prefix="$acl_save_prefix"
14881
14882                           if test "X$x" = "X-L$additional_libdir"; then
14883                             haveit=yes
14884                             break
14885                           fi
14886                         done
14887                         if test -z "$haveit"; then
14888                           if test -d "$additional_libdir"; then
14889                                                         LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$additional_libdir"
14890                           fi
14891                         fi
14892                       fi
14893                     fi
14894                     ;;
14895                   -R*)
14896                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14897                     if test "$enable_rpath" != no; then
14898                                                                   haveit=
14899                       for x in $rpathdirs; do
14900                         if test "X$x" = "X$dir"; then
14901                           haveit=yes
14902                           break
14903                         fi
14904                       done
14905                       if test -z "$haveit"; then
14906                         rpathdirs="$rpathdirs $dir"
14907                       fi
14908                                                                   haveit=
14909                       for x in $ltrpathdirs; do
14910                         if test "X$x" = "X$dir"; then
14911                           haveit=yes
14912                           break
14913                         fi
14914                       done
14915                       if test -z "$haveit"; then
14916                         ltrpathdirs="$ltrpathdirs $dir"
14917                       fi
14918                     fi
14919                     ;;
14920                   -l*)
14921                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14922                     ;;
14923                   *.la)
14924                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14925                     ;;
14926                   *)
14927                                         LIBRT="${LIBRT}${LIBRT:+ }$dep"
14928                     LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
14929                     ;;
14930                 esac
14931               done
14932             fi
14933           else
14934                                                             LIBRT="${LIBRT}${LIBRT:+ }-l$name"
14935             LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
14936           fi
14937         fi
14938       fi
14939     done
14940   done
14941   if test "X$rpathdirs" != "X"; then
14942     if test -n "$acl_hardcode_libdir_separator"; then
14943                         alldirs=
14944       for found_dir in $rpathdirs; do
14945         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14946       done
14947             acl_save_libdir="$libdir"
14948       libdir="$alldirs"
14949       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14950       libdir="$acl_save_libdir"
14951       LIBRT="${LIBRT}${LIBRT:+ }$flag"
14952     else
14953             for found_dir in $rpathdirs; do
14954         acl_save_libdir="$libdir"
14955         libdir="$found_dir"
14956         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14957         libdir="$acl_save_libdir"
14958         LIBRT="${LIBRT}${LIBRT:+ }$flag"
14959       done
14960     fi
14961   fi
14962   if test "X$ltrpathdirs" != "X"; then
14963             for found_dir in $ltrpathdirs; do
14964       LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
14965     done
14966   fi
14967
14968
14969
14970
14971
14972
14973
14974         ac_save_CPPFLAGS="$CPPFLAGS"
14975
14976   for element in $INCRT; do
14977     haveit=
14978     for x in $CPPFLAGS; do
14979
14980   acl_save_prefix="$prefix"
14981   prefix="$acl_final_prefix"
14982   acl_save_exec_prefix="$exec_prefix"
14983   exec_prefix="$acl_final_exec_prefix"
14984   eval x=\"$x\"
14985   exec_prefix="$acl_save_exec_prefix"
14986   prefix="$acl_save_prefix"
14987
14988       if test "X$x" = "X$element"; then
14989         haveit=yes
14990         break
14991       fi
14992     done
14993     if test -z "$haveit"; then
14994       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14995     fi
14996   done
14997
14998
14999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
15000 $as_echo_n "checking for librt... " >&6; }
15001 if ${ac_cv_librt+:} false; then :
15002   $as_echo_n "(cached) " >&6
15003 else
15004
15005     ac_save_LIBS="$LIBS"
15006                                 case " $LIBRT" in
15007       *" -l"*) LIBS="$LIBS $LIBRT" ;;
15008       *)       LIBS="$LIBRT $LIBS" ;;
15009     esac
15010     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h.  */
15012 #include <time.h>
15013 int
15014 main ()
15015 {
15016 clock_gettime (0, 0);
15017   ;
15018   return 0;
15019 }
15020 _ACEOF
15021 if ac_fn_c_try_link "$LINENO"; then :
15022   ac_cv_librt=yes
15023 else
15024   ac_cv_librt='no'
15025 fi
15026 rm -f core conftest.err conftest.$ac_objext \
15027     conftest$ac_exeext conftest.$ac_ext
15028     LIBS="$ac_save_LIBS"
15029
15030 fi
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
15032 $as_echo "$ac_cv_librt" >&6; }
15033   if test "$ac_cv_librt" = yes; then
15034     HAVE_LIBRT=yes
15035
15036 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
15037
15038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
15039 $as_echo_n "checking how to link with librt... " >&6; }
15040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
15041 $as_echo "$LIBRT" >&6; }
15042   else
15043     HAVE_LIBRT=no
15044             CPPFLAGS="$ac_save_CPPFLAGS"
15045     LIBRT=
15046     LTLIBRT=
15047     LIBRT_PREFIX=
15048   fi
15049
15050
15051
15052
15053
15054
15055
15056   gnutls_needs_librt=yes
15057 fi
15058
15059 ac_have_unicode=no
15060 if test "$ac_cv_func_iconv" != "yes";then
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074     use_additional=yes
15075
15076   acl_save_prefix="$prefix"
15077   prefix="$acl_final_prefix"
15078   acl_save_exec_prefix="$exec_prefix"
15079   exec_prefix="$acl_final_exec_prefix"
15080
15081     eval additional_includedir=\"$includedir\"
15082     eval additional_libdir=\"$libdir\"
15083
15084   exec_prefix="$acl_save_exec_prefix"
15085   prefix="$acl_save_prefix"
15086
15087
15088 # Check whether --with-libiconv-prefix was given.
15089 if test "${with_libiconv_prefix+set}" = set; then :
15090   withval=$with_libiconv_prefix;
15091     if test "X$withval" = "Xno"; then
15092       use_additional=no
15093     else
15094       if test "X$withval" = "X"; then
15095
15096   acl_save_prefix="$prefix"
15097   prefix="$acl_final_prefix"
15098   acl_save_exec_prefix="$exec_prefix"
15099   exec_prefix="$acl_final_exec_prefix"
15100
15101           eval additional_includedir=\"$includedir\"
15102           eval additional_libdir=\"$libdir\"
15103
15104   exec_prefix="$acl_save_exec_prefix"
15105   prefix="$acl_save_prefix"
15106
15107       else
15108         additional_includedir="$withval/include"
15109         additional_libdir="$withval/$acl_libdirstem"
15110         if test "$acl_libdirstem2" != "$acl_libdirstem" \
15111            && ! test -d "$withval/$acl_libdirstem"; then
15112           additional_libdir="$withval/$acl_libdirstem2"
15113         fi
15114       fi
15115     fi
15116
15117 fi
15118
15119       LIBICONV=
15120   LTLIBICONV=
15121   INCICONV=
15122   LIBICONV_PREFIX=
15123       HAVE_LIBICONV=
15124   rpathdirs=
15125   ltrpathdirs=
15126   names_already_handled=
15127   names_next_round='iconv '
15128   while test -n "$names_next_round"; do
15129     names_this_round="$names_next_round"
15130     names_next_round=
15131     for name in $names_this_round; do
15132       already_handled=
15133       for n in $names_already_handled; do
15134         if test "$n" = "$name"; then
15135           already_handled=yes
15136           break
15137         fi
15138       done
15139       if test -z "$already_handled"; then
15140         names_already_handled="$names_already_handled $name"
15141                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15142         eval value=\"\$HAVE_LIB$uppername\"
15143         if test -n "$value"; then
15144           if test "$value" = yes; then
15145             eval value=\"\$LIB$uppername\"
15146             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15147             eval value=\"\$LTLIB$uppername\"
15148             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15149           else
15150                                     :
15151           fi
15152         else
15153                               found_dir=
15154           found_la=
15155           found_so=
15156           found_a=
15157           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15158           if test -n "$acl_shlibext"; then
15159             shrext=".$acl_shlibext"             # typically: shrext=.so
15160           else
15161             shrext=
15162           fi
15163           if test $use_additional = yes; then
15164             dir="$additional_libdir"
15165                                     if test -n "$acl_shlibext"; then
15166               if test -f "$dir/$libname$shrext"; then
15167                 found_dir="$dir"
15168                 found_so="$dir/$libname$shrext"
15169               else
15170                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15171                   ver=`(cd "$dir" && \
15172                         for f in "$libname$shrext".*; do echo "$f"; done \
15173                         | sed -e "s,^$libname$shrext\\\\.,," \
15174                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15175                         | sed 1q ) 2>/dev/null`
15176                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15177                     found_dir="$dir"
15178                     found_so="$dir/$libname$shrext.$ver"
15179                   fi
15180                 else
15181                   eval library_names=\"$acl_library_names_spec\"
15182                   for f in $library_names; do
15183                     if test -f "$dir/$f"; then
15184                       found_dir="$dir"
15185                       found_so="$dir/$f"
15186                       break
15187                     fi
15188                   done
15189                 fi
15190               fi
15191             fi
15192                         if test "X$found_dir" = "X"; then
15193               if test -f "$dir/$libname.$acl_libext"; then
15194                 found_dir="$dir"
15195                 found_a="$dir/$libname.$acl_libext"
15196               fi
15197             fi
15198             if test "X$found_dir" != "X"; then
15199               if test -f "$dir/$libname.la"; then
15200                 found_la="$dir/$libname.la"
15201               fi
15202             fi
15203           fi
15204           if test "X$found_dir" = "X"; then
15205             for x in $LDFLAGS $LTLIBICONV; do
15206
15207   acl_save_prefix="$prefix"
15208   prefix="$acl_final_prefix"
15209   acl_save_exec_prefix="$exec_prefix"
15210   exec_prefix="$acl_final_exec_prefix"
15211   eval x=\"$x\"
15212   exec_prefix="$acl_save_exec_prefix"
15213   prefix="$acl_save_prefix"
15214
15215               case "$x" in
15216                 -L*)
15217                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15218                                     if test -n "$acl_shlibext"; then
15219                     if test -f "$dir/$libname$shrext"; then
15220                       found_dir="$dir"
15221                       found_so="$dir/$libname$shrext"
15222                     else
15223                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15224                         ver=`(cd "$dir" && \
15225                               for f in "$libname$shrext".*; do echo "$f"; done \
15226                               | sed -e "s,^$libname$shrext\\\\.,," \
15227                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15228                               | sed 1q ) 2>/dev/null`
15229                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15230                           found_dir="$dir"
15231                           found_so="$dir/$libname$shrext.$ver"
15232                         fi
15233                       else
15234                         eval library_names=\"$acl_library_names_spec\"
15235                         for f in $library_names; do
15236                           if test -f "$dir/$f"; then
15237                             found_dir="$dir"
15238                             found_so="$dir/$f"
15239                             break
15240                           fi
15241                         done
15242                       fi
15243                     fi
15244                   fi
15245                                     if test "X$found_dir" = "X"; then
15246                     if test -f "$dir/$libname.$acl_libext"; then
15247                       found_dir="$dir"
15248                       found_a="$dir/$libname.$acl_libext"
15249                     fi
15250                   fi
15251                   if test "X$found_dir" != "X"; then
15252                     if test -f "$dir/$libname.la"; then
15253                       found_la="$dir/$libname.la"
15254                     fi
15255                   fi
15256                   ;;
15257               esac
15258               if test "X$found_dir" != "X"; then
15259                 break
15260               fi
15261             done
15262           fi
15263           if test "X$found_dir" != "X"; then
15264                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15265             if test "X$found_so" != "X"; then
15266                                                         if test "$enable_rpath" = no \
15267                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15268                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15269                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15270               else
15271                                                                                 haveit=
15272                 for x in $ltrpathdirs; do
15273                   if test "X$x" = "X$found_dir"; then
15274                     haveit=yes
15275                     break
15276                   fi
15277                 done
15278                 if test -z "$haveit"; then
15279                   ltrpathdirs="$ltrpathdirs $found_dir"
15280                 fi
15281                                 if test "$acl_hardcode_direct" = yes; then
15282                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15283                 else
15284                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15285                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15286                                                             haveit=
15287                     for x in $rpathdirs; do
15288                       if test "X$x" = "X$found_dir"; then
15289                         haveit=yes
15290                         break
15291                       fi
15292                     done
15293                     if test -z "$haveit"; then
15294                       rpathdirs="$rpathdirs $found_dir"
15295                     fi
15296                   else
15297                                                                                 haveit=
15298                     for x in $LDFLAGS $LIBICONV; do
15299
15300   acl_save_prefix="$prefix"
15301   prefix="$acl_final_prefix"
15302   acl_save_exec_prefix="$exec_prefix"
15303   exec_prefix="$acl_final_exec_prefix"
15304   eval x=\"$x\"
15305   exec_prefix="$acl_save_exec_prefix"
15306   prefix="$acl_save_prefix"
15307
15308                       if test "X$x" = "X-L$found_dir"; then
15309                         haveit=yes
15310                         break
15311                       fi
15312                     done
15313                     if test -z "$haveit"; then
15314                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15315                     fi
15316                     if test "$acl_hardcode_minus_L" != no; then
15317                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15318                     else
15319                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15320                     fi
15321                   fi
15322                 fi
15323               fi
15324             else
15325               if test "X$found_a" != "X"; then
15326                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15327               else
15328                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15329               fi
15330             fi
15331                         additional_includedir=
15332             case "$found_dir" in
15333               */$acl_libdirstem | */$acl_libdirstem/)
15334                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15335                 if test "$name" = 'iconv'; then
15336                   LIBICONV_PREFIX="$basedir"
15337                 fi
15338                 additional_includedir="$basedir/include"
15339                 ;;
15340               */$acl_libdirstem2 | */$acl_libdirstem2/)
15341                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15342                 if test "$name" = 'iconv'; then
15343                   LIBICONV_PREFIX="$basedir"
15344                 fi
15345                 additional_includedir="$basedir/include"
15346                 ;;
15347             esac
15348             if test "X$additional_includedir" != "X"; then
15349                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15350                 haveit=
15351                 if test "X$additional_includedir" = "X/usr/local/include"; then
15352                   if test -n "$GCC"; then
15353                     case $host_os in
15354                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15355                     esac
15356                   fi
15357                 fi
15358                 if test -z "$haveit"; then
15359                   for x in $CPPFLAGS $INCICONV; do
15360
15361   acl_save_prefix="$prefix"
15362   prefix="$acl_final_prefix"
15363   acl_save_exec_prefix="$exec_prefix"
15364   exec_prefix="$acl_final_exec_prefix"
15365   eval x=\"$x\"
15366   exec_prefix="$acl_save_exec_prefix"
15367   prefix="$acl_save_prefix"
15368
15369                     if test "X$x" = "X-I$additional_includedir"; then
15370                       haveit=yes
15371                       break
15372                     fi
15373                   done
15374                   if test -z "$haveit"; then
15375                     if test -d "$additional_includedir"; then
15376                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15377                     fi
15378                   fi
15379                 fi
15380               fi
15381             fi
15382                         if test -n "$found_la"; then
15383                                                         save_libdir="$libdir"
15384               case "$found_la" in
15385                 */* | *\\*) . "$found_la" ;;
15386                 *) . "./$found_la" ;;
15387               esac
15388               libdir="$save_libdir"
15389                             for dep in $dependency_libs; do
15390                 case "$dep" in
15391                   -L*)
15392                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15393                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15394                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15395                       haveit=
15396                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15397                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15398                         if test -n "$GCC"; then
15399                           case $host_os in
15400                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15401                           esac
15402                         fi
15403                       fi
15404                       if test -z "$haveit"; then
15405                         haveit=
15406                         for x in $LDFLAGS $LIBICONV; do
15407
15408   acl_save_prefix="$prefix"
15409   prefix="$acl_final_prefix"
15410   acl_save_exec_prefix="$exec_prefix"
15411   exec_prefix="$acl_final_exec_prefix"
15412   eval x=\"$x\"
15413   exec_prefix="$acl_save_exec_prefix"
15414   prefix="$acl_save_prefix"
15415
15416                           if test "X$x" = "X-L$additional_libdir"; then
15417                             haveit=yes
15418                             break
15419                           fi
15420                         done
15421                         if test -z "$haveit"; then
15422                           if test -d "$additional_libdir"; then
15423                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15424                           fi
15425                         fi
15426                         haveit=
15427                         for x in $LDFLAGS $LTLIBICONV; do
15428
15429   acl_save_prefix="$prefix"
15430   prefix="$acl_final_prefix"
15431   acl_save_exec_prefix="$exec_prefix"
15432   exec_prefix="$acl_final_exec_prefix"
15433   eval x=\"$x\"
15434   exec_prefix="$acl_save_exec_prefix"
15435   prefix="$acl_save_prefix"
15436
15437                           if test "X$x" = "X-L$additional_libdir"; then
15438                             haveit=yes
15439                             break
15440                           fi
15441                         done
15442                         if test -z "$haveit"; then
15443                           if test -d "$additional_libdir"; then
15444                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15445                           fi
15446                         fi
15447                       fi
15448                     fi
15449                     ;;
15450                   -R*)
15451                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15452                     if test "$enable_rpath" != no; then
15453                                                                   haveit=
15454                       for x in $rpathdirs; do
15455                         if test "X$x" = "X$dir"; then
15456                           haveit=yes
15457                           break
15458                         fi
15459                       done
15460                       if test -z "$haveit"; then
15461                         rpathdirs="$rpathdirs $dir"
15462                       fi
15463                                                                   haveit=
15464                       for x in $ltrpathdirs; do
15465                         if test "X$x" = "X$dir"; then
15466                           haveit=yes
15467                           break
15468                         fi
15469                       done
15470                       if test -z "$haveit"; then
15471                         ltrpathdirs="$ltrpathdirs $dir"
15472                       fi
15473                     fi
15474                     ;;
15475                   -l*)
15476                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15477                     ;;
15478                   *.la)
15479                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15480                     ;;
15481                   *)
15482                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15483                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15484                     ;;
15485                 esac
15486               done
15487             fi
15488           else
15489                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15490             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15491           fi
15492         fi
15493       fi
15494     done
15495   done
15496   if test "X$rpathdirs" != "X"; then
15497     if test -n "$acl_hardcode_libdir_separator"; then
15498                         alldirs=
15499       for found_dir in $rpathdirs; do
15500         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15501       done
15502             acl_save_libdir="$libdir"
15503       libdir="$alldirs"
15504       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15505       libdir="$acl_save_libdir"
15506       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15507     else
15508             for found_dir in $rpathdirs; do
15509         acl_save_libdir="$libdir"
15510         libdir="$found_dir"
15511         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15512         libdir="$acl_save_libdir"
15513         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15514       done
15515     fi
15516   fi
15517   if test "X$ltrpathdirs" != "X"; then
15518             for found_dir in $ltrpathdirs; do
15519       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15520     done
15521   fi
15522
15523
15524
15525
15526
15527
15528
15529         ac_save_CPPFLAGS="$CPPFLAGS"
15530
15531   for element in $INCICONV; do
15532     haveit=
15533     for x in $CPPFLAGS; do
15534
15535   acl_save_prefix="$prefix"
15536   prefix="$acl_final_prefix"
15537   acl_save_exec_prefix="$exec_prefix"
15538   exec_prefix="$acl_final_exec_prefix"
15539   eval x=\"$x\"
15540   exec_prefix="$acl_save_exec_prefix"
15541   prefix="$acl_save_prefix"
15542
15543       if test "X$x" = "X$element"; then
15544         haveit=yes
15545         break
15546       fi
15547     done
15548     if test -z "$haveit"; then
15549       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15550     fi
15551   done
15552
15553
15554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv" >&5
15555 $as_echo_n "checking for libiconv... " >&6; }
15556 if ${ac_cv_libiconv+:} false; then :
15557   $as_echo_n "(cached) " >&6
15558 else
15559
15560     ac_save_LIBS="$LIBS"
15561                                 case " $LIBICONV" in
15562       *" -l"*) LIBS="$LIBS $LIBICONV" ;;
15563       *)       LIBS="$LIBICONV $LIBS" ;;
15564     esac
15565     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566 /* end confdefs.h.  */
15567 #include <iconv.h>
15568 int
15569 main ()
15570 {
15571 iconv (0, 0, 0, 0, 0);
15572   ;
15573   return 0;
15574 }
15575 _ACEOF
15576 if ac_fn_c_try_link "$LINENO"; then :
15577   ac_cv_libiconv=yes
15578 else
15579   ac_cv_libiconv='no'
15580 fi
15581 rm -f core conftest.err conftest.$ac_objext \
15582     conftest$ac_exeext conftest.$ac_ext
15583     LIBS="$ac_save_LIBS"
15584
15585 fi
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libiconv" >&5
15587 $as_echo "$ac_cv_libiconv" >&6; }
15588   if test "$ac_cv_libiconv" = yes; then
15589     HAVE_LIBICONV=yes
15590
15591 $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
15592
15593     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15594 $as_echo_n "checking how to link with libiconv... " >&6; }
15595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15596 $as_echo "$LIBICONV" >&6; }
15597   else
15598     HAVE_LIBICONV=no
15599             CPPFLAGS="$ac_save_CPPFLAGS"
15600     LIBICONV=
15601     LTLIBICONV=
15602     LIBICONV_PREFIX=
15603   fi
15604
15605
15606
15607
15608
15609
15610
15611   if test "$HAVE_LIBICONV" = "yes";then
15612     ac_have_unicode=yes
15613   fi
15614 else
15615   ac_have_unicode=yes
15616 fi
15617
15618 if test "$ac_have_unicode" != "yes";then
15619   if test "$have_win" = "yes";then
15620     ac_have_unicode=yes
15621   fi
15622 fi
15623
15624
15625
15626
15627
15628
15629           LIBC_FATAL_STDERR_=1
15630   export LIBC_FATAL_STDERR_
15631
15632 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15633 if test "x$ac_cv_type_size_t" = xyes; then :
15634
15635 else
15636
15637 cat >>confdefs.h <<_ACEOF
15638 #define size_t unsigned int
15639 _ACEOF
15640
15641 fi
15642
15643 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15644 # for constant arguments.  Useless!
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15646 $as_echo_n "checking for working alloca.h... " >&6; }
15647 if ${ac_cv_working_alloca_h+:} false; then :
15648   $as_echo_n "(cached) " >&6
15649 else
15650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651 /* end confdefs.h.  */
15652 #include <alloca.h>
15653 int
15654 main ()
15655 {
15656 char *p = (char *) alloca (2 * sizeof (int));
15657                           if (p) return 0;
15658   ;
15659   return 0;
15660 }
15661 _ACEOF
15662 if ac_fn_c_try_link "$LINENO"; then :
15663   ac_cv_working_alloca_h=yes
15664 else
15665   ac_cv_working_alloca_h=no
15666 fi
15667 rm -f core conftest.err conftest.$ac_objext \
15668     conftest$ac_exeext conftest.$ac_ext
15669 fi
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15671 $as_echo "$ac_cv_working_alloca_h" >&6; }
15672 if test $ac_cv_working_alloca_h = yes; then
15673
15674 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15675
15676 fi
15677
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15679 $as_echo_n "checking for alloca... " >&6; }
15680 if ${ac_cv_func_alloca_works+:} false; then :
15681   $as_echo_n "(cached) " >&6
15682 else
15683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684 /* end confdefs.h.  */
15685 #ifdef __GNUC__
15686 # define alloca __builtin_alloca
15687 #else
15688 # ifdef _MSC_VER
15689 #  include <malloc.h>
15690 #  define alloca _alloca
15691 # else
15692 #  ifdef HAVE_ALLOCA_H
15693 #   include <alloca.h>
15694 #  else
15695 #   ifdef _AIX
15696  #pragma alloca
15697 #   else
15698 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15699 void *alloca (size_t);
15700 #    endif
15701 #   endif
15702 #  endif
15703 # endif
15704 #endif
15705
15706 int
15707 main ()
15708 {
15709 char *p = (char *) alloca (1);
15710                                     if (p) return 0;
15711   ;
15712   return 0;
15713 }
15714 _ACEOF
15715 if ac_fn_c_try_link "$LINENO"; then :
15716   ac_cv_func_alloca_works=yes
15717 else
15718   ac_cv_func_alloca_works=no
15719 fi
15720 rm -f core conftest.err conftest.$ac_objext \
15721     conftest$ac_exeext conftest.$ac_ext
15722 fi
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15724 $as_echo "$ac_cv_func_alloca_works" >&6; }
15725
15726 if test $ac_cv_func_alloca_works = yes; then
15727
15728 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15729
15730 else
15731   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15732 # that cause trouble.  Some versions do not even contain alloca or
15733 # contain a buggy version.  If you still want to use their alloca,
15734 # use ar to extract alloca.o from them instead of compiling alloca.c.
15735
15736
15737
15738
15739
15740 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15741
15742 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15743
15744
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15746 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15747 if ${ac_cv_os_cray+:} false; then :
15748   $as_echo_n "(cached) " >&6
15749 else
15750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h.  */
15752 #if defined CRAY && ! defined CRAY2
15753 webecray
15754 #else
15755 wenotbecray
15756 #endif
15757
15758 _ACEOF
15759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15760   $EGREP "webecray" >/dev/null 2>&1; then :
15761   ac_cv_os_cray=yes
15762 else
15763   ac_cv_os_cray=no
15764 fi
15765 rm -f conftest*
15766
15767 fi
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15769 $as_echo "$ac_cv_os_cray" >&6; }
15770 if test $ac_cv_os_cray = yes; then
15771   for ac_func in _getb67 GETB67 getb67; do
15772     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15773 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15774 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15775
15776 cat >>confdefs.h <<_ACEOF
15777 #define CRAY_STACKSEG_END $ac_func
15778 _ACEOF
15779
15780     break
15781 fi
15782
15783   done
15784 fi
15785
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15787 $as_echo_n "checking stack direction for C alloca... " >&6; }
15788 if ${ac_cv_c_stack_direction+:} false; then :
15789   $as_echo_n "(cached) " >&6
15790 else
15791   if test "$cross_compiling" = yes; then :
15792   ac_cv_c_stack_direction=0
15793 else
15794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15795 /* end confdefs.h.  */
15796 $ac_includes_default
15797 int
15798 find_stack_direction (int *addr, int depth)
15799 {
15800   int dir, dummy = 0;
15801   if (! addr)
15802     addr = &dummy;
15803   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15804   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15805   return dir + dummy;
15806 }
15807
15808 int
15809 main (int argc, char **argv)
15810 {
15811   return find_stack_direction (0, argc + !argv + 20) < 0;
15812 }
15813 _ACEOF
15814 if ac_fn_c_try_run "$LINENO"; then :
15815   ac_cv_c_stack_direction=1
15816 else
15817   ac_cv_c_stack_direction=-1
15818 fi
15819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15820   conftest.$ac_objext conftest.beam conftest.$ac_ext
15821 fi
15822
15823 fi
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15825 $as_echo "$ac_cv_c_stack_direction" >&6; }
15826 cat >>confdefs.h <<_ACEOF
15827 #define STACK_DIRECTION $ac_cv_c_stack_direction
15828 _ACEOF
15829
15830
15831 fi
15832
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15834 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15835 if ${ac_cv_c_restrict+:} false; then :
15836   $as_echo_n "(cached) " >&6
15837 else
15838   ac_cv_c_restrict=no
15839    # The order here caters to the fact that C++ does not require restrict.
15840    for ac_kw in __restrict __restrict__ _Restrict restrict; do
15841      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h.  */
15843 typedef int *int_ptr;
15844            int foo (int_ptr $ac_kw ip) { return ip[0]; }
15845            int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
15846            int bar (int ip[$ac_kw]) { return ip[0]; }
15847
15848 int
15849 main ()
15850 {
15851 int s[1];
15852            int *$ac_kw t = s;
15853            t[0] = 0;
15854            return foo (t) + bar (t);
15855
15856   ;
15857   return 0;
15858 }
15859 _ACEOF
15860 if ac_fn_c_try_compile "$LINENO"; then :
15861   ac_cv_c_restrict=$ac_kw
15862 fi
15863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15864      test "$ac_cv_c_restrict" != no && break
15865    done
15866
15867 fi
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15869 $as_echo "$ac_cv_c_restrict" >&6; }
15870
15871  case $ac_cv_c_restrict in
15872    restrict) ;;
15873    no) $as_echo "#define restrict /**/" >>confdefs.h
15874  ;;
15875    *)  cat >>confdefs.h <<_ACEOF
15876 #define restrict $ac_cv_c_restrict
15877 _ACEOF
15878  ;;
15879  esac
15880
15881
15882
15883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15884 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15885 if ${gl_cv_have_include_next+:} false; then :
15886   $as_echo_n "(cached) " >&6
15887 else
15888   rm -rf conftestd1a conftestd1b conftestd2
15889      mkdir conftestd1a conftestd1b conftestd2
15890                                                   cat <<EOF > conftestd1a/conftest.h
15891 #define DEFINED_IN_CONFTESTD1
15892 #include_next <conftest.h>
15893 #ifdef DEFINED_IN_CONFTESTD2
15894 int foo;
15895 #else
15896 #error "include_next doesn't work"
15897 #endif
15898 EOF
15899      cat <<EOF > conftestd1b/conftest.h
15900 #define DEFINED_IN_CONFTESTD1
15901 #include <stdio.h>
15902 #include_next <conftest.h>
15903 #ifdef DEFINED_IN_CONFTESTD2
15904 int foo;
15905 #else
15906 #error "include_next doesn't work"
15907 #endif
15908 EOF
15909      cat <<EOF > conftestd2/conftest.h
15910 #ifndef DEFINED_IN_CONFTESTD1
15911 #error "include_next test doesn't work"
15912 #endif
15913 #define DEFINED_IN_CONFTESTD2
15914 EOF
15915      gl_save_CPPFLAGS="$CPPFLAGS"
15916      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15917      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h.  */
15919 #include <conftest.h>
15920 _ACEOF
15921 if ac_fn_c_try_compile "$LINENO"; then :
15922   gl_cv_have_include_next=yes
15923 else
15924   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15925         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h.  */
15927 #include <conftest.h>
15928 _ACEOF
15929 if ac_fn_c_try_compile "$LINENO"; then :
15930   gl_cv_have_include_next=buggy
15931 else
15932   gl_cv_have_include_next=no
15933 fi
15934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15935
15936 fi
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15938      CPPFLAGS="$gl_save_CPPFLAGS"
15939      rm -rf conftestd1a conftestd1b conftestd2
15940
15941 fi
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15943 $as_echo "$gl_cv_have_include_next" >&6; }
15944   PRAGMA_SYSTEM_HEADER=
15945   if test $gl_cv_have_include_next = yes; then
15946     INCLUDE_NEXT=include_next
15947     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15948     if test -n "$GCC"; then
15949       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15950     fi
15951   else
15952     if test $gl_cv_have_include_next = buggy; then
15953       INCLUDE_NEXT=include
15954       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15955     else
15956       INCLUDE_NEXT=include
15957       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15958     fi
15959   fi
15960
15961
15962
15963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15964 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15965 if ${gl_cv_pragma_columns+:} false; then :
15966   $as_echo_n "(cached) " >&6
15967 else
15968        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969 /* end confdefs.h.  */
15970
15971 #ifdef __TANDEM
15972 choke me
15973 #endif
15974
15975 _ACEOF
15976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15977   $EGREP "choke me" >/dev/null 2>&1; then :
15978   gl_cv_pragma_columns=yes
15979 else
15980   gl_cv_pragma_columns=no
15981 fi
15982 rm -f conftest*
15983
15984
15985 fi
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15987 $as_echo "$gl_cv_pragma_columns" >&6; }
15988   if test $gl_cv_pragma_columns = yes; then
15989     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15990   else
15991     PRAGMA_COLUMNS=
15992   fi
15993
15994
15995
15996
15997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
15998 $as_echo_n "checking for complete errno.h... " >&6; }
15999 if ${gl_cv_header_errno_h_complete+:} false; then :
16000   $as_echo_n "(cached) " >&6
16001 else
16002
16003     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004 /* end confdefs.h.  */
16005
16006 #include <errno.h>
16007 #if !defined ETXTBSY
16008 booboo
16009 #endif
16010 #if !defined ENOMSG
16011 booboo
16012 #endif
16013 #if !defined EIDRM
16014 booboo
16015 #endif
16016 #if !defined ENOLINK
16017 booboo
16018 #endif
16019 #if !defined EPROTO
16020 booboo
16021 #endif
16022 #if !defined EMULTIHOP
16023 booboo
16024 #endif
16025 #if !defined EBADMSG
16026 booboo
16027 #endif
16028 #if !defined EOVERFLOW
16029 booboo
16030 #endif
16031 #if !defined ENOTSUP
16032 booboo
16033 #endif
16034 #if !defined ENETRESET
16035 booboo
16036 #endif
16037 #if !defined ECONNABORTED
16038 booboo
16039 #endif
16040 #if !defined ESTALE
16041 booboo
16042 #endif
16043 #if !defined EDQUOT
16044 booboo
16045 #endif
16046 #if !defined ECANCELED
16047 booboo
16048 #endif
16049 #if !defined EOWNERDEAD
16050 booboo
16051 #endif
16052 #if !defined ENOTRECOVERABLE
16053 booboo
16054 #endif
16055 #if !defined EILSEQ
16056 booboo
16057 #endif
16058
16059 _ACEOF
16060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16061   $EGREP "booboo" >/dev/null 2>&1; then :
16062   gl_cv_header_errno_h_complete=no
16063 else
16064   gl_cv_header_errno_h_complete=yes
16065 fi
16066 rm -f conftest*
16067
16068
16069 fi
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
16071 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
16072   if test $gl_cv_header_errno_h_complete = yes; then
16073     ERRNO_H=''
16074   else
16075
16076
16077
16078
16079
16080
16081
16082
16083      if test $gl_cv_have_include_next = yes; then
16084        gl_cv_next_errno_h='<'errno.h'>'
16085      else
16086        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
16087 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
16088 if ${gl_cv_next_errno_h+:} false; then :
16089   $as_echo_n "(cached) " >&6
16090 else
16091
16092
16093
16094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16095 /* end confdefs.h.  */
16096 #include <errno.h>
16097 _ACEOF
16098                 case "$host_os" in
16099     aix*) gl_absname_cpp="$ac_cpp -C" ;;
16100     *)    gl_absname_cpp="$ac_cpp" ;;
16101   esac
16102
16103   case "$host_os" in
16104     mingw*)
16105                                           gl_dirsep_regex='[/\\]'
16106       ;;
16107     *)
16108       gl_dirsep_regex='\/'
16109       ;;
16110   esac
16111       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16112   gl_header_literal_regex=`echo 'errno.h' \
16113                            | sed -e "$gl_make_literal_regex_sed"`
16114   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16115       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16116       s|^/[^/]|//&|
16117       p
16118       q
16119     }'
16120
16121         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16122   sed -n "$gl_absolute_header_sed"`
16123
16124            gl_header=$gl_cv_absolute_errno_h
16125            gl_cv_next_errno_h='"'$gl_header'"'
16126
16127
16128 fi
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
16130 $as_echo "$gl_cv_next_errno_h" >&6; }
16131      fi
16132      NEXT_ERRNO_H=$gl_cv_next_errno_h
16133
16134      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16135        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16136        gl_next_as_first_directive='<'errno.h'>'
16137      else
16138        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16139        gl_next_as_first_directive=$gl_cv_next_errno_h
16140      fi
16141      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
16142
16143
16144
16145
16146     ERRNO_H='errno.h'
16147   fi
16148
16149    if test -n "$ERRNO_H"; then
16150   GL_GENERATE_ERRNO_H_TRUE=
16151   GL_GENERATE_ERRNO_H_FALSE='#'
16152 else
16153   GL_GENERATE_ERRNO_H_TRUE='#'
16154   GL_GENERATE_ERRNO_H_FALSE=
16155 fi
16156
16157
16158   if test -n "$ERRNO_H"; then
16159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
16160 $as_echo_n "checking for EMULTIHOP value... " >&6; }
16161 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
16162   $as_echo_n "(cached) " >&6
16163 else
16164
16165       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166 /* end confdefs.h.  */
16167
16168 #include <errno.h>
16169 #ifdef EMULTIHOP
16170 yes
16171 #endif
16172
16173 _ACEOF
16174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16175   $EGREP "yes" >/dev/null 2>&1; then :
16176   gl_cv_header_errno_h_EMULTIHOP=yes
16177 else
16178   gl_cv_header_errno_h_EMULTIHOP=no
16179 fi
16180 rm -f conftest*
16181
16182       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
16183         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16184 /* end confdefs.h.  */
16185
16186 #define _XOPEN_SOURCE_EXTENDED 1
16187 #include <errno.h>
16188 #ifdef EMULTIHOP
16189 yes
16190 #endif
16191
16192 _ACEOF
16193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16194   $EGREP "yes" >/dev/null 2>&1; then :
16195   gl_cv_header_errno_h_EMULTIHOP=hidden
16196 fi
16197 rm -f conftest*
16198
16199         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
16200                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
16201 #define _XOPEN_SOURCE_EXTENDED 1
16202 #include <errno.h>
16203 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16204 #include <stdio.h>
16205 #include <stdlib.h>
16206 "; then :
16207
16208 fi
16209
16210         fi
16211       fi
16212
16213 fi
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
16215 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
16216     case $gl_cv_header_errno_h_EMULTIHOP in
16217       yes | no)
16218         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
16219         ;;
16220       *)
16221         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
16222         ;;
16223     esac
16224
16225
16226   fi
16227
16228
16229   if test -n "$ERRNO_H"; then
16230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
16231 $as_echo_n "checking for ENOLINK value... " >&6; }
16232 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
16233   $as_echo_n "(cached) " >&6
16234 else
16235
16236       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16237 /* end confdefs.h.  */
16238
16239 #include <errno.h>
16240 #ifdef ENOLINK
16241 yes
16242 #endif
16243
16244 _ACEOF
16245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16246   $EGREP "yes" >/dev/null 2>&1; then :
16247   gl_cv_header_errno_h_ENOLINK=yes
16248 else
16249   gl_cv_header_errno_h_ENOLINK=no
16250 fi
16251 rm -f conftest*
16252
16253       if test $gl_cv_header_errno_h_ENOLINK = no; then
16254         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h.  */
16256
16257 #define _XOPEN_SOURCE_EXTENDED 1
16258 #include <errno.h>
16259 #ifdef ENOLINK
16260 yes
16261 #endif
16262
16263 _ACEOF
16264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16265   $EGREP "yes" >/dev/null 2>&1; then :
16266   gl_cv_header_errno_h_ENOLINK=hidden
16267 fi
16268 rm -f conftest*
16269
16270         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
16271                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
16272 #define _XOPEN_SOURCE_EXTENDED 1
16273 #include <errno.h>
16274 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16275 #include <stdio.h>
16276 #include <stdlib.h>
16277 "; then :
16278
16279 fi
16280
16281         fi
16282       fi
16283
16284 fi
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
16286 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
16287     case $gl_cv_header_errno_h_ENOLINK in
16288       yes | no)
16289         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
16290         ;;
16291       *)
16292         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
16293         ;;
16294     esac
16295
16296
16297   fi
16298
16299
16300   if test -n "$ERRNO_H"; then
16301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
16302 $as_echo_n "checking for EOVERFLOW value... " >&6; }
16303 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
16304   $as_echo_n "(cached) " >&6
16305 else
16306
16307       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16308 /* end confdefs.h.  */
16309
16310 #include <errno.h>
16311 #ifdef EOVERFLOW
16312 yes
16313 #endif
16314
16315 _ACEOF
16316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16317   $EGREP "yes" >/dev/null 2>&1; then :
16318   gl_cv_header_errno_h_EOVERFLOW=yes
16319 else
16320   gl_cv_header_errno_h_EOVERFLOW=no
16321 fi
16322 rm -f conftest*
16323
16324       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
16325         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h.  */
16327
16328 #define _XOPEN_SOURCE_EXTENDED 1
16329 #include <errno.h>
16330 #ifdef EOVERFLOW
16331 yes
16332 #endif
16333
16334 _ACEOF
16335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16336   $EGREP "yes" >/dev/null 2>&1; then :
16337   gl_cv_header_errno_h_EOVERFLOW=hidden
16338 fi
16339 rm -f conftest*
16340
16341         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
16342                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
16343 #define _XOPEN_SOURCE_EXTENDED 1
16344 #include <errno.h>
16345 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16346 #include <stdio.h>
16347 #include <stdlib.h>
16348 "; then :
16349
16350 fi
16351
16352         fi
16353       fi
16354
16355 fi
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
16357 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
16358     case $gl_cv_header_errno_h_EOVERFLOW in
16359       yes | no)
16360         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
16361         ;;
16362       *)
16363         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
16364         ;;
16365     esac
16366
16367
16368   fi
16369
16370
16371
16372
16373
16374
16375      GNULIB_FCHMODAT=0;
16376   GNULIB_FSTAT=0;
16377   GNULIB_FSTATAT=0;
16378   GNULIB_FUTIMENS=0;
16379   GNULIB_LCHMOD=0;
16380   GNULIB_LSTAT=0;
16381   GNULIB_MKDIRAT=0;
16382   GNULIB_MKFIFO=0;
16383   GNULIB_MKFIFOAT=0;
16384   GNULIB_MKNOD=0;
16385   GNULIB_MKNODAT=0;
16386   GNULIB_STAT=0;
16387   GNULIB_UTIMENSAT=0;
16388     HAVE_FCHMODAT=1;
16389   HAVE_FSTATAT=1;
16390   HAVE_FUTIMENS=1;
16391   HAVE_LCHMOD=1;
16392   HAVE_LSTAT=1;
16393   HAVE_MKDIRAT=1;
16394   HAVE_MKFIFO=1;
16395   HAVE_MKFIFOAT=1;
16396   HAVE_MKNOD=1;
16397   HAVE_MKNODAT=1;
16398   HAVE_UTIMENSAT=1;
16399   REPLACE_FSTAT=0;
16400   REPLACE_FSTATAT=0;
16401   REPLACE_FUTIMENS=0;
16402   REPLACE_LSTAT=0;
16403   REPLACE_MKDIR=0;
16404   REPLACE_MKFIFO=0;
16405   REPLACE_MKNOD=0;
16406   REPLACE_STAT=0;
16407   REPLACE_UTIMENSAT=0;
16408
16409
16410
16411
16412
16413   for ac_func in $gl_func_list
16414 do :
16415   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16416 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16417 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16418   cat >>confdefs.h <<_ACEOF
16419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16420 _ACEOF
16421
16422 fi
16423 done
16424
16425
16426
16427
16428
16429
16430
16431   :
16432
16433
16434
16435
16436
16437   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
16438     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
16439
16440 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
16441
16442   else
16443     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
16444   fi
16445
16446
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
16448 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16449 if ${ac_cv_header_stat_broken+:} false; then :
16450   $as_echo_n "(cached) " >&6
16451 else
16452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453 /* end confdefs.h.  */
16454 #include <sys/types.h>
16455 #include <sys/stat.h>
16456
16457 #if defined S_ISBLK && defined S_IFDIR
16458 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16459 #endif
16460
16461 #if defined S_ISBLK && defined S_IFCHR
16462 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16463 #endif
16464
16465 #if defined S_ISLNK && defined S_IFREG
16466 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16467 #endif
16468
16469 #if defined S_ISSOCK && defined S_IFREG
16470 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16471 #endif
16472
16473 _ACEOF
16474 if ac_fn_c_try_compile "$LINENO"; then :
16475   ac_cv_header_stat_broken=no
16476 else
16477   ac_cv_header_stat_broken=yes
16478 fi
16479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16480 fi
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
16482 $as_echo "$ac_cv_header_stat_broken" >&6; }
16483 if test $ac_cv_header_stat_broken = yes; then
16484
16485 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
16486
16487 fi
16488
16489
16490
16491
16492
16493
16494 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16495 if test "x$ac_cv_type_mode_t" = xyes; then :
16496
16497 else
16498
16499 cat >>confdefs.h <<_ACEOF
16500 #define mode_t int
16501 _ACEOF
16502
16503 fi
16504
16505
16506
16507   case "$host_os" in
16508     mingw*)
16509                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
16510 $as_echo_n "checking for 64-bit off_t... " >&6; }
16511 if ${gl_cv_type_off_t_64+:} false; then :
16512   $as_echo_n "(cached) " >&6
16513 else
16514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h.  */
16516 #include <sys/types.h>
16517                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
16518
16519 int
16520 main ()
16521 {
16522
16523   ;
16524   return 0;
16525 }
16526 _ACEOF
16527 if ac_fn_c_try_compile "$LINENO"; then :
16528   gl_cv_type_off_t_64=yes
16529 else
16530   gl_cv_type_off_t_64=no
16531 fi
16532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533
16534 fi
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
16536 $as_echo "$gl_cv_type_off_t_64" >&6; }
16537       if test $gl_cv_type_off_t_64 = no; then
16538         WINDOWS_64_BIT_OFF_T=1
16539       else
16540         WINDOWS_64_BIT_OFF_T=0
16541       fi
16542                   WINDOWS_64_BIT_ST_SIZE=1
16543       ;;
16544     *)
16545                                                       WINDOWS_64_BIT_OFF_T=0
16546       WINDOWS_64_BIT_ST_SIZE=0
16547       ;;
16548   esac
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561   :
16562
16563
16564
16565
16566
16567
16568
16569
16570      if test $gl_cv_have_include_next = yes; then
16571        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16572      else
16573        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
16574 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
16575 if ${gl_cv_next_sys_stat_h+:} false; then :
16576   $as_echo_n "(cached) " >&6
16577 else
16578
16579              if test $ac_cv_header_sys_stat_h = yes; then
16580
16581
16582
16583
16584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h.  */
16586 #include <sys/stat.h>
16587 _ACEOF
16588                 case "$host_os" in
16589     aix*) gl_absname_cpp="$ac_cpp -C" ;;
16590     *)    gl_absname_cpp="$ac_cpp" ;;
16591   esac
16592
16593   case "$host_os" in
16594     mingw*)
16595                                           gl_dirsep_regex='[/\\]'
16596       ;;
16597     *)
16598       gl_dirsep_regex='\/'
16599       ;;
16600   esac
16601       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16602   gl_header_literal_regex=`echo 'sys/stat.h' \
16603                            | sed -e "$gl_make_literal_regex_sed"`
16604   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16605       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16606       s|^/[^/]|//&|
16607       p
16608       q
16609     }'
16610
16611         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16612   sed -n "$gl_absolute_header_sed"`
16613
16614            gl_header=$gl_cv_absolute_sys_stat_h
16615            gl_cv_next_sys_stat_h='"'$gl_header'"'
16616           else
16617                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16618              fi
16619
16620
16621 fi
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
16623 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
16624      fi
16625      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
16626
16627      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16628        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16629        gl_next_as_first_directive='<'sys/stat.h'>'
16630      else
16631        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16632        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
16633      fi
16634      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
16647
16648 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
16649
16650   fi
16651
16652       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
16653      #include <sys/stat.h>
16654 "
16655 if test "x$ac_cv_type_nlink_t" = xyes; then :
16656
16657 else
16658
16659 $as_echo "#define nlink_t int" >>confdefs.h
16660
16661 fi
16662
16663
16664
16665     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
16666     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16668 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16669 if eval \${$as_gl_Symbol+:} false; then :
16670   $as_echo_n "(cached) " >&6
16671 else
16672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h.  */
16674 #include <sys/stat.h>
16675
16676 int
16677 main ()
16678 {
16679 #undef $gl_func
16680   (void) $gl_func;
16681   ;
16682   return 0;
16683 }
16684 _ACEOF
16685 if ac_fn_c_try_compile "$LINENO"; then :
16686   eval "$as_gl_Symbol=yes"
16687 else
16688   eval "$as_gl_Symbol=no"
16689 fi
16690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16691 fi
16692 eval ac_res=\$$as_gl_Symbol
16693                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16694 $as_echo "$ac_res" >&6; }
16695     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16696   cat >>confdefs.h <<_ACEOF
16697 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16698 _ACEOF
16699
16700                      eval ac_cv_have_decl_$gl_func=yes
16701 fi
16702       done
16703
16704
16705
16706   GNULIB_DPRINTF=0;
16707   GNULIB_FCLOSE=0;
16708   GNULIB_FDOPEN=0;
16709   GNULIB_FFLUSH=0;
16710   GNULIB_FGETC=0;
16711   GNULIB_FGETS=0;
16712   GNULIB_FOPEN=0;
16713   GNULIB_FPRINTF=0;
16714   GNULIB_FPRINTF_POSIX=0;
16715   GNULIB_FPURGE=0;
16716   GNULIB_FPUTC=0;
16717   GNULIB_FPUTS=0;
16718   GNULIB_FREAD=0;
16719   GNULIB_FREOPEN=0;
16720   GNULIB_FSCANF=0;
16721   GNULIB_FSEEK=0;
16722   GNULIB_FSEEKO=0;
16723   GNULIB_FTELL=0;
16724   GNULIB_FTELLO=0;
16725   GNULIB_FWRITE=0;
16726   GNULIB_GETC=0;
16727   GNULIB_GETCHAR=0;
16728   GNULIB_GETDELIM=0;
16729   GNULIB_GETLINE=0;
16730   GNULIB_OBSTACK_PRINTF=0;
16731   GNULIB_OBSTACK_PRINTF_POSIX=0;
16732   GNULIB_PCLOSE=0;
16733   GNULIB_PERROR=0;
16734   GNULIB_POPEN=0;
16735   GNULIB_PRINTF=0;
16736   GNULIB_PRINTF_POSIX=0;
16737   GNULIB_PUTC=0;
16738   GNULIB_PUTCHAR=0;
16739   GNULIB_PUTS=0;
16740   GNULIB_REMOVE=0;
16741   GNULIB_RENAME=0;
16742   GNULIB_RENAMEAT=0;
16743   GNULIB_SCANF=0;
16744   GNULIB_SNPRINTF=0;
16745   GNULIB_SPRINTF_POSIX=0;
16746   GNULIB_STDIO_H_NONBLOCKING=0;
16747   GNULIB_STDIO_H_SIGPIPE=0;
16748   GNULIB_TMPFILE=0;
16749   GNULIB_VASPRINTF=0;
16750   GNULIB_VFSCANF=0;
16751   GNULIB_VSCANF=0;
16752   GNULIB_VDPRINTF=0;
16753   GNULIB_VFPRINTF=0;
16754   GNULIB_VFPRINTF_POSIX=0;
16755   GNULIB_VPRINTF=0;
16756   GNULIB_VPRINTF_POSIX=0;
16757   GNULIB_VSNPRINTF=0;
16758   GNULIB_VSPRINTF_POSIX=0;
16759     HAVE_DECL_FPURGE=1;
16760   HAVE_DECL_FSEEKO=1;
16761   HAVE_DECL_FTELLO=1;
16762   HAVE_DECL_GETDELIM=1;
16763   HAVE_DECL_GETLINE=1;
16764   HAVE_DECL_OBSTACK_PRINTF=1;
16765   HAVE_DECL_SNPRINTF=1;
16766   HAVE_DECL_VSNPRINTF=1;
16767   HAVE_DPRINTF=1;
16768   HAVE_FSEEKO=1;
16769   HAVE_FTELLO=1;
16770   HAVE_PCLOSE=1;
16771   HAVE_POPEN=1;
16772   HAVE_RENAMEAT=1;
16773   HAVE_VASPRINTF=1;
16774   HAVE_VDPRINTF=1;
16775   REPLACE_DPRINTF=0;
16776   REPLACE_FCLOSE=0;
16777   REPLACE_FDOPEN=0;
16778   REPLACE_FFLUSH=0;
16779   REPLACE_FOPEN=0;
16780   REPLACE_FPRINTF=0;
16781   REPLACE_FPURGE=0;
16782   REPLACE_FREOPEN=0;
16783   REPLACE_FSEEK=0;
16784   REPLACE_FSEEKO=0;
16785   REPLACE_FTELL=0;
16786   REPLACE_FTELLO=0;
16787   REPLACE_GETDELIM=0;
16788   REPLACE_GETLINE=0;
16789   REPLACE_OBSTACK_PRINTF=0;
16790   REPLACE_PERROR=0;
16791   REPLACE_POPEN=0;
16792   REPLACE_PRINTF=0;
16793   REPLACE_REMOVE=0;
16794   REPLACE_RENAME=0;
16795   REPLACE_RENAMEAT=0;
16796   REPLACE_SNPRINTF=0;
16797   REPLACE_SPRINTF=0;
16798   REPLACE_STDIO_READ_FUNCS=0;
16799   REPLACE_STDIO_WRITE_FUNCS=0;
16800   REPLACE_TMPFILE=0;
16801   REPLACE_VASPRINTF=0;
16802   REPLACE_VDPRINTF=0;
16803   REPLACE_VFPRINTF=0;
16804   REPLACE_VPRINTF=0;
16805   REPLACE_VSNPRINTF=0;
16806   REPLACE_VSPRINTF=0;
16807
16808
16809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
16810 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
16811 if ${gl_cv_var_stdin_large_offset+:} false; then :
16812   $as_echo_n "(cached) " >&6
16813 else
16814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16815 /* end confdefs.h.  */
16816 #include <stdio.h>
16817 int
16818 main ()
16819 {
16820 #if defined __SL64 && defined __SCLE /* cygwin */
16821   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
16822      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
16823      it is easier to do a version check than building a runtime test.  */
16824 # include <cygwin/version.h>
16825 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
16826   choke me
16827 # endif
16828 #endif
16829   ;
16830   return 0;
16831 }
16832 _ACEOF
16833 if ac_fn_c_try_link "$LINENO"; then :
16834   gl_cv_var_stdin_large_offset=yes
16835 else
16836   gl_cv_var_stdin_large_offset=no
16837 fi
16838 rm -f core conftest.err conftest.$ac_objext \
16839     conftest$ac_exeext conftest.$ac_ext
16840 fi
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
16842 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
16843
16844
16845
16846 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16847 if test "x$ac_cv_type_pid_t" = xyes; then :
16848
16849 else
16850
16851 cat >>confdefs.h <<_ACEOF
16852 #define pid_t int
16853 _ACEOF
16854
16855 fi
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873      if test $gl_cv_have_include_next = yes; then
16874        gl_cv_next_sys_types_h='<'sys/types.h'>'
16875      else
16876        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16877 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16878 if ${gl_cv_next_sys_types_h+:} false; then :
16879   $as_echo_n "(cached) " >&6
16880 else
16881
16882
16883
16884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16885 /* end confdefs.h.  */
16886 #include <sys/types.h>
16887 _ACEOF
16888                 case "$host_os" in
16889     aix*) gl_absname_cpp="$ac_cpp -C" ;;
16890     *)    gl_absname_cpp="$ac_cpp" ;;
16891   esac
16892
16893   case "$host_os" in
16894     mingw*)
16895                                           gl_dirsep_regex='[/\\]'
16896       ;;
16897     *)
16898       gl_dirsep_regex='\/'
16899       ;;
16900   esac
16901       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16902   gl_header_literal_regex=`echo 'sys/types.h' \
16903                            | sed -e "$gl_make_literal_regex_sed"`
16904   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16905       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16906       s|^/[^/]|//&|
16907       p
16908       q
16909     }'
16910
16911         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16912   sed -n "$gl_absolute_header_sed"`
16913
16914            gl_header=$gl_cv_absolute_sys_types_h
16915            gl_cv_next_sys_types_h='"'$gl_header'"'
16916
16917
16918 fi
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16920 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16921      fi
16922      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
16923
16924      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16925        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16926        gl_next_as_first_directive='<'sys/types.h'>'
16927      else
16928        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16929        gl_next_as_first_directive=$gl_cv_next_sys_types_h
16930      fi
16931      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944       ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
16945 if test "x$ac_cv_have_decl_ftello" = xyes; then :
16946   ac_have_decl=1
16947 else
16948   ac_have_decl=0
16949 fi
16950
16951 cat >>confdefs.h <<_ACEOF
16952 #define HAVE_DECL_FTELLO $ac_have_decl
16953 _ACEOF
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965   :
16966
16967
16968
16969
16970
16971   if test $ac_cv_have_decl_ftello = no; then
16972     HAVE_DECL_FTELLO=0
16973   fi
16974
16975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
16976 $as_echo_n "checking for ftello... " >&6; }
16977 if ${gl_cv_func_ftello+:} false; then :
16978   $as_echo_n "(cached) " >&6
16979 else
16980
16981       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16982 /* end confdefs.h.  */
16983 #include <stdio.h>
16984 int
16985 main ()
16986 {
16987 ftello (stdin);
16988   ;
16989   return 0;
16990 }
16991 _ACEOF
16992 if ac_fn_c_try_link "$LINENO"; then :
16993   gl_cv_func_ftello=yes
16994 else
16995   gl_cv_func_ftello=no
16996 fi
16997 rm -f core conftest.err conftest.$ac_objext \
16998     conftest$ac_exeext conftest.$ac_ext
16999
17000 fi
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
17002 $as_echo "$gl_cv_func_ftello" >&6; }
17003   if test $gl_cv_func_ftello = no; then
17004     HAVE_FTELLO=0
17005   else
17006     if test $WINDOWS_64_BIT_OFF_T = 1; then
17007       REPLACE_FTELLO=1
17008     fi
17009     if test $gl_cv_var_stdin_large_offset = no; then
17010       REPLACE_FTELLO=1
17011     fi
17012     if test $REPLACE_FTELLO = 0; then
17013
17014       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
17015 $as_echo_n "checking whether ftello works... " >&6; }
17016 if ${gl_cv_func_ftello_works+:} false; then :
17017   $as_echo_n "(cached) " >&6
17018 else
17019
17020                               case "$host_os" in
17021                       # Guess no on Solaris.
17022             solaris*) gl_cv_func_ftello_works="guessing no" ;;
17023                       # Guess yes otherwise.
17024             *)        gl_cv_func_ftello_works="guessing yes" ;;
17025           esac
17026           if test "$cross_compiling" = yes; then :
17027   :
17028 else
17029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030 /* end confdefs.h.  */
17031
17032 #include <stdio.h>
17033 #include <stdlib.h>
17034 #include <string.h>
17035 #define TESTFILE "conftest.tmp"
17036 int
17037 main (void)
17038 {
17039   FILE *fp;
17040
17041   /* Create a file with some contents.  */
17042   fp = fopen (TESTFILE, "w");
17043   if (fp == NULL)
17044     return 70;
17045   if (fwrite ("foogarsh", 1, 8, fp) < 8)
17046     return 71;
17047   if (fclose (fp))
17048     return 72;
17049
17050   /* The file's contents is now "foogarsh".  */
17051
17052   /* Try writing after reading to EOF.  */
17053   fp = fopen (TESTFILE, "r+");
17054   if (fp == NULL)
17055     return 73;
17056   if (fseek (fp, -1, SEEK_END))
17057     return 74;
17058   if (!(getc (fp) == 'h'))
17059     return 1;
17060   if (!(getc (fp) == EOF))
17061     return 2;
17062   if (!(ftell (fp) == 8))
17063     return 3;
17064   if (!(ftell (fp) == 8))
17065     return 4;
17066   if (!(putc ('!', fp) == '!'))
17067     return 5;
17068   if (!(ftell (fp) == 9))
17069     return 6;
17070   if (!(fclose (fp) == 0))
17071     return 7;
17072   fp = fopen (TESTFILE, "r");
17073   if (fp == NULL)
17074     return 75;
17075   {
17076     char buf[10];
17077     if (!(fread (buf, 1, 10, fp) == 9))
17078       return 10;
17079     if (!(memcmp (buf, "foogarsh!", 9) == 0))
17080       return 11;
17081   }
17082   if (!(fclose (fp) == 0))
17083     return 12;
17084
17085   /* The file's contents is now "foogarsh!".  */
17086
17087   return 0;
17088 }
17089 _ACEOF
17090 if ac_fn_c_try_run "$LINENO"; then :
17091   gl_cv_func_ftello_works=yes
17092 else
17093   gl_cv_func_ftello_works=no
17094 fi
17095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17096   conftest.$ac_objext conftest.beam conftest.$ac_ext
17097 fi
17098
17099
17100 fi
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
17102 $as_echo "$gl_cv_func_ftello_works" >&6; }
17103       case "$gl_cv_func_ftello_works" in
17104         *yes) ;;
17105         *)
17106           REPLACE_FTELLO=1
17107
17108 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
17109
17110           ;;
17111       esac
17112     fi
17113   fi
17114
17115
17116       ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
17117 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
17118   ac_have_decl=1
17119 else
17120   ac_have_decl=0
17121 fi
17122
17123 cat >>confdefs.h <<_ACEOF
17124 #define HAVE_DECL_GETDELIM $ac_have_decl
17125 _ACEOF
17126
17127
17128
17129
17130
17131
17132
17133
17134       ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
17135 if test "x$ac_cv_have_decl_getline" = xyes; then :
17136   ac_have_decl=1
17137 else
17138   ac_have_decl=0
17139 fi
17140
17141 cat >>confdefs.h <<_ACEOF
17142 #define HAVE_DECL_GETLINE $ac_have_decl
17143 _ACEOF
17144
17145
17146
17147   GNULIB_GETTIMEOFDAY=0;
17148     HAVE_GETTIMEOFDAY=1;
17149   HAVE_STRUCT_TIMEVAL=1;
17150   HAVE_SYS_TIME_H=1;
17151   REPLACE_GETTIMEOFDAY=0;
17152   REPLACE_STRUCT_TIMEVAL=0;
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163   :
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175   :
17176
17177
17178
17179
17180
17181
17182
17183
17184      if test $gl_cv_have_include_next = yes; then
17185        gl_cv_next_sys_time_h='<'sys/time.h'>'
17186      else
17187        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17188 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17189 if ${gl_cv_next_sys_time_h+:} false; then :
17190   $as_echo_n "(cached) " >&6
17191 else
17192
17193              if test $ac_cv_header_sys_time_h = yes; then
17194
17195
17196
17197
17198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17199 /* end confdefs.h.  */
17200 #include <sys/time.h>
17201 _ACEOF
17202                 case "$host_os" in
17203     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17204     *)    gl_absname_cpp="$ac_cpp" ;;
17205   esac
17206
17207   case "$host_os" in
17208     mingw*)
17209                                           gl_dirsep_regex='[/\\]'
17210       ;;
17211     *)
17212       gl_dirsep_regex='\/'
17213       ;;
17214   esac
17215       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17216   gl_header_literal_regex=`echo 'sys/time.h' \
17217                            | sed -e "$gl_make_literal_regex_sed"`
17218   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17219       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17220       s|^/[^/]|//&|
17221       p
17222       q
17223     }'
17224
17225         gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17226   sed -n "$gl_absolute_header_sed"`
17227
17228            gl_header=$gl_cv_absolute_sys_time_h
17229            gl_cv_next_sys_time_h='"'$gl_header'"'
17230           else
17231                gl_cv_next_sys_time_h='<'sys/time.h'>'
17232              fi
17233
17234
17235 fi
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17237 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17238      fi
17239      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17240
17241      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17242        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17243        gl_next_as_first_directive='<'sys/time.h'>'
17244      else
17245        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17246        gl_next_as_first_directive=$gl_cv_next_sys_time_h
17247      fi
17248      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17249
17250
17251
17252
17253
17254   if test $ac_cv_header_sys_time_h != yes; then
17255     HAVE_SYS_TIME_H=0
17256   fi
17257
17258
17259
17260
17261
17262   :
17263
17264
17265
17266
17267
17268   if test $ac_cv_header_sys_socket_h != yes; then
17269                     for ac_header in winsock2.h
17270 do :
17271   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17272 if test "x$ac_cv_header_winsock2_h" = xyes; then :
17273   cat >>confdefs.h <<_ACEOF
17274 #define HAVE_WINSOCK2_H 1
17275 _ACEOF
17276
17277 fi
17278
17279 done
17280
17281   fi
17282   if test "$ac_cv_header_winsock2_h" = yes; then
17283     HAVE_WINSOCK2_H=1
17284     UNISTD_H_HAVE_WINSOCK2_H=1
17285     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17286   else
17287     HAVE_WINSOCK2_H=0
17288   fi
17289
17290
17291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17292 $as_echo_n "checking for struct timeval... " >&6; }
17293 if ${gl_cv_sys_struct_timeval+:} false; then :
17294   $as_echo_n "(cached) " >&6
17295 else
17296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17297 /* end confdefs.h.  */
17298 #if HAVE_SYS_TIME_H
17299              #include <sys/time.h>
17300             #endif
17301             #include <time.h>
17302             #if HAVE_WINSOCK2_H
17303             # include <winsock2.h>
17304             #endif
17305
17306 int
17307 main ()
17308 {
17309 static struct timeval x; x.tv_sec = x.tv_usec;
17310   ;
17311   return 0;
17312 }
17313 _ACEOF
17314 if ac_fn_c_try_compile "$LINENO"; then :
17315   gl_cv_sys_struct_timeval=yes
17316 else
17317   gl_cv_sys_struct_timeval=no
17318 fi
17319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17320
17321 fi
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17323 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17324   if test $gl_cv_sys_struct_timeval != yes; then
17325     HAVE_STRUCT_TIMEVAL=0
17326   else
17327                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17328 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17329 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
17330   $as_echo_n "(cached) " >&6
17331 else
17332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17333 /* end confdefs.h.  */
17334 #if HAVE_SYS_TIME_H
17335                #include <sys/time.h>
17336               #endif
17337               #include <time.h>
17338               #if HAVE_WINSOCK2_H
17339               # include <winsock2.h>
17340               #endif
17341
17342 int
17343 main ()
17344 {
17345 static struct timeval x;
17346               typedef int verify_tv_sec_type[
17347                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17348               ];
17349
17350   ;
17351   return 0;
17352 }
17353 _ACEOF
17354 if ac_fn_c_try_compile "$LINENO"; then :
17355   gl_cv_sys_struct_timeval_tv_sec=yes
17356 else
17357   gl_cv_sys_struct_timeval_tv_sec=no
17358 fi
17359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17360
17361 fi
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17363 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17364     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17365       REPLACE_STRUCT_TIMEVAL=1
17366     fi
17367   fi
17368
17369
17370     for gl_func in gettimeofday; do
17371     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17373 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17374 if eval \${$as_gl_Symbol+:} false; then :
17375   $as_echo_n "(cached) " >&6
17376 else
17377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17378 /* end confdefs.h.  */
17379
17380 #if HAVE_SYS_TIME_H
17381 # include <sys/time.h>
17382 #endif
17383 #include <time.h>
17384
17385 int
17386 main ()
17387 {
17388 #undef $gl_func
17389   (void) $gl_func;
17390   ;
17391   return 0;
17392 }
17393 _ACEOF
17394 if ac_fn_c_try_compile "$LINENO"; then :
17395   eval "$as_gl_Symbol=yes"
17396 else
17397   eval "$as_gl_Symbol=no"
17398 fi
17399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17400 fi
17401 eval ac_res=\$$as_gl_Symbol
17402                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17403 $as_echo "$ac_res" >&6; }
17404     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
17405   cat >>confdefs.h <<_ACEOF
17406 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17407 _ACEOF
17408
17409                      eval ac_cv_have_decl_$gl_func=yes
17410 fi
17411       done
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428   GNULIB__EXIT=0;
17429   GNULIB_ATOLL=0;
17430   GNULIB_CALLOC_POSIX=0;
17431   GNULIB_CANONICALIZE_FILE_NAME=0;
17432   GNULIB_GETLOADAVG=0;
17433   GNULIB_GETSUBOPT=0;
17434   GNULIB_GRANTPT=0;
17435   GNULIB_MALLOC_POSIX=0;
17436   GNULIB_MBTOWC=0;
17437   GNULIB_MKDTEMP=0;
17438   GNULIB_MKOSTEMP=0;
17439   GNULIB_MKOSTEMPS=0;
17440   GNULIB_MKSTEMP=0;
17441   GNULIB_MKSTEMPS=0;
17442   GNULIB_POSIX_OPENPT=0;
17443   GNULIB_PTSNAME=0;
17444   GNULIB_PTSNAME_R=0;
17445   GNULIB_PUTENV=0;
17446   GNULIB_QSORT_R=0;
17447   GNULIB_RANDOM=0;
17448   GNULIB_RANDOM_R=0;
17449   GNULIB_REALLOC_POSIX=0;
17450   GNULIB_REALPATH=0;
17451   GNULIB_RPMATCH=0;
17452   GNULIB_SECURE_GETENV=0;
17453   GNULIB_SETENV=0;
17454   GNULIB_STRTOD=0;
17455   GNULIB_STRTOLL=0;
17456   GNULIB_STRTOULL=0;
17457   GNULIB_SYSTEM_POSIX=0;
17458   GNULIB_UNLOCKPT=0;
17459   GNULIB_UNSETENV=0;
17460   GNULIB_WCTOMB=0;
17461     HAVE__EXIT=1;
17462   HAVE_ATOLL=1;
17463   HAVE_CANONICALIZE_FILE_NAME=1;
17464   HAVE_DECL_GETLOADAVG=1;
17465   HAVE_GETSUBOPT=1;
17466   HAVE_GRANTPT=1;
17467   HAVE_MKDTEMP=1;
17468   HAVE_MKOSTEMP=1;
17469   HAVE_MKOSTEMPS=1;
17470   HAVE_MKSTEMP=1;
17471   HAVE_MKSTEMPS=1;
17472   HAVE_POSIX_OPENPT=1;
17473   HAVE_PTSNAME=1;
17474   HAVE_PTSNAME_R=1;
17475   HAVE_RANDOM=1;
17476   HAVE_RANDOM_H=1;
17477   HAVE_RANDOM_R=1;
17478   HAVE_REALPATH=1;
17479   HAVE_RPMATCH=1;
17480   HAVE_SECURE_GETENV=1;
17481   HAVE_SETENV=1;
17482   HAVE_DECL_SETENV=1;
17483   HAVE_STRTOD=1;
17484   HAVE_STRTOLL=1;
17485   HAVE_STRTOULL=1;
17486   HAVE_STRUCT_RANDOM_DATA=1;
17487   HAVE_SYS_LOADAVG_H=0;
17488   HAVE_UNLOCKPT=1;
17489   HAVE_DECL_UNSETENV=1;
17490   REPLACE_CALLOC=0;
17491   REPLACE_CANONICALIZE_FILE_NAME=0;
17492   REPLACE_MALLOC=0;
17493   REPLACE_MBTOWC=0;
17494   REPLACE_MKSTEMP=0;
17495   REPLACE_PTSNAME=0;
17496   REPLACE_PTSNAME_R=0;
17497   REPLACE_PUTENV=0;
17498   REPLACE_QSORT_R=0;
17499   REPLACE_RANDOM_R=0;
17500   REPLACE_REALLOC=0;
17501   REPLACE_REALPATH=0;
17502   REPLACE_SETENV=0;
17503   REPLACE_STRTOD=0;
17504   REPLACE_UNSETENV=0;
17505   REPLACE_WCTOMB=0;
17506
17507
17508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17509 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17510 if ${gl_cv_func_malloc_posix+:} false; then :
17511   $as_echo_n "(cached) " >&6
17512 else
17513
17514                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17515 /* end confdefs.h.  */
17516
17517 int
17518 main ()
17519 {
17520 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17521              choke me
17522              #endif
17523
17524   ;
17525   return 0;
17526 }
17527 _ACEOF
17528 if ac_fn_c_try_compile "$LINENO"; then :
17529   gl_cv_func_malloc_posix=yes
17530 else
17531   gl_cv_func_malloc_posix=no
17532 fi
17533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17534
17535 fi
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
17537 $as_echo "$gl_cv_func_malloc_posix" >&6; }
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550   GNULIB_FFSL=0;
17551   GNULIB_FFSLL=0;
17552   GNULIB_MEMCHR=0;
17553   GNULIB_MEMMEM=0;
17554   GNULIB_MEMPCPY=0;
17555   GNULIB_MEMRCHR=0;
17556   GNULIB_RAWMEMCHR=0;
17557   GNULIB_STPCPY=0;
17558   GNULIB_STPNCPY=0;
17559   GNULIB_STRCHRNUL=0;
17560   GNULIB_STRDUP=0;
17561   GNULIB_STRNCAT=0;
17562   GNULIB_STRNDUP=0;
17563   GNULIB_STRNLEN=0;
17564   GNULIB_STRPBRK=0;
17565   GNULIB_STRSEP=0;
17566   GNULIB_STRSTR=0;
17567   GNULIB_STRCASESTR=0;
17568   GNULIB_STRTOK_R=0;
17569   GNULIB_MBSLEN=0;
17570   GNULIB_MBSNLEN=0;
17571   GNULIB_MBSCHR=0;
17572   GNULIB_MBSRCHR=0;
17573   GNULIB_MBSSTR=0;
17574   GNULIB_MBSCASECMP=0;
17575   GNULIB_MBSNCASECMP=0;
17576   GNULIB_MBSPCASECMP=0;
17577   GNULIB_MBSCASESTR=0;
17578   GNULIB_MBSCSPN=0;
17579   GNULIB_MBSPBRK=0;
17580   GNULIB_MBSSPN=0;
17581   GNULIB_MBSSEP=0;
17582   GNULIB_MBSTOK_R=0;
17583   GNULIB_STRERROR=0;
17584   GNULIB_STRERROR_R=0;
17585   GNULIB_STRSIGNAL=0;
17586   GNULIB_STRVERSCMP=0;
17587   HAVE_MBSLEN=0;
17588     HAVE_FFSL=1;
17589   HAVE_FFSLL=1;
17590   HAVE_MEMCHR=1;
17591   HAVE_DECL_MEMMEM=1;
17592   HAVE_MEMPCPY=1;
17593   HAVE_DECL_MEMRCHR=1;
17594   HAVE_RAWMEMCHR=1;
17595   HAVE_STPCPY=1;
17596   HAVE_STPNCPY=1;
17597   HAVE_STRCHRNUL=1;
17598   HAVE_DECL_STRDUP=1;
17599   HAVE_DECL_STRNDUP=1;
17600   HAVE_DECL_STRNLEN=1;
17601   HAVE_STRPBRK=1;
17602   HAVE_STRSEP=1;
17603   HAVE_STRCASESTR=1;
17604   HAVE_DECL_STRTOK_R=1;
17605   HAVE_DECL_STRERROR_R=1;
17606   HAVE_DECL_STRSIGNAL=1;
17607   HAVE_STRVERSCMP=1;
17608   REPLACE_MEMCHR=0;
17609   REPLACE_MEMMEM=0;
17610   REPLACE_STPNCPY=0;
17611   REPLACE_STRDUP=0;
17612   REPLACE_STRSTR=0;
17613   REPLACE_STRCASESTR=0;
17614   REPLACE_STRCHRNUL=0;
17615   REPLACE_STRERROR=0;
17616   REPLACE_STRERROR_R=0;
17617   REPLACE_STRNCAT=0;
17618   REPLACE_STRNDUP=0;
17619   REPLACE_STRNLEN=0;
17620   REPLACE_STRSIGNAL=0;
17621   REPLACE_STRTOK_R=0;
17622   UNDEFINE_STRTOK_R=0;
17623
17624
17625
17626
17627
17628   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
17629   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
17630   # irrelevant for anonymous mappings.
17631   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
17632 if test "x$ac_cv_func_mmap" = xyes; then :
17633   gl_have_mmap=yes
17634 else
17635   gl_have_mmap=no
17636 fi
17637
17638
17639   # Try to allow MAP_ANONYMOUS.
17640   gl_have_mmap_anonymous=no
17641   if test $gl_have_mmap = yes; then
17642     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
17643 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
17644     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h.  */
17646
17647 #include <sys/mman.h>
17648 #ifdef MAP_ANONYMOUS
17649     I cannot identify this map
17650 #endif
17651
17652 _ACEOF
17653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17654   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
17655   gl_have_mmap_anonymous=yes
17656 fi
17657 rm -f conftest*
17658
17659     if test $gl_have_mmap_anonymous != yes; then
17660       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661 /* end confdefs.h.  */
17662
17663 #include <sys/mman.h>
17664 #ifdef MAP_ANON
17665     I cannot identify this map
17666 #endif
17667
17668 _ACEOF
17669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17670   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
17671
17672 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
17673
17674          gl_have_mmap_anonymous=yes
17675 fi
17676 rm -f conftest*
17677
17678     fi
17679     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
17680 $as_echo "$gl_have_mmap_anonymous" >&6; }
17681     if test $gl_have_mmap_anonymous = yes; then
17682
17683 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
17684
17685     fi
17686   fi
17687
17688
17689   :
17690
17691
17692
17693
17694
17695
17696   :
17697
17698
17699
17700
17701
17702
17703
17704
17705   if test $HAVE_MEMCHR = 1; then
17706     # Detect platform-specific bugs in some versions of glibc:
17707     # memchr should not dereference anything with length 0
17708     #   http://bugzilla.redhat.com/499689
17709     # memchr should not dereference overestimated length after a match
17710     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
17711     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
17712     # Assume that memchr works on platforms that lack mprotect.
17713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
17714 $as_echo_n "checking whether memchr works... " >&6; }
17715 if ${gl_cv_func_memchr_works+:} false; then :
17716   $as_echo_n "(cached) " >&6
17717 else
17718   if test "$cross_compiling" = yes; then :
17719          gl_cv_func_memchr_works="guessing no"
17720 else
17721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17722 /* end confdefs.h.  */
17723
17724 #include <string.h>
17725 #if HAVE_SYS_MMAN_H
17726 # include <fcntl.h>
17727 # include <unistd.h>
17728 # include <sys/types.h>
17729 # include <sys/mman.h>
17730 # ifndef MAP_FILE
17731 #  define MAP_FILE 0
17732 # endif
17733 #endif
17734
17735 int
17736 main ()
17737 {
17738
17739   int result = 0;
17740   char *fence = NULL;
17741 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17742 # if HAVE_MAP_ANONYMOUS
17743   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
17744   const int fd = -1;
17745 # else /* !HAVE_MAP_ANONYMOUS */
17746   const int flags = MAP_FILE | MAP_PRIVATE;
17747   int fd = open ("/dev/zero", O_RDONLY, 0666);
17748   if (fd >= 0)
17749 # endif
17750     {
17751       int pagesize = getpagesize ();
17752       char *two_pages =
17753         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
17754                        flags, fd, 0);
17755       if (two_pages != (char *)(-1)
17756           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
17757         fence = two_pages + pagesize;
17758     }
17759 #endif
17760   if (fence)
17761     {
17762       if (memchr (fence, 0, 0))
17763         result |= 1;
17764       strcpy (fence - 9, "12345678");
17765       if (memchr (fence - 9, 0, 79) != fence - 1)
17766         result |= 2;
17767       if (memchr (fence - 1, 0, 3) != fence - 1)
17768         result |= 4;
17769     }
17770   return result;
17771
17772   ;
17773   return 0;
17774 }
17775 _ACEOF
17776 if ac_fn_c_try_run "$LINENO"; then :
17777   gl_cv_func_memchr_works=yes
17778 else
17779   gl_cv_func_memchr_works=no
17780 fi
17781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17782   conftest.$ac_objext conftest.beam conftest.$ac_ext
17783 fi
17784
17785 fi
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
17787 $as_echo "$gl_cv_func_memchr_works" >&6; }
17788     if test "$gl_cv_func_memchr_works" != yes; then
17789       REPLACE_MEMCHR=1
17790     fi
17791   fi
17792
17793
17794       ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
17795 if test "x$ac_cv_have_decl_memmem" = xyes; then :
17796   ac_have_decl=1
17797 else
17798   ac_have_decl=0
17799 fi
17800
17801 cat >>confdefs.h <<_ACEOF
17802 #define HAVE_DECL_MEMMEM $ac_have_decl
17803 _ACEOF
17804
17805
17806
17807
17808
17809
17810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
17811 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
17812 if ${gl_cv_minmax_in_limits_h+:} false; then :
17813   $as_echo_n "(cached) " >&6
17814 else
17815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h.  */
17817 #include <limits.h>
17818             int x = MIN (42, 17);
17819 int
17820 main ()
17821 {
17822
17823   ;
17824   return 0;
17825 }
17826 _ACEOF
17827 if ac_fn_c_try_compile "$LINENO"; then :
17828   gl_cv_minmax_in_limits_h=yes
17829 else
17830   gl_cv_minmax_in_limits_h=no
17831 fi
17832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17833 fi
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
17835 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
17836   if test $gl_cv_minmax_in_limits_h = yes; then
17837
17838 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
17839
17840   fi
17841
17842
17843
17844
17845
17846
17847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
17848 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
17849 if ${gl_cv_minmax_in_sys_param_h+:} false; then :
17850   $as_echo_n "(cached) " >&6
17851 else
17852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17853 /* end confdefs.h.  */
17854 #include <sys/param.h>
17855             int x = MIN (42, 17);
17856 int
17857 main ()
17858 {
17859
17860   ;
17861   return 0;
17862 }
17863 _ACEOF
17864 if ac_fn_c_try_compile "$LINENO"; then :
17865   gl_cv_minmax_in_sys_param_h=yes
17866 else
17867   gl_cv_minmax_in_sys_param_h=no
17868 fi
17869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17870 fi
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
17872 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
17873   if test $gl_cv_minmax_in_sys_param_h = yes; then
17874
17875 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
17876
17877   fi
17878
17879
17880
17881
17882
17883     gl_cv_c_multiarch=no
17884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885 /* end confdefs.h.  */
17886 #ifndef __APPLE_CC__
17887          not a universal capable compiler
17888         #endif
17889         typedef int dummy;
17890
17891 _ACEOF
17892 if ac_fn_c_try_compile "$LINENO"; then :
17893
17894                arch=
17895      prev=
17896      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17897        if test -n "$prev"; then
17898          case $word in
17899            i?86 | x86_64 | ppc | ppc64)
17900              if test -z "$arch" || test "$arch" = "$word"; then
17901                arch="$word"
17902              else
17903                gl_cv_c_multiarch=yes
17904              fi
17905              ;;
17906          esac
17907          prev=
17908        else
17909          if test "x$word" = "x-arch"; then
17910            prev=arch
17911          fi
17912        fi
17913      done
17914
17915 fi
17916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17917   if test $gl_cv_c_multiarch = yes; then
17918     APPLE_UNIVERSAL_BUILD=1
17919   else
17920     APPLE_UNIVERSAL_BUILD=0
17921   fi
17922
17923
17924
17925   GNULIB_GETADDRINFO=0;
17926     HAVE_STRUCT_ADDRINFO=1;
17927   HAVE_DECL_FREEADDRINFO=1;
17928   HAVE_DECL_GAI_STRERROR=1;
17929   HAVE_DECL_GETADDRINFO=1;
17930   HAVE_DECL_GETNAMEINFO=1;
17931   REPLACE_GAI_STRERROR=0;
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950   :
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
17961 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
17962 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
17963   $as_echo_n "(cached) " >&6
17964 else
17965
17966       if test "$cross_compiling" = yes; then :
17967
17968          case "$host_os" in
17969                                  # Guess yes on glibc systems.
17970            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
17971                                  # Guess yes on FreeBSD >= 5.
17972            freebsd[1-4].*)       gl_cv_func_snprintf_retval_c99="guessing no";;
17973            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17974                                  # Guess yes on Mac OS X >= 10.3.
17975            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
17976            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
17977                                  # Guess yes on OpenBSD >= 3.9.
17978            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
17979                                  gl_cv_func_snprintf_retval_c99="guessing no";;
17980            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
17981                                  # Guess yes on Solaris >= 2.10.
17982            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
17983            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
17984                                  # Guess yes on AIX >= 4.
17985            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
17986            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
17987                                  # Guess yes on NetBSD >= 3.
17988            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
17989                                  gl_cv_func_snprintf_retval_c99="guessing no";;
17990            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
17991                                  # Guess yes on BeOS.
17992            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
17993                                  # If we don't know, assume the worst.
17994            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
17995          esac
17996
17997 else
17998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17999 /* end confdefs.h.  */
18000
18001 #include <stdio.h>
18002 #include <string.h>
18003 #if HAVE_SNPRINTF
18004 # define my_snprintf snprintf
18005 #else
18006 # include <stdarg.h>
18007 static int my_snprintf (char *buf, int size, const char *format, ...)
18008 {
18009   va_list args;
18010   int ret;
18011   va_start (args, format);
18012   ret = vsnprintf (buf, size, format, args);
18013   va_end (args);
18014   return ret;
18015 }
18016 #endif
18017 static char buf[100];
18018 int main ()
18019 {
18020   strcpy (buf, "ABCDEF");
18021   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
18022     return 1;
18023   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
18024     return 2;
18025   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
18026     return 3;
18027   return 0;
18028 }
18029 _ACEOF
18030 if ac_fn_c_try_run "$LINENO"; then :
18031   gl_cv_func_snprintf_retval_c99=yes
18032 else
18033   gl_cv_func_snprintf_retval_c99=no
18034 fi
18035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18036   conftest.$ac_objext conftest.beam conftest.$ac_ext
18037 fi
18038
18039
18040 fi
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
18042 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
18043
18044
18045       ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
18046 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
18047   ac_have_decl=1
18048 else
18049   ac_have_decl=0
18050 fi
18051
18052 cat >>confdefs.h <<_ACEOF
18053 #define HAVE_DECL_SNPRINTF $ac_have_decl
18054 _ACEOF
18055
18056
18057
18058   :
18059
18060
18061
18062
18063
18064    if test $ac_cv_header_sys_socket_h = no; then
18065                          for ac_header in ws2tcpip.h
18066 do :
18067   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18068 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
18069   cat >>confdefs.h <<_ACEOF
18070 #define HAVE_WS2TCPIP_H 1
18071 _ACEOF
18072
18073 fi
18074
18075 done
18076
18077    fi
18078
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18080 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18081 if ${ac_cv_header_stdbool_h+:} false; then :
18082   $as_echo_n "(cached) " >&6
18083 else
18084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h.  */
18086
18087              #include <stdbool.h>
18088              #ifndef bool
18089               "error: bool is not defined"
18090              #endif
18091              #ifndef false
18092               "error: false is not defined"
18093              #endif
18094              #if false
18095               "error: false is not 0"
18096              #endif
18097              #ifndef true
18098               "error: true is not defined"
18099              #endif
18100              #if true != 1
18101               "error: true is not 1"
18102              #endif
18103              #ifndef __bool_true_false_are_defined
18104               "error: __bool_true_false_are_defined is not defined"
18105              #endif
18106
18107              struct s { _Bool s: 1; _Bool t; } s;
18108
18109              char a[true == 1 ? 1 : -1];
18110              char b[false == 0 ? 1 : -1];
18111              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18112              char d[(bool) 0.5 == true ? 1 : -1];
18113              /* See body of main program for 'e'.  */
18114              char f[(_Bool) 0.0 == false ? 1 : -1];
18115              char g[true];
18116              char h[sizeof (_Bool)];
18117              char i[sizeof s.t];
18118              enum { j = false, k = true, l = false * true, m = true * 256 };
18119              /* The following fails for
18120                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18121              _Bool n[m];
18122              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18123              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18124              /* Catch a bug in an HP-UX C compiler.  See
18125                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18126                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18127               */
18128              _Bool q = true;
18129              _Bool *pq = &q;
18130
18131 int
18132 main ()
18133 {
18134
18135              bool e = &s;
18136              *pq |= q;
18137              *pq |= ! q;
18138              /* Refer to every declared value, to avoid compiler optimizations.  */
18139              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18140                      + !m + !n + !o + !p + !q + !pq);
18141
18142   ;
18143   return 0;
18144 }
18145 _ACEOF
18146 if ac_fn_c_try_compile "$LINENO"; then :
18147   ac_cv_header_stdbool_h=yes
18148 else
18149   ac_cv_header_stdbool_h=no
18150 fi
18151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18152 fi
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18154 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18155    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18156 if test "x$ac_cv_type__Bool" = xyes; then :
18157
18158 cat >>confdefs.h <<_ACEOF
18159 #define HAVE__BOOL 1
18160 _ACEOF
18161
18162
18163 fi
18164
18165
18166
18167     REPLACE_NULL=0;
18168   HAVE_MAX_ALIGN_T=1;
18169   HAVE_WCHAR_T=1;
18170
18171
18172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18173 $as_echo_n "checking for wchar_t... " >&6; }
18174 if ${gt_cv_c_wchar_t+:} false; then :
18175   $as_echo_n "(cached) " >&6
18176 else
18177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h.  */
18179 #include <stddef.h>
18180        wchar_t foo = (wchar_t)'\0';
18181 int
18182 main ()
18183 {
18184
18185   ;
18186   return 0;
18187 }
18188 _ACEOF
18189 if ac_fn_c_try_compile "$LINENO"; then :
18190   gt_cv_c_wchar_t=yes
18191 else
18192   gt_cv_c_wchar_t=no
18193 fi
18194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18195 fi
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18197 $as_echo "$gt_cv_c_wchar_t" >&6; }
18198   if test $gt_cv_c_wchar_t = yes; then
18199
18200 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18201
18202   fi
18203
18204
18205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18206 $as_echo_n "checking for long long int... " >&6; }
18207 if ${ac_cv_type_long_long_int+:} false; then :
18208   $as_echo_n "(cached) " >&6
18209 else
18210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211 /* end confdefs.h.  */
18212
18213   /* For now, do not test the preprocessor; as of 2007 there are too many
18214          implementations with broken preprocessors.  Perhaps this can
18215          be revisited in 2012.  In the meantime, code should not expect
18216          #if to work with literals wider than 32 bits.  */
18217       /* Test literals.  */
18218       long long int ll = 9223372036854775807ll;
18219       long long int nll = -9223372036854775807LL;
18220       unsigned long long int ull = 18446744073709551615ULL;
18221       /* Test constant expressions.   */
18222       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18223                      ? 1 : -1)];
18224       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18225                      ? 1 : -1)];
18226       int i = 63;
18227 int
18228 main ()
18229 {
18230 /* Test availability of runtime routines for shift and division.  */
18231       long long int llmax = 9223372036854775807ll;
18232       unsigned long long int ullmax = 18446744073709551615ull;
18233       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18234               | (llmax / ll) | (llmax % ll)
18235               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18236               | (ullmax / ull) | (ullmax % ull));
18237   ;
18238   return 0;
18239 }
18240
18241 _ACEOF
18242 if ac_fn_c_try_link "$LINENO"; then :
18243                           if test "$cross_compiling" = yes; then :
18244   ac_cv_type_long_long_int=yes
18245 else
18246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h.  */
18248 #include <limits.h>
18249                #ifndef LLONG_MAX
18250                # define HALF \
18251                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18252                # define LLONG_MAX (HALF - 1 + HALF)
18253                #endif
18254 int
18255 main ()
18256 {
18257 long long int n = 1;
18258                int i;
18259                for (i = 0; ; i++)
18260                  {
18261                    long long int m = n << i;
18262                    if (m >> i != n)
18263                      return 1;
18264                    if (LLONG_MAX / 2 < m)
18265                      break;
18266                  }
18267                return 0;
18268   ;
18269   return 0;
18270 }
18271 _ACEOF
18272 if ac_fn_c_try_run "$LINENO"; then :
18273   ac_cv_type_long_long_int=yes
18274 else
18275   ac_cv_type_long_long_int=no
18276 fi
18277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18278   conftest.$ac_objext conftest.beam conftest.$ac_ext
18279 fi
18280
18281 else
18282   ac_cv_type_long_long_int=no
18283 fi
18284 rm -f core conftest.err conftest.$ac_objext \
18285     conftest$ac_exeext conftest.$ac_ext
18286 fi
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18288 $as_echo "$ac_cv_type_long_long_int" >&6; }
18289   if test $ac_cv_type_long_long_int = yes; then
18290
18291 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18292
18293   fi
18294
18295
18296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18297 $as_echo_n "checking for unsigned long long int... " >&6; }
18298 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
18299   $as_echo_n "(cached) " >&6
18300 else
18301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18302 /* end confdefs.h.  */
18303
18304   /* For now, do not test the preprocessor; as of 2007 there are too many
18305          implementations with broken preprocessors.  Perhaps this can
18306          be revisited in 2012.  In the meantime, code should not expect
18307          #if to work with literals wider than 32 bits.  */
18308       /* Test literals.  */
18309       long long int ll = 9223372036854775807ll;
18310       long long int nll = -9223372036854775807LL;
18311       unsigned long long int ull = 18446744073709551615ULL;
18312       /* Test constant expressions.   */
18313       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18314                      ? 1 : -1)];
18315       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18316                      ? 1 : -1)];
18317       int i = 63;
18318 int
18319 main ()
18320 {
18321 /* Test availability of runtime routines for shift and division.  */
18322       long long int llmax = 9223372036854775807ll;
18323       unsigned long long int ullmax = 18446744073709551615ull;
18324       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18325               | (llmax / ll) | (llmax % ll)
18326               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18327               | (ullmax / ull) | (ullmax % ull));
18328   ;
18329   return 0;
18330 }
18331
18332 _ACEOF
18333 if ac_fn_c_try_link "$LINENO"; then :
18334   ac_cv_type_unsigned_long_long_int=yes
18335 else
18336   ac_cv_type_unsigned_long_long_int=no
18337 fi
18338 rm -f core conftest.err conftest.$ac_objext \
18339     conftest$ac_exeext conftest.$ac_ext
18340 fi
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18342 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18343   if test $ac_cv_type_unsigned_long_long_int = yes; then
18344
18345 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18346
18347   fi
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362   if test $ac_cv_type_long_long_int = yes; then
18363     HAVE_LONG_LONG_INT=1
18364   else
18365     HAVE_LONG_LONG_INT=0
18366   fi
18367
18368
18369   if test $ac_cv_type_unsigned_long_long_int = yes; then
18370     HAVE_UNSIGNED_LONG_LONG_INT=1
18371   else
18372     HAVE_UNSIGNED_LONG_LONG_INT=0
18373   fi
18374
18375
18376
18377   :
18378
18379
18380
18381
18382
18383   if test $ac_cv_header_wchar_h = yes; then
18384     HAVE_WCHAR_H=1
18385   else
18386     HAVE_WCHAR_H=0
18387   fi
18388
18389
18390       if test $ac_cv_header_inttypes_h = yes; then
18391     HAVE_INTTYPES_H=1
18392   else
18393     HAVE_INTTYPES_H=0
18394   fi
18395
18396
18397       if test $ac_cv_header_sys_types_h = yes; then
18398     HAVE_SYS_TYPES_H=1
18399   else
18400     HAVE_SYS_TYPES_H=0
18401   fi
18402
18403
18404
18405
18406
18407
18408
18409
18410   :
18411
18412
18413
18414
18415
18416
18417
18418
18419      if test $gl_cv_have_include_next = yes; then
18420        gl_cv_next_stdint_h='<'stdint.h'>'
18421      else
18422        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18423 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18424 if ${gl_cv_next_stdint_h+:} false; then :
18425   $as_echo_n "(cached) " >&6
18426 else
18427
18428              if test $ac_cv_header_stdint_h = yes; then
18429
18430
18431
18432
18433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18434 /* end confdefs.h.  */
18435 #include <stdint.h>
18436 _ACEOF
18437                 case "$host_os" in
18438     aix*) gl_absname_cpp="$ac_cpp -C" ;;
18439     *)    gl_absname_cpp="$ac_cpp" ;;
18440   esac
18441
18442   case "$host_os" in
18443     mingw*)
18444                                           gl_dirsep_regex='[/\\]'
18445       ;;
18446     *)
18447       gl_dirsep_regex='\/'
18448       ;;
18449   esac
18450       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18451   gl_header_literal_regex=`echo 'stdint.h' \
18452                            | sed -e "$gl_make_literal_regex_sed"`
18453   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18454       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18455       s|^/[^/]|//&|
18456       p
18457       q
18458     }'
18459
18460         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18461   sed -n "$gl_absolute_header_sed"`
18462
18463            gl_header=$gl_cv_absolute_stdint_h
18464            gl_cv_next_stdint_h='"'$gl_header'"'
18465           else
18466                gl_cv_next_stdint_h='<'stdint.h'>'
18467              fi
18468
18469
18470 fi
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18472 $as_echo "$gl_cv_next_stdint_h" >&6; }
18473      fi
18474      NEXT_STDINT_H=$gl_cv_next_stdint_h
18475
18476      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18477        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18478        gl_next_as_first_directive='<'stdint.h'>'
18479      else
18480        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18481        gl_next_as_first_directive=$gl_cv_next_stdint_h
18482      fi
18483      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18484
18485
18486
18487
18488   if test $ac_cv_header_stdint_h = yes; then
18489     HAVE_STDINT_H=1
18490   else
18491     HAVE_STDINT_H=0
18492   fi
18493
18494
18495     if test $ac_cv_header_stdint_h = yes; then
18496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18497 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18498 if ${gl_cv_header_working_stdint_h+:} false; then :
18499   $as_echo_n "(cached) " >&6
18500 else
18501   gl_cv_header_working_stdint_h=no
18502        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18503 /* end confdefs.h.  */
18504
18505
18506 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18507 #include <stdint.h>
18508 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
18509 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18510 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18511 #endif
18512
18513
18514   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18515      included before <wchar.h>.  */
18516   #include <stddef.h>
18517   #include <signal.h>
18518   #if HAVE_WCHAR_H
18519   # include <stdio.h>
18520   # include <time.h>
18521   # include <wchar.h>
18522   #endif
18523
18524
18525 #ifdef INT8_MAX
18526 int8_t a1 = INT8_MAX;
18527 int8_t a1min = INT8_MIN;
18528 #endif
18529 #ifdef INT16_MAX
18530 int16_t a2 = INT16_MAX;
18531 int16_t a2min = INT16_MIN;
18532 #endif
18533 #ifdef INT32_MAX
18534 int32_t a3 = INT32_MAX;
18535 int32_t a3min = INT32_MIN;
18536 #endif
18537 #ifdef INT64_MAX
18538 int64_t a4 = INT64_MAX;
18539 int64_t a4min = INT64_MIN;
18540 #endif
18541 #ifdef UINT8_MAX
18542 uint8_t b1 = UINT8_MAX;
18543 #else
18544 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18545 #endif
18546 #ifdef UINT16_MAX
18547 uint16_t b2 = UINT16_MAX;
18548 #endif
18549 #ifdef UINT32_MAX
18550 uint32_t b3 = UINT32_MAX;
18551 #endif
18552 #ifdef UINT64_MAX
18553 uint64_t b4 = UINT64_MAX;
18554 #endif
18555 int_least8_t c1 = INT8_C (0x7f);
18556 int_least8_t c1max = INT_LEAST8_MAX;
18557 int_least8_t c1min = INT_LEAST8_MIN;
18558 int_least16_t c2 = INT16_C (0x7fff);
18559 int_least16_t c2max = INT_LEAST16_MAX;
18560 int_least16_t c2min = INT_LEAST16_MIN;
18561 int_least32_t c3 = INT32_C (0x7fffffff);
18562 int_least32_t c3max = INT_LEAST32_MAX;
18563 int_least32_t c3min = INT_LEAST32_MIN;
18564 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18565 int_least64_t c4max = INT_LEAST64_MAX;
18566 int_least64_t c4min = INT_LEAST64_MIN;
18567 uint_least8_t d1 = UINT8_C (0xff);
18568 uint_least8_t d1max = UINT_LEAST8_MAX;
18569 uint_least16_t d2 = UINT16_C (0xffff);
18570 uint_least16_t d2max = UINT_LEAST16_MAX;
18571 uint_least32_t d3 = UINT32_C (0xffffffff);
18572 uint_least32_t d3max = UINT_LEAST32_MAX;
18573 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18574 uint_least64_t d4max = UINT_LEAST64_MAX;
18575 int_fast8_t e1 = INT_FAST8_MAX;
18576 int_fast8_t e1min = INT_FAST8_MIN;
18577 int_fast16_t e2 = INT_FAST16_MAX;
18578 int_fast16_t e2min = INT_FAST16_MIN;
18579 int_fast32_t e3 = INT_FAST32_MAX;
18580 int_fast32_t e3min = INT_FAST32_MIN;
18581 int_fast64_t e4 = INT_FAST64_MAX;
18582 int_fast64_t e4min = INT_FAST64_MIN;
18583 uint_fast8_t f1 = UINT_FAST8_MAX;
18584 uint_fast16_t f2 = UINT_FAST16_MAX;
18585 uint_fast32_t f3 = UINT_FAST32_MAX;
18586 uint_fast64_t f4 = UINT_FAST64_MAX;
18587 #ifdef INTPTR_MAX
18588 intptr_t g = INTPTR_MAX;
18589 intptr_t gmin = INTPTR_MIN;
18590 #endif
18591 #ifdef UINTPTR_MAX
18592 uintptr_t h = UINTPTR_MAX;
18593 #endif
18594 intmax_t i = INTMAX_MAX;
18595 uintmax_t j = UINTMAX_MAX;
18596
18597 #include <limits.h> /* for CHAR_BIT */
18598 #define TYPE_MINIMUM(t) \
18599   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18600 #define TYPE_MAXIMUM(t) \
18601   ((t) ((t) 0 < (t) -1 \
18602         ? (t) -1 \
18603         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18604 struct s {
18605   int check_PTRDIFF:
18606       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18607       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18608       ? 1 : -1;
18609   /* Detect bug in FreeBSD 6.0 / ia64.  */
18610   int check_SIG_ATOMIC:
18611       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18612       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18613       ? 1 : -1;
18614   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18615   int check_WCHAR:
18616       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18617       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18618       ? 1 : -1;
18619   /* Detect bug in mingw.  */
18620   int check_WINT:
18621       WINT_MIN == TYPE_MINIMUM (wint_t)
18622       && WINT_MAX == TYPE_MAXIMUM (wint_t)
18623       ? 1 : -1;
18624
18625   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
18626   int check_UINT8_C:
18627         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18628   int check_UINT16_C:
18629         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18630
18631   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
18632 #ifdef UINT8_MAX
18633   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18634 #endif
18635 #ifdef UINT16_MAX
18636   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18637 #endif
18638 #ifdef UINT32_MAX
18639   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18640 #endif
18641 #ifdef UINT64_MAX
18642   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18643 #endif
18644   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18645   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18646   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18647   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18648   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18649   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18650   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18651   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18652   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18653   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18654   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18655 };
18656
18657 int
18658 main ()
18659 {
18660
18661   ;
18662   return 0;
18663 }
18664 _ACEOF
18665 if ac_fn_c_try_compile "$LINENO"; then :
18666                                                     if test "$cross_compiling" = yes; then :
18667                  gl_cv_header_working_stdint_h=yes
18668
18669 else
18670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671 /* end confdefs.h.  */
18672
18673
18674 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18675 #include <stdint.h>
18676
18677
18678   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18679      included before <wchar.h>.  */
18680   #include <stddef.h>
18681   #include <signal.h>
18682   #if HAVE_WCHAR_H
18683   # include <stdio.h>
18684   # include <time.h>
18685   # include <wchar.h>
18686   #endif
18687
18688
18689 #include <stdio.h>
18690 #include <string.h>
18691 #define MVAL(macro) MVAL1(macro)
18692 #define MVAL1(expression) #expression
18693 static const char *macro_values[] =
18694   {
18695 #ifdef INT8_MAX
18696     MVAL (INT8_MAX),
18697 #endif
18698 #ifdef INT16_MAX
18699     MVAL (INT16_MAX),
18700 #endif
18701 #ifdef INT32_MAX
18702     MVAL (INT32_MAX),
18703 #endif
18704 #ifdef INT64_MAX
18705     MVAL (INT64_MAX),
18706 #endif
18707 #ifdef UINT8_MAX
18708     MVAL (UINT8_MAX),
18709 #endif
18710 #ifdef UINT16_MAX
18711     MVAL (UINT16_MAX),
18712 #endif
18713 #ifdef UINT32_MAX
18714     MVAL (UINT32_MAX),
18715 #endif
18716 #ifdef UINT64_MAX
18717     MVAL (UINT64_MAX),
18718 #endif
18719     NULL
18720   };
18721
18722 int
18723 main ()
18724 {
18725
18726   const char **mv;
18727   for (mv = macro_values; *mv != NULL; mv++)
18728     {
18729       const char *value = *mv;
18730       /* Test whether it looks like a cast expression.  */
18731       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18732           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18733           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18734           || strncmp (value, "((int)"/*)*/, 6) == 0
18735           || strncmp (value, "((signed short)"/*)*/, 15) == 0
18736           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18737         return mv - macro_values + 1;
18738     }
18739   return 0;
18740
18741   ;
18742   return 0;
18743 }
18744 _ACEOF
18745 if ac_fn_c_try_run "$LINENO"; then :
18746   gl_cv_header_working_stdint_h=yes
18747 fi
18748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18749   conftest.$ac_objext conftest.beam conftest.$ac_ext
18750 fi
18751
18752
18753 fi
18754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18755
18756 fi
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18758 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18759   fi
18760   if test "$gl_cv_header_working_stdint_h" = yes; then
18761     STDINT_H=
18762   else
18763             for ac_header in sys/inttypes.h sys/bitypes.h
18764 do :
18765   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18766 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18767 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18768   cat >>confdefs.h <<_ACEOF
18769 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18770 _ACEOF
18771
18772 fi
18773
18774 done
18775
18776     if test $ac_cv_header_sys_inttypes_h = yes; then
18777       HAVE_SYS_INTTYPES_H=1
18778     else
18779       HAVE_SYS_INTTYPES_H=0
18780     fi
18781
18782     if test $ac_cv_header_sys_bitypes_h = yes; then
18783       HAVE_SYS_BITYPES_H=1
18784     else
18785       HAVE_SYS_BITYPES_H=0
18786     fi
18787
18788
18789
18790
18791   if test $APPLE_UNIVERSAL_BUILD = 0; then
18792
18793
18794   for gltype in ptrdiff_t size_t ; do
18795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18796 $as_echo_n "checking for bit size of $gltype... " >&6; }
18797 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18798   $as_echo_n "(cached) " >&6
18799 else
18800   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
18801   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18802      included before <wchar.h>.  */
18803   #include <stddef.h>
18804   #include <signal.h>
18805   #if HAVE_WCHAR_H
18806   # include <stdio.h>
18807   # include <time.h>
18808   # include <wchar.h>
18809   #endif
18810
18811 #include <limits.h>"; then :
18812
18813 else
18814   result=unknown
18815 fi
18816
18817        eval gl_cv_bitsizeof_${gltype}=\$result
18818
18819 fi
18820 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18821                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18822 $as_echo "$ac_res" >&6; }
18823     eval result=\$gl_cv_bitsizeof_${gltype}
18824     if test $result = unknown; then
18825                                                 result=0
18826     fi
18827     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18828     cat >>confdefs.h <<_ACEOF
18829 #define BITSIZEOF_${GLTYPE} $result
18830 _ACEOF
18831
18832     eval BITSIZEOF_${GLTYPE}=\$result
18833   done
18834
18835
18836   fi
18837
18838
18839   for gltype in sig_atomic_t wchar_t wint_t ; do
18840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18841 $as_echo_n "checking for bit size of $gltype... " >&6; }
18842 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18843   $as_echo_n "(cached) " >&6
18844 else
18845   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
18846   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18847      included before <wchar.h>.  */
18848   #include <stddef.h>
18849   #include <signal.h>
18850   #if HAVE_WCHAR_H
18851   # include <stdio.h>
18852   # include <time.h>
18853   # include <wchar.h>
18854   #endif
18855
18856 #include <limits.h>"; then :
18857
18858 else
18859   result=unknown
18860 fi
18861
18862        eval gl_cv_bitsizeof_${gltype}=\$result
18863
18864 fi
18865 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18866                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18867 $as_echo "$ac_res" >&6; }
18868     eval result=\$gl_cv_bitsizeof_${gltype}
18869     if test $result = unknown; then
18870                                                 result=0
18871     fi
18872     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18873     cat >>confdefs.h <<_ACEOF
18874 #define BITSIZEOF_${GLTYPE} $result
18875 _ACEOF
18876
18877     eval BITSIZEOF_${GLTYPE}=\$result
18878   done
18879
18880
18881
18882
18883   for gltype in sig_atomic_t wchar_t wint_t ; do
18884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18885 $as_echo_n "checking whether $gltype is signed... " >&6; }
18886 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
18887   $as_echo_n "(cached) " >&6
18888 else
18889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18890 /* end confdefs.h.  */
18891
18892   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18893      included before <wchar.h>.  */
18894   #include <stddef.h>
18895   #include <signal.h>
18896   #if HAVE_WCHAR_H
18897   # include <stdio.h>
18898   # include <time.h>
18899   # include <wchar.h>
18900   #endif
18901
18902             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18903 int
18904 main ()
18905 {
18906
18907   ;
18908   return 0;
18909 }
18910 _ACEOF
18911 if ac_fn_c_try_compile "$LINENO"; then :
18912   result=yes
18913 else
18914   result=no
18915 fi
18916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18917        eval gl_cv_type_${gltype}_signed=\$result
18918
18919 fi
18920 eval ac_res=\$gl_cv_type_${gltype}_signed
18921                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18922 $as_echo "$ac_res" >&6; }
18923     eval result=\$gl_cv_type_${gltype}_signed
18924     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18925     if test "$result" = yes; then
18926       cat >>confdefs.h <<_ACEOF
18927 #define HAVE_SIGNED_${GLTYPE} 1
18928 _ACEOF
18929
18930       eval HAVE_SIGNED_${GLTYPE}=1
18931     else
18932       eval HAVE_SIGNED_${GLTYPE}=0
18933     fi
18934   done
18935
18936
18937   gl_cv_type_ptrdiff_t_signed=yes
18938   gl_cv_type_size_t_signed=no
18939   if test $APPLE_UNIVERSAL_BUILD = 0; then
18940
18941
18942   for gltype in ptrdiff_t size_t ; do
18943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18944 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18945 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18946   $as_echo_n "(cached) " >&6
18947 else
18948   eval gl_cv_type_${gltype}_suffix=no
18949        eval result=\$gl_cv_type_${gltype}_signed
18950        if test "$result" = yes; then
18951          glsufu=
18952        else
18953          glsufu=u
18954        fi
18955        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18956          case $glsuf in
18957            '')  gltype1='int';;
18958            l)   gltype1='long int';;
18959            ll)  gltype1='long long int';;
18960            i64) gltype1='__int64';;
18961            u)   gltype1='unsigned int';;
18962            ul)  gltype1='unsigned long int';;
18963            ull) gltype1='unsigned long long int';;
18964            ui64)gltype1='unsigned __int64';;
18965          esac
18966          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18967 /* end confdefs.h.  */
18968
18969   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18970      included before <wchar.h>.  */
18971   #include <stddef.h>
18972   #include <signal.h>
18973   #if HAVE_WCHAR_H
18974   # include <stdio.h>
18975   # include <time.h>
18976   # include <wchar.h>
18977   #endif
18978
18979               extern $gltype foo;
18980               extern $gltype1 foo;
18981 int
18982 main ()
18983 {
18984
18985   ;
18986   return 0;
18987 }
18988 _ACEOF
18989 if ac_fn_c_try_compile "$LINENO"; then :
18990   eval gl_cv_type_${gltype}_suffix=\$glsuf
18991 fi
18992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18993          eval result=\$gl_cv_type_${gltype}_suffix
18994          test "$result" != no && break
18995        done
18996 fi
18997 eval ac_res=\$gl_cv_type_${gltype}_suffix
18998                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18999 $as_echo "$ac_res" >&6; }
19000     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19001     eval result=\$gl_cv_type_${gltype}_suffix
19002     test "$result" = no && result=
19003     eval ${GLTYPE}_SUFFIX=\$result
19004     cat >>confdefs.h <<_ACEOF
19005 #define ${GLTYPE}_SUFFIX $result
19006 _ACEOF
19007
19008   done
19009
19010
19011   fi
19012
19013
19014   for gltype in sig_atomic_t wchar_t wint_t ; do
19015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19016 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19017 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
19018   $as_echo_n "(cached) " >&6
19019 else
19020   eval gl_cv_type_${gltype}_suffix=no
19021        eval result=\$gl_cv_type_${gltype}_signed
19022        if test "$result" = yes; then
19023          glsufu=
19024        else
19025          glsufu=u
19026        fi
19027        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19028          case $glsuf in
19029            '')  gltype1='int';;
19030            l)   gltype1='long int';;
19031            ll)  gltype1='long long int';;
19032            i64) gltype1='__int64';;
19033            u)   gltype1='unsigned int';;
19034            ul)  gltype1='unsigned long int';;
19035            ull) gltype1='unsigned long long int';;
19036            ui64)gltype1='unsigned __int64';;
19037          esac
19038          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19039 /* end confdefs.h.  */
19040
19041   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19042      included before <wchar.h>.  */
19043   #include <stddef.h>
19044   #include <signal.h>
19045   #if HAVE_WCHAR_H
19046   # include <stdio.h>
19047   # include <time.h>
19048   # include <wchar.h>
19049   #endif
19050
19051               extern $gltype foo;
19052               extern $gltype1 foo;
19053 int
19054 main ()
19055 {
19056
19057   ;
19058   return 0;
19059 }
19060 _ACEOF
19061 if ac_fn_c_try_compile "$LINENO"; then :
19062   eval gl_cv_type_${gltype}_suffix=\$glsuf
19063 fi
19064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19065          eval result=\$gl_cv_type_${gltype}_suffix
19066          test "$result" != no && break
19067        done
19068 fi
19069 eval ac_res=\$gl_cv_type_${gltype}_suffix
19070                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19071 $as_echo "$ac_res" >&6; }
19072     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19073     eval result=\$gl_cv_type_${gltype}_suffix
19074     test "$result" = no && result=
19075     eval ${GLTYPE}_SUFFIX=\$result
19076     cat >>confdefs.h <<_ACEOF
19077 #define ${GLTYPE}_SUFFIX $result
19078 _ACEOF
19079
19080   done
19081
19082
19083
19084           if test $BITSIZEOF_WINT_T -lt 32; then
19085     BITSIZEOF_WINT_T=32
19086   fi
19087
19088     STDINT_H=stdint.h
19089   fi
19090
19091    if test -n "$STDINT_H"; then
19092   GL_GENERATE_STDINT_H_TRUE=
19093   GL_GENERATE_STDINT_H_FALSE='#'
19094 else
19095   GL_GENERATE_STDINT_H_TRUE='#'
19096   GL_GENERATE_STDINT_H_FALSE=
19097 fi
19098
19099
19100
19101   GNULIB_FFS=0;
19102     HAVE_FFS=1;
19103   HAVE_STRCASECMP=1;
19104   HAVE_DECL_STRNCASECMP=1;
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117      if test $gl_cv_have_include_next = yes; then
19118        gl_cv_next_string_h='<'string.h'>'
19119      else
19120        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
19121 $as_echo_n "checking absolute name of <string.h>... " >&6; }
19122 if ${gl_cv_next_string_h+:} false; then :
19123   $as_echo_n "(cached) " >&6
19124 else
19125
19126
19127
19128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19129 /* end confdefs.h.  */
19130 #include <string.h>
19131 _ACEOF
19132                 case "$host_os" in
19133     aix*) gl_absname_cpp="$ac_cpp -C" ;;
19134     *)    gl_absname_cpp="$ac_cpp" ;;
19135   esac
19136
19137   case "$host_os" in
19138     mingw*)
19139                                           gl_dirsep_regex='[/\\]'
19140       ;;
19141     *)
19142       gl_dirsep_regex='\/'
19143       ;;
19144   esac
19145       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19146   gl_header_literal_regex=`echo 'string.h' \
19147                            | sed -e "$gl_make_literal_regex_sed"`
19148   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19149       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19150       s|^/[^/]|//&|
19151       p
19152       q
19153     }'
19154
19155         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19156   sed -n "$gl_absolute_header_sed"`
19157
19158            gl_header=$gl_cv_absolute_string_h
19159            gl_cv_next_string_h='"'$gl_header'"'
19160
19161
19162 fi
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
19164 $as_echo "$gl_cv_next_string_h" >&6; }
19165      fi
19166      NEXT_STRING_H=$gl_cv_next_string_h
19167
19168      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19169        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19170        gl_next_as_first_directive='<'string.h'>'
19171      else
19172        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19173        gl_next_as_first_directive=$gl_cv_next_string_h
19174      fi
19175      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
19176
19177
19178
19179
19180
19181
19182     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
19183     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19185 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19186 if eval \${$as_gl_Symbol+:} false; then :
19187   $as_echo_n "(cached) " >&6
19188 else
19189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19190 /* end confdefs.h.  */
19191 #include <string.h>
19192
19193 int
19194 main ()
19195 {
19196 #undef $gl_func
19197   (void) $gl_func;
19198   ;
19199   return 0;
19200 }
19201 _ACEOF
19202 if ac_fn_c_try_compile "$LINENO"; then :
19203   eval "$as_gl_Symbol=yes"
19204 else
19205   eval "$as_gl_Symbol=no"
19206 fi
19207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19208 fi
19209 eval ac_res=\$$as_gl_Symbol
19210                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19211 $as_echo "$ac_res" >&6; }
19212     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19213   cat >>confdefs.h <<_ACEOF
19214 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19215 _ACEOF
19216
19217                      eval ac_cv_have_decl_$gl_func=yes
19218 fi
19219       done
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236   :
19237
19238
19239
19240
19241
19242
19243
19244
19245      if test $gl_cv_have_include_next = yes; then
19246        gl_cv_next_strings_h='<'strings.h'>'
19247      else
19248        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
19249 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
19250 if ${gl_cv_next_strings_h+:} false; then :
19251   $as_echo_n "(cached) " >&6
19252 else
19253
19254              if test $ac_cv_header_strings_h = yes; then
19255
19256
19257
19258
19259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19260 /* end confdefs.h.  */
19261 #include <strings.h>
19262 _ACEOF
19263                 case "$host_os" in
19264     aix*) gl_absname_cpp="$ac_cpp -C" ;;
19265     *)    gl_absname_cpp="$ac_cpp" ;;
19266   esac
19267
19268   case "$host_os" in
19269     mingw*)
19270                                           gl_dirsep_regex='[/\\]'
19271       ;;
19272     *)
19273       gl_dirsep_regex='\/'
19274       ;;
19275   esac
19276       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19277   gl_header_literal_regex=`echo 'strings.h' \
19278                            | sed -e "$gl_make_literal_regex_sed"`
19279   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19280       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19281       s|^/[^/]|//&|
19282       p
19283       q
19284     }'
19285
19286         gl_cv_absolute_strings_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19287   sed -n "$gl_absolute_header_sed"`
19288
19289            gl_header=$gl_cv_absolute_strings_h
19290            gl_cv_next_strings_h='"'$gl_header'"'
19291           else
19292                gl_cv_next_strings_h='<'strings.h'>'
19293              fi
19294
19295
19296 fi
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
19298 $as_echo "$gl_cv_next_strings_h" >&6; }
19299      fi
19300      NEXT_STRINGS_H=$gl_cv_next_strings_h
19301
19302      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19303        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19304        gl_next_as_first_directive='<'strings.h'>'
19305      else
19306        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19307        gl_next_as_first_directive=$gl_cv_next_strings_h
19308      fi
19309      NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
19310
19311
19312
19313
19314   if test $ac_cv_header_strings_h = yes; then
19315     HAVE_STRINGS_H=1
19316   else
19317     HAVE_STRINGS_H=0
19318   fi
19319
19320
19321
19322     for gl_func in ffs strcasecmp strncasecmp; do
19323     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19325 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19326 if eval \${$as_gl_Symbol+:} false; then :
19327   $as_echo_n "(cached) " >&6
19328 else
19329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19330 /* end confdefs.h.  */
19331
19332     /* Minix 3.1.8 has a bug: <sys/types.h> must be included before
19333        <strings.h>.  */
19334     #include <sys/types.h>
19335     #include <strings.h>
19336
19337 int
19338 main ()
19339 {
19340 #undef $gl_func
19341   (void) $gl_func;
19342   ;
19343   return 0;
19344 }
19345 _ACEOF
19346 if ac_fn_c_try_compile "$LINENO"; then :
19347   eval "$as_gl_Symbol=yes"
19348 else
19349   eval "$as_gl_Symbol=no"
19350 fi
19351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19352 fi
19353 eval ac_res=\$$as_gl_Symbol
19354                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19355 $as_echo "$ac_res" >&6; }
19356     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19357   cat >>confdefs.h <<_ACEOF
19358 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19359 _ACEOF
19360
19361                      eval ac_cv_have_decl_$gl_func=yes
19362 fi
19363       done
19364
19365
19366
19367       ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
19368 if test "x$ac_cv_have_decl_strndup" = xyes; then :
19369   ac_have_decl=1
19370 else
19371   ac_have_decl=0
19372 fi
19373
19374 cat >>confdefs.h <<_ACEOF
19375 #define HAVE_DECL_STRNDUP $ac_have_decl
19376 _ACEOF
19377
19378
19379
19380
19381
19382
19383
19384
19385       ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
19386 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
19387   ac_have_decl=1
19388 else
19389   ac_have_decl=0
19390 fi
19391
19392 cat >>confdefs.h <<_ACEOF
19393 #define HAVE_DECL_STRNLEN $ac_have_decl
19394 _ACEOF
19395
19396
19397
19398       ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
19399 if test "x$ac_cv_have_decl_strtok_r" = xyes; then :
19400   ac_have_decl=1
19401 else
19402   ac_have_decl=0
19403 fi
19404
19405 cat >>confdefs.h <<_ACEOF
19406 #define HAVE_DECL_STRTOK_R $ac_have_decl
19407 _ACEOF
19408
19409
19410
19411   GNULIB_SOCKET=0;
19412   GNULIB_CONNECT=0;
19413   GNULIB_ACCEPT=0;
19414   GNULIB_BIND=0;
19415   GNULIB_GETPEERNAME=0;
19416   GNULIB_GETSOCKNAME=0;
19417   GNULIB_GETSOCKOPT=0;
19418   GNULIB_LISTEN=0;
19419   GNULIB_RECV=0;
19420   GNULIB_SEND=0;
19421   GNULIB_RECVFROM=0;
19422   GNULIB_SENDTO=0;
19423   GNULIB_SETSOCKOPT=0;
19424   GNULIB_SHUTDOWN=0;
19425   GNULIB_ACCEPT4=0;
19426   HAVE_STRUCT_SOCKADDR_STORAGE=1;
19427   HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
19428
19429   HAVE_SA_FAMILY_T=1;
19430   HAVE_ACCEPT4=1;
19431
19432
19433
19434
19435
19436         case "$host_os" in
19437     osf*)
19438
19439 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
19440
19441       ;;
19442   esac
19443
19444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
19445 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
19446 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
19447   $as_echo_n "(cached) " >&6
19448 else
19449
19450       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451 /* end confdefs.h.  */
19452 #include <sys/socket.h>
19453 int
19454 main ()
19455 {
19456
19457   ;
19458   return 0;
19459 }
19460 _ACEOF
19461 if ac_fn_c_try_compile "$LINENO"; then :
19462   gl_cv_header_sys_socket_h_selfcontained=yes
19463 else
19464   gl_cv_header_sys_socket_h_selfcontained=no
19465 fi
19466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19467
19468 fi
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
19470 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
19471   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
19472             for ac_func in shutdown
19473 do :
19474   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
19475 if test "x$ac_cv_func_shutdown" = xyes; then :
19476   cat >>confdefs.h <<_ACEOF
19477 #define HAVE_SHUTDOWN 1
19478 _ACEOF
19479
19480 fi
19481 done
19482
19483     if test $ac_cv_func_shutdown = yes; then
19484       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
19485 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
19486 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
19487   $as_echo_n "(cached) " >&6
19488 else
19489
19490           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19491 /* end confdefs.h.  */
19492 #include <sys/socket.h>
19493 int
19494 main ()
19495 {
19496 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
19497   ;
19498   return 0;
19499 }
19500 _ACEOF
19501 if ac_fn_c_try_compile "$LINENO"; then :
19502   gl_cv_header_sys_socket_h_shut=yes
19503 else
19504   gl_cv_header_sys_socket_h_shut=no
19505 fi
19506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19507
19508 fi
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
19510 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
19511       if test $gl_cv_header_sys_socket_h_shut = no; then
19512         SYS_SOCKET_H='sys/socket.h'
19513       fi
19514     fi
19515   fi
19516   # We need to check for ws2tcpip.h now.
19517
19518
19519
19520
19521
19522
19523
19524
19525   :
19526
19527
19528
19529
19530
19531
19532
19533
19534      if test $gl_cv_have_include_next = yes; then
19535        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
19536      else
19537        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
19538 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
19539 if ${gl_cv_next_sys_socket_h+:} false; then :
19540   $as_echo_n "(cached) " >&6
19541 else
19542
19543              if test $ac_cv_header_sys_socket_h = yes; then
19544
19545
19546
19547
19548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549 /* end confdefs.h.  */
19550 #include <sys/socket.h>
19551 _ACEOF
19552                 case "$host_os" in
19553     aix*) gl_absname_cpp="$ac_cpp -C" ;;
19554     *)    gl_absname_cpp="$ac_cpp" ;;
19555   esac
19556
19557   case "$host_os" in
19558     mingw*)
19559                                           gl_dirsep_regex='[/\\]'
19560       ;;
19561     *)
19562       gl_dirsep_regex='\/'
19563       ;;
19564   esac
19565       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19566   gl_header_literal_regex=`echo 'sys/socket.h' \
19567                            | sed -e "$gl_make_literal_regex_sed"`
19568   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19569       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19570       s|^/[^/]|//&|
19571       p
19572       q
19573     }'
19574
19575         gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19576   sed -n "$gl_absolute_header_sed"`
19577
19578            gl_header=$gl_cv_absolute_sys_socket_h
19579            gl_cv_next_sys_socket_h='"'$gl_header'"'
19580           else
19581                gl_cv_next_sys_socket_h='<'sys/socket.h'>'
19582              fi
19583
19584
19585 fi
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
19587 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
19588      fi
19589      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
19590
19591      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19592        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19593        gl_next_as_first_directive='<'sys/socket.h'>'
19594      else
19595        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19596        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
19597      fi
19598      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
19599
19600
19601
19602
19603   if test $ac_cv_header_sys_socket_h = yes; then
19604     HAVE_SYS_SOCKET_H=1
19605     HAVE_WS2TCPIP_H=0
19606   else
19607     HAVE_SYS_SOCKET_H=0
19608     if test $ac_cv_header_ws2tcpip_h = yes; then
19609       HAVE_WS2TCPIP_H=1
19610     else
19611       HAVE_WS2TCPIP_H=0
19612     fi
19613   fi
19614
19615
19616
19617   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
19618   /* sys/types.h is not needed according to POSIX, but the
19619      sys/socket.h in i386-unknown-freebsd4.10 and
19620      powerpc-apple-darwin5.5 required it. */
19621 #include <sys/types.h>
19622 #ifdef HAVE_SYS_SOCKET_H
19623 #include <sys/socket.h>
19624 #endif
19625 #ifdef HAVE_WS2TCPIP_H
19626 #include <ws2tcpip.h>
19627 #endif
19628
19629 "
19630 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
19631
19632 cat >>confdefs.h <<_ACEOF
19633 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
19634 _ACEOF
19635
19636
19637 fi
19638 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
19639   /* sys/types.h is not needed according to POSIX, but the
19640      sys/socket.h in i386-unknown-freebsd4.10 and
19641      powerpc-apple-darwin5.5 required it. */
19642 #include <sys/types.h>
19643 #ifdef HAVE_SYS_SOCKET_H
19644 #include <sys/socket.h>
19645 #endif
19646 #ifdef HAVE_WS2TCPIP_H
19647 #include <ws2tcpip.h>
19648 #endif
19649
19650 "
19651 if test "x$ac_cv_type_sa_family_t" = xyes; then :
19652
19653 cat >>confdefs.h <<_ACEOF
19654 #define HAVE_SA_FAMILY_T 1
19655 _ACEOF
19656
19657
19658 fi
19659
19660   if test $ac_cv_type_struct_sockaddr_storage = no; then
19661     HAVE_STRUCT_SOCKADDR_STORAGE=0
19662   fi
19663   if test $ac_cv_type_sa_family_t = no; then
19664     HAVE_SA_FAMILY_T=0
19665   fi
19666   if test $ac_cv_type_struct_sockaddr_storage != no; then
19667     ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
19668        #ifdef HAVE_SYS_SOCKET_H
19669        #include <sys/socket.h>
19670        #endif
19671        #ifdef HAVE_WS2TCPIP_H
19672        #include <ws2tcpip.h>
19673        #endif
19674
19675 "
19676 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
19677
19678 cat >>confdefs.h <<_ACEOF
19679 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
19680 _ACEOF
19681
19682
19683 else
19684   HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
19685 fi
19686
19687   fi
19688   if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
19689      || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
19690     SYS_SOCKET_H='sys/socket.h'
19691   fi
19692
19693
19694
19695
19696   :
19697
19698
19699
19700
19701
19702   if test $ac_cv_header_sys_socket_h != yes; then
19703                     for ac_header in winsock2.h
19704 do :
19705   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19706 if test "x$ac_cv_header_winsock2_h" = xyes; then :
19707   cat >>confdefs.h <<_ACEOF
19708 #define HAVE_WINSOCK2_H 1
19709 _ACEOF
19710
19711 fi
19712
19713 done
19714
19715   fi
19716   if test "$ac_cv_header_winsock2_h" = yes; then
19717     HAVE_WINSOCK2_H=1
19718     UNISTD_H_HAVE_WINSOCK2_H=1
19719     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19720   else
19721     HAVE_WINSOCK2_H=0
19722   fi
19723
19724
19725
19726
19727     for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
19728     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19730 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19731 if eval \${$as_gl_Symbol+:} false; then :
19732   $as_echo_n "(cached) " >&6
19733 else
19734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19735 /* end confdefs.h.  */
19736
19737 /* Some systems require prerequisite headers.  */
19738 #include <sys/types.h>
19739 #include <sys/socket.h>
19740
19741 int
19742 main ()
19743 {
19744 #undef $gl_func
19745   (void) $gl_func;
19746   ;
19747   return 0;
19748 }
19749 _ACEOF
19750 if ac_fn_c_try_compile "$LINENO"; then :
19751   eval "$as_gl_Symbol=yes"
19752 else
19753   eval "$as_gl_Symbol=no"
19754 fi
19755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19756 fi
19757 eval ac_res=\$$as_gl_Symbol
19758                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19759 $as_echo "$ac_res" >&6; }
19760     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19761   cat >>confdefs.h <<_ACEOF
19762 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19763 _ACEOF
19764
19765                      eval ac_cv_have_decl_$gl_func=yes
19766 fi
19767       done
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778   GNULIB_MKTIME=0;
19779   GNULIB_NANOSLEEP=0;
19780   GNULIB_STRPTIME=0;
19781   GNULIB_TIMEGM=0;
19782   GNULIB_TIME_R=0;
19783     HAVE_DECL_LOCALTIME_R=1;
19784   HAVE_NANOSLEEP=1;
19785   HAVE_STRPTIME=1;
19786   HAVE_TIMEGM=1;
19787         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19788   REPLACE_MKTIME=GNULIB_PORTCHECK;
19789   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19790   REPLACE_TIMEGM=GNULIB_PORTCHECK;
19791
19792       : ${GNULIB_GETTIMEOFDAY=0};
19793         REPLACE_GMTIME=0;
19794   REPLACE_LOCALTIME=0;
19795
19796
19797
19798   :
19799
19800
19801
19802
19803
19804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19805 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19806 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
19807   $as_echo_n "(cached) " >&6
19808 else
19809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19810 /* end confdefs.h.  */
19811 #include <time.h>
19812
19813 int
19814 main ()
19815 {
19816 static struct timespec x; x.tv_sec = x.tv_nsec;
19817   ;
19818   return 0;
19819 }
19820 _ACEOF
19821 if ac_fn_c_try_compile "$LINENO"; then :
19822   gl_cv_sys_struct_timespec_in_time_h=yes
19823 else
19824   gl_cv_sys_struct_timespec_in_time_h=no
19825 fi
19826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19827 fi
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19829 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19830
19831   TIME_H_DEFINES_STRUCT_TIMESPEC=0
19832   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19833   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19834   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19835     TIME_H_DEFINES_STRUCT_TIMESPEC=1
19836   else
19837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19838 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19839 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
19840   $as_echo_n "(cached) " >&6
19841 else
19842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19843 /* end confdefs.h.  */
19844 #include <sys/time.h>
19845
19846 int
19847 main ()
19848 {
19849 static struct timespec x; x.tv_sec = x.tv_nsec;
19850   ;
19851   return 0;
19852 }
19853 _ACEOF
19854 if ac_fn_c_try_compile "$LINENO"; then :
19855   gl_cv_sys_struct_timespec_in_sys_time_h=yes
19856 else
19857   gl_cv_sys_struct_timespec_in_sys_time_h=no
19858 fi
19859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19860 fi
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19862 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19863     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19864       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19865     else
19866       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19867 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19868 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
19869   $as_echo_n "(cached) " >&6
19870 else
19871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19872 /* end confdefs.h.  */
19873 #include <pthread.h>
19874
19875 int
19876 main ()
19877 {
19878 static struct timespec x; x.tv_sec = x.tv_nsec;
19879   ;
19880   return 0;
19881 }
19882 _ACEOF
19883 if ac_fn_c_try_compile "$LINENO"; then :
19884   gl_cv_sys_struct_timespec_in_pthread_h=yes
19885 else
19886   gl_cv_sys_struct_timespec_in_pthread_h=no
19887 fi
19888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19889 fi
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19891 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19892       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19893         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19894       fi
19895     fi
19896   fi
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912      if test $gl_cv_have_include_next = yes; then
19913        gl_cv_next_time_h='<'time.h'>'
19914      else
19915        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19916 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19917 if ${gl_cv_next_time_h+:} false; then :
19918   $as_echo_n "(cached) " >&6
19919 else
19920
19921
19922
19923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924 /* end confdefs.h.  */
19925 #include <time.h>
19926 _ACEOF
19927                 case "$host_os" in
19928     aix*) gl_absname_cpp="$ac_cpp -C" ;;
19929     *)    gl_absname_cpp="$ac_cpp" ;;
19930   esac
19931
19932   case "$host_os" in
19933     mingw*)
19934                                           gl_dirsep_regex='[/\\]'
19935       ;;
19936     *)
19937       gl_dirsep_regex='\/'
19938       ;;
19939   esac
19940       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19941   gl_header_literal_regex=`echo 'time.h' \
19942                            | sed -e "$gl_make_literal_regex_sed"`
19943   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19944       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19945       s|^/[^/]|//&|
19946       p
19947       q
19948     }'
19949
19950         gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19951   sed -n "$gl_absolute_header_sed"`
19952
19953            gl_header=$gl_cv_absolute_time_h
19954            gl_cv_next_time_h='"'$gl_header'"'
19955
19956
19957 fi
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19959 $as_echo "$gl_cv_next_time_h" >&6; }
19960      fi
19961      NEXT_TIME_H=$gl_cv_next_time_h
19962
19963      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19964        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19965        gl_next_as_first_directive='<'time.h'>'
19966      else
19967        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19968        gl_next_as_first_directive=$gl_cv_next_time_h
19969      fi
19970      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19989 $as_echo_n "checking for wint_t... " >&6; }
19990 if ${gt_cv_c_wint_t+:} false; then :
19991   $as_echo_n "(cached) " >&6
19992 else
19993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994 /* end confdefs.h.  */
19995
19996 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19997    <wchar.h>.
19998    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
19999    before <wchar.h>.  */
20000 #include <stddef.h>
20001 #include <stdio.h>
20002 #include <time.h>
20003 #include <wchar.h>
20004        wint_t foo = (wchar_t)'\0';
20005 int
20006 main ()
20007 {
20008
20009   ;
20010   return 0;
20011 }
20012 _ACEOF
20013 if ac_fn_c_try_compile "$LINENO"; then :
20014   gt_cv_c_wint_t=yes
20015 else
20016   gt_cv_c_wint_t=no
20017 fi
20018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019 fi
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20021 $as_echo "$gt_cv_c_wint_t" >&6; }
20022   if test $gt_cv_c_wint_t = yes; then
20023
20024 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20025
20026   fi
20027
20028
20029
20030
20031
20032
20033
20034
20035   :
20036
20037
20038
20039
20040
20041   if test $ac_cv_header_features_h = yes; then
20042     HAVE_FEATURES_H=1
20043   else
20044     HAVE_FEATURES_H=0
20045   fi
20046
20047
20048
20049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20050 $as_echo_n "checking for inttypes.h... " >&6; }
20051 if ${gl_cv_header_inttypes_h+:} false; then :
20052   $as_echo_n "(cached) " >&6
20053 else
20054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20055 /* end confdefs.h.  */
20056 #include <sys/types.h>
20057 #include <inttypes.h>
20058 int
20059 main ()
20060 {
20061 uintmax_t i = (uintmax_t) -1; return !i;
20062   ;
20063   return 0;
20064 }
20065 _ACEOF
20066 if ac_fn_c_try_compile "$LINENO"; then :
20067   gl_cv_header_inttypes_h=yes
20068 else
20069   gl_cv_header_inttypes_h=no
20070 fi
20071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20072 fi
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
20074 $as_echo "$gl_cv_header_inttypes_h" >&6; }
20075   if test $gl_cv_header_inttypes_h = yes; then
20076
20077 cat >>confdefs.h <<_ACEOF
20078 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
20079 _ACEOF
20080
20081   fi
20082
20083
20084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
20085 $as_echo_n "checking for stdint.h... " >&6; }
20086 if ${gl_cv_header_stdint_h+:} false; then :
20087   $as_echo_n "(cached) " >&6
20088 else
20089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20090 /* end confdefs.h.  */
20091 #include <sys/types.h>
20092 #include <stdint.h>
20093 int
20094 main ()
20095 {
20096 uintmax_t i = (uintmax_t) -1; return !i;
20097   ;
20098   return 0;
20099 }
20100 _ACEOF
20101 if ac_fn_c_try_compile "$LINENO"; then :
20102   gl_cv_header_stdint_h=yes
20103 else
20104   gl_cv_header_stdint_h=no
20105 fi
20106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20107 fi
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
20109 $as_echo "$gl_cv_header_stdint_h" >&6; }
20110   if test $gl_cv_header_stdint_h = yes; then
20111
20112 cat >>confdefs.h <<_ACEOF
20113 #define HAVE_STDINT_H_WITH_UINTMAX 1
20114 _ACEOF
20115
20116   fi
20117
20118
20119
20120
20121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
20122 $as_echo_n "checking for intmax_t... " >&6; }
20123 if ${gt_cv_c_intmax_t+:} false; then :
20124   $as_echo_n "(cached) " >&6
20125 else
20126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20127 /* end confdefs.h.  */
20128
20129 #include <stddef.h>
20130 #include <stdlib.h>
20131 #if HAVE_STDINT_H_WITH_UINTMAX
20132 #include <stdint.h>
20133 #endif
20134 #if HAVE_INTTYPES_H_WITH_UINTMAX
20135 #include <inttypes.h>
20136 #endif
20137
20138 int
20139 main ()
20140 {
20141 intmax_t x = -1; return !x;
20142   ;
20143   return 0;
20144 }
20145 _ACEOF
20146 if ac_fn_c_try_compile "$LINENO"; then :
20147   gt_cv_c_intmax_t=yes
20148 else
20149   gt_cv_c_intmax_t=no
20150 fi
20151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20152 fi
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
20154 $as_echo "$gt_cv_c_intmax_t" >&6; }
20155   if test $gt_cv_c_intmax_t = yes; then
20156
20157 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20158
20159   else
20160
20161     test $ac_cv_type_long_long_int = yes \
20162       && ac_type='long long' \
20163       || ac_type='long'
20164
20165 cat >>confdefs.h <<_ACEOF
20166 #define intmax_t $ac_type
20167 _ACEOF
20168
20169   fi
20170
20171
20172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
20173 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
20174 if ${gl_cv_cc_double_expbit0+:} false; then :
20175   $as_echo_n "(cached) " >&6
20176 else
20177
20178       if test "$cross_compiling" = yes; then :
20179
20180                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20181 /* end confdefs.h.  */
20182
20183 #if defined arm || defined __arm || defined __arm__
20184   mixed_endianness
20185 #endif
20186
20187 _ACEOF
20188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20189   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
20190   gl_cv_cc_double_expbit0="unknown"
20191 else
20192
20193                                                          :
20194 if ${ac_cv_c_bigendian+:} false; then :
20195   $as_echo_n "(cached) " >&6
20196 else
20197   ac_cv_c_bigendian=unknown
20198     # See if we're dealing with a universal compiler.
20199     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20200 /* end confdefs.h.  */
20201 #ifndef __APPLE_CC__
20202                not a universal capable compiler
20203              #endif
20204              typedef int dummy;
20205
20206 _ACEOF
20207 if ac_fn_c_try_compile "$LINENO"; then :
20208
20209         # Check for potential -arch flags.  It is not universal unless
20210         # there are at least two -arch flags with different values.
20211         ac_arch=
20212         ac_prev=
20213         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20214          if test -n "$ac_prev"; then
20215            case $ac_word in
20216              i?86 | x86_64 | ppc | ppc64)
20217                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20218                  ac_arch=$ac_word
20219                else
20220                  ac_cv_c_bigendian=universal
20221                  break
20222                fi
20223                ;;
20224            esac
20225            ac_prev=
20226          elif test "x$ac_word" = "x-arch"; then
20227            ac_prev=arch
20228          fi
20229        done
20230 fi
20231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20232     if test $ac_cv_c_bigendian = unknown; then
20233       # See if sys/param.h defines the BYTE_ORDER macro.
20234       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20235 /* end confdefs.h.  */
20236 #include <sys/types.h>
20237              #include <sys/param.h>
20238
20239 int
20240 main ()
20241 {
20242 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20243                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20244                      && LITTLE_ENDIAN)
20245               bogus endian macros
20246              #endif
20247
20248   ;
20249   return 0;
20250 }
20251 _ACEOF
20252 if ac_fn_c_try_compile "$LINENO"; then :
20253   # It does; now see whether it defined to BIG_ENDIAN or not.
20254          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20255 /* end confdefs.h.  */
20256 #include <sys/types.h>
20257                 #include <sys/param.h>
20258
20259 int
20260 main ()
20261 {
20262 #if BYTE_ORDER != BIG_ENDIAN
20263                  not big endian
20264                 #endif
20265
20266   ;
20267   return 0;
20268 }
20269 _ACEOF
20270 if ac_fn_c_try_compile "$LINENO"; then :
20271   ac_cv_c_bigendian=yes
20272 else
20273   ac_cv_c_bigendian=no
20274 fi
20275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20276 fi
20277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20278     fi
20279     if test $ac_cv_c_bigendian = unknown; then
20280       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20281       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20282 /* end confdefs.h.  */
20283 #include <limits.h>
20284
20285 int
20286 main ()
20287 {
20288 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20289               bogus endian macros
20290              #endif
20291
20292   ;
20293   return 0;
20294 }
20295 _ACEOF
20296 if ac_fn_c_try_compile "$LINENO"; then :
20297   # It does; now see whether it defined to _BIG_ENDIAN or not.
20298          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20299 /* end confdefs.h.  */
20300 #include <limits.h>
20301
20302 int
20303 main ()
20304 {
20305 #ifndef _BIG_ENDIAN
20306                  not big endian
20307                 #endif
20308
20309   ;
20310   return 0;
20311 }
20312 _ACEOF
20313 if ac_fn_c_try_compile "$LINENO"; then :
20314   ac_cv_c_bigendian=yes
20315 else
20316   ac_cv_c_bigendian=no
20317 fi
20318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20319 fi
20320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20321     fi
20322     if test $ac_cv_c_bigendian = unknown; then
20323       # Compile a test program.
20324       if test "$cross_compiling" = yes; then :
20325   # Try to guess by grepping values from an object file.
20326          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20327 /* end confdefs.h.  */
20328 short int ascii_mm[] =
20329                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20330                 short int ascii_ii[] =
20331                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20332                 int use_ascii (int i) {
20333                   return ascii_mm[i] + ascii_ii[i];
20334                 }
20335                 short int ebcdic_ii[] =
20336                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20337                 short int ebcdic_mm[] =
20338                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20339                 int use_ebcdic (int i) {
20340                   return ebcdic_mm[i] + ebcdic_ii[i];
20341                 }
20342                 extern int foo;
20343
20344 int
20345 main ()
20346 {
20347 return use_ascii (foo) == use_ebcdic (foo);
20348   ;
20349   return 0;
20350 }
20351 _ACEOF
20352 if ac_fn_c_try_compile "$LINENO"; then :
20353   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20354               ac_cv_c_bigendian=yes
20355             fi
20356             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20357               if test "$ac_cv_c_bigendian" = unknown; then
20358                 ac_cv_c_bigendian=no
20359               else
20360                 # finding both strings is unlikely to happen, but who knows?
20361                 ac_cv_c_bigendian=unknown
20362               fi
20363             fi
20364 fi
20365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20366 else
20367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20368 /* end confdefs.h.  */
20369 $ac_includes_default
20370 int
20371 main ()
20372 {
20373
20374              /* Are we little or big endian?  From Harbison&Steele.  */
20375              union
20376              {
20377                long int l;
20378                char c[sizeof (long int)];
20379              } u;
20380              u.l = 1;
20381              return u.c[sizeof (long int) - 1] == 1;
20382
20383   ;
20384   return 0;
20385 }
20386 _ACEOF
20387 if ac_fn_c_try_run "$LINENO"; then :
20388   ac_cv_c_bigendian=no
20389 else
20390   ac_cv_c_bigendian=yes
20391 fi
20392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20393   conftest.$ac_objext conftest.beam conftest.$ac_ext
20394 fi
20395
20396     fi
20397 fi
20398 :
20399  case $ac_cv_c_bigendian in #(
20400    yes)
20401      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
20402    no)
20403      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
20404    universal)
20405
20406 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20407
20408      ;; #(
20409    *)
20410      gl_cv_cc_double_expbit0="unknown" ;;
20411  esac
20412
20413
20414 fi
20415 rm -f conftest*
20416
20417
20418 else
20419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20420 /* end confdefs.h.  */
20421
20422 #include <float.h>
20423 #include <stddef.h>
20424 #include <stdio.h>
20425 #include <string.h>
20426 #define NWORDS \
20427   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20428 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
20429 static unsigned int ored_words[NWORDS];
20430 static unsigned int anded_words[NWORDS];
20431 static void add_to_ored_words (double x)
20432 {
20433   memory_double m;
20434   size_t i;
20435   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
20436   memset (&m, 0, sizeof (memory_double));
20437   m.value = x;
20438   for (i = 0; i < NWORDS; i++)
20439     {
20440       ored_words[i] |= m.word[i];
20441       anded_words[i] &= m.word[i];
20442     }
20443 }
20444 int main ()
20445 {
20446   size_t j;
20447   FILE *fp = fopen ("conftest.out", "w");
20448   if (fp == NULL)
20449     return 1;
20450   for (j = 0; j < NWORDS; j++)
20451     anded_words[j] = ~ (unsigned int) 0;
20452   add_to_ored_words (0.25);
20453   add_to_ored_words (0.5);
20454   add_to_ored_words (1.0);
20455   add_to_ored_words (2.0);
20456   add_to_ored_words (4.0);
20457   /* Remove bits that are common (e.g. if representation of the first mantissa
20458      bit is explicit).  */
20459   for (j = 0; j < NWORDS; j++)
20460     ored_words[j] &= ~anded_words[j];
20461   /* Now find the nonzero word.  */
20462   for (j = 0; j < NWORDS; j++)
20463     if (ored_words[j] != 0)
20464       break;
20465   if (j < NWORDS)
20466     {
20467       size_t i;
20468       for (i = j + 1; i < NWORDS; i++)
20469         if (ored_words[i] != 0)
20470           {
20471             fprintf (fp, "unknown");
20472             return (fclose (fp) != 0);
20473           }
20474       for (i = 0; ; i++)
20475         if ((ored_words[j] >> i) & 1)
20476           {
20477             fprintf (fp, "word %d bit %d", (int) j, (int) i);
20478             return (fclose (fp) != 0);
20479           }
20480     }
20481   fprintf (fp, "unknown");
20482   return (fclose (fp) != 0);
20483 }
20484
20485 _ACEOF
20486 if ac_fn_c_try_run "$LINENO"; then :
20487   gl_cv_cc_double_expbit0=`cat conftest.out`
20488 else
20489   gl_cv_cc_double_expbit0="unknown"
20490 fi
20491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20492   conftest.$ac_objext conftest.beam conftest.$ac_ext
20493 fi
20494
20495       rm -f conftest.out
20496
20497 fi
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
20499 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
20500   case "$gl_cv_cc_double_expbit0" in
20501     word*bit*)
20502       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
20503       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
20504
20505 cat >>confdefs.h <<_ACEOF
20506 #define DBL_EXPBIT0_WORD $word
20507 _ACEOF
20508
20509
20510 cat >>confdefs.h <<_ACEOF
20511 #define DBL_EXPBIT0_BIT $bit
20512 _ACEOF
20513
20514       ;;
20515   esac
20516
20517
20518
20519
20520
20521
20522   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
20523 do :
20524   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20525 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20526 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20527   cat >>confdefs.h <<_ACEOF
20528 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20529 _ACEOF
20530
20531 fi
20532 done
20533
20534       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
20535 "
20536 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
20537   ac_have_decl=1
20538 else
20539   ac_have_decl=0
20540 fi
20541
20542 cat >>confdefs.h <<_ACEOF
20543 #define HAVE_DECL__SNPRINTF $ac_have_decl
20544 _ACEOF
20545
20546
20547
20548   case "$gl_cv_func_snprintf_retval_c99" in
20549     *yes)
20550
20551 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
20552
20553       ;;
20554   esac
20555
20556
20557   XGETTEXT_EXTRA_OPTIONS=
20558
20559
20560       ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
20561 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
20562   ac_have_decl=1
20563 else
20564   ac_have_decl=0
20565 fi
20566
20567 cat >>confdefs.h <<_ACEOF
20568 #define HAVE_DECL_VSNPRINTF $ac_have_decl
20569 _ACEOF
20570
20571
20572
20573   GNULIB_BTOWC=0;
20574   GNULIB_WCTOB=0;
20575   GNULIB_MBSINIT=0;
20576   GNULIB_MBRTOWC=0;
20577   GNULIB_MBRLEN=0;
20578   GNULIB_MBSRTOWCS=0;
20579   GNULIB_MBSNRTOWCS=0;
20580   GNULIB_WCRTOMB=0;
20581   GNULIB_WCSRTOMBS=0;
20582   GNULIB_WCSNRTOMBS=0;
20583   GNULIB_WCWIDTH=0;
20584   GNULIB_WMEMCHR=0;
20585   GNULIB_WMEMCMP=0;
20586   GNULIB_WMEMCPY=0;
20587   GNULIB_WMEMMOVE=0;
20588   GNULIB_WMEMSET=0;
20589   GNULIB_WCSLEN=0;
20590   GNULIB_WCSNLEN=0;
20591   GNULIB_WCSCPY=0;
20592   GNULIB_WCPCPY=0;
20593   GNULIB_WCSNCPY=0;
20594   GNULIB_WCPNCPY=0;
20595   GNULIB_WCSCAT=0;
20596   GNULIB_WCSNCAT=0;
20597   GNULIB_WCSCMP=0;
20598   GNULIB_WCSNCMP=0;
20599   GNULIB_WCSCASECMP=0;
20600   GNULIB_WCSNCASECMP=0;
20601   GNULIB_WCSCOLL=0;
20602   GNULIB_WCSXFRM=0;
20603   GNULIB_WCSDUP=0;
20604   GNULIB_WCSCHR=0;
20605   GNULIB_WCSRCHR=0;
20606   GNULIB_WCSCSPN=0;
20607   GNULIB_WCSSPN=0;
20608   GNULIB_WCSPBRK=0;
20609   GNULIB_WCSSTR=0;
20610   GNULIB_WCSTOK=0;
20611   GNULIB_WCSWIDTH=0;
20612     HAVE_BTOWC=1;
20613   HAVE_MBSINIT=1;
20614   HAVE_MBRTOWC=1;
20615   HAVE_MBRLEN=1;
20616   HAVE_MBSRTOWCS=1;
20617   HAVE_MBSNRTOWCS=1;
20618   HAVE_WCRTOMB=1;
20619   HAVE_WCSRTOMBS=1;
20620   HAVE_WCSNRTOMBS=1;
20621   HAVE_WMEMCHR=1;
20622   HAVE_WMEMCMP=1;
20623   HAVE_WMEMCPY=1;
20624   HAVE_WMEMMOVE=1;
20625   HAVE_WMEMSET=1;
20626   HAVE_WCSLEN=1;
20627   HAVE_WCSNLEN=1;
20628   HAVE_WCSCPY=1;
20629   HAVE_WCPCPY=1;
20630   HAVE_WCSNCPY=1;
20631   HAVE_WCPNCPY=1;
20632   HAVE_WCSCAT=1;
20633   HAVE_WCSNCAT=1;
20634   HAVE_WCSCMP=1;
20635   HAVE_WCSNCMP=1;
20636   HAVE_WCSCASECMP=1;
20637   HAVE_WCSNCASECMP=1;
20638   HAVE_WCSCOLL=1;
20639   HAVE_WCSXFRM=1;
20640   HAVE_WCSDUP=1;
20641   HAVE_WCSCHR=1;
20642   HAVE_WCSRCHR=1;
20643   HAVE_WCSCSPN=1;
20644   HAVE_WCSSPN=1;
20645   HAVE_WCSPBRK=1;
20646   HAVE_WCSSTR=1;
20647   HAVE_WCSTOK=1;
20648   HAVE_WCSWIDTH=1;
20649   HAVE_DECL_WCTOB=1;
20650   HAVE_DECL_WCWIDTH=1;
20651   REPLACE_MBSTATE_T=0;
20652   REPLACE_BTOWC=0;
20653   REPLACE_WCTOB=0;
20654   REPLACE_MBSINIT=0;
20655   REPLACE_MBRTOWC=0;
20656   REPLACE_MBRLEN=0;
20657   REPLACE_MBSRTOWCS=0;
20658   REPLACE_MBSNRTOWCS=0;
20659   REPLACE_WCRTOMB=0;
20660   REPLACE_WCSRTOMBS=0;
20661   REPLACE_WCSNRTOMBS=0;
20662   REPLACE_WCWIDTH=0;
20663   REPLACE_WCSWIDTH=0;
20664
20665
20666             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
20667 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
20668 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
20669   $as_echo_n "(cached) " >&6
20670 else
20671   gl_cv_header_wchar_h_correct_inline=yes
20672      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20673 /* end confdefs.h.  */
20674
20675        #define wcstod renamed_wcstod
20676 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20677    <wchar.h>.
20678    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20679    included before <wchar.h>.  */
20680 #include <stddef.h>
20681 #include <stdio.h>
20682 #include <time.h>
20683 #include <wchar.h>
20684 extern int zero (void);
20685 int main () { return zero(); }
20686
20687 _ACEOF
20688      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20689   (eval $ac_compile) 2>&5
20690   ac_status=$?
20691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20692   test $ac_status = 0; }; then
20693        mv conftest.$ac_objext conftest1.$ac_objext
20694        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20695 /* end confdefs.h.  */
20696
20697          #define wcstod renamed_wcstod
20698 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20699    <wchar.h>.
20700    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20701    included before <wchar.h>.  */
20702 #include <stddef.h>
20703 #include <stdio.h>
20704 #include <time.h>
20705 #include <wchar.h>
20706 int zero (void) { return 0; }
20707
20708 _ACEOF
20709        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20710   (eval $ac_compile) 2>&5
20711   ac_status=$?
20712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20713   test $ac_status = 0; }; then
20714          mv conftest.$ac_objext conftest2.$ac_objext
20715          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
20716            :
20717          else
20718            gl_cv_header_wchar_h_correct_inline=no
20719          fi
20720        fi
20721      fi
20722      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
20723
20724 fi
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
20726 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
20727   if test $gl_cv_header_wchar_h_correct_inline = no; then
20728     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
20729 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
20730 C99 mode. You have four options:
20731   - Add the flag -fgnu89-inline to CC and reconfigure, or
20732   - Fix your include files, using parts of
20733     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
20734   - Use a gcc version older than 4.3, or
20735   - Don't use the flags -std=c99 or -std=gnu99.
20736 Configuration aborted." "$LINENO" 5
20737   fi
20738
20739
20740   GNULIB_FCNTL=0;
20741   GNULIB_NONBLOCKING=0;
20742   GNULIB_OPEN=0;
20743   GNULIB_OPENAT=0;
20744     HAVE_FCNTL=1;
20745   HAVE_OPENAT=1;
20746   REPLACE_FCNTL=0;
20747   REPLACE_OPEN=0;
20748   REPLACE_OPENAT=0;
20749
20750
20751
20752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
20753 $as_echo_n "checking for working fcntl.h... " >&6; }
20754 if ${gl_cv_header_working_fcntl_h+:} false; then :
20755   $as_echo_n "(cached) " >&6
20756 else
20757   if test "$cross_compiling" = yes; then :
20758   gl_cv_header_working_fcntl_h=cross-compiling
20759 else
20760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20761 /* end confdefs.h.  */
20762 #include <sys/types.h>
20763            #include <sys/stat.h>
20764            #include <unistd.h>
20765            #include <fcntl.h>
20766            #ifndef O_NOATIME
20767             #define O_NOATIME 0
20768            #endif
20769            #ifndef O_NOFOLLOW
20770             #define O_NOFOLLOW 0
20771            #endif
20772            static int const constants[] =
20773             {
20774               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
20775               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
20776             };
20777
20778 int
20779 main ()
20780 {
20781
20782             int status = !constants;
20783             {
20784               static char const sym[] = "conftest.sym";
20785               if (symlink (".", sym) != 0
20786                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
20787                 status |= 32;
20788               unlink (sym);
20789             }
20790             {
20791               static char const file[] = "confdefs.h";
20792               int fd = open (file, O_RDONLY | O_NOATIME);
20793               char c;
20794               struct stat st0, st1;
20795               if (fd < 0
20796                   || fstat (fd, &st0) != 0
20797                   || sleep (1) != 0
20798                   || read (fd, &c, 1) != 1
20799                   || close (fd) != 0
20800                   || stat (file, &st1) != 0
20801                   || st0.st_atime != st1.st_atime)
20802                 status |= 64;
20803             }
20804             return status;
20805   ;
20806   return 0;
20807 }
20808 _ACEOF
20809 if ac_fn_c_try_run "$LINENO"; then :
20810   gl_cv_header_working_fcntl_h=yes
20811 else
20812   case $? in #(
20813         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
20814         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
20815         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
20816          *) gl_cv_header_working_fcntl_h='no';;
20817         esac
20818 fi
20819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20820   conftest.$ac_objext conftest.beam conftest.$ac_ext
20821 fi
20822
20823 fi
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
20825 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
20826
20827   case $gl_cv_header_working_fcntl_h in #(
20828   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
20829   *) ac_val=1;;
20830   esac
20831
20832 cat >>confdefs.h <<_ACEOF
20833 #define HAVE_WORKING_O_NOATIME $ac_val
20834 _ACEOF
20835
20836
20837   case $gl_cv_header_working_fcntl_h in #(
20838   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
20839   *) ac_val=1;;
20840   esac
20841
20842 cat >>confdefs.h <<_ACEOF
20843 #define HAVE_WORKING_O_NOFOLLOW $ac_val
20844 _ACEOF
20845
20846
20847
20848
20849
20850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
20851 $as_echo_n "checking whether ungetc works on arbitrary bytes... " >&6; }
20852 if ${gl_cv_func_ungetc_works+:} false; then :
20853   $as_echo_n "(cached) " >&6
20854 else
20855   if test "$cross_compiling" = yes; then :
20856   case "$host_os" in
20857                    # Guess yes on glibc systems.
20858            *-gnu*) gl_cv_func_ungetc_works="guessing yes" ;;
20859                    # If we don't know, assume the worst.
20860            *)      gl_cv_func_ungetc_works="guessing no" ;;
20861          esac
20862
20863 else
20864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20865 /* end confdefs.h.  */
20866
20867 #include <stdio.h>
20868
20869 int
20870 main ()
20871 {
20872 FILE *f;
20873            if (!(f = fopen ("conftest.tmp", "w+"))) return 1;
20874            if (fputs ("abc", f) < 0) return 2;
20875            rewind (f);
20876            if (fgetc (f) != 'a') return 3;
20877            if (fgetc (f) != 'b') return 4;
20878            if (ungetc ('d', f) != 'd') return 5;
20879            if (ftell (f) != 1) return 6;
20880            if (fgetc (f) != 'd') return 7;
20881            if (ftell (f) != 2) return 8;
20882            if (fseek (f, 0, SEEK_CUR) != 0) return 9;
20883            if (ftell (f) != 2) return 10;
20884            if (fgetc (f) != 'c') return 11;
20885            fclose (f); remove ("conftest.tmp");
20886   ;
20887   return 0;
20888 }
20889 _ACEOF
20890 if ac_fn_c_try_run "$LINENO"; then :
20891   gl_cv_func_ungetc_works=yes
20892 else
20893   gl_cv_func_ungetc_works=no
20894 fi
20895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20896   conftest.$ac_objext conftest.beam conftest.$ac_ext
20897 fi
20898
20899
20900 fi
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5
20902 $as_echo "$gl_cv_func_ungetc_works" >&6; }
20903   case "$gl_cv_func_ungetc_works" in
20904     *yes) ;;
20905     *)
20906
20907 $as_echo "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
20908
20909       ;;
20910   esac
20911
20912
20913
20914
20915
20916
20917
20918   GNULIB_IMAXABS=0;
20919   GNULIB_IMAXDIV=0;
20920   GNULIB_STRTOIMAX=0;
20921   GNULIB_STRTOUMAX=0;
20922     HAVE_DECL_IMAXABS=1;
20923   HAVE_DECL_IMAXDIV=1;
20924   HAVE_DECL_STRTOIMAX=1;
20925   HAVE_DECL_STRTOUMAX=1;
20926   REPLACE_STRTOIMAX=0;
20927   REPLACE_STRTOUMAX=0;
20928   INT32_MAX_LT_INTMAX_MAX=1;
20929   INT64_MAX_EQ_LONG_MAX='defined _LP64';
20930   PRI_MACROS_BROKEN=0;
20931   PRIPTR_PREFIX=__PRIPTR_PREFIX;
20932   UINT32_MAX_LT_UINTMAX_MAX=1;
20933   UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
20934
20935
20936
20937
20938   :
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952   :
20953
20954
20955
20956
20957
20958
20959
20960
20961      if test $gl_cv_have_include_next = yes; then
20962        gl_cv_next_inttypes_h='<'inttypes.h'>'
20963      else
20964        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20965 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20966 if ${gl_cv_next_inttypes_h+:} false; then :
20967   $as_echo_n "(cached) " >&6
20968 else
20969
20970              if test $ac_cv_header_inttypes_h = yes; then
20971
20972
20973
20974
20975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20976 /* end confdefs.h.  */
20977 #include <inttypes.h>
20978 _ACEOF
20979                 case "$host_os" in
20980     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20981     *)    gl_absname_cpp="$ac_cpp" ;;
20982   esac
20983
20984   case "$host_os" in
20985     mingw*)
20986                                           gl_dirsep_regex='[/\\]'
20987       ;;
20988     *)
20989       gl_dirsep_regex='\/'
20990       ;;
20991   esac
20992       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20993   gl_header_literal_regex=`echo 'inttypes.h' \
20994                            | sed -e "$gl_make_literal_regex_sed"`
20995   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20996       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20997       s|^/[^/]|//&|
20998       p
20999       q
21000     }'
21001
21002         gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21003   sed -n "$gl_absolute_header_sed"`
21004
21005            gl_header=$gl_cv_absolute_inttypes_h
21006            gl_cv_next_inttypes_h='"'$gl_header'"'
21007           else
21008                gl_cv_next_inttypes_h='<'inttypes.h'>'
21009              fi
21010
21011
21012 fi
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
21014 $as_echo "$gl_cv_next_inttypes_h" >&6; }
21015      fi
21016      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
21017
21018      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21019        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21020        gl_next_as_first_directive='<'inttypes.h'>'
21021      else
21022        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21023        gl_next_as_first_directive=$gl_cv_next_inttypes_h
21024      fi
21025      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
21026
21027
21028
21029
21030
21031
21032
21033
21034     for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
21035     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21037 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21038 if eval \${$as_gl_Symbol+:} false; then :
21039   $as_echo_n "(cached) " >&6
21040 else
21041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21042 /* end confdefs.h.  */
21043 #include <inttypes.h>
21044
21045 int
21046 main ()
21047 {
21048 #undef $gl_func
21049   (void) $gl_func;
21050   ;
21051   return 0;
21052 }
21053 _ACEOF
21054 if ac_fn_c_try_compile "$LINENO"; then :
21055   eval "$as_gl_Symbol=yes"
21056 else
21057   eval "$as_gl_Symbol=no"
21058 fi
21059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21060 fi
21061 eval ac_res=\$$as_gl_Symbol
21062                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21063 $as_echo "$ac_res" >&6; }
21064     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21065   cat >>confdefs.h <<_ACEOF
21066 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21067 _ACEOF
21068
21069                      eval ac_cv_have_decl_$gl_func=yes
21070 fi
21071       done
21072
21073
21074
21075   for ac_header in inttypes.h
21076 do :
21077   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21078 if test "x$ac_cv_header_inttypes_h" = xyes; then :
21079   cat >>confdefs.h <<_ACEOF
21080 #define HAVE_INTTYPES_H 1
21081 _ACEOF
21082
21083 fi
21084
21085 done
21086
21087   if test $ac_cv_header_inttypes_h = yes; then
21088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
21089 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
21090 if ${gt_cv_inttypes_pri_broken+:} false; then :
21091   $as_echo_n "(cached) " >&6
21092 else
21093
21094         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21095 /* end confdefs.h.  */
21096 #include <inttypes.h>
21097 #ifdef PRId32
21098 char *p = PRId32;
21099 #endif
21100
21101 int
21102 main ()
21103 {
21104
21105   ;
21106   return 0;
21107 }
21108 _ACEOF
21109 if ac_fn_c_try_compile "$LINENO"; then :
21110   gt_cv_inttypes_pri_broken=no
21111 else
21112   gt_cv_inttypes_pri_broken=yes
21113 fi
21114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21115
21116 fi
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
21118 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
21119   fi
21120   if test "$gt_cv_inttypes_pri_broken" = yes; then
21121
21122 cat >>confdefs.h <<_ACEOF
21123 #define PRI_MACROS_BROKEN 1
21124 _ACEOF
21125
21126     PRI_MACROS_BROKEN=1
21127   else
21128     PRI_MACROS_BROKEN=0
21129   fi
21130
21131
21132
21133
21134
21135
21136
21137
21138    if true; then
21139   GL_COND_LIBTOOL_TRUE=
21140   GL_COND_LIBTOOL_FALSE='#'
21141 else
21142   GL_COND_LIBTOOL_TRUE='#'
21143   GL_COND_LIBTOOL_FALSE=
21144 fi
21145
21146   gl_cond_libtool=true
21147   gl_m4_base='gl/m4'
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157   gl_source_base='gl'
21158 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
21159
21160
21161
21162   if test $ac_cv_func_alloca_works = no; then
21163     :
21164   fi
21165
21166   # Define an additional variable used in the Makefile substitution.
21167   if test $ac_cv_working_alloca_h = yes; then
21168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21169 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21170 if ${gl_cv_rpl_alloca+:} false; then :
21171   $as_echo_n "(cached) " >&6
21172 else
21173
21174       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21175 /* end confdefs.h.  */
21176
21177 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21178         Need own alloca
21179 #endif
21180
21181 _ACEOF
21182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21183   $EGREP "Need own alloca" >/dev/null 2>&1; then :
21184   gl_cv_rpl_alloca=yes
21185 else
21186   gl_cv_rpl_alloca=no
21187 fi
21188 rm -f conftest*
21189
21190
21191 fi
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
21193 $as_echo "$gl_cv_rpl_alloca" >&6; }
21194     if test $gl_cv_rpl_alloca = yes; then
21195
21196 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21197
21198       ALLOCA_H=alloca.h
21199     else
21200                   ALLOCA_H=
21201     fi
21202   else
21203     ALLOCA_H=alloca.h
21204   fi
21205
21206    if test -n "$ALLOCA_H"; then
21207   GL_GENERATE_ALLOCA_H_TRUE=
21208   GL_GENERATE_ALLOCA_H_FALSE='#'
21209 else
21210   GL_GENERATE_ALLOCA_H_TRUE='#'
21211   GL_GENERATE_ALLOCA_H_FALSE=
21212 fi
21213
21214
21215
21216
21217
21218
21219
21220
21221     for ac_header in byteswap.h
21222 do :
21223   ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
21224 if test "x$ac_cv_header_byteswap_h" = xyes; then :
21225   cat >>confdefs.h <<_ACEOF
21226 #define HAVE_BYTESWAP_H 1
21227 _ACEOF
21228
21229     BYTESWAP_H=''
21230
21231 else
21232
21233     BYTESWAP_H='byteswap.h'
21234
21235 fi
21236
21237 done
21238
21239
21240    if test -n "$BYTESWAP_H"; then
21241   GL_GENERATE_BYTESWAP_H_TRUE=
21242   GL_GENERATE_BYTESWAP_H_FALSE='#'
21243 else
21244   GL_GENERATE_BYTESWAP_H_TRUE='#'
21245   GL_GENERATE_BYTESWAP_H_FALSE=
21246 fi
21247
21248
21249
21250
21251
21252
21253
21254   FLOAT_H=
21255   REPLACE_FLOAT_LDBL=0
21256   case "$host_os" in
21257     aix* | beos* | openbsd* | mirbsd* | irix*)
21258       FLOAT_H=float.h
21259       ;;
21260     freebsd*)
21261       case "$host_cpu" in
21262         i[34567]86 )
21263           FLOAT_H=float.h
21264           ;;
21265         x86_64 )
21266           # On x86_64 systems, the C compiler may still be generating
21267           # 32-bit code.
21268           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21269 /* end confdefs.h.  */
21270 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
21271              yes
21272              #endif
21273 _ACEOF
21274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21275   $EGREP "yes" >/dev/null 2>&1; then :
21276
21277 else
21278   FLOAT_H=float.h
21279 fi
21280 rm -f conftest*
21281
21282           ;;
21283       esac
21284       ;;
21285     linux*)
21286       case "$host_cpu" in
21287         powerpc*)
21288           FLOAT_H=float.h
21289           ;;
21290       esac
21291       ;;
21292   esac
21293   case "$host_os" in
21294     aix* | freebsd* | linux*)
21295       if test -n "$FLOAT_H"; then
21296         REPLACE_FLOAT_LDBL=1
21297       fi
21298       ;;
21299   esac
21300
21301     REPLACE_ITOLD=0
21302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
21303 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
21304 if ${gl_cv_func_itold_works+:} false; then :
21305   $as_echo_n "(cached) " >&6
21306 else
21307
21308       if test "$cross_compiling" = yes; then :
21309   case "$host" in
21310            sparc*-*-linux*)
21311              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21312 /* end confdefs.h.  */
21313 #if defined __LP64__ || defined __arch64__
21314                 yes
21315                 #endif
21316 _ACEOF
21317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21318   $EGREP "yes" >/dev/null 2>&1; then :
21319   gl_cv_func_itold_works="guessing no"
21320 else
21321   gl_cv_func_itold_works="guessing yes"
21322 fi
21323 rm -f conftest*
21324
21325              ;;
21326            *) gl_cv_func_itold_works="guessing yes" ;;
21327          esac
21328
21329 else
21330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h.  */
21332
21333 int i = -1;
21334 volatile long double ld;
21335 int main ()
21336 {
21337   ld += i * 1.0L;
21338   if (ld > 0)
21339     return 1;
21340   return 0;
21341 }
21342 _ACEOF
21343 if ac_fn_c_try_run "$LINENO"; then :
21344   gl_cv_func_itold_works=yes
21345 else
21346   gl_cv_func_itold_works=no
21347 fi
21348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21349   conftest.$ac_objext conftest.beam conftest.$ac_ext
21350 fi
21351
21352
21353 fi
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
21355 $as_echo "$gl_cv_func_itold_works" >&6; }
21356   case "$gl_cv_func_itold_works" in
21357     *no)
21358       REPLACE_ITOLD=1
21359                   FLOAT_H=float.h
21360       ;;
21361   esac
21362
21363   if test -n "$FLOAT_H"; then
21364
21365
21366
21367
21368
21369
21370
21371
21372      if test $gl_cv_have_include_next = yes; then
21373        gl_cv_next_float_h='<'float.h'>'
21374      else
21375        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
21376 $as_echo_n "checking absolute name of <float.h>... " >&6; }
21377 if ${gl_cv_next_float_h+:} false; then :
21378   $as_echo_n "(cached) " >&6
21379 else
21380
21381
21382
21383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21384 /* end confdefs.h.  */
21385 #include <float.h>
21386 _ACEOF
21387                 case "$host_os" in
21388     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21389     *)    gl_absname_cpp="$ac_cpp" ;;
21390   esac
21391
21392   case "$host_os" in
21393     mingw*)
21394                                           gl_dirsep_regex='[/\\]'
21395       ;;
21396     *)
21397       gl_dirsep_regex='\/'
21398       ;;
21399   esac
21400       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21401   gl_header_literal_regex=`echo 'float.h' \
21402                            | sed -e "$gl_make_literal_regex_sed"`
21403   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21404       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21405       s|^/[^/]|//&|
21406       p
21407       q
21408     }'
21409
21410         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21411   sed -n "$gl_absolute_header_sed"`
21412
21413            gl_header=$gl_cv_absolute_float_h
21414            gl_cv_next_float_h='"'$gl_header'"'
21415
21416
21417 fi
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
21419 $as_echo "$gl_cv_next_float_h" >&6; }
21420      fi
21421      NEXT_FLOAT_H=$gl_cv_next_float_h
21422
21423      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21424        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21425        gl_next_as_first_directive='<'float.h'>'
21426      else
21427        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21428        gl_next_as_first_directive=$gl_cv_next_float_h
21429      fi
21430      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
21431
21432
21433
21434
21435   fi
21436
21437    if test -n "$FLOAT_H"; then
21438   GL_GENERATE_FLOAT_H_TRUE=
21439   GL_GENERATE_FLOAT_H_FALSE='#'
21440 else
21441   GL_GENERATE_FLOAT_H_TRUE='#'
21442   GL_GENERATE_FLOAT_H_FALSE=
21443 fi
21444
21445
21446
21447   if test $REPLACE_FLOAT_LDBL = 1; then
21448
21449
21450
21451
21452
21453
21454
21455
21456   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
21457
21458   fi
21459   if test $REPLACE_ITOLD = 1; then
21460
21461
21462
21463
21464
21465
21466
21467
21468   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
21469
21470   fi
21471
21472
21473
21474
21475   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21476     REPLACE_FSTAT=1
21477   fi
21478
21479
21480   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
21481     REPLACE_FSTAT=1
21482   fi
21483
21484
21485
21486   if test $REPLACE_FSTAT = 1; then
21487
21488
21489
21490
21491
21492
21493
21494
21495   gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
21496
21497     :
21498   fi
21499
21500
21501
21502
21503
21504           GNULIB_FSTAT=1
21505
21506
21507
21508
21509
21510 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
21511
21512
21513
21514
21515
21516
21517     if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
21518     REPLACE_FTELL=1
21519   fi
21520
21521   if test $REPLACE_FTELL = 1; then
21522
21523
21524
21525
21526
21527
21528
21529
21530   gl_LIBOBJS="$gl_LIBOBJS ftell.$ac_objext"
21531
21532   fi
21533
21534
21535
21536
21537
21538           GNULIB_FTELL=1
21539
21540
21541
21542
21543
21544 $as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557   :
21558
21559
21560
21561
21562
21563   if test $ac_cv_have_decl_ftello = no; then
21564     HAVE_DECL_FTELLO=0
21565   fi
21566
21567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
21568 $as_echo_n "checking for ftello... " >&6; }
21569 if ${gl_cv_func_ftello+:} false; then :
21570   $as_echo_n "(cached) " >&6
21571 else
21572
21573       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21574 /* end confdefs.h.  */
21575 #include <stdio.h>
21576 int
21577 main ()
21578 {
21579 ftello (stdin);
21580   ;
21581   return 0;
21582 }
21583 _ACEOF
21584 if ac_fn_c_try_link "$LINENO"; then :
21585   gl_cv_func_ftello=yes
21586 else
21587   gl_cv_func_ftello=no
21588 fi
21589 rm -f core conftest.err conftest.$ac_objext \
21590     conftest$ac_exeext conftest.$ac_ext
21591
21592 fi
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
21594 $as_echo "$gl_cv_func_ftello" >&6; }
21595   if test $gl_cv_func_ftello = no; then
21596     HAVE_FTELLO=0
21597   else
21598     if test $WINDOWS_64_BIT_OFF_T = 1; then
21599       REPLACE_FTELLO=1
21600     fi
21601     if test $gl_cv_var_stdin_large_offset = no; then
21602       REPLACE_FTELLO=1
21603     fi
21604     if test $REPLACE_FTELLO = 0; then
21605
21606       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
21607 $as_echo_n "checking whether ftello works... " >&6; }
21608 if ${gl_cv_func_ftello_works+:} false; then :
21609   $as_echo_n "(cached) " >&6
21610 else
21611
21612                               case "$host_os" in
21613                       # Guess no on Solaris.
21614             solaris*) gl_cv_func_ftello_works="guessing no" ;;
21615                       # Guess yes otherwise.
21616             *)        gl_cv_func_ftello_works="guessing yes" ;;
21617           esac
21618           if test "$cross_compiling" = yes; then :
21619   :
21620 else
21621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21622 /* end confdefs.h.  */
21623
21624 #include <stdio.h>
21625 #include <stdlib.h>
21626 #include <string.h>
21627 #define TESTFILE "conftest.tmp"
21628 int
21629 main (void)
21630 {
21631   FILE *fp;
21632
21633   /* Create a file with some contents.  */
21634   fp = fopen (TESTFILE, "w");
21635   if (fp == NULL)
21636     return 70;
21637   if (fwrite ("foogarsh", 1, 8, fp) < 8)
21638     return 71;
21639   if (fclose (fp))
21640     return 72;
21641
21642   /* The file's contents is now "foogarsh".  */
21643
21644   /* Try writing after reading to EOF.  */
21645   fp = fopen (TESTFILE, "r+");
21646   if (fp == NULL)
21647     return 73;
21648   if (fseek (fp, -1, SEEK_END))
21649     return 74;
21650   if (!(getc (fp) == 'h'))
21651     return 1;
21652   if (!(getc (fp) == EOF))
21653     return 2;
21654   if (!(ftell (fp) == 8))
21655     return 3;
21656   if (!(ftell (fp) == 8))
21657     return 4;
21658   if (!(putc ('!', fp) == '!'))
21659     return 5;
21660   if (!(ftell (fp) == 9))
21661     return 6;
21662   if (!(fclose (fp) == 0))
21663     return 7;
21664   fp = fopen (TESTFILE, "r");
21665   if (fp == NULL)
21666     return 75;
21667   {
21668     char buf[10];
21669     if (!(fread (buf, 1, 10, fp) == 9))
21670       return 10;
21671     if (!(memcmp (buf, "foogarsh!", 9) == 0))
21672       return 11;
21673   }
21674   if (!(fclose (fp) == 0))
21675     return 12;
21676
21677   /* The file's contents is now "foogarsh!".  */
21678
21679   return 0;
21680 }
21681 _ACEOF
21682 if ac_fn_c_try_run "$LINENO"; then :
21683   gl_cv_func_ftello_works=yes
21684 else
21685   gl_cv_func_ftello_works=no
21686 fi
21687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21688   conftest.$ac_objext conftest.beam conftest.$ac_ext
21689 fi
21690
21691
21692 fi
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
21694 $as_echo "$gl_cv_func_ftello_works" >&6; }
21695       case "$gl_cv_func_ftello_works" in
21696         *yes) ;;
21697         *)
21698           REPLACE_FTELLO=1
21699
21700 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
21701
21702           ;;
21703       esac
21704     fi
21705   fi
21706
21707   if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
21708
21709
21710
21711
21712
21713
21714
21715
21716   gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
21717
21718
21719       for ac_func in _ftelli64
21720 do :
21721   ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
21722 if test "x$ac_cv_func__ftelli64" = xyes; then :
21723   cat >>confdefs.h <<_ACEOF
21724 #define HAVE__FTELLI64 1
21725 _ACEOF
21726
21727 fi
21728 done
21729
21730
21731   fi
21732
21733
21734
21735
21736
21737           GNULIB_FTELLO=1
21738
21739
21740
21741
21742
21743 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
21744
21745
21746
21747
21748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __func__ is available" >&5
21749 $as_echo_n "checking whether __func__ is available... " >&6; }
21750 if ${gl_cv_var_func+:} false; then :
21751   $as_echo_n "(cached) " >&6
21752 else
21753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21754 /* end confdefs.h.  */
21755
21756 int
21757 main ()
21758 {
21759 const char *str = __func__;
21760   ;
21761   return 0;
21762 }
21763 _ACEOF
21764 if ac_fn_c_try_compile "$LINENO"; then :
21765   gl_cv_var_func=yes
21766 else
21767   gl_cv_var_func=no
21768 fi
21769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770 fi
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_func" >&5
21772 $as_echo "$gl_cv_var_func" >&6; }
21773   if test "$gl_cv_var_func" != yes; then
21774
21775 $as_echo "#define __func__ \"<unknown function>\"" >>confdefs.h
21776
21777   fi
21778
21779
21780
21781
21782
21783
21784
21785   :
21786
21787
21788
21789
21790
21791
21792
21793   :
21794
21795
21796
21797
21798
21799   if test $ac_cv_func_getdelim = yes; then
21800     HAVE_GETDELIM=1
21801         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
21802 $as_echo_n "checking for working getdelim function... " >&6; }
21803 if ${gl_cv_func_working_getdelim+:} false; then :
21804   $as_echo_n "(cached) " >&6
21805 else
21806   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
21807     if test "$cross_compiling" = yes; then :
21808         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21809 /* end confdefs.h.  */
21810
21811 #include <features.h>
21812 #ifdef __GNU_LIBRARY__
21813  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
21814   Lucky GNU user
21815  #endif
21816 #endif
21817
21818 _ACEOF
21819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21820   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
21821   gl_cv_func_working_getdelim="guessing yes"
21822 else
21823   gl_cv_func_working_getdelim="guessing no"
21824 fi
21825 rm -f conftest*
21826
21827
21828 else
21829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21830 /* end confdefs.h.  */
21831
21832 #    include <stdio.h>
21833 #    include <stdlib.h>
21834 #    include <string.h>
21835     int main ()
21836     {
21837       FILE *in = fopen ("./conftest.data", "r");
21838       if (!in)
21839         return 1;
21840       {
21841         /* Test result for a NULL buffer and a zero size.
21842            Based on a test program from Karl Heuer.  */
21843         char *line = NULL;
21844         size_t siz = 0;
21845         int len = getdelim (&line, &siz, '\n', in);
21846         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
21847           return 2;
21848       }
21849       {
21850         /* Test result for a NULL buffer and a non-zero size.
21851            This crashes on FreeBSD 8.0.  */
21852         char *line = NULL;
21853         size_t siz = (size_t)(~0) / 4;
21854         if (getdelim (&line, &siz, '\n', in) == -1)
21855           return 3;
21856       }
21857       return 0;
21858     }
21859
21860 _ACEOF
21861 if ac_fn_c_try_run "$LINENO"; then :
21862   gl_cv_func_working_getdelim=yes
21863 else
21864   gl_cv_func_working_getdelim=no
21865 fi
21866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21867   conftest.$ac_objext conftest.beam conftest.$ac_ext
21868 fi
21869
21870 fi
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
21872 $as_echo "$gl_cv_func_working_getdelim" >&6; }
21873     case "$gl_cv_func_working_getdelim" in
21874       *no)
21875         REPLACE_GETDELIM=1
21876         ;;
21877     esac
21878   else
21879     HAVE_GETDELIM=0
21880   fi
21881
21882   if test $ac_cv_have_decl_getdelim = no; then
21883     HAVE_DECL_GETDELIM=0
21884   fi
21885
21886   if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
21887
21888
21889
21890
21891
21892
21893
21894
21895   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
21896
21897
21898   for ac_func in flockfile funlockfile
21899 do :
21900   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21901 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21902 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21903   cat >>confdefs.h <<_ACEOF
21904 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21905 _ACEOF
21906
21907 fi
21908 done
21909
21910   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
21911 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
21912   ac_have_decl=1
21913 else
21914   ac_have_decl=0
21915 fi
21916
21917 cat >>confdefs.h <<_ACEOF
21918 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
21919 _ACEOF
21920
21921
21922   fi
21923
21924
21925
21926
21927
21928           GNULIB_GETDELIM=1
21929
21930
21931
21932
21933
21934 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944   :
21945
21946
21947
21948
21949
21950
21951   gl_getline_needs_run_time_check=no
21952   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
21953 if test "x$ac_cv_func_getline" = xyes; then :
21954                    gl_getline_needs_run_time_check=yes
21955 else
21956   am_cv_func_working_getline=no
21957 fi
21958
21959   if test $gl_getline_needs_run_time_check = yes; then
21960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
21961 $as_echo_n "checking for working getline function... " >&6; }
21962 if ${am_cv_func_working_getline+:} false; then :
21963   $as_echo_n "(cached) " >&6
21964 else
21965   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
21966     if test "$cross_compiling" = yes; then :
21967         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21968 /* end confdefs.h.  */
21969
21970 #include <features.h>
21971 #ifdef __GNU_LIBRARY__
21972  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
21973   Lucky GNU user
21974  #endif
21975 #endif
21976
21977 _ACEOF
21978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21979   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
21980   am_cv_func_working_getline="guessing yes"
21981 else
21982   am_cv_func_working_getline="guessing no"
21983 fi
21984 rm -f conftest*
21985
21986
21987 else
21988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989 /* end confdefs.h.  */
21990
21991 #    include <stdio.h>
21992 #    include <stdlib.h>
21993 #    include <string.h>
21994     int main ()
21995     {
21996       FILE *in = fopen ("./conftest.data", "r");
21997       if (!in)
21998         return 1;
21999       {
22000         /* Test result for a NULL buffer and a zero size.
22001            Based on a test program from Karl Heuer.  */
22002         char *line = NULL;
22003         size_t siz = 0;
22004         int len = getline (&line, &siz, in);
22005         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
22006           return 2;
22007       }
22008       {
22009         /* Test result for a NULL buffer and a non-zero size.
22010            This crashes on FreeBSD 8.0.  */
22011         char *line = NULL;
22012         size_t siz = (size_t)(~0) / 4;
22013         if (getline (&line, &siz, in) == -1)
22014           return 3;
22015       }
22016       return 0;
22017     }
22018
22019 _ACEOF
22020 if ac_fn_c_try_run "$LINENO"; then :
22021   am_cv_func_working_getline=yes
22022 else
22023   am_cv_func_working_getline=no
22024 fi
22025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22026   conftest.$ac_objext conftest.beam conftest.$ac_ext
22027 fi
22028
22029 fi
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
22031 $as_echo "$am_cv_func_working_getline" >&6; }
22032   fi
22033
22034   if test $ac_cv_have_decl_getline = no; then
22035     HAVE_DECL_GETLINE=0
22036   fi
22037
22038   case "$am_cv_func_working_getline" in
22039     *no)
22040                         REPLACE_GETLINE=1
22041       ;;
22042   esac
22043
22044   if test $REPLACE_GETLINE = 1; then
22045
22046
22047
22048
22049
22050
22051
22052
22053   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
22054
22055
22056   :
22057
22058   fi
22059
22060
22061
22062
22063
22064           GNULIB_GETLINE=1
22065
22066
22067
22068
22069
22070 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082   :
22083
22084
22085
22086
22087
22088
22089   gl_gettimeofday_timezone=void
22090   if test $ac_cv_func_gettimeofday != yes; then
22091     HAVE_GETTIMEOFDAY=0
22092   else
22093
22094
22095
22096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
22097 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
22098 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
22099   $as_echo_n "(cached) " >&6
22100 else
22101   if test "$cross_compiling" = yes; then :
22102   # When cross-compiling:
22103       case "$host_os" in
22104                 # Guess all is fine on glibc systems.
22105         *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
22106                 # If we don't know, assume the worst.
22107         *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
22108       esac
22109
22110 else
22111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22112 /* end confdefs.h.  */
22113 #include <string.h>
22114           #include <sys/time.h>
22115           #include <time.h>
22116           #include <stdlib.h>
22117
22118 int
22119 main ()
22120 {
22121
22122           time_t t = 0;
22123           struct tm *lt;
22124           struct tm saved_lt;
22125           struct timeval tv;
22126           lt = localtime (&t);
22127           saved_lt = *lt;
22128           gettimeofday (&tv, NULL);
22129           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22130
22131   ;
22132   return 0;
22133 }
22134 _ACEOF
22135 if ac_fn_c_try_run "$LINENO"; then :
22136   gl_cv_func_gettimeofday_clobber=no
22137 else
22138   gl_cv_func_gettimeofday_clobber=yes
22139 fi
22140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22141   conftest.$ac_objext conftest.beam conftest.$ac_ext
22142 fi
22143
22144 fi
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22146 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
22147
22148  case "$gl_cv_func_gettimeofday_clobber" in
22149    *yes)
22150      REPLACE_GETTIMEOFDAY=1
22151
22152   REPLACE_GMTIME=1
22153   REPLACE_LOCALTIME=1
22154
22155
22156 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22157
22158      ;;
22159  esac
22160
22161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22162 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22163 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
22164   $as_echo_n "(cached) " >&6
22165 else
22166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22167 /* end confdefs.h.  */
22168 #include <sys/time.h>
22169               struct timeval c;
22170               int gettimeofday (struct timeval *restrict, void *restrict);
22171
22172 int
22173 main ()
22174 {
22175 /* glibc uses struct timezone * rather than the POSIX void *
22176                  if _GNU_SOURCE is defined.  However, since the only portable
22177                  use of gettimeofday uses NULL as the second parameter, and
22178                  since the glibc definition is actually more typesafe, it is
22179                  not worth wrapping this to get a compliant signature.  */
22180               int (*f) (struct timeval *restrict, void *restrict)
22181                 = gettimeofday;
22182               int x = f (&c, 0);
22183               return !(x | c.tv_sec | c.tv_usec);
22184
22185   ;
22186   return 0;
22187 }
22188 _ACEOF
22189 if ac_fn_c_try_compile "$LINENO"; then :
22190   gl_cv_func_gettimeofday_posix_signature=yes
22191 else
22192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22193 /* end confdefs.h.  */
22194 #include <sys/time.h>
22195 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22196
22197 int
22198 main ()
22199 {
22200
22201   ;
22202   return 0;
22203 }
22204 _ACEOF
22205 if ac_fn_c_try_compile "$LINENO"; then :
22206   gl_cv_func_gettimeofday_posix_signature=almost
22207 else
22208   gl_cv_func_gettimeofday_posix_signature=no
22209 fi
22210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22211 fi
22212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22213 fi
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22215 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22216     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
22217       gl_gettimeofday_timezone='struct timezone'
22218     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22219       REPLACE_GETTIMEOFDAY=1
22220     fi
22221         if test $REPLACE_STRUCT_TIMEVAL = 1; then
22222       REPLACE_GETTIMEOFDAY=1
22223     fi
22224
22225   fi
22226
22227 cat >>confdefs.h <<_ACEOF
22228 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22229 _ACEOF
22230
22231
22232   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
22233
22234
22235
22236
22237
22238
22239
22240
22241   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22242
22243
22244   for ac_header in sys/timeb.h
22245 do :
22246   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22247 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
22248   cat >>confdefs.h <<_ACEOF
22249 #define HAVE_SYS_TIMEB_H 1
22250 _ACEOF
22251
22252 fi
22253
22254 done
22255
22256   for ac_func in _ftime
22257 do :
22258   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
22259 if test "x$ac_cv_func__ftime" = xyes; then :
22260   cat >>confdefs.h <<_ACEOF
22261 #define HAVE__FTIME 1
22262 _ACEOF
22263
22264 fi
22265 done
22266
22267
22268   fi
22269
22270
22271
22272
22273
22274           GNULIB_GETTIMEOFDAY=1
22275
22276
22277
22278
22279
22280 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
22281
22282
22283
22284   # Autoconf 2.61a.99 and earlier don't support linking a file only
22285   # in VPATH builds.  But since GNUmakefile is for maintainer use
22286   # only, it does not matter if we skip the link with older autoconf.
22287   # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
22288   # builds, so use a shell variable to bypass this.
22289   GNUmakefile=GNUmakefile
22290   ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
22291
22292
22293
22294
22295
22296
22297           am_save_CPPFLAGS="$CPPFLAGS"
22298
22299   for element in $INCICONV; do
22300     haveit=
22301     for x in $CPPFLAGS; do
22302
22303   acl_save_prefix="$prefix"
22304   prefix="$acl_final_prefix"
22305   acl_save_exec_prefix="$exec_prefix"
22306   exec_prefix="$acl_final_exec_prefix"
22307   eval x=\"$x\"
22308   exec_prefix="$acl_save_exec_prefix"
22309   prefix="$acl_save_prefix"
22310
22311       if test "X$x" = "X$element"; then
22312         haveit=yes
22313         break
22314       fi
22315     done
22316     if test -z "$haveit"; then
22317       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22318     fi
22319   done
22320
22321
22322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
22323 $as_echo_n "checking for iconv... " >&6; }
22324 if ${am_cv_func_iconv+:} false; then :
22325   $as_echo_n "(cached) " >&6
22326 else
22327
22328     am_cv_func_iconv="no, consider installing GNU libiconv"
22329     am_cv_lib_iconv=no
22330     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22331 /* end confdefs.h.  */
22332 #include <stdlib.h>
22333 #include <iconv.h>
22334 int
22335 main ()
22336 {
22337 iconv_t cd = iconv_open("","");
22338        iconv(cd,NULL,NULL,NULL,NULL);
22339        iconv_close(cd);
22340   ;
22341   return 0;
22342 }
22343 _ACEOF
22344 if ac_fn_c_try_link "$LINENO"; then :
22345   am_cv_func_iconv=yes
22346 fi
22347 rm -f core conftest.err conftest.$ac_objext \
22348     conftest$ac_exeext conftest.$ac_ext
22349     if test "$am_cv_func_iconv" != yes; then
22350       am_save_LIBS="$LIBS"
22351       LIBS="$LIBS $LIBICONV"
22352       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22353 /* end confdefs.h.  */
22354 #include <stdlib.h>
22355 #include <iconv.h>
22356 int
22357 main ()
22358 {
22359 iconv_t cd = iconv_open("","");
22360          iconv(cd,NULL,NULL,NULL,NULL);
22361          iconv_close(cd);
22362   ;
22363   return 0;
22364 }
22365 _ACEOF
22366 if ac_fn_c_try_link "$LINENO"; then :
22367   am_cv_lib_iconv=yes
22368         am_cv_func_iconv=yes
22369 fi
22370 rm -f core conftest.err conftest.$ac_objext \
22371     conftest$ac_exeext conftest.$ac_ext
22372       LIBS="$am_save_LIBS"
22373     fi
22374
22375 fi
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
22377 $as_echo "$am_cv_func_iconv" >&6; }
22378   if test "$am_cv_func_iconv" = yes; then
22379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
22380 $as_echo_n "checking for working iconv... " >&6; }
22381 if ${am_cv_func_iconv_works+:} false; then :
22382   $as_echo_n "(cached) " >&6
22383 else
22384
22385             am_save_LIBS="$LIBS"
22386       if test $am_cv_lib_iconv = yes; then
22387         LIBS="$LIBS $LIBICONV"
22388       fi
22389       if test "$cross_compiling" = yes; then :
22390   case "$host_os" in
22391            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
22392            *)            am_cv_func_iconv_works="guessing yes" ;;
22393          esac
22394 else
22395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22396 /* end confdefs.h.  */
22397
22398 #include <iconv.h>
22399 #include <string.h>
22400 int main ()
22401 {
22402   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
22403      returns.  */
22404   {
22405     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
22406     if (cd_utf8_to_88591 != (iconv_t)(-1))
22407       {
22408         static const char input[] = "\342\202\254"; /* EURO SIGN */
22409         char buf[10];
22410         const char *inptr = input;
22411         size_t inbytesleft = strlen (input);
22412         char *outptr = buf;
22413         size_t outbytesleft = sizeof (buf);
22414         size_t res = iconv (cd_utf8_to_88591,
22415                             (char **) &inptr, &inbytesleft,
22416                             &outptr, &outbytesleft);
22417         if (res == 0)
22418           return 1;
22419       }
22420   }
22421   /* Test against Solaris 10 bug: Failures are not distinguishable from
22422      successful returns.  */
22423   {
22424     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
22425     if (cd_ascii_to_88591 != (iconv_t)(-1))
22426       {
22427         static const char input[] = "\263";
22428         char buf[10];
22429         const char *inptr = input;
22430         size_t inbytesleft = strlen (input);
22431         char *outptr = buf;
22432         size_t outbytesleft = sizeof (buf);
22433         size_t res = iconv (cd_ascii_to_88591,
22434                             (char **) &inptr, &inbytesleft,
22435                             &outptr, &outbytesleft);
22436         if (res == 0)
22437           return 1;
22438       }
22439   }
22440 #if 0 /* This bug could be worked around by the caller.  */
22441   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
22442   {
22443     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
22444     if (cd_88591_to_utf8 != (iconv_t)(-1))
22445       {
22446         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
22447         char buf[50];
22448         const char *inptr = input;
22449         size_t inbytesleft = strlen (input);
22450         char *outptr = buf;
22451         size_t outbytesleft = sizeof (buf);
22452         size_t res = iconv (cd_88591_to_utf8,
22453                             (char **) &inptr, &inbytesleft,
22454                             &outptr, &outbytesleft);
22455         if ((int)res > 0)
22456           return 1;
22457       }
22458   }
22459 #endif
22460   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
22461      provided.  */
22462   if (/* Try standardized names.  */
22463       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
22464       /* Try IRIX, OSF/1 names.  */
22465       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
22466       /* Try AIX names.  */
22467       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
22468       /* Try HP-UX names.  */
22469       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
22470     return 1;
22471   return 0;
22472 }
22473 _ACEOF
22474 if ac_fn_c_try_run "$LINENO"; then :
22475   am_cv_func_iconv_works=yes
22476 else
22477   am_cv_func_iconv_works=no
22478 fi
22479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22480   conftest.$ac_objext conftest.beam conftest.$ac_ext
22481 fi
22482
22483       LIBS="$am_save_LIBS"
22484
22485 fi
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
22487 $as_echo "$am_cv_func_iconv_works" >&6; }
22488     case "$am_cv_func_iconv_works" in
22489       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
22490       *)   am_func_iconv=yes ;;
22491     esac
22492   else
22493     am_func_iconv=no am_cv_lib_iconv=no
22494   fi
22495   if test "$am_func_iconv" = yes; then
22496
22497 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
22498
22499   fi
22500   if test "$am_cv_lib_iconv" = yes; then
22501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
22502 $as_echo_n "checking how to link with libiconv... " >&6; }
22503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
22504 $as_echo "$LIBICONV" >&6; }
22505   else
22506             CPPFLAGS="$am_save_CPPFLAGS"
22507     LIBICONV=
22508     LTLIBICONV=
22509   fi
22510
22511
22512
22513   if test "$am_cv_func_iconv" = yes; then
22514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
22515 $as_echo_n "checking for iconv declaration... " >&6; }
22516     if ${am_cv_proto_iconv+:} false; then :
22517   $as_echo_n "(cached) " >&6
22518 else
22519
22520       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22521 /* end confdefs.h.  */
22522
22523 #include <stdlib.h>
22524 #include <iconv.h>
22525 extern
22526 #ifdef __cplusplus
22527 "C"
22528 #endif
22529 #if defined(__STDC__) || defined(__cplusplus)
22530 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22531 #else
22532 size_t iconv();
22533 #endif
22534
22535 int
22536 main ()
22537 {
22538
22539   ;
22540   return 0;
22541 }
22542 _ACEOF
22543 if ac_fn_c_try_compile "$LINENO"; then :
22544   am_cv_proto_iconv_arg1=""
22545 else
22546   am_cv_proto_iconv_arg1="const"
22547 fi
22548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22549       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22550 fi
22551
22552     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22553     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22554          $am_cv_proto_iconv" >&5
22555 $as_echo "
22556          $am_cv_proto_iconv" >&6; }
22557
22558 cat >>confdefs.h <<_ACEOF
22559 #define ICONV_CONST $am_cv_proto_iconv_arg1
22560 _ACEOF
22561
22562   fi
22563
22564
22565
22566
22567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
22568 $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
22569 if ${gl_cv_ld_output_def+:} false; then :
22570   $as_echo_n "(cached) " >&6
22571 else
22572   if test "$enable_shared" = no; then
22573        gl_cv_ld_output_def="not needed, shared libraries are disabled"
22574      else
22575        gl_ldflags_save=$LDFLAGS
22576        LDFLAGS="-Wl,--output-def,conftest.def"
22577        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22578 /* end confdefs.h.  */
22579
22580 int
22581 main ()
22582 {
22583
22584   ;
22585   return 0;
22586 }
22587 _ACEOF
22588 if ac_fn_c_try_link "$LINENO"; then :
22589   gl_cv_ld_output_def=yes
22590 else
22591   gl_cv_ld_output_def=no
22592 fi
22593 rm -f core conftest.err conftest.$ac_objext \
22594     conftest$ac_exeext conftest.$ac_ext
22595        rm -f conftest.def
22596        LDFLAGS="$gl_ldflags_save"
22597      fi
22598 fi
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
22600 $as_echo "$gl_cv_ld_output_def" >&6; }
22601    if test "x$gl_cv_ld_output_def" = "xyes"; then
22602   HAVE_LD_OUTPUT_DEF_TRUE=
22603   HAVE_LD_OUTPUT_DEF_FALSE='#'
22604 else
22605   HAVE_LD_OUTPUT_DEF_TRUE='#'
22606   HAVE_LD_OUTPUT_DEF_FALSE=
22607 fi
22608
22609
22610
22611   # Check whether --enable-ld-version-script was given.
22612 if test "${enable_ld_version_script+set}" = set; then :
22613   enableval=$enable_ld_version_script; have_ld_version_script=$enableval
22614 fi
22615
22616   if test -z "$have_ld_version_script"; then
22617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
22618 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
22619     save_LDFLAGS="$LDFLAGS"
22620     LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
22621     cat > conftest.map <<EOF
22622 foo
22623 EOF
22624     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22625 /* end confdefs.h.  */
22626
22627 int
22628 main ()
22629 {
22630
22631   ;
22632   return 0;
22633 }
22634 _ACEOF
22635 if ac_fn_c_try_link "$LINENO"; then :
22636   accepts_syntax_errors=yes
22637 else
22638   accepts_syntax_errors=no
22639 fi
22640 rm -f core conftest.err conftest.$ac_objext \
22641     conftest$ac_exeext conftest.$ac_ext
22642     if test "$accepts_syntax_errors" = no; then
22643       cat > conftest.map <<EOF
22644 VERS_1 {
22645         global: sym;
22646 };
22647
22648 VERS_2 {
22649         global: sym;
22650 } VERS_1;
22651 EOF
22652       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22653 /* end confdefs.h.  */
22654
22655 int
22656 main ()
22657 {
22658
22659   ;
22660   return 0;
22661 }
22662 _ACEOF
22663 if ac_fn_c_try_link "$LINENO"; then :
22664   have_ld_version_script=yes
22665 else
22666   have_ld_version_script=no
22667 fi
22668 rm -f core conftest.err conftest.$ac_objext \
22669     conftest$ac_exeext conftest.$ac_ext
22670     else
22671       have_ld_version_script=no
22672     fi
22673     rm -f conftest.map
22674     LDFLAGS="$save_LDFLAGS"
22675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
22676 $as_echo "$have_ld_version_script" >&6; }
22677   fi
22678    if test "$have_ld_version_script" = "yes"; then
22679   HAVE_LD_VERSION_SCRIPT_TRUE=
22680   HAVE_LD_VERSION_SCRIPT_FALSE='#'
22681 else
22682   HAVE_LD_VERSION_SCRIPT_TRUE='#'
22683   HAVE_LD_VERSION_SCRIPT_FALSE=
22684 fi
22685
22686
22687
22688
22689
22690
22691
22692
22693   :
22694
22695
22696
22697
22698
22699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
22700 $as_echo_n "checking whether lseek detects pipes... " >&6; }
22701 if ${gl_cv_func_lseek_pipe+:} false; then :
22702   $as_echo_n "(cached) " >&6
22703 else
22704   case "$host_os" in
22705        mingw*)
22706                                                                gl_cv_func_lseek_pipe=no
22707          ;;
22708        *)
22709          if test $cross_compiling = no; then
22710            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22711 /* end confdefs.h.  */
22712
22713 #include <sys/types.h> /* for off_t */
22714 #include <stdio.h> /* for SEEK_CUR */
22715 #if HAVE_UNISTD_H
22716 # include <unistd.h>
22717 #else /* on Windows with MSVC */
22718 # include <io.h>
22719 #endif
22720
22721 int
22722 main ()
22723 {
22724
22725   /* Exit with success only if stdin is seekable.  */
22726   return lseek (0, (off_t)0, SEEK_CUR) < 0;
22727
22728   ;
22729   return 0;
22730 }
22731 _ACEOF
22732 if ac_fn_c_try_link "$LINENO"; then :
22733   if test -s conftest$ac_exeext \
22734                  && ./conftest$ac_exeext < conftest.$ac_ext \
22735                  && test 1 = "`echo hi \
22736                    | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
22737                 gl_cv_func_lseek_pipe=yes
22738               else
22739                 gl_cv_func_lseek_pipe=no
22740               fi
22741
22742 else
22743   gl_cv_func_lseek_pipe=no
22744 fi
22745 rm -f core conftest.err conftest.$ac_objext \
22746     conftest$ac_exeext conftest.$ac_ext
22747          else
22748            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22749 /* end confdefs.h.  */
22750
22751 #if defined __BEOS__
22752 /* BeOS mistakenly return 0 when trying to seek on pipes.  */
22753   Choke me.
22754 #endif
22755 _ACEOF
22756 if ac_fn_c_try_compile "$LINENO"; then :
22757   gl_cv_func_lseek_pipe=yes
22758 else
22759   gl_cv_func_lseek_pipe=no
22760 fi
22761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22762          fi
22763          ;;
22764      esac
22765
22766 fi
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
22768 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
22769   if test $gl_cv_func_lseek_pipe = no; then
22770     REPLACE_LSEEK=1
22771
22772 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
22773
22774   fi
22775
22776
22777   if test $WINDOWS_64_BIT_OFF_T = 1; then
22778     REPLACE_LSEEK=1
22779   fi
22780
22781   if test $REPLACE_LSEEK = 1; then
22782
22783
22784
22785
22786
22787
22788
22789
22790   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
22791
22792   fi
22793
22794
22795
22796
22797
22798           GNULIB_LSEEK=1
22799
22800
22801
22802
22803
22804 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
22805
22806
22807
22808
22809
22810
22811
22812
22813   if test $gl_cv_func_malloc_posix = yes; then
22814
22815 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
22816
22817   else
22818     REPLACE_MALLOC=1
22819   fi
22820
22821   if test $REPLACE_MALLOC = 1; then
22822
22823
22824
22825
22826
22827
22828
22829
22830   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
22831
22832   fi
22833
22834
22835
22836
22837
22838           GNULIB_MALLOC_POSIX=1
22839
22840
22841
22842
22843
22844 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
22845
22846
22847
22848
22849   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
22850
22851
22852
22853
22854
22855
22856
22857
22858   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
22859
22860
22861   for ac_header in bp-sym.h
22862 do :
22863   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
22864 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
22865   cat >>confdefs.h <<_ACEOF
22866 #define HAVE_BP_SYM_H 1
22867 _ACEOF
22868
22869 fi
22870
22871 done
22872
22873
22874   fi
22875
22876
22877
22878
22879
22880           GNULIB_MEMCHR=1
22881
22882
22883
22884
22885
22886 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
22887
22888
22889
22890
22891
22892
22893
22894   for ac_func in memmem
22895 do :
22896   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
22897 if test "x$ac_cv_func_memmem" = xyes; then :
22898   cat >>confdefs.h <<_ACEOF
22899 #define HAVE_MEMMEM 1
22900 _ACEOF
22901
22902 fi
22903 done
22904
22905   if test $ac_cv_func_memmem = yes; then
22906     HAVE_MEMMEM=1
22907   else
22908     HAVE_MEMMEM=0
22909   fi
22910
22911   :
22912
22913
22914
22915
22916
22917   if test $ac_cv_have_decl_memmem = no; then
22918     HAVE_DECL_MEMMEM=0
22919   else
22920             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
22921 $as_echo_n "checking whether memmem works... " >&6; }
22922 if ${gl_cv_func_memmem_works_always+:} false; then :
22923   $as_echo_n "(cached) " >&6
22924 else
22925   if test "$cross_compiling" = yes; then :
22926                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22927 /* end confdefs.h.  */
22928
22929 #ifdef __GNU_LIBRARY__
22930  #include <features.h>
22931  #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
22932                           || __GLIBC_MINOR__ > 12)) \
22933       || (__GLIBC__ > 2)) \
22934      || defined __UCLIBC__
22935   Lucky user
22936  #endif
22937 #elif defined __CYGWIN__
22938  #include <cygwin/version.h>
22939  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
22940   Lucky user
22941  #endif
22942 #else
22943   Lucky user
22944 #endif
22945
22946 _ACEOF
22947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22948   $EGREP "Lucky user" >/dev/null 2>&1; then :
22949   gl_cv_func_memmem_works_always="guessing yes"
22950 else
22951   gl_cv_func_memmem_works_always="guessing no"
22952 fi
22953 rm -f conftest*
22954
22955
22956 else
22957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22958 /* end confdefs.h.  */
22959
22960 #include <string.h> /* for memmem */
22961 #define P "_EF_BF_BD"
22962 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
22963 #define NEEDLE P P P P P
22964
22965 int
22966 main ()
22967 {
22968
22969     int result = 0;
22970     if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
22971       result |= 1;
22972     /* Check for empty needle behavior.  */
22973     {
22974       const char *haystack = "AAA";
22975       if (memmem (haystack, 3, NULL, 0) != haystack)
22976         result |= 2;
22977     }
22978     return result;
22979
22980   ;
22981   return 0;
22982 }
22983 _ACEOF
22984 if ac_fn_c_try_run "$LINENO"; then :
22985   gl_cv_func_memmem_works_always=yes
22986 else
22987   gl_cv_func_memmem_works_always=no
22988 fi
22989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22990   conftest.$ac_objext conftest.beam conftest.$ac_ext
22991 fi
22992
22993
22994 fi
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
22996 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
22997     case "$gl_cv_func_memmem_works_always" in
22998       *yes) ;;
22999       *)
23000         REPLACE_MEMMEM=1
23001         ;;
23002     esac
23003   fi
23004   :
23005
23006   if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
23007
23008
23009
23010
23011
23012
23013
23014
23015   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
23016
23017   fi
23018
23019
23020
23021
23022
23023           GNULIB_MEMMEM=1
23024
23025
23026
23027
23028
23029 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
23030
23031
23032
23033
23034
23035
23036
23037
23038   :
23039
23040
23041
23042
23043
23044   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
23045     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
23046
23047 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
23048
23049   else
23050     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
23051   fi
23052
23053
23054   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
23055
23056
23057
23058
23059
23060
23061
23062
23063   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
23064
23065   fi
23066
23067
23068
23069   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
23070
23071
23072
23073
23074
23075
23076
23077
23078   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
23079
23080   fi
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090   :
23091
23092
23093
23094
23095
23096
23097
23098
23099      if test $gl_cv_have_include_next = yes; then
23100        gl_cv_next_netdb_h='<'netdb.h'>'
23101      else
23102        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
23103 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
23104 if ${gl_cv_next_netdb_h+:} false; then :
23105   $as_echo_n "(cached) " >&6
23106 else
23107
23108              if test $ac_cv_header_netdb_h = yes; then
23109
23110
23111
23112
23113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23114 /* end confdefs.h.  */
23115 #include <netdb.h>
23116 _ACEOF
23117                 case "$host_os" in
23118     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23119     *)    gl_absname_cpp="$ac_cpp" ;;
23120   esac
23121
23122   case "$host_os" in
23123     mingw*)
23124                                           gl_dirsep_regex='[/\\]'
23125       ;;
23126     *)
23127       gl_dirsep_regex='\/'
23128       ;;
23129   esac
23130       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23131   gl_header_literal_regex=`echo 'netdb.h' \
23132                            | sed -e "$gl_make_literal_regex_sed"`
23133   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23134       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23135       s|^/[^/]|//&|
23136       p
23137       q
23138     }'
23139
23140         gl_cv_absolute_netdb_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23141   sed -n "$gl_absolute_header_sed"`
23142
23143            gl_header=$gl_cv_absolute_netdb_h
23144            gl_cv_next_netdb_h='"'$gl_header'"'
23145           else
23146                gl_cv_next_netdb_h='<'netdb.h'>'
23147              fi
23148
23149
23150 fi
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
23152 $as_echo "$gl_cv_next_netdb_h" >&6; }
23153      fi
23154      NEXT_NETDB_H=$gl_cv_next_netdb_h
23155
23156      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23157        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23158        gl_next_as_first_directive='<'netdb.h'>'
23159      else
23160        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23161        gl_next_as_first_directive=$gl_cv_next_netdb_h
23162      fi
23163      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
23164
23165
23166
23167
23168   if test $ac_cv_header_netdb_h = yes; then
23169     HAVE_NETDB_H=1
23170   else
23171     HAVE_NETDB_H=0
23172   fi
23173
23174
23175
23176     for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
23177     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23179 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23180 if eval \${$as_gl_Symbol+:} false; then :
23181   $as_echo_n "(cached) " >&6
23182 else
23183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23184 /* end confdefs.h.  */
23185 #include <netdb.h>
23186 int
23187 main ()
23188 {
23189 #undef $gl_func
23190   (void) $gl_func;
23191   ;
23192   return 0;
23193 }
23194 _ACEOF
23195 if ac_fn_c_try_compile "$LINENO"; then :
23196   eval "$as_gl_Symbol=yes"
23197 else
23198   eval "$as_gl_Symbol=no"
23199 fi
23200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23201 fi
23202 eval ac_res=\$$as_gl_Symbol
23203                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23204 $as_echo "$ac_res" >&6; }
23205     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23206   cat >>confdefs.h <<_ACEOF
23207 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23208 _ACEOF
23209
23210                      eval ac_cv_have_decl_$gl_func=yes
23211 fi
23212       done
23213
23214
23215
23216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
23217 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
23218 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
23219   $as_echo_n "(cached) " >&6
23220 else
23221
23222       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223 /* end confdefs.h.  */
23224 #include <netinet/in.h>
23225 int
23226 main ()
23227 {
23228
23229   ;
23230   return 0;
23231 }
23232 _ACEOF
23233 if ac_fn_c_try_compile "$LINENO"; then :
23234   gl_cv_header_netinet_in_h_selfcontained=yes
23235 else
23236   gl_cv_header_netinet_in_h_selfcontained=no
23237 fi
23238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23239
23240 fi
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
23242 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
23243   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
23244     NETINET_IN_H=''
23245   else
23246     NETINET_IN_H='netinet/in.h'
23247     for ac_header in netinet/in.h
23248 do :
23249   ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
23250 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
23251   cat >>confdefs.h <<_ACEOF
23252 #define HAVE_NETINET_IN_H 1
23253 _ACEOF
23254
23255 fi
23256
23257 done
23258
23259
23260
23261
23262
23263
23264
23265   :
23266
23267
23268
23269
23270
23271
23272
23273
23274      if test $gl_cv_have_include_next = yes; then
23275        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
23276      else
23277        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
23278 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
23279 if ${gl_cv_next_netinet_in_h+:} false; then :
23280   $as_echo_n "(cached) " >&6
23281 else
23282
23283              if test $ac_cv_header_netinet_in_h = yes; then
23284
23285
23286
23287
23288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23289 /* end confdefs.h.  */
23290 #include <netinet/in.h>
23291 _ACEOF
23292                 case "$host_os" in
23293     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23294     *)    gl_absname_cpp="$ac_cpp" ;;
23295   esac
23296
23297   case "$host_os" in
23298     mingw*)
23299                                           gl_dirsep_regex='[/\\]'
23300       ;;
23301     *)
23302       gl_dirsep_regex='\/'
23303       ;;
23304   esac
23305       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23306   gl_header_literal_regex=`echo 'netinet/in.h' \
23307                            | sed -e "$gl_make_literal_regex_sed"`
23308   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23309       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23310       s|^/[^/]|//&|
23311       p
23312       q
23313     }'
23314
23315         gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23316   sed -n "$gl_absolute_header_sed"`
23317
23318            gl_header=$gl_cv_absolute_netinet_in_h
23319            gl_cv_next_netinet_in_h='"'$gl_header'"'
23320           else
23321                gl_cv_next_netinet_in_h='<'netinet/in.h'>'
23322              fi
23323
23324
23325 fi
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
23327 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
23328      fi
23329      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
23330
23331      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23332        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23333        gl_next_as_first_directive='<'netinet/in.h'>'
23334      else
23335        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23336        gl_next_as_first_directive=$gl_cv_next_netinet_in_h
23337      fi
23338      NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
23339
23340
23341
23342
23343     if test $ac_cv_header_netinet_in_h = yes; then
23344       HAVE_NETINET_IN_H=1
23345     else
23346       HAVE_NETINET_IN_H=0
23347     fi
23348
23349   fi
23350
23351    if test -n "$NETINET_IN_H"; then
23352   GL_GENERATE_NETINET_IN_H_TRUE=
23353   GL_GENERATE_NETINET_IN_H_FALSE='#'
23354 else
23355   GL_GENERATE_NETINET_IN_H_TRUE='#'
23356   GL_GENERATE_NETINET_IN_H_FALSE=
23357 fi
23358
23359
23360
23361   # Extract the first word of "pmccabe", so it can be a program name with args.
23362 set dummy pmccabe; ac_word=$2
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23364 $as_echo_n "checking for $ac_word... " >&6; }
23365 if ${ac_cv_path_PMCCABE+:} false; then :
23366   $as_echo_n "(cached) " >&6
23367 else
23368   case $PMCCABE in
23369   [\\/]* | ?:[\\/]*)
23370   ac_cv_path_PMCCABE="$PMCCABE" # Let the user override the test with a path.
23371   ;;
23372   *)
23373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23374 for as_dir in $PATH
23375 do
23376   IFS=$as_save_IFS
23377   test -z "$as_dir" && as_dir=.
23378     for ac_exec_ext in '' $ac_executable_extensions; do
23379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23380     ac_cv_path_PMCCABE="$as_dir/$ac_word$ac_exec_ext"
23381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23382     break 2
23383   fi
23384 done
23385   done
23386 IFS=$as_save_IFS
23387
23388   test -z "$ac_cv_path_PMCCABE" && ac_cv_path_PMCCABE="false"
23389   ;;
23390 esac
23391 fi
23392 PMCCABE=$ac_cv_path_PMCCABE
23393 if test -n "$PMCCABE"; then
23394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMCCABE" >&5
23395 $as_echo "$PMCCABE" >&6; }
23396 else
23397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23398 $as_echo "no" >&6; }
23399 fi
23400
23401
23402   :
23403
23404
23405
23406   if test $gl_cv_func_malloc_posix = yes; then
23407
23408 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
23409
23410   else
23411     REPLACE_REALLOC=1
23412   fi
23413
23414   if test $REPLACE_REALLOC = 1; then
23415
23416
23417
23418
23419
23420
23421
23422
23423   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
23424
23425   fi
23426
23427
23428
23429
23430
23431           GNULIB_REALLOC_POSIX=1
23432
23433
23434
23435
23436
23437 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
23438
23439
23440
23441
23442   for ac_header in stdint.h
23443 do :
23444   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
23445 if test "x$ac_cv_header_stdint_h" = xyes; then :
23446   cat >>confdefs.h <<_ACEOF
23447 #define HAVE_STDINT_H 1
23448 _ACEOF
23449
23450 fi
23451
23452 done
23453
23454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
23455 $as_echo_n "checking for SIZE_MAX... " >&6; }
23456 if ${gl_cv_size_max+:} false; then :
23457   $as_echo_n "(cached) " >&6
23458 else
23459
23460     gl_cv_size_max=
23461     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23462 /* end confdefs.h.  */
23463
23464 #include <limits.h>
23465 #if HAVE_STDINT_H
23466 #include <stdint.h>
23467 #endif
23468 #ifdef SIZE_MAX
23469 Found it
23470 #endif
23471
23472 _ACEOF
23473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23474   $EGREP "Found it" >/dev/null 2>&1; then :
23475   gl_cv_size_max=yes
23476 fi
23477 rm -f conftest*
23478
23479     if test -z "$gl_cv_size_max"; then
23480                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
23481 #include <limits.h>"; then :
23482
23483 else
23484   size_t_bits_minus_1=
23485 fi
23486
23487       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
23488
23489 else
23490   fits_in_uint=
23491 fi
23492
23493       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
23494         if test $fits_in_uint = 1; then
23495                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23496 /* end confdefs.h.  */
23497 #include <stddef.h>
23498             extern size_t foo;
23499             extern unsigned long foo;
23500
23501 int
23502 main ()
23503 {
23504
23505   ;
23506   return 0;
23507 }
23508 _ACEOF
23509 if ac_fn_c_try_compile "$LINENO"; then :
23510   fits_in_uint=0
23511 fi
23512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23513         fi
23514                                 if test $fits_in_uint = 1; then
23515           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
23516         else
23517           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
23518         fi
23519       else
23520                 gl_cv_size_max='((size_t)~(size_t)0)'
23521       fi
23522     fi
23523
23524 fi
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
23526 $as_echo "$gl_cv_size_max" >&6; }
23527   if test "$gl_cv_size_max" != yes; then
23528
23529 cat >>confdefs.h <<_ACEOF
23530 #define SIZE_MAX $gl_cv_size_max
23531 _ACEOF
23532
23533   fi
23534
23535
23536
23537
23538   gl_cv_func_snprintf_usable=no
23539   for ac_func in snprintf
23540 do :
23541   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
23542 if test "x$ac_cv_func_snprintf" = xyes; then :
23543   cat >>confdefs.h <<_ACEOF
23544 #define HAVE_SNPRINTF 1
23545 _ACEOF
23546
23547 fi
23548 done
23549
23550   if test $ac_cv_func_snprintf = yes; then
23551
23552
23553
23554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
23555 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
23556 if ${gl_cv_func_snprintf_size1+:} false; then :
23557   $as_echo_n "(cached) " >&6
23558 else
23559
23560       if test "$cross_compiling" = yes; then :
23561   gl_cv_func_snprintf_size1="guessing yes"
23562 else
23563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23564 /* end confdefs.h.  */
23565
23566 #include <stdio.h>
23567 #if HAVE_SNPRINTF
23568 # define my_snprintf snprintf
23569 #else
23570 # include <stdarg.h>
23571 static int my_snprintf (char *buf, int size, const char *format, ...)
23572 {
23573   va_list args;
23574   int ret;
23575   va_start (args, format);
23576   ret = vsnprintf (buf, size, format, args);
23577   va_end (args);
23578   return ret;
23579 }
23580 #endif
23581 int main()
23582 {
23583   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
23584   my_snprintf (buf, 1, "%d", 12345);
23585   return buf[1] != 'E';
23586 }
23587 _ACEOF
23588 if ac_fn_c_try_run "$LINENO"; then :
23589   gl_cv_func_snprintf_size1=yes
23590 else
23591   gl_cv_func_snprintf_size1=no
23592 fi
23593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23594   conftest.$ac_objext conftest.beam conftest.$ac_ext
23595 fi
23596
23597
23598 fi
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
23600 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
23601
23602     case "$gl_cv_func_snprintf_size1" in
23603       *yes)
23604
23605         case "$gl_cv_func_snprintf_retval_c99" in
23606           *yes)
23607
23608
23609      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
23610 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
23611 if ${gl_cv_func_printf_positions+:} false; then :
23612   $as_echo_n "(cached) " >&6
23613 else
23614
23615       if test "$cross_compiling" = yes; then :
23616
23617          case "$host_os" in
23618            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
23619                          gl_cv_func_printf_positions="guessing no";;
23620            beos*)        gl_cv_func_printf_positions="guessing no";;
23621            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
23622            *)            gl_cv_func_printf_positions="guessing yes";;
23623          esac
23624
23625 else
23626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23627 /* end confdefs.h.  */
23628
23629 #include <stdio.h>
23630 #include <string.h>
23631 /* The string "%2$d %1$d", with dollar characters protected from the shell's
23632    dollar expansion (possibly an autoconf bug).  */
23633 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
23634 static char buf[100];
23635 int main ()
23636 {
23637   sprintf (buf, format, 33, 55);
23638   return (strcmp (buf, "55 33") != 0);
23639 }
23640 _ACEOF
23641 if ac_fn_c_try_run "$LINENO"; then :
23642   gl_cv_func_printf_positions=yes
23643 else
23644   gl_cv_func_printf_positions=no
23645 fi
23646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23647   conftest.$ac_objext conftest.beam conftest.$ac_ext
23648 fi
23649
23650
23651 fi
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
23653 $as_echo "$gl_cv_func_printf_positions" >&6; }
23654
23655             case "$gl_cv_func_printf_positions" in
23656               *yes)
23657                 gl_cv_func_snprintf_usable=yes
23658                 ;;
23659             esac
23660             ;;
23661         esac
23662         ;;
23663     esac
23664   fi
23665   if test $gl_cv_func_snprintf_usable = no; then
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
23677
23678   if test $ac_cv_func_snprintf = yes; then
23679     REPLACE_SNPRINTF=1
23680   fi
23681   :
23682
23683   fi
23684
23685   :
23686
23687
23688
23689
23690
23691   if test $ac_cv_have_decl_snprintf = no; then
23692     HAVE_DECL_SNPRINTF=0
23693   fi
23694
23695
23696
23697
23698
23699
23700           GNULIB_SNPRINTF=1
23701
23702
23703
23704
23705
23706 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
23707
23708
23709
23710
23711
23712 cat >>confdefs.h <<_ACEOF
23713 #define GNULIB_SNPRINTF 1
23714 _ACEOF
23715
23716
23717      ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23718 /* <sys/types.h> is not needed according to POSIX, but the
23719    <sys/socket.h> in i386-unknown-freebsd4.10 and
23720    powerpc-apple-darwin5.5 required it. */
23721 #include <sys/types.h>
23722 #if HAVE_SYS_SOCKET_H
23723 # include <sys/socket.h>
23724 #elif HAVE_WS2TCPIP_H
23725 # include <ws2tcpip.h>
23726 #endif
23727
23728 "
23729 if test "x$ac_cv_type_socklen_t" = xyes; then :
23730
23731 else
23732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23733 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23734       if ${gl_cv_socklen_t_equiv+:} false; then :
23735   $as_echo_n "(cached) " >&6
23736 else
23737   # Systems have either "struct sockaddr *" or
23738          # "void *" as the second argument to getpeername
23739          gl_cv_socklen_t_equiv=
23740          for arg2 in "struct sockaddr" void; do
23741            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
23742              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23743 /* end confdefs.h.  */
23744 #include <sys/types.h>
23745                    #include <sys/socket.h>
23746
23747                    int getpeername (int, $arg2 *, $t *);
23748 int
23749 main ()
23750 {
23751 $t len;
23752                   getpeername (0, 0, &len);
23753   ;
23754   return 0;
23755 }
23756 _ACEOF
23757 if ac_fn_c_try_compile "$LINENO"; then :
23758   gl_cv_socklen_t_equiv="$t"
23759 fi
23760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23761              test "$gl_cv_socklen_t_equiv" != "" && break
23762            done
23763            test "$gl_cv_socklen_t_equiv" != "" && break
23764          done
23765
23766 fi
23767
23768       if test "$gl_cv_socklen_t_equiv" = ""; then
23769         as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
23770       fi
23771       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23772 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23773
23774 cat >>confdefs.h <<_ACEOF
23775 #define socklen_t $gl_cv_socklen_t_equiv
23776 _ACEOF
23777
23778 fi
23779
23780
23781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23782 $as_echo_n "checking for ssize_t... " >&6; }
23783 if ${gt_cv_ssize_t+:} false; then :
23784   $as_echo_n "(cached) " >&6
23785 else
23786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23787 /* end confdefs.h.  */
23788 #include <sys/types.h>
23789 int
23790 main ()
23791 {
23792 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23793             return !x;
23794   ;
23795   return 0;
23796 }
23797 _ACEOF
23798 if ac_fn_c_try_compile "$LINENO"; then :
23799   gt_cv_ssize_t=yes
23800 else
23801   gt_cv_ssize_t=no
23802 fi
23803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23804 fi
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23806 $as_echo "$gt_cv_ssize_t" >&6; }
23807   if test $gt_cv_ssize_t = no; then
23808
23809 $as_echo "#define ssize_t int" >>confdefs.h
23810
23811   fi
23812
23813
23814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23815 $as_echo_n "checking for working stdalign.h... " >&6; }
23816 if ${gl_cv_header_working_stdalign_h+:} false; then :
23817   $as_echo_n "(cached) " >&6
23818 else
23819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23820 /* end confdefs.h.  */
23821 #include <stdalign.h>
23822             #include <stddef.h>
23823
23824             /* Test that alignof yields a result consistent with offsetof.
23825                This catches GCC bug 52023
23826                <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
23827             #ifdef __cplusplus
23828                template <class t> struct alignof_helper { char a; t b; };
23829             # define ao(type) offsetof (alignof_helper<type>, b)
23830             #else
23831             # define ao(type) offsetof (struct { char a; type b; }, b)
23832             #endif
23833             char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23834             char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23835             char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23836
23837             /* Test _Alignas only on platforms where gnulib can help.  */
23838             #if \
23839                 ((defined __cplusplus && 201103 <= __cplusplus) \
23840                  || (defined __APPLE__ && defined __MACH__ \
23841                      ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
23842                      : __GNUC__) \
23843                  || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
23844                  || __ICC || 0x5110 <= __SUNPRO_C \
23845                  || 1300 <= _MSC_VER)
23846               struct alignas_test { char c; char alignas (8) alignas_8; };
23847               char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
23848                                 ? 1 : -1];
23849             #endif
23850
23851 int
23852 main ()
23853 {
23854
23855   ;
23856   return 0;
23857 }
23858 _ACEOF
23859 if ac_fn_c_try_compile "$LINENO"; then :
23860   gl_cv_header_working_stdalign_h=yes
23861 else
23862   gl_cv_header_working_stdalign_h=no
23863 fi
23864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23865 fi
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23867 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23868
23869   if test $gl_cv_header_working_stdalign_h = yes; then
23870     STDALIGN_H=''
23871   else
23872     STDALIGN_H='stdalign.h'
23873   fi
23874
23875
23876    if test -n "$STDALIGN_H"; then
23877   GL_GENERATE_STDALIGN_H_TRUE=
23878   GL_GENERATE_STDALIGN_H_FALSE='#'
23879 else
23880   GL_GENERATE_STDALIGN_H_TRUE='#'
23881   GL_GENERATE_STDALIGN_H_FALSE=
23882 fi
23883
23884
23885
23886
23887
23888   # Define two additional variables used in the Makefile substitution.
23889
23890   if test "$ac_cv_header_stdbool_h" = yes; then
23891     STDBOOL_H=''
23892   else
23893     STDBOOL_H='stdbool.h'
23894   fi
23895
23896    if test -n "$STDBOOL_H"; then
23897   GL_GENERATE_STDBOOL_H_TRUE=
23898   GL_GENERATE_STDBOOL_H_FALSE='#'
23899 else
23900   GL_GENERATE_STDBOOL_H_TRUE='#'
23901   GL_GENERATE_STDBOOL_H_FALSE=
23902 fi
23903
23904
23905   if test "$ac_cv_type__Bool" = yes; then
23906     HAVE__BOOL=1
23907   else
23908     HAVE__BOOL=0
23909   fi
23910
23911
23912
23913
23914
23915   STDDEF_H=
23916   ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
23917
23918 "
23919 if test "x$ac_cv_type_max_align_t" = xyes; then :
23920
23921 else
23922   HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
23923 fi
23924
23925   if test $gt_cv_c_wchar_t = no; then
23926     HAVE_WCHAR_T=0
23927     STDDEF_H=stddef.h
23928   fi
23929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23930 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23931 if ${gl_cv_decl_null_works+:} false; then :
23932   $as_echo_n "(cached) " >&6
23933 else
23934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23935 /* end confdefs.h.  */
23936 #include <stddef.h>
23937       int test[2 * (sizeof NULL == sizeof (void *)) -1];
23938
23939 int
23940 main ()
23941 {
23942
23943   ;
23944   return 0;
23945 }
23946 _ACEOF
23947 if ac_fn_c_try_compile "$LINENO"; then :
23948   gl_cv_decl_null_works=yes
23949 else
23950   gl_cv_decl_null_works=no
23951 fi
23952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23953 fi
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23955 $as_echo "$gl_cv_decl_null_works" >&6; }
23956   if test $gl_cv_decl_null_works = no; then
23957     REPLACE_NULL=1
23958     STDDEF_H=stddef.h
23959   fi
23960
23961    if test -n "$STDDEF_H"; then
23962   GL_GENERATE_STDDEF_H_TRUE=
23963   GL_GENERATE_STDDEF_H_FALSE='#'
23964 else
23965   GL_GENERATE_STDDEF_H_TRUE='#'
23966   GL_GENERATE_STDDEF_H_FALSE=
23967 fi
23968
23969   if test -n "$STDDEF_H"; then
23970
23971
23972
23973
23974
23975
23976
23977
23978      if test $gl_cv_have_include_next = yes; then
23979        gl_cv_next_stddef_h='<'stddef.h'>'
23980      else
23981        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23982 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23983 if ${gl_cv_next_stddef_h+:} false; then :
23984   $as_echo_n "(cached) " >&6
23985 else
23986
23987
23988
23989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23990 /* end confdefs.h.  */
23991 #include <stddef.h>
23992 _ACEOF
23993                 case "$host_os" in
23994     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23995     *)    gl_absname_cpp="$ac_cpp" ;;
23996   esac
23997
23998   case "$host_os" in
23999     mingw*)
24000                                           gl_dirsep_regex='[/\\]'
24001       ;;
24002     *)
24003       gl_dirsep_regex='\/'
24004       ;;
24005   esac
24006       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24007   gl_header_literal_regex=`echo 'stddef.h' \
24008                            | sed -e "$gl_make_literal_regex_sed"`
24009   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24010       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24011       s|^/[^/]|//&|
24012       p
24013       q
24014     }'
24015
24016         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24017   sed -n "$gl_absolute_header_sed"`
24018
24019            gl_header=$gl_cv_absolute_stddef_h
24020            gl_cv_next_stddef_h='"'$gl_header'"'
24021
24022
24023 fi
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
24025 $as_echo "$gl_cv_next_stddef_h" >&6; }
24026      fi
24027      NEXT_STDDEF_H=$gl_cv_next_stddef_h
24028
24029      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24030        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24031        gl_next_as_first_directive='<'stddef.h'>'
24032      else
24033        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24034        gl_next_as_first_directive=$gl_cv_next_stddef_h
24035      fi
24036      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
24037
24038
24039
24040
24041   fi
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056      if test $gl_cv_have_include_next = yes; then
24057        gl_cv_next_stdio_h='<'stdio.h'>'
24058      else
24059        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24060 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24061 if ${gl_cv_next_stdio_h+:} false; then :
24062   $as_echo_n "(cached) " >&6
24063 else
24064
24065
24066
24067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24068 /* end confdefs.h.  */
24069 #include <stdio.h>
24070 _ACEOF
24071                 case "$host_os" in
24072     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24073     *)    gl_absname_cpp="$ac_cpp" ;;
24074   esac
24075
24076   case "$host_os" in
24077     mingw*)
24078                                           gl_dirsep_regex='[/\\]'
24079       ;;
24080     *)
24081       gl_dirsep_regex='\/'
24082       ;;
24083   esac
24084       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24085   gl_header_literal_regex=`echo 'stdio.h' \
24086                            | sed -e "$gl_make_literal_regex_sed"`
24087   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24088       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24089       s|^/[^/]|//&|
24090       p
24091       q
24092     }'
24093
24094         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24095   sed -n "$gl_absolute_header_sed"`
24096
24097            gl_header=$gl_cv_absolute_stdio_h
24098            gl_cv_next_stdio_h='"'$gl_header'"'
24099
24100
24101 fi
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24103 $as_echo "$gl_cv_next_stdio_h" >&6; }
24104      fi
24105      NEXT_STDIO_H=$gl_cv_next_stdio_h
24106
24107      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24108        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24109        gl_next_as_first_directive='<'stdio.h'>'
24110      else
24111        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24112        gl_next_as_first_directive=$gl_cv_next_stdio_h
24113      fi
24114      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
24115
24116
24117
24118
24119
24120       GNULIB_FSCANF=1
24121
24122
24123 cat >>confdefs.h <<_ACEOF
24124 #define GNULIB_FSCANF 1
24125 _ACEOF
24126
24127
24128   GNULIB_SCANF=1
24129
24130
24131 cat >>confdefs.h <<_ACEOF
24132 #define GNULIB_SCANF 1
24133 _ACEOF
24134
24135
24136   GNULIB_FGETC=1
24137   GNULIB_GETC=1
24138   GNULIB_GETCHAR=1
24139   GNULIB_FGETS=1
24140   GNULIB_FREAD=1
24141
24142
24143       GNULIB_FPRINTF=1
24144   GNULIB_PRINTF=1
24145   GNULIB_VFPRINTF=1
24146   GNULIB_VPRINTF=1
24147   GNULIB_FPUTC=1
24148   GNULIB_PUTC=1
24149   GNULIB_PUTCHAR=1
24150   GNULIB_FPUTS=1
24151   GNULIB_PUTS=1
24152   GNULIB_FWRITE=1
24153
24154
24155
24156
24157     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
24158     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24160 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24161 if eval \${$as_gl_Symbol+:} false; then :
24162   $as_echo_n "(cached) " >&6
24163 else
24164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24165 /* end confdefs.h.  */
24166 #include <stdio.h>
24167
24168 int
24169 main ()
24170 {
24171 #undef $gl_func
24172   (void) $gl_func;
24173   ;
24174   return 0;
24175 }
24176 _ACEOF
24177 if ac_fn_c_try_compile "$LINENO"; then :
24178   eval "$as_gl_Symbol=yes"
24179 else
24180   eval "$as_gl_Symbol=no"
24181 fi
24182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24183 fi
24184 eval ac_res=\$$as_gl_Symbol
24185                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24186 $as_echo "$ac_res" >&6; }
24187     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24188   cat >>confdefs.h <<_ACEOF
24189 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24190 _ACEOF
24191
24192                      eval ac_cv_have_decl_$gl_func=yes
24193 fi
24194       done
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207      if test $gl_cv_have_include_next = yes; then
24208        gl_cv_next_stdlib_h='<'stdlib.h'>'
24209      else
24210        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24211 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24212 if ${gl_cv_next_stdlib_h+:} false; then :
24213   $as_echo_n "(cached) " >&6
24214 else
24215
24216
24217
24218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24219 /* end confdefs.h.  */
24220 #include <stdlib.h>
24221 _ACEOF
24222                 case "$host_os" in
24223     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24224     *)    gl_absname_cpp="$ac_cpp" ;;
24225   esac
24226
24227   case "$host_os" in
24228     mingw*)
24229                                           gl_dirsep_regex='[/\\]'
24230       ;;
24231     *)
24232       gl_dirsep_regex='\/'
24233       ;;
24234   esac
24235       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24236   gl_header_literal_regex=`echo 'stdlib.h' \
24237                            | sed -e "$gl_make_literal_regex_sed"`
24238   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24239       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24240       s|^/[^/]|//&|
24241       p
24242       q
24243     }'
24244
24245         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24246   sed -n "$gl_absolute_header_sed"`
24247
24248            gl_header=$gl_cv_absolute_stdlib_h
24249            gl_cv_next_stdlib_h='"'$gl_header'"'
24250
24251
24252 fi
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24254 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24255      fi
24256      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24257
24258      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24259        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24260        gl_next_as_first_directive='<'stdlib.h'>'
24261      else
24262        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24263        gl_next_as_first_directive=$gl_cv_next_stdlib_h
24264      fi
24265      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24266
24267
24268
24269
24270
24271
24272     for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt     initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps     posix_openpt ptsname ptsname_r random random_r realpath rpmatch     secure_getenv setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
24273     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24274     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24275 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24276 if eval \${$as_gl_Symbol+:} false; then :
24277   $as_echo_n "(cached) " >&6
24278 else
24279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24280 /* end confdefs.h.  */
24281 #include <stdlib.h>
24282 #if HAVE_SYS_LOADAVG_H
24283 # include <sys/loadavg.h>
24284 #endif
24285 #if HAVE_RANDOM_H
24286 # include <random.h>
24287 #endif
24288
24289 int
24290 main ()
24291 {
24292 #undef $gl_func
24293   (void) $gl_func;
24294   ;
24295   return 0;
24296 }
24297 _ACEOF
24298 if ac_fn_c_try_compile "$LINENO"; then :
24299   eval "$as_gl_Symbol=yes"
24300 else
24301   eval "$as_gl_Symbol=no"
24302 fi
24303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24304 fi
24305 eval ac_res=\$$as_gl_Symbol
24306                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24307 $as_echo "$ac_res" >&6; }
24308     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24309   cat >>confdefs.h <<_ACEOF
24310 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24311 _ACEOF
24312
24313                      eval ac_cv_have_decl_$gl_func=yes
24314 fi
24315       done
24316
24317
24318
24319
24320
24321   for ac_func in strcasecmp
24322 do :
24323   ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
24324 if test "x$ac_cv_func_strcasecmp" = xyes; then :
24325   cat >>confdefs.h <<_ACEOF
24326 #define HAVE_STRCASECMP 1
24327 _ACEOF
24328
24329 fi
24330 done
24331
24332   if test $ac_cv_func_strcasecmp = no; then
24333     HAVE_STRCASECMP=0
24334   fi
24335
24336
24337
24338   for ac_func in strncasecmp
24339 do :
24340   ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
24341 if test "x$ac_cv_func_strncasecmp" = xyes; then :
24342   cat >>confdefs.h <<_ACEOF
24343 #define HAVE_STRNCASECMP 1
24344 _ACEOF
24345
24346 fi
24347 done
24348
24349   if test $ac_cv_func_strncasecmp = yes; then
24350     HAVE_STRNCASECMP=1
24351   else
24352     HAVE_STRNCASECMP=0
24353   fi
24354   ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
24355 if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
24356   ac_have_decl=1
24357 else
24358   ac_have_decl=0
24359 fi
24360
24361 cat >>confdefs.h <<_ACEOF
24362 #define HAVE_DECL_STRNCASECMP $ac_have_decl
24363 _ACEOF
24364
24365   if test $ac_cv_have_decl_strncasecmp = no; then
24366     HAVE_DECL_STRNCASECMP=0
24367   fi
24368
24369
24370   if test $HAVE_STRCASECMP = 0; then
24371
24372
24373
24374
24375
24376
24377
24378
24379   gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext"
24380
24381
24382   :
24383
24384   fi
24385   if test $HAVE_STRNCASECMP = 0; then
24386
24387
24388
24389
24390
24391
24392
24393
24394   gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext"
24395
24396
24397   :
24398
24399   fi
24400
24401
24402
24403
24404
24405
24406
24407
24408
24409
24410
24411   :
24412
24413
24414
24415
24416
24417
24418   :
24419
24420
24421
24422
24423
24424   if test $ac_cv_have_decl_strndup = no; then
24425     HAVE_DECL_STRNDUP=0
24426   fi
24427
24428   if test $ac_cv_func_strndup = yes; then
24429     HAVE_STRNDUP=1
24430     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
24431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
24432 $as_echo_n "checking for working strndup... " >&6; }
24433 if ${gl_cv_func_strndup_works+:} false; then :
24434   $as_echo_n "(cached) " >&6
24435 else
24436   if test "$cross_compiling" = yes; then :
24437
24438           case $host_os in
24439             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
24440             *)               gl_cv_func_strndup_works="guessing yes";;
24441           esac
24442
24443 else
24444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24445 /* end confdefs.h.  */
24446
24447          #include <string.h>
24448                            #include <stdlib.h>
24449 int
24450 main ()
24451 {
24452
24453 #if !HAVE_DECL_STRNDUP
24454   extern
24455   #ifdef __cplusplus
24456   "C"
24457   #endif
24458   char *strndup (const char *, size_t);
24459 #endif
24460   char *s;
24461   s = strndup ("some longer string", 15);
24462   free (s);
24463   s = strndup ("shorter string", 13);
24464   return s[13] != '\0';
24465   ;
24466   return 0;
24467 }
24468 _ACEOF
24469 if ac_fn_c_try_run "$LINENO"; then :
24470   gl_cv_func_strndup_works=yes
24471 else
24472   gl_cv_func_strndup_works=no
24473 fi
24474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24475   conftest.$ac_objext conftest.beam conftest.$ac_ext
24476 fi
24477
24478 fi
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
24480 $as_echo "$gl_cv_func_strndup_works" >&6; }
24481     case $gl_cv_func_strndup_works in
24482       *no) REPLACE_STRNDUP=1 ;;
24483     esac
24484   else
24485     HAVE_STRNDUP=0
24486   fi
24487
24488   if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
24489
24490
24491
24492
24493
24494
24495
24496
24497   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
24498
24499   fi
24500
24501
24502
24503
24504
24505           GNULIB_STRNDUP=1
24506
24507
24508
24509
24510
24511 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521   :
24522
24523
24524
24525
24526
24527   if test $ac_cv_have_decl_strnlen = no; then
24528     HAVE_DECL_STRNLEN=0
24529   else
24530
24531          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
24532 $as_echo_n "checking for working strnlen... " >&6; }
24533 if ${ac_cv_func_strnlen_working+:} false; then :
24534   $as_echo_n "(cached) " >&6
24535 else
24536   if test "$cross_compiling" = yes; then :
24537   # Guess no on AIX systems, yes otherwise.
24538                 case "$host_os" in
24539                   aix*) ac_cv_func_strnlen_working=no;;
24540                   *)    ac_cv_func_strnlen_working=yes;;
24541                 esac
24542 else
24543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24544 /* end confdefs.h.  */
24545 $ac_includes_default
24546 int
24547 main ()
24548 {
24549
24550 #define S "foobar"
24551 #define S_LEN (sizeof S - 1)
24552
24553   /* At least one implementation is buggy: that of AIX 4.3 would
24554      give strnlen (S, 1) == 3.  */
24555
24556   int i;
24557   for (i = 0; i < S_LEN + 1; ++i)
24558     {
24559       int expected = i <= S_LEN ? i : S_LEN;
24560       if (strnlen (S, i) != expected)
24561         return 1;
24562     }
24563   return 0;
24564
24565   ;
24566   return 0;
24567 }
24568 _ACEOF
24569 if ac_fn_c_try_run "$LINENO"; then :
24570   ac_cv_func_strnlen_working=yes
24571 else
24572   ac_cv_func_strnlen_working=no
24573 fi
24574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24575   conftest.$ac_objext conftest.beam conftest.$ac_ext
24576 fi
24577
24578 fi
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
24580 $as_echo "$ac_cv_func_strnlen_working" >&6; }
24581 test $ac_cv_func_strnlen_working = no && :
24582
24583
24584     if test $ac_cv_func_strnlen_working = no; then
24585       REPLACE_STRNLEN=1
24586     fi
24587   fi
24588
24589   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
24590
24591
24592
24593
24594
24595
24596
24597
24598   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
24599
24600     :
24601   fi
24602
24603
24604
24605
24606
24607           GNULIB_STRNLEN=1
24608
24609
24610
24611
24612
24613 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
24614
24615
24616
24617
24618
24619
24620
24621      for ac_func in strtok_r
24622 do :
24623   ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
24624 if test "x$ac_cv_func_strtok_r" = xyes; then :
24625   cat >>confdefs.h <<_ACEOF
24626 #define HAVE_STRTOK_R 1
24627 _ACEOF
24628
24629 fi
24630 done
24631
24632   if test $ac_cv_func_strtok_r = yes; then
24633     HAVE_STRTOK_R=1
24634                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
24635 $as_echo_n "checking whether strtok_r works... " >&6; }
24636 if ${gl_cv_func_strtok_r_works+:} false; then :
24637   $as_echo_n "(cached) " >&6
24638 else
24639   if test "$cross_compiling" = yes; then :
24640
24641           case "$host_os" in
24642                     # Guess no on glibc systems.
24643             *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
24644             *)      gl_cv_func_strtok_r_works="guessing yes";;
24645           esac
24646
24647 else
24648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24649 /* end confdefs.h.  */
24650
24651               #ifndef __OPTIMIZE__
24652               # define __OPTIMIZE__ 1
24653               #endif
24654               #undef __OPTIMIZE_SIZE__
24655               #undef __NO_INLINE__
24656               #include <stdlib.h>
24657               #include <string.h>
24658
24659 int
24660 main ()
24661 {
24662 static const char dummy[] = "\177\01a";
24663               char delimiters[] = "xxxxxxxx";
24664               char *save_ptr = (char *) dummy;
24665               strtok_r (delimiters, "x", &save_ptr);
24666               strtok_r (NULL, "x", &save_ptr);
24667               return 0;
24668
24669   ;
24670   return 0;
24671 }
24672
24673 _ACEOF
24674 if ac_fn_c_try_run "$LINENO"; then :
24675   gl_cv_func_strtok_r_works=yes
24676 else
24677   gl_cv_func_strtok_r_works=no
24678 fi
24679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24680   conftest.$ac_objext conftest.beam conftest.$ac_ext
24681 fi
24682
24683
24684 fi
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
24686 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
24687     case "$gl_cv_func_strtok_r_works" in
24688       *no)
24689                                 UNDEFINE_STRTOK_R=1
24690         ;;
24691     esac
24692   else
24693     HAVE_STRTOK_R=0
24694   fi
24695
24696   :
24697
24698
24699
24700
24701
24702   if test $ac_cv_have_decl_strtok_r = no; then
24703     HAVE_DECL_STRTOK_R=0
24704   fi
24705
24706   if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
24707
24708
24709
24710
24711
24712
24713
24714
24715   gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
24716
24717
24718   :
24719
24720   fi
24721
24722
24723
24724
24725
24726           GNULIB_STRTOK_R=1
24727
24728
24729
24730
24731
24732 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
24733
24734
24735
24736
24737
24738
24739
24740   for ac_func in strverscmp
24741 do :
24742   ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
24743 if test "x$ac_cv_func_strverscmp" = xyes; then :
24744   cat >>confdefs.h <<_ACEOF
24745 #define HAVE_STRVERSCMP 1
24746 _ACEOF
24747
24748 fi
24749 done
24750
24751   if test $ac_cv_func_strverscmp = no; then
24752     HAVE_STRVERSCMP=0
24753   fi
24754
24755   if test $HAVE_STRVERSCMP = 0; then
24756
24757
24758
24759
24760
24761
24762
24763
24764   gl_LIBOBJS="$gl_LIBOBJS strverscmp.$ac_objext"
24765
24766
24767   :
24768
24769   fi
24770
24771
24772
24773
24774
24775           GNULIB_STRVERSCMP=1
24776
24777
24778
24779
24780
24781 $as_echo "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795
24796
24797
24798   :
24799
24800
24801
24802
24803
24804
24805
24806
24807      if test $gl_cv_have_include_next = yes; then
24808        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24809      else
24810        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24811 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24812 if ${gl_cv_next_sys_stat_h+:} false; then :
24813   $as_echo_n "(cached) " >&6
24814 else
24815
24816              if test $ac_cv_header_sys_stat_h = yes; then
24817
24818
24819
24820
24821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24822 /* end confdefs.h.  */
24823 #include <sys/stat.h>
24824 _ACEOF
24825                 case "$host_os" in
24826     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24827     *)    gl_absname_cpp="$ac_cpp" ;;
24828   esac
24829
24830   case "$host_os" in
24831     mingw*)
24832                                           gl_dirsep_regex='[/\\]'
24833       ;;
24834     *)
24835       gl_dirsep_regex='\/'
24836       ;;
24837   esac
24838       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24839   gl_header_literal_regex=`echo 'sys/stat.h' \
24840                            | sed -e "$gl_make_literal_regex_sed"`
24841   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24842       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24843       s|^/[^/]|//&|
24844       p
24845       q
24846     }'
24847
24848         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24849   sed -n "$gl_absolute_header_sed"`
24850
24851            gl_header=$gl_cv_absolute_sys_stat_h
24852            gl_cv_next_sys_stat_h='"'$gl_header'"'
24853           else
24854                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24855              fi
24856
24857
24858 fi
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24860 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24861      fi
24862      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24863
24864      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24865        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24866        gl_next_as_first_directive='<'sys/stat.h'>'
24867      else
24868        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24869        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24870      fi
24871      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24884
24885 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24886
24887   fi
24888
24889       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24890      #include <sys/stat.h>
24891 "
24892 if test "x$ac_cv_type_nlink_t" = xyes; then :
24893
24894 else
24895
24896 $as_echo "#define nlink_t int" >>confdefs.h
24897
24898 fi
24899
24900
24901
24902     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
24903     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24905 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24906 if eval \${$as_gl_Symbol+:} false; then :
24907   $as_echo_n "(cached) " >&6
24908 else
24909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24910 /* end confdefs.h.  */
24911 #include <sys/stat.h>
24912
24913 int
24914 main ()
24915 {
24916 #undef $gl_func
24917   (void) $gl_func;
24918   ;
24919   return 0;
24920 }
24921 _ACEOF
24922 if ac_fn_c_try_compile "$LINENO"; then :
24923   eval "$as_gl_Symbol=yes"
24924 else
24925   eval "$as_gl_Symbol=no"
24926 fi
24927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24928 fi
24929 eval ac_res=\$$as_gl_Symbol
24930                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24931 $as_echo "$ac_res" >&6; }
24932     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24933   cat >>confdefs.h <<_ACEOF
24934 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24935 _ACEOF
24936
24937                      eval ac_cv_have_decl_$gl_func=yes
24938 fi
24939       done
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957   :
24958
24959
24960
24961
24962
24963
24964
24965
24966      if test $gl_cv_have_include_next = yes; then
24967        gl_cv_next_sys_uio_h='<'sys/uio.h'>'
24968      else
24969        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
24970 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
24971 if ${gl_cv_next_sys_uio_h+:} false; then :
24972   $as_echo_n "(cached) " >&6
24973 else
24974
24975              if test $ac_cv_header_sys_uio_h = yes; then
24976
24977
24978
24979
24980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24981 /* end confdefs.h.  */
24982 #include <sys/uio.h>
24983 _ACEOF
24984                 case "$host_os" in
24985     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24986     *)    gl_absname_cpp="$ac_cpp" ;;
24987   esac
24988
24989   case "$host_os" in
24990     mingw*)
24991                                           gl_dirsep_regex='[/\\]'
24992       ;;
24993     *)
24994       gl_dirsep_regex='\/'
24995       ;;
24996   esac
24997       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24998   gl_header_literal_regex=`echo 'sys/uio.h' \
24999                            | sed -e "$gl_make_literal_regex_sed"`
25000   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25001       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25002       s|^/[^/]|//&|
25003       p
25004       q
25005     }'
25006
25007         gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25008   sed -n "$gl_absolute_header_sed"`
25009
25010            gl_header=$gl_cv_absolute_sys_uio_h
25011            gl_cv_next_sys_uio_h='"'$gl_header'"'
25012           else
25013                gl_cv_next_sys_uio_h='<'sys/uio.h'>'
25014              fi
25015
25016
25017 fi
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
25019 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
25020      fi
25021      NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
25022
25023      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25024        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25025        gl_next_as_first_directive='<'sys/uio.h'>'
25026      else
25027        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25028        gl_next_as_first_directive=$gl_cv_next_sys_uio_h
25029      fi
25030      NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
25031
25032
25033
25034
25035   if test $ac_cv_header_sys_uio_h = yes; then
25036     HAVE_SYS_UIO_H=1
25037   else
25038     HAVE_SYS_UIO_H=0
25039   fi
25040
25041
25042
25043
25044
25045
25046
25047
25048
25049
25050
25051
25052       ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
25053 "
25054 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
25055   ac_have_decl=1
25056 else
25057   ac_have_decl=0
25058 fi
25059
25060 cat >>confdefs.h <<_ACEOF
25061 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
25062 _ACEOF
25063
25064   if test $ac_cv_have_decl_localtime_r = no; then
25065     HAVE_DECL_LOCALTIME_R=0
25066   fi
25067
25068
25069   :
25070
25071
25072
25073
25074
25075   if test $ac_cv_func_localtime_r = yes; then
25076     HAVE_LOCALTIME_R=1
25077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
25078 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
25079 if ${gl_cv_time_r_posix+:} false; then :
25080   $as_echo_n "(cached) " >&6
25081 else
25082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25083 /* end confdefs.h.  */
25084 #include <time.h>
25085 int
25086 main ()
25087 {
25088 /* We don't need to append 'restrict's to the argument types,
25089                  even though the POSIX signature has the 'restrict's,
25090                  since C99 says they can't affect type compatibility.  */
25091               struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
25092               if (ptr) return 0;
25093               /* Check the return type is a pointer.
25094                  On HP-UX 10 it is 'int'.  */
25095               *localtime_r (0, 0);
25096   ;
25097   return 0;
25098 }
25099
25100 _ACEOF
25101 if ac_fn_c_try_compile "$LINENO"; then :
25102   gl_cv_time_r_posix=yes
25103 else
25104   gl_cv_time_r_posix=no
25105 fi
25106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25107
25108 fi
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
25110 $as_echo "$gl_cv_time_r_posix" >&6; }
25111     if test $gl_cv_time_r_posix = yes; then
25112       REPLACE_LOCALTIME_R=0
25113     else
25114       REPLACE_LOCALTIME_R=1
25115     fi
25116   else
25117     HAVE_LOCALTIME_R=0
25118   fi
25119
25120   if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
25121
25122
25123
25124
25125
25126
25127
25128
25129   gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
25130
25131
25132   :
25133
25134   fi
25135
25136
25137
25138
25139
25140           GNULIB_TIME_R=1
25141
25142
25143
25144
25145
25146 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
25147
25148
25149
25150
25151
25152
25153
25154
25155
25156
25157
25158
25159   :
25160
25161
25162
25163
25164
25165
25166
25167
25168      if test $gl_cv_have_include_next = yes; then
25169        gl_cv_next_unistd_h='<'unistd.h'>'
25170      else
25171        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25172 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25173 if ${gl_cv_next_unistd_h+:} false; then :
25174   $as_echo_n "(cached) " >&6
25175 else
25176
25177              if test $ac_cv_header_unistd_h = yes; then
25178
25179
25180
25181
25182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25183 /* end confdefs.h.  */
25184 #include <unistd.h>
25185 _ACEOF
25186                 case "$host_os" in
25187     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25188     *)    gl_absname_cpp="$ac_cpp" ;;
25189   esac
25190
25191   case "$host_os" in
25192     mingw*)
25193                                           gl_dirsep_regex='[/\\]'
25194       ;;
25195     *)
25196       gl_dirsep_regex='\/'
25197       ;;
25198   esac
25199       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25200   gl_header_literal_regex=`echo 'unistd.h' \
25201                            | sed -e "$gl_make_literal_regex_sed"`
25202   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25203       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25204       s|^/[^/]|//&|
25205       p
25206       q
25207     }'
25208
25209         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25210   sed -n "$gl_absolute_header_sed"`
25211
25212            gl_header=$gl_cv_absolute_unistd_h
25213            gl_cv_next_unistd_h='"'$gl_header'"'
25214           else
25215                gl_cv_next_unistd_h='<'unistd.h'>'
25216              fi
25217
25218
25219 fi
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25221 $as_echo "$gl_cv_next_unistd_h" >&6; }
25222      fi
25223      NEXT_UNISTD_H=$gl_cv_next_unistd_h
25224
25225      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25226        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25227        gl_next_as_first_directive='<'unistd.h'>'
25228      else
25229        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25230        gl_next_as_first_directive=$gl_cv_next_unistd_h
25231      fi
25232      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25233
25234
25235
25236
25237   if test $ac_cv_header_unistd_h = yes; then
25238     HAVE_UNISTD_H=1
25239   else
25240     HAVE_UNISTD_H=0
25241   fi
25242
25243
25244
25245
25246
25247
25248
25249     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
25250     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25252 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25253 if eval \${$as_gl_Symbol+:} false; then :
25254   $as_echo_n "(cached) " >&6
25255 else
25256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25257 /* end confdefs.h.  */
25258
25259 #if HAVE_UNISTD_H
25260 # include <unistd.h>
25261 #endif
25262 /* Some systems declare various items in the wrong headers.  */
25263 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25264 # include <fcntl.h>
25265 # include <stdio.h>
25266 # include <stdlib.h>
25267 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25268 #  include <io.h>
25269 # endif
25270 #endif
25271
25272 int
25273 main ()
25274 {
25275 #undef $gl_func
25276   (void) $gl_func;
25277   ;
25278   return 0;
25279 }
25280 _ACEOF
25281 if ac_fn_c_try_compile "$LINENO"; then :
25282   eval "$as_gl_Symbol=yes"
25283 else
25284   eval "$as_gl_Symbol=no"
25285 fi
25286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25287 fi
25288 eval ac_res=\$$as_gl_Symbol
25289                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25290 $as_echo "$ac_res" >&6; }
25291     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25292   cat >>confdefs.h <<_ACEOF
25293 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25294 _ACEOF
25295
25296                      eval ac_cv_have_decl_$gl_func=yes
25297 fi
25298       done
25299
25300
25301
25302   # Check whether --enable-valgrind-tests was given.
25303 if test "${enable_valgrind_tests+set}" = set; then :
25304   enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
25305 else
25306   opt_valgrind_tests=yes
25307 fi
25308
25309
25310   # Run self-tests under valgrind?
25311   if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
25312     for ac_prog in valgrind
25313 do
25314   # Extract the first word of "$ac_prog", so it can be a program name with args.
25315 set dummy $ac_prog; ac_word=$2
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25317 $as_echo_n "checking for $ac_word... " >&6; }
25318 if ${ac_cv_prog_VALGRIND+:} false; then :
25319   $as_echo_n "(cached) " >&6
25320 else
25321   if test -n "$VALGRIND"; then
25322   ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
25323 else
25324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25325 for as_dir in $PATH
25326 do
25327   IFS=$as_save_IFS
25328   test -z "$as_dir" && as_dir=.
25329     for ac_exec_ext in '' $ac_executable_extensions; do
25330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25331     ac_cv_prog_VALGRIND="$ac_prog"
25332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25333     break 2
25334   fi
25335 done
25336   done
25337 IFS=$as_save_IFS
25338
25339 fi
25340 fi
25341 VALGRIND=$ac_cv_prog_VALGRIND
25342 if test -n "$VALGRIND"; then
25343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
25344 $as_echo "$VALGRIND" >&6; }
25345 else
25346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25347 $as_echo "no" >&6; }
25348 fi
25349
25350
25351   test -n "$VALGRIND" && break
25352 done
25353
25354   fi
25355
25356   OPTS="-q --error-exitcode=1 --leak-check=full --suppressions=suppressions.valgrind"
25357
25358   if test -n "$VALGRIND" \
25359      && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
25360     opt_valgrind_tests=yes
25361     VALGRIND="$VALGRIND $OPTS"
25362   else
25363     opt_valgrind_tests=no
25364     VALGRIND=
25365   fi
25366
25367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
25368 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
25369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
25370 $as_echo "$opt_valgrind_tests" >&6; }
25371
25372
25373
25374   :
25375
25376
25377
25378
25379
25380   if test $ac_cv_func_vasnprintf = no; then
25381
25382
25383   :
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
25428
25429   if test $ac_cv_func_vasnprintf = yes; then
25430
25431 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
25432
25433   fi
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
25446 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
25447
25448 else
25449
25450 $as_echo "#define ptrdiff_t long" >>confdefs.h
25451
25452
25453 fi
25454
25455
25456
25457
25458
25459
25460
25461   fi
25462
25463
25464   for ac_func in vasprintf
25465 do :
25466   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
25467 if test "x$ac_cv_func_vasprintf" = xyes; then :
25468   cat >>confdefs.h <<_ACEOF
25469 #define HAVE_VASPRINTF 1
25470 _ACEOF
25471
25472 fi
25473 done
25474
25475   if test $ac_cv_func_vasprintf = no; then
25476
25477
25478
25479
25480
25481
25482
25483
25484
25485   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
25496
25497
25498   if test $ac_cv_func_vasprintf = yes; then
25499     REPLACE_VASPRINTF=1
25500   else
25501     HAVE_VASPRINTF=0
25502   fi
25503
25504
25505
25506
25507
25508
25509
25510
25511   fi
25512
25513
25514
25515
25516
25517
25518           GNULIB_VASPRINTF=1
25519
25520
25521
25522
25523
25524 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
25525
25526
25527
25528
25529
25530   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
25531
25532
25533
25534   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
25535
25536
25537
25538   gl_cv_func_vsnprintf_usable=no
25539   for ac_func in vsnprintf
25540 do :
25541   ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
25542 if test "x$ac_cv_func_vsnprintf" = xyes; then :
25543   cat >>confdefs.h <<_ACEOF
25544 #define HAVE_VSNPRINTF 1
25545 _ACEOF
25546
25547 fi
25548 done
25549
25550   if test $ac_cv_func_vsnprintf = yes; then
25551
25552
25553
25554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
25555 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
25556 if ${gl_cv_func_snprintf_size1+:} false; then :
25557   $as_echo_n "(cached) " >&6
25558 else
25559
25560       if test "$cross_compiling" = yes; then :
25561   gl_cv_func_snprintf_size1="guessing yes"
25562 else
25563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25564 /* end confdefs.h.  */
25565
25566 #include <stdio.h>
25567 #if HAVE_SNPRINTF
25568 # define my_snprintf snprintf
25569 #else
25570 # include <stdarg.h>
25571 static int my_snprintf (char *buf, int size, const char *format, ...)
25572 {
25573   va_list args;
25574   int ret;
25575   va_start (args, format);
25576   ret = vsnprintf (buf, size, format, args);
25577   va_end (args);
25578   return ret;
25579 }
25580 #endif
25581 int main()
25582 {
25583   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
25584   my_snprintf (buf, 1, "%d", 12345);
25585   return buf[1] != 'E';
25586 }
25587 _ACEOF
25588 if ac_fn_c_try_run "$LINENO"; then :
25589   gl_cv_func_snprintf_size1=yes
25590 else
25591   gl_cv_func_snprintf_size1=no
25592 fi
25593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25594   conftest.$ac_objext conftest.beam conftest.$ac_ext
25595 fi
25596
25597
25598 fi
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
25600 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
25601
25602     case "$gl_cv_func_snprintf_size1" in
25603       *yes)
25604
25605         case "$gl_cv_func_snprintf_retval_c99" in
25606           *yes)
25607
25608
25609      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
25610 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
25611 if ${gl_cv_func_printf_positions+:} false; then :
25612   $as_echo_n "(cached) " >&6
25613 else
25614
25615       if test "$cross_compiling" = yes; then :
25616
25617          case "$host_os" in
25618            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
25619                          gl_cv_func_printf_positions="guessing no";;
25620            beos*)        gl_cv_func_printf_positions="guessing no";;
25621            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
25622            *)            gl_cv_func_printf_positions="guessing yes";;
25623          esac
25624
25625 else
25626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25627 /* end confdefs.h.  */
25628
25629 #include <stdio.h>
25630 #include <string.h>
25631 /* The string "%2$d %1$d", with dollar characters protected from the shell's
25632    dollar expansion (possibly an autoconf bug).  */
25633 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
25634 static char buf[100];
25635 int main ()
25636 {
25637   sprintf (buf, format, 33, 55);
25638   return (strcmp (buf, "55 33") != 0);
25639 }
25640 _ACEOF
25641 if ac_fn_c_try_run "$LINENO"; then :
25642   gl_cv_func_printf_positions=yes
25643 else
25644   gl_cv_func_printf_positions=no
25645 fi
25646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25647   conftest.$ac_objext conftest.beam conftest.$ac_ext
25648 fi
25649
25650
25651 fi
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
25653 $as_echo "$gl_cv_func_printf_positions" >&6; }
25654
25655             case "$gl_cv_func_printf_positions" in
25656               *yes)
25657                 gl_cv_func_vsnprintf_usable=yes
25658                 ;;
25659             esac
25660             ;;
25661         esac
25662         ;;
25663     esac
25664   fi
25665   if test $gl_cv_func_vsnprintf_usable = no; then
25666
25667
25668
25669
25670
25671
25672
25673
25674
25675
25676   gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
25677
25678   if test $ac_cv_func_vsnprintf = yes; then
25679     REPLACE_VSNPRINTF=1
25680   fi
25681   :
25682
25683   fi
25684
25685   :
25686
25687
25688
25689
25690
25691   if test $ac_cv_have_decl_vsnprintf = no; then
25692     HAVE_DECL_VSNPRINTF=0
25693   fi
25694
25695
25696
25697
25698
25699
25700           GNULIB_VSNPRINTF=1
25701
25702
25703
25704
25705
25706 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719   :
25720
25721
25722
25723
25724
25725
25726
25727
25728      if test $gl_cv_have_include_next = yes; then
25729        gl_cv_next_wchar_h='<'wchar.h'>'
25730      else
25731        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
25732 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
25733 if ${gl_cv_next_wchar_h+:} false; then :
25734   $as_echo_n "(cached) " >&6
25735 else
25736
25737              if test $ac_cv_header_wchar_h = yes; then
25738
25739
25740
25741
25742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25743 /* end confdefs.h.  */
25744 #include <wchar.h>
25745 _ACEOF
25746                 case "$host_os" in
25747     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25748     *)    gl_absname_cpp="$ac_cpp" ;;
25749   esac
25750
25751   case "$host_os" in
25752     mingw*)
25753                                           gl_dirsep_regex='[/\\]'
25754       ;;
25755     *)
25756       gl_dirsep_regex='\/'
25757       ;;
25758   esac
25759       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25760   gl_header_literal_regex=`echo 'wchar.h' \
25761                            | sed -e "$gl_make_literal_regex_sed"`
25762   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25763       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25764       s|^/[^/]|//&|
25765       p
25766       q
25767     }'
25768
25769         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25770   sed -n "$gl_absolute_header_sed"`
25771
25772            gl_header=$gl_cv_absolute_wchar_h
25773            gl_cv_next_wchar_h='"'$gl_header'"'
25774           else
25775                gl_cv_next_wchar_h='<'wchar.h'>'
25776              fi
25777
25778
25779 fi
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
25781 $as_echo "$gl_cv_next_wchar_h" >&6; }
25782      fi
25783      NEXT_WCHAR_H=$gl_cv_next_wchar_h
25784
25785      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25786        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25787        gl_next_as_first_directive='<'wchar.h'>'
25788      else
25789        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25790        gl_next_as_first_directive=$gl_cv_next_wchar_h
25791      fi
25792      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
25793
25794
25795
25796
25797   if test $ac_cv_header_wchar_h = yes; then
25798     HAVE_WCHAR_H=1
25799   else
25800     HAVE_WCHAR_H=0
25801   fi
25802
25803
25804
25805
25806
25807   if test $gt_cv_c_wint_t = yes; then
25808     HAVE_WINT_T=1
25809   else
25810     HAVE_WINT_T=0
25811   fi
25812
25813
25814
25815     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
25816     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25818 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25819 if eval \${$as_gl_Symbol+:} false; then :
25820   $as_echo_n "(cached) " >&6
25821 else
25822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25823 /* end confdefs.h.  */
25824
25825 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25826    <wchar.h>.
25827    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25828    included before <wchar.h>.  */
25829 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25830 # include <stddef.h>
25831 # include <stdio.h>
25832 # include <time.h>
25833 #endif
25834 #include <wchar.h>
25835
25836 int
25837 main ()
25838 {
25839 #undef $gl_func
25840   (void) $gl_func;
25841   ;
25842   return 0;
25843 }
25844 _ACEOF
25845 if ac_fn_c_try_compile "$LINENO"; then :
25846   eval "$as_gl_Symbol=yes"
25847 else
25848   eval "$as_gl_Symbol=no"
25849 fi
25850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25851 fi
25852 eval ac_res=\$$as_gl_Symbol
25853                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25854 $as_echo "$ac_res" >&6; }
25855     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25856   cat >>confdefs.h <<_ACEOF
25857 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25858 _ACEOF
25859
25860                      eval ac_cv_have_decl_$gl_func=yes
25861 fi
25862       done
25863
25864
25865
25866
25867
25868   for ac_header in stdint.h
25869 do :
25870   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
25871 if test "x$ac_cv_header_stdint_h" = xyes; then :
25872   cat >>confdefs.h <<_ACEOF
25873 #define HAVE_STDINT_H 1
25874 _ACEOF
25875
25876 fi
25877
25878 done
25879
25880
25881   # End of code from modules
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891   gltests_libdeps=
25892   gltests_ltlibdeps=
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902   gl_source_base='gl/tests'
25903   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
25904
25905   gl_module_indicator_condition=$gltests_WITNESS
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916
25917
25918      if test $gl_cv_have_include_next = yes; then
25919        gl_cv_next_fcntl_h='<'fcntl.h'>'
25920      else
25921        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
25922 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
25923 if ${gl_cv_next_fcntl_h+:} false; then :
25924   $as_echo_n "(cached) " >&6
25925 else
25926
25927
25928
25929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25930 /* end confdefs.h.  */
25931 #include <fcntl.h>
25932 _ACEOF
25933                 case "$host_os" in
25934     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25935     *)    gl_absname_cpp="$ac_cpp" ;;
25936   esac
25937
25938   case "$host_os" in
25939     mingw*)
25940                                           gl_dirsep_regex='[/\\]'
25941       ;;
25942     *)
25943       gl_dirsep_regex='\/'
25944       ;;
25945   esac
25946       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25947   gl_header_literal_regex=`echo 'fcntl.h' \
25948                            | sed -e "$gl_make_literal_regex_sed"`
25949   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25950       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25951       s|^/[^/]|//&|
25952       p
25953       q
25954     }'
25955
25956         gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25957   sed -n "$gl_absolute_header_sed"`
25958
25959            gl_header=$gl_cv_absolute_fcntl_h
25960            gl_cv_next_fcntl_h='"'$gl_header'"'
25961
25962
25963 fi
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
25965 $as_echo "$gl_cv_next_fcntl_h" >&6; }
25966      fi
25967      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
25968
25969      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25970        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25971        gl_next_as_first_directive='<'fcntl.h'>'
25972      else
25973        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25974        gl_next_as_first_directive=$gl_cv_next_fcntl_h
25975      fi
25976      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986
25987     for gl_func in fcntl openat; do
25988     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25990 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25991 if eval \${$as_gl_Symbol+:} false; then :
25992   $as_echo_n "(cached) " >&6
25993 else
25994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25995 /* end confdefs.h.  */
25996 #include <fcntl.h>
25997
25998 int
25999 main ()
26000 {
26001 #undef $gl_func
26002   (void) $gl_func;
26003   ;
26004   return 0;
26005 }
26006 _ACEOF
26007 if ac_fn_c_try_compile "$LINENO"; then :
26008   eval "$as_gl_Symbol=yes"
26009 else
26010   eval "$as_gl_Symbol=no"
26011 fi
26012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26013 fi
26014 eval ac_res=\$$as_gl_Symbol
26015                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26016 $as_echo "$ac_res" >&6; }
26017     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26018   cat >>confdefs.h <<_ACEOF
26019 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26020 _ACEOF
26021
26022                      eval ac_cv_have_decl_$gl_func=yes
26023 fi
26024       done
26025
26026
26027
26028
26029
26030   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
26031     REPLACE_FDOPEN=1
26032   else
26033         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
26034 $as_echo_n "checking whether fdopen sets errno... " >&6; }
26035 if ${gl_cv_func_fdopen_works+:} false; then :
26036   $as_echo_n "(cached) " >&6
26037 else
26038
26039         if test "$cross_compiling" = yes; then :
26040   case "$host_os" in
26041              mingw*) gl_cv_func_fdopen_works="guessing no" ;;
26042              *)      gl_cv_func_fdopen_works="guessing yes" ;;
26043            esac
26044
26045 else
26046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26047 /* end confdefs.h.  */
26048
26049 #include <stdio.h>
26050 #include <errno.h>
26051 int
26052 main (void)
26053 {
26054   FILE *fp;
26055   errno = 0;
26056   fp = fdopen (-1, "r");
26057   if (fp == NULL && errno == 0)
26058     return 1;
26059   return 0;
26060 }
26061 _ACEOF
26062 if ac_fn_c_try_run "$LINENO"; then :
26063   gl_cv_func_fdopen_works=yes
26064 else
26065   gl_cv_func_fdopen_works=no
26066 fi
26067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26068   conftest.$ac_objext conftest.beam conftest.$ac_ext
26069 fi
26070
26071
26072 fi
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
26074 $as_echo "$gl_cv_func_fdopen_works" >&6; }
26075     case "$gl_cv_func_fdopen_works" in
26076       *no) REPLACE_FDOPEN=1 ;;
26077     esac
26078   fi
26079
26080   if test $REPLACE_FDOPEN = 1; then
26081
26082
26083
26084
26085
26086
26087
26088
26089   gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext"
26090
26091
26092   fi
26093
26094
26095
26096
26097
26098     if test "$GNULIB_FDOPEN" != 1; then
26099         if test "$GNULIB_FDOPEN" = 0; then
26100       GNULIB_FDOPEN=$gl_module_indicator_condition
26101     else
26102       GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
26103     fi
26104   fi
26105
26106
26107
26108
26109
26110 $as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
26111
26112
26113
26114
26115
26116
26117
26118
26119   for ac_func in getpagesize
26120 do :
26121   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
26122 if test "x$ac_cv_func_getpagesize" = xyes; then :
26123   cat >>confdefs.h <<_ACEOF
26124 #define HAVE_GETPAGESIZE 1
26125 _ACEOF
26126
26127 fi
26128 done
26129
26130   if test $ac_cv_func_getpagesize = no; then
26131     HAVE_GETPAGESIZE=0
26132     for ac_header in OS.h
26133 do :
26134   ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
26135 if test "x$ac_cv_header_OS_h" = xyes; then :
26136   cat >>confdefs.h <<_ACEOF
26137 #define HAVE_OS_H 1
26138 _ACEOF
26139
26140 fi
26141
26142 done
26143
26144     if test $ac_cv_header_OS_h = yes; then
26145       HAVE_OS_H=1
26146     fi
26147     for ac_header in sys/param.h
26148 do :
26149   ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
26150 if test "x$ac_cv_header_sys_param_h" = xyes; then :
26151   cat >>confdefs.h <<_ACEOF
26152 #define HAVE_SYS_PARAM_H 1
26153 _ACEOF
26154
26155 fi
26156
26157 done
26158
26159     if test $ac_cv_header_sys_param_h = yes; then
26160       HAVE_SYS_PARAM_H=1
26161     fi
26162   fi
26163   case "$host_os" in
26164     mingw*)
26165       REPLACE_GETPAGESIZE=1
26166       ;;
26167   esac
26168       ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
26169 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
26170
26171 else
26172   HAVE_DECL_GETPAGESIZE=0
26173 fi
26174
26175
26176   if test $REPLACE_GETPAGESIZE = 1; then
26177
26178
26179
26180
26181
26182
26183
26184
26185   gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
26186
26187   fi
26188
26189
26190
26191
26192
26193     if test "$GNULIB_GETPAGESIZE" != 1; then
26194         if test "$GNULIB_GETPAGESIZE" = 0; then
26195       GNULIB_GETPAGESIZE=$gl_module_indicator_condition
26196     else
26197       GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
26198     fi
26199   fi
26200
26201
26202
26203
26204
26205 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
26206
26207
26208
26209
26210
26211
26212
26213
26214   PRIPTR_PREFIX=
26215   if test -n "$STDINT_H"; then
26216         PRIPTR_PREFIX='"l"'
26217   else
26218         for glpfx in '' l ll I64; do
26219       case $glpfx in
26220         '')  gltype1='int';;
26221         l)   gltype1='long int';;
26222         ll)  gltype1='long long int';;
26223         I64) gltype1='__int64';;
26224       esac
26225       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26226 /* end confdefs.h.  */
26227 #include <stdint.h>
26228            extern intptr_t foo;
26229            extern $gltype1 foo;
26230 int
26231 main ()
26232 {
26233
26234   ;
26235   return 0;
26236 }
26237 _ACEOF
26238 if ac_fn_c_try_compile "$LINENO"; then :
26239   PRIPTR_PREFIX='"'$glpfx'"'
26240 fi
26241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26242       test -n "$PRIPTR_PREFIX" && break
26243     done
26244   fi
26245
26246
26247
26248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
26249 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
26250 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
26251   $as_echo_n "(cached) " >&6
26252 else
26253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26254 /* end confdefs.h.  */
26255 /* Work also in C++ mode.  */
26256             #define __STDC_LIMIT_MACROS 1
26257
26258             /* Work if build is not clean.  */
26259             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26260
26261             #include <limits.h>
26262             #if HAVE_STDINT_H
26263              #include <stdint.h>
26264             #endif
26265
26266             #if defined INT32_MAX && defined INTMAX_MAX
26267              #define CONDITION (INT32_MAX < INTMAX_MAX)
26268             #elif HAVE_LONG_LONG_INT
26269              #define CONDITION (sizeof (int) < sizeof (long long int))
26270             #else
26271              #define CONDITION 0
26272             #endif
26273             int test[CONDITION ? 1 : -1];
26274 int
26275 main ()
26276 {
26277
26278   ;
26279   return 0;
26280 }
26281 _ACEOF
26282 if ac_fn_c_try_compile "$LINENO"; then :
26283   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
26284 else
26285   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
26286 fi
26287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26288 fi
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
26290 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
26291   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
26292     INT32_MAX_LT_INTMAX_MAX=1;
26293   else
26294     INT32_MAX_LT_INTMAX_MAX=0;
26295   fi
26296
26297
26298   if test $APPLE_UNIVERSAL_BUILD = 0; then
26299
26300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
26301 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
26302 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
26303   $as_echo_n "(cached) " >&6
26304 else
26305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26306 /* end confdefs.h.  */
26307 /* Work also in C++ mode.  */
26308             #define __STDC_LIMIT_MACROS 1
26309
26310             /* Work if build is not clean.  */
26311             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26312
26313             #include <limits.h>
26314             #if HAVE_STDINT_H
26315              #include <stdint.h>
26316             #endif
26317
26318             #if defined INT64_MAX
26319              #define CONDITION (INT64_MAX == LONG_MAX)
26320             #elif HAVE_LONG_LONG_INT
26321              #define CONDITION (sizeof (long long int) == sizeof (long int))
26322             #else
26323              #define CONDITION 0
26324             #endif
26325             int test[CONDITION ? 1 : -1];
26326 int
26327 main ()
26328 {
26329
26330   ;
26331   return 0;
26332 }
26333 _ACEOF
26334 if ac_fn_c_try_compile "$LINENO"; then :
26335   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
26336 else
26337   gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
26338 fi
26339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26340 fi
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
26342 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
26343   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
26344     INT64_MAX_EQ_LONG_MAX=1;
26345   else
26346     INT64_MAX_EQ_LONG_MAX=0;
26347   fi
26348
26349
26350   else
26351     INT64_MAX_EQ_LONG_MAX=-1
26352   fi
26353
26354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
26355 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
26356 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
26357   $as_echo_n "(cached) " >&6
26358 else
26359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26360 /* end confdefs.h.  */
26361 /* Work also in C++ mode.  */
26362             #define __STDC_LIMIT_MACROS 1
26363
26364             /* Work if build is not clean.  */
26365             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26366
26367             #include <limits.h>
26368             #if HAVE_STDINT_H
26369              #include <stdint.h>
26370             #endif
26371
26372             #if defined UINT32_MAX && defined UINTMAX_MAX
26373              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
26374             #elif HAVE_LONG_LONG_INT
26375              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
26376             #else
26377              #define CONDITION 0
26378             #endif
26379             int test[CONDITION ? 1 : -1];
26380 int
26381 main ()
26382 {
26383
26384   ;
26385   return 0;
26386 }
26387 _ACEOF
26388 if ac_fn_c_try_compile "$LINENO"; then :
26389   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
26390 else
26391   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
26392 fi
26393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26394 fi
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
26396 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
26397   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
26398     UINT32_MAX_LT_UINTMAX_MAX=1;
26399   else
26400     UINT32_MAX_LT_UINTMAX_MAX=0;
26401   fi
26402
26403
26404   if test $APPLE_UNIVERSAL_BUILD = 0; then
26405
26406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
26407 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
26408 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
26409   $as_echo_n "(cached) " >&6
26410 else
26411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26412 /* end confdefs.h.  */
26413 /* Work also in C++ mode.  */
26414             #define __STDC_LIMIT_MACROS 1
26415
26416             /* Work if build is not clean.  */
26417             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26418
26419             #include <limits.h>
26420             #if HAVE_STDINT_H
26421              #include <stdint.h>
26422             #endif
26423
26424             #if defined UINT64_MAX
26425              #define CONDITION (UINT64_MAX == ULONG_MAX)
26426             #elif HAVE_LONG_LONG_INT
26427              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
26428             #else
26429              #define CONDITION 0
26430             #endif
26431             int test[CONDITION ? 1 : -1];
26432 int
26433 main ()
26434 {
26435
26436   ;
26437   return 0;
26438 }
26439 _ACEOF
26440 if ac_fn_c_try_compile "$LINENO"; then :
26441   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
26442 else
26443   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
26444 fi
26445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26446 fi
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
26448 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
26449   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
26450     UINT64_MAX_EQ_ULONG_MAX=1;
26451   else
26452     UINT64_MAX_EQ_ULONG_MAX=0;
26453   fi
26454
26455
26456   else
26457     UINT64_MAX_EQ_ULONG_MAX=-1
26458   fi
26459
26460
26461
26462
26463
26464
26465   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
26466   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
26467   # irrelevant for anonymous mappings.
26468   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
26469 if test "x$ac_cv_func_mmap" = xyes; then :
26470   gl_have_mmap=yes
26471 else
26472   gl_have_mmap=no
26473 fi
26474
26475
26476   # Try to allow MAP_ANONYMOUS.
26477   gl_have_mmap_anonymous=no
26478   if test $gl_have_mmap = yes; then
26479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
26480 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
26481     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26482 /* end confdefs.h.  */
26483
26484 #include <sys/mman.h>
26485 #ifdef MAP_ANONYMOUS
26486     I cannot identify this map
26487 #endif
26488
26489 _ACEOF
26490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26491   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
26492   gl_have_mmap_anonymous=yes
26493 fi
26494 rm -f conftest*
26495
26496     if test $gl_have_mmap_anonymous != yes; then
26497       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26498 /* end confdefs.h.  */
26499
26500 #include <sys/mman.h>
26501 #ifdef MAP_ANON
26502     I cannot identify this map
26503 #endif
26504
26505 _ACEOF
26506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26507   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
26508
26509 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
26510
26511          gl_have_mmap_anonymous=yes
26512 fi
26513 rm -f conftest*
26514
26515     fi
26516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
26517 $as_echo "$gl_have_mmap_anonymous" >&6; }
26518     if test $gl_have_mmap_anonymous = yes; then
26519
26520 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
26521
26522     fi
26523   fi
26524
26525
26526   :
26527
26528
26529
26530
26531
26532
26533   :
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
26545   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
26546   # irrelevant for anonymous mappings.
26547   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
26548 if test "x$ac_cv_func_mmap" = xyes; then :
26549   gl_have_mmap=yes
26550 else
26551   gl_have_mmap=no
26552 fi
26553
26554
26555   # Try to allow MAP_ANONYMOUS.
26556   gl_have_mmap_anonymous=no
26557   if test $gl_have_mmap = yes; then
26558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
26559 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
26560     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26561 /* end confdefs.h.  */
26562
26563 #include <sys/mman.h>
26564 #ifdef MAP_ANONYMOUS
26565     I cannot identify this map
26566 #endif
26567
26568 _ACEOF
26569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26570   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
26571   gl_have_mmap_anonymous=yes
26572 fi
26573 rm -f conftest*
26574
26575     if test $gl_have_mmap_anonymous != yes; then
26576       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26577 /* end confdefs.h.  */
26578
26579 #include <sys/mman.h>
26580 #ifdef MAP_ANON
26581     I cannot identify this map
26582 #endif
26583
26584 _ACEOF
26585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26586   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
26587
26588 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
26589
26590          gl_have_mmap_anonymous=yes
26591 fi
26592 rm -f conftest*
26593
26594     fi
26595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
26596 $as_echo "$gl_have_mmap_anonymous" >&6; }
26597     if test $gl_have_mmap_anonymous = yes; then
26598
26599 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
26600
26601     fi
26602   fi
26603
26604
26605   :
26606
26607
26608
26609
26610
26611
26612   :
26613
26614
26615
26616
26617
26618
26619   :
26620
26621
26622
26623
26624
26625
26626   # Check whether --enable-valgrind-tests was given.
26627 if test "${enable_valgrind_tests+set}" = set; then :
26628   enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
26629 else
26630   opt_valgrind_tests=yes
26631 fi
26632
26633
26634   # Run self-tests under valgrind?
26635   if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
26636     for ac_prog in valgrind
26637 do
26638   # Extract the first word of "$ac_prog", so it can be a program name with args.
26639 set dummy $ac_prog; ac_word=$2
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26641 $as_echo_n "checking for $ac_word... " >&6; }
26642 if ${ac_cv_prog_VALGRIND+:} false; then :
26643   $as_echo_n "(cached) " >&6
26644 else
26645   if test -n "$VALGRIND"; then
26646   ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
26647 else
26648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26649 for as_dir in $PATH
26650 do
26651   IFS=$as_save_IFS
26652   test -z "$as_dir" && as_dir=.
26653     for ac_exec_ext in '' $ac_executable_extensions; do
26654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26655     ac_cv_prog_VALGRIND="$ac_prog"
26656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26657     break 2
26658   fi
26659 done
26660   done
26661 IFS=$as_save_IFS
26662
26663 fi
26664 fi
26665 VALGRIND=$ac_cv_prog_VALGRIND
26666 if test -n "$VALGRIND"; then
26667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
26668 $as_echo "$VALGRIND" >&6; }
26669 else
26670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26671 $as_echo "no" >&6; }
26672 fi
26673
26674
26675   test -n "$VALGRIND" && break
26676 done
26677
26678   fi
26679
26680   OPTS="-q --error-exitcode=1 --leak-check=full --suppressions=suppressions.valgrind"
26681
26682   if test -n "$VALGRIND" \
26683      && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
26684     opt_valgrind_tests=yes
26685     VALGRIND="$VALGRIND $OPTS"
26686   else
26687     opt_valgrind_tests=no
26688     VALGRIND=
26689   fi
26690
26691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
26692 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
26693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
26694 $as_echo "$opt_valgrind_tests" >&6; }
26695
26696   abs_aux_dir=`cd "$ac_aux_dir"; pwd`
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
26707
26708   LIBTESTS_LIBDEPS="$gltests_libdeps"
26709
26710
26711
26712   GNULIB_INET_NTOP=0;
26713   GNULIB_INET_PTON=0;
26714     HAVE_DECL_INET_NTOP=1;
26715   HAVE_DECL_INET_PTON=1;
26716   REPLACE_INET_NTOP=0;
26717   REPLACE_INET_PTON=0;
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734   :
26735
26736
26737
26738
26739
26740
26741
26742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
26743 $as_echo_n "checking if environ is properly declared... " >&6; }
26744   if ${gt_cv_var_environ_declaration+:} false; then :
26745   $as_echo_n "(cached) " >&6
26746 else
26747
26748     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26749 /* end confdefs.h.  */
26750 #if HAVE_UNISTD_H
26751      #include <unistd.h>
26752      #endif
26753      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
26754      #include <stdlib.h>
26755
26756            extern struct { int foo; } environ;
26757 int
26758 main ()
26759 {
26760 environ.foo = 1;
26761   ;
26762   return 0;
26763 }
26764 _ACEOF
26765 if ac_fn_c_try_compile "$LINENO"; then :
26766   gt_cv_var_environ_declaration=no
26767 else
26768   gt_cv_var_environ_declaration=yes
26769 fi
26770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26771 fi
26772
26773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
26774 $as_echo "$gt_cv_var_environ_declaration" >&6; }
26775   if test $gt_cv_var_environ_declaration = yes; then
26776
26777 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
26778
26779   fi
26780
26781
26782   if test $gt_cv_var_environ_declaration != yes; then
26783     HAVE_DECL_ENVIRON=0
26784   fi
26785
26786 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
26787 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
26788   ac_have_decl=1
26789 else
26790   ac_have_decl=0
26791 fi
26792
26793 cat >>confdefs.h <<_ACEOF
26794 #define HAVE_DECL_STRERROR_R $ac_have_decl
26795 _ACEOF
26796
26797 for ac_func in strerror_r
26798 do :
26799   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
26800 if test "x$ac_cv_func_strerror_r" = xyes; then :
26801   cat >>confdefs.h <<_ACEOF
26802 #define HAVE_STRERROR_R 1
26803 _ACEOF
26804
26805 fi
26806 done
26807
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
26809 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
26810 if ${ac_cv_func_strerror_r_char_p+:} false; then :
26811   $as_echo_n "(cached) " >&6
26812 else
26813
26814     ac_cv_func_strerror_r_char_p=no
26815     if test $ac_cv_have_decl_strerror_r = yes; then
26816       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26817 /* end confdefs.h.  */
26818 $ac_includes_default
26819 int
26820 main ()
26821 {
26822
26823           char buf[100];
26824           char x = *strerror_r (0, buf, sizeof buf);
26825           char *p = strerror_r (0, buf, sizeof buf);
26826           return !p || x;
26827
26828   ;
26829   return 0;
26830 }
26831 _ACEOF
26832 if ac_fn_c_try_compile "$LINENO"; then :
26833   ac_cv_func_strerror_r_char_p=yes
26834 fi
26835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26836     else
26837       # strerror_r is not declared.  Choose between
26838       # systems that have relatively inaccessible declarations for the
26839       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
26840       # former has a strerror_r that returns char*, while the latter
26841       # has a strerror_r that returns `int'.
26842       # This test should segfault on the DEC system.
26843       if test "$cross_compiling" = yes; then :
26844   :
26845 else
26846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26847 /* end confdefs.h.  */
26848 $ac_includes_default
26849         extern char *strerror_r ();
26850 int
26851 main ()
26852 {
26853 char buf[100];
26854           char x = *strerror_r (0, buf, sizeof buf);
26855           return ! isalpha (x);
26856   ;
26857   return 0;
26858 }
26859 _ACEOF
26860 if ac_fn_c_try_run "$LINENO"; then :
26861   ac_cv_func_strerror_r_char_p=yes
26862 fi
26863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26864   conftest.$ac_objext conftest.beam conftest.$ac_ext
26865 fi
26866
26867     fi
26868
26869 fi
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
26871 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
26872 if test $ac_cv_func_strerror_r_char_p = yes; then
26873
26874 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
26875
26876 fi
26877
26878
26879       ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
26880 if test "x$ac_cv_have_decl_fseeko" = xyes; then :
26881   ac_have_decl=1
26882 else
26883   ac_have_decl=0
26884 fi
26885
26886 cat >>confdefs.h <<_ACEOF
26887 #define HAVE_DECL_FSEEKO $ac_have_decl
26888 _ACEOF
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
26900 $as_echo_n "checking for fseeko... " >&6; }
26901 if ${gl_cv_func_fseeko+:} false; then :
26902   $as_echo_n "(cached) " >&6
26903 else
26904
26905       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26906 /* end confdefs.h.  */
26907 #include <stdio.h>
26908
26909 int
26910 main ()
26911 {
26912 fseeko (stdin, 0, 0);
26913   ;
26914   return 0;
26915 }
26916 _ACEOF
26917 if ac_fn_c_try_link "$LINENO"; then :
26918   gl_cv_func_fseeko=yes
26919 else
26920   gl_cv_func_fseeko=no
26921 fi
26922 rm -f core conftest.err conftest.$ac_objext \
26923     conftest$ac_exeext conftest.$ac_ext
26924
26925 fi
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
26927 $as_echo "$gl_cv_func_fseeko" >&6; }
26928
26929
26930   :
26931
26932
26933
26934
26935
26936   if test $ac_cv_have_decl_fseeko = no; then
26937     HAVE_DECL_FSEEKO=0
26938   fi
26939
26940   if test $gl_cv_func_fseeko = no; then
26941     HAVE_FSEEKO=0
26942   else
26943     if test $WINDOWS_64_BIT_OFF_T = 1; then
26944       REPLACE_FSEEKO=1
26945     fi
26946     if test $gl_cv_var_stdin_large_offset = no; then
26947       REPLACE_FSEEKO=1
26948     fi
26949
26950   fi
26951
26952
26953                   HOSTENT_LIB=
26954   gl_saved_libs="$LIBS"
26955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
26956 $as_echo_n "checking for library containing gethostbyname... " >&6; }
26957 if ${ac_cv_search_gethostbyname+:} false; then :
26958   $as_echo_n "(cached) " >&6
26959 else
26960   ac_func_search_save_LIBS=$LIBS
26961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962 /* end confdefs.h.  */
26963
26964 /* Override any GCC internal prototype to avoid an error.
26965    Use char because int might match the return type of a GCC
26966    builtin and then its argument prototype would still apply.  */
26967 #ifdef __cplusplus
26968 extern "C"
26969 #endif
26970 char gethostbyname ();
26971 int
26972 main ()
26973 {
26974 return gethostbyname ();
26975   ;
26976   return 0;
26977 }
26978 _ACEOF
26979 for ac_lib in '' nsl network net; do
26980   if test -z "$ac_lib"; then
26981     ac_res="none required"
26982   else
26983     ac_res=-l$ac_lib
26984     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26985   fi
26986   if ac_fn_c_try_link "$LINENO"; then :
26987   ac_cv_search_gethostbyname=$ac_res
26988 fi
26989 rm -f core conftest.err conftest.$ac_objext \
26990     conftest$ac_exeext
26991   if ${ac_cv_search_gethostbyname+:} false; then :
26992   break
26993 fi
26994 done
26995 if ${ac_cv_search_gethostbyname+:} false; then :
26996
26997 else
26998   ac_cv_search_gethostbyname=no
26999 fi
27000 rm conftest.$ac_ext
27001 LIBS=$ac_func_search_save_LIBS
27002 fi
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
27004 $as_echo "$ac_cv_search_gethostbyname" >&6; }
27005 ac_res=$ac_cv_search_gethostbyname
27006 if test "$ac_res" != no; then :
27007   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27008   if test "$ac_cv_search_gethostbyname" != "none required"; then
27009        HOSTENT_LIB="$ac_cv_search_gethostbyname"
27010      fi
27011 fi
27012
27013   LIBS="$gl_saved_libs"
27014   if test -z "$HOSTENT_LIB"; then
27015     for ac_func in gethostbyname
27016 do :
27017   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
27018 if test "x$ac_cv_func_gethostbyname" = xyes; then :
27019   cat >>confdefs.h <<_ACEOF
27020 #define HAVE_GETHOSTBYNAME 1
27021 _ACEOF
27022
27023 else
27024
27025       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
27026 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
27027 if ${gl_cv_w32_gethostbyname+:} false; then :
27028   $as_echo_n "(cached) " >&6
27029 else
27030   gl_cv_w32_gethostbyname=no
27031          gl_save_LIBS="$LIBS"
27032          LIBS="$LIBS -lws2_32"
27033          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27034 /* end confdefs.h.  */
27035
27036 #ifdef HAVE_WINSOCK2_H
27037 #include <winsock2.h>
27038 #endif
27039 #include <stddef.h>
27040
27041 int
27042 main ()
27043 {
27044 gethostbyname(NULL);
27045   ;
27046   return 0;
27047 }
27048 _ACEOF
27049 if ac_fn_c_try_link "$LINENO"; then :
27050   gl_cv_w32_gethostbyname=yes
27051 fi
27052 rm -f core conftest.err conftest.$ac_objext \
27053     conftest$ac_exeext conftest.$ac_ext
27054          LIBS="$gl_save_LIBS"
27055
27056 fi
27057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
27058 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
27059       if test "$gl_cv_w32_gethostbyname" = "yes"; then
27060         HOSTENT_LIB="-lws2_32"
27061       fi
27062
27063 fi
27064 done
27065
27066   fi
27067
27068
27069
27070                       SERVENT_LIB=
27071   gl_saved_libs="$LIBS"
27072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
27073 $as_echo_n "checking for library containing getservbyname... " >&6; }
27074 if ${ac_cv_search_getservbyname+:} false; then :
27075   $as_echo_n "(cached) " >&6
27076 else
27077   ac_func_search_save_LIBS=$LIBS
27078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27079 /* end confdefs.h.  */
27080
27081 /* Override any GCC internal prototype to avoid an error.
27082    Use char because int might match the return type of a GCC
27083    builtin and then its argument prototype would still apply.  */
27084 #ifdef __cplusplus
27085 extern "C"
27086 #endif
27087 char getservbyname ();
27088 int
27089 main ()
27090 {
27091 return getservbyname ();
27092   ;
27093   return 0;
27094 }
27095 _ACEOF
27096 for ac_lib in '' socket network net; do
27097   if test -z "$ac_lib"; then
27098     ac_res="none required"
27099   else
27100     ac_res=-l$ac_lib
27101     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27102   fi
27103   if ac_fn_c_try_link "$LINENO"; then :
27104   ac_cv_search_getservbyname=$ac_res
27105 fi
27106 rm -f core conftest.err conftest.$ac_objext \
27107     conftest$ac_exeext
27108   if ${ac_cv_search_getservbyname+:} false; then :
27109   break
27110 fi
27111 done
27112 if ${ac_cv_search_getservbyname+:} false; then :
27113
27114 else
27115   ac_cv_search_getservbyname=no
27116 fi
27117 rm conftest.$ac_ext
27118 LIBS=$ac_func_search_save_LIBS
27119 fi
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
27121 $as_echo "$ac_cv_search_getservbyname" >&6; }
27122 ac_res=$ac_cv_search_getservbyname
27123 if test "$ac_res" != no; then :
27124   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27125   if test "$ac_cv_search_getservbyname" != "none required"; then
27126        SERVENT_LIB="$ac_cv_search_getservbyname"
27127      fi
27128 fi
27129
27130   LIBS="$gl_saved_libs"
27131   if test -z "$SERVENT_LIB"; then
27132     for ac_func in getservbyname
27133 do :
27134   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
27135 if test "x$ac_cv_func_getservbyname" = xyes; then :
27136   cat >>confdefs.h <<_ACEOF
27137 #define HAVE_GETSERVBYNAME 1
27138 _ACEOF
27139
27140 else
27141
27142       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
27143 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
27144 if ${gl_cv_w32_getservbyname+:} false; then :
27145   $as_echo_n "(cached) " >&6
27146 else
27147   gl_cv_w32_getservbyname=no
27148          gl_save_LIBS="$LIBS"
27149          LIBS="$LIBS -lws2_32"
27150          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27151 /* end confdefs.h.  */
27152
27153 #ifdef HAVE_WINSOCK2_H
27154 #include <winsock2.h>
27155 #endif
27156 #include <stddef.h>
27157
27158 int
27159 main ()
27160 {
27161 getservbyname(NULL,NULL);
27162   ;
27163   return 0;
27164 }
27165 _ACEOF
27166 if ac_fn_c_try_link "$LINENO"; then :
27167   gl_cv_w32_getservbyname=yes
27168 fi
27169 rm -f core conftest.err conftest.$ac_objext \
27170     conftest$ac_exeext conftest.$ac_ext
27171          LIBS="$gl_save_LIBS"
27172
27173 fi
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
27175 $as_echo "$gl_cv_w32_getservbyname" >&6; }
27176       if test "$gl_cv_w32_getservbyname" = "yes"; then
27177         SERVENT_LIB="-lws2_32"
27178       fi
27179
27180 fi
27181 done
27182
27183   fi
27184
27185
27186
27187
27188
27189
27190
27191
27192
27193               HAVE_INET_NTOP=1
27194   INET_NTOP_LIB=
27195
27196
27197
27198
27199   :
27200
27201
27202
27203
27204
27205   if test $ac_cv_header_sys_socket_h != yes; then
27206                     for ac_header in winsock2.h
27207 do :
27208   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27209 if test "x$ac_cv_header_winsock2_h" = xyes; then :
27210   cat >>confdefs.h <<_ACEOF
27211 #define HAVE_WINSOCK2_H 1
27212 _ACEOF
27213
27214 fi
27215
27216 done
27217
27218   fi
27219   if test "$ac_cv_header_winsock2_h" = yes; then
27220     HAVE_WINSOCK2_H=1
27221     UNISTD_H_HAVE_WINSOCK2_H=1
27222     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27223   else
27224     HAVE_WINSOCK2_H=0
27225   fi
27226
27227
27228   if test $HAVE_WINSOCK2_H = 1; then
27229     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
27230 "
27231 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
27232   ac_have_decl=1
27233 else
27234   ac_have_decl=0
27235 fi
27236
27237 cat >>confdefs.h <<_ACEOF
27238 #define HAVE_DECL_INET_NTOP $ac_have_decl
27239 _ACEOF
27240
27241     if test $ac_cv_have_decl_inet_ntop = yes; then
27242                   REPLACE_INET_NTOP=1
27243       INET_NTOP_LIB="-lws2_32"
27244     else
27245       HAVE_DECL_INET_NTOP=0
27246       HAVE_INET_NTOP=0
27247     fi
27248   else
27249     gl_save_LIBS=$LIBS
27250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
27251 $as_echo_n "checking for library containing inet_ntop... " >&6; }
27252 if ${ac_cv_search_inet_ntop+:} false; then :
27253   $as_echo_n "(cached) " >&6
27254 else
27255   ac_func_search_save_LIBS=$LIBS
27256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27257 /* end confdefs.h.  */
27258
27259 /* Override any GCC internal prototype to avoid an error.
27260    Use char because int might match the return type of a GCC
27261    builtin and then its argument prototype would still apply.  */
27262 #ifdef __cplusplus
27263 extern "C"
27264 #endif
27265 char inet_ntop ();
27266 int
27267 main ()
27268 {
27269 return inet_ntop ();
27270   ;
27271   return 0;
27272 }
27273 _ACEOF
27274 for ac_lib in '' nsl resolv; do
27275   if test -z "$ac_lib"; then
27276     ac_res="none required"
27277   else
27278     ac_res=-l$ac_lib
27279     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27280   fi
27281   if ac_fn_c_try_link "$LINENO"; then :
27282   ac_cv_search_inet_ntop=$ac_res
27283 fi
27284 rm -f core conftest.err conftest.$ac_objext \
27285     conftest$ac_exeext
27286   if ${ac_cv_search_inet_ntop+:} false; then :
27287   break
27288 fi
27289 done
27290 if ${ac_cv_search_inet_ntop+:} false; then :
27291
27292 else
27293   ac_cv_search_inet_ntop=no
27294 fi
27295 rm conftest.$ac_ext
27296 LIBS=$ac_func_search_save_LIBS
27297 fi
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
27299 $as_echo "$ac_cv_search_inet_ntop" >&6; }
27300 ac_res=$ac_cv_search_inet_ntop
27301 if test "$ac_res" != no; then :
27302   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27303
27304 else
27305   for ac_func in inet_ntop
27306 do :
27307   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27308 if test "x$ac_cv_func_inet_ntop" = xyes; then :
27309   cat >>confdefs.h <<_ACEOF
27310 #define HAVE_INET_NTOP 1
27311 _ACEOF
27312
27313 fi
27314 done
27315
27316        if test $ac_cv_func_inet_ntop = no; then
27317          HAVE_INET_NTOP=0
27318        fi
27319
27320 fi
27321
27322     LIBS=$gl_save_LIBS
27323
27324     if test "$ac_cv_search_inet_ntop" != "no" \
27325        && test "$ac_cv_search_inet_ntop" != "none required"; then
27326       INET_NTOP_LIB="$ac_cv_search_inet_ntop"
27327     fi
27328
27329
27330   :
27331
27332
27333
27334
27335
27336     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
27337         #if HAVE_NETDB_H
27338         # include <netdb.h>
27339         #endif
27340
27341 "
27342 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
27343   ac_have_decl=1
27344 else
27345   ac_have_decl=0
27346 fi
27347
27348 cat >>confdefs.h <<_ACEOF
27349 #define HAVE_DECL_INET_NTOP $ac_have_decl
27350 _ACEOF
27351
27352     if test $ac_cv_have_decl_inet_ntop = no; then
27353       HAVE_DECL_INET_NTOP=0
27354     fi
27355   fi
27356
27357
27358
27359
27360
27361   :
27362
27363
27364
27365
27366
27367
27368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
27369 $as_echo_n "checking for IPv4 sockets... " >&6; }
27370   if ${gl_cv_socket_ipv4+:} false; then :
27371   $as_echo_n "(cached) " >&6
27372 else
27373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27374 /* end confdefs.h.  */
27375 #include <sys/types.h>
27376 #ifdef HAVE_SYS_SOCKET_H
27377 #include <sys/socket.h>
27378 #endif
27379 #ifdef HAVE_NETINET_IN_H
27380 #include <netinet/in.h>
27381 #endif
27382 #ifdef HAVE_WINSOCK2_H
27383 #include <winsock2.h>
27384 #endif
27385 int
27386 main ()
27387 {
27388 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
27389  if (&x && &y && &z) return 0;
27390   ;
27391   return 0;
27392 }
27393 _ACEOF
27394 if ac_fn_c_try_compile "$LINENO"; then :
27395   gl_cv_socket_ipv4=yes
27396 else
27397   gl_cv_socket_ipv4=no
27398 fi
27399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27400 fi
27401
27402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
27403 $as_echo "$gl_cv_socket_ipv4" >&6; }
27404   if test $gl_cv_socket_ipv4 = yes; then
27405
27406 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
27407
27408   fi
27409
27410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
27411 $as_echo_n "checking for IPv6 sockets... " >&6; }
27412   if ${gl_cv_socket_ipv6+:} false; then :
27413   $as_echo_n "(cached) " >&6
27414 else
27415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27416 /* end confdefs.h.  */
27417 #include <sys/types.h>
27418 #ifdef HAVE_SYS_SOCKET_H
27419 #include <sys/socket.h>
27420 #endif
27421 #ifdef HAVE_NETINET_IN_H
27422 #include <netinet/in.h>
27423 #endif
27424 #ifdef HAVE_WINSOCK2_H
27425 #include <winsock2.h>
27426 #endif
27427 #ifdef HAVE_WS2TCPIP_H
27428 #include <ws2tcpip.h>
27429 #endif
27430 int
27431 main ()
27432 {
27433 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
27434  if (&x && &y && &z) return 0;
27435   ;
27436   return 0;
27437 }
27438 _ACEOF
27439 if ac_fn_c_try_compile "$LINENO"; then :
27440   gl_cv_socket_ipv6=yes
27441 else
27442   gl_cv_socket_ipv6=no
27443 fi
27444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27445 fi
27446
27447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
27448 $as_echo "$gl_cv_socket_ipv6" >&6; }
27449   if test $gl_cv_socket_ipv6 = yes; then
27450
27451 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
27452
27453   fi
27454
27455
27456       ac_fn_c_check_decl "$LINENO" "getpass" "ac_cv_have_decl_getpass" "$ac_includes_default"
27457 if test "x$ac_cv_have_decl_getpass" = xyes; then :
27458   ac_have_decl=1
27459 else
27460   ac_have_decl=0
27461 fi
27462
27463 cat >>confdefs.h <<_ACEOF
27464 #define HAVE_DECL_GETPASS $ac_have_decl
27465 _ACEOF
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
27490
27491
27492
27493
27494       ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
27495 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
27496   ac_have_decl=1
27497 else
27498   ac_have_decl=0
27499 fi
27500
27501 cat >>confdefs.h <<_ACEOF
27502 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
27503 _ACEOF
27504
27505
27506
27507       ac_fn_c_check_decl "$LINENO" "flockfile" "ac_cv_have_decl_flockfile" "$ac_includes_default"
27508 if test "x$ac_cv_have_decl_flockfile" = xyes; then :
27509   ac_have_decl=1
27510 else
27511   ac_have_decl=0
27512 fi
27513
27514 cat >>confdefs.h <<_ACEOF
27515 #define HAVE_DECL_FLOCKFILE $ac_have_decl
27516 _ACEOF
27517
27518
27519
27520       ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
27521 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
27522   ac_have_decl=1
27523 else
27524   ac_have_decl=0
27525 fi
27526
27527 cat >>confdefs.h <<_ACEOF
27528 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
27529 _ACEOF
27530
27531
27532
27533       ac_fn_c_check_decl "$LINENO" "funlockfile" "ac_cv_have_decl_funlockfile" "$ac_includes_default"
27534 if test "x$ac_cv_have_decl_funlockfile" = xyes; then :
27535   ac_have_decl=1
27536 else
27537   ac_have_decl=0
27538 fi
27539
27540 cat >>confdefs.h <<_ACEOF
27541 #define HAVE_DECL_FUNLOCKFILE $ac_have_decl
27542 _ACEOF
27543
27544
27545
27546       ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
27547 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
27548   ac_have_decl=1
27549 else
27550   ac_have_decl=0
27551 fi
27552
27553 cat >>confdefs.h <<_ACEOF
27554 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
27555 _ACEOF
27556
27557
27558 :
27559
27560
27561
27562
27563
27564
27565
27566       for ac_header in stdlib.h
27567 do :
27568   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
27569 if test "x$ac_cv_header_stdlib_h" = xyes; then :
27570   cat >>confdefs.h <<_ACEOF
27571 #define HAVE_STDLIB_H 1
27572 _ACEOF
27573
27574 fi
27575
27576 done
27577
27578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
27579 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
27580 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
27581   $as_echo_n "(cached) " >&6
27582 else
27583   if test "$cross_compiling" = yes; then :
27584   case "$host_os" in
27585           # Guess yes on platforms where we know the result.
27586           *-gnu* | freebsd* | netbsd* | openbsd* \
27587           | hpux* | solaris* | cygwin* | mingw*)
27588             ac_cv_func_malloc_0_nonnull=yes ;;
27589           # If we don't know, assume the worst.
27590           *) ac_cv_func_malloc_0_nonnull=no ;;
27591         esac
27592
27593 else
27594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27595 /* end confdefs.h.  */
27596 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
27597             # include <stdlib.h>
27598             #else
27599             char *malloc ();
27600             #endif
27601
27602 int
27603 main ()
27604 {
27605 return ! malloc (0);
27606   ;
27607   return 0;
27608 }
27609
27610 _ACEOF
27611 if ac_fn_c_try_run "$LINENO"; then :
27612   ac_cv_func_malloc_0_nonnull=yes
27613 else
27614   ac_cv_func_malloc_0_nonnull=no
27615 fi
27616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27617   conftest.$ac_objext conftest.beam conftest.$ac_ext
27618 fi
27619
27620
27621 fi
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
27623 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
27624   if test $ac_cv_func_malloc_0_nonnull = yes; then :
27625   gl_cv_func_malloc_0_nonnull=1
27626 else
27627   gl_cv_func_malloc_0_nonnull=0
27628 fi
27629
27630
27631 cat >>confdefs.h <<_ACEOF
27632 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
27633 _ACEOF
27634
27635
27636
27637       ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
27638 if test "x$ac_cv_have_decl_alarm" = xyes; then :
27639   ac_have_decl=1
27640 else
27641   ac_have_decl=0
27642 fi
27643
27644 cat >>confdefs.h <<_ACEOF
27645 #define HAVE_DECL_ALARM $ac_have_decl
27646 _ACEOF
27647
27648
27649
27650   # parse-datetime.y works with bison only.
27651   : ${YACC='bison -y'}
27652
27653
27654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compound literals" >&5
27655 $as_echo_n "checking for compound literals... " >&6; }
27656 if ${gl_cv_compound_literals+:} false; then :
27657   $as_echo_n "(cached) " >&6
27658 else
27659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27660 /* end confdefs.h.  */
27661 struct s { int i, j; };
27662 int
27663 main ()
27664 {
27665 struct s t = (struct s) { 3, 4 };
27666         if (t.i != 0) return 0;
27667   ;
27668   return 0;
27669 }
27670 _ACEOF
27671 if ac_fn_c_try_compile "$LINENO"; then :
27672   gl_cv_compound_literals=yes
27673 else
27674   gl_cv_compound_literals=no
27675 fi
27676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27677 fi
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compound_literals" >&5
27679 $as_echo "$gl_cv_compound_literals" >&6; }
27680   if test $gl_cv_compound_literals = yes; then
27681
27682 $as_echo "#define HAVE_COMPOUND_LITERALS 1" >>confdefs.h
27683
27684   fi
27685
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27687 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27688 if ${ac_cv_struct_tm+:} false; then :
27689   $as_echo_n "(cached) " >&6
27690 else
27691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27692 /* end confdefs.h.  */
27693 #include <sys/types.h>
27694 #include <time.h>
27695
27696 int
27697 main ()
27698 {
27699 struct tm tm;
27700                                      int *p = &tm.tm_sec;
27701                                      return !p;
27702   ;
27703   return 0;
27704 }
27705 _ACEOF
27706 if ac_fn_c_try_compile "$LINENO"; then :
27707   ac_cv_struct_tm=time.h
27708 else
27709   ac_cv_struct_tm=sys/time.h
27710 fi
27711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27712 fi
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27714 $as_echo "$ac_cv_struct_tm" >&6; }
27715 if test $ac_cv_struct_tm = sys/time.h; then
27716
27717 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27718
27719 fi
27720
27721
27722  ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
27723 "
27724 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
27725
27726 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
27727
27728 fi
27729
27730
27731
27732   GNULIB_PSELECT=0;
27733   GNULIB_SELECT=0;
27734     HAVE_PSELECT=1;
27735   REPLACE_PSELECT=0;
27736   REPLACE_SELECT=0;
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
27747 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
27748 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
27749   $as_echo_n "(cached) " >&6
27750 else
27751
27752                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27753 /* end confdefs.h.  */
27754 #include <sys/select.h>
27755 int
27756 main ()
27757 {
27758 struct timeval b;
27759   ;
27760   return 0;
27761 }
27762 _ACEOF
27763 if ac_fn_c_try_compile "$LINENO"; then :
27764   gl_cv_header_sys_select_h_selfcontained=yes
27765 else
27766   gl_cv_header_sys_select_h_selfcontained=no
27767 fi
27768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27769                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
27770         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27771 /* end confdefs.h.  */
27772 #include <sys/select.h>
27773 int
27774 main ()
27775 {
27776 int memset; int bzero;
27777   ;
27778   return 0;
27779 }
27780
27781 _ACEOF
27782 if ac_fn_c_try_compile "$LINENO"; then :
27783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27784 /* end confdefs.h.  */
27785 #include <sys/select.h>
27786 int
27787 main ()
27788 {
27789
27790                   #undef memset
27791                   #define memset nonexistent_memset
27792                   extern
27793                   #ifdef __cplusplus
27794                   "C"
27795                   #endif
27796                   void *memset (void *, int, unsigned long);
27797                   #undef bzero
27798                   #define bzero nonexistent_bzero
27799                   extern
27800                   #ifdef __cplusplus
27801                   "C"
27802                   #endif
27803                   void bzero (void *, unsigned long);
27804                   fd_set fds;
27805                   FD_ZERO (&fds);
27806
27807   ;
27808   return 0;
27809 }
27810
27811 _ACEOF
27812 if ac_fn_c_try_link "$LINENO"; then :
27813
27814 else
27815   gl_cv_header_sys_select_h_selfcontained=no
27816 fi
27817 rm -f core conftest.err conftest.$ac_objext \
27818     conftest$ac_exeext conftest.$ac_ext
27819
27820 fi
27821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27822       fi
27823
27824 fi
27825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
27826 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
27827
27828
27829
27830
27831
27832
27833   :
27834
27835
27836
27837
27838
27839
27840
27841
27842      if test $gl_cv_have_include_next = yes; then
27843        gl_cv_next_sys_select_h='<'sys/select.h'>'
27844      else
27845        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
27846 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
27847 if ${gl_cv_next_sys_select_h+:} false; then :
27848   $as_echo_n "(cached) " >&6
27849 else
27850
27851              if test $ac_cv_header_sys_select_h = yes; then
27852
27853
27854
27855
27856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27857 /* end confdefs.h.  */
27858 #include <sys/select.h>
27859 _ACEOF
27860                 case "$host_os" in
27861     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27862     *)    gl_absname_cpp="$ac_cpp" ;;
27863   esac
27864
27865   case "$host_os" in
27866     mingw*)
27867                                           gl_dirsep_regex='[/\\]'
27868       ;;
27869     *)
27870       gl_dirsep_regex='\/'
27871       ;;
27872   esac
27873       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27874   gl_header_literal_regex=`echo 'sys/select.h' \
27875                            | sed -e "$gl_make_literal_regex_sed"`
27876   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27877       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27878       s|^/[^/]|//&|
27879       p
27880       q
27881     }'
27882
27883         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27884   sed -n "$gl_absolute_header_sed"`
27885
27886            gl_header=$gl_cv_absolute_sys_select_h
27887            gl_cv_next_sys_select_h='"'$gl_header'"'
27888           else
27889                gl_cv_next_sys_select_h='<'sys/select.h'>'
27890              fi
27891
27892
27893 fi
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
27895 $as_echo "$gl_cv_next_sys_select_h" >&6; }
27896      fi
27897      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
27898
27899      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27900        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27901        gl_next_as_first_directive='<'sys/select.h'>'
27902      else
27903        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27904        gl_next_as_first_directive=$gl_cv_next_sys_select_h
27905      fi
27906      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
27907
27908
27909
27910
27911   if test $ac_cv_header_sys_select_h = yes; then
27912     HAVE_SYS_SELECT_H=1
27913   else
27914     HAVE_SYS_SELECT_H=0
27915   fi
27916
27917
27918
27919
27920
27921   :
27922
27923
27924
27925
27926
27927   if test $ac_cv_header_sys_socket_h != yes; then
27928                     for ac_header in winsock2.h
27929 do :
27930   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27931 if test "x$ac_cv_header_winsock2_h" = xyes; then :
27932   cat >>confdefs.h <<_ACEOF
27933 #define HAVE_WINSOCK2_H 1
27934 _ACEOF
27935
27936 fi
27937
27938 done
27939
27940   fi
27941   if test "$ac_cv_header_winsock2_h" = yes; then
27942     HAVE_WINSOCK2_H=1
27943     UNISTD_H_HAVE_WINSOCK2_H=1
27944     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27945   else
27946     HAVE_WINSOCK2_H=0
27947   fi
27948
27949
27950
27951
27952     for gl_func in pselect select; do
27953     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27955 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27956 if eval \${$as_gl_Symbol+:} false; then :
27957   $as_echo_n "(cached) " >&6
27958 else
27959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27960 /* end confdefs.h.  */
27961
27962 /* Some systems require prerequisite headers.  */
27963 #include <sys/types.h>
27964 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
27965 # include <sys/time.h>
27966 #endif
27967 #include <sys/select.h>
27968
27969 int
27970 main ()
27971 {
27972 #undef $gl_func
27973   (void) $gl_func;
27974   ;
27975   return 0;
27976 }
27977 _ACEOF
27978 if ac_fn_c_try_compile "$LINENO"; then :
27979   eval "$as_gl_Symbol=yes"
27980 else
27981   eval "$as_gl_Symbol=no"
27982 fi
27983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27984 fi
27985 eval ac_res=\$$as_gl_Symbol
27986                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27987 $as_echo "$ac_res" >&6; }
27988     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27989   cat >>confdefs.h <<_ACEOF
27990 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27991 _ACEOF
27992
27993                      eval ac_cv_have_decl_$gl_func=yes
27994 fi
27995       done
27996
27997
27998
27999       ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
28000 if test "x$ac_cv_have_decl_setenv" = xyes; then :
28001   ac_have_decl=1
28002 else
28003   ac_have_decl=0
28004 fi
28005
28006 cat >>confdefs.h <<_ACEOF
28007 #define HAVE_DECL_SETENV $ac_have_decl
28008 _ACEOF
28009
28010
28011
28012
28013
28014
28015
28016
28017
28018
28019   :
28020
28021
28022
28023
28024
28025   if test $ac_cv_have_decl_setenv = no; then
28026     HAVE_DECL_SETENV=0
28027   fi
28028
28029   :
28030
28031
28032
28033
28034
28035
28036
28037
28038
28039   :
28040
28041
28042
28043
28044
28045   for ac_header in search.h
28046 do :
28047   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
28048 if test "x$ac_cv_header_search_h" = xyes; then :
28049   cat >>confdefs.h <<_ACEOF
28050 #define HAVE_SEARCH_H 1
28051 _ACEOF
28052
28053 fi
28054
28055 done
28056
28057   for ac_func in tsearch
28058 do :
28059   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
28060 if test "x$ac_cv_func_tsearch" = xyes; then :
28061   cat >>confdefs.h <<_ACEOF
28062 #define HAVE_TSEARCH 1
28063 _ACEOF
28064
28065 fi
28066 done
28067
28068
28069
28070
28071   GNULIB_PTHREAD_SIGMASK=0;
28072   GNULIB_RAISE=0;
28073   GNULIB_SIGNAL_H_SIGPIPE=0;
28074   GNULIB_SIGPROCMASK=0;
28075   GNULIB_SIGACTION=0;
28076     HAVE_POSIX_SIGNALBLOCKING=1;
28077   HAVE_PTHREAD_SIGMASK=1;
28078   HAVE_RAISE=1;
28079   HAVE_SIGSET_T=1;
28080   HAVE_SIGINFO_T=1;
28081   HAVE_SIGACTION=1;
28082   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
28083
28084   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
28085
28086   HAVE_SIGHANDLER_T=1;
28087   REPLACE_PTHREAD_SIGMASK=0;
28088   REPLACE_RAISE=0;
28089
28090
28091   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
28092       #include <signal.h>
28093       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
28094       #include <sys/types.h>
28095
28096 "
28097 if test "x$ac_cv_type_sigset_t" = xyes; then :
28098
28099 cat >>confdefs.h <<_ACEOF
28100 #define HAVE_SIGSET_T 1
28101 _ACEOF
28102
28103 gl_cv_type_sigset_t=yes
28104 else
28105   gl_cv_type_sigset_t=no
28106 fi
28107
28108   if test $gl_cv_type_sigset_t != yes; then
28109     HAVE_SIGSET_T=0
28110   fi
28111
28112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
28113 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
28114 if ${ac_cv_type_uid_t+:} false; then :
28115   $as_echo_n "(cached) " >&6
28116 else
28117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28118 /* end confdefs.h.  */
28119 #include <sys/types.h>
28120
28121 _ACEOF
28122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28123   $EGREP "uid_t" >/dev/null 2>&1; then :
28124   ac_cv_type_uid_t=yes
28125 else
28126   ac_cv_type_uid_t=no
28127 fi
28128 rm -f conftest*
28129
28130 fi
28131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
28132 $as_echo "$ac_cv_type_uid_t" >&6; }
28133 if test $ac_cv_type_uid_t = no; then
28134
28135 $as_echo "#define uid_t int" >>confdefs.h
28136
28137
28138 $as_echo "#define gid_t int" >>confdefs.h
28139
28140 fi
28141
28142
28143
28144
28145
28146
28147
28148       ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
28149 if test "x$ac_cv_have_decl_strdup" = xyes; then :
28150   ac_have_decl=1
28151 else
28152   ac_have_decl=0
28153 fi
28154
28155 cat >>confdefs.h <<_ACEOF
28156 #define HAVE_DECL_STRDUP $ac_have_decl
28157 _ACEOF
28158
28159
28160
28161      REPLACE_STRERROR_0=0
28162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
28163 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
28164 if ${gl_cv_func_strerror_0_works+:} false; then :
28165   $as_echo_n "(cached) " >&6
28166 else
28167   if test "$cross_compiling" = yes; then :
28168   case "$host_os" in
28169                  # Guess yes on glibc systems.
28170          *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
28171                  # If we don't know, assume the worst.
28172          *)      gl_cv_func_strerror_0_works="guessing no" ;;
28173        esac
28174
28175 else
28176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28177 /* end confdefs.h.  */
28178 #include <string.h>
28179            #include <errno.h>
28180
28181 int
28182 main ()
28183 {
28184 int result = 0;
28185            char *str;
28186            errno = 0;
28187            str = strerror (0);
28188            if (!*str) result |= 1;
28189            if (errno) result |= 2;
28190            if (strstr (str, "nknown") || strstr (str, "ndefined"))
28191              result |= 4;
28192            return result;
28193   ;
28194   return 0;
28195 }
28196 _ACEOF
28197 if ac_fn_c_try_run "$LINENO"; then :
28198   gl_cv_func_strerror_0_works=yes
28199 else
28200   gl_cv_func_strerror_0_works=no
28201 fi
28202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28203   conftest.$ac_objext conftest.beam conftest.$ac_ext
28204 fi
28205
28206
28207 fi
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
28209 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
28210   case "$gl_cv_func_strerror_0_works" in
28211     *yes) ;;
28212     *)
28213       REPLACE_STRERROR_0=1
28214
28215 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
28216
28217       ;;
28218   esac
28219
28220
28221       ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
28222 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
28223   ac_have_decl=1
28224 else
28225   ac_have_decl=0
28226 fi
28227
28228 cat >>confdefs.h <<_ACEOF
28229 #define HAVE_DECL_UNSETENV $ac_have_decl
28230 _ACEOF
28231
28232
28233
28234    if true; then
28235   GL_COND_LIBTOOL_TRUE=
28236   GL_COND_LIBTOOL_FALSE='#'
28237 else
28238   GL_COND_LIBTOOL_TRUE='#'
28239   GL_COND_LIBTOOL_FALSE=
28240 fi
28241
28242   gl_cond_libtool=true
28243   gl_m4_base='src/gl/m4'
28244
28245
28246
28247
28248
28249
28250
28251
28252
28253   gl_source_base='src/gl'
28254
28255   if test "$ac_cv_header_winsock2_h" = yes; then
28256
28257
28258
28259
28260
28261
28262
28263
28264   ggl_LIBOBJS="$ggl_LIBOBJS accept.$ac_objext"
28265
28266   fi
28267
28268
28269
28270
28271
28272           GNULIB_ACCEPT=1
28273
28274
28275
28276
28277
28278 $as_echo "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h
28279
28280
28281
28282 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
28283
28284
28285
28286   if test $ac_cv_func_alloca_works = no; then
28287     :
28288   fi
28289
28290   # Define an additional variable used in the Makefile substitution.
28291   if test $ac_cv_working_alloca_h = yes; then
28292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
28293 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
28294 if ${gl_cv_rpl_alloca+:} false; then :
28295   $as_echo_n "(cached) " >&6
28296 else
28297
28298       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28299 /* end confdefs.h.  */
28300
28301 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
28302         Need own alloca
28303 #endif
28304
28305 _ACEOF
28306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28307   $EGREP "Need own alloca" >/dev/null 2>&1; then :
28308   gl_cv_rpl_alloca=yes
28309 else
28310   gl_cv_rpl_alloca=no
28311 fi
28312 rm -f conftest*
28313
28314
28315 fi
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
28317 $as_echo "$gl_cv_rpl_alloca" >&6; }
28318     if test $gl_cv_rpl_alloca = yes; then
28319
28320 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28321
28322       ALLOCA_H=alloca.h
28323     else
28324                   ALLOCA_H=
28325     fi
28326   else
28327     ALLOCA_H=alloca.h
28328   fi
28329
28330    if test -n "$ALLOCA_H"; then
28331   GL_GENERATE_ALLOCA_H_TRUE=
28332   GL_GENERATE_ALLOCA_H_FALSE='#'
28333 else
28334   GL_GENERATE_ALLOCA_H_TRUE='#'
28335   GL_GENERATE_ALLOCA_H_FALSE=
28336 fi
28337
28338
28339
28340
28341
28342
28343   :
28344
28345
28346
28347
28348
28349   if test $ac_cv_header_arpa_inet_h = yes; then
28350     HAVE_ARPA_INET_H=1
28351   else
28352     HAVE_ARPA_INET_H=0
28353   fi
28354
28355
28356
28357
28358
28359
28360
28361   :
28362
28363
28364
28365
28366
28367
28368
28369
28370      if test $gl_cv_have_include_next = yes; then
28371        gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
28372      else
28373        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
28374 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
28375 if ${gl_cv_next_arpa_inet_h+:} false; then :
28376   $as_echo_n "(cached) " >&6
28377 else
28378
28379              if test $ac_cv_header_arpa_inet_h = yes; then
28380
28381
28382
28383
28384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28385 /* end confdefs.h.  */
28386 #include <arpa/inet.h>
28387 _ACEOF
28388                 case "$host_os" in
28389     aix*) gl_absname_cpp="$ac_cpp -C" ;;
28390     *)    gl_absname_cpp="$ac_cpp" ;;
28391   esac
28392
28393   case "$host_os" in
28394     mingw*)
28395                                           gl_dirsep_regex='[/\\]'
28396       ;;
28397     *)
28398       gl_dirsep_regex='\/'
28399       ;;
28400   esac
28401       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28402   gl_header_literal_regex=`echo 'arpa/inet.h' \
28403                            | sed -e "$gl_make_literal_regex_sed"`
28404   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28405       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28406       s|^/[^/]|//&|
28407       p
28408       q
28409     }'
28410
28411         gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28412   sed -n "$gl_absolute_header_sed"`
28413
28414            gl_header=$gl_cv_absolute_arpa_inet_h
28415            gl_cv_next_arpa_inet_h='"'$gl_header'"'
28416           else
28417                gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
28418              fi
28419
28420
28421 fi
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
28423 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
28424      fi
28425      NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
28426
28427      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28428        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28429        gl_next_as_first_directive='<'arpa/inet.h'>'
28430      else
28431        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28432        gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
28433      fi
28434      NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
28435
28436
28437
28438
28439
28440
28441
28442
28443     for gl_func in inet_ntop inet_pton; do
28444     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
28445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
28446 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
28447 if eval \${$as_gl_Symbol+:} false; then :
28448   $as_echo_n "(cached) " >&6
28449 else
28450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28451 /* end confdefs.h.  */
28452
28453 /* On some systems, this header is not self-consistent.  */
28454 #if !(defined __GLIBC__ || defined __UCLIBC__)
28455 # include <sys/socket.h>
28456 #endif
28457 #ifdef __TANDEM
28458 # include <netdb.h>
28459 #endif
28460 #include <arpa/inet.h>
28461
28462 int
28463 main ()
28464 {
28465 #undef $gl_func
28466   (void) $gl_func;
28467   ;
28468   return 0;
28469 }
28470 _ACEOF
28471 if ac_fn_c_try_compile "$LINENO"; then :
28472   eval "$as_gl_Symbol=yes"
28473 else
28474   eval "$as_gl_Symbol=no"
28475 fi
28476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28477 fi
28478 eval ac_res=\$$as_gl_Symbol
28479                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28480 $as_echo "$ac_res" >&6; }
28481     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
28482   cat >>confdefs.h <<_ACEOF
28483 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
28484 _ACEOF
28485
28486                      eval ac_cv_have_decl_$gl_func=yes
28487 fi
28488       done
28489
28490
28491
28492
28493   if test "$ac_cv_header_winsock2_h" = yes; then
28494
28495
28496
28497
28498
28499
28500
28501
28502   ggl_LIBOBJS="$ggl_LIBOBJS bind.$ac_objext"
28503
28504   fi
28505
28506
28507
28508
28509
28510           GNULIB_BIND=1
28511
28512
28513
28514
28515
28516 $as_echo "#define GNULIB_TEST_BIND 1" >>confdefs.h
28517
28518
28519
28520
28521
28522
28523   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
28524   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
28525
28526   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
28527   # programs in the package would end up linked with that potentially-shared
28528   # library, inducing unnecessary run-time overhead.
28529   LIB_CLOCK_GETTIME=
28530
28531   gl_saved_libs=$LIBS
28532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
28533 $as_echo_n "checking for library containing clock_gettime... " >&6; }
28534 if ${ac_cv_search_clock_gettime+:} false; then :
28535   $as_echo_n "(cached) " >&6
28536 else
28537   ac_func_search_save_LIBS=$LIBS
28538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28539 /* end confdefs.h.  */
28540
28541 /* Override any GCC internal prototype to avoid an error.
28542    Use char because int might match the return type of a GCC
28543    builtin and then its argument prototype would still apply.  */
28544 #ifdef __cplusplus
28545 extern "C"
28546 #endif
28547 char clock_gettime ();
28548 int
28549 main ()
28550 {
28551 return clock_gettime ();
28552   ;
28553   return 0;
28554 }
28555 _ACEOF
28556 for ac_lib in '' rt posix4; do
28557   if test -z "$ac_lib"; then
28558     ac_res="none required"
28559   else
28560     ac_res=-l$ac_lib
28561     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28562   fi
28563   if ac_fn_c_try_link "$LINENO"; then :
28564   ac_cv_search_clock_gettime=$ac_res
28565 fi
28566 rm -f core conftest.err conftest.$ac_objext \
28567     conftest$ac_exeext
28568   if ${ac_cv_search_clock_gettime+:} false; then :
28569   break
28570 fi
28571 done
28572 if ${ac_cv_search_clock_gettime+:} false; then :
28573
28574 else
28575   ac_cv_search_clock_gettime=no
28576 fi
28577 rm conftest.$ac_ext
28578 LIBS=$ac_func_search_save_LIBS
28579 fi
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
28581 $as_echo "$ac_cv_search_clock_gettime" >&6; }
28582 ac_res=$ac_cv_search_clock_gettime
28583 if test "$ac_res" != no; then :
28584   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28585   test "$ac_cv_search_clock_gettime" = "none required" ||
28586                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
28587 fi
28588
28589     for ac_func in clock_gettime clock_settime
28590 do :
28591   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28592 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28593 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28594   cat >>confdefs.h <<_ACEOF
28595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28596 _ACEOF
28597
28598 fi
28599 done
28600
28601   LIBS=$gl_saved_libs
28602
28603
28604
28605
28606   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
28607     REPLACE_CLOSE=1
28608   fi
28609
28610
28611
28612
28613
28614   :
28615
28616
28617
28618
28619
28620   if test $ac_cv_header_sys_socket_h != yes; then
28621                     for ac_header in winsock2.h
28622 do :
28623   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
28624 if test "x$ac_cv_header_winsock2_h" = xyes; then :
28625   cat >>confdefs.h <<_ACEOF
28626 #define HAVE_WINSOCK2_H 1
28627 _ACEOF
28628
28629 fi
28630
28631 done
28632
28633   fi
28634   if test "$ac_cv_header_winsock2_h" = yes; then
28635     HAVE_WINSOCK2_H=1
28636     UNISTD_H_HAVE_WINSOCK2_H=1
28637     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
28638   else
28639     HAVE_WINSOCK2_H=0
28640   fi
28641
28642
28643     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
28644                         REPLACE_CLOSE=1
28645     fi
28646
28647
28648
28649   if test $REPLACE_CLOSE = 1; then
28650
28651
28652
28653
28654
28655
28656
28657
28658   ggl_LIBOBJS="$ggl_LIBOBJS close.$ac_objext"
28659
28660   fi
28661
28662
28663
28664
28665
28666           GNULIB_CLOSE=1
28667
28668
28669
28670
28671
28672 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
28673
28674
28675
28676
28677   if test "$ac_cv_header_winsock2_h" = yes; then
28678
28679
28680
28681
28682
28683
28684
28685
28686   ggl_LIBOBJS="$ggl_LIBOBJS connect.$ac_objext"
28687
28688   fi
28689
28690
28691
28692
28693
28694           GNULIB_CONNECT=1
28695
28696
28697
28698
28699
28700 $as_echo "#define GNULIB_TEST_CONNECT 1" >>confdefs.h
28701
28702
28703
28704
28705
28706
28707
28708   :
28709
28710
28711
28712
28713
28714
28715
28716 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
28717
28718
28719   if test $HAVE_DUP2 = 1; then
28720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
28721 $as_echo_n "checking whether dup2 works... " >&6; }
28722 if ${gl_cv_func_dup2_works+:} false; then :
28723   $as_echo_n "(cached) " >&6
28724 else
28725   if test "$cross_compiling" = yes; then :
28726   case "$host_os" in
28727            mingw*) # on this platform, dup2 always returns 0 for success
28728              gl_cv_func_dup2_works="guessing no" ;;
28729            cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
28730              gl_cv_func_dup2_works="guessing no" ;;
28731            linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
28732                    # closed fd may yield -EBADF instead of -1 / errno=EBADF.
28733              gl_cv_func_dup2_works="guessing no" ;;
28734            aix* | freebsd*)
28735                    # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
28736                    # not EBADF.
28737              gl_cv_func_dup2_works="guessing no" ;;
28738            haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
28739              gl_cv_func_dup2_works="guessing no" ;;
28740            *) gl_cv_func_dup2_works="guessing yes" ;;
28741          esac
28742 else
28743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28744 /* end confdefs.h.  */
28745
28746          #include <unistd.h>
28747 #include <fcntl.h>
28748 #include <errno.h>
28749 int
28750 main ()
28751 {
28752 int result = 0;
28753 #ifdef HAVE_GETDTABLESIZE
28754             int bad_fd = getdtablesize ();
28755 #else
28756             int bad_fd = 1000000;
28757 #endif
28758 #ifdef FD_CLOEXEC
28759             if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
28760               result |= 1;
28761 #endif
28762             if (dup2 (1, 1) == 0)
28763               result |= 2;
28764 #ifdef FD_CLOEXEC
28765             if (fcntl (1, F_GETFD) != FD_CLOEXEC)
28766               result |= 4;
28767 #endif
28768             close (0);
28769             if (dup2 (0, 0) != -1)
28770               result |= 8;
28771             /* Many gnulib modules require POSIX conformance of EBADF.  */
28772             if (dup2 (2, bad_fd) == -1 && errno != EBADF)
28773               result |= 16;
28774             /* Flush out some cygwin core dumps.  */
28775             if (dup2 (2, -1) != -1 || errno != EBADF)
28776               result |= 32;
28777             dup2 (2, 255);
28778             dup2 (2, 256);
28779             return result;
28780
28781   ;
28782   return 0;
28783 }
28784
28785 _ACEOF
28786 if ac_fn_c_try_run "$LINENO"; then :
28787   gl_cv_func_dup2_works=yes
28788 else
28789   gl_cv_func_dup2_works=no
28790 fi
28791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28792   conftest.$ac_objext conftest.beam conftest.$ac_ext
28793 fi
28794
28795
28796 fi
28797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
28798 $as_echo "$gl_cv_func_dup2_works" >&6; }
28799     case "$gl_cv_func_dup2_works" in
28800       *yes) ;;
28801       *)
28802         REPLACE_DUP2=1
28803         for ac_func in setdtablesize
28804 do :
28805   ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
28806 if test "x$ac_cv_func_setdtablesize" = xyes; then :
28807   cat >>confdefs.h <<_ACEOF
28808 #define HAVE_SETDTABLESIZE 1
28809 _ACEOF
28810
28811 fi
28812 done
28813
28814         ;;
28815     esac
28816   fi
28817
28818
28819   if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
28820
28821
28822
28823
28824
28825
28826
28827
28828   ggl_LIBOBJS="$ggl_LIBOBJS dup2.$ac_objext"
28829
28830
28831   fi
28832
28833
28834
28835
28836
28837           GNULIB_DUP2=1
28838
28839
28840
28841
28842
28843 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
28844
28845
28846
28847
28848
28849
28850
28851
28852
28853           GNULIB_ENVIRON=1
28854
28855
28856
28857
28858
28859 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
28860
28861
28862
28863
28864
28865       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
28866 $as_echo_n "checking for error_at_line... " >&6; }
28867 if ${ac_cv_lib_error_at_line+:} false; then :
28868   $as_echo_n "(cached) " >&6
28869 else
28870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28871 /* end confdefs.h.  */
28872 #include <error.h>
28873 int
28874 main ()
28875 {
28876 error_at_line (0, 0, "", 0, "an error occurred");
28877   ;
28878   return 0;
28879 }
28880 _ACEOF
28881 if ac_fn_c_try_link "$LINENO"; then :
28882   ac_cv_lib_error_at_line=yes
28883 else
28884   ac_cv_lib_error_at_line=no
28885 fi
28886 rm -f core conftest.err conftest.$ac_objext \
28887     conftest$ac_exeext conftest.$ac_ext
28888 fi
28889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
28890 $as_echo "$ac_cv_lib_error_at_line" >&6; }
28891
28892   if test $ac_cv_lib_error_at_line = no; then
28893
28894
28895
28896
28897
28898
28899
28900
28901   ggl_LIBOBJS="$ggl_LIBOBJS error.$ac_objext"
28902
28903
28904
28905   :
28906
28907   fi
28908
28909
28910   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
28911
28912
28913
28914   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
28915
28916
28917
28918
28919
28920   FLOAT_H=
28921   REPLACE_FLOAT_LDBL=0
28922   case "$host_os" in
28923     aix* | beos* | openbsd* | mirbsd* | irix*)
28924       FLOAT_H=float.h
28925       ;;
28926     freebsd*)
28927       case "$host_cpu" in
28928         i[34567]86 )
28929           FLOAT_H=float.h
28930           ;;
28931         x86_64 )
28932           # On x86_64 systems, the C compiler may still be generating
28933           # 32-bit code.
28934           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28935 /* end confdefs.h.  */
28936 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
28937              yes
28938              #endif
28939 _ACEOF
28940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28941   $EGREP "yes" >/dev/null 2>&1; then :
28942
28943 else
28944   FLOAT_H=float.h
28945 fi
28946 rm -f conftest*
28947
28948           ;;
28949       esac
28950       ;;
28951     linux*)
28952       case "$host_cpu" in
28953         powerpc*)
28954           FLOAT_H=float.h
28955           ;;
28956       esac
28957       ;;
28958   esac
28959   case "$host_os" in
28960     aix* | freebsd* | linux*)
28961       if test -n "$FLOAT_H"; then
28962         REPLACE_FLOAT_LDBL=1
28963       fi
28964       ;;
28965   esac
28966
28967     REPLACE_ITOLD=0
28968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
28969 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
28970 if ${gl_cv_func_itold_works+:} false; then :
28971   $as_echo_n "(cached) " >&6
28972 else
28973
28974       if test "$cross_compiling" = yes; then :
28975   case "$host" in
28976            sparc*-*-linux*)
28977              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28978 /* end confdefs.h.  */
28979 #if defined __LP64__ || defined __arch64__
28980                 yes
28981                 #endif
28982 _ACEOF
28983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28984   $EGREP "yes" >/dev/null 2>&1; then :
28985   gl_cv_func_itold_works="guessing no"
28986 else
28987   gl_cv_func_itold_works="guessing yes"
28988 fi
28989 rm -f conftest*
28990
28991              ;;
28992            *) gl_cv_func_itold_works="guessing yes" ;;
28993          esac
28994
28995 else
28996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28997 /* end confdefs.h.  */
28998
28999 int i = -1;
29000 volatile long double ld;
29001 int main ()
29002 {
29003   ld += i * 1.0L;
29004   if (ld > 0)
29005     return 1;
29006   return 0;
29007 }
29008 _ACEOF
29009 if ac_fn_c_try_run "$LINENO"; then :
29010   gl_cv_func_itold_works=yes
29011 else
29012   gl_cv_func_itold_works=no
29013 fi
29014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29015   conftest.$ac_objext conftest.beam conftest.$ac_ext
29016 fi
29017
29018
29019 fi
29020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
29021 $as_echo "$gl_cv_func_itold_works" >&6; }
29022   case "$gl_cv_func_itold_works" in
29023     *no)
29024       REPLACE_ITOLD=1
29025                   FLOAT_H=float.h
29026       ;;
29027   esac
29028
29029   if test -n "$FLOAT_H"; then
29030
29031
29032
29033
29034
29035
29036
29037
29038      if test $gl_cv_have_include_next = yes; then
29039        gl_cv_next_float_h='<'float.h'>'
29040      else
29041        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
29042 $as_echo_n "checking absolute name of <float.h>... " >&6; }
29043 if ${gl_cv_next_float_h+:} false; then :
29044   $as_echo_n "(cached) " >&6
29045 else
29046
29047
29048
29049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29050 /* end confdefs.h.  */
29051 #include <float.h>
29052 _ACEOF
29053                 case "$host_os" in
29054     aix*) gl_absname_cpp="$ac_cpp -C" ;;
29055     *)    gl_absname_cpp="$ac_cpp" ;;
29056   esac
29057
29058   case "$host_os" in
29059     mingw*)
29060                                           gl_dirsep_regex='[/\\]'
29061       ;;
29062     *)
29063       gl_dirsep_regex='\/'
29064       ;;
29065   esac
29066       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29067   gl_header_literal_regex=`echo 'float.h' \
29068                            | sed -e "$gl_make_literal_regex_sed"`
29069   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29070       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29071       s|^/[^/]|//&|
29072       p
29073       q
29074     }'
29075
29076         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29077   sed -n "$gl_absolute_header_sed"`
29078
29079            gl_header=$gl_cv_absolute_float_h
29080            gl_cv_next_float_h='"'$gl_header'"'
29081
29082
29083 fi
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
29085 $as_echo "$gl_cv_next_float_h" >&6; }
29086      fi
29087      NEXT_FLOAT_H=$gl_cv_next_float_h
29088
29089      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29090        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29091        gl_next_as_first_directive='<'float.h'>'
29092      else
29093        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29094        gl_next_as_first_directive=$gl_cv_next_float_h
29095      fi
29096      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
29097
29098
29099
29100
29101   fi
29102
29103    if test -n "$FLOAT_H"; then
29104   GL_GENERATE_FLOAT_H_TRUE=
29105   GL_GENERATE_FLOAT_H_FALSE='#'
29106 else
29107   GL_GENERATE_FLOAT_H_TRUE='#'
29108   GL_GENERATE_FLOAT_H_FALSE=
29109 fi
29110
29111
29112
29113   if test $REPLACE_FLOAT_LDBL = 1; then
29114
29115
29116
29117
29118
29119
29120
29121
29122   ggl_LIBOBJS="$ggl_LIBOBJS float.$ac_objext"
29123
29124   fi
29125   if test $REPLACE_ITOLD = 1; then
29126
29127
29128
29129
29130
29131
29132
29133
29134   ggl_LIBOBJS="$ggl_LIBOBJS itold.$ac_objext"
29135
29136   fi
29137
29138
29139
29140     if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
29141     REPLACE_FSEEK=1
29142   fi
29143
29144   if test $REPLACE_FSEEK = 1; then
29145
29146
29147
29148
29149
29150
29151
29152
29153   ggl_LIBOBJS="$ggl_LIBOBJS fseek.$ac_objext"
29154
29155   fi
29156
29157
29158
29159
29160
29161           GNULIB_FSEEK=1
29162
29163
29164
29165
29166
29167 $as_echo "#define GNULIB_TEST_FSEEK 1" >>confdefs.h
29168
29169
29170
29171
29172
29173
29174
29175
29176
29177
29178
29179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
29180 $as_echo_n "checking for fseeko... " >&6; }
29181 if ${gl_cv_func_fseeko+:} false; then :
29182   $as_echo_n "(cached) " >&6
29183 else
29184
29185       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29186 /* end confdefs.h.  */
29187 #include <stdio.h>
29188
29189 int
29190 main ()
29191 {
29192 fseeko (stdin, 0, 0);
29193   ;
29194   return 0;
29195 }
29196 _ACEOF
29197 if ac_fn_c_try_link "$LINENO"; then :
29198   gl_cv_func_fseeko=yes
29199 else
29200   gl_cv_func_fseeko=no
29201 fi
29202 rm -f core conftest.err conftest.$ac_objext \
29203     conftest$ac_exeext conftest.$ac_ext
29204
29205 fi
29206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
29207 $as_echo "$gl_cv_func_fseeko" >&6; }
29208
29209
29210   :
29211
29212
29213
29214
29215
29216   if test $ac_cv_have_decl_fseeko = no; then
29217     HAVE_DECL_FSEEKO=0
29218   fi
29219
29220   if test $gl_cv_func_fseeko = no; then
29221     HAVE_FSEEKO=0
29222   else
29223     if test $WINDOWS_64_BIT_OFF_T = 1; then
29224       REPLACE_FSEEKO=1
29225     fi
29226     if test $gl_cv_var_stdin_large_offset = no; then
29227       REPLACE_FSEEKO=1
29228     fi
29229
29230   fi
29231
29232   if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
29233
29234
29235
29236
29237
29238
29239
29240
29241   ggl_LIBOBJS="$ggl_LIBOBJS fseeko.$ac_objext"
29242
29243
29244       for ac_func in _fseeki64
29245 do :
29246   ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
29247 if test "x$ac_cv_func__fseeki64" = xyes; then :
29248   cat >>confdefs.h <<_ACEOF
29249 #define HAVE__FSEEKI64 1
29250 _ACEOF
29251
29252 fi
29253 done
29254
29255
29256   fi
29257
29258
29259
29260
29261
29262           GNULIB_FSEEKO=1
29263
29264
29265
29266
29267
29268 $as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
29269
29270
29271
29272
29273
29274
29275
29276   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
29277     REPLACE_FSTAT=1
29278   fi
29279
29280
29281   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
29282     REPLACE_FSTAT=1
29283   fi
29284
29285
29286
29287   if test $REPLACE_FSTAT = 1; then
29288
29289
29290
29291
29292
29293
29294
29295
29296   ggl_LIBOBJS="$ggl_LIBOBJS fstat.$ac_objext"
29297
29298     :
29299   fi
29300
29301
29302
29303
29304
29305           GNULIB_FSTAT=1
29306
29307
29308
29309
29310
29311 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
29312
29313
29314
29315
29316
29317
29318     if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
29319     REPLACE_FTELL=1
29320   fi
29321
29322   if test $REPLACE_FTELL = 1; then
29323
29324
29325
29326
29327
29328
29329
29330
29331   ggl_LIBOBJS="$ggl_LIBOBJS ftell.$ac_objext"
29332
29333   fi
29334
29335
29336
29337
29338
29339           GNULIB_FTELL=1
29340
29341
29342
29343
29344
29345 $as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
29346
29347
29348
29349
29350
29351
29352
29353
29354
29355
29356
29357
29358   :
29359
29360
29361
29362
29363
29364   if test $ac_cv_have_decl_ftello = no; then
29365     HAVE_DECL_FTELLO=0
29366   fi
29367
29368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
29369 $as_echo_n "checking for ftello... " >&6; }
29370 if ${gl_cv_func_ftello+:} false; then :
29371   $as_echo_n "(cached) " >&6
29372 else
29373
29374       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29375 /* end confdefs.h.  */
29376 #include <stdio.h>
29377 int
29378 main ()
29379 {
29380 ftello (stdin);
29381   ;
29382   return 0;
29383 }
29384 _ACEOF
29385 if ac_fn_c_try_link "$LINENO"; then :
29386   gl_cv_func_ftello=yes
29387 else
29388   gl_cv_func_ftello=no
29389 fi
29390 rm -f core conftest.err conftest.$ac_objext \
29391     conftest$ac_exeext conftest.$ac_ext
29392
29393 fi
29394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
29395 $as_echo "$gl_cv_func_ftello" >&6; }
29396   if test $gl_cv_func_ftello = no; then
29397     HAVE_FTELLO=0
29398   else
29399     if test $WINDOWS_64_BIT_OFF_T = 1; then
29400       REPLACE_FTELLO=1
29401     fi
29402     if test $gl_cv_var_stdin_large_offset = no; then
29403       REPLACE_FTELLO=1
29404     fi
29405     if test $REPLACE_FTELLO = 0; then
29406
29407       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
29408 $as_echo_n "checking whether ftello works... " >&6; }
29409 if ${gl_cv_func_ftello_works+:} false; then :
29410   $as_echo_n "(cached) " >&6
29411 else
29412
29413                               case "$host_os" in
29414                       # Guess no on Solaris.
29415             solaris*) gl_cv_func_ftello_works="guessing no" ;;
29416                       # Guess yes otherwise.
29417             *)        gl_cv_func_ftello_works="guessing yes" ;;
29418           esac
29419           if test "$cross_compiling" = yes; then :
29420   :
29421 else
29422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29423 /* end confdefs.h.  */
29424
29425 #include <stdio.h>
29426 #include <stdlib.h>
29427 #include <string.h>
29428 #define TESTFILE "conftest.tmp"
29429 int
29430 main (void)
29431 {
29432   FILE *fp;
29433
29434   /* Create a file with some contents.  */
29435   fp = fopen (TESTFILE, "w");
29436   if (fp == NULL)
29437     return 70;
29438   if (fwrite ("foogarsh", 1, 8, fp) < 8)
29439     return 71;
29440   if (fclose (fp))
29441     return 72;
29442
29443   /* The file's contents is now "foogarsh".  */
29444
29445   /* Try writing after reading to EOF.  */
29446   fp = fopen (TESTFILE, "r+");
29447   if (fp == NULL)
29448     return 73;
29449   if (fseek (fp, -1, SEEK_END))
29450     return 74;
29451   if (!(getc (fp) == 'h'))
29452     return 1;
29453   if (!(getc (fp) == EOF))
29454     return 2;
29455   if (!(ftell (fp) == 8))
29456     return 3;
29457   if (!(ftell (fp) == 8))
29458     return 4;
29459   if (!(putc ('!', fp) == '!'))
29460     return 5;
29461   if (!(ftell (fp) == 9))
29462     return 6;
29463   if (!(fclose (fp) == 0))
29464     return 7;
29465   fp = fopen (TESTFILE, "r");
29466   if (fp == NULL)
29467     return 75;
29468   {
29469     char buf[10];
29470     if (!(fread (buf, 1, 10, fp) == 9))
29471       return 10;
29472     if (!(memcmp (buf, "foogarsh!", 9) == 0))
29473       return 11;
29474   }
29475   if (!(fclose (fp) == 0))
29476     return 12;
29477
29478   /* The file's contents is now "foogarsh!".  */
29479
29480   return 0;
29481 }
29482 _ACEOF
29483 if ac_fn_c_try_run "$LINENO"; then :
29484   gl_cv_func_ftello_works=yes
29485 else
29486   gl_cv_func_ftello_works=no
29487 fi
29488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29489   conftest.$ac_objext conftest.beam conftest.$ac_ext
29490 fi
29491
29492
29493 fi
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
29495 $as_echo "$gl_cv_func_ftello_works" >&6; }
29496       case "$gl_cv_func_ftello_works" in
29497         *yes) ;;
29498         *)
29499           REPLACE_FTELLO=1
29500
29501 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
29502
29503           ;;
29504       esac
29505     fi
29506   fi
29507
29508   if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
29509
29510
29511
29512
29513
29514
29515
29516
29517   ggl_LIBOBJS="$ggl_LIBOBJS ftello.$ac_objext"
29518
29519
29520       for ac_func in _ftelli64
29521 do :
29522   ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
29523 if test "x$ac_cv_func__ftelli64" = xyes; then :
29524   cat >>confdefs.h <<_ACEOF
29525 #define HAVE__FTELLI64 1
29526 _ACEOF
29527
29528 fi
29529 done
29530
29531
29532   fi
29533
29534
29535
29536
29537
29538           GNULIB_FTELLO=1
29539
29540
29541
29542
29543
29544 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
29545
29546
29547
29548
29549       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
29550 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
29551   GETADDRINFO_LIB=
29552   gai_saved_LIBS="$LIBS"
29553
29554               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
29555 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
29556 if ${ac_cv_search_getaddrinfo+:} false; then :
29557   $as_echo_n "(cached) " >&6
29558 else
29559   ac_func_search_save_LIBS=$LIBS
29560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29561 /* end confdefs.h.  */
29562
29563 /* Override any GCC internal prototype to avoid an error.
29564    Use char because int might match the return type of a GCC
29565    builtin and then its argument prototype would still apply.  */
29566 #ifdef __cplusplus
29567 extern "C"
29568 #endif
29569 char getaddrinfo ();
29570 int
29571 main ()
29572 {
29573 return getaddrinfo ();
29574   ;
29575   return 0;
29576 }
29577 _ACEOF
29578 for ac_lib in '' socket network net; do
29579   if test -z "$ac_lib"; then
29580     ac_res="none required"
29581   else
29582     ac_res=-l$ac_lib
29583     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29584   fi
29585   if ac_fn_c_try_link "$LINENO"; then :
29586   ac_cv_search_getaddrinfo=$ac_res
29587 fi
29588 rm -f core conftest.err conftest.$ac_objext \
29589     conftest$ac_exeext
29590   if ${ac_cv_search_getaddrinfo+:} false; then :
29591   break
29592 fi
29593 done
29594 if ${ac_cv_search_getaddrinfo+:} false; then :
29595
29596 else
29597   ac_cv_search_getaddrinfo=no
29598 fi
29599 rm conftest.$ac_ext
29600 LIBS=$ac_func_search_save_LIBS
29601 fi
29602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
29603 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
29604 ac_res=$ac_cv_search_getaddrinfo
29605 if test "$ac_res" != no; then :
29606   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29607   if test "$ac_cv_search_getaddrinfo" != "none required"; then
29608        GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
29609      fi
29610 fi
29611
29612   LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
29613
29614   HAVE_GETADDRINFO=1
29615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
29616 $as_echo_n "checking for getaddrinfo... " >&6; }
29617 if ${gl_cv_func_getaddrinfo+:} false; then :
29618   $as_echo_n "(cached) " >&6
29619 else
29620
29621     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29622 /* end confdefs.h.  */
29623
29624 #include <sys/types.h>
29625 #ifdef HAVE_SYS_SOCKET_H
29626 #include <sys/socket.h>
29627 #endif
29628 #ifdef HAVE_NETDB_H
29629 #include <netdb.h>
29630 #endif
29631 #include <stddef.h>
29632
29633 int
29634 main ()
29635 {
29636 getaddrinfo("", "", NULL, NULL);
29637   ;
29638   return 0;
29639 }
29640 _ACEOF
29641 if ac_fn_c_try_link "$LINENO"; then :
29642   gl_cv_func_getaddrinfo=yes
29643 else
29644   gl_cv_func_getaddrinfo=no
29645 fi
29646 rm -f core conftest.err conftest.$ac_objext \
29647     conftest$ac_exeext conftest.$ac_ext
29648 fi
29649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5
29650 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
29651   if test $gl_cv_func_getaddrinfo = no; then
29652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
29653 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
29654 if ${gl_cv_w32_getaddrinfo+:} false; then :
29655   $as_echo_n "(cached) " >&6
29656 else
29657
29658       gl_cv_w32_getaddrinfo=no
29659       am_save_LIBS="$LIBS"
29660       LIBS="$LIBS -lws2_32"
29661       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29662 /* end confdefs.h.  */
29663
29664 #ifdef HAVE_WS2TCPIP_H
29665 #include <ws2tcpip.h>
29666 #endif
29667 #include <stddef.h>
29668
29669 int
29670 main ()
29671 {
29672 getaddrinfo(NULL, NULL, NULL, NULL);
29673   ;
29674   return 0;
29675 }
29676 _ACEOF
29677 if ac_fn_c_try_link "$LINENO"; then :
29678   gl_cv_w32_getaddrinfo=yes
29679 fi
29680 rm -f core conftest.err conftest.$ac_objext \
29681     conftest$ac_exeext conftest.$ac_ext
29682       LIBS="$am_save_LIBS"
29683
29684 fi
29685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5
29686 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
29687     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
29688       GETADDRINFO_LIB="-lws2_32"
29689       LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
29690     else
29691       HAVE_GETADDRINFO=0
29692     fi
29693   fi
29694
29695   # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
29696   # inline function declared in ws2tcpip.h, so we need to get that
29697   # header included somehow.
29698   ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" "
29699 #include <sys/types.h>
29700 #ifdef HAVE_SYS_SOCKET_H
29701 #include <sys/socket.h>
29702 #endif
29703 #ifdef HAVE_NETDB_H
29704 #include <netdb.h>
29705 #endif
29706 #ifdef HAVE_WS2TCPIP_H
29707 #include <ws2tcpip.h>
29708 #endif
29709 #include <stddef.h>
29710
29711 "
29712 if test "x$ac_cv_have_decl_gai_strerror" = xyes; then :
29713   ac_have_decl=1
29714 else
29715   ac_have_decl=0
29716 fi
29717
29718 cat >>confdefs.h <<_ACEOF
29719 #define HAVE_DECL_GAI_STRERROR $ac_have_decl
29720 _ACEOF
29721
29722   if test $ac_cv_have_decl_gai_strerror = yes; then
29723     ac_fn_c_check_decl "$LINENO" "gai_strerrorA" "ac_cv_have_decl_gai_strerrorA" "
29724 #include <sys/types.h>
29725 #ifdef HAVE_SYS_SOCKET_H
29726 #include <sys/socket.h>
29727 #endif
29728 #ifdef HAVE_NETDB_H
29729 #include <netdb.h>
29730 #endif
29731 #ifdef HAVE_WS2TCPIP_H
29732 #include <ws2tcpip.h>
29733 #endif
29734 #include <stddef.h>
29735
29736 "
29737 if test "x$ac_cv_have_decl_gai_strerrorA" = xyes; then :
29738   ac_have_decl=1
29739 else
29740   ac_have_decl=0
29741 fi
29742
29743 cat >>confdefs.h <<_ACEOF
29744 #define HAVE_DECL_GAI_STRERRORA $ac_have_decl
29745 _ACEOF
29746
29747         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror with POSIX signature" >&5
29748 $as_echo_n "checking for gai_strerror with POSIX signature... " >&6; }
29749 if ${gl_cv_func_gai_strerror_posix_signature+:} false; then :
29750   $as_echo_n "(cached) " >&6
29751 else
29752
29753       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29754 /* end confdefs.h.  */
29755
29756 #include <sys/types.h>
29757 #ifdef HAVE_SYS_SOCKET_H
29758 #include <sys/socket.h>
29759 #endif
29760 #ifdef HAVE_NETDB_H
29761 #include <netdb.h>
29762 #endif
29763 #ifdef HAVE_WS2TCPIP_H
29764 #include <ws2tcpip.h>
29765 #endif
29766 #include <stddef.h>
29767 extern
29768 #ifdef __cplusplus
29769 "C"
29770 #endif
29771 const char *gai_strerror(int);
29772 _ACEOF
29773 if ac_fn_c_try_compile "$LINENO"; then :
29774   gl_cv_func_gai_strerror_posix_signature=yes
29775 else
29776   gl_cv_func_gai_strerror_posix_signature=no
29777 fi
29778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29779 fi
29780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror_posix_signature" >&5
29781 $as_echo "$gl_cv_func_gai_strerror_posix_signature" >&6; }
29782     if test $gl_cv_func_gai_strerror_posix_signature = no; then
29783       REPLACE_GAI_STRERROR=1
29784     fi
29785   fi
29786
29787   LIBS="$gai_saved_LIBS"
29788
29789
29790
29791
29792
29793
29794
29795
29796       ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
29797 #include <sys/types.h>
29798 #include <sys/socket.h>
29799
29800 "
29801 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
29802
29803 cat >>confdefs.h <<_ACEOF
29804 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
29805 _ACEOF
29806
29807
29808 fi
29809
29810
29811
29812   :
29813
29814
29815
29816
29817
29818
29819   ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
29820   /* sys/types.h is not needed according to POSIX, but the
29821      sys/socket.h in i386-unknown-freebsd4.10 and
29822      powerpc-apple-darwin5.5 required it. */
29823 #include <sys/types.h>
29824 #ifdef HAVE_SYS_SOCKET_H
29825 #include <sys/socket.h>
29826 #endif
29827 #ifdef HAVE_NETDB_H
29828 #include <netdb.h>
29829 #endif
29830 #ifdef HAVE_WS2TCPIP_H
29831 #include <ws2tcpip.h>
29832 #endif
29833
29834 "
29835 if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
29836   ac_have_decl=1
29837 else
29838   ac_have_decl=0
29839 fi
29840
29841 cat >>confdefs.h <<_ACEOF
29842 #define HAVE_DECL_GETADDRINFO $ac_have_decl
29843 _ACEOF
29844 ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" "
29845   /* sys/types.h is not needed according to POSIX, but the
29846      sys/socket.h in i386-unknown-freebsd4.10 and
29847      powerpc-apple-darwin5.5 required it. */
29848 #include <sys/types.h>
29849 #ifdef HAVE_SYS_SOCKET_H
29850 #include <sys/socket.h>
29851 #endif
29852 #ifdef HAVE_NETDB_H
29853 #include <netdb.h>
29854 #endif
29855 #ifdef HAVE_WS2TCPIP_H
29856 #include <ws2tcpip.h>
29857 #endif
29858
29859 "
29860 if test "x$ac_cv_have_decl_freeaddrinfo" = xyes; then :
29861   ac_have_decl=1
29862 else
29863   ac_have_decl=0
29864 fi
29865
29866 cat >>confdefs.h <<_ACEOF
29867 #define HAVE_DECL_FREEADDRINFO $ac_have_decl
29868 _ACEOF
29869 ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "
29870   /* sys/types.h is not needed according to POSIX, but the
29871      sys/socket.h in i386-unknown-freebsd4.10 and
29872      powerpc-apple-darwin5.5 required it. */
29873 #include <sys/types.h>
29874 #ifdef HAVE_SYS_SOCKET_H
29875 #include <sys/socket.h>
29876 #endif
29877 #ifdef HAVE_NETDB_H
29878 #include <netdb.h>
29879 #endif
29880 #ifdef HAVE_WS2TCPIP_H
29881 #include <ws2tcpip.h>
29882 #endif
29883
29884 "
29885 if test "x$ac_cv_have_decl_getnameinfo" = xyes; then :
29886   ac_have_decl=1
29887 else
29888   ac_have_decl=0
29889 fi
29890
29891 cat >>confdefs.h <<_ACEOF
29892 #define HAVE_DECL_GETNAMEINFO $ac_have_decl
29893 _ACEOF
29894
29895   if test $ac_cv_have_decl_getaddrinfo = no; then
29896     HAVE_DECL_GETADDRINFO=0
29897   fi
29898   if test $ac_cv_have_decl_freeaddrinfo = no; then
29899     HAVE_DECL_FREEADDRINFO=0
29900   fi
29901   if test $ac_cv_have_decl_gai_strerror = no; then
29902     HAVE_DECL_GAI_STRERROR=0
29903   fi
29904   if test $ac_cv_have_decl_getnameinfo = no; then
29905     HAVE_DECL_GETNAMEINFO=0
29906   fi
29907
29908   ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
29909 #include <sys/types.h>
29910 #ifdef HAVE_SYS_SOCKET_H
29911 #include <sys/socket.h>
29912 #endif
29913 #ifdef HAVE_NETDB_H
29914 #include <netdb.h>
29915 #endif
29916 #ifdef HAVE_WS2TCPIP_H
29917 #include <ws2tcpip.h>
29918 #endif
29919
29920 "
29921 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
29922
29923 cat >>confdefs.h <<_ACEOF
29924 #define HAVE_STRUCT_ADDRINFO 1
29925 _ACEOF
29926
29927
29928 fi
29929
29930   if test $ac_cv_type_struct_addrinfo = no; then
29931     HAVE_STRUCT_ADDRINFO=0
29932   fi
29933
29934     case " $GETADDRINFO_LIB " in
29935     *" $HOSTENT_LIB "*) ;;
29936     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
29937   esac
29938
29939     case " $GETADDRINFO_LIB " in
29940     *" $SERVENT_LIB "*) ;;
29941     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
29942   esac
29943
29944     case " $GETADDRINFO_LIB " in
29945     *" $INET_NTOP_LIB "*) ;;
29946     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
29947   esac
29948
29949
29950
29951
29952   if test $HAVE_GETADDRINFO = 0; then
29953
29954
29955
29956
29957
29958
29959
29960
29961   ggl_LIBOBJS="$ggl_LIBOBJS getaddrinfo.$ac_objext"
29962
29963   fi
29964   if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
29965
29966
29967
29968
29969
29970
29971
29972
29973   ggl_LIBOBJS="$ggl_LIBOBJS gai_strerror.$ac_objext"
29974
29975   fi
29976
29977
29978
29979
29980
29981           GNULIB_GETADDRINFO=1
29982
29983
29984
29985
29986
29987 $as_echo "#define GNULIB_TEST_GETADDRINFO 1" >>confdefs.h
29988
29989
29990
29991
29992
29993
29994
29995
29996
29997   :
29998
29999
30000
30001
30002
30003
30004
30005   :
30006
30007
30008
30009
30010
30011   if test $ac_cv_func_getdelim = yes; then
30012     HAVE_GETDELIM=1
30013         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
30014 $as_echo_n "checking for working getdelim function... " >&6; }
30015 if ${gl_cv_func_working_getdelim+:} false; then :
30016   $as_echo_n "(cached) " >&6
30017 else
30018   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
30019     if test "$cross_compiling" = yes; then :
30020         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30021 /* end confdefs.h.  */
30022
30023 #include <features.h>
30024 #ifdef __GNU_LIBRARY__
30025  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
30026   Lucky GNU user
30027  #endif
30028 #endif
30029
30030 _ACEOF
30031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30032   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
30033   gl_cv_func_working_getdelim="guessing yes"
30034 else
30035   gl_cv_func_working_getdelim="guessing no"
30036 fi
30037 rm -f conftest*
30038
30039
30040 else
30041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30042 /* end confdefs.h.  */
30043
30044 #    include <stdio.h>
30045 #    include <stdlib.h>
30046 #    include <string.h>
30047     int main ()
30048     {
30049       FILE *in = fopen ("./conftest.data", "r");
30050       if (!in)
30051         return 1;
30052       {
30053         /* Test result for a NULL buffer and a zero size.
30054            Based on a test program from Karl Heuer.  */
30055         char *line = NULL;
30056         size_t siz = 0;
30057         int len = getdelim (&line, &siz, '\n', in);
30058         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
30059           return 2;
30060       }
30061       {
30062         /* Test result for a NULL buffer and a non-zero size.
30063            This crashes on FreeBSD 8.0.  */
30064         char *line = NULL;
30065         size_t siz = (size_t)(~0) / 4;
30066         if (getdelim (&line, &siz, '\n', in) == -1)
30067           return 3;
30068       }
30069       return 0;
30070     }
30071
30072 _ACEOF
30073 if ac_fn_c_try_run "$LINENO"; then :
30074   gl_cv_func_working_getdelim=yes
30075 else
30076   gl_cv_func_working_getdelim=no
30077 fi
30078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30079   conftest.$ac_objext conftest.beam conftest.$ac_ext
30080 fi
30081
30082 fi
30083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
30084 $as_echo "$gl_cv_func_working_getdelim" >&6; }
30085     case "$gl_cv_func_working_getdelim" in
30086       *no)
30087         REPLACE_GETDELIM=1
30088         ;;
30089     esac
30090   else
30091     HAVE_GETDELIM=0
30092   fi
30093
30094   if test $ac_cv_have_decl_getdelim = no; then
30095     HAVE_DECL_GETDELIM=0
30096   fi
30097
30098   if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
30099
30100
30101
30102
30103
30104
30105
30106
30107   ggl_LIBOBJS="$ggl_LIBOBJS getdelim.$ac_objext"
30108
30109
30110   for ac_func in flockfile funlockfile
30111 do :
30112   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30113 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30114 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30115   cat >>confdefs.h <<_ACEOF
30116 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30117 _ACEOF
30118
30119 fi
30120 done
30121
30122   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
30123 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
30124   ac_have_decl=1
30125 else
30126   ac_have_decl=0
30127 fi
30128
30129 cat >>confdefs.h <<_ACEOF
30130 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
30131 _ACEOF
30132
30133
30134   fi
30135
30136
30137
30138
30139
30140           GNULIB_GETDELIM=1
30141
30142
30143
30144
30145
30146 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
30147
30148
30149
30150
30151
30152
30153
30154
30155
30156   :
30157
30158
30159
30160
30161
30162
30163   gl_getline_needs_run_time_check=no
30164   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
30165 if test "x$ac_cv_func_getline" = xyes; then :
30166                    gl_getline_needs_run_time_check=yes
30167 else
30168   am_cv_func_working_getline=no
30169 fi
30170
30171   if test $gl_getline_needs_run_time_check = yes; then
30172     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
30173 $as_echo_n "checking for working getline function... " >&6; }
30174 if ${am_cv_func_working_getline+:} false; then :
30175   $as_echo_n "(cached) " >&6
30176 else
30177   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
30178     if test "$cross_compiling" = yes; then :
30179         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30180 /* end confdefs.h.  */
30181
30182 #include <features.h>
30183 #ifdef __GNU_LIBRARY__
30184  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
30185   Lucky GNU user
30186  #endif
30187 #endif
30188
30189 _ACEOF
30190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30191   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
30192   am_cv_func_working_getline="guessing yes"
30193 else
30194   am_cv_func_working_getline="guessing no"
30195 fi
30196 rm -f conftest*
30197
30198
30199 else
30200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30201 /* end confdefs.h.  */
30202
30203 #    include <stdio.h>
30204 #    include <stdlib.h>
30205 #    include <string.h>
30206     int main ()
30207     {
30208       FILE *in = fopen ("./conftest.data", "r");
30209       if (!in)
30210         return 1;
30211       {
30212         /* Test result for a NULL buffer and a zero size.
30213            Based on a test program from Karl Heuer.  */
30214         char *line = NULL;
30215         size_t siz = 0;
30216         int len = getline (&line, &siz, in);
30217         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
30218           return 2;
30219       }
30220       {
30221         /* Test result for a NULL buffer and a non-zero size.
30222            This crashes on FreeBSD 8.0.  */
30223         char *line = NULL;
30224         size_t siz = (size_t)(~0) / 4;
30225         if (getline (&line, &siz, in) == -1)
30226           return 3;
30227       }
30228       return 0;
30229     }
30230
30231 _ACEOF
30232 if ac_fn_c_try_run "$LINENO"; then :
30233   am_cv_func_working_getline=yes
30234 else
30235   am_cv_func_working_getline=no
30236 fi
30237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30238   conftest.$ac_objext conftest.beam conftest.$ac_ext
30239 fi
30240
30241 fi
30242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
30243 $as_echo "$am_cv_func_working_getline" >&6; }
30244   fi
30245
30246   if test $ac_cv_have_decl_getline = no; then
30247     HAVE_DECL_GETLINE=0
30248   fi
30249
30250   case "$am_cv_func_working_getline" in
30251     *no)
30252                         REPLACE_GETLINE=1
30253       ;;
30254   esac
30255
30256   if test $REPLACE_GETLINE = 1; then
30257
30258
30259
30260
30261
30262
30263
30264
30265   ggl_LIBOBJS="$ggl_LIBOBJS getline.$ac_objext"
30266
30267
30268   :
30269
30270   fi
30271
30272
30273
30274
30275
30276           GNULIB_GETLINE=1
30277
30278
30279
30280
30281
30282 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
30283
30284
30285
30286
30287
30288
30289   for ac_func in getpass
30290 do :
30291   ac_fn_c_check_func "$LINENO" "getpass" "ac_cv_func_getpass"
30292 if test "x$ac_cv_func_getpass" = xyes; then :
30293   cat >>confdefs.h <<_ACEOF
30294 #define HAVE_GETPASS 1
30295 _ACEOF
30296
30297 fi
30298 done
30299
30300
30301   :
30302
30303
30304
30305
30306
30307   if test $ac_cv_func_getpass = yes; then
30308     HAVE_GETPASS=1
30309   else
30310     HAVE_GETPASS=0
30311   fi
30312
30313   if test $HAVE_GETPASS = 0; then
30314
30315
30316
30317
30318
30319
30320
30321
30322   ggl_LIBOBJS="$ggl_LIBOBJS getpass.$ac_objext"
30323
30324
30325
30326   :
30327
30328
30329
30330
30331
30332
30333
30334
30335
30336   :
30337
30338
30339
30340
30341
30342
30343
30344
30345
30346
30347
30348   ac_fn_c_check_decl "$LINENO" "__fsetlocking" "ac_cv_have_decl___fsetlocking" "#include <stdio.h>
30349       #if HAVE_STDIO_EXT_H
30350        #include <stdio_ext.h>
30351       #endif
30352 "
30353 if test "x$ac_cv_have_decl___fsetlocking" = xyes; then :
30354   ac_have_decl=1
30355 else
30356   ac_have_decl=0
30357 fi
30358
30359 cat >>confdefs.h <<_ACEOF
30360 #define HAVE_DECL___FSETLOCKING $ac_have_decl
30361 _ACEOF
30362
30363
30364   :
30365
30366
30367
30368
30369
30370
30371   :
30372
30373
30374
30375
30376
30377
30378   :
30379
30380
30381
30382
30383
30384
30385   :
30386
30387
30388
30389
30390
30391
30392   :
30393
30394
30395
30396
30397
30398   :
30399
30400   fi
30401
30402   if test "$ac_cv_header_winsock2_h" = yes; then
30403
30404
30405
30406
30407
30408
30409
30410
30411   ggl_LIBOBJS="$ggl_LIBOBJS getpeername.$ac_objext"
30412
30413   fi
30414
30415
30416
30417
30418
30419           GNULIB_GETPEERNAME=1
30420
30421
30422
30423
30424
30425 $as_echo "#define GNULIB_TEST_GETPEERNAME 1" >>confdefs.h
30426
30427
30428
30429
30430
30431
30432
30433
30434
30435   :
30436
30437
30438
30439
30440
30441
30442
30443
30444
30445
30446
30447
30448
30449
30450   :
30451
30452
30453
30454
30455
30456
30457   gl_gettimeofday_timezone=void
30458   if test $ac_cv_func_gettimeofday != yes; then
30459     HAVE_GETTIMEOFDAY=0
30460   else
30461
30462
30463
30464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
30465 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
30466 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
30467   $as_echo_n "(cached) " >&6
30468 else
30469   if test "$cross_compiling" = yes; then :
30470   # When cross-compiling:
30471       case "$host_os" in
30472                 # Guess all is fine on glibc systems.
30473         *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
30474                 # If we don't know, assume the worst.
30475         *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
30476       esac
30477
30478 else
30479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30480 /* end confdefs.h.  */
30481 #include <string.h>
30482           #include <sys/time.h>
30483           #include <time.h>
30484           #include <stdlib.h>
30485
30486 int
30487 main ()
30488 {
30489
30490           time_t t = 0;
30491           struct tm *lt;
30492           struct tm saved_lt;
30493           struct timeval tv;
30494           lt = localtime (&t);
30495           saved_lt = *lt;
30496           gettimeofday (&tv, NULL);
30497           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
30498
30499   ;
30500   return 0;
30501 }
30502 _ACEOF
30503 if ac_fn_c_try_run "$LINENO"; then :
30504   gl_cv_func_gettimeofday_clobber=no
30505 else
30506   gl_cv_func_gettimeofday_clobber=yes
30507 fi
30508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30509   conftest.$ac_objext conftest.beam conftest.$ac_ext
30510 fi
30511
30512 fi
30513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
30514 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
30515
30516  case "$gl_cv_func_gettimeofday_clobber" in
30517    *yes)
30518      REPLACE_GETTIMEOFDAY=1
30519
30520   REPLACE_GMTIME=1
30521   REPLACE_LOCALTIME=1
30522
30523
30524 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
30525
30526      ;;
30527  esac
30528
30529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
30530 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
30531 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
30532   $as_echo_n "(cached) " >&6
30533 else
30534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30535 /* end confdefs.h.  */
30536 #include <sys/time.h>
30537               struct timeval c;
30538               int gettimeofday (struct timeval *restrict, void *restrict);
30539
30540 int
30541 main ()
30542 {
30543 /* glibc uses struct timezone * rather than the POSIX void *
30544                  if _GNU_SOURCE is defined.  However, since the only portable
30545                  use of gettimeofday uses NULL as the second parameter, and
30546                  since the glibc definition is actually more typesafe, it is
30547                  not worth wrapping this to get a compliant signature.  */
30548               int (*f) (struct timeval *restrict, void *restrict)
30549                 = gettimeofday;
30550               int x = f (&c, 0);
30551               return !(x | c.tv_sec | c.tv_usec);
30552
30553   ;
30554   return 0;
30555 }
30556 _ACEOF
30557 if ac_fn_c_try_compile "$LINENO"; then :
30558   gl_cv_func_gettimeofday_posix_signature=yes
30559 else
30560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30561 /* end confdefs.h.  */
30562 #include <sys/time.h>
30563 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
30564
30565 int
30566 main ()
30567 {
30568
30569   ;
30570   return 0;
30571 }
30572 _ACEOF
30573 if ac_fn_c_try_compile "$LINENO"; then :
30574   gl_cv_func_gettimeofday_posix_signature=almost
30575 else
30576   gl_cv_func_gettimeofday_posix_signature=no
30577 fi
30578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30579 fi
30580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30581 fi
30582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
30583 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
30584     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
30585       gl_gettimeofday_timezone='struct timezone'
30586     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
30587       REPLACE_GETTIMEOFDAY=1
30588     fi
30589         if test $REPLACE_STRUCT_TIMEVAL = 1; then
30590       REPLACE_GETTIMEOFDAY=1
30591     fi
30592
30593   fi
30594
30595 cat >>confdefs.h <<_ACEOF
30596 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
30597 _ACEOF
30598
30599
30600   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
30601
30602
30603
30604
30605
30606
30607
30608
30609   ggl_LIBOBJS="$ggl_LIBOBJS gettimeofday.$ac_objext"
30610
30611
30612   for ac_header in sys/timeb.h
30613 do :
30614   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
30615 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
30616   cat >>confdefs.h <<_ACEOF
30617 #define HAVE_SYS_TIMEB_H 1
30618 _ACEOF
30619
30620 fi
30621
30622 done
30623
30624   for ac_func in _ftime
30625 do :
30626   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
30627 if test "x$ac_cv_func__ftime" = xyes; then :
30628   cat >>confdefs.h <<_ACEOF
30629 #define HAVE__FTIME 1
30630 _ACEOF
30631
30632 fi
30633 done
30634
30635
30636   fi
30637
30638
30639
30640
30641
30642           GNULIB_GETTIMEOFDAY=1
30643
30644
30645
30646
30647
30648 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
30649
30650
30651
30652
30653                   HOSTENT_LIB=
30654   gl_saved_libs="$LIBS"
30655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
30656 $as_echo_n "checking for library containing gethostbyname... " >&6; }
30657 if ${ac_cv_search_gethostbyname+:} false; then :
30658   $as_echo_n "(cached) " >&6
30659 else
30660   ac_func_search_save_LIBS=$LIBS
30661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30662 /* end confdefs.h.  */
30663
30664 /* Override any GCC internal prototype to avoid an error.
30665    Use char because int might match the return type of a GCC
30666    builtin and then its argument prototype would still apply.  */
30667 #ifdef __cplusplus
30668 extern "C"
30669 #endif
30670 char gethostbyname ();
30671 int
30672 main ()
30673 {
30674 return gethostbyname ();
30675   ;
30676   return 0;
30677 }
30678 _ACEOF
30679 for ac_lib in '' nsl network net; do
30680   if test -z "$ac_lib"; then
30681     ac_res="none required"
30682   else
30683     ac_res=-l$ac_lib
30684     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30685   fi
30686   if ac_fn_c_try_link "$LINENO"; then :
30687   ac_cv_search_gethostbyname=$ac_res
30688 fi
30689 rm -f core conftest.err conftest.$ac_objext \
30690     conftest$ac_exeext
30691   if ${ac_cv_search_gethostbyname+:} false; then :
30692   break
30693 fi
30694 done
30695 if ${ac_cv_search_gethostbyname+:} false; then :
30696
30697 else
30698   ac_cv_search_gethostbyname=no
30699 fi
30700 rm conftest.$ac_ext
30701 LIBS=$ac_func_search_save_LIBS
30702 fi
30703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
30704 $as_echo "$ac_cv_search_gethostbyname" >&6; }
30705 ac_res=$ac_cv_search_gethostbyname
30706 if test "$ac_res" != no; then :
30707   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30708   if test "$ac_cv_search_gethostbyname" != "none required"; then
30709        HOSTENT_LIB="$ac_cv_search_gethostbyname"
30710      fi
30711 fi
30712
30713   LIBS="$gl_saved_libs"
30714   if test -z "$HOSTENT_LIB"; then
30715     for ac_func in gethostbyname
30716 do :
30717   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
30718 if test "x$ac_cv_func_gethostbyname" = xyes; then :
30719   cat >>confdefs.h <<_ACEOF
30720 #define HAVE_GETHOSTBYNAME 1
30721 _ACEOF
30722
30723 else
30724
30725       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
30726 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
30727 if ${gl_cv_w32_gethostbyname+:} false; then :
30728   $as_echo_n "(cached) " >&6
30729 else
30730   gl_cv_w32_gethostbyname=no
30731          gl_save_LIBS="$LIBS"
30732          LIBS="$LIBS -lws2_32"
30733          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30734 /* end confdefs.h.  */
30735
30736 #ifdef HAVE_WINSOCK2_H
30737 #include <winsock2.h>
30738 #endif
30739 #include <stddef.h>
30740
30741 int
30742 main ()
30743 {
30744 gethostbyname(NULL);
30745   ;
30746   return 0;
30747 }
30748 _ACEOF
30749 if ac_fn_c_try_link "$LINENO"; then :
30750   gl_cv_w32_gethostbyname=yes
30751 fi
30752 rm -f core conftest.err conftest.$ac_objext \
30753     conftest$ac_exeext conftest.$ac_ext
30754          LIBS="$gl_save_LIBS"
30755
30756 fi
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
30758 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
30759       if test "$gl_cv_w32_gethostbyname" = "yes"; then
30760         HOSTENT_LIB="-lws2_32"
30761       fi
30762
30763 fi
30764 done
30765
30766   fi
30767
30768
30769
30770
30771
30772
30773
30774
30775
30776               HAVE_INET_NTOP=1
30777   INET_NTOP_LIB=
30778
30779
30780
30781
30782   :
30783
30784
30785
30786
30787
30788   if test $ac_cv_header_sys_socket_h != yes; then
30789                     for ac_header in winsock2.h
30790 do :
30791   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
30792 if test "x$ac_cv_header_winsock2_h" = xyes; then :
30793   cat >>confdefs.h <<_ACEOF
30794 #define HAVE_WINSOCK2_H 1
30795 _ACEOF
30796
30797 fi
30798
30799 done
30800
30801   fi
30802   if test "$ac_cv_header_winsock2_h" = yes; then
30803     HAVE_WINSOCK2_H=1
30804     UNISTD_H_HAVE_WINSOCK2_H=1
30805     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
30806   else
30807     HAVE_WINSOCK2_H=0
30808   fi
30809
30810
30811   if test $HAVE_WINSOCK2_H = 1; then
30812     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
30813 "
30814 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
30815   ac_have_decl=1
30816 else
30817   ac_have_decl=0
30818 fi
30819
30820 cat >>confdefs.h <<_ACEOF
30821 #define HAVE_DECL_INET_NTOP $ac_have_decl
30822 _ACEOF
30823
30824     if test $ac_cv_have_decl_inet_ntop = yes; then
30825                   REPLACE_INET_NTOP=1
30826       INET_NTOP_LIB="-lws2_32"
30827     else
30828       HAVE_DECL_INET_NTOP=0
30829       HAVE_INET_NTOP=0
30830     fi
30831   else
30832     gl_save_LIBS=$LIBS
30833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
30834 $as_echo_n "checking for library containing inet_ntop... " >&6; }
30835 if ${ac_cv_search_inet_ntop+:} false; then :
30836   $as_echo_n "(cached) " >&6
30837 else
30838   ac_func_search_save_LIBS=$LIBS
30839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30840 /* end confdefs.h.  */
30841
30842 /* Override any GCC internal prototype to avoid an error.
30843    Use char because int might match the return type of a GCC
30844    builtin and then its argument prototype would still apply.  */
30845 #ifdef __cplusplus
30846 extern "C"
30847 #endif
30848 char inet_ntop ();
30849 int
30850 main ()
30851 {
30852 return inet_ntop ();
30853   ;
30854   return 0;
30855 }
30856 _ACEOF
30857 for ac_lib in '' nsl resolv; do
30858   if test -z "$ac_lib"; then
30859     ac_res="none required"
30860   else
30861     ac_res=-l$ac_lib
30862     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30863   fi
30864   if ac_fn_c_try_link "$LINENO"; then :
30865   ac_cv_search_inet_ntop=$ac_res
30866 fi
30867 rm -f core conftest.err conftest.$ac_objext \
30868     conftest$ac_exeext
30869   if ${ac_cv_search_inet_ntop+:} false; then :
30870   break
30871 fi
30872 done
30873 if ${ac_cv_search_inet_ntop+:} false; then :
30874
30875 else
30876   ac_cv_search_inet_ntop=no
30877 fi
30878 rm conftest.$ac_ext
30879 LIBS=$ac_func_search_save_LIBS
30880 fi
30881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
30882 $as_echo "$ac_cv_search_inet_ntop" >&6; }
30883 ac_res=$ac_cv_search_inet_ntop
30884 if test "$ac_res" != no; then :
30885   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30886
30887 else
30888   for ac_func in inet_ntop
30889 do :
30890   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
30891 if test "x$ac_cv_func_inet_ntop" = xyes; then :
30892   cat >>confdefs.h <<_ACEOF
30893 #define HAVE_INET_NTOP 1
30894 _ACEOF
30895
30896 fi
30897 done
30898
30899        if test $ac_cv_func_inet_ntop = no; then
30900          HAVE_INET_NTOP=0
30901        fi
30902
30903 fi
30904
30905     LIBS=$gl_save_LIBS
30906
30907     if test "$ac_cv_search_inet_ntop" != "no" \
30908        && test "$ac_cv_search_inet_ntop" != "none required"; then
30909       INET_NTOP_LIB="$ac_cv_search_inet_ntop"
30910     fi
30911
30912
30913   :
30914
30915
30916
30917
30918
30919     ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
30920         #if HAVE_NETDB_H
30921         # include <netdb.h>
30922         #endif
30923
30924 "
30925 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
30926   ac_have_decl=1
30927 else
30928   ac_have_decl=0
30929 fi
30930
30931 cat >>confdefs.h <<_ACEOF
30932 #define HAVE_DECL_INET_NTOP $ac_have_decl
30933 _ACEOF
30934
30935     if test $ac_cv_have_decl_inet_ntop = no; then
30936       HAVE_DECL_INET_NTOP=0
30937     fi
30938   fi
30939
30940
30941   if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
30942
30943
30944
30945
30946
30947
30948
30949
30950   ggl_LIBOBJS="$ggl_LIBOBJS inet_ntop.$ac_objext"
30951
30952
30953
30954
30955   fi
30956
30957
30958
30959
30960
30961           GNULIB_INET_NTOP=1
30962
30963
30964
30965
30966
30967
30968
30969
30970
30971
30972
30973               HAVE_INET_PTON=1
30974   INET_PTON_LIB=
30975
30976
30977
30978
30979   :
30980
30981
30982
30983
30984
30985   if test $ac_cv_header_sys_socket_h != yes; then
30986                     for ac_header in winsock2.h
30987 do :
30988   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
30989 if test "x$ac_cv_header_winsock2_h" = xyes; then :
30990   cat >>confdefs.h <<_ACEOF
30991 #define HAVE_WINSOCK2_H 1
30992 _ACEOF
30993
30994 fi
30995
30996 done
30997
30998   fi
30999   if test "$ac_cv_header_winsock2_h" = yes; then
31000     HAVE_WINSOCK2_H=1
31001     UNISTD_H_HAVE_WINSOCK2_H=1
31002     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
31003   else
31004     HAVE_WINSOCK2_H=0
31005   fi
31006
31007
31008   if test $HAVE_WINSOCK2_H = 1; then
31009     ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h>
31010 "
31011 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
31012   ac_have_decl=1
31013 else
31014   ac_have_decl=0
31015 fi
31016
31017 cat >>confdefs.h <<_ACEOF
31018 #define HAVE_DECL_INET_PTON $ac_have_decl
31019 _ACEOF
31020
31021     if test $ac_cv_have_decl_inet_pton = yes; then
31022                   REPLACE_INET_PTON=1
31023       INET_PTON_LIB="-lws2_32"
31024     else
31025       HAVE_DECL_INET_PTON=0
31026       HAVE_INET_PTON=0
31027     fi
31028   else
31029     gl_save_LIBS=$LIBS
31030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
31031 $as_echo_n "checking for library containing inet_pton... " >&6; }
31032 if ${ac_cv_search_inet_pton+:} false; then :
31033   $as_echo_n "(cached) " >&6
31034 else
31035   ac_func_search_save_LIBS=$LIBS
31036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31037 /* end confdefs.h.  */
31038
31039 /* Override any GCC internal prototype to avoid an error.
31040    Use char because int might match the return type of a GCC
31041    builtin and then its argument prototype would still apply.  */
31042 #ifdef __cplusplus
31043 extern "C"
31044 #endif
31045 char inet_pton ();
31046 int
31047 main ()
31048 {
31049 return inet_pton ();
31050   ;
31051   return 0;
31052 }
31053 _ACEOF
31054 for ac_lib in '' nsl resolv; do
31055   if test -z "$ac_lib"; then
31056     ac_res="none required"
31057   else
31058     ac_res=-l$ac_lib
31059     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31060   fi
31061   if ac_fn_c_try_link "$LINENO"; then :
31062   ac_cv_search_inet_pton=$ac_res
31063 fi
31064 rm -f core conftest.err conftest.$ac_objext \
31065     conftest$ac_exeext
31066   if ${ac_cv_search_inet_pton+:} false; then :
31067   break
31068 fi
31069 done
31070 if ${ac_cv_search_inet_pton+:} false; then :
31071
31072 else
31073   ac_cv_search_inet_pton=no
31074 fi
31075 rm conftest.$ac_ext
31076 LIBS=$ac_func_search_save_LIBS
31077 fi
31078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
31079 $as_echo "$ac_cv_search_inet_pton" >&6; }
31080 ac_res=$ac_cv_search_inet_pton
31081 if test "$ac_res" != no; then :
31082   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31083
31084 else
31085   for ac_func in inet_pton
31086 do :
31087   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
31088 if test "x$ac_cv_func_inet_pton" = xyes; then :
31089   cat >>confdefs.h <<_ACEOF
31090 #define HAVE_INET_PTON 1
31091 _ACEOF
31092
31093 fi
31094 done
31095
31096        if test $ac_cv_func_inet_pton = no; then
31097          HAVE_INET_PTON=0
31098        fi
31099
31100 fi
31101
31102     LIBS=$gl_save_LIBS
31103
31104     if test "$ac_cv_search_inet_pton" != "no" \
31105        && test "$ac_cv_search_inet_pton" != "none required"; then
31106       INET_PTON_LIB="$ac_cv_search_inet_pton"
31107     fi
31108
31109
31110   :
31111
31112
31113
31114
31115
31116     ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
31117         #if HAVE_NETDB_H
31118         # include <netdb.h>
31119         #endif
31120
31121 "
31122 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
31123   ac_have_decl=1
31124 else
31125   ac_have_decl=0
31126 fi
31127
31128 cat >>confdefs.h <<_ACEOF
31129 #define HAVE_DECL_INET_PTON $ac_have_decl
31130 _ACEOF
31131
31132     if test $ac_cv_have_decl_inet_pton = no; then
31133       HAVE_DECL_INET_PTON=0
31134     fi
31135   fi
31136
31137
31138   if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
31139
31140
31141
31142
31143
31144
31145
31146
31147   ggl_LIBOBJS="$ggl_LIBOBJS inet_pton.$ac_objext"
31148
31149
31150
31151
31152   fi
31153
31154
31155
31156
31157
31158           GNULIB_INET_PTON=1
31159
31160
31161
31162
31163
31164
31165   if test "$ac_cv_header_winsock2_h" = yes; then
31166
31167
31168
31169
31170
31171
31172
31173
31174   ggl_LIBOBJS="$ggl_LIBOBJS listen.$ac_objext"
31175
31176   fi
31177
31178
31179
31180
31181
31182           GNULIB_LISTEN=1
31183
31184
31185
31186
31187
31188 $as_echo "#define GNULIB_TEST_LISTEN 1" >>confdefs.h
31189
31190
31191
31192
31193
31194
31195
31196
31197
31198   :
31199
31200
31201
31202
31203
31204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
31205 $as_echo_n "checking whether lseek detects pipes... " >&6; }
31206 if ${gl_cv_func_lseek_pipe+:} false; then :
31207   $as_echo_n "(cached) " >&6
31208 else
31209   case "$host_os" in
31210        mingw*)
31211                                                                gl_cv_func_lseek_pipe=no
31212          ;;
31213        *)
31214          if test $cross_compiling = no; then
31215            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31216 /* end confdefs.h.  */
31217
31218 #include <sys/types.h> /* for off_t */
31219 #include <stdio.h> /* for SEEK_CUR */
31220 #if HAVE_UNISTD_H
31221 # include <unistd.h>
31222 #else /* on Windows with MSVC */
31223 # include <io.h>
31224 #endif
31225
31226 int
31227 main ()
31228 {
31229
31230   /* Exit with success only if stdin is seekable.  */
31231   return lseek (0, (off_t)0, SEEK_CUR) < 0;
31232
31233   ;
31234   return 0;
31235 }
31236 _ACEOF
31237 if ac_fn_c_try_link "$LINENO"; then :
31238   if test -s conftest$ac_exeext \
31239                  && ./conftest$ac_exeext < conftest.$ac_ext \
31240                  && test 1 = "`echo hi \
31241                    | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
31242                 gl_cv_func_lseek_pipe=yes
31243               else
31244                 gl_cv_func_lseek_pipe=no
31245               fi
31246
31247 else
31248   gl_cv_func_lseek_pipe=no
31249 fi
31250 rm -f core conftest.err conftest.$ac_objext \
31251     conftest$ac_exeext conftest.$ac_ext
31252          else
31253            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31254 /* end confdefs.h.  */
31255
31256 #if defined __BEOS__
31257 /* BeOS mistakenly return 0 when trying to seek on pipes.  */
31258   Choke me.
31259 #endif
31260 _ACEOF
31261 if ac_fn_c_try_compile "$LINENO"; then :
31262   gl_cv_func_lseek_pipe=yes
31263 else
31264   gl_cv_func_lseek_pipe=no
31265 fi
31266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31267          fi
31268          ;;
31269      esac
31270
31271 fi
31272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
31273 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
31274   if test $gl_cv_func_lseek_pipe = no; then
31275     REPLACE_LSEEK=1
31276
31277 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
31278
31279   fi
31280
31281
31282   if test $WINDOWS_64_BIT_OFF_T = 1; then
31283     REPLACE_LSEEK=1
31284   fi
31285
31286   if test $REPLACE_LSEEK = 1; then
31287
31288
31289
31290
31291
31292
31293
31294
31295   ggl_LIBOBJS="$ggl_LIBOBJS lseek.$ac_objext"
31296
31297   fi
31298
31299
31300
31301
31302
31303           GNULIB_LSEEK=1
31304
31305
31306
31307
31308
31309 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
31310
31311
31312
31313
31314
31315
31316   if test $gl_cv_func_malloc_posix = yes; then
31317
31318 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
31319
31320   else
31321     REPLACE_MALLOC=1
31322   fi
31323
31324   if test $REPLACE_MALLOC = 1; then
31325
31326
31327
31328
31329
31330
31331
31332
31333   ggl_LIBOBJS="$ggl_LIBOBJS malloc.$ac_objext"
31334
31335   fi
31336
31337
31338
31339
31340
31341           GNULIB_MALLOC_POSIX=1
31342
31343
31344
31345
31346
31347 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
31348
31349
31350
31351
31352
31353
31354
31355
31356   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
31357
31358
31359
31360
31361
31362
31363
31364
31365   ggl_LIBOBJS="$ggl_LIBOBJS memchr.$ac_objext"
31366
31367
31368   for ac_header in bp-sym.h
31369 do :
31370   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
31371 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
31372   cat >>confdefs.h <<_ACEOF
31373 #define HAVE_BP_SYM_H 1
31374 _ACEOF
31375
31376 fi
31377
31378 done
31379
31380
31381   fi
31382
31383
31384
31385
31386
31387           GNULIB_MEMCHR=1
31388
31389
31390
31391
31392
31393 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
31394
31395
31396
31397
31398
31399
31400
31401
31402
31403
31404   :
31405
31406
31407
31408
31409
31410
31411   :
31412
31413
31414
31415
31416
31417
31418   if test $APPLE_UNIVERSAL_BUILD = 1; then
31419     # A universal build on Apple Mac OS X platforms.
31420     # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
31421     # But we need a configuration result that is valid in both modes.
31422     gl_cv_func_working_mktime=no
31423   fi
31424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
31425 $as_echo_n "checking for working mktime... " >&6; }
31426 if ${gl_cv_func_working_mktime+:} false; then :
31427   $as_echo_n "(cached) " >&6
31428 else
31429   if test "$cross_compiling" = yes; then :
31430   gl_cv_func_working_mktime=no
31431 else
31432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31433 /* end confdefs.h.  */
31434 /* Test program from Paul Eggert and Tony Leneis.  */
31435 #include <limits.h>
31436 #include <stdlib.h>
31437 #include <time.h>
31438
31439 #ifdef HAVE_UNISTD_H
31440 # include <unistd.h>
31441 #endif
31442
31443 #if HAVE_DECL_ALARM
31444 # include <signal.h>
31445 #endif
31446
31447 /* Work around redefinition to rpl_putenv by other config tests.  */
31448 #undef putenv
31449
31450 static time_t time_t_max;
31451 static time_t time_t_min;
31452
31453 /* Values we'll use to set the TZ environment variable.  */
31454 static char *tz_strings[] = {
31455   (char *) 0, "TZ=GMT0", "TZ=JST-9",
31456   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
31457 };
31458 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
31459
31460 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
31461    Based on a problem report from Andreas Jaeger.  */
31462 static int
31463 spring_forward_gap ()
31464 {
31465   /* glibc (up to about 1998-10-07) failed this test. */
31466   struct tm tm;
31467
31468   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
31469      instead of "TZ=America/Vancouver" in order to detect the bug even
31470      on systems that don't support the Olson extension, or don't have the
31471      full zoneinfo tables installed.  */
31472   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
31473
31474   tm.tm_year = 98;
31475   tm.tm_mon = 3;
31476   tm.tm_mday = 5;
31477   tm.tm_hour = 2;
31478   tm.tm_min = 0;
31479   tm.tm_sec = 0;
31480   tm.tm_isdst = -1;
31481   return mktime (&tm) != (time_t) -1;
31482 }
31483
31484 static int
31485 mktime_test1 (time_t now)
31486 {
31487   struct tm *lt;
31488   return ! (lt = localtime (&now)) || mktime (lt) == now;
31489 }
31490
31491 static int
31492 mktime_test (time_t now)
31493 {
31494   return (mktime_test1 (now)
31495           && mktime_test1 ((time_t) (time_t_max - now))
31496           && mktime_test1 ((time_t) (time_t_min + now)));
31497 }
31498
31499 static int
31500 irix_6_4_bug ()
31501 {
31502   /* Based on code from Ariel Faigon.  */
31503   struct tm tm;
31504   tm.tm_year = 96;
31505   tm.tm_mon = 3;
31506   tm.tm_mday = 0;
31507   tm.tm_hour = 0;
31508   tm.tm_min = 0;
31509   tm.tm_sec = 0;
31510   tm.tm_isdst = -1;
31511   mktime (&tm);
31512   return tm.tm_mon == 2 && tm.tm_mday == 31;
31513 }
31514
31515 static int
31516 bigtime_test (int j)
31517 {
31518   struct tm tm;
31519   time_t now;
31520   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
31521   now = mktime (&tm);
31522   if (now != (time_t) -1)
31523     {
31524       struct tm *lt = localtime (&now);
31525       if (! (lt
31526              && lt->tm_year == tm.tm_year
31527              && lt->tm_mon == tm.tm_mon
31528              && lt->tm_mday == tm.tm_mday
31529              && lt->tm_hour == tm.tm_hour
31530              && lt->tm_min == tm.tm_min
31531              && lt->tm_sec == tm.tm_sec
31532              && lt->tm_yday == tm.tm_yday
31533              && lt->tm_wday == tm.tm_wday
31534              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
31535                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
31536         return 0;
31537     }
31538   return 1;
31539 }
31540
31541 static int
31542 year_2050_test ()
31543 {
31544   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
31545      ignoring leap seconds.  */
31546   unsigned long int answer = 2527315200UL;
31547
31548   struct tm tm;
31549   time_t t;
31550   tm.tm_year = 2050 - 1900;
31551   tm.tm_mon = 2 - 1;
31552   tm.tm_mday = 1;
31553   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
31554   tm.tm_isdst = -1;
31555
31556   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
31557      instead of "TZ=America/Vancouver" in order to detect the bug even
31558      on systems that don't support the Olson extension, or don't have the
31559      full zoneinfo tables installed.  */
31560   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
31561
31562   t = mktime (&tm);
31563
31564   /* Check that the result is either a failure, or close enough
31565      to the correct answer that we can assume the discrepancy is
31566      due to leap seconds.  */
31567   return (t == (time_t) -1
31568           || (0 < t && answer - 120 <= t && t <= answer + 120));
31569 }
31570
31571 int
31572 main ()
31573 {
31574   int result = 0;
31575   time_t t, delta;
31576   int i, j;
31577   int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
31578   int time_t_signed = ! ((time_t) 0 < (time_t) -1);
31579
31580 #if HAVE_DECL_ALARM
31581   /* This test makes some buggy mktime implementations loop.
31582      Give up after 60 seconds; a mktime slower than that
31583      isn't worth using anyway.  */
31584   signal (SIGALRM, SIG_DFL);
31585   alarm (60);
31586 #endif
31587
31588   time_t_max = (! time_t_signed
31589                 ? (time_t) -1
31590                 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
31591                    * 2 + 1));
31592   time_t_min = (! time_t_signed
31593                 ? (time_t) 0
31594                 : time_t_signed_magnitude
31595                 ? ~ (time_t) 0
31596                 : ~ time_t_max);
31597
31598   delta = time_t_max / 997; /* a suitable prime number */
31599   for (i = 0; i < N_STRINGS; i++)
31600     {
31601       if (tz_strings[i])
31602         putenv (tz_strings[i]);
31603
31604       for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
31605         if (! mktime_test (t))
31606           result |= 1;
31607       if ((result & 2) == 0
31608           && ! (mktime_test ((time_t) 1)
31609                 && mktime_test ((time_t) (60 * 60))
31610                 && mktime_test ((time_t) (60 * 60 * 24))))
31611         result |= 2;
31612
31613       for (j = 1; (result & 4) == 0; j <<= 1)
31614         {
31615           if (! bigtime_test (j))
31616             result |= 4;
31617           if (INT_MAX / 2 < j)
31618             break;
31619         }
31620       if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
31621         result |= 8;
31622     }
31623   if (! irix_6_4_bug ())
31624     result |= 16;
31625   if (! spring_forward_gap ())
31626     result |= 32;
31627   if (! year_2050_test ())
31628     result |= 64;
31629   return result;
31630 }
31631 _ACEOF
31632 if ac_fn_c_try_run "$LINENO"; then :
31633   gl_cv_func_working_mktime=yes
31634 else
31635   gl_cv_func_working_mktime=no
31636 fi
31637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31638   conftest.$ac_objext conftest.beam conftest.$ac_ext
31639 fi
31640
31641
31642 fi
31643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
31644 $as_echo "$gl_cv_func_working_mktime" >&6; }
31645
31646   if test $gl_cv_func_working_mktime = no; then
31647     REPLACE_MKTIME=1
31648   else
31649     REPLACE_MKTIME=0
31650   fi
31651
31652   if test $REPLACE_MKTIME = 1; then
31653
31654
31655
31656
31657
31658
31659
31660
31661   ggl_LIBOBJS="$ggl_LIBOBJS mktime.$ac_objext"
31662
31663     :
31664   fi
31665
31666
31667
31668
31669
31670           GNULIB_MKTIME=1
31671
31672
31673
31674
31675
31676 $as_echo "#define GNULIB_TEST_MKTIME 1" >>confdefs.h
31677
31678
31679
31680
31681
31682   :
31683
31684
31685
31686
31687
31688   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
31689     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
31690
31691 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
31692
31693   else
31694     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
31695   fi
31696
31697
31698   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
31699
31700
31701
31702
31703
31704
31705
31706
31707   ggl_LIBOBJS="$ggl_LIBOBJS msvc-inval.$ac_objext"
31708
31709   fi
31710
31711
31712
31713   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
31714
31715
31716
31717
31718
31719
31720
31721
31722   ggl_LIBOBJS="$ggl_LIBOBJS msvc-nothrow.$ac_objext"
31723
31724   fi
31725
31726
31727
31728
31729
31730
31731
31732
31733
31734   :
31735
31736
31737
31738
31739
31740
31741
31742
31743      if test $gl_cv_have_include_next = yes; then
31744        gl_cv_next_netdb_h='<'netdb.h'>'
31745      else
31746        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
31747 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
31748 if ${gl_cv_next_netdb_h+:} false; then :
31749   $as_echo_n "(cached) " >&6
31750 else
31751
31752              if test $ac_cv_header_netdb_h = yes; then
31753
31754
31755
31756
31757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31758 /* end confdefs.h.  */
31759 #include <netdb.h>
31760 _ACEOF
31761                 case "$host_os" in
31762     aix*) gl_absname_cpp="$ac_cpp -C" ;;
31763     *)    gl_absname_cpp="$ac_cpp" ;;
31764   esac
31765
31766   case "$host_os" in
31767     mingw*)
31768                                           gl_dirsep_regex='[/\\]'
31769       ;;
31770     *)
31771       gl_dirsep_regex='\/'
31772       ;;
31773   esac
31774       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31775   gl_header_literal_regex=`echo 'netdb.h' \
31776                            | sed -e "$gl_make_literal_regex_sed"`
31777   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31778       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31779       s|^/[^/]|//&|
31780       p
31781       q
31782     }'
31783
31784         gl_cv_absolute_netdb_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31785   sed -n "$gl_absolute_header_sed"`
31786
31787            gl_header=$gl_cv_absolute_netdb_h
31788            gl_cv_next_netdb_h='"'$gl_header'"'
31789           else
31790                gl_cv_next_netdb_h='<'netdb.h'>'
31791              fi
31792
31793
31794 fi
31795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
31796 $as_echo "$gl_cv_next_netdb_h" >&6; }
31797      fi
31798      NEXT_NETDB_H=$gl_cv_next_netdb_h
31799
31800      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31801        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31802        gl_next_as_first_directive='<'netdb.h'>'
31803      else
31804        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31805        gl_next_as_first_directive=$gl_cv_next_netdb_h
31806      fi
31807      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
31808
31809
31810
31811
31812   if test $ac_cv_header_netdb_h = yes; then
31813     HAVE_NETDB_H=1
31814   else
31815     HAVE_NETDB_H=0
31816   fi
31817
31818
31819
31820     for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
31821     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
31823 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31824 if eval \${$as_gl_Symbol+:} false; then :
31825   $as_echo_n "(cached) " >&6
31826 else
31827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31828 /* end confdefs.h.  */
31829 #include <netdb.h>
31830 int
31831 main ()
31832 {
31833 #undef $gl_func
31834   (void) $gl_func;
31835   ;
31836   return 0;
31837 }
31838 _ACEOF
31839 if ac_fn_c_try_compile "$LINENO"; then :
31840   eval "$as_gl_Symbol=yes"
31841 else
31842   eval "$as_gl_Symbol=no"
31843 fi
31844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31845 fi
31846 eval ac_res=\$$as_gl_Symbol
31847                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31848 $as_echo "$ac_res" >&6; }
31849     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
31850   cat >>confdefs.h <<_ACEOF
31851 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31852 _ACEOF
31853
31854                      eval ac_cv_have_decl_$gl_func=yes
31855 fi
31856       done
31857
31858
31859
31860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
31861 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
31862 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
31863   $as_echo_n "(cached) " >&6
31864 else
31865
31866       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31867 /* end confdefs.h.  */
31868 #include <netinet/in.h>
31869 int
31870 main ()
31871 {
31872
31873   ;
31874   return 0;
31875 }
31876 _ACEOF
31877 if ac_fn_c_try_compile "$LINENO"; then :
31878   gl_cv_header_netinet_in_h_selfcontained=yes
31879 else
31880   gl_cv_header_netinet_in_h_selfcontained=no
31881 fi
31882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31883
31884 fi
31885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
31886 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
31887   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
31888     NETINET_IN_H=''
31889   else
31890     NETINET_IN_H='netinet/in.h'
31891     for ac_header in netinet/in.h
31892 do :
31893   ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
31894 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
31895   cat >>confdefs.h <<_ACEOF
31896 #define HAVE_NETINET_IN_H 1
31897 _ACEOF
31898
31899 fi
31900
31901 done
31902
31903
31904
31905
31906
31907
31908
31909   :
31910
31911
31912
31913
31914
31915
31916
31917
31918      if test $gl_cv_have_include_next = yes; then
31919        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
31920      else
31921        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
31922 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
31923 if ${gl_cv_next_netinet_in_h+:} false; then :
31924   $as_echo_n "(cached) " >&6
31925 else
31926
31927              if test $ac_cv_header_netinet_in_h = yes; then
31928
31929
31930
31931
31932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31933 /* end confdefs.h.  */
31934 #include <netinet/in.h>
31935 _ACEOF
31936                 case "$host_os" in
31937     aix*) gl_absname_cpp="$ac_cpp -C" ;;
31938     *)    gl_absname_cpp="$ac_cpp" ;;
31939   esac
31940
31941   case "$host_os" in
31942     mingw*)
31943                                           gl_dirsep_regex='[/\\]'
31944       ;;
31945     *)
31946       gl_dirsep_regex='\/'
31947       ;;
31948   esac
31949       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31950   gl_header_literal_regex=`echo 'netinet/in.h' \
31951                            | sed -e "$gl_make_literal_regex_sed"`
31952   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31953       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31954       s|^/[^/]|//&|
31955       p
31956       q
31957     }'
31958
31959         gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31960   sed -n "$gl_absolute_header_sed"`
31961
31962            gl_header=$gl_cv_absolute_netinet_in_h
31963            gl_cv_next_netinet_in_h='"'$gl_header'"'
31964           else
31965                gl_cv_next_netinet_in_h='<'netinet/in.h'>'
31966              fi
31967
31968
31969 fi
31970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
31971 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
31972      fi
31973      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
31974
31975      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31976        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31977        gl_next_as_first_directive='<'netinet/in.h'>'
31978      else
31979        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31980        gl_next_as_first_directive=$gl_cv_next_netinet_in_h
31981      fi
31982      NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
31983
31984
31985
31986
31987     if test $ac_cv_header_netinet_in_h = yes; then
31988       HAVE_NETINET_IN_H=1
31989     else
31990       HAVE_NETINET_IN_H=0
31991     fi
31992
31993   fi
31994
31995    if test -n "$NETINET_IN_H"; then
31996   GL_GENERATE_NETINET_IN_H_TRUE=
31997   GL_GENERATE_NETINET_IN_H_FALSE='#'
31998 else
31999   GL_GENERATE_NETINET_IN_H_TRUE='#'
32000   GL_GENERATE_NETINET_IN_H_FALSE=
32001 fi
32002
32003
32004
32005
32006
32007
32008
32009
32010
32011   ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
32012 #include <$ac_cv_struct_tm>
32013
32014 "
32015 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
32016
32017 cat >>confdefs.h <<_ACEOF
32018 #define HAVE_STRUCT_TM_TM_ZONE 1
32019 _ACEOF
32020
32021
32022 fi
32023
32024 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32025
32026 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
32027
32028 else
32029   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
32030 "
32031 if test "x$ac_cv_have_decl_tzname" = xyes; then :
32032   ac_have_decl=1
32033 else
32034   ac_have_decl=0
32035 fi
32036
32037 cat >>confdefs.h <<_ACEOF
32038 #define HAVE_DECL_TZNAME $ac_have_decl
32039 _ACEOF
32040
32041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
32042 $as_echo_n "checking for tzname... " >&6; }
32043 if ${ac_cv_var_tzname+:} false; then :
32044   $as_echo_n "(cached) " >&6
32045 else
32046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32047 /* end confdefs.h.  */
32048 #include <time.h>
32049 #if !HAVE_DECL_TZNAME
32050 extern char *tzname[];
32051 #endif
32052
32053 int
32054 main ()
32055 {
32056 return tzname[0][0];
32057   ;
32058   return 0;
32059 }
32060 _ACEOF
32061 if ac_fn_c_try_link "$LINENO"; then :
32062   ac_cv_var_tzname=yes
32063 else
32064   ac_cv_var_tzname=no
32065 fi
32066 rm -f core conftest.err conftest.$ac_objext \
32067     conftest$ac_exeext conftest.$ac_ext
32068 fi
32069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
32070 $as_echo "$ac_cv_var_tzname" >&6; }
32071   if test $ac_cv_var_tzname = yes; then
32072
32073 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
32074
32075   fi
32076 fi
32077
32078
32079
32080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32081 /* end confdefs.h.  */
32082
32083 #include <time.h> /* for time_t */
32084 #include <limits.h> /* for CHAR_BIT, LONG_MIN, LONG_MAX */
32085 #define TYPE_MINIMUM(t) \
32086   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
32087 #define TYPE_MAXIMUM(t) \
32088   ((t) ((t) 0 < (t) -1 \
32089         ? (t) -1 \
32090         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
32091 typedef int verify_min[2 * (LONG_MIN <= TYPE_MINIMUM (time_t)) - 1];
32092 typedef int verify_max[2 * (TYPE_MAXIMUM (time_t) <= LONG_MAX) - 1];
32093
32094 _ACEOF
32095 if ac_fn_c_try_compile "$LINENO"; then :
32096
32097 $as_echo "#define TIME_T_FITS_IN_LONG_INT 1" >>confdefs.h
32098
32099
32100 fi
32101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32102
32103   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
32104 "
32105 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
32106   ac_have_decl=1
32107 else
32108   ac_have_decl=0
32109 fi
32110
32111 cat >>confdefs.h <<_ACEOF
32112 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
32113 _ACEOF
32114
32115   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
32116 "
32117 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
32118   ac_have_decl=1
32119 else
32120   ac_have_decl=0
32121 fi
32122
32123 cat >>confdefs.h <<_ACEOF
32124 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
32125 _ACEOF
32126
32127   :
32128
32129
32130
32131   if test $gl_cv_func_malloc_posix = yes; then
32132
32133 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
32134
32135   else
32136     REPLACE_REALLOC=1
32137   fi
32138
32139   if test $REPLACE_REALLOC = 1; then
32140
32141
32142
32143
32144
32145
32146
32147
32148   ggl_LIBOBJS="$ggl_LIBOBJS realloc.$ac_objext"
32149
32150   fi
32151
32152
32153
32154
32155
32156           GNULIB_REALLOC_POSIX=1
32157
32158
32159
32160
32161
32162 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
32163
32164
32165
32166
32167   if test "$ac_cv_header_winsock2_h" = yes; then
32168
32169
32170
32171
32172
32173
32174
32175
32176   ggl_LIBOBJS="$ggl_LIBOBJS recv.$ac_objext"
32177
32178   fi
32179
32180
32181
32182
32183
32184           GNULIB_RECV=1
32185
32186
32187
32188
32189
32190 $as_echo "#define GNULIB_TEST_RECV 1" >>confdefs.h
32191
32192
32193
32194
32195   if test "$ac_cv_header_winsock2_h" = yes; then
32196
32197
32198
32199
32200
32201
32202
32203
32204   ggl_LIBOBJS="$ggl_LIBOBJS recvfrom.$ac_objext"
32205
32206   fi
32207
32208
32209
32210
32211
32212           GNULIB_RECVFROM=1
32213
32214
32215
32216
32217
32218 $as_echo "#define GNULIB_TEST_RECVFROM 1" >>confdefs.h
32219
32220
32221
32222
32223
32224
32225   if test "$ac_cv_header_winsock2_h" = yes; then
32226     REPLACE_SELECT=1
32227   else
32228
32229   :
32230
32231
32232
32233
32234
32235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
32236 $as_echo_n "checking whether select supports a 0 argument... " >&6; }
32237 if ${gl_cv_func_select_supports0+:} false; then :
32238   $as_echo_n "(cached) " >&6
32239 else
32240
32241         if test "$cross_compiling" = yes; then :
32242
32243            case "$host_os" in
32244                        # Guess no on Interix.
32245              interix*) gl_cv_func_select_supports0="guessing no";;
32246                        # Guess yes otherwise.
32247              *)        gl_cv_func_select_supports0="guessing yes";;
32248            esac
32249
32250 else
32251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32252 /* end confdefs.h.  */
32253
32254 #include <sys/types.h>
32255 #include <sys/time.h>
32256 #if HAVE_SYS_SELECT_H
32257 #include <sys/select.h>
32258 #endif
32259 int main ()
32260 {
32261   struct timeval timeout;
32262   timeout.tv_sec = 0;
32263   timeout.tv_usec = 5;
32264   return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
32265 }
32266 _ACEOF
32267 if ac_fn_c_try_run "$LINENO"; then :
32268   gl_cv_func_select_supports0=yes
32269 else
32270   gl_cv_func_select_supports0=no
32271 fi
32272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32273   conftest.$ac_objext conftest.beam conftest.$ac_ext
32274 fi
32275
32276
32277 fi
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
32279 $as_echo "$gl_cv_func_select_supports0" >&6; }
32280     case "$gl_cv_func_select_supports0" in
32281       *yes) ;;
32282       *) REPLACE_SELECT=1 ;;
32283     esac
32284
32285         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
32286 $as_echo_n "checking whether select detects invalid fds... " >&6; }
32287 if ${gl_cv_func_select_detects_ebadf+:} false; then :
32288   $as_echo_n "(cached) " >&6
32289 else
32290
32291         if test "$cross_compiling" = yes; then :
32292
32293            case "$host_os" in
32294                     # Guess yes on glibc systems.
32295             *-gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;;
32296                     # If we don't know, assume the worst.
32297             *)      gl_cv_func_select_detects_ebadf="guessing no" ;;
32298            esac
32299
32300 else
32301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32302 /* end confdefs.h.  */
32303
32304 #include <sys/types.h>
32305 #include <sys/time.h>
32306 #if HAVE_SYS_SELECT_H
32307 # include <sys/select.h>
32308 #endif
32309 #include <unistd.h>
32310 #include <errno.h>
32311
32312 int
32313 main ()
32314 {
32315
32316   fd_set set;
32317   dup2(0, 16);
32318   FD_ZERO(&set);
32319   FD_SET(16, &set);
32320   close(16);
32321   struct timeval timeout;
32322   timeout.tv_sec = 0;
32323   timeout.tv_usec = 5;
32324   return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
32325
32326   ;
32327   return 0;
32328 }
32329 _ACEOF
32330 if ac_fn_c_try_run "$LINENO"; then :
32331   gl_cv_func_select_detects_ebadf=yes
32332 else
32333   gl_cv_func_select_detects_ebadf=no
32334 fi
32335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32336   conftest.$ac_objext conftest.beam conftest.$ac_ext
32337 fi
32338
32339
32340 fi
32341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
32342 $as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
32343     case $gl_cv_func_select_detects_ebadf in
32344       *yes) ;;
32345       *) REPLACE_SELECT=1 ;;
32346     esac
32347   fi
32348
32349     LIB_SELECT="$LIBSOCKET"
32350   if test $REPLACE_SELECT = 1; then
32351     case "$host_os" in
32352       mingw*)
32353                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32354 /* end confdefs.h.  */
32355
32356 #define WIN32_LEAN_AND_MEAN
32357 #include <windows.h>
32358 int
32359 main ()
32360 {
32361   MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
32362   return 0;
32363 }
32364 _ACEOF
32365 if ac_fn_c_try_link "$LINENO"; then :
32366
32367 else
32368   LIB_SELECT="$LIB_SELECT -luser32"
32369 fi
32370 rm -f core conftest.err conftest.$ac_objext \
32371     conftest$ac_exeext conftest.$ac_ext
32372         ;;
32373     esac
32374   fi
32375
32376
32377   if test $REPLACE_SELECT = 1; then
32378
32379
32380
32381
32382
32383
32384
32385
32386   ggl_LIBOBJS="$ggl_LIBOBJS select.$ac_objext"
32387
32388   fi
32389
32390
32391
32392
32393
32394           GNULIB_SELECT=1
32395
32396
32397
32398
32399
32400 $as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h
32401
32402
32403
32404
32405   if test "$ac_cv_header_winsock2_h" = yes; then
32406
32407
32408
32409
32410
32411
32412
32413
32414   ggl_LIBOBJS="$ggl_LIBOBJS send.$ac_objext"
32415
32416   fi
32417
32418
32419
32420
32421
32422           GNULIB_SEND=1
32423
32424
32425
32426
32427
32428 $as_echo "#define GNULIB_TEST_SEND 1" >>confdefs.h
32429
32430
32431
32432
32433   if test "$ac_cv_header_winsock2_h" = yes; then
32434
32435
32436
32437
32438
32439
32440
32441
32442   ggl_LIBOBJS="$ggl_LIBOBJS sendto.$ac_objext"
32443
32444   fi
32445
32446
32447
32448
32449
32450           GNULIB_SENDTO=1
32451
32452
32453
32454
32455
32456 $as_echo "#define GNULIB_TEST_SENDTO 1" >>confdefs.h
32457
32458
32459
32460
32461                       SERVENT_LIB=
32462   gl_saved_libs="$LIBS"
32463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
32464 $as_echo_n "checking for library containing getservbyname... " >&6; }
32465 if ${ac_cv_search_getservbyname+:} false; then :
32466   $as_echo_n "(cached) " >&6
32467 else
32468   ac_func_search_save_LIBS=$LIBS
32469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32470 /* end confdefs.h.  */
32471
32472 /* Override any GCC internal prototype to avoid an error.
32473    Use char because int might match the return type of a GCC
32474    builtin and then its argument prototype would still apply.  */
32475 #ifdef __cplusplus
32476 extern "C"
32477 #endif
32478 char getservbyname ();
32479 int
32480 main ()
32481 {
32482 return getservbyname ();
32483   ;
32484   return 0;
32485 }
32486 _ACEOF
32487 for ac_lib in '' socket network net; do
32488   if test -z "$ac_lib"; then
32489     ac_res="none required"
32490   else
32491     ac_res=-l$ac_lib
32492     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32493   fi
32494   if ac_fn_c_try_link "$LINENO"; then :
32495   ac_cv_search_getservbyname=$ac_res
32496 fi
32497 rm -f core conftest.err conftest.$ac_objext \
32498     conftest$ac_exeext
32499   if ${ac_cv_search_getservbyname+:} false; then :
32500   break
32501 fi
32502 done
32503 if ${ac_cv_search_getservbyname+:} false; then :
32504
32505 else
32506   ac_cv_search_getservbyname=no
32507 fi
32508 rm conftest.$ac_ext
32509 LIBS=$ac_func_search_save_LIBS
32510 fi
32511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
32512 $as_echo "$ac_cv_search_getservbyname" >&6; }
32513 ac_res=$ac_cv_search_getservbyname
32514 if test "$ac_res" != no; then :
32515   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32516   if test "$ac_cv_search_getservbyname" != "none required"; then
32517        SERVENT_LIB="$ac_cv_search_getservbyname"
32518      fi
32519 fi
32520
32521   LIBS="$gl_saved_libs"
32522   if test -z "$SERVENT_LIB"; then
32523     for ac_func in getservbyname
32524 do :
32525   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
32526 if test "x$ac_cv_func_getservbyname" = xyes; then :
32527   cat >>confdefs.h <<_ACEOF
32528 #define HAVE_GETSERVBYNAME 1
32529 _ACEOF
32530
32531 else
32532
32533       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
32534 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
32535 if ${gl_cv_w32_getservbyname+:} false; then :
32536   $as_echo_n "(cached) " >&6
32537 else
32538   gl_cv_w32_getservbyname=no
32539          gl_save_LIBS="$LIBS"
32540          LIBS="$LIBS -lws2_32"
32541          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32542 /* end confdefs.h.  */
32543
32544 #ifdef HAVE_WINSOCK2_H
32545 #include <winsock2.h>
32546 #endif
32547 #include <stddef.h>
32548
32549 int
32550 main ()
32551 {
32552 getservbyname(NULL,NULL);
32553   ;
32554   return 0;
32555 }
32556 _ACEOF
32557 if ac_fn_c_try_link "$LINENO"; then :
32558   gl_cv_w32_getservbyname=yes
32559 fi
32560 rm -f core conftest.err conftest.$ac_objext \
32561     conftest$ac_exeext conftest.$ac_ext
32562          LIBS="$gl_save_LIBS"
32563
32564 fi
32565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
32566 $as_echo "$gl_cv_w32_getservbyname" >&6; }
32567       if test "$gl_cv_w32_getservbyname" = "yes"; then
32568         SERVENT_LIB="-lws2_32"
32569       fi
32570
32571 fi
32572 done
32573
32574   fi
32575
32576
32577
32578
32579      if test $ac_cv_func_setenv = no; then
32580     HAVE_SETENV=0
32581   else
32582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
32583 $as_echo_n "checking whether setenv validates arguments... " >&6; }
32584 if ${gl_cv_func_setenv_works+:} false; then :
32585   $as_echo_n "(cached) " >&6
32586 else
32587   if test "$cross_compiling" = yes; then :
32588   case "$host_os" in
32589                  # Guess yes on glibc systems.
32590          *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
32591                  # If we don't know, assume the worst.
32592          *)      gl_cv_func_setenv_works="guessing no" ;;
32593        esac
32594
32595 else
32596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32597 /* end confdefs.h.  */
32598
32599        #include <stdlib.h>
32600        #include <errno.h>
32601        #include <string.h>
32602
32603 int
32604 main ()
32605 {
32606
32607        int result = 0;
32608        {
32609          if (setenv ("", "", 0) != -1)
32610            result |= 1;
32611          else if (errno != EINVAL)
32612            result |= 2;
32613        }
32614        {
32615          if (setenv ("a", "=", 1) != 0)
32616            result |= 4;
32617          else if (strcmp (getenv ("a"), "=") != 0)
32618            result |= 8;
32619        }
32620        return result;
32621
32622   ;
32623   return 0;
32624 }
32625 _ACEOF
32626 if ac_fn_c_try_run "$LINENO"; then :
32627   gl_cv_func_setenv_works=yes
32628 else
32629   gl_cv_func_setenv_works=no
32630 fi
32631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32632   conftest.$ac_objext conftest.beam conftest.$ac_ext
32633 fi
32634
32635 fi
32636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
32637 $as_echo "$gl_cv_func_setenv_works" >&6; }
32638     case "$gl_cv_func_setenv_works" in
32639       *yes) ;;
32640       *)
32641         REPLACE_SETENV=1
32642         ;;
32643     esac
32644   fi
32645
32646   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
32647
32648
32649
32650
32651
32652
32653
32654
32655   ggl_LIBOBJS="$ggl_LIBOBJS setenv.$ac_objext"
32656
32657   fi
32658
32659
32660
32661
32662
32663           GNULIB_SETENV=1
32664
32665
32666
32667
32668
32669 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
32670
32671
32672
32673
32674   if test "$ac_cv_header_winsock2_h" = yes; then
32675
32676
32677
32678
32679
32680
32681
32682
32683   ggl_LIBOBJS="$ggl_LIBOBJS setsockopt.$ac_objext"
32684
32685   fi
32686
32687
32688
32689
32690
32691           GNULIB_SETSOCKOPT=1
32692
32693
32694
32695
32696
32697 $as_echo "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h
32698
32699
32700
32701
32702   if test "$ac_cv_header_winsock2_h" = yes; then
32703
32704
32705
32706
32707
32708
32709
32710
32711   ggl_LIBOBJS="$ggl_LIBOBJS shutdown.$ac_objext"
32712
32713   fi
32714
32715
32716
32717
32718
32719           GNULIB_SHUTDOWN=1
32720
32721
32722
32723
32724
32725 $as_echo "#define GNULIB_TEST_SHUTDOWN 1" >>confdefs.h
32726
32727
32728
32729
32730
32731
32732
32733
32734
32735
32736
32737
32738
32739
32740      if test $gl_cv_have_include_next = yes; then
32741        gl_cv_next_signal_h='<'signal.h'>'
32742      else
32743        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
32744 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
32745 if ${gl_cv_next_signal_h+:} false; then :
32746   $as_echo_n "(cached) " >&6
32747 else
32748
32749
32750
32751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32752 /* end confdefs.h.  */
32753 #include <signal.h>
32754 _ACEOF
32755                 case "$host_os" in
32756     aix*) gl_absname_cpp="$ac_cpp -C" ;;
32757     *)    gl_absname_cpp="$ac_cpp" ;;
32758   esac
32759
32760   case "$host_os" in
32761     mingw*)
32762                                           gl_dirsep_regex='[/\\]'
32763       ;;
32764     *)
32765       gl_dirsep_regex='\/'
32766       ;;
32767   esac
32768       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32769   gl_header_literal_regex=`echo 'signal.h' \
32770                            | sed -e "$gl_make_literal_regex_sed"`
32771   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32772       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32773       s|^/[^/]|//&|
32774       p
32775       q
32776     }'
32777
32778         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32779   sed -n "$gl_absolute_header_sed"`
32780
32781            gl_header=$gl_cv_absolute_signal_h
32782            gl_cv_next_signal_h='"'$gl_header'"'
32783
32784
32785 fi
32786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
32787 $as_echo "$gl_cv_next_signal_h" >&6; }
32788      fi
32789      NEXT_SIGNAL_H=$gl_cv_next_signal_h
32790
32791      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32792        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32793        gl_next_as_first_directive='<'signal.h'>'
32794      else
32795        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32796        gl_next_as_first_directive=$gl_cv_next_signal_h
32797      fi
32798      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
32799
32800
32801
32802
32803
32804 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
32805 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
32806   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
32807 #include <signal.h>
32808
32809 "
32810 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
32811
32812 else
32813   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
32814 fi
32815
32816
32817
32818
32819
32820
32821
32822   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
32823 #include <signal.h>
32824
32825 "
32826 if test "x$ac_cv_type_sighandler_t" = xyes; then :
32827
32828 else
32829   HAVE_SIGHANDLER_T=0
32830 fi
32831
32832
32833
32834     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
32835     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
32837 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32838 if eval \${$as_gl_Symbol+:} false; then :
32839   $as_echo_n "(cached) " >&6
32840 else
32841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32842 /* end confdefs.h.  */
32843 #include <signal.h>
32844
32845 int
32846 main ()
32847 {
32848 #undef $gl_func
32849   (void) $gl_func;
32850   ;
32851   return 0;
32852 }
32853 _ACEOF
32854 if ac_fn_c_try_compile "$LINENO"; then :
32855   eval "$as_gl_Symbol=yes"
32856 else
32857   eval "$as_gl_Symbol=no"
32858 fi
32859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32860 fi
32861 eval ac_res=\$$as_gl_Symbol
32862                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32863 $as_echo "$ac_res" >&6; }
32864     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
32865   cat >>confdefs.h <<_ACEOF
32866 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32867 _ACEOF
32868
32869                      eval ac_cv_have_decl_$gl_func=yes
32870 fi
32871       done
32872
32873
32874
32875   for ac_header in stdint.h
32876 do :
32877   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
32878 if test "x$ac_cv_header_stdint_h" = xyes; then :
32879   cat >>confdefs.h <<_ACEOF
32880 #define HAVE_STDINT_H 1
32881 _ACEOF
32882
32883 fi
32884
32885 done
32886
32887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
32888 $as_echo_n "checking for SIZE_MAX... " >&6; }
32889 if ${gl_cv_size_max+:} false; then :
32890   $as_echo_n "(cached) " >&6
32891 else
32892
32893     gl_cv_size_max=
32894     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32895 /* end confdefs.h.  */
32896
32897 #include <limits.h>
32898 #if HAVE_STDINT_H
32899 #include <stdint.h>
32900 #endif
32901 #ifdef SIZE_MAX
32902 Found it
32903 #endif
32904
32905 _ACEOF
32906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32907   $EGREP "Found it" >/dev/null 2>&1; then :
32908   gl_cv_size_max=yes
32909 fi
32910 rm -f conftest*
32911
32912     if test -z "$gl_cv_size_max"; then
32913                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
32914 #include <limits.h>"; then :
32915
32916 else
32917   size_t_bits_minus_1=
32918 fi
32919
32920       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
32921
32922 else
32923   fits_in_uint=
32924 fi
32925
32926       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
32927         if test $fits_in_uint = 1; then
32928                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32929 /* end confdefs.h.  */
32930 #include <stddef.h>
32931             extern size_t foo;
32932             extern unsigned long foo;
32933
32934 int
32935 main ()
32936 {
32937
32938   ;
32939   return 0;
32940 }
32941 _ACEOF
32942 if ac_fn_c_try_compile "$LINENO"; then :
32943   fits_in_uint=0
32944 fi
32945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32946         fi
32947                                 if test $fits_in_uint = 1; then
32948           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
32949         else
32950           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
32951         fi
32952       else
32953                 gl_cv_size_max='((size_t)~(size_t)0)'
32954       fi
32955     fi
32956
32957 fi
32958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
32959 $as_echo "$gl_cv_size_max" >&6; }
32960   if test "$gl_cv_size_max" != yes; then
32961
32962 cat >>confdefs.h <<_ACEOF
32963 #define SIZE_MAX $gl_cv_size_max
32964 _ACEOF
32965
32966   fi
32967
32968
32969
32970
32971   gl_cv_func_snprintf_usable=no
32972   for ac_func in snprintf
32973 do :
32974   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
32975 if test "x$ac_cv_func_snprintf" = xyes; then :
32976   cat >>confdefs.h <<_ACEOF
32977 #define HAVE_SNPRINTF 1
32978 _ACEOF
32979
32980 fi
32981 done
32982
32983   if test $ac_cv_func_snprintf = yes; then
32984
32985
32986
32987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
32988 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
32989 if ${gl_cv_func_snprintf_size1+:} false; then :
32990   $as_echo_n "(cached) " >&6
32991 else
32992
32993       if test "$cross_compiling" = yes; then :
32994   gl_cv_func_snprintf_size1="guessing yes"
32995 else
32996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32997 /* end confdefs.h.  */
32998
32999 #include <stdio.h>
33000 #if HAVE_SNPRINTF
33001 # define my_snprintf snprintf
33002 #else
33003 # include <stdarg.h>
33004 static int my_snprintf (char *buf, int size, const char *format, ...)
33005 {
33006   va_list args;
33007   int ret;
33008   va_start (args, format);
33009   ret = vsnprintf (buf, size, format, args);
33010   va_end (args);
33011   return ret;
33012 }
33013 #endif
33014 int main()
33015 {
33016   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
33017   my_snprintf (buf, 1, "%d", 12345);
33018   return buf[1] != 'E';
33019 }
33020 _ACEOF
33021 if ac_fn_c_try_run "$LINENO"; then :
33022   gl_cv_func_snprintf_size1=yes
33023 else
33024   gl_cv_func_snprintf_size1=no
33025 fi
33026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33027   conftest.$ac_objext conftest.beam conftest.$ac_ext
33028 fi
33029
33030
33031 fi
33032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
33033 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
33034
33035     case "$gl_cv_func_snprintf_size1" in
33036       *yes)
33037
33038         case "$gl_cv_func_snprintf_retval_c99" in
33039           *yes)
33040
33041
33042      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
33043 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
33044 if ${gl_cv_func_printf_positions+:} false; then :
33045   $as_echo_n "(cached) " >&6
33046 else
33047
33048       if test "$cross_compiling" = yes; then :
33049
33050          case "$host_os" in
33051            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
33052                          gl_cv_func_printf_positions="guessing no";;
33053            beos*)        gl_cv_func_printf_positions="guessing no";;
33054            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
33055            *)            gl_cv_func_printf_positions="guessing yes";;
33056          esac
33057
33058 else
33059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33060 /* end confdefs.h.  */
33061
33062 #include <stdio.h>
33063 #include <string.h>
33064 /* The string "%2$d %1$d", with dollar characters protected from the shell's
33065    dollar expansion (possibly an autoconf bug).  */
33066 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
33067 static char buf[100];
33068 int main ()
33069 {
33070   sprintf (buf, format, 33, 55);
33071   return (strcmp (buf, "55 33") != 0);
33072 }
33073 _ACEOF
33074 if ac_fn_c_try_run "$LINENO"; then :
33075   gl_cv_func_printf_positions=yes
33076 else
33077   gl_cv_func_printf_positions=no
33078 fi
33079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33080   conftest.$ac_objext conftest.beam conftest.$ac_ext
33081 fi
33082
33083
33084 fi
33085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
33086 $as_echo "$gl_cv_func_printf_positions" >&6; }
33087
33088             case "$gl_cv_func_printf_positions" in
33089               *yes)
33090                 gl_cv_func_snprintf_usable=yes
33091                 ;;
33092             esac
33093             ;;
33094         esac
33095         ;;
33096     esac
33097   fi
33098   if test $gl_cv_func_snprintf_usable = no; then
33099
33100
33101
33102
33103
33104
33105
33106
33107
33108
33109   ggl_LIBOBJS="$ggl_LIBOBJS snprintf.$ac_objext"
33110
33111   if test $ac_cv_func_snprintf = yes; then
33112     REPLACE_SNPRINTF=1
33113   fi
33114   :
33115
33116   fi
33117
33118   :
33119
33120
33121
33122
33123
33124   if test $ac_cv_have_decl_snprintf = no; then
33125     HAVE_DECL_SNPRINTF=0
33126   fi
33127
33128
33129
33130
33131
33132
33133           GNULIB_SNPRINTF=1
33134
33135
33136
33137
33138
33139 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
33140
33141
33142
33143
33144
33145 cat >>confdefs.h <<_ACEOF
33146 #define GNULIB_SNPRINTF 1
33147 _ACEOF
33148
33149
33150
33151   if test "$ac_cv_header_winsock2_h" = yes; then
33152
33153
33154
33155
33156
33157
33158
33159
33160   ggl_LIBOBJS="$ggl_LIBOBJS socket.$ac_objext"
33161
33162   fi
33163   # When this module is used, sockets may actually occur as file descriptors,
33164   # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
33165
33166
33167
33168   if test "$ac_cv_header_winsock2_h" = yes; then
33169     UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
33170     SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
33171   fi
33172
33173
33174
33175
33176
33177           GNULIB_SOCKET=1
33178
33179
33180
33181
33182
33183 $as_echo "#define GNULIB_TEST_SOCKET 1" >>confdefs.h
33184
33185
33186
33187
33188
33189      ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
33190 /* <sys/types.h> is not needed according to POSIX, but the
33191    <sys/socket.h> in i386-unknown-freebsd4.10 and
33192    powerpc-apple-darwin5.5 required it. */
33193 #include <sys/types.h>
33194 #if HAVE_SYS_SOCKET_H
33195 # include <sys/socket.h>
33196 #elif HAVE_WS2TCPIP_H
33197 # include <ws2tcpip.h>
33198 #endif
33199
33200 "
33201 if test "x$ac_cv_type_socklen_t" = xyes; then :
33202
33203 else
33204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
33205 $as_echo_n "checking for socklen_t equivalent... " >&6; }
33206       if ${gl_cv_socklen_t_equiv+:} false; then :
33207   $as_echo_n "(cached) " >&6
33208 else
33209   # Systems have either "struct sockaddr *" or
33210          # "void *" as the second argument to getpeername
33211          gl_cv_socklen_t_equiv=
33212          for arg2 in "struct sockaddr" void; do
33213            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
33214              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33215 /* end confdefs.h.  */
33216 #include <sys/types.h>
33217                    #include <sys/socket.h>
33218
33219                    int getpeername (int, $arg2 *, $t *);
33220 int
33221 main ()
33222 {
33223 $t len;
33224                   getpeername (0, 0, &len);
33225   ;
33226   return 0;
33227 }
33228 _ACEOF
33229 if ac_fn_c_try_compile "$LINENO"; then :
33230   gl_cv_socklen_t_equiv="$t"
33231 fi
33232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33233              test "$gl_cv_socklen_t_equiv" != "" && break
33234            done
33235            test "$gl_cv_socklen_t_equiv" != "" && break
33236          done
33237
33238 fi
33239
33240       if test "$gl_cv_socklen_t_equiv" = ""; then
33241         as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
33242       fi
33243       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
33244 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
33245
33246 cat >>confdefs.h <<_ACEOF
33247 #define socklen_t $gl_cv_socklen_t_equiv
33248 _ACEOF
33249
33250 fi
33251
33252
33253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
33254 $as_echo_n "checking for ssize_t... " >&6; }
33255 if ${gt_cv_ssize_t+:} false; then :
33256   $as_echo_n "(cached) " >&6
33257 else
33258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33259 /* end confdefs.h.  */
33260 #include <sys/types.h>
33261 int
33262 main ()
33263 {
33264 int x = sizeof (ssize_t *) + sizeof (ssize_t);
33265             return !x;
33266   ;
33267   return 0;
33268 }
33269 _ACEOF
33270 if ac_fn_c_try_compile "$LINENO"; then :
33271   gt_cv_ssize_t=yes
33272 else
33273   gt_cv_ssize_t=no
33274 fi
33275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33276 fi
33277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
33278 $as_echo "$gt_cv_ssize_t" >&6; }
33279   if test $gt_cv_ssize_t = no; then
33280
33281 $as_echo "#define ssize_t int" >>confdefs.h
33282
33283   fi
33284
33285
33286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
33287 $as_echo_n "checking for working stdalign.h... " >&6; }
33288 if ${gl_cv_header_working_stdalign_h+:} false; then :
33289   $as_echo_n "(cached) " >&6
33290 else
33291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33292 /* end confdefs.h.  */
33293 #include <stdalign.h>
33294             #include <stddef.h>
33295
33296             /* Test that alignof yields a result consistent with offsetof.
33297                This catches GCC bug 52023
33298                <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
33299             #ifdef __cplusplus
33300                template <class t> struct alignof_helper { char a; t b; };
33301             # define ao(type) offsetof (alignof_helper<type>, b)
33302             #else
33303             # define ao(type) offsetof (struct { char a; type b; }, b)
33304             #endif
33305             char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
33306             char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
33307             char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
33308
33309             /* Test _Alignas only on platforms where gnulib can help.  */
33310             #if \
33311                 ((defined __cplusplus && 201103 <= __cplusplus) \
33312                  || (defined __APPLE__ && defined __MACH__ \
33313                      ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
33314                      : __GNUC__) \
33315                  || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
33316                  || __ICC || 0x5110 <= __SUNPRO_C \
33317                  || 1300 <= _MSC_VER)
33318               struct alignas_test { char c; char alignas (8) alignas_8; };
33319               char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
33320                                 ? 1 : -1];
33321             #endif
33322
33323 int
33324 main ()
33325 {
33326
33327   ;
33328   return 0;
33329 }
33330 _ACEOF
33331 if ac_fn_c_try_compile "$LINENO"; then :
33332   gl_cv_header_working_stdalign_h=yes
33333 else
33334   gl_cv_header_working_stdalign_h=no
33335 fi
33336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33337 fi
33338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
33339 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
33340
33341   if test $gl_cv_header_working_stdalign_h = yes; then
33342     STDALIGN_H=''
33343   else
33344     STDALIGN_H='stdalign.h'
33345   fi
33346
33347
33348    if test -n "$STDALIGN_H"; then
33349   GL_GENERATE_STDALIGN_H_TRUE=
33350   GL_GENERATE_STDALIGN_H_FALSE='#'
33351 else
33352   GL_GENERATE_STDALIGN_H_TRUE='#'
33353   GL_GENERATE_STDALIGN_H_FALSE=
33354 fi
33355
33356
33357
33358
33359
33360   # Define two additional variables used in the Makefile substitution.
33361
33362   if test "$ac_cv_header_stdbool_h" = yes; then
33363     STDBOOL_H=''
33364   else
33365     STDBOOL_H='stdbool.h'
33366   fi
33367
33368    if test -n "$STDBOOL_H"; then
33369   GL_GENERATE_STDBOOL_H_TRUE=
33370   GL_GENERATE_STDBOOL_H_FALSE='#'
33371 else
33372   GL_GENERATE_STDBOOL_H_TRUE='#'
33373   GL_GENERATE_STDBOOL_H_FALSE=
33374 fi
33375
33376
33377   if test "$ac_cv_type__Bool" = yes; then
33378     HAVE__BOOL=1
33379   else
33380     HAVE__BOOL=0
33381   fi
33382
33383
33384
33385
33386
33387   STDDEF_H=
33388   ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
33389
33390 "
33391 if test "x$ac_cv_type_max_align_t" = xyes; then :
33392
33393 else
33394   HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
33395 fi
33396
33397   if test $gt_cv_c_wchar_t = no; then
33398     HAVE_WCHAR_T=0
33399     STDDEF_H=stddef.h
33400   fi
33401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
33402 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
33403 if ${gl_cv_decl_null_works+:} false; then :
33404   $as_echo_n "(cached) " >&6
33405 else
33406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33407 /* end confdefs.h.  */
33408 #include <stddef.h>
33409       int test[2 * (sizeof NULL == sizeof (void *)) -1];
33410
33411 int
33412 main ()
33413 {
33414
33415   ;
33416   return 0;
33417 }
33418 _ACEOF
33419 if ac_fn_c_try_compile "$LINENO"; then :
33420   gl_cv_decl_null_works=yes
33421 else
33422   gl_cv_decl_null_works=no
33423 fi
33424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33425 fi
33426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
33427 $as_echo "$gl_cv_decl_null_works" >&6; }
33428   if test $gl_cv_decl_null_works = no; then
33429     REPLACE_NULL=1
33430     STDDEF_H=stddef.h
33431   fi
33432
33433    if test -n "$STDDEF_H"; then
33434   GL_GENERATE_STDDEF_H_TRUE=
33435   GL_GENERATE_STDDEF_H_FALSE='#'
33436 else
33437   GL_GENERATE_STDDEF_H_TRUE='#'
33438   GL_GENERATE_STDDEF_H_FALSE=
33439 fi
33440
33441   if test -n "$STDDEF_H"; then
33442
33443
33444
33445
33446
33447
33448
33449
33450      if test $gl_cv_have_include_next = yes; then
33451        gl_cv_next_stddef_h='<'stddef.h'>'
33452      else
33453        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
33454 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
33455 if ${gl_cv_next_stddef_h+:} false; then :
33456   $as_echo_n "(cached) " >&6
33457 else
33458
33459
33460
33461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33462 /* end confdefs.h.  */
33463 #include <stddef.h>
33464 _ACEOF
33465                 case "$host_os" in
33466     aix*) gl_absname_cpp="$ac_cpp -C" ;;
33467     *)    gl_absname_cpp="$ac_cpp" ;;
33468   esac
33469
33470   case "$host_os" in
33471     mingw*)
33472                                           gl_dirsep_regex='[/\\]'
33473       ;;
33474     *)
33475       gl_dirsep_regex='\/'
33476       ;;
33477   esac
33478       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33479   gl_header_literal_regex=`echo 'stddef.h' \
33480                            | sed -e "$gl_make_literal_regex_sed"`
33481   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33482       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33483       s|^/[^/]|//&|
33484       p
33485       q
33486     }'
33487
33488         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33489   sed -n "$gl_absolute_header_sed"`
33490
33491            gl_header=$gl_cv_absolute_stddef_h
33492            gl_cv_next_stddef_h='"'$gl_header'"'
33493
33494
33495 fi
33496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
33497 $as_echo "$gl_cv_next_stddef_h" >&6; }
33498      fi
33499      NEXT_STDDEF_H=$gl_cv_next_stddef_h
33500
33501      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33502        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33503        gl_next_as_first_directive='<'stddef.h'>'
33504      else
33505        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33506        gl_next_as_first_directive=$gl_cv_next_stddef_h
33507      fi
33508      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
33509
33510
33511
33512
33513   fi
33514
33515
33516
33517
33518
33519
33520
33521
33522
33523
33524
33525
33526
33527
33528      if test $gl_cv_have_include_next = yes; then
33529        gl_cv_next_stdio_h='<'stdio.h'>'
33530      else
33531        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
33532 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
33533 if ${gl_cv_next_stdio_h+:} false; then :
33534   $as_echo_n "(cached) " >&6
33535 else
33536
33537
33538
33539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33540 /* end confdefs.h.  */
33541 #include <stdio.h>
33542 _ACEOF
33543                 case "$host_os" in
33544     aix*) gl_absname_cpp="$ac_cpp -C" ;;
33545     *)    gl_absname_cpp="$ac_cpp" ;;
33546   esac
33547
33548   case "$host_os" in
33549     mingw*)
33550                                           gl_dirsep_regex='[/\\]'
33551       ;;
33552     *)
33553       gl_dirsep_regex='\/'
33554       ;;
33555   esac
33556       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33557   gl_header_literal_regex=`echo 'stdio.h' \
33558                            | sed -e "$gl_make_literal_regex_sed"`
33559   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33560       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33561       s|^/[^/]|//&|
33562       p
33563       q
33564     }'
33565
33566         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33567   sed -n "$gl_absolute_header_sed"`
33568
33569            gl_header=$gl_cv_absolute_stdio_h
33570            gl_cv_next_stdio_h='"'$gl_header'"'
33571
33572
33573 fi
33574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
33575 $as_echo "$gl_cv_next_stdio_h" >&6; }
33576      fi
33577      NEXT_STDIO_H=$gl_cv_next_stdio_h
33578
33579      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33580        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33581        gl_next_as_first_directive='<'stdio.h'>'
33582      else
33583        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33584        gl_next_as_first_directive=$gl_cv_next_stdio_h
33585      fi
33586      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
33587
33588
33589
33590
33591
33592       GNULIB_FSCANF=1
33593
33594
33595 cat >>confdefs.h <<_ACEOF
33596 #define GNULIB_FSCANF 1
33597 _ACEOF
33598
33599
33600   GNULIB_SCANF=1
33601
33602
33603 cat >>confdefs.h <<_ACEOF
33604 #define GNULIB_SCANF 1
33605 _ACEOF
33606
33607
33608   GNULIB_FGETC=1
33609   GNULIB_GETC=1
33610   GNULIB_GETCHAR=1
33611   GNULIB_FGETS=1
33612   GNULIB_FREAD=1
33613
33614
33615       GNULIB_FPRINTF=1
33616   GNULIB_PRINTF=1
33617   GNULIB_VFPRINTF=1
33618   GNULIB_VPRINTF=1
33619   GNULIB_FPUTC=1
33620   GNULIB_PUTC=1
33621   GNULIB_PUTCHAR=1
33622   GNULIB_FPUTS=1
33623   GNULIB_PUTS=1
33624   GNULIB_FWRITE=1
33625
33626
33627
33628
33629     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
33630     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
33632 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33633 if eval \${$as_gl_Symbol+:} false; then :
33634   $as_echo_n "(cached) " >&6
33635 else
33636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33637 /* end confdefs.h.  */
33638 #include <stdio.h>
33639
33640 int
33641 main ()
33642 {
33643 #undef $gl_func
33644   (void) $gl_func;
33645   ;
33646   return 0;
33647 }
33648 _ACEOF
33649 if ac_fn_c_try_compile "$LINENO"; then :
33650   eval "$as_gl_Symbol=yes"
33651 else
33652   eval "$as_gl_Symbol=no"
33653 fi
33654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33655 fi
33656 eval ac_res=\$$as_gl_Symbol
33657                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33658 $as_echo "$ac_res" >&6; }
33659     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
33660   cat >>confdefs.h <<_ACEOF
33661 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33662 _ACEOF
33663
33664                      eval ac_cv_have_decl_$gl_func=yes
33665 fi
33666       done
33667
33668
33669
33670
33671
33672
33673
33674
33675
33676
33677
33678
33679      if test $gl_cv_have_include_next = yes; then
33680        gl_cv_next_stdlib_h='<'stdlib.h'>'
33681      else
33682        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
33683 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
33684 if ${gl_cv_next_stdlib_h+:} false; then :
33685   $as_echo_n "(cached) " >&6
33686 else
33687
33688
33689
33690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33691 /* end confdefs.h.  */
33692 #include <stdlib.h>
33693 _ACEOF
33694                 case "$host_os" in
33695     aix*) gl_absname_cpp="$ac_cpp -C" ;;
33696     *)    gl_absname_cpp="$ac_cpp" ;;
33697   esac
33698
33699   case "$host_os" in
33700     mingw*)
33701                                           gl_dirsep_regex='[/\\]'
33702       ;;
33703     *)
33704       gl_dirsep_regex='\/'
33705       ;;
33706   esac
33707       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33708   gl_header_literal_regex=`echo 'stdlib.h' \
33709                            | sed -e "$gl_make_literal_regex_sed"`
33710   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33711       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33712       s|^/[^/]|//&|
33713       p
33714       q
33715     }'
33716
33717         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33718   sed -n "$gl_absolute_header_sed"`
33719
33720            gl_header=$gl_cv_absolute_stdlib_h
33721            gl_cv_next_stdlib_h='"'$gl_header'"'
33722
33723
33724 fi
33725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
33726 $as_echo "$gl_cv_next_stdlib_h" >&6; }
33727      fi
33728      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
33729
33730      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33731        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33732        gl_next_as_first_directive='<'stdlib.h'>'
33733      else
33734        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33735        gl_next_as_first_directive=$gl_cv_next_stdlib_h
33736      fi
33737      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
33738
33739
33740
33741
33742
33743
33744     for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt     initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps     posix_openpt ptsname ptsname_r random random_r realpath rpmatch     secure_getenv setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
33745     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
33747 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33748 if eval \${$as_gl_Symbol+:} false; then :
33749   $as_echo_n "(cached) " >&6
33750 else
33751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33752 /* end confdefs.h.  */
33753 #include <stdlib.h>
33754 #if HAVE_SYS_LOADAVG_H
33755 # include <sys/loadavg.h>
33756 #endif
33757 #if HAVE_RANDOM_H
33758 # include <random.h>
33759 #endif
33760
33761 int
33762 main ()
33763 {
33764 #undef $gl_func
33765   (void) $gl_func;
33766   ;
33767   return 0;
33768 }
33769 _ACEOF
33770 if ac_fn_c_try_compile "$LINENO"; then :
33771   eval "$as_gl_Symbol=yes"
33772 else
33773   eval "$as_gl_Symbol=no"
33774 fi
33775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33776 fi
33777 eval ac_res=\$$as_gl_Symbol
33778                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33779 $as_echo "$ac_res" >&6; }
33780     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
33781   cat >>confdefs.h <<_ACEOF
33782 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33783 _ACEOF
33784
33785                      eval ac_cv_have_decl_$gl_func=yes
33786 fi
33787       done
33788
33789
33790
33791
33792
33793
33794   :
33795
33796
33797
33798
33799
33800   if test $ac_cv_func_strdup = yes; then
33801     if test $gl_cv_func_malloc_posix != yes; then
33802       REPLACE_STRDUP=1
33803     fi
33804   fi
33805
33806   :
33807
33808
33809
33810
33811
33812   if test $ac_cv_have_decl_strdup = no; then
33813     HAVE_DECL_STRDUP=0
33814   fi
33815
33816   if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
33817
33818
33819
33820
33821
33822
33823
33824
33825   ggl_LIBOBJS="$ggl_LIBOBJS strdup.$ac_objext"
33826
33827     :
33828   fi
33829
33830
33831
33832
33833
33834           GNULIB_STRDUP=1
33835
33836
33837
33838
33839
33840 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
33841
33842
33843
33844
33845
33846
33847
33848
33849   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
33850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
33851 $as_echo_n "checking for working strerror function... " >&6; }
33852 if ${gl_cv_func_working_strerror+:} false; then :
33853   $as_echo_n "(cached) " >&6
33854 else
33855   if test "$cross_compiling" = yes; then :
33856   case "$host_os" in
33857                    # Guess yes on glibc systems.
33858            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
33859                    # If we don't know, assume the worst.
33860            *)      gl_cv_func_working_strerror="guessing no" ;;
33861          esac
33862
33863 else
33864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33865 /* end confdefs.h.  */
33866 #include <string.h>
33867
33868 int
33869 main ()
33870 {
33871 if (!*strerror (-2)) return 1;
33872   ;
33873   return 0;
33874 }
33875 _ACEOF
33876 if ac_fn_c_try_run "$LINENO"; then :
33877   gl_cv_func_working_strerror=yes
33878 else
33879   gl_cv_func_working_strerror=no
33880 fi
33881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33882   conftest.$ac_objext conftest.beam conftest.$ac_ext
33883 fi
33884
33885
33886 fi
33887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
33888 $as_echo "$gl_cv_func_working_strerror" >&6; }
33889     case "$gl_cv_func_working_strerror" in
33890       *yes) ;;
33891       *)
33892                         REPLACE_STRERROR=1
33893         ;;
33894     esac
33895
33896   else
33897             REPLACE_STRERROR=1
33898   fi
33899
33900   if test $REPLACE_STRERROR = 1; then
33901
33902
33903
33904
33905
33906
33907
33908
33909   ggl_LIBOBJS="$ggl_LIBOBJS strerror.$ac_objext"
33910
33911   fi
33912
33913
33914 cat >>confdefs.h <<_ACEOF
33915 #define GNULIB_STRERROR 1
33916 _ACEOF
33917
33918
33919
33920
33921
33922
33923
33924           GNULIB_STRERROR=1
33925
33926
33927
33928
33929
33930 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
33931
33932
33933
33934
33935
33936   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
33937
33938
33939
33940
33941
33942
33943
33944
33945   ggl_LIBOBJS="$ggl_LIBOBJS strerror-override.$ac_objext"
33946
33947
33948
33949
33950
33951   :
33952
33953
33954
33955
33956
33957   if test $ac_cv_header_sys_socket_h != yes; then
33958                     for ac_header in winsock2.h
33959 do :
33960   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
33961 if test "x$ac_cv_header_winsock2_h" = xyes; then :
33962   cat >>confdefs.h <<_ACEOF
33963 #define HAVE_WINSOCK2_H 1
33964 _ACEOF
33965
33966 fi
33967
33968 done
33969
33970   fi
33971   if test "$ac_cv_header_winsock2_h" = yes; then
33972     HAVE_WINSOCK2_H=1
33973     UNISTD_H_HAVE_WINSOCK2_H=1
33974     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
33975   else
33976     HAVE_WINSOCK2_H=0
33977   fi
33978
33979
33980   fi
33981
33982
33983
33984
33985
33986
33987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
33988 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
33989 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
33990   $as_echo_n "(cached) " >&6
33991 else
33992
33993                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33994 /* end confdefs.h.  */
33995 #include <sys/select.h>
33996 int
33997 main ()
33998 {
33999 struct timeval b;
34000   ;
34001   return 0;
34002 }
34003 _ACEOF
34004 if ac_fn_c_try_compile "$LINENO"; then :
34005   gl_cv_header_sys_select_h_selfcontained=yes
34006 else
34007   gl_cv_header_sys_select_h_selfcontained=no
34008 fi
34009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34010                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
34011         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34012 /* end confdefs.h.  */
34013 #include <sys/select.h>
34014 int
34015 main ()
34016 {
34017 int memset; int bzero;
34018   ;
34019   return 0;
34020 }
34021
34022 _ACEOF
34023 if ac_fn_c_try_compile "$LINENO"; then :
34024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34025 /* end confdefs.h.  */
34026 #include <sys/select.h>
34027 int
34028 main ()
34029 {
34030
34031                   #undef memset
34032                   #define memset nonexistent_memset
34033                   extern
34034                   #ifdef __cplusplus
34035                   "C"
34036                   #endif
34037                   void *memset (void *, int, unsigned long);
34038                   #undef bzero
34039                   #define bzero nonexistent_bzero
34040                   extern
34041                   #ifdef __cplusplus
34042                   "C"
34043                   #endif
34044                   void bzero (void *, unsigned long);
34045                   fd_set fds;
34046                   FD_ZERO (&fds);
34047
34048   ;
34049   return 0;
34050 }
34051
34052 _ACEOF
34053 if ac_fn_c_try_link "$LINENO"; then :
34054
34055 else
34056   gl_cv_header_sys_select_h_selfcontained=no
34057 fi
34058 rm -f core conftest.err conftest.$ac_objext \
34059     conftest$ac_exeext conftest.$ac_ext
34060
34061 fi
34062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34063       fi
34064
34065 fi
34066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
34067 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
34068
34069
34070
34071
34072
34073
34074   :
34075
34076
34077
34078
34079
34080
34081
34082
34083      if test $gl_cv_have_include_next = yes; then
34084        gl_cv_next_sys_select_h='<'sys/select.h'>'
34085      else
34086        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
34087 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
34088 if ${gl_cv_next_sys_select_h+:} false; then :
34089   $as_echo_n "(cached) " >&6
34090 else
34091
34092              if test $ac_cv_header_sys_select_h = yes; then
34093
34094
34095
34096
34097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34098 /* end confdefs.h.  */
34099 #include <sys/select.h>
34100 _ACEOF
34101                 case "$host_os" in
34102     aix*) gl_absname_cpp="$ac_cpp -C" ;;
34103     *)    gl_absname_cpp="$ac_cpp" ;;
34104   esac
34105
34106   case "$host_os" in
34107     mingw*)
34108                                           gl_dirsep_regex='[/\\]'
34109       ;;
34110     *)
34111       gl_dirsep_regex='\/'
34112       ;;
34113   esac
34114       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34115   gl_header_literal_regex=`echo 'sys/select.h' \
34116                            | sed -e "$gl_make_literal_regex_sed"`
34117   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34118       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34119       s|^/[^/]|//&|
34120       p
34121       q
34122     }'
34123
34124         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34125   sed -n "$gl_absolute_header_sed"`
34126
34127            gl_header=$gl_cv_absolute_sys_select_h
34128            gl_cv_next_sys_select_h='"'$gl_header'"'
34129           else
34130                gl_cv_next_sys_select_h='<'sys/select.h'>'
34131              fi
34132
34133
34134 fi
34135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
34136 $as_echo "$gl_cv_next_sys_select_h" >&6; }
34137      fi
34138      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
34139
34140      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34141        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34142        gl_next_as_first_directive='<'sys/select.h'>'
34143      else
34144        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34145        gl_next_as_first_directive=$gl_cv_next_sys_select_h
34146      fi
34147      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
34148
34149
34150
34151
34152   if test $ac_cv_header_sys_select_h = yes; then
34153     HAVE_SYS_SELECT_H=1
34154   else
34155     HAVE_SYS_SELECT_H=0
34156   fi
34157
34158
34159
34160
34161
34162   :
34163
34164
34165
34166
34167
34168   if test $ac_cv_header_sys_socket_h != yes; then
34169                     for ac_header in winsock2.h
34170 do :
34171   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
34172 if test "x$ac_cv_header_winsock2_h" = xyes; then :
34173   cat >>confdefs.h <<_ACEOF
34174 #define HAVE_WINSOCK2_H 1
34175 _ACEOF
34176
34177 fi
34178
34179 done
34180
34181   fi
34182   if test "$ac_cv_header_winsock2_h" = yes; then
34183     HAVE_WINSOCK2_H=1
34184     UNISTD_H_HAVE_WINSOCK2_H=1
34185     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
34186   else
34187     HAVE_WINSOCK2_H=0
34188   fi
34189
34190
34191
34192
34193     for gl_func in pselect select; do
34194     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
34195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
34196 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
34197 if eval \${$as_gl_Symbol+:} false; then :
34198   $as_echo_n "(cached) " >&6
34199 else
34200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34201 /* end confdefs.h.  */
34202
34203 /* Some systems require prerequisite headers.  */
34204 #include <sys/types.h>
34205 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
34206 # include <sys/time.h>
34207 #endif
34208 #include <sys/select.h>
34209
34210 int
34211 main ()
34212 {
34213 #undef $gl_func
34214   (void) $gl_func;
34215   ;
34216   return 0;
34217 }
34218 _ACEOF
34219 if ac_fn_c_try_compile "$LINENO"; then :
34220   eval "$as_gl_Symbol=yes"
34221 else
34222   eval "$as_gl_Symbol=no"
34223 fi
34224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34225 fi
34226 eval ac_res=\$$as_gl_Symbol
34227                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34228 $as_echo "$ac_res" >&6; }
34229     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
34230   cat >>confdefs.h <<_ACEOF
34231 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
34232 _ACEOF
34233
34234                      eval ac_cv_have_decl_$gl_func=yes
34235 fi
34236       done
34237
34238
34239
34240
34241
34242
34243
34244
34245
34246
34247
34248
34249
34250
34251
34252
34253   :
34254
34255
34256
34257
34258
34259
34260
34261
34262      if test $gl_cv_have_include_next = yes; then
34263        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
34264      else
34265        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
34266 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
34267 if ${gl_cv_next_sys_stat_h+:} false; then :
34268   $as_echo_n "(cached) " >&6
34269 else
34270
34271              if test $ac_cv_header_sys_stat_h = yes; then
34272
34273
34274
34275
34276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34277 /* end confdefs.h.  */
34278 #include <sys/stat.h>
34279 _ACEOF
34280                 case "$host_os" in
34281     aix*) gl_absname_cpp="$ac_cpp -C" ;;
34282     *)    gl_absname_cpp="$ac_cpp" ;;
34283   esac
34284
34285   case "$host_os" in
34286     mingw*)
34287                                           gl_dirsep_regex='[/\\]'
34288       ;;
34289     *)
34290       gl_dirsep_regex='\/'
34291       ;;
34292   esac
34293       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34294   gl_header_literal_regex=`echo 'sys/stat.h' \
34295                            | sed -e "$gl_make_literal_regex_sed"`
34296   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34297       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34298       s|^/[^/]|//&|
34299       p
34300       q
34301     }'
34302
34303         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34304   sed -n "$gl_absolute_header_sed"`
34305
34306            gl_header=$gl_cv_absolute_sys_stat_h
34307            gl_cv_next_sys_stat_h='"'$gl_header'"'
34308           else
34309                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
34310              fi
34311
34312
34313 fi
34314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
34315 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
34316      fi
34317      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
34318
34319      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34320        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34321        gl_next_as_first_directive='<'sys/stat.h'>'
34322      else
34323        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34324        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
34325      fi
34326      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
34327
34328
34329
34330
34331
34332
34333
34334
34335
34336
34337
34338   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
34339
34340 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
34341
34342   fi
34343
34344       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
34345      #include <sys/stat.h>
34346 "
34347 if test "x$ac_cv_type_nlink_t" = xyes; then :
34348
34349 else
34350
34351 $as_echo "#define nlink_t int" >>confdefs.h
34352
34353 fi
34354
34355
34356
34357     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
34358     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
34359     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
34360 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
34361 if eval \${$as_gl_Symbol+:} false; then :
34362   $as_echo_n "(cached) " >&6
34363 else
34364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34365 /* end confdefs.h.  */
34366 #include <sys/stat.h>
34367
34368 int
34369 main ()
34370 {
34371 #undef $gl_func
34372   (void) $gl_func;
34373   ;
34374   return 0;
34375 }
34376 _ACEOF
34377 if ac_fn_c_try_compile "$LINENO"; then :
34378   eval "$as_gl_Symbol=yes"
34379 else
34380   eval "$as_gl_Symbol=no"
34381 fi
34382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34383 fi
34384 eval ac_res=\$$as_gl_Symbol
34385                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34386 $as_echo "$ac_res" >&6; }
34387     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
34388   cat >>confdefs.h <<_ACEOF
34389 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
34390 _ACEOF
34391
34392                      eval ac_cv_have_decl_$gl_func=yes
34393 fi
34394       done
34395
34396
34397
34398
34399
34400
34401
34402
34403
34404
34405
34406
34407
34408
34409
34410
34411
34412   :
34413
34414
34415
34416
34417
34418
34419
34420
34421      if test $gl_cv_have_include_next = yes; then
34422        gl_cv_next_sys_uio_h='<'sys/uio.h'>'
34423      else
34424        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
34425 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
34426 if ${gl_cv_next_sys_uio_h+:} false; then :
34427   $as_echo_n "(cached) " >&6
34428 else
34429
34430              if test $ac_cv_header_sys_uio_h = yes; then
34431
34432
34433
34434
34435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34436 /* end confdefs.h.  */
34437 #include <sys/uio.h>
34438 _ACEOF
34439                 case "$host_os" in
34440     aix*) gl_absname_cpp="$ac_cpp -C" ;;
34441     *)    gl_absname_cpp="$ac_cpp" ;;
34442   esac
34443
34444   case "$host_os" in
34445     mingw*)
34446                                           gl_dirsep_regex='[/\\]'
34447       ;;
34448     *)
34449       gl_dirsep_regex='\/'
34450       ;;
34451   esac
34452       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34453   gl_header_literal_regex=`echo 'sys/uio.h' \
34454                            | sed -e "$gl_make_literal_regex_sed"`
34455   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34456       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34457       s|^/[^/]|//&|
34458       p
34459       q
34460     }'
34461
34462         gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34463   sed -n "$gl_absolute_header_sed"`
34464
34465            gl_header=$gl_cv_absolute_sys_uio_h
34466            gl_cv_next_sys_uio_h='"'$gl_header'"'
34467           else
34468                gl_cv_next_sys_uio_h='<'sys/uio.h'>'
34469              fi
34470
34471
34472 fi
34473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
34474 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
34475      fi
34476      NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
34477
34478      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34479        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34480        gl_next_as_first_directive='<'sys/uio.h'>'
34481      else
34482        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34483        gl_next_as_first_directive=$gl_cv_next_sys_uio_h
34484      fi
34485      NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
34486
34487
34488
34489
34490   if test $ac_cv_header_sys_uio_h = yes; then
34491     HAVE_SYS_UIO_H=1
34492   else
34493     HAVE_SYS_UIO_H=0
34494   fi
34495
34496
34497
34498
34499
34500
34501
34502
34503
34504
34505
34506
34507       ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
34508 "
34509 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
34510   ac_have_decl=1
34511 else
34512   ac_have_decl=0
34513 fi
34514
34515 cat >>confdefs.h <<_ACEOF
34516 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
34517 _ACEOF
34518
34519   if test $ac_cv_have_decl_localtime_r = no; then
34520     HAVE_DECL_LOCALTIME_R=0
34521   fi
34522
34523
34524   :
34525
34526
34527
34528
34529
34530   if test $ac_cv_func_localtime_r = yes; then
34531     HAVE_LOCALTIME_R=1
34532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
34533 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
34534 if ${gl_cv_time_r_posix+:} false; then :
34535   $as_echo_n "(cached) " >&6
34536 else
34537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34538 /* end confdefs.h.  */
34539 #include <time.h>
34540 int
34541 main ()
34542 {
34543 /* We don't need to append 'restrict's to the argument types,
34544                  even though the POSIX signature has the 'restrict's,
34545                  since C99 says they can't affect type compatibility.  */
34546               struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
34547               if (ptr) return 0;
34548               /* Check the return type is a pointer.
34549                  On HP-UX 10 it is 'int'.  */
34550               *localtime_r (0, 0);
34551   ;
34552   return 0;
34553 }
34554
34555 _ACEOF
34556 if ac_fn_c_try_compile "$LINENO"; then :
34557   gl_cv_time_r_posix=yes
34558 else
34559   gl_cv_time_r_posix=no
34560 fi
34561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34562
34563 fi
34564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
34565 $as_echo "$gl_cv_time_r_posix" >&6; }
34566     if test $gl_cv_time_r_posix = yes; then
34567       REPLACE_LOCALTIME_R=0
34568     else
34569       REPLACE_LOCALTIME_R=1
34570     fi
34571   else
34572     HAVE_LOCALTIME_R=0
34573   fi
34574
34575   if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
34576
34577
34578
34579
34580
34581
34582
34583
34584   ggl_LIBOBJS="$ggl_LIBOBJS time_r.$ac_objext"
34585
34586
34587   :
34588
34589   fi
34590
34591
34592
34593
34594
34595           GNULIB_TIME_R=1
34596
34597
34598
34599
34600
34601 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
34602
34603
34604
34605   :
34606
34607
34608
34609
34610
34611
34612
34613
34614
34615   :
34616
34617
34618
34619
34620
34621
34622
34623
34624      if test $gl_cv_have_include_next = yes; then
34625        gl_cv_next_unistd_h='<'unistd.h'>'
34626      else
34627        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
34628 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
34629 if ${gl_cv_next_unistd_h+:} false; then :
34630   $as_echo_n "(cached) " >&6
34631 else
34632
34633              if test $ac_cv_header_unistd_h = yes; then
34634
34635
34636
34637
34638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34639 /* end confdefs.h.  */
34640 #include <unistd.h>
34641 _ACEOF
34642                 case "$host_os" in
34643     aix*) gl_absname_cpp="$ac_cpp -C" ;;
34644     *)    gl_absname_cpp="$ac_cpp" ;;
34645   esac
34646
34647   case "$host_os" in
34648     mingw*)
34649                                           gl_dirsep_regex='[/\\]'
34650       ;;
34651     *)
34652       gl_dirsep_regex='\/'
34653       ;;
34654   esac
34655       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34656   gl_header_literal_regex=`echo 'unistd.h' \
34657                            | sed -e "$gl_make_literal_regex_sed"`
34658   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34659       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34660       s|^/[^/]|//&|
34661       p
34662       q
34663     }'
34664
34665         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34666   sed -n "$gl_absolute_header_sed"`
34667
34668            gl_header=$gl_cv_absolute_unistd_h
34669            gl_cv_next_unistd_h='"'$gl_header'"'
34670           else
34671                gl_cv_next_unistd_h='<'unistd.h'>'
34672              fi
34673
34674
34675 fi
34676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
34677 $as_echo "$gl_cv_next_unistd_h" >&6; }
34678      fi
34679      NEXT_UNISTD_H=$gl_cv_next_unistd_h
34680
34681      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34682        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34683        gl_next_as_first_directive='<'unistd.h'>'
34684      else
34685        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34686        gl_next_as_first_directive=$gl_cv_next_unistd_h
34687      fi
34688      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
34689
34690
34691
34692
34693   if test $ac_cv_header_unistd_h = yes; then
34694     HAVE_UNISTD_H=1
34695   else
34696     HAVE_UNISTD_H=0
34697   fi
34698
34699
34700
34701
34702
34703
34704
34705     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
34706     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
34707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
34708 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
34709 if eval \${$as_gl_Symbol+:} false; then :
34710   $as_echo_n "(cached) " >&6
34711 else
34712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34713 /* end confdefs.h.  */
34714
34715 #if HAVE_UNISTD_H
34716 # include <unistd.h>
34717 #endif
34718 /* Some systems declare various items in the wrong headers.  */
34719 #if !(defined __GLIBC__ && !defined __UCLIBC__)
34720 # include <fcntl.h>
34721 # include <stdio.h>
34722 # include <stdlib.h>
34723 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
34724 #  include <io.h>
34725 # endif
34726 #endif
34727
34728 int
34729 main ()
34730 {
34731 #undef $gl_func
34732   (void) $gl_func;
34733   ;
34734   return 0;
34735 }
34736 _ACEOF
34737 if ac_fn_c_try_compile "$LINENO"; then :
34738   eval "$as_gl_Symbol=yes"
34739 else
34740   eval "$as_gl_Symbol=no"
34741 fi
34742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34743 fi
34744 eval ac_res=\$$as_gl_Symbol
34745                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34746 $as_echo "$ac_res" >&6; }
34747     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
34748   cat >>confdefs.h <<_ACEOF
34749 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
34750 _ACEOF
34751
34752                      eval ac_cv_have_decl_$gl_func=yes
34753 fi
34754       done
34755
34756
34757
34758
34759
34760   :
34761
34762
34763
34764
34765
34766   if test $ac_cv_have_decl_unsetenv = no; then
34767     HAVE_DECL_UNSETENV=0
34768   fi
34769   for ac_func in unsetenv
34770 do :
34771   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
34772 if test "x$ac_cv_func_unsetenv" = xyes; then :
34773   cat >>confdefs.h <<_ACEOF
34774 #define HAVE_UNSETENV 1
34775 _ACEOF
34776
34777 fi
34778 done
34779
34780   if test $ac_cv_func_unsetenv = no; then
34781     HAVE_UNSETENV=0
34782   else
34783     HAVE_UNSETENV=1
34784         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
34785 $as_echo_n "checking for unsetenv() return type... " >&6; }
34786 if ${gt_cv_func_unsetenv_ret+:} false; then :
34787   $as_echo_n "(cached) " >&6
34788 else
34789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34790 /* end confdefs.h.  */
34791
34792 #undef _BSD
34793 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
34794 #include <stdlib.h>
34795 extern
34796 #ifdef __cplusplus
34797 "C"
34798 #endif
34799 int unsetenv (const char *name);
34800
34801 int
34802 main ()
34803 {
34804
34805   ;
34806   return 0;
34807 }
34808 _ACEOF
34809 if ac_fn_c_try_compile "$LINENO"; then :
34810   gt_cv_func_unsetenv_ret='int'
34811 else
34812   gt_cv_func_unsetenv_ret='void'
34813 fi
34814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34815 fi
34816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
34817 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
34818     if test $gt_cv_func_unsetenv_ret = 'void'; then
34819
34820 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
34821
34822       REPLACE_UNSETENV=1
34823     fi
34824
34825                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
34826 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
34827 if ${gl_cv_func_unsetenv_works+:} false; then :
34828   $as_echo_n "(cached) " >&6
34829 else
34830   if test "$cross_compiling" = yes; then :
34831   case "$host_os" in
34832                  # Guess yes on glibc systems.
34833          *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
34834                  # If we don't know, assume the worst.
34835          *)      gl_cv_func_unsetenv_works="guessing no" ;;
34836        esac
34837
34838 else
34839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34840 /* end confdefs.h.  */
34841
34842        #include <stdlib.h>
34843        #include <errno.h>
34844        extern char **environ;
34845
34846 int
34847 main ()
34848 {
34849
34850        char entry1[] = "a=1";
34851        char entry2[] = "b=2";
34852        char *env[] = { entry1, entry2, NULL };
34853        if (putenv ((char *) "a=1")) return 1;
34854        if (putenv (entry2)) return 2;
34855        entry2[0] = 'a';
34856        unsetenv ("a");
34857        if (getenv ("a")) return 3;
34858        if (!unsetenv ("") || errno != EINVAL) return 4;
34859        entry2[0] = 'b';
34860        environ = env;
34861        if (!getenv ("a")) return 5;
34862        entry2[0] = 'a';
34863        unsetenv ("a");
34864        if (getenv ("a")) return 6;
34865
34866   ;
34867   return 0;
34868 }
34869 _ACEOF
34870 if ac_fn_c_try_run "$LINENO"; then :
34871   gl_cv_func_unsetenv_works=yes
34872 else
34873   gl_cv_func_unsetenv_works=no
34874 fi
34875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34876   conftest.$ac_objext conftest.beam conftest.$ac_ext
34877 fi
34878
34879 fi
34880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
34881 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
34882     case "$gl_cv_func_unsetenv_works" in
34883       *yes) ;;
34884       *)
34885         REPLACE_UNSETENV=1
34886         ;;
34887     esac
34888   fi
34889
34890   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
34891
34892
34893
34894
34895
34896
34897
34898
34899   ggl_LIBOBJS="$ggl_LIBOBJS unsetenv.$ac_objext"
34900
34901
34902
34903
34904   :
34905
34906
34907
34908
34909
34910
34911   fi
34912
34913
34914
34915
34916
34917           GNULIB_UNSETENV=1
34918
34919
34920
34921
34922
34923 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
34924
34925
34926
34927
34928
34929   :
34930
34931
34932
34933
34934
34935   if test $ac_cv_func_vasnprintf = no; then
34936
34937
34938   :
34939
34940
34941
34942
34943
34944
34945
34946
34947
34948
34949
34950
34951
34952   ggl_LIBOBJS="$ggl_LIBOBJS vasnprintf.$ac_objext"
34953
34954
34955
34956
34957
34958
34959
34960
34961
34962   ggl_LIBOBJS="$ggl_LIBOBJS printf-args.$ac_objext"
34963
34964
34965
34966
34967
34968
34969
34970
34971
34972   ggl_LIBOBJS="$ggl_LIBOBJS printf-parse.$ac_objext"
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982   ggl_LIBOBJS="$ggl_LIBOBJS asnprintf.$ac_objext"
34983
34984   if test $ac_cv_func_vasnprintf = yes; then
34985
34986 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
34987
34988   fi
34989
34990
34991
34992
34993
34994
34995
34996
34997
34998
34999
35000   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
35001 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
35002
35003 else
35004
35005 $as_echo "#define ptrdiff_t long" >>confdefs.h
35006
35007
35008 fi
35009
35010
35011
35012
35013
35014
35015
35016   fi
35017
35018
35019
35020
35021
35022
35023
35024
35025
35026
35027   :
35028
35029
35030
35031
35032
35033
35034
35035
35036      if test $gl_cv_have_include_next = yes; then
35037        gl_cv_next_wchar_h='<'wchar.h'>'
35038      else
35039        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
35040 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
35041 if ${gl_cv_next_wchar_h+:} false; then :
35042   $as_echo_n "(cached) " >&6
35043 else
35044
35045              if test $ac_cv_header_wchar_h = yes; then
35046
35047
35048
35049
35050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35051 /* end confdefs.h.  */
35052 #include <wchar.h>
35053 _ACEOF
35054                 case "$host_os" in
35055     aix*) gl_absname_cpp="$ac_cpp -C" ;;
35056     *)    gl_absname_cpp="$ac_cpp" ;;
35057   esac
35058
35059   case "$host_os" in
35060     mingw*)
35061                                           gl_dirsep_regex='[/\\]'
35062       ;;
35063     *)
35064       gl_dirsep_regex='\/'
35065       ;;
35066   esac
35067       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35068   gl_header_literal_regex=`echo 'wchar.h' \
35069                            | sed -e "$gl_make_literal_regex_sed"`
35070   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35071       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35072       s|^/[^/]|//&|
35073       p
35074       q
35075     }'
35076
35077         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35078   sed -n "$gl_absolute_header_sed"`
35079
35080            gl_header=$gl_cv_absolute_wchar_h
35081            gl_cv_next_wchar_h='"'$gl_header'"'
35082           else
35083                gl_cv_next_wchar_h='<'wchar.h'>'
35084              fi
35085
35086
35087 fi
35088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
35089 $as_echo "$gl_cv_next_wchar_h" >&6; }
35090      fi
35091      NEXT_WCHAR_H=$gl_cv_next_wchar_h
35092
35093      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35094        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35095        gl_next_as_first_directive='<'wchar.h'>'
35096      else
35097        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35098        gl_next_as_first_directive=$gl_cv_next_wchar_h
35099      fi
35100      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
35101
35102
35103
35104
35105   if test $ac_cv_header_wchar_h = yes; then
35106     HAVE_WCHAR_H=1
35107   else
35108     HAVE_WCHAR_H=0
35109   fi
35110
35111
35112
35113
35114
35115   if test $gt_cv_c_wint_t = yes; then
35116     HAVE_WINT_T=1
35117   else
35118     HAVE_WINT_T=0
35119   fi
35120
35121
35122
35123     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
35124     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
35125     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
35126 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
35127 if eval \${$as_gl_Symbol+:} false; then :
35128   $as_echo_n "(cached) " >&6
35129 else
35130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35131 /* end confdefs.h.  */
35132
35133 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35134    <wchar.h>.
35135    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35136    included before <wchar.h>.  */
35137 #if !(defined __GLIBC__ && !defined __UCLIBC__)
35138 # include <stddef.h>
35139 # include <stdio.h>
35140 # include <time.h>
35141 #endif
35142 #include <wchar.h>
35143
35144 int
35145 main ()
35146 {
35147 #undef $gl_func
35148   (void) $gl_func;
35149   ;
35150   return 0;
35151 }
35152 _ACEOF
35153 if ac_fn_c_try_compile "$LINENO"; then :
35154   eval "$as_gl_Symbol=yes"
35155 else
35156   eval "$as_gl_Symbol=no"
35157 fi
35158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35159 fi
35160 eval ac_res=\$$as_gl_Symbol
35161                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35162 $as_echo "$ac_res" >&6; }
35163     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
35164   cat >>confdefs.h <<_ACEOF
35165 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
35166 _ACEOF
35167
35168                      eval ac_cv_have_decl_$gl_func=yes
35169 fi
35170       done
35171
35172
35173   :
35174
35175
35176
35177   for ac_header in stdint.h
35178 do :
35179   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
35180 if test "x$ac_cv_header_stdint_h" = xyes; then :
35181   cat >>confdefs.h <<_ACEOF
35182 #define HAVE_STDINT_H 1
35183 _ACEOF
35184
35185 fi
35186
35187 done
35188
35189
35190   # End of code from modules
35191
35192
35193
35194
35195
35196
35197
35198
35199
35200   gltests_libdeps=
35201   gltests_ltlibdeps=
35202
35203
35204
35205
35206
35207
35208
35209
35210
35211   gl_source_base='tests'
35212   ggltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
35213
35214   gl_module_indicator_condition=$ggltests_WITNESS
35215
35216
35217
35218
35219
35220
35221
35222
35223
35224
35225
35226
35227 # Check whether --enable-gcc-warnings was given.
35228 if test "${enable_gcc_warnings+set}" = set; then :
35229   enableval=$enable_gcc_warnings; case $enableval in
35230      yes|no) ;;
35231      *)      as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
35232    esac
35233    gl_gcc_warnings=$enableval
35234 else
35235   gl_gcc_warnings=no
35236
35237 fi
35238
35239
35240 if test "$gl_gcc_warnings" = yes; then
35241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
35242 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
35243 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
35244   $as_echo_n "(cached) " >&6
35245 else
35246
35247   gl_save_compiler_FLAGS="$CFLAGS"
35248   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
35249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35250 /* end confdefs.h.  */
35251
35252 int
35253 main ()
35254 {
35255
35256   ;
35257   return 0;
35258 }
35259 _ACEOF
35260 if ac_fn_c_try_link "$LINENO"; then :
35261   gl_cv_warn_c__Werror__Wunknown_warning_option=yes
35262 else
35263   gl_cv_warn_c__Werror__Wunknown_warning_option=no
35264 fi
35265 rm -f core conftest.err conftest.$ac_objext \
35266     conftest$ac_exeext conftest.$ac_ext
35267   CFLAGS="$gl_save_compiler_FLAGS"
35268
35269 fi
35270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
35271 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
35272 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
35273   gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
35274 else
35275   gl_unknown_warnings_are_errors=
35276 fi
35277
35278
35279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wframe-larger-than=1024" >&5
35280 $as_echo_n "checking whether C compiler handles -Wframe-larger-than=1024... " >&6; }
35281 if ${gl_cv_warn_c__Wframe_larger_than_1024+:} false; then :
35282   $as_echo_n "(cached) " >&6
35283 else
35284
35285   gl_save_compiler_FLAGS="$CFLAGS"
35286   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wframe-larger-than=1024"
35287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35288 /* end confdefs.h.  */
35289
35290 int
35291 main ()
35292 {
35293
35294   ;
35295   return 0;
35296 }
35297 _ACEOF
35298 if ac_fn_c_try_link "$LINENO"; then :
35299   gl_cv_warn_c__Wframe_larger_than_1024=yes
35300 else
35301   gl_cv_warn_c__Wframe_larger_than_1024=no
35302 fi
35303 rm -f core conftest.err conftest.$ac_objext \
35304     conftest$ac_exeext conftest.$ac_ext
35305   CFLAGS="$gl_save_compiler_FLAGS"
35306
35307 fi
35308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wframe_larger_than_1024" >&5
35309 $as_echo "$gl_cv_warn_c__Wframe_larger_than_1024" >&6; }
35310 if test "x$gl_cv_warn_c__Wframe_larger_than_1024" = xyes; then :
35311   as_fn_append WSTACK_CFLAGS " -Wframe-larger-than=1024"
35312 fi
35313
35314
35315
35316   nw="$nw -Wsystem-headers"         # Don't let system headers trigger warnings
35317   nw="$nw -Wc++-compat"             # We don't care about C++ compilers
35318   nw="$nw -Wundef"                  # Warns on '#if GNULIB_FOO' etc in gnulib
35319   nw="$nw -Wtraditional"            # Warns on #elif which we use often
35320   nw="$nw -Wlogical-op"             # Too many false positives
35321   nw="$nw -Wold-style-definition"   #
35322   nw="$nw -Wpadded"                 # Our structs are not padded
35323   nw="$nw -Wunreachable-code"       # Too many false positives
35324   nw="$nw -Wtraditional-conversion" # Too many warnings for now
35325   nw="$nw -Wcast-qual"              # Too many warnings for now
35326   nw="$nw -Waggregate-return"       # Too many warnings for now
35327   nw="$nw -Wshadow"                 # Too many warnings for now
35328   nw="$nw -Wswitch-default"         # Too many warnings for now
35329   nw="$nw -Wswitch-enum"            # Too many warnings for now
35330   nw="$nw -Wconversion"             # Too many warnings for now
35331   nw="$nw -Wsign-conversion"        # Too many warnings for now
35332   nw="$nw -Wformat-y2k"             # Too many warnings for now
35333   nw="$nw -Woverlength-strings"     # We use some in tests/
35334   nw="$nw -Wvla"                    # There is no point to avoid C99 variable length arrays
35335   nw="$nw -Wformat-nonliteral"      # Incompatible with gettext _()
35336   nw="$nw -Wunsafe-loop-optimizations"
35337   nw="$nw -Wstrict-overflow"
35338   nw="$nw -Wmissing-noreturn"
35339   nw="$nw -Winline"                 # Too compiler dependent
35340   nw="$nw -Wsuggest-attribute=pure" # Is it worth using attributes?
35341   nw="$nw -Wsuggest-attribute=const" # Is it worth using attributes?
35342   nw="$nw -Wsuggest-attribute=noreturn" # Is it worth using attributes?
35343   nw="$nw -Wstack-protector"        # Some functions cannot be protected
35344   nw="$nw -Wredundant-decls"        # Some files cannot be compiled with that (gl_fd_to_handle)
35345
35346
35347
35348   if test -n "$GCC"; then
35349
35350             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
35351 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
35352     if ${gl_cv_cc_nomfi_supported+:} false; then :
35353   $as_echo_n "(cached) " >&6
35354 else
35355
35356       gl_save_CFLAGS="$CFLAGS"
35357       CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
35358       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35359 /* end confdefs.h.  */
35360
35361 int
35362 main ()
35363 {
35364
35365   ;
35366   return 0;
35367 }
35368 _ACEOF
35369 if ac_fn_c_try_compile "$LINENO"; then :
35370   gl_cv_cc_nomfi_supported=yes
35371 else
35372   gl_cv_cc_nomfi_supported=no
35373 fi
35374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35375       CFLAGS="$gl_save_CFLAGS"
35376 fi
35377
35378     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
35379 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
35380
35381     if test "$gl_cv_cc_nomfi_supported" = yes; then
35382                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
35383 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
35384       if ${gl_cv_cc_nomfi_needed+:} false; then :
35385   $as_echo_n "(cached) " >&6
35386 else
35387
35388         gl_save_CFLAGS="$CFLAGS"
35389         CFLAGS="$CFLAGS -W -Werror"
35390         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35391 /* end confdefs.h.  */
35392 void f (void)
35393                {
35394                  typedef struct { int a; int b; } s_t;
35395                  s_t s1 = { 0, };
35396                }
35397
35398 int
35399 main ()
35400 {
35401
35402   ;
35403   return 0;
35404 }
35405 _ACEOF
35406 if ac_fn_c_try_compile "$LINENO"; then :
35407   gl_cv_cc_nomfi_needed=no
35408 else
35409   gl_cv_cc_nomfi_needed=yes
35410 fi
35411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35412         CFLAGS="$gl_save_CFLAGS"
35413
35414 fi
35415
35416       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
35417 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
35418     fi
35419
35420                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
35421 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
35422     if ${gl_cv_cc_uninitialized_supported+:} false; then :
35423   $as_echo_n "(cached) " >&6
35424 else
35425
35426       gl_save_CFLAGS="$CFLAGS"
35427       CFLAGS="$CFLAGS -Werror -Wuninitialized"
35428       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35429 /* end confdefs.h.  */
35430
35431 int
35432 main ()
35433 {
35434
35435   ;
35436   return 0;
35437 }
35438 _ACEOF
35439 if ac_fn_c_try_compile "$LINENO"; then :
35440   gl_cv_cc_uninitialized_supported=yes
35441 else
35442   gl_cv_cc_uninitialized_supported=no
35443 fi
35444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35445       CFLAGS="$gl_save_CFLAGS"
35446 fi
35447
35448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
35449 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
35450
35451   fi
35452
35453   # List all gcc warning categories.
35454   # To compare this list to your installed GCC's, run this Bash command:
35455   #
35456   # comm -3 \
35457   #  <(sed -n 's/^  *\(-[^ ]*\) .*/\1/p' manywarnings.m4 | sort) \
35458   #  <(gcc --help=warnings | sed -n 's/^  \(-[^ ]*\) .*/\1/p' | sort |
35459   #      grep -v -x -f <(
35460   #         awk '/^[^#]/ {print ws}' ../build-aux/gcc-warning.spec))
35461
35462   gl_manywarn_set=
35463   for gl_manywarn_item in \
35464     -W \
35465     -Wabi \
35466     -Waddress \
35467     -Waggressive-loop-optimizations \
35468     -Wall \
35469     -Warray-bounds \
35470     -Wattributes \
35471     -Wbad-function-cast \
35472     -Wbuiltin-macro-redefined \
35473     -Wcast-align \
35474     -Wchar-subscripts \
35475     -Wclobbered \
35476     -Wcomment \
35477     -Wcomments \
35478     -Wcoverage-mismatch \
35479     -Wcpp \
35480     -Wdate-time \
35481     -Wdeprecated \
35482     -Wdeprecated-declarations \
35483     -Wdisabled-optimization \
35484     -Wdiv-by-zero \
35485     -Wdouble-promotion \
35486     -Wempty-body \
35487     -Wendif-labels \
35488     -Wenum-compare \
35489     -Wextra \
35490     -Wformat-contains-nul \
35491     -Wformat-extra-args \
35492     -Wformat-nonliteral \
35493     -Wformat-security \
35494     -Wformat-y2k \
35495     -Wformat-zero-length \
35496     -Wfree-nonheap-object \
35497     -Wignored-qualifiers \
35498     -Wimplicit \
35499     -Wimplicit-function-declaration \
35500     -Wimplicit-int \
35501     -Winit-self \
35502     -Winline \
35503     -Wint-to-pointer-cast \
35504     -Winvalid-memory-model \
35505     -Winvalid-pch \
35506     -Wjump-misses-init \
35507     -Wlogical-op \
35508     -Wmain \
35509     -Wmaybe-uninitialized \
35510     -Wmissing-braces \
35511     -Wmissing-declarations \
35512     -Wmissing-field-initializers \
35513     -Wmissing-include-dirs \
35514     -Wmissing-parameter-type \
35515     -Wmissing-prototypes \
35516     -Wmultichar \
35517     -Wnarrowing \
35518     -Wnested-externs \
35519     -Wnonnull \
35520     -Wold-style-declaration \
35521     -Wold-style-definition \
35522     -Wopenmp-simd \
35523     -Woverflow \
35524     -Woverlength-strings \
35525     -Woverride-init \
35526     -Wpacked \
35527     -Wpacked-bitfield-compat \
35528     -Wparentheses \
35529     -Wpointer-arith \
35530     -Wpointer-sign \
35531     -Wpointer-to-int-cast \
35532     -Wpragmas \
35533     -Wreturn-local-addr \
35534     -Wreturn-type \
35535     -Wsequence-point \
35536     -Wshadow \
35537     -Wsizeof-pointer-memaccess \
35538     -Wstack-protector \
35539     -Wstrict-aliasing \
35540     -Wstrict-overflow \
35541     -Wstrict-prototypes \
35542     -Wsuggest-attribute=const \
35543     -Wsuggest-attribute=format \
35544     -Wsuggest-attribute=noreturn \
35545     -Wsuggest-attribute=pure \
35546     -Wswitch \
35547     -Wswitch-default \
35548     -Wsync-nand \
35549     -Wsystem-headers \
35550     -Wtrampolines \
35551     -Wtrigraphs \
35552     -Wtype-limits \
35553     -Wuninitialized \
35554     -Wunknown-pragmas \
35555     -Wunsafe-loop-optimizations \
35556     -Wunused \
35557     -Wunused-but-set-parameter \
35558     -Wunused-but-set-variable \
35559     -Wunused-function \
35560     -Wunused-label \
35561     -Wunused-local-typedefs \
35562     -Wunused-macros \
35563     -Wunused-parameter \
35564     -Wunused-result \
35565     -Wunused-value \
35566     -Wunused-variable \
35567     -Wvarargs \
35568     -Wvariadic-macros \
35569     -Wvector-operation-performance \
35570     -Wvla \
35571     -Wvolatile-register-var \
35572     -Wwrite-strings \
35573     \
35574     ; do
35575     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
35576   done
35577
35578   # gcc --help=warnings outputs an unusual form for this option; list
35579   # it here so that the above 'comm' command doesn't report a false match.
35580   gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc"
35581
35582   # These are needed for older GCC versions.
35583   if test -n "$GCC"; then
35584     case `($CC --version) 2>/dev/null` in
35585       'gcc (GCC) '[0-3].* | \
35586       'gcc (GCC) '4.[0-7].*)
35587         gl_manywarn_set="$gl_manywarn_set -fdiagnostics-show-option"
35588         gl_manywarn_set="$gl_manywarn_set -funit-at-a-time"
35589           ;;
35590     esac
35591   fi
35592
35593   # Disable specific options as needed.
35594   if test "$gl_cv_cc_nomfi_needed" = yes; then
35595     gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
35596   fi
35597
35598   if test "$gl_cv_cc_uninitialized_supported" = no; then
35599     gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
35600   fi
35601
35602   ws=$gl_manywarn_set
35603
35604
35605   gl_warn_set=
35606   set x $ws; shift
35607   for gl_warn_item
35608   do
35609     case " $nw " in
35610       *" $gl_warn_item "*)
35611         ;;
35612       *)
35613         gl_warn_set="$gl_warn_set $gl_warn_item"
35614         ;;
35615     esac
35616   done
35617   ws=$gl_warn_set
35618
35619   for w in $ws; do
35620
35621 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
35622 gl_positive="$w"
35623 case $gl_positive in
35624   -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
35625 esac
35626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
35627 $as_echo_n "checking whether C compiler handles $w... " >&6; }
35628 if eval \${$as_gl_Warn+:} false; then :
35629   $as_echo_n "(cached) " >&6
35630 else
35631
35632   gl_save_compiler_FLAGS="$CFLAGS"
35633   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
35634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35635 /* end confdefs.h.  */
35636
35637 int
35638 main ()
35639 {
35640
35641   ;
35642   return 0;
35643 }
35644 _ACEOF
35645 if ac_fn_c_try_link "$LINENO"; then :
35646   eval "$as_gl_Warn=yes"
35647 else
35648   eval "$as_gl_Warn=no"
35649 fi
35650 rm -f core conftest.err conftest.$ac_objext \
35651     conftest$ac_exeext conftest.$ac_ext
35652   CFLAGS="$gl_save_compiler_FLAGS"
35653
35654 fi
35655 eval ac_res=\$$as_gl_Warn
35656                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35657 $as_echo "$ac_res" >&6; }
35658 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
35659   as_fn_append WARN_CFLAGS " $w"
35660 fi
35661
35662
35663   done
35664
35665
35666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
35667 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
35668 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
35669   $as_echo_n "(cached) " >&6
35670 else
35671
35672   gl_save_compiler_FLAGS="$CFLAGS"
35673   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
35674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35675 /* end confdefs.h.  */
35676
35677 int
35678 main ()
35679 {
35680
35681   ;
35682   return 0;
35683 }
35684 _ACEOF
35685 if ac_fn_c_try_link "$LINENO"; then :
35686   gl_cv_warn_c__Wno_missing_field_initializers=yes
35687 else
35688   gl_cv_warn_c__Wno_missing_field_initializers=no
35689 fi
35690 rm -f core conftest.err conftest.$ac_objext \
35691     conftest$ac_exeext conftest.$ac_ext
35692   CFLAGS="$gl_save_compiler_FLAGS"
35693
35694 fi
35695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
35696 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
35697 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
35698   as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
35699 fi
35700
35701  # We need this one
35702
35703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-y2k" >&5
35704 $as_echo_n "checking whether C compiler handles -Wno-format-y2k... " >&6; }
35705 if ${gl_cv_warn_c__Wno_format_y2k+:} false; then :
35706   $as_echo_n "(cached) " >&6
35707 else
35708
35709   gl_save_compiler_FLAGS="$CFLAGS"
35710   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-y2k"
35711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35712 /* end confdefs.h.  */
35713
35714 int
35715 main ()
35716 {
35717
35718   ;
35719   return 0;
35720 }
35721 _ACEOF
35722 if ac_fn_c_try_link "$LINENO"; then :
35723   gl_cv_warn_c__Wno_format_y2k=yes
35724 else
35725   gl_cv_warn_c__Wno_format_y2k=no
35726 fi
35727 rm -f core conftest.err conftest.$ac_objext \
35728     conftest$ac_exeext conftest.$ac_ext
35729   CFLAGS="$gl_save_compiler_FLAGS"
35730
35731 fi
35732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_y2k" >&5
35733 $as_echo "$gl_cv_warn_c__Wno_format_y2k" >&6; }
35734 if test "x$gl_cv_warn_c__Wno_format_y2k" = xyes; then :
35735   as_fn_append WARN_CFLAGS " -Wno-format-y2k"
35736 fi
35737
35738      # Too many warnings for now
35739
35740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
35741 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
35742 if ${gl_cv_warn_c__Wno_unused_value+:} false; then :
35743   $as_echo_n "(cached) " >&6
35744 else
35745
35746   gl_save_compiler_FLAGS="$CFLAGS"
35747   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-value"
35748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35749 /* end confdefs.h.  */
35750
35751 int
35752 main ()
35753 {
35754
35755   ;
35756   return 0;
35757 }
35758 _ACEOF
35759 if ac_fn_c_try_link "$LINENO"; then :
35760   gl_cv_warn_c__Wno_unused_value=yes
35761 else
35762   gl_cv_warn_c__Wno_unused_value=no
35763 fi
35764 rm -f core conftest.err conftest.$ac_objext \
35765     conftest$ac_exeext conftest.$ac_ext
35766   CFLAGS="$gl_save_compiler_FLAGS"
35767
35768 fi
35769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
35770 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
35771 if test "x$gl_cv_warn_c__Wno_unused_value" = xyes; then :
35772   as_fn_append WARN_CFLAGS " -Wno-unused-value"
35773 fi
35774
35775  # warnings for things we don't want to get
35776
35777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-result" >&5
35778 $as_echo_n "checking whether C compiler handles -Wno-unused-result... " >&6; }
35779 if ${gl_cv_warn_c__Wno_unused_result+:} false; then :
35780   $as_echo_n "(cached) " >&6
35781 else
35782
35783   gl_save_compiler_FLAGS="$CFLAGS"
35784   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-result"
35785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35786 /* end confdefs.h.  */
35787
35788 int
35789 main ()
35790 {
35791
35792   ;
35793   return 0;
35794 }
35795 _ACEOF
35796 if ac_fn_c_try_link "$LINENO"; then :
35797   gl_cv_warn_c__Wno_unused_result=yes
35798 else
35799   gl_cv_warn_c__Wno_unused_result=no
35800 fi
35801 rm -f core conftest.err conftest.$ac_objext \
35802     conftest$ac_exeext conftest.$ac_ext
35803   CFLAGS="$gl_save_compiler_FLAGS"
35804
35805 fi
35806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_result" >&5
35807 $as_echo "$gl_cv_warn_c__Wno_unused_result" >&6; }
35808 if test "x$gl_cv_warn_c__Wno_unused_result" = xyes; then :
35809   as_fn_append WARN_CFLAGS " -Wno-unused-result"
35810 fi
35811
35812  # warnings for things we don't want to get
35813
35814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
35815 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
35816 if ${gl_cv_warn_c__Wno_unused_parameter+:} false; then :
35817   $as_echo_n "(cached) " >&6
35818 else
35819
35820   gl_save_compiler_FLAGS="$CFLAGS"
35821   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
35822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35823 /* end confdefs.h.  */
35824
35825 int
35826 main ()
35827 {
35828
35829   ;
35830   return 0;
35831 }
35832 _ACEOF
35833 if ac_fn_c_try_link "$LINENO"; then :
35834   gl_cv_warn_c__Wno_unused_parameter=yes
35835 else
35836   gl_cv_warn_c__Wno_unused_parameter=no
35837 fi
35838 rm -f core conftest.err conftest.$ac_objext \
35839     conftest$ac_exeext conftest.$ac_ext
35840   CFLAGS="$gl_save_compiler_FLAGS"
35841
35842 fi
35843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
35844 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
35845 if test "x$gl_cv_warn_c__Wno_unused_parameter" = xyes; then :
35846   as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
35847 fi
35848
35849  # Too many warnings for now
35850
35851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-stack-protector" >&5
35852 $as_echo_n "checking whether C compiler handles -Wno-stack-protector... " >&6; }
35853 if ${gl_cv_warn_c__Wno_stack_protector+:} false; then :
35854   $as_echo_n "(cached) " >&6
35855 else
35856
35857   gl_save_compiler_FLAGS="$CFLAGS"
35858   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstack-protector"
35859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35860 /* end confdefs.h.  */
35861
35862 int
35863 main ()
35864 {
35865
35866   ;
35867   return 0;
35868 }
35869 _ACEOF
35870 if ac_fn_c_try_link "$LINENO"; then :
35871   gl_cv_warn_c__Wno_stack_protector=yes
35872 else
35873   gl_cv_warn_c__Wno_stack_protector=no
35874 fi
35875 rm -f core conftest.err conftest.$ac_objext \
35876     conftest$ac_exeext conftest.$ac_ext
35877   CFLAGS="$gl_save_compiler_FLAGS"
35878
35879 fi
35880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_stack_protector" >&5
35881 $as_echo "$gl_cv_warn_c__Wno_stack_protector" >&6; }
35882 if test "x$gl_cv_warn_c__Wno_stack_protector" = xyes; then :
35883   as_fn_append WARN_CFLAGS " -Wno-stack-protector"
35884 fi
35885
35886   # Some functions cannot be protected
35887
35888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-int-to-pointer-cast" >&5
35889 $as_echo_n "checking whether C compiler handles -Wno-int-to-pointer-cast... " >&6; }
35890 if ${gl_cv_warn_c__Wno_int_to_pointer_cast+:} false; then :
35891   $as_echo_n "(cached) " >&6
35892 else
35893
35894   gl_save_compiler_FLAGS="$CFLAGS"
35895   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wint-to-pointer-cast"
35896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35897 /* end confdefs.h.  */
35898
35899 int
35900 main ()
35901 {
35902
35903   ;
35904   return 0;
35905 }
35906 _ACEOF
35907 if ac_fn_c_try_link "$LINENO"; then :
35908   gl_cv_warn_c__Wno_int_to_pointer_cast=yes
35909 else
35910   gl_cv_warn_c__Wno_int_to_pointer_cast=no
35911 fi
35912 rm -f core conftest.err conftest.$ac_objext \
35913     conftest$ac_exeext conftest.$ac_ext
35914   CFLAGS="$gl_save_compiler_FLAGS"
35915
35916 fi
35917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_int_to_pointer_cast" >&5
35918 $as_echo "$gl_cv_warn_c__Wno_int_to_pointer_cast" >&6; }
35919 if test "x$gl_cv_warn_c__Wno_int_to_pointer_cast" = xyes; then :
35920   as_fn_append WARN_CFLAGS " -Wno-int-to-pointer-cast"
35921 fi
35922
35923   # Some files cannot be compiled with that (gl_fd_to_handle)
35924
35925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
35926 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
35927 if ${gl_cv_warn_c__fdiagnostics_show_option+:} false; then :
35928   $as_echo_n "(cached) " >&6
35929 else
35930
35931   gl_save_compiler_FLAGS="$CFLAGS"
35932   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
35933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35934 /* end confdefs.h.  */
35935
35936 int
35937 main ()
35938 {
35939
35940   ;
35941   return 0;
35942 }
35943 _ACEOF
35944 if ac_fn_c_try_link "$LINENO"; then :
35945   gl_cv_warn_c__fdiagnostics_show_option=yes
35946 else
35947   gl_cv_warn_c__fdiagnostics_show_option=no
35948 fi
35949 rm -f core conftest.err conftest.$ac_objext \
35950     conftest$ac_exeext conftest.$ac_ext
35951   CFLAGS="$gl_save_compiler_FLAGS"
35952
35953 fi
35954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
35955 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
35956 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes; then :
35957   as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
35958 fi
35959
35960
35961 fi
35962
35963
35964
35965
35966
35967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
35968 $as_echo_n "checking whether ln -s works... " >&6; }
35969 LN_S=$as_ln_s
35970 if test "$LN_S" = "ln -s"; then
35971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35972 $as_echo "yes" >&6; }
35973 else
35974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
35975 $as_echo "no, using $LN_S" >&6; }
35976 fi
35977
35978 case `pwd` in
35979   *\ * | *\     *)
35980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
35981 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
35982 esac
35983
35984
35985
35986 macro_version='2.4.2'
35987 macro_revision='1.3337'
35988
35989
35990
35991
35992
35993
35994
35995
35996
35997
35998
35999
36000
36001 ltmain="$ac_aux_dir/ltmain.sh"
36002
36003 # Backslashify metacharacters that are still active within
36004 # double-quoted strings.
36005 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
36006
36007 # Same as above, but do not quote variable references.
36008 double_quote_subst='s/\(["`\\]\)/\\\1/g'
36009
36010 # Sed substitution to delay expansion of an escaped shell variable in a
36011 # double_quote_subst'ed string.
36012 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
36013
36014 # Sed substitution to delay expansion of an escaped single quote.
36015 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
36016
36017 # Sed substitution to avoid accidental globbing in evaled expressions
36018 no_glob_subst='s/\*/\\\*/g'
36019
36020 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36021 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
36022 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
36023
36024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
36025 $as_echo_n "checking how to print strings... " >&6; }
36026 # Test print first, because it will be a builtin if present.
36027 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
36028    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
36029   ECHO='print -r --'
36030 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
36031   ECHO='printf %s\n'
36032 else
36033   # Use this function as a fallback that always works.
36034   func_fallback_echo ()
36035   {
36036     eval 'cat <<_LTECHO_EOF
36037 $1
36038 _LTECHO_EOF'
36039   }
36040   ECHO='func_fallback_echo'
36041 fi
36042
36043 # func_echo_all arg...
36044 # Invoke $ECHO with all args, space-separated.
36045 func_echo_all ()
36046 {
36047     $ECHO ""
36048 }
36049
36050 case "$ECHO" in
36051   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
36052 $as_echo "printf" >&6; } ;;
36053   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
36054 $as_echo "print -r" >&6; } ;;
36055   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
36056 $as_echo "cat" >&6; } ;;
36057 esac
36058
36059
36060
36061
36062
36063
36064
36065
36066
36067
36068
36069
36070
36071
36072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
36073 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
36074 if ${ac_cv_path_SED+:} false; then :
36075   $as_echo_n "(cached) " >&6
36076 else
36077             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
36078      for ac_i in 1 2 3 4 5 6 7; do
36079        ac_script="$ac_script$as_nl$ac_script"
36080      done
36081      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
36082      { ac_script=; unset ac_script;}
36083      if test -z "$SED"; then
36084   ac_path_SED_found=false
36085   # Loop through the user's path and test for each of PROGNAME-LIST
36086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36087 for as_dir in $PATH
36088 do
36089   IFS=$as_save_IFS
36090   test -z "$as_dir" && as_dir=.
36091     for ac_prog in sed gsed; do
36092     for ac_exec_ext in '' $ac_executable_extensions; do
36093       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
36094       as_fn_executable_p "$ac_path_SED" || continue
36095 # Check for GNU ac_path_SED and select it if it is found.
36096   # Check for GNU $ac_path_SED
36097 case `"$ac_path_SED" --version 2>&1` in
36098 *GNU*)
36099   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
36100 *)
36101   ac_count=0
36102   $as_echo_n 0123456789 >"conftest.in"
36103   while :
36104   do
36105     cat "conftest.in" "conftest.in" >"conftest.tmp"
36106     mv "conftest.tmp" "conftest.in"
36107     cp "conftest.in" "conftest.nl"
36108     $as_echo '' >> "conftest.nl"
36109     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
36110     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
36111     as_fn_arith $ac_count + 1 && ac_count=$as_val
36112     if test $ac_count -gt ${ac_path_SED_max-0}; then
36113       # Best one so far, save it but keep looking for a better one
36114       ac_cv_path_SED="$ac_path_SED"
36115       ac_path_SED_max=$ac_count
36116     fi
36117     # 10*(2^10) chars as input seems more than enough
36118     test $ac_count -gt 10 && break
36119   done
36120   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
36121 esac
36122
36123       $ac_path_SED_found && break 3
36124     done
36125   done
36126   done
36127 IFS=$as_save_IFS
36128   if test -z "$ac_cv_path_SED"; then
36129     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
36130   fi
36131 else
36132   ac_cv_path_SED=$SED
36133 fi
36134
36135 fi
36136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
36137 $as_echo "$ac_cv_path_SED" >&6; }
36138  SED="$ac_cv_path_SED"
36139   rm -f conftest.sed
36140
36141 test -z "$SED" && SED=sed
36142 Xsed="$SED -e 1s/^X//"
36143
36144
36145
36146
36147
36148
36149
36150
36151
36152
36153
36154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
36155 $as_echo_n "checking for fgrep... " >&6; }
36156 if ${ac_cv_path_FGREP+:} false; then :
36157   $as_echo_n "(cached) " >&6
36158 else
36159   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
36160    then ac_cv_path_FGREP="$GREP -F"
36161    else
36162      if test -z "$FGREP"; then
36163   ac_path_FGREP_found=false
36164   # Loop through the user's path and test for each of PROGNAME-LIST
36165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36166 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
36167 do
36168   IFS=$as_save_IFS
36169   test -z "$as_dir" && as_dir=.
36170     for ac_prog in fgrep; do
36171     for ac_exec_ext in '' $ac_executable_extensions; do
36172       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
36173       as_fn_executable_p "$ac_path_FGREP" || continue
36174 # Check for GNU ac_path_FGREP and select it if it is found.
36175   # Check for GNU $ac_path_FGREP
36176 case `"$ac_path_FGREP" --version 2>&1` in
36177 *GNU*)
36178   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
36179 *)
36180   ac_count=0
36181   $as_echo_n 0123456789 >"conftest.in"
36182   while :
36183   do
36184     cat "conftest.in" "conftest.in" >"conftest.tmp"
36185     mv "conftest.tmp" "conftest.in"
36186     cp "conftest.in" "conftest.nl"
36187     $as_echo 'FGREP' >> "conftest.nl"
36188     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
36189     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
36190     as_fn_arith $ac_count + 1 && ac_count=$as_val
36191     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
36192       # Best one so far, save it but keep looking for a better one
36193       ac_cv_path_FGREP="$ac_path_FGREP"
36194       ac_path_FGREP_max=$ac_count
36195     fi
36196     # 10*(2^10) chars as input seems more than enough
36197     test $ac_count -gt 10 && break
36198   done
36199   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
36200 esac
36201
36202       $ac_path_FGREP_found && break 3
36203     done
36204   done
36205   done
36206 IFS=$as_save_IFS
36207   if test -z "$ac_cv_path_FGREP"; then
36208     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
36209   fi
36210 else
36211   ac_cv_path_FGREP=$FGREP
36212 fi
36213
36214    fi
36215 fi
36216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
36217 $as_echo "$ac_cv_path_FGREP" >&6; }
36218  FGREP="$ac_cv_path_FGREP"
36219
36220
36221 test -z "$GREP" && GREP=grep
36222
36223
36224
36225
36226
36227
36228
36229
36230
36231
36232
36233
36234
36235
36236
36237
36238
36239
36240
36241 # Check whether --with-gnu-ld was given.
36242 if test "${with_gnu_ld+set}" = set; then :
36243   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
36244 else
36245   with_gnu_ld=no
36246 fi
36247
36248 ac_prog=ld
36249 if test "$GCC" = yes; then
36250   # Check if gcc -print-prog-name=ld gives a path.
36251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
36252 $as_echo_n "checking for ld used by $CC... " >&6; }
36253   case $host in
36254   *-*-mingw*)
36255     # gcc leaves a trailing carriage return which upsets mingw
36256     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
36257   *)
36258     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
36259   esac
36260   case $ac_prog in
36261     # Accept absolute paths.
36262     [\\/]* | ?:[\\/]*)
36263       re_direlt='/[^/][^/]*/\.\./'
36264       # Canonicalize the pathname of ld
36265       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
36266       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
36267         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
36268       done
36269       test -z "$LD" && LD="$ac_prog"
36270       ;;
36271   "")
36272     # If it fails, then pretend we aren't using GCC.
36273     ac_prog=ld
36274     ;;
36275   *)
36276     # If it is relative, then search for the first ld in PATH.
36277     with_gnu_ld=unknown
36278     ;;
36279   esac
36280 elif test "$with_gnu_ld" = yes; then
36281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
36282 $as_echo_n "checking for GNU ld... " >&6; }
36283 else
36284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
36285 $as_echo_n "checking for non-GNU ld... " >&6; }
36286 fi
36287 if ${lt_cv_path_LD+:} false; then :
36288   $as_echo_n "(cached) " >&6
36289 else
36290   if test -z "$LD"; then
36291   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
36292   for ac_dir in $PATH; do
36293     IFS="$lt_save_ifs"
36294     test -z "$ac_dir" && ac_dir=.
36295     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
36296       lt_cv_path_LD="$ac_dir/$ac_prog"
36297       # Check to see if the program is GNU ld.  I'd rather use --version,
36298       # but apparently some variants of GNU ld only accept -v.
36299       # Break only if it was the GNU/non-GNU ld that we prefer.
36300       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
36301       *GNU* | *'with BFD'*)
36302         test "$with_gnu_ld" != no && break
36303         ;;
36304       *)
36305         test "$with_gnu_ld" != yes && break
36306         ;;
36307       esac
36308     fi
36309   done
36310   IFS="$lt_save_ifs"
36311 else
36312   lt_cv_path_LD="$LD" # Let the user override the test with a path.
36313 fi
36314 fi
36315
36316 LD="$lt_cv_path_LD"
36317 if test -n "$LD"; then
36318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
36319 $as_echo "$LD" >&6; }
36320 else
36321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36322 $as_echo "no" >&6; }
36323 fi
36324 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
36325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
36326 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
36327 if ${lt_cv_prog_gnu_ld+:} false; then :
36328   $as_echo_n "(cached) " >&6
36329 else
36330   # I'd rather use --version here, but apparently some GNU lds only accept -v.
36331 case `$LD -v 2>&1 </dev/null` in
36332 *GNU* | *'with BFD'*)
36333   lt_cv_prog_gnu_ld=yes
36334   ;;
36335 *)
36336   lt_cv_prog_gnu_ld=no
36337   ;;
36338 esac
36339 fi
36340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
36341 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
36342 with_gnu_ld=$lt_cv_prog_gnu_ld
36343
36344
36345
36346
36347
36348
36349
36350
36351
36352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
36353 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
36354 if ${lt_cv_path_NM+:} false; then :
36355   $as_echo_n "(cached) " >&6
36356 else
36357   if test -n "$NM"; then
36358   # Let the user override the test.
36359   lt_cv_path_NM="$NM"
36360 else
36361   lt_nm_to_check="${ac_tool_prefix}nm"
36362   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
36363     lt_nm_to_check="$lt_nm_to_check nm"
36364   fi
36365   for lt_tmp_nm in $lt_nm_to_check; do
36366     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
36367     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
36368       IFS="$lt_save_ifs"
36369       test -z "$ac_dir" && ac_dir=.
36370       tmp_nm="$ac_dir/$lt_tmp_nm"
36371       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
36372         # Check to see if the nm accepts a BSD-compat flag.
36373         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
36374         #   nm: unknown option "B" ignored
36375         # Tru64's nm complains that /dev/null is an invalid object file
36376         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
36377         */dev/null* | *'Invalid file or object type'*)
36378           lt_cv_path_NM="$tmp_nm -B"
36379           break
36380           ;;
36381         *)
36382           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
36383           */dev/null*)
36384             lt_cv_path_NM="$tmp_nm -p"
36385             break
36386             ;;
36387           *)
36388             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
36389             continue # so that we can try to find one that supports BSD flags
36390             ;;
36391           esac
36392           ;;
36393         esac
36394       fi
36395     done
36396     IFS="$lt_save_ifs"
36397   done
36398   : ${lt_cv_path_NM=no}
36399 fi
36400 fi
36401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
36402 $as_echo "$lt_cv_path_NM" >&6; }
36403 if test "$lt_cv_path_NM" != "no"; then
36404   NM="$lt_cv_path_NM"
36405 else
36406   # Didn't find any BSD compatible name lister, look for dumpbin.
36407   if test -n "$DUMPBIN"; then :
36408     # Let the user override the test.
36409   else
36410     if test -n "$ac_tool_prefix"; then
36411   for ac_prog in dumpbin "link -dump"
36412   do
36413     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
36414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36416 $as_echo_n "checking for $ac_word... " >&6; }
36417 if ${ac_cv_prog_DUMPBIN+:} false; then :
36418   $as_echo_n "(cached) " >&6
36419 else
36420   if test -n "$DUMPBIN"; then
36421   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
36422 else
36423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36424 for as_dir in $PATH
36425 do
36426   IFS=$as_save_IFS
36427   test -z "$as_dir" && as_dir=.
36428     for ac_exec_ext in '' $ac_executable_extensions; do
36429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36430     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
36431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36432     break 2
36433   fi
36434 done
36435   done
36436 IFS=$as_save_IFS
36437
36438 fi
36439 fi
36440 DUMPBIN=$ac_cv_prog_DUMPBIN
36441 if test -n "$DUMPBIN"; then
36442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
36443 $as_echo "$DUMPBIN" >&6; }
36444 else
36445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36446 $as_echo "no" >&6; }
36447 fi
36448
36449
36450     test -n "$DUMPBIN" && break
36451   done
36452 fi
36453 if test -z "$DUMPBIN"; then
36454   ac_ct_DUMPBIN=$DUMPBIN
36455   for ac_prog in dumpbin "link -dump"
36456 do
36457   # Extract the first word of "$ac_prog", so it can be a program name with args.
36458 set dummy $ac_prog; ac_word=$2
36459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36460 $as_echo_n "checking for $ac_word... " >&6; }
36461 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
36462   $as_echo_n "(cached) " >&6
36463 else
36464   if test -n "$ac_ct_DUMPBIN"; then
36465   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
36466 else
36467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36468 for as_dir in $PATH
36469 do
36470   IFS=$as_save_IFS
36471   test -z "$as_dir" && as_dir=.
36472     for ac_exec_ext in '' $ac_executable_extensions; do
36473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36474     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
36475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36476     break 2
36477   fi
36478 done
36479   done
36480 IFS=$as_save_IFS
36481
36482 fi
36483 fi
36484 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
36485 if test -n "$ac_ct_DUMPBIN"; then
36486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
36487 $as_echo "$ac_ct_DUMPBIN" >&6; }
36488 else
36489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36490 $as_echo "no" >&6; }
36491 fi
36492
36493
36494   test -n "$ac_ct_DUMPBIN" && break
36495 done
36496
36497   if test "x$ac_ct_DUMPBIN" = x; then
36498     DUMPBIN=":"
36499   else
36500     case $cross_compiling:$ac_tool_warned in
36501 yes:)
36502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36504 ac_tool_warned=yes ;;
36505 esac
36506     DUMPBIN=$ac_ct_DUMPBIN
36507   fi
36508 fi
36509
36510     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
36511     *COFF*)
36512       DUMPBIN="$DUMPBIN -symbols"
36513       ;;
36514     *)
36515       DUMPBIN=:
36516       ;;
36517     esac
36518   fi
36519
36520   if test "$DUMPBIN" != ":"; then
36521     NM="$DUMPBIN"
36522   fi
36523 fi
36524 test -z "$NM" && NM=nm
36525
36526
36527
36528
36529
36530
36531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
36532 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
36533 if ${lt_cv_nm_interface+:} false; then :
36534   $as_echo_n "(cached) " >&6
36535 else
36536   lt_cv_nm_interface="BSD nm"
36537   echo "int some_variable = 0;" > conftest.$ac_ext
36538   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
36539   (eval "$ac_compile" 2>conftest.err)
36540   cat conftest.err >&5
36541   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
36542   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
36543   cat conftest.err >&5
36544   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
36545   cat conftest.out >&5
36546   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
36547     lt_cv_nm_interface="MS dumpbin"
36548   fi
36549   rm -f conftest*
36550 fi
36551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
36552 $as_echo "$lt_cv_nm_interface" >&6; }
36553
36554 # find the maximum length of command line arguments
36555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
36556 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
36557 if ${lt_cv_sys_max_cmd_len+:} false; then :
36558   $as_echo_n "(cached) " >&6
36559 else
36560     i=0
36561   teststring="ABCD"
36562
36563   case $build_os in
36564   msdosdjgpp*)
36565     # On DJGPP, this test can blow up pretty badly due to problems in libc
36566     # (any single argument exceeding 2000 bytes causes a buffer overrun
36567     # during glob expansion).  Even if it were fixed, the result of this
36568     # check would be larger than it should be.
36569     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
36570     ;;
36571
36572   gnu*)
36573     # Under GNU Hurd, this test is not required because there is
36574     # no limit to the length of command line arguments.
36575     # Libtool will interpret -1 as no limit whatsoever
36576     lt_cv_sys_max_cmd_len=-1;
36577     ;;
36578
36579   cygwin* | mingw* | cegcc*)
36580     # On Win9x/ME, this test blows up -- it succeeds, but takes
36581     # about 5 minutes as the teststring grows exponentially.
36582     # Worse, since 9x/ME are not pre-emptively multitasking,
36583     # you end up with a "frozen" computer, even though with patience
36584     # the test eventually succeeds (with a max line length of 256k).
36585     # Instead, let's just punt: use the minimum linelength reported by
36586     # all of the supported platforms: 8192 (on NT/2K/XP).
36587     lt_cv_sys_max_cmd_len=8192;
36588     ;;
36589
36590   mint*)
36591     # On MiNT this can take a long time and run out of memory.
36592     lt_cv_sys_max_cmd_len=8192;
36593     ;;
36594
36595   amigaos*)
36596     # On AmigaOS with pdksh, this test takes hours, literally.
36597     # So we just punt and use a minimum line length of 8192.
36598     lt_cv_sys_max_cmd_len=8192;
36599     ;;
36600
36601   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
36602     # This has been around since 386BSD, at least.  Likely further.
36603     if test -x /sbin/sysctl; then
36604       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
36605     elif test -x /usr/sbin/sysctl; then
36606       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
36607     else
36608       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
36609     fi
36610     # And add a safety zone
36611     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
36612     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
36613     ;;
36614
36615   interix*)
36616     # We know the value 262144 and hardcode it with a safety zone (like BSD)
36617     lt_cv_sys_max_cmd_len=196608
36618     ;;
36619
36620   os2*)
36621     # The test takes a long time on OS/2.
36622     lt_cv_sys_max_cmd_len=8192
36623     ;;
36624
36625   osf*)
36626     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
36627     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
36628     # nice to cause kernel panics so lets avoid the loop below.
36629     # First set a reasonable default.
36630     lt_cv_sys_max_cmd_len=16384
36631     #
36632     if test -x /sbin/sysconfig; then
36633       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
36634         *1*) lt_cv_sys_max_cmd_len=-1 ;;
36635       esac
36636     fi
36637     ;;
36638   sco3.2v5*)
36639     lt_cv_sys_max_cmd_len=102400
36640     ;;
36641   sysv5* | sco5v6* | sysv4.2uw2*)
36642     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
36643     if test -n "$kargmax"; then
36644       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
36645     else
36646       lt_cv_sys_max_cmd_len=32768
36647     fi
36648     ;;
36649   *)
36650     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
36651     if test -n "$lt_cv_sys_max_cmd_len" && \
36652         test undefined != "$lt_cv_sys_max_cmd_len"; then
36653       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
36654       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
36655     else
36656       # Make teststring a little bigger before we do anything with it.
36657       # a 1K string should be a reasonable start.
36658       for i in 1 2 3 4 5 6 7 8 ; do
36659         teststring=$teststring$teststring
36660       done
36661       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
36662       # If test is not a shell built-in, we'll probably end up computing a
36663       # maximum length that is only half of the actual maximum length, but
36664       # we can't tell.
36665       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
36666                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
36667               test $i != 17 # 1/2 MB should be enough
36668       do
36669         i=`expr $i + 1`
36670         teststring=$teststring$teststring
36671       done
36672       # Only check the string length outside the loop.
36673       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
36674       teststring=
36675       # Add a significant safety factor because C++ compilers can tack on
36676       # massive amounts of additional arguments before passing them to the
36677       # linker.  It appears as though 1/2 is a usable value.
36678       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
36679     fi
36680     ;;
36681   esac
36682
36683 fi
36684
36685 if test -n $lt_cv_sys_max_cmd_len ; then
36686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
36687 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
36688 else
36689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
36690 $as_echo "none" >&6; }
36691 fi
36692 max_cmd_len=$lt_cv_sys_max_cmd_len
36693
36694
36695
36696
36697
36698
36699 : ${CP="cp -f"}
36700 : ${MV="mv -f"}
36701 : ${RM="rm -f"}
36702
36703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
36704 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
36705 # Try some XSI features
36706 xsi_shell=no
36707 ( _lt_dummy="a/b/c"
36708   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
36709       = c,a/b,b/c, \
36710     && eval 'test $(( 1 + 1 )) -eq 2 \
36711     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
36712   && xsi_shell=yes
36713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
36714 $as_echo "$xsi_shell" >&6; }
36715
36716
36717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
36718 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
36719 lt_shell_append=no
36720 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
36721     >/dev/null 2>&1 \
36722   && lt_shell_append=yes
36723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
36724 $as_echo "$lt_shell_append" >&6; }
36725
36726
36727 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36728   lt_unset=unset
36729 else
36730   lt_unset=false
36731 fi
36732
36733
36734
36735
36736
36737 # test EBCDIC or ASCII
36738 case `echo X|tr X '\101'` in
36739  A) # ASCII based system
36740     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
36741   lt_SP2NL='tr \040 \012'
36742   lt_NL2SP='tr \015\012 \040\040'
36743   ;;
36744  *) # EBCDIC based system
36745   lt_SP2NL='tr \100 \n'
36746   lt_NL2SP='tr \r\n \100\100'
36747   ;;
36748 esac
36749
36750
36751
36752
36753
36754
36755
36756
36757
36758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
36759 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
36760 if ${lt_cv_to_host_file_cmd+:} false; then :
36761   $as_echo_n "(cached) " >&6
36762 else
36763   case $host in
36764   *-*-mingw* )
36765     case $build in
36766       *-*-mingw* ) # actually msys
36767         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
36768         ;;
36769       *-*-cygwin* )
36770         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
36771         ;;
36772       * ) # otherwise, assume *nix
36773         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
36774         ;;
36775     esac
36776     ;;
36777   *-*-cygwin* )
36778     case $build in
36779       *-*-mingw* ) # actually msys
36780         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
36781         ;;
36782       *-*-cygwin* )
36783         lt_cv_to_host_file_cmd=func_convert_file_noop
36784         ;;
36785       * ) # otherwise, assume *nix
36786         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
36787         ;;
36788     esac
36789     ;;
36790   * ) # unhandled hosts (and "normal" native builds)
36791     lt_cv_to_host_file_cmd=func_convert_file_noop
36792     ;;
36793 esac
36794
36795 fi
36796
36797 to_host_file_cmd=$lt_cv_to_host_file_cmd
36798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
36799 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
36800
36801
36802
36803
36804
36805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
36806 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
36807 if ${lt_cv_to_tool_file_cmd+:} false; then :
36808   $as_echo_n "(cached) " >&6
36809 else
36810   #assume ordinary cross tools, or native build.
36811 lt_cv_to_tool_file_cmd=func_convert_file_noop
36812 case $host in
36813   *-*-mingw* )
36814     case $build in
36815       *-*-mingw* ) # actually msys
36816         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
36817         ;;
36818     esac
36819     ;;
36820 esac
36821
36822 fi
36823
36824 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
36826 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
36827
36828
36829
36830
36831
36832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
36833 $as_echo_n "checking for $LD option to reload object files... " >&6; }
36834 if ${lt_cv_ld_reload_flag+:} false; then :
36835   $as_echo_n "(cached) " >&6
36836 else
36837   lt_cv_ld_reload_flag='-r'
36838 fi
36839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
36840 $as_echo "$lt_cv_ld_reload_flag" >&6; }
36841 reload_flag=$lt_cv_ld_reload_flag
36842 case $reload_flag in
36843 "" | " "*) ;;
36844 *) reload_flag=" $reload_flag" ;;
36845 esac
36846 reload_cmds='$LD$reload_flag -o $output$reload_objs'
36847 case $host_os in
36848   cygwin* | mingw* | pw32* | cegcc*)
36849     if test "$GCC" != yes; then
36850       reload_cmds=false
36851     fi
36852     ;;
36853   darwin*)
36854     if test "$GCC" = yes; then
36855       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
36856     else
36857       reload_cmds='$LD$reload_flag -o $output$reload_objs'
36858     fi
36859     ;;
36860 esac
36861
36862
36863
36864
36865
36866
36867
36868
36869
36870 if test -n "$ac_tool_prefix"; then
36871   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
36872 set dummy ${ac_tool_prefix}objdump; ac_word=$2
36873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36874 $as_echo_n "checking for $ac_word... " >&6; }
36875 if ${ac_cv_prog_OBJDUMP+:} false; then :
36876   $as_echo_n "(cached) " >&6
36877 else
36878   if test -n "$OBJDUMP"; then
36879   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
36880 else
36881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36882 for as_dir in $PATH
36883 do
36884   IFS=$as_save_IFS
36885   test -z "$as_dir" && as_dir=.
36886     for ac_exec_ext in '' $ac_executable_extensions; do
36887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36888     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
36889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36890     break 2
36891   fi
36892 done
36893   done
36894 IFS=$as_save_IFS
36895
36896 fi
36897 fi
36898 OBJDUMP=$ac_cv_prog_OBJDUMP
36899 if test -n "$OBJDUMP"; then
36900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
36901 $as_echo "$OBJDUMP" >&6; }
36902 else
36903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36904 $as_echo "no" >&6; }
36905 fi
36906
36907
36908 fi
36909 if test -z "$ac_cv_prog_OBJDUMP"; then
36910   ac_ct_OBJDUMP=$OBJDUMP
36911   # Extract the first word of "objdump", so it can be a program name with args.
36912 set dummy objdump; ac_word=$2
36913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36914 $as_echo_n "checking for $ac_word... " >&6; }
36915 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
36916   $as_echo_n "(cached) " >&6
36917 else
36918   if test -n "$ac_ct_OBJDUMP"; then
36919   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
36920 else
36921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36922 for as_dir in $PATH
36923 do
36924   IFS=$as_save_IFS
36925   test -z "$as_dir" && as_dir=.
36926     for ac_exec_ext in '' $ac_executable_extensions; do
36927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36928     ac_cv_prog_ac_ct_OBJDUMP="objdump"
36929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36930     break 2
36931   fi
36932 done
36933   done
36934 IFS=$as_save_IFS
36935
36936 fi
36937 fi
36938 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
36939 if test -n "$ac_ct_OBJDUMP"; then
36940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
36941 $as_echo "$ac_ct_OBJDUMP" >&6; }
36942 else
36943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36944 $as_echo "no" >&6; }
36945 fi
36946
36947   if test "x$ac_ct_OBJDUMP" = x; then
36948     OBJDUMP="false"
36949   else
36950     case $cross_compiling:$ac_tool_warned in
36951 yes:)
36952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36954 ac_tool_warned=yes ;;
36955 esac
36956     OBJDUMP=$ac_ct_OBJDUMP
36957   fi
36958 else
36959   OBJDUMP="$ac_cv_prog_OBJDUMP"
36960 fi
36961
36962 test -z "$OBJDUMP" && OBJDUMP=objdump
36963
36964
36965
36966
36967
36968
36969
36970
36971
36972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
36973 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
36974 if ${lt_cv_deplibs_check_method+:} false; then :
36975   $as_echo_n "(cached) " >&6
36976 else
36977   lt_cv_file_magic_cmd='$MAGIC_CMD'
36978 lt_cv_file_magic_test_file=
36979 lt_cv_deplibs_check_method='unknown'
36980 # Need to set the preceding variable on all platforms that support
36981 # interlibrary dependencies.
36982 # 'none' -- dependencies not supported.
36983 # `unknown' -- same as none, but documents that we really don't know.
36984 # 'pass_all' -- all dependencies passed with no checks.
36985 # 'test_compile' -- check by making test program.
36986 # 'file_magic [[regex]]' -- check by looking for files in library path
36987 # which responds to the $file_magic_cmd with a given extended regex.
36988 # If you have `file' or equivalent on your system and you're not sure
36989 # whether `pass_all' will *always* work, you probably want this one.
36990
36991 case $host_os in
36992 aix[4-9]*)
36993   lt_cv_deplibs_check_method=pass_all
36994   ;;
36995
36996 beos*)
36997   lt_cv_deplibs_check_method=pass_all
36998   ;;
36999
37000 bsdi[45]*)
37001   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
37002   lt_cv_file_magic_cmd='/usr/bin/file -L'
37003   lt_cv_file_magic_test_file=/shlib/libc.so
37004   ;;
37005
37006 cygwin*)
37007   # func_win32_libid is a shell function defined in ltmain.sh
37008   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
37009   lt_cv_file_magic_cmd='func_win32_libid'
37010   ;;
37011
37012 mingw* | pw32*)
37013   # Base MSYS/MinGW do not provide the 'file' command needed by
37014   # func_win32_libid shell function, so use a weaker test based on 'objdump',
37015   # unless we find 'file', for example because we are cross-compiling.
37016   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
37017   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
37018     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
37019     lt_cv_file_magic_cmd='func_win32_libid'
37020   else
37021     # Keep this pattern in sync with the one in func_win32_libid.
37022     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
37023     lt_cv_file_magic_cmd='$OBJDUMP -f'
37024   fi
37025   ;;
37026
37027 cegcc*)
37028   # use the weaker test based on 'objdump'. See mingw*.
37029   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
37030   lt_cv_file_magic_cmd='$OBJDUMP -f'
37031   ;;
37032
37033 darwin* | rhapsody*)
37034   lt_cv_deplibs_check_method=pass_all
37035   ;;
37036
37037 freebsd* | dragonfly*)
37038   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
37039     case $host_cpu in
37040     i*86 )
37041       # Not sure whether the presence of OpenBSD here was a mistake.
37042       # Let's accept both of them until this is cleared up.
37043       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
37044       lt_cv_file_magic_cmd=/usr/bin/file
37045       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
37046       ;;
37047     esac
37048   else
37049     lt_cv_deplibs_check_method=pass_all
37050   fi
37051   ;;
37052
37053 haiku*)
37054   lt_cv_deplibs_check_method=pass_all
37055   ;;
37056
37057 hpux10.20* | hpux11*)
37058   lt_cv_file_magic_cmd=/usr/bin/file
37059   case $host_cpu in
37060   ia64*)
37061     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
37062     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
37063     ;;
37064   hppa*64*)
37065     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]'
37066     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
37067     ;;
37068   *)
37069     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
37070     lt_cv_file_magic_test_file=/usr/lib/libc.sl
37071     ;;
37072   esac
37073   ;;
37074
37075 interix[3-9]*)
37076   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
37077   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
37078   ;;
37079
37080 irix5* | irix6* | nonstopux*)
37081   case $LD in
37082   *-32|*"-32 ") libmagic=32-bit;;
37083   *-n32|*"-n32 ") libmagic=N32;;
37084   *-64|*"-64 ") libmagic=64-bit;;
37085   *) libmagic=never-match;;
37086   esac
37087   lt_cv_deplibs_check_method=pass_all
37088   ;;
37089
37090 # This must be glibc/ELF.
37091 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
37092   lt_cv_deplibs_check_method=pass_all
37093   ;;
37094
37095 netbsd* | netbsdelf*-gnu)
37096   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
37097     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
37098   else
37099     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
37100   fi
37101   ;;
37102
37103 newos6*)
37104   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
37105   lt_cv_file_magic_cmd=/usr/bin/file
37106   lt_cv_file_magic_test_file=/usr/lib/libnls.so
37107   ;;
37108
37109 *nto* | *qnx*)
37110   lt_cv_deplibs_check_method=pass_all
37111   ;;
37112
37113 openbsd*)
37114   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
37115     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
37116   else
37117     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
37118   fi
37119   ;;
37120
37121 osf3* | osf4* | osf5*)
37122   lt_cv_deplibs_check_method=pass_all
37123   ;;
37124
37125 rdos*)
37126   lt_cv_deplibs_check_method=pass_all
37127   ;;
37128
37129 solaris*)
37130   lt_cv_deplibs_check_method=pass_all
37131   ;;
37132
37133 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
37134   lt_cv_deplibs_check_method=pass_all
37135   ;;
37136
37137 sysv4 | sysv4.3*)
37138   case $host_vendor in
37139   motorola)
37140     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]'
37141     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
37142     ;;
37143   ncr)
37144     lt_cv_deplibs_check_method=pass_all
37145     ;;
37146   sequent)
37147     lt_cv_file_magic_cmd='/bin/file'
37148     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
37149     ;;
37150   sni)
37151     lt_cv_file_magic_cmd='/bin/file'
37152     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
37153     lt_cv_file_magic_test_file=/lib/libc.so
37154     ;;
37155   siemens)
37156     lt_cv_deplibs_check_method=pass_all
37157     ;;
37158   pc)
37159     lt_cv_deplibs_check_method=pass_all
37160     ;;
37161   esac
37162   ;;
37163
37164 tpf*)
37165   lt_cv_deplibs_check_method=pass_all
37166   ;;
37167 esac
37168
37169 fi
37170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
37171 $as_echo "$lt_cv_deplibs_check_method" >&6; }
37172
37173 file_magic_glob=
37174 want_nocaseglob=no
37175 if test "$build" = "$host"; then
37176   case $host_os in
37177   mingw* | pw32*)
37178     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
37179       want_nocaseglob=yes
37180     else
37181       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
37182     fi
37183     ;;
37184   esac
37185 fi
37186
37187 file_magic_cmd=$lt_cv_file_magic_cmd
37188 deplibs_check_method=$lt_cv_deplibs_check_method
37189 test -z "$deplibs_check_method" && deplibs_check_method=unknown
37190
37191
37192
37193
37194
37195
37196
37197
37198
37199
37200
37201
37202
37203
37204
37205
37206
37207
37208
37209
37210
37211
37212 if test -n "$ac_tool_prefix"; then
37213   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
37214 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
37215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37216 $as_echo_n "checking for $ac_word... " >&6; }
37217 if ${ac_cv_prog_DLLTOOL+:} false; then :
37218   $as_echo_n "(cached) " >&6
37219 else
37220   if test -n "$DLLTOOL"; then
37221   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
37222 else
37223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37224 for as_dir in $PATH
37225 do
37226   IFS=$as_save_IFS
37227   test -z "$as_dir" && as_dir=.
37228     for ac_exec_ext in '' $ac_executable_extensions; do
37229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37230     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
37231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37232     break 2
37233   fi
37234 done
37235   done
37236 IFS=$as_save_IFS
37237
37238 fi
37239 fi
37240 DLLTOOL=$ac_cv_prog_DLLTOOL
37241 if test -n "$DLLTOOL"; then
37242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
37243 $as_echo "$DLLTOOL" >&6; }
37244 else
37245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37246 $as_echo "no" >&6; }
37247 fi
37248
37249
37250 fi
37251 if test -z "$ac_cv_prog_DLLTOOL"; then
37252   ac_ct_DLLTOOL=$DLLTOOL
37253   # Extract the first word of "dlltool", so it can be a program name with args.
37254 set dummy dlltool; ac_word=$2
37255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37256 $as_echo_n "checking for $ac_word... " >&6; }
37257 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
37258   $as_echo_n "(cached) " >&6
37259 else
37260   if test -n "$ac_ct_DLLTOOL"; then
37261   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
37262 else
37263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37264 for as_dir in $PATH
37265 do
37266   IFS=$as_save_IFS
37267   test -z "$as_dir" && as_dir=.
37268     for ac_exec_ext in '' $ac_executable_extensions; do
37269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37270     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
37271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37272     break 2
37273   fi
37274 done
37275   done
37276 IFS=$as_save_IFS
37277
37278 fi
37279 fi
37280 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
37281 if test -n "$ac_ct_DLLTOOL"; then
37282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
37283 $as_echo "$ac_ct_DLLTOOL" >&6; }
37284 else
37285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37286 $as_echo "no" >&6; }
37287 fi
37288
37289   if test "x$ac_ct_DLLTOOL" = x; then
37290     DLLTOOL="false"
37291   else
37292     case $cross_compiling:$ac_tool_warned in
37293 yes:)
37294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37296 ac_tool_warned=yes ;;
37297 esac
37298     DLLTOOL=$ac_ct_DLLTOOL
37299   fi
37300 else
37301   DLLTOOL="$ac_cv_prog_DLLTOOL"
37302 fi
37303
37304 test -z "$DLLTOOL" && DLLTOOL=dlltool
37305
37306
37307
37308
37309
37310
37311
37312
37313
37314
37315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
37316 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
37317 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
37318   $as_echo_n "(cached) " >&6
37319 else
37320   lt_cv_sharedlib_from_linklib_cmd='unknown'
37321
37322 case $host_os in
37323 cygwin* | mingw* | pw32* | cegcc*)
37324   # two different shell functions defined in ltmain.sh
37325   # decide which to use based on capabilities of $DLLTOOL
37326   case `$DLLTOOL --help 2>&1` in
37327   *--identify-strict*)
37328     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
37329     ;;
37330   *)
37331     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
37332     ;;
37333   esac
37334   ;;
37335 *)
37336   # fallback: assume linklib IS sharedlib
37337   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
37338   ;;
37339 esac
37340
37341 fi
37342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
37343 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
37344 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
37345 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
37346
37347
37348
37349
37350
37351
37352
37353 if test -n "$ac_tool_prefix"; then
37354   for ac_prog in ar
37355   do
37356     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
37357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
37358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37359 $as_echo_n "checking for $ac_word... " >&6; }
37360 if ${ac_cv_prog_AR+:} false; then :
37361   $as_echo_n "(cached) " >&6
37362 else
37363   if test -n "$AR"; then
37364   ac_cv_prog_AR="$AR" # Let the user override the test.
37365 else
37366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37367 for as_dir in $PATH
37368 do
37369   IFS=$as_save_IFS
37370   test -z "$as_dir" && as_dir=.
37371     for ac_exec_ext in '' $ac_executable_extensions; do
37372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37373     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
37374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37375     break 2
37376   fi
37377 done
37378   done
37379 IFS=$as_save_IFS
37380
37381 fi
37382 fi
37383 AR=$ac_cv_prog_AR
37384 if test -n "$AR"; then
37385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
37386 $as_echo "$AR" >&6; }
37387 else
37388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37389 $as_echo "no" >&6; }
37390 fi
37391
37392
37393     test -n "$AR" && break
37394   done
37395 fi
37396 if test -z "$AR"; then
37397   ac_ct_AR=$AR
37398   for ac_prog in ar
37399 do
37400   # Extract the first word of "$ac_prog", so it can be a program name with args.
37401 set dummy $ac_prog; ac_word=$2
37402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37403 $as_echo_n "checking for $ac_word... " >&6; }
37404 if ${ac_cv_prog_ac_ct_AR+:} false; then :
37405   $as_echo_n "(cached) " >&6
37406 else
37407   if test -n "$ac_ct_AR"; then
37408   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
37409 else
37410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37411 for as_dir in $PATH
37412 do
37413   IFS=$as_save_IFS
37414   test -z "$as_dir" && as_dir=.
37415     for ac_exec_ext in '' $ac_executable_extensions; do
37416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37417     ac_cv_prog_ac_ct_AR="$ac_prog"
37418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37419     break 2
37420   fi
37421 done
37422   done
37423 IFS=$as_save_IFS
37424
37425 fi
37426 fi
37427 ac_ct_AR=$ac_cv_prog_ac_ct_AR
37428 if test -n "$ac_ct_AR"; then
37429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
37430 $as_echo "$ac_ct_AR" >&6; }
37431 else
37432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37433 $as_echo "no" >&6; }
37434 fi
37435
37436
37437   test -n "$ac_ct_AR" && break
37438 done
37439
37440   if test "x$ac_ct_AR" = x; then
37441     AR="false"
37442   else
37443     case $cross_compiling:$ac_tool_warned in
37444 yes:)
37445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37447 ac_tool_warned=yes ;;
37448 esac
37449     AR=$ac_ct_AR
37450   fi
37451 fi
37452
37453 : ${AR=ar}
37454 : ${AR_FLAGS=cru}
37455
37456
37457
37458
37459
37460
37461
37462
37463
37464
37465
37466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
37467 $as_echo_n "checking for archiver @FILE support... " >&6; }
37468 if ${lt_cv_ar_at_file+:} false; then :
37469   $as_echo_n "(cached) " >&6
37470 else
37471   lt_cv_ar_at_file=no
37472    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37473 /* end confdefs.h.  */
37474
37475 int
37476 main ()
37477 {
37478
37479   ;
37480   return 0;
37481 }
37482 _ACEOF
37483 if ac_fn_c_try_compile "$LINENO"; then :
37484   echo conftest.$ac_objext > conftest.lst
37485       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
37486       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
37487   (eval $lt_ar_try) 2>&5
37488   ac_status=$?
37489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37490   test $ac_status = 0; }
37491       if test "$ac_status" -eq 0; then
37492         # Ensure the archiver fails upon bogus file names.
37493         rm -f conftest.$ac_objext libconftest.a
37494         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
37495   (eval $lt_ar_try) 2>&5
37496   ac_status=$?
37497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37498   test $ac_status = 0; }
37499         if test "$ac_status" -ne 0; then
37500           lt_cv_ar_at_file=@
37501         fi
37502       fi
37503       rm -f conftest.* libconftest.a
37504
37505 fi
37506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37507
37508 fi
37509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
37510 $as_echo "$lt_cv_ar_at_file" >&6; }
37511
37512 if test "x$lt_cv_ar_at_file" = xno; then
37513   archiver_list_spec=
37514 else
37515   archiver_list_spec=$lt_cv_ar_at_file
37516 fi
37517
37518
37519
37520
37521
37522
37523
37524 if test -n "$ac_tool_prefix"; then
37525   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37526 set dummy ${ac_tool_prefix}strip; ac_word=$2
37527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37528 $as_echo_n "checking for $ac_word... " >&6; }
37529 if ${ac_cv_prog_STRIP+:} false; then :
37530   $as_echo_n "(cached) " >&6
37531 else
37532   if test -n "$STRIP"; then
37533   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37534 else
37535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37536 for as_dir in $PATH
37537 do
37538   IFS=$as_save_IFS
37539   test -z "$as_dir" && as_dir=.
37540     for ac_exec_ext in '' $ac_executable_extensions; do
37541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37542     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
37543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37544     break 2
37545   fi
37546 done
37547   done
37548 IFS=$as_save_IFS
37549
37550 fi
37551 fi
37552 STRIP=$ac_cv_prog_STRIP
37553 if test -n "$STRIP"; then
37554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
37555 $as_echo "$STRIP" >&6; }
37556 else
37557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37558 $as_echo "no" >&6; }
37559 fi
37560
37561
37562 fi
37563 if test -z "$ac_cv_prog_STRIP"; then
37564   ac_ct_STRIP=$STRIP
37565   # Extract the first word of "strip", so it can be a program name with args.
37566 set dummy strip; ac_word=$2
37567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37568 $as_echo_n "checking for $ac_word... " >&6; }
37569 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
37570   $as_echo_n "(cached) " >&6
37571 else
37572   if test -n "$ac_ct_STRIP"; then
37573   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37574 else
37575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37576 for as_dir in $PATH
37577 do
37578   IFS=$as_save_IFS
37579   test -z "$as_dir" && as_dir=.
37580     for ac_exec_ext in '' $ac_executable_extensions; do
37581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37582     ac_cv_prog_ac_ct_STRIP="strip"
37583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37584     break 2
37585   fi
37586 done
37587   done
37588 IFS=$as_save_IFS
37589
37590 fi
37591 fi
37592 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37593 if test -n "$ac_ct_STRIP"; then
37594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
37595 $as_echo "$ac_ct_STRIP" >&6; }
37596 else
37597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37598 $as_echo "no" >&6; }
37599 fi
37600
37601   if test "x$ac_ct_STRIP" = x; then
37602     STRIP=":"
37603   else
37604     case $cross_compiling:$ac_tool_warned in
37605 yes:)
37606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37608 ac_tool_warned=yes ;;
37609 esac
37610     STRIP=$ac_ct_STRIP
37611   fi
37612 else
37613   STRIP="$ac_cv_prog_STRIP"
37614 fi
37615
37616 test -z "$STRIP" && STRIP=:
37617
37618
37619
37620
37621
37622
37623 if test -n "$ac_tool_prefix"; then
37624   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37625 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37627 $as_echo_n "checking for $ac_word... " >&6; }
37628 if ${ac_cv_prog_RANLIB+:} false; then :
37629   $as_echo_n "(cached) " >&6
37630 else
37631   if test -n "$RANLIB"; then
37632   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37633 else
37634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37635 for as_dir in $PATH
37636 do
37637   IFS=$as_save_IFS
37638   test -z "$as_dir" && as_dir=.
37639     for ac_exec_ext in '' $ac_executable_extensions; do
37640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37641     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37643     break 2
37644   fi
37645 done
37646   done
37647 IFS=$as_save_IFS
37648
37649 fi
37650 fi
37651 RANLIB=$ac_cv_prog_RANLIB
37652 if test -n "$RANLIB"; then
37653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
37654 $as_echo "$RANLIB" >&6; }
37655 else
37656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37657 $as_echo "no" >&6; }
37658 fi
37659
37660
37661 fi
37662 if test -z "$ac_cv_prog_RANLIB"; then
37663   ac_ct_RANLIB=$RANLIB
37664   # Extract the first word of "ranlib", so it can be a program name with args.
37665 set dummy ranlib; ac_word=$2
37666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37667 $as_echo_n "checking for $ac_word... " >&6; }
37668 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
37669   $as_echo_n "(cached) " >&6
37670 else
37671   if test -n "$ac_ct_RANLIB"; then
37672   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37673 else
37674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37675 for as_dir in $PATH
37676 do
37677   IFS=$as_save_IFS
37678   test -z "$as_dir" && as_dir=.
37679     for ac_exec_ext in '' $ac_executable_extensions; do
37680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37681     ac_cv_prog_ac_ct_RANLIB="ranlib"
37682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37683     break 2
37684   fi
37685 done
37686   done
37687 IFS=$as_save_IFS
37688
37689 fi
37690 fi
37691 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37692 if test -n "$ac_ct_RANLIB"; then
37693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
37694 $as_echo "$ac_ct_RANLIB" >&6; }
37695 else
37696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37697 $as_echo "no" >&6; }
37698 fi
37699
37700   if test "x$ac_ct_RANLIB" = x; then
37701     RANLIB=":"
37702   else
37703     case $cross_compiling:$ac_tool_warned in
37704 yes:)
37705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37707 ac_tool_warned=yes ;;
37708 esac
37709     RANLIB=$ac_ct_RANLIB
37710   fi
37711 else
37712   RANLIB="$ac_cv_prog_RANLIB"
37713 fi
37714
37715 test -z "$RANLIB" && RANLIB=:
37716
37717
37718
37719
37720
37721
37722 # Determine commands to create old-style static archives.
37723 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
37724 old_postinstall_cmds='chmod 644 $oldlib'
37725 old_postuninstall_cmds=
37726
37727 if test -n "$RANLIB"; then
37728   case $host_os in
37729   openbsd*)
37730     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
37731     ;;
37732   *)
37733     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
37734     ;;
37735   esac
37736   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
37737 fi
37738
37739 case $host_os in
37740   darwin*)
37741     lock_old_archive_extraction=yes ;;
37742   *)
37743     lock_old_archive_extraction=no ;;
37744 esac
37745
37746
37747
37748
37749
37750
37751
37752
37753
37754
37755
37756
37757
37758
37759
37760
37761
37762
37763
37764
37765
37766
37767
37768
37769
37770
37771
37772
37773
37774
37775
37776
37777
37778
37779
37780
37781
37782
37783
37784 # If no C compiler was specified, use CC.
37785 LTCC=${LTCC-"$CC"}
37786
37787 # If no C compiler flags were specified, use CFLAGS.
37788 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
37789
37790 # Allow CC to be a program name with arguments.
37791 compiler=$CC
37792
37793
37794 # Check for command to grab the raw symbol name followed by C symbol from nm.
37795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
37796 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
37797 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
37798   $as_echo_n "(cached) " >&6
37799 else
37800
37801 # These are sane defaults that work on at least a few old systems.
37802 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
37803
37804 # Character class describing NM global symbol codes.
37805 symcode='[BCDEGRST]'
37806
37807 # Regexp to match symbols that can be accessed directly from C.
37808 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
37809
37810 # Define system-specific variables.
37811 case $host_os in
37812 aix*)
37813   symcode='[BCDT]'
37814   ;;
37815 cygwin* | mingw* | pw32* | cegcc*)
37816   symcode='[ABCDGISTW]'
37817   ;;
37818 hpux*)
37819   if test "$host_cpu" = ia64; then
37820     symcode='[ABCDEGRST]'
37821   fi
37822   ;;
37823 irix* | nonstopux*)
37824   symcode='[BCDEGRST]'
37825   ;;
37826 osf*)
37827   symcode='[BCDEGQRST]'
37828   ;;
37829 solaris*)
37830   symcode='[BDRT]'
37831   ;;
37832 sco3.2v5*)
37833   symcode='[DT]'
37834   ;;
37835 sysv4.2uw2*)
37836   symcode='[DT]'
37837   ;;
37838 sysv5* | sco5v6* | unixware* | OpenUNIX*)
37839   symcode='[ABDT]'
37840   ;;
37841 sysv4)
37842   symcode='[DFNSTU]'
37843   ;;
37844 esac
37845
37846 # If we're using GNU nm, then use its standard symbol codes.
37847 case `$NM -V 2>&1` in
37848 *GNU* | *'with BFD'*)
37849   symcode='[ABCDGIRSTW]' ;;
37850 esac
37851
37852 # Transform an extracted symbol line into a proper C declaration.
37853 # Some systems (esp. on ia64) link data and code symbols differently,
37854 # so use this general approach.
37855 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
37856
37857 # Transform an extracted symbol line into symbol name and symbol address
37858 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
37859 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'"
37860
37861 # Handle CRLF in mingw tool chain
37862 opt_cr=
37863 case $build_os in
37864 mingw*)
37865   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
37866   ;;
37867 esac
37868
37869 # Try without a prefix underscore, then with it.
37870 for ac_symprfx in "" "_"; do
37871
37872   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
37873   symxfrm="\\1 $ac_symprfx\\2 \\2"
37874
37875   # Write the raw and C identifiers.
37876   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
37877     # Fake it for dumpbin and say T for any non-static function
37878     # and D for any global variable.
37879     # Also find C++ and __fastcall symbols from MSVC++,
37880     # which start with @ or ?.
37881     lt_cv_sys_global_symbol_pipe="$AWK '"\
37882 "     {last_section=section; section=\$ 3};"\
37883 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
37884 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
37885 "     \$ 0!~/External *\|/{next};"\
37886 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
37887 "     {if(hide[section]) next};"\
37888 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
37889 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
37890 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
37891 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
37892 "     ' prfx=^$ac_symprfx"
37893   else
37894     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
37895   fi
37896   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
37897
37898   # Check to see that the pipe works correctly.
37899   pipe_works=no
37900
37901   rm -f conftest*
37902   cat > conftest.$ac_ext <<_LT_EOF
37903 #ifdef __cplusplus
37904 extern "C" {
37905 #endif
37906 char nm_test_var;
37907 void nm_test_func(void);
37908 void nm_test_func(void){}
37909 #ifdef __cplusplus
37910 }
37911 #endif
37912 int main(){nm_test_var='a';nm_test_func();return(0);}
37913 _LT_EOF
37914
37915   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37916   (eval $ac_compile) 2>&5
37917   ac_status=$?
37918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37919   test $ac_status = 0; }; then
37920     # Now try to grab the symbols.
37921     nlist=conftest.nm
37922     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
37923   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
37924   ac_status=$?
37925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37926   test $ac_status = 0; } && test -s "$nlist"; then
37927       # Try sorting and uniquifying the output.
37928       if sort "$nlist" | uniq > "$nlist"T; then
37929         mv -f "$nlist"T "$nlist"
37930       else
37931         rm -f "$nlist"T
37932       fi
37933
37934       # Make sure that we snagged all the symbols we need.
37935       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
37936         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
37937           cat <<_LT_EOF > conftest.$ac_ext
37938 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
37939 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
37940 /* DATA imports from DLLs on WIN32 con't be const, because runtime
37941    relocations are performed -- see ld's documentation on pseudo-relocs.  */
37942 # define LT_DLSYM_CONST
37943 #elif defined(__osf__)
37944 /* This system does not cope well with relocations in const data.  */
37945 # define LT_DLSYM_CONST
37946 #else
37947 # define LT_DLSYM_CONST const
37948 #endif
37949
37950 #ifdef __cplusplus
37951 extern "C" {
37952 #endif
37953
37954 _LT_EOF
37955           # Now generate the symbol file.
37956           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
37957
37958           cat <<_LT_EOF >> conftest.$ac_ext
37959
37960 /* The mapping between symbol names and symbols.  */
37961 LT_DLSYM_CONST struct {
37962   const char *name;
37963   void       *address;
37964 }
37965 lt__PROGRAM__LTX_preloaded_symbols[] =
37966 {
37967   { "@PROGRAM@", (void *) 0 },
37968 _LT_EOF
37969           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
37970           cat <<\_LT_EOF >> conftest.$ac_ext
37971   {0, (void *) 0}
37972 };
37973
37974 /* This works around a problem in FreeBSD linker */
37975 #ifdef FREEBSD_WORKAROUND
37976 static const void *lt_preloaded_setup() {
37977   return lt__PROGRAM__LTX_preloaded_symbols;
37978 }
37979 #endif
37980
37981 #ifdef __cplusplus
37982 }
37983 #endif
37984 _LT_EOF
37985           # Now try linking the two files.
37986           mv conftest.$ac_objext conftstm.$ac_objext
37987           lt_globsym_save_LIBS=$LIBS
37988           lt_globsym_save_CFLAGS=$CFLAGS
37989           LIBS="conftstm.$ac_objext"
37990           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
37991           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
37992   (eval $ac_link) 2>&5
37993   ac_status=$?
37994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37995   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
37996             pipe_works=yes
37997           fi
37998           LIBS=$lt_globsym_save_LIBS
37999           CFLAGS=$lt_globsym_save_CFLAGS
38000         else
38001           echo "cannot find nm_test_func in $nlist" >&5
38002         fi
38003       else
38004         echo "cannot find nm_test_var in $nlist" >&5
38005       fi
38006     else
38007       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
38008     fi
38009   else
38010     echo "$progname: failed program was:" >&5
38011     cat conftest.$ac_ext >&5
38012   fi
38013   rm -rf conftest* conftst*
38014
38015   # Do not use the global_symbol_pipe unless it works.
38016   if test "$pipe_works" = yes; then
38017     break
38018   else
38019     lt_cv_sys_global_symbol_pipe=
38020   fi
38021 done
38022
38023 fi
38024
38025 if test -z "$lt_cv_sys_global_symbol_pipe"; then
38026   lt_cv_sys_global_symbol_to_cdecl=
38027 fi
38028 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
38029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
38030 $as_echo "failed" >&6; }
38031 else
38032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
38033 $as_echo "ok" >&6; }
38034 fi
38035
38036 # Response file support.
38037 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
38038   nm_file_list_spec='@'
38039 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
38040   nm_file_list_spec='@'
38041 fi
38042
38043
38044
38045
38046
38047
38048
38049
38050
38051
38052
38053
38054
38055
38056
38057
38058
38059
38060
38061
38062
38063
38064
38065
38066
38067
38068
38069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
38070 $as_echo_n "checking for sysroot... " >&6; }
38071
38072 # Check whether --with-sysroot was given.
38073 if test "${with_sysroot+set}" = set; then :
38074   withval=$with_sysroot;
38075 else
38076   with_sysroot=no
38077 fi
38078
38079
38080 lt_sysroot=
38081 case ${with_sysroot} in #(
38082  yes)
38083    if test "$GCC" = yes; then
38084      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
38085    fi
38086    ;; #(
38087  /*)
38088    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
38089    ;; #(
38090  no|'')
38091    ;; #(
38092  *)
38093    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
38094 $as_echo "${with_sysroot}" >&6; }
38095    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
38096    ;;
38097 esac
38098
38099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
38100 $as_echo "${lt_sysroot:-no}" >&6; }
38101
38102
38103
38104
38105
38106 # Check whether --enable-libtool-lock was given.
38107 if test "${enable_libtool_lock+set}" = set; then :
38108   enableval=$enable_libtool_lock;
38109 fi
38110
38111 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
38112
38113 # Some flags need to be propagated to the compiler or linker for good
38114 # libtool support.
38115 case $host in
38116 ia64-*-hpux*)
38117   # Find out which ABI we are using.
38118   echo 'int i;' > conftest.$ac_ext
38119   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
38120   (eval $ac_compile) 2>&5
38121   ac_status=$?
38122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38123   test $ac_status = 0; }; then
38124     case `/usr/bin/file conftest.$ac_objext` in
38125       *ELF-32*)
38126         HPUX_IA64_MODE="32"
38127         ;;
38128       *ELF-64*)
38129         HPUX_IA64_MODE="64"
38130         ;;
38131     esac
38132   fi
38133   rm -rf conftest*
38134   ;;
38135 *-*-irix6*)
38136   # Find out which ABI we are using.
38137   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
38138   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
38139   (eval $ac_compile) 2>&5
38140   ac_status=$?
38141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38142   test $ac_status = 0; }; then
38143     if test "$lt_cv_prog_gnu_ld" = yes; then
38144       case `/usr/bin/file conftest.$ac_objext` in
38145         *32-bit*)
38146           LD="${LD-ld} -melf32bsmip"
38147           ;;
38148         *N32*)
38149           LD="${LD-ld} -melf32bmipn32"
38150           ;;
38151         *64-bit*)
38152           LD="${LD-ld} -melf64bmip"
38153         ;;
38154       esac
38155     else
38156       case `/usr/bin/file conftest.$ac_objext` in
38157         *32-bit*)
38158           LD="${LD-ld} -32"
38159           ;;
38160         *N32*)
38161           LD="${LD-ld} -n32"
38162           ;;
38163         *64-bit*)
38164           LD="${LD-ld} -64"
38165           ;;
38166       esac
38167     fi
38168   fi
38169   rm -rf conftest*
38170   ;;
38171
38172 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
38173 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
38174   # Find out which ABI we are using.
38175   echo 'int i;' > conftest.$ac_ext
38176   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
38177   (eval $ac_compile) 2>&5
38178   ac_status=$?
38179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38180   test $ac_status = 0; }; then
38181     case `/usr/bin/file conftest.o` in
38182       *32-bit*)
38183         case $host in
38184           x86_64-*kfreebsd*-gnu)
38185             LD="${LD-ld} -m elf_i386_fbsd"
38186             ;;
38187           x86_64-*linux*)
38188             case `/usr/bin/file conftest.o` in
38189               *x86-64*)
38190                 LD="${LD-ld} -m elf32_x86_64"
38191                 ;;
38192               *)
38193                 LD="${LD-ld} -m elf_i386"
38194                 ;;
38195             esac
38196             ;;
38197           powerpc64le-*)
38198             LD="${LD-ld} -m elf32lppclinux"
38199             ;;
38200           powerpc64-*)
38201             LD="${LD-ld} -m elf32ppclinux"
38202             ;;
38203           s390x-*linux*)
38204             LD="${LD-ld} -m elf_s390"
38205             ;;
38206           sparc64-*linux*)
38207             LD="${LD-ld} -m elf32_sparc"
38208             ;;
38209         esac
38210         ;;
38211       *64-bit*)
38212         case $host in
38213           x86_64-*kfreebsd*-gnu)
38214             LD="${LD-ld} -m elf_x86_64_fbsd"
38215             ;;
38216           x86_64-*linux*)
38217             LD="${LD-ld} -m elf_x86_64"
38218             ;;
38219           powerpcle-*)
38220             LD="${LD-ld} -m elf64lppc"
38221             ;;
38222           powerpc-*)
38223             LD="${LD-ld} -m elf64ppc"
38224             ;;
38225           s390*-*linux*|s390*-*tpf*)
38226             LD="${LD-ld} -m elf64_s390"
38227             ;;
38228           sparc*-*linux*)
38229             LD="${LD-ld} -m elf64_sparc"
38230             ;;
38231         esac
38232         ;;
38233     esac
38234   fi
38235   rm -rf conftest*
38236   ;;
38237
38238 *-*-sco3.2v5*)
38239   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
38240   SAVE_CFLAGS="$CFLAGS"
38241   CFLAGS="$CFLAGS -belf"
38242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
38243 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
38244 if ${lt_cv_cc_needs_belf+:} false; then :
38245   $as_echo_n "(cached) " >&6
38246 else
38247   ac_ext=c
38248 ac_cpp='$CPP $CPPFLAGS'
38249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38252
38253      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38254 /* end confdefs.h.  */
38255
38256 int
38257 main ()
38258 {
38259
38260   ;
38261   return 0;
38262 }
38263 _ACEOF
38264 if ac_fn_c_try_link "$LINENO"; then :
38265   lt_cv_cc_needs_belf=yes
38266 else
38267   lt_cv_cc_needs_belf=no
38268 fi
38269 rm -f core conftest.err conftest.$ac_objext \
38270     conftest$ac_exeext conftest.$ac_ext
38271      ac_ext=c
38272 ac_cpp='$CPP $CPPFLAGS'
38273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38276
38277 fi
38278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
38279 $as_echo "$lt_cv_cc_needs_belf" >&6; }
38280   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
38281     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
38282     CFLAGS="$SAVE_CFLAGS"
38283   fi
38284   ;;
38285 *-*solaris*)
38286   # Find out which ABI we are using.
38287   echo 'int i;' > conftest.$ac_ext
38288   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
38289   (eval $ac_compile) 2>&5
38290   ac_status=$?
38291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38292   test $ac_status = 0; }; then
38293     case `/usr/bin/file conftest.o` in
38294     *64-bit*)
38295       case $lt_cv_prog_gnu_ld in
38296       yes*)
38297         case $host in
38298         i?86-*-solaris*)
38299           LD="${LD-ld} -m elf_x86_64"
38300           ;;
38301         sparc*-*-solaris*)
38302           LD="${LD-ld} -m elf64_sparc"
38303           ;;
38304         esac
38305         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
38306         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
38307           LD="${LD-ld}_sol2"
38308         fi
38309         ;;
38310       *)
38311         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
38312           LD="${LD-ld} -64"
38313         fi
38314         ;;
38315       esac
38316       ;;
38317     esac
38318   fi
38319   rm -rf conftest*
38320   ;;
38321 esac
38322
38323 need_locks="$enable_libtool_lock"
38324
38325 if test -n "$ac_tool_prefix"; then
38326   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
38327 set dummy ${ac_tool_prefix}mt; ac_word=$2
38328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38329 $as_echo_n "checking for $ac_word... " >&6; }
38330 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
38331   $as_echo_n "(cached) " >&6
38332 else
38333   if test -n "$MANIFEST_TOOL"; then
38334   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
38335 else
38336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38337 for as_dir in $PATH
38338 do
38339   IFS=$as_save_IFS
38340   test -z "$as_dir" && as_dir=.
38341     for ac_exec_ext in '' $ac_executable_extensions; do
38342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38343     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
38344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38345     break 2
38346   fi
38347 done
38348   done
38349 IFS=$as_save_IFS
38350
38351 fi
38352 fi
38353 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
38354 if test -n "$MANIFEST_TOOL"; then
38355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
38356 $as_echo "$MANIFEST_TOOL" >&6; }
38357 else
38358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38359 $as_echo "no" >&6; }
38360 fi
38361
38362
38363 fi
38364 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
38365   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
38366   # Extract the first word of "mt", so it can be a program name with args.
38367 set dummy mt; ac_word=$2
38368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38369 $as_echo_n "checking for $ac_word... " >&6; }
38370 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
38371   $as_echo_n "(cached) " >&6
38372 else
38373   if test -n "$ac_ct_MANIFEST_TOOL"; then
38374   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
38375 else
38376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38377 for as_dir in $PATH
38378 do
38379   IFS=$as_save_IFS
38380   test -z "$as_dir" && as_dir=.
38381     for ac_exec_ext in '' $ac_executable_extensions; do
38382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38383     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
38384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38385     break 2
38386   fi
38387 done
38388   done
38389 IFS=$as_save_IFS
38390
38391 fi
38392 fi
38393 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
38394 if test -n "$ac_ct_MANIFEST_TOOL"; then
38395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
38396 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
38397 else
38398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38399 $as_echo "no" >&6; }
38400 fi
38401
38402   if test "x$ac_ct_MANIFEST_TOOL" = x; then
38403     MANIFEST_TOOL=":"
38404   else
38405     case $cross_compiling:$ac_tool_warned in
38406 yes:)
38407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38409 ac_tool_warned=yes ;;
38410 esac
38411     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
38412   fi
38413 else
38414   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
38415 fi
38416
38417 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
38418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
38419 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
38420 if ${lt_cv_path_mainfest_tool+:} false; then :
38421   $as_echo_n "(cached) " >&6
38422 else
38423   lt_cv_path_mainfest_tool=no
38424   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
38425   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
38426   cat conftest.err >&5
38427   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
38428     lt_cv_path_mainfest_tool=yes
38429   fi
38430   rm -f conftest*
38431 fi
38432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
38433 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
38434 if test "x$lt_cv_path_mainfest_tool" != xyes; then
38435   MANIFEST_TOOL=:
38436 fi
38437
38438
38439
38440
38441
38442
38443   case $host_os in
38444     rhapsody* | darwin*)
38445     if test -n "$ac_tool_prefix"; then
38446   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
38447 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
38448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38449 $as_echo_n "checking for $ac_word... " >&6; }
38450 if ${ac_cv_prog_DSYMUTIL+:} false; then :
38451   $as_echo_n "(cached) " >&6
38452 else
38453   if test -n "$DSYMUTIL"; then
38454   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
38455 else
38456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38457 for as_dir in $PATH
38458 do
38459   IFS=$as_save_IFS
38460   test -z "$as_dir" && as_dir=.
38461     for ac_exec_ext in '' $ac_executable_extensions; do
38462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38463     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
38464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38465     break 2
38466   fi
38467 done
38468   done
38469 IFS=$as_save_IFS
38470
38471 fi
38472 fi
38473 DSYMUTIL=$ac_cv_prog_DSYMUTIL
38474 if test -n "$DSYMUTIL"; then
38475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
38476 $as_echo "$DSYMUTIL" >&6; }
38477 else
38478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38479 $as_echo "no" >&6; }
38480 fi
38481
38482
38483 fi
38484 if test -z "$ac_cv_prog_DSYMUTIL"; then
38485   ac_ct_DSYMUTIL=$DSYMUTIL
38486   # Extract the first word of "dsymutil", so it can be a program name with args.
38487 set dummy dsymutil; ac_word=$2
38488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38489 $as_echo_n "checking for $ac_word... " >&6; }
38490 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
38491   $as_echo_n "(cached) " >&6
38492 else
38493   if test -n "$ac_ct_DSYMUTIL"; then
38494   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
38495 else
38496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38497 for as_dir in $PATH
38498 do
38499   IFS=$as_save_IFS
38500   test -z "$as_dir" && as_dir=.
38501     for ac_exec_ext in '' $ac_executable_extensions; do
38502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38503     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
38504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38505     break 2
38506   fi
38507 done
38508   done
38509 IFS=$as_save_IFS
38510
38511 fi
38512 fi
38513 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
38514 if test -n "$ac_ct_DSYMUTIL"; then
38515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
38516 $as_echo "$ac_ct_DSYMUTIL" >&6; }
38517 else
38518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38519 $as_echo "no" >&6; }
38520 fi
38521
38522   if test "x$ac_ct_DSYMUTIL" = x; then
38523     DSYMUTIL=":"
38524   else
38525     case $cross_compiling:$ac_tool_warned in
38526 yes:)
38527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38529 ac_tool_warned=yes ;;
38530 esac
38531     DSYMUTIL=$ac_ct_DSYMUTIL
38532   fi
38533 else
38534   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
38535 fi
38536
38537     if test -n "$ac_tool_prefix"; then
38538   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
38539 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
38540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38541 $as_echo_n "checking for $ac_word... " >&6; }
38542 if ${ac_cv_prog_NMEDIT+:} false; then :
38543   $as_echo_n "(cached) " >&6
38544 else
38545   if test -n "$NMEDIT"; then
38546   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
38547 else
38548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38549 for as_dir in $PATH
38550 do
38551   IFS=$as_save_IFS
38552   test -z "$as_dir" && as_dir=.
38553     for ac_exec_ext in '' $ac_executable_extensions; do
38554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38555     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
38556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38557     break 2
38558   fi
38559 done
38560   done
38561 IFS=$as_save_IFS
38562
38563 fi
38564 fi
38565 NMEDIT=$ac_cv_prog_NMEDIT
38566 if test -n "$NMEDIT"; then
38567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
38568 $as_echo "$NMEDIT" >&6; }
38569 else
38570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38571 $as_echo "no" >&6; }
38572 fi
38573
38574
38575 fi
38576 if test -z "$ac_cv_prog_NMEDIT"; then
38577   ac_ct_NMEDIT=$NMEDIT
38578   # Extract the first word of "nmedit", so it can be a program name with args.
38579 set dummy nmedit; ac_word=$2
38580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38581 $as_echo_n "checking for $ac_word... " >&6; }
38582 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
38583   $as_echo_n "(cached) " >&6
38584 else
38585   if test -n "$ac_ct_NMEDIT"; then
38586   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
38587 else
38588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38589 for as_dir in $PATH
38590 do
38591   IFS=$as_save_IFS
38592   test -z "$as_dir" && as_dir=.
38593     for ac_exec_ext in '' $ac_executable_extensions; do
38594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38595     ac_cv_prog_ac_ct_NMEDIT="nmedit"
38596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38597     break 2
38598   fi
38599 done
38600   done
38601 IFS=$as_save_IFS
38602
38603 fi
38604 fi
38605 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
38606 if test -n "$ac_ct_NMEDIT"; then
38607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
38608 $as_echo "$ac_ct_NMEDIT" >&6; }
38609 else
38610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38611 $as_echo "no" >&6; }
38612 fi
38613
38614   if test "x$ac_ct_NMEDIT" = x; then
38615     NMEDIT=":"
38616   else
38617     case $cross_compiling:$ac_tool_warned in
38618 yes:)
38619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38621 ac_tool_warned=yes ;;
38622 esac
38623     NMEDIT=$ac_ct_NMEDIT
38624   fi
38625 else
38626   NMEDIT="$ac_cv_prog_NMEDIT"
38627 fi
38628
38629     if test -n "$ac_tool_prefix"; then
38630   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
38631 set dummy ${ac_tool_prefix}lipo; ac_word=$2
38632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38633 $as_echo_n "checking for $ac_word... " >&6; }
38634 if ${ac_cv_prog_LIPO+:} false; then :
38635   $as_echo_n "(cached) " >&6
38636 else
38637   if test -n "$LIPO"; then
38638   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
38639 else
38640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38641 for as_dir in $PATH
38642 do
38643   IFS=$as_save_IFS
38644   test -z "$as_dir" && as_dir=.
38645     for ac_exec_ext in '' $ac_executable_extensions; do
38646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38647     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
38648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38649     break 2
38650   fi
38651 done
38652   done
38653 IFS=$as_save_IFS
38654
38655 fi
38656 fi
38657 LIPO=$ac_cv_prog_LIPO
38658 if test -n "$LIPO"; then
38659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
38660 $as_echo "$LIPO" >&6; }
38661 else
38662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38663 $as_echo "no" >&6; }
38664 fi
38665
38666
38667 fi
38668 if test -z "$ac_cv_prog_LIPO"; then
38669   ac_ct_LIPO=$LIPO
38670   # Extract the first word of "lipo", so it can be a program name with args.
38671 set dummy lipo; ac_word=$2
38672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38673 $as_echo_n "checking for $ac_word... " >&6; }
38674 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
38675   $as_echo_n "(cached) " >&6
38676 else
38677   if test -n "$ac_ct_LIPO"; then
38678   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
38679 else
38680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38681 for as_dir in $PATH
38682 do
38683   IFS=$as_save_IFS
38684   test -z "$as_dir" && as_dir=.
38685     for ac_exec_ext in '' $ac_executable_extensions; do
38686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38687     ac_cv_prog_ac_ct_LIPO="lipo"
38688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38689     break 2
38690   fi
38691 done
38692   done
38693 IFS=$as_save_IFS
38694
38695 fi
38696 fi
38697 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
38698 if test -n "$ac_ct_LIPO"; then
38699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
38700 $as_echo "$ac_ct_LIPO" >&6; }
38701 else
38702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38703 $as_echo "no" >&6; }
38704 fi
38705
38706   if test "x$ac_ct_LIPO" = x; then
38707     LIPO=":"
38708   else
38709     case $cross_compiling:$ac_tool_warned in
38710 yes:)
38711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38713 ac_tool_warned=yes ;;
38714 esac
38715     LIPO=$ac_ct_LIPO
38716   fi
38717 else
38718   LIPO="$ac_cv_prog_LIPO"
38719 fi
38720
38721     if test -n "$ac_tool_prefix"; then
38722   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
38723 set dummy ${ac_tool_prefix}otool; ac_word=$2
38724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38725 $as_echo_n "checking for $ac_word... " >&6; }
38726 if ${ac_cv_prog_OTOOL+:} false; then :
38727   $as_echo_n "(cached) " >&6
38728 else
38729   if test -n "$OTOOL"; then
38730   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
38731 else
38732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38733 for as_dir in $PATH
38734 do
38735   IFS=$as_save_IFS
38736   test -z "$as_dir" && as_dir=.
38737     for ac_exec_ext in '' $ac_executable_extensions; do
38738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38739     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
38740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38741     break 2
38742   fi
38743 done
38744   done
38745 IFS=$as_save_IFS
38746
38747 fi
38748 fi
38749 OTOOL=$ac_cv_prog_OTOOL
38750 if test -n "$OTOOL"; then
38751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
38752 $as_echo "$OTOOL" >&6; }
38753 else
38754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38755 $as_echo "no" >&6; }
38756 fi
38757
38758
38759 fi
38760 if test -z "$ac_cv_prog_OTOOL"; then
38761   ac_ct_OTOOL=$OTOOL
38762   # Extract the first word of "otool", so it can be a program name with args.
38763 set dummy otool; ac_word=$2
38764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38765 $as_echo_n "checking for $ac_word... " >&6; }
38766 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
38767   $as_echo_n "(cached) " >&6
38768 else
38769   if test -n "$ac_ct_OTOOL"; then
38770   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
38771 else
38772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38773 for as_dir in $PATH
38774 do
38775   IFS=$as_save_IFS
38776   test -z "$as_dir" && as_dir=.
38777     for ac_exec_ext in '' $ac_executable_extensions; do
38778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38779     ac_cv_prog_ac_ct_OTOOL="otool"
38780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38781     break 2
38782   fi
38783 done
38784   done
38785 IFS=$as_save_IFS
38786
38787 fi
38788 fi
38789 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
38790 if test -n "$ac_ct_OTOOL"; then
38791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
38792 $as_echo "$ac_ct_OTOOL" >&6; }
38793 else
38794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38795 $as_echo "no" >&6; }
38796 fi
38797
38798   if test "x$ac_ct_OTOOL" = x; then
38799     OTOOL=":"
38800   else
38801     case $cross_compiling:$ac_tool_warned in
38802 yes:)
38803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38805 ac_tool_warned=yes ;;
38806 esac
38807     OTOOL=$ac_ct_OTOOL
38808   fi
38809 else
38810   OTOOL="$ac_cv_prog_OTOOL"
38811 fi
38812
38813     if test -n "$ac_tool_prefix"; then
38814   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
38815 set dummy ${ac_tool_prefix}otool64; ac_word=$2
38816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38817 $as_echo_n "checking for $ac_word... " >&6; }
38818 if ${ac_cv_prog_OTOOL64+:} false; then :
38819   $as_echo_n "(cached) " >&6
38820 else
38821   if test -n "$OTOOL64"; then
38822   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
38823 else
38824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38825 for as_dir in $PATH
38826 do
38827   IFS=$as_save_IFS
38828   test -z "$as_dir" && as_dir=.
38829     for ac_exec_ext in '' $ac_executable_extensions; do
38830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38831     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
38832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38833     break 2
38834   fi
38835 done
38836   done
38837 IFS=$as_save_IFS
38838
38839 fi
38840 fi
38841 OTOOL64=$ac_cv_prog_OTOOL64
38842 if test -n "$OTOOL64"; then
38843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
38844 $as_echo "$OTOOL64" >&6; }
38845 else
38846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38847 $as_echo "no" >&6; }
38848 fi
38849
38850
38851 fi
38852 if test -z "$ac_cv_prog_OTOOL64"; then
38853   ac_ct_OTOOL64=$OTOOL64
38854   # Extract the first word of "otool64", so it can be a program name with args.
38855 set dummy otool64; ac_word=$2
38856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38857 $as_echo_n "checking for $ac_word... " >&6; }
38858 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
38859   $as_echo_n "(cached) " >&6
38860 else
38861   if test -n "$ac_ct_OTOOL64"; then
38862   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
38863 else
38864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38865 for as_dir in $PATH
38866 do
38867   IFS=$as_save_IFS
38868   test -z "$as_dir" && as_dir=.
38869     for ac_exec_ext in '' $ac_executable_extensions; do
38870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38871     ac_cv_prog_ac_ct_OTOOL64="otool64"
38872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38873     break 2
38874   fi
38875 done
38876   done
38877 IFS=$as_save_IFS
38878
38879 fi
38880 fi
38881 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
38882 if test -n "$ac_ct_OTOOL64"; then
38883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
38884 $as_echo "$ac_ct_OTOOL64" >&6; }
38885 else
38886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38887 $as_echo "no" >&6; }
38888 fi
38889
38890   if test "x$ac_ct_OTOOL64" = x; then
38891     OTOOL64=":"
38892   else
38893     case $cross_compiling:$ac_tool_warned in
38894 yes:)
38895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38897 ac_tool_warned=yes ;;
38898 esac
38899     OTOOL64=$ac_ct_OTOOL64
38900   fi
38901 else
38902   OTOOL64="$ac_cv_prog_OTOOL64"
38903 fi
38904
38905
38906
38907
38908
38909
38910
38911
38912
38913
38914
38915
38916
38917
38918
38919
38920
38921
38922
38923
38924
38925
38926
38927
38928
38929
38930
38931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
38932 $as_echo_n "checking for -single_module linker flag... " >&6; }
38933 if ${lt_cv_apple_cc_single_mod+:} false; then :
38934   $as_echo_n "(cached) " >&6
38935 else
38936   lt_cv_apple_cc_single_mod=no
38937       if test -z "${LT_MULTI_MODULE}"; then
38938         # By default we will add the -single_module flag. You can override
38939         # by either setting the environment variable LT_MULTI_MODULE
38940         # non-empty at configure time, or by adding -multi_module to the
38941         # link flags.
38942         rm -rf libconftest.dylib*
38943         echo "int foo(void){return 1;}" > conftest.c
38944         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
38945 -dynamiclib -Wl,-single_module conftest.c" >&5
38946         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
38947           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
38948         _lt_result=$?
38949         # If there is a non-empty error log, and "single_module"
38950         # appears in it, assume the flag caused a linker warning
38951         if test -s conftest.err && $GREP single_module conftest.err; then
38952           cat conftest.err >&5
38953         # Otherwise, if the output was created with a 0 exit code from
38954         # the compiler, it worked.
38955         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
38956           lt_cv_apple_cc_single_mod=yes
38957         else
38958           cat conftest.err >&5
38959         fi
38960         rm -rf libconftest.dylib*
38961         rm -f conftest.*
38962       fi
38963 fi
38964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
38965 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
38966
38967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
38968 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
38969 if ${lt_cv_ld_exported_symbols_list+:} false; then :
38970   $as_echo_n "(cached) " >&6
38971 else
38972   lt_cv_ld_exported_symbols_list=no
38973       save_LDFLAGS=$LDFLAGS
38974       echo "_main" > conftest.sym
38975       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
38976       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38977 /* end confdefs.h.  */
38978
38979 int
38980 main ()
38981 {
38982
38983   ;
38984   return 0;
38985 }
38986 _ACEOF
38987 if ac_fn_c_try_link "$LINENO"; then :
38988   lt_cv_ld_exported_symbols_list=yes
38989 else
38990   lt_cv_ld_exported_symbols_list=no
38991 fi
38992 rm -f core conftest.err conftest.$ac_objext \
38993     conftest$ac_exeext conftest.$ac_ext
38994         LDFLAGS="$save_LDFLAGS"
38995
38996 fi
38997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
38998 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
38999
39000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
39001 $as_echo_n "checking for -force_load linker flag... " >&6; }
39002 if ${lt_cv_ld_force_load+:} false; then :
39003   $as_echo_n "(cached) " >&6
39004 else
39005   lt_cv_ld_force_load=no
39006       cat > conftest.c << _LT_EOF
39007 int forced_loaded() { return 2;}
39008 _LT_EOF
39009       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
39010       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
39011       echo "$AR cru libconftest.a conftest.o" >&5
39012       $AR cru libconftest.a conftest.o 2>&5
39013       echo "$RANLIB libconftest.a" >&5
39014       $RANLIB libconftest.a 2>&5
39015       cat > conftest.c << _LT_EOF
39016 int main() { return 0;}
39017 _LT_EOF
39018       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
39019       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
39020       _lt_result=$?
39021       if test -s conftest.err && $GREP force_load conftest.err; then
39022         cat conftest.err >&5
39023       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
39024         lt_cv_ld_force_load=yes
39025       else
39026         cat conftest.err >&5
39027       fi
39028         rm -f conftest.err libconftest.a conftest conftest.c
39029         rm -rf conftest.dSYM
39030
39031 fi
39032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
39033 $as_echo "$lt_cv_ld_force_load" >&6; }
39034     case $host_os in
39035     rhapsody* | darwin1.[012])
39036       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
39037     darwin1.*)
39038       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
39039     darwin*) # darwin 5.x on
39040       # if running on 10.5 or later, the deployment target defaults
39041       # to the OS version, if on x86, and 10.4, the deployment
39042       # target defaults to 10.4. Don't you love it?
39043       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
39044         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
39045           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
39046         10.[012]*)
39047           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
39048         10.*)
39049           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
39050       esac
39051     ;;
39052   esac
39053     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
39054       _lt_dar_single_mod='$single_module'
39055     fi
39056     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
39057       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
39058     else
39059       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
39060     fi
39061     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
39062       _lt_dsymutil='~$DSYMUTIL $lib || :'
39063     else
39064       _lt_dsymutil=
39065     fi
39066     ;;
39067   esac
39068
39069 for ac_header in dlfcn.h
39070 do :
39071   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
39072 "
39073 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
39074   cat >>confdefs.h <<_ACEOF
39075 #define HAVE_DLFCN_H 1
39076 _ACEOF
39077
39078 fi
39079
39080 done
39081
39082
39083
39084 func_stripname_cnf ()
39085 {
39086   case ${2} in
39087   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
39088   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
39089   esac
39090 } # func_stripname_cnf
39091
39092
39093
39094
39095
39096 # Set options
39097 # Check whether --enable-static was given.
39098 if test "${enable_static+set}" = set; then :
39099   enableval=$enable_static; p=${PACKAGE-default}
39100     case $enableval in
39101     yes) enable_static=yes ;;
39102     no) enable_static=no ;;
39103     *)
39104      enable_static=no
39105       # Look at the argument we got.  We use all the common list separators.
39106       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
39107       for pkg in $enableval; do
39108         IFS="$lt_save_ifs"
39109         if test "X$pkg" = "X$p"; then
39110           enable_static=yes
39111         fi
39112       done
39113       IFS="$lt_save_ifs"
39114       ;;
39115     esac
39116 else
39117   enable_static=no
39118 fi
39119
39120
39121
39122
39123
39124
39125
39126
39127
39128
39129         enable_dlopen=no
39130
39131
39132   enable_win32_dll=no
39133
39134
39135             # Check whether --enable-shared was given.
39136 if test "${enable_shared+set}" = set; then :
39137   enableval=$enable_shared; p=${PACKAGE-default}
39138     case $enableval in
39139     yes) enable_shared=yes ;;
39140     no) enable_shared=no ;;
39141     *)
39142       enable_shared=no
39143       # Look at the argument we got.  We use all the common list separators.
39144       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
39145       for pkg in $enableval; do
39146         IFS="$lt_save_ifs"
39147         if test "X$pkg" = "X$p"; then
39148           enable_shared=yes
39149         fi
39150       done
39151       IFS="$lt_save_ifs"
39152       ;;
39153     esac
39154 else
39155   enable_shared=yes
39156 fi
39157
39158
39159
39160
39161
39162
39163
39164
39165
39166
39167
39168 # Check whether --with-pic was given.
39169 if test "${with_pic+set}" = set; then :
39170   withval=$with_pic; lt_p=${PACKAGE-default}
39171     case $withval in
39172     yes|no) pic_mode=$withval ;;
39173     *)
39174       pic_mode=default
39175       # Look at the argument we got.  We use all the common list separators.
39176       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
39177       for lt_pkg in $withval; do
39178         IFS="$lt_save_ifs"
39179         if test "X$lt_pkg" = "X$lt_p"; then
39180           pic_mode=yes
39181         fi
39182       done
39183       IFS="$lt_save_ifs"
39184       ;;
39185     esac
39186 else
39187   pic_mode=default
39188 fi
39189
39190
39191 test -z "$pic_mode" && pic_mode=default
39192
39193
39194
39195
39196
39197
39198
39199   # Check whether --enable-fast-install was given.
39200 if test "${enable_fast_install+set}" = set; then :
39201   enableval=$enable_fast_install; p=${PACKAGE-default}
39202     case $enableval in
39203     yes) enable_fast_install=yes ;;
39204     no) enable_fast_install=no ;;
39205     *)
39206       enable_fast_install=no
39207       # Look at the argument we got.  We use all the common list separators.
39208       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
39209       for pkg in $enableval; do
39210         IFS="$lt_save_ifs"
39211         if test "X$pkg" = "X$p"; then
39212           enable_fast_install=yes
39213         fi
39214       done
39215       IFS="$lt_save_ifs"
39216       ;;
39217     esac
39218 else
39219   enable_fast_install=yes
39220 fi
39221
39222
39223
39224
39225
39226
39227
39228
39229
39230
39231
39232 # This can be used to rebuild libtool when needed
39233 LIBTOOL_DEPS="$ltmain"
39234
39235 # Always use our own libtool.
39236 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
39237
39238
39239
39240
39241
39242
39243
39244
39245
39246
39247
39248
39249
39250
39251
39252
39253
39254
39255
39256
39257
39258
39259
39260
39261
39262
39263
39264
39265
39266
39267 test -z "$LN_S" && LN_S="ln -s"
39268
39269
39270
39271
39272
39273
39274
39275
39276
39277
39278
39279
39280
39281
39282 if test -n "${ZSH_VERSION+set}" ; then
39283    setopt NO_GLOB_SUBST
39284 fi
39285
39286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
39287 $as_echo_n "checking for objdir... " >&6; }
39288 if ${lt_cv_objdir+:} false; then :
39289   $as_echo_n "(cached) " >&6
39290 else
39291   rm -f .libs 2>/dev/null
39292 mkdir .libs 2>/dev/null
39293 if test -d .libs; then
39294   lt_cv_objdir=.libs
39295 else
39296   # MS-DOS does not allow filenames that begin with a dot.
39297   lt_cv_objdir=_libs
39298 fi
39299 rmdir .libs 2>/dev/null
39300 fi
39301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
39302 $as_echo "$lt_cv_objdir" >&6; }
39303 objdir=$lt_cv_objdir
39304
39305
39306
39307
39308
39309 cat >>confdefs.h <<_ACEOF
39310 #define LT_OBJDIR "$lt_cv_objdir/"
39311 _ACEOF
39312
39313
39314
39315
39316 case $host_os in
39317 aix3*)
39318   # AIX sometimes has problems with the GCC collect2 program.  For some
39319   # reason, if we set the COLLECT_NAMES environment variable, the problems
39320   # vanish in a puff of smoke.
39321   if test "X${COLLECT_NAMES+set}" != Xset; then
39322     COLLECT_NAMES=
39323     export COLLECT_NAMES
39324   fi
39325   ;;
39326 esac
39327
39328 # Global variables:
39329 ofile=libtool
39330 can_build_shared=yes
39331
39332 # All known linkers require a `.a' archive for static linking (except MSVC,
39333 # which needs '.lib').
39334 libext=a
39335
39336 with_gnu_ld="$lt_cv_prog_gnu_ld"
39337
39338 old_CC="$CC"
39339 old_CFLAGS="$CFLAGS"
39340
39341 # Set sane defaults for various variables
39342 test -z "$CC" && CC=cc
39343 test -z "$LTCC" && LTCC=$CC
39344 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
39345 test -z "$LD" && LD=ld
39346 test -z "$ac_objext" && ac_objext=o
39347
39348 for cc_temp in $compiler""; do
39349   case $cc_temp in
39350     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
39351     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
39352     \-*) ;;
39353     *) break;;
39354   esac
39355 done
39356 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
39357
39358
39359 # Only perform the check for file, if the check method requires it
39360 test -z "$MAGIC_CMD" && MAGIC_CMD=file
39361 case $deplibs_check_method in
39362 file_magic*)
39363   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
39364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
39365 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
39366 if ${lt_cv_path_MAGIC_CMD+:} false; then :
39367   $as_echo_n "(cached) " >&6
39368 else
39369   case $MAGIC_CMD in
39370 [\\/*] |  ?:[\\/]*)
39371   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
39372   ;;
39373 *)
39374   lt_save_MAGIC_CMD="$MAGIC_CMD"
39375   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
39376   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
39377   for ac_dir in $ac_dummy; do
39378     IFS="$lt_save_ifs"
39379     test -z "$ac_dir" && ac_dir=.
39380     if test -f $ac_dir/${ac_tool_prefix}file; then
39381       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
39382       if test -n "$file_magic_test_file"; then
39383         case $deplibs_check_method in
39384         "file_magic "*)
39385           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
39386           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
39387           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
39388             $EGREP "$file_magic_regex" > /dev/null; then
39389             :
39390           else
39391             cat <<_LT_EOF 1>&2
39392
39393 *** Warning: the command libtool uses to detect shared libraries,
39394 *** $file_magic_cmd, produces output that libtool cannot recognize.
39395 *** The result is that libtool may fail to recognize shared libraries
39396 *** as such.  This will affect the creation of libtool libraries that
39397 *** depend on shared libraries, but programs linked with such libtool
39398 *** libraries will work regardless of this problem.  Nevertheless, you
39399 *** may want to report the problem to your system manager and/or to
39400 *** bug-libtool@gnu.org
39401
39402 _LT_EOF
39403           fi ;;
39404         esac
39405       fi
39406       break
39407     fi
39408   done
39409   IFS="$lt_save_ifs"
39410   MAGIC_CMD="$lt_save_MAGIC_CMD"
39411   ;;
39412 esac
39413 fi
39414
39415 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
39416 if test -n "$MAGIC_CMD"; then
39417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
39418 $as_echo "$MAGIC_CMD" >&6; }
39419 else
39420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39421 $as_echo "no" >&6; }
39422 fi
39423
39424
39425
39426
39427
39428 if test -z "$lt_cv_path_MAGIC_CMD"; then
39429   if test -n "$ac_tool_prefix"; then
39430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
39431 $as_echo_n "checking for file... " >&6; }
39432 if ${lt_cv_path_MAGIC_CMD+:} false; then :
39433   $as_echo_n "(cached) " >&6
39434 else
39435   case $MAGIC_CMD in
39436 [\\/*] |  ?:[\\/]*)
39437   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
39438   ;;
39439 *)
39440   lt_save_MAGIC_CMD="$MAGIC_CMD"
39441   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
39442   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
39443   for ac_dir in $ac_dummy; do
39444     IFS="$lt_save_ifs"
39445     test -z "$ac_dir" && ac_dir=.
39446     if test -f $ac_dir/file; then
39447       lt_cv_path_MAGIC_CMD="$ac_dir/file"
39448       if test -n "$file_magic_test_file"; then
39449         case $deplibs_check_method in
39450         "file_magic "*)
39451           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
39452           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
39453           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
39454             $EGREP "$file_magic_regex" > /dev/null; then
39455             :
39456           else
39457             cat <<_LT_EOF 1>&2
39458
39459 *** Warning: the command libtool uses to detect shared libraries,
39460 *** $file_magic_cmd, produces output that libtool cannot recognize.
39461 *** The result is that libtool may fail to recognize shared libraries
39462 *** as such.  This will affect the creation of libtool libraries that
39463 *** depend on shared libraries, but programs linked with such libtool
39464 *** libraries will work regardless of this problem.  Nevertheless, you
39465 *** may want to report the problem to your system manager and/or to
39466 *** bug-libtool@gnu.org
39467
39468 _LT_EOF
39469           fi ;;
39470         esac
39471       fi
39472       break
39473     fi
39474   done
39475   IFS="$lt_save_ifs"
39476   MAGIC_CMD="$lt_save_MAGIC_CMD"
39477   ;;
39478 esac
39479 fi
39480
39481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
39482 if test -n "$MAGIC_CMD"; then
39483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
39484 $as_echo "$MAGIC_CMD" >&6; }
39485 else
39486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39487 $as_echo "no" >&6; }
39488 fi
39489
39490
39491   else
39492     MAGIC_CMD=:
39493   fi
39494 fi
39495
39496   fi
39497   ;;
39498 esac
39499
39500 # Use C for the default configuration in the libtool script
39501
39502 lt_save_CC="$CC"
39503 ac_ext=c
39504 ac_cpp='$CPP $CPPFLAGS'
39505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39508
39509
39510 # Source file extension for C test sources.
39511 ac_ext=c
39512
39513 # Object file extension for compiled C test sources.
39514 objext=o
39515 objext=$objext
39516
39517 # Code to be used in simple compile tests
39518 lt_simple_compile_test_code="int some_variable = 0;"
39519
39520 # Code to be used in simple link tests
39521 lt_simple_link_test_code='int main(){return(0);}'
39522
39523
39524
39525
39526
39527
39528
39529 # If no C compiler was specified, use CC.
39530 LTCC=${LTCC-"$CC"}
39531
39532 # If no C compiler flags were specified, use CFLAGS.
39533 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
39534
39535 # Allow CC to be a program name with arguments.
39536 compiler=$CC
39537
39538 # Save the default compiler, since it gets overwritten when the other
39539 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
39540 compiler_DEFAULT=$CC
39541
39542 # save warnings/boilerplate of simple test code
39543 ac_outfile=conftest.$ac_objext
39544 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
39545 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
39546 _lt_compiler_boilerplate=`cat conftest.err`
39547 $RM conftest*
39548
39549 ac_outfile=conftest.$ac_objext
39550 echo "$lt_simple_link_test_code" >conftest.$ac_ext
39551 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
39552 _lt_linker_boilerplate=`cat conftest.err`
39553 $RM -r conftest*
39554
39555
39556 ## CAVEAT EMPTOR:
39557 ## There is no encapsulation within the following macros, do not change
39558 ## the running order or otherwise move them around unless you know exactly
39559 ## what you are doing...
39560 if test -n "$compiler"; then
39561
39562 lt_prog_compiler_no_builtin_flag=
39563
39564 if test "$GCC" = yes; then
39565   case $cc_basename in
39566   nvcc*)
39567     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
39568   *)
39569     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
39570   esac
39571
39572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
39573 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
39574 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
39575   $as_echo_n "(cached) " >&6
39576 else
39577   lt_cv_prog_compiler_rtti_exceptions=no
39578    ac_outfile=conftest.$ac_objext
39579    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
39580    lt_compiler_flag="-fno-rtti -fno-exceptions"
39581    # Insert the option either (1) after the last *FLAGS variable, or
39582    # (2) before a word containing "conftest.", or (3) at the end.
39583    # Note that $ac_compile itself does not contain backslashes and begins
39584    # with a dollar sign (not a hyphen), so the echo should work correctly.
39585    # The option is referenced via a variable to avoid confusing sed.
39586    lt_compile=`echo "$ac_compile" | $SED \
39587    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39588    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39589    -e 's:$: $lt_compiler_flag:'`
39590    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
39591    (eval "$lt_compile" 2>conftest.err)
39592    ac_status=$?
39593    cat conftest.err >&5
39594    echo "$as_me:$LINENO: \$? = $ac_status" >&5
39595    if (exit $ac_status) && test -s "$ac_outfile"; then
39596      # The compiler can only warn and ignore the option if not recognized
39597      # So say no if there are warnings other than the usual output.
39598      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
39599      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
39600      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
39601        lt_cv_prog_compiler_rtti_exceptions=yes
39602      fi
39603    fi
39604    $RM conftest*
39605
39606 fi
39607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
39608 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
39609
39610 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
39611     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
39612 else
39613     :
39614 fi
39615
39616 fi
39617
39618
39619
39620
39621
39622
39623   lt_prog_compiler_wl=
39624 lt_prog_compiler_pic=
39625 lt_prog_compiler_static=
39626
39627
39628   if test "$GCC" = yes; then
39629     lt_prog_compiler_wl='-Wl,'
39630     lt_prog_compiler_static='-static'
39631
39632     case $host_os in
39633       aix*)
39634       # All AIX code is PIC.
39635       if test "$host_cpu" = ia64; then
39636         # AIX 5 now supports IA64 processor
39637         lt_prog_compiler_static='-Bstatic'
39638       fi
39639       ;;
39640
39641     amigaos*)
39642       case $host_cpu in
39643       powerpc)
39644             # see comment about AmigaOS4 .so support
39645             lt_prog_compiler_pic='-fPIC'
39646         ;;
39647       m68k)
39648             # FIXME: we need at least 68020 code to build shared libraries, but
39649             # adding the `-m68020' flag to GCC prevents building anything better,
39650             # like `-m68040'.
39651             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
39652         ;;
39653       esac
39654       ;;
39655
39656     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
39657       # PIC is the default for these OSes.
39658       ;;
39659
39660     mingw* | cygwin* | pw32* | os2* | cegcc*)
39661       # This hack is so that the source file can tell whether it is being
39662       # built for inclusion in a dll (and should export symbols for example).
39663       # Although the cygwin gcc ignores -fPIC, still need this for old-style
39664       # (--disable-auto-import) libraries
39665       lt_prog_compiler_pic='-DDLL_EXPORT'
39666       ;;
39667
39668     darwin* | rhapsody*)
39669       # PIC is the default on this platform
39670       # Common symbols not allowed in MH_DYLIB files
39671       lt_prog_compiler_pic='-fno-common'
39672       ;;
39673
39674     haiku*)
39675       # PIC is the default for Haiku.
39676       # The "-static" flag exists, but is broken.
39677       lt_prog_compiler_static=
39678       ;;
39679
39680     hpux*)
39681       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
39682       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
39683       # sets the default TLS model and affects inlining.
39684       case $host_cpu in
39685       hppa*64*)
39686         # +Z the default
39687         ;;
39688       *)
39689         lt_prog_compiler_pic='-fPIC'
39690         ;;
39691       esac
39692       ;;
39693
39694     interix[3-9]*)
39695       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
39696       # Instead, we relocate shared libraries at runtime.
39697       ;;
39698
39699     msdosdjgpp*)
39700       # Just because we use GCC doesn't mean we suddenly get shared libraries
39701       # on systems that don't support them.
39702       lt_prog_compiler_can_build_shared=no
39703       enable_shared=no
39704       ;;
39705
39706     *nto* | *qnx*)
39707       # QNX uses GNU C++, but need to define -shared option too, otherwise
39708       # it will coredump.
39709       lt_prog_compiler_pic='-fPIC -shared'
39710       ;;
39711
39712     sysv4*MP*)
39713       if test -d /usr/nec; then
39714         lt_prog_compiler_pic=-Kconform_pic
39715       fi
39716       ;;
39717
39718     *)
39719       lt_prog_compiler_pic='-fPIC'
39720       ;;
39721     esac
39722
39723     case $cc_basename in
39724     nvcc*) # Cuda Compiler Driver 2.2
39725       lt_prog_compiler_wl='-Xlinker '
39726       if test -n "$lt_prog_compiler_pic"; then
39727         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
39728       fi
39729       ;;
39730     esac
39731   else
39732     # PORTME Check for flag to pass linker flags through the system compiler.
39733     case $host_os in
39734     aix*)
39735       lt_prog_compiler_wl='-Wl,'
39736       if test "$host_cpu" = ia64; then
39737         # AIX 5 now supports IA64 processor
39738         lt_prog_compiler_static='-Bstatic'
39739       else
39740         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
39741       fi
39742       ;;
39743
39744     mingw* | cygwin* | pw32* | os2* | cegcc*)
39745       # This hack is so that the source file can tell whether it is being
39746       # built for inclusion in a dll (and should export symbols for example).
39747       lt_prog_compiler_pic='-DDLL_EXPORT'
39748       ;;
39749
39750     hpux9* | hpux10* | hpux11*)
39751       lt_prog_compiler_wl='-Wl,'
39752       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
39753       # not for PA HP-UX.
39754       case $host_cpu in
39755       hppa*64*|ia64*)
39756         # +Z the default
39757         ;;
39758       *)
39759         lt_prog_compiler_pic='+Z'
39760         ;;
39761       esac
39762       # Is there a better lt_prog_compiler_static that works with the bundled CC?
39763       lt_prog_compiler_static='${wl}-a ${wl}archive'
39764       ;;
39765
39766     irix5* | irix6* | nonstopux*)
39767       lt_prog_compiler_wl='-Wl,'
39768       # PIC (with -KPIC) is the default.
39769       lt_prog_compiler_static='-non_shared'
39770       ;;
39771
39772     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
39773       case $cc_basename in
39774       # old Intel for x86_64 which still supported -KPIC.
39775       ecc*)
39776         lt_prog_compiler_wl='-Wl,'
39777         lt_prog_compiler_pic='-KPIC'
39778         lt_prog_compiler_static='-static'
39779         ;;
39780       # icc used to be incompatible with GCC.
39781       # ICC 10 doesn't accept -KPIC any more.
39782       icc* | ifort*)
39783         lt_prog_compiler_wl='-Wl,'
39784         lt_prog_compiler_pic='-fPIC'
39785         lt_prog_compiler_static='-static'
39786         ;;
39787       # Lahey Fortran 8.1.
39788       lf95*)
39789         lt_prog_compiler_wl='-Wl,'
39790         lt_prog_compiler_pic='--shared'
39791         lt_prog_compiler_static='--static'
39792         ;;
39793       nagfor*)
39794         # NAG Fortran compiler
39795         lt_prog_compiler_wl='-Wl,-Wl,,'
39796         lt_prog_compiler_pic='-PIC'
39797         lt_prog_compiler_static='-Bstatic'
39798         ;;
39799       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
39800         # Portland Group compilers (*not* the Pentium gcc compiler,
39801         # which looks to be a dead project)
39802         lt_prog_compiler_wl='-Wl,'
39803         lt_prog_compiler_pic='-fpic'
39804         lt_prog_compiler_static='-Bstatic'
39805         ;;
39806       ccc*)
39807         lt_prog_compiler_wl='-Wl,'
39808         # All Alpha code is PIC.
39809         lt_prog_compiler_static='-non_shared'
39810         ;;
39811       xl* | bgxl* | bgf* | mpixl*)
39812         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
39813         lt_prog_compiler_wl='-Wl,'
39814         lt_prog_compiler_pic='-qpic'
39815         lt_prog_compiler_static='-qstaticlink'
39816         ;;
39817       *)
39818         case `$CC -V 2>&1 | sed 5q` in
39819         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
39820           # Sun Fortran 8.3 passes all unrecognized flags to the linker
39821           lt_prog_compiler_pic='-KPIC'
39822           lt_prog_compiler_static='-Bstatic'
39823           lt_prog_compiler_wl=''
39824           ;;
39825         *Sun\ F* | *Sun*Fortran*)
39826           lt_prog_compiler_pic='-KPIC'
39827           lt_prog_compiler_static='-Bstatic'
39828           lt_prog_compiler_wl='-Qoption ld '
39829           ;;
39830         *Sun\ C*)
39831           # Sun C 5.9
39832           lt_prog_compiler_pic='-KPIC'
39833           lt_prog_compiler_static='-Bstatic'
39834           lt_prog_compiler_wl='-Wl,'
39835           ;;
39836         *Intel*\ [CF]*Compiler*)
39837           lt_prog_compiler_wl='-Wl,'
39838           lt_prog_compiler_pic='-fPIC'
39839           lt_prog_compiler_static='-static'
39840           ;;
39841         *Portland\ Group*)
39842           lt_prog_compiler_wl='-Wl,'
39843           lt_prog_compiler_pic='-fpic'
39844           lt_prog_compiler_static='-Bstatic'
39845           ;;
39846         esac
39847         ;;
39848       esac
39849       ;;
39850
39851     newsos6)
39852       lt_prog_compiler_pic='-KPIC'
39853       lt_prog_compiler_static='-Bstatic'
39854       ;;
39855
39856     *nto* | *qnx*)
39857       # QNX uses GNU C++, but need to define -shared option too, otherwise
39858       # it will coredump.
39859       lt_prog_compiler_pic='-fPIC -shared'
39860       ;;
39861
39862     osf3* | osf4* | osf5*)
39863       lt_prog_compiler_wl='-Wl,'
39864       # All OSF/1 code is PIC.
39865       lt_prog_compiler_static='-non_shared'
39866       ;;
39867
39868     rdos*)
39869       lt_prog_compiler_static='-non_shared'
39870       ;;
39871
39872     solaris*)
39873       lt_prog_compiler_pic='-KPIC'
39874       lt_prog_compiler_static='-Bstatic'
39875       case $cc_basename in
39876       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
39877         lt_prog_compiler_wl='-Qoption ld ';;
39878       *)
39879         lt_prog_compiler_wl='-Wl,';;
39880       esac
39881       ;;
39882
39883     sunos4*)
39884       lt_prog_compiler_wl='-Qoption ld '
39885       lt_prog_compiler_pic='-PIC'
39886       lt_prog_compiler_static='-Bstatic'
39887       ;;
39888
39889     sysv4 | sysv4.2uw2* | sysv4.3*)
39890       lt_prog_compiler_wl='-Wl,'
39891       lt_prog_compiler_pic='-KPIC'
39892       lt_prog_compiler_static='-Bstatic'
39893       ;;
39894
39895     sysv4*MP*)
39896       if test -d /usr/nec ;then
39897         lt_prog_compiler_pic='-Kconform_pic'
39898         lt_prog_compiler_static='-Bstatic'
39899       fi
39900       ;;
39901
39902     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
39903       lt_prog_compiler_wl='-Wl,'
39904       lt_prog_compiler_pic='-KPIC'
39905       lt_prog_compiler_static='-Bstatic'
39906       ;;
39907
39908     unicos*)
39909       lt_prog_compiler_wl='-Wl,'
39910       lt_prog_compiler_can_build_shared=no
39911       ;;
39912
39913     uts4*)
39914       lt_prog_compiler_pic='-pic'
39915       lt_prog_compiler_static='-Bstatic'
39916       ;;
39917
39918     *)
39919       lt_prog_compiler_can_build_shared=no
39920       ;;
39921     esac
39922   fi
39923
39924 case $host_os in
39925   # For platforms which do not support PIC, -DPIC is meaningless:
39926   *djgpp*)
39927     lt_prog_compiler_pic=
39928     ;;
39929   *)
39930     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
39931     ;;
39932 esac
39933
39934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
39935 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
39936 if ${lt_cv_prog_compiler_pic+:} false; then :
39937   $as_echo_n "(cached) " >&6
39938 else
39939   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
39940 fi
39941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
39942 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
39943 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
39944
39945 #
39946 # Check to make sure the PIC flag actually works.
39947 #
39948 if test -n "$lt_prog_compiler_pic"; then
39949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
39950 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
39951 if ${lt_cv_prog_compiler_pic_works+:} false; then :
39952   $as_echo_n "(cached) " >&6
39953 else
39954   lt_cv_prog_compiler_pic_works=no
39955    ac_outfile=conftest.$ac_objext
39956    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
39957    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
39958    # Insert the option either (1) after the last *FLAGS variable, or
39959    # (2) before a word containing "conftest.", or (3) at the end.
39960    # Note that $ac_compile itself does not contain backslashes and begins
39961    # with a dollar sign (not a hyphen), so the echo should work correctly.
39962    # The option is referenced via a variable to avoid confusing sed.
39963    lt_compile=`echo "$ac_compile" | $SED \
39964    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39965    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39966    -e 's:$: $lt_compiler_flag:'`
39967    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
39968    (eval "$lt_compile" 2>conftest.err)
39969    ac_status=$?
39970    cat conftest.err >&5
39971    echo "$as_me:$LINENO: \$? = $ac_status" >&5
39972    if (exit $ac_status) && test -s "$ac_outfile"; then
39973      # The compiler can only warn and ignore the option if not recognized
39974      # So say no if there are warnings other than the usual output.
39975      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
39976      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
39977      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
39978        lt_cv_prog_compiler_pic_works=yes
39979      fi
39980    fi
39981    $RM conftest*
39982
39983 fi
39984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
39985 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
39986
39987 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
39988     case $lt_prog_compiler_pic in
39989      "" | " "*) ;;
39990      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
39991      esac
39992 else
39993     lt_prog_compiler_pic=
39994      lt_prog_compiler_can_build_shared=no
39995 fi
39996
39997 fi
39998
39999
40000
40001
40002
40003
40004
40005
40006
40007
40008
40009 #
40010 # Check to make sure the static flag actually works.
40011 #
40012 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
40013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
40014 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
40015 if ${lt_cv_prog_compiler_static_works+:} false; then :
40016   $as_echo_n "(cached) " >&6
40017 else
40018   lt_cv_prog_compiler_static_works=no
40019    save_LDFLAGS="$LDFLAGS"
40020    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
40021    echo "$lt_simple_link_test_code" > conftest.$ac_ext
40022    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
40023      # The linker can only warn and ignore the option if not recognized
40024      # So say no if there are warnings
40025      if test -s conftest.err; then
40026        # Append any errors to the config.log.
40027        cat conftest.err 1>&5
40028        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
40029        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
40030        if diff conftest.exp conftest.er2 >/dev/null; then
40031          lt_cv_prog_compiler_static_works=yes
40032        fi
40033      else
40034        lt_cv_prog_compiler_static_works=yes
40035      fi
40036    fi
40037    $RM -r conftest*
40038    LDFLAGS="$save_LDFLAGS"
40039
40040 fi
40041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
40042 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
40043
40044 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
40045     :
40046 else
40047     lt_prog_compiler_static=
40048 fi
40049
40050
40051
40052
40053
40054
40055
40056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
40057 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
40058 if ${lt_cv_prog_compiler_c_o+:} false; then :
40059   $as_echo_n "(cached) " >&6
40060 else
40061   lt_cv_prog_compiler_c_o=no
40062    $RM -r conftest 2>/dev/null
40063    mkdir conftest
40064    cd conftest
40065    mkdir out
40066    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
40067
40068    lt_compiler_flag="-o out/conftest2.$ac_objext"
40069    # Insert the option either (1) after the last *FLAGS variable, or
40070    # (2) before a word containing "conftest.", or (3) at the end.
40071    # Note that $ac_compile itself does not contain backslashes and begins
40072    # with a dollar sign (not a hyphen), so the echo should work correctly.
40073    lt_compile=`echo "$ac_compile" | $SED \
40074    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
40075    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
40076    -e 's:$: $lt_compiler_flag:'`
40077    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
40078    (eval "$lt_compile" 2>out/conftest.err)
40079    ac_status=$?
40080    cat out/conftest.err >&5
40081    echo "$as_me:$LINENO: \$? = $ac_status" >&5
40082    if (exit $ac_status) && test -s out/conftest2.$ac_objext
40083    then
40084      # The compiler can only warn and ignore the option if not recognized
40085      # So say no if there are warnings
40086      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
40087      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
40088      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
40089        lt_cv_prog_compiler_c_o=yes
40090      fi
40091    fi
40092    chmod u+w . 2>&5
40093    $RM conftest*
40094    # SGI C++ compiler will create directory out/ii_files/ for
40095    # template instantiation
40096    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
40097    $RM out/* && rmdir out
40098    cd ..
40099    $RM -r conftest
40100    $RM conftest*
40101
40102 fi
40103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
40104 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
40105
40106
40107
40108
40109
40110
40111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
40112 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
40113 if ${lt_cv_prog_compiler_c_o+:} false; then :
40114   $as_echo_n "(cached) " >&6
40115 else
40116   lt_cv_prog_compiler_c_o=no
40117    $RM -r conftest 2>/dev/null
40118    mkdir conftest
40119    cd conftest
40120    mkdir out
40121    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
40122
40123    lt_compiler_flag="-o out/conftest2.$ac_objext"
40124    # Insert the option either (1) after the last *FLAGS variable, or
40125    # (2) before a word containing "conftest.", or (3) at the end.
40126    # Note that $ac_compile itself does not contain backslashes and begins
40127    # with a dollar sign (not a hyphen), so the echo should work correctly.
40128    lt_compile=`echo "$ac_compile" | $SED \
40129    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
40130    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
40131    -e 's:$: $lt_compiler_flag:'`
40132    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
40133    (eval "$lt_compile" 2>out/conftest.err)
40134    ac_status=$?
40135    cat out/conftest.err >&5
40136    echo "$as_me:$LINENO: \$? = $ac_status" >&5
40137    if (exit $ac_status) && test -s out/conftest2.$ac_objext
40138    then
40139      # The compiler can only warn and ignore the option if not recognized
40140      # So say no if there are warnings
40141      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
40142      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
40143      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
40144        lt_cv_prog_compiler_c_o=yes
40145      fi
40146    fi
40147    chmod u+w . 2>&5
40148    $RM conftest*
40149    # SGI C++ compiler will create directory out/ii_files/ for
40150    # template instantiation
40151    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
40152    $RM out/* && rmdir out
40153    cd ..
40154    $RM -r conftest
40155    $RM conftest*
40156
40157 fi
40158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
40159 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
40160
40161
40162
40163
40164 hard_links="nottested"
40165 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
40166   # do not overwrite the value of need_locks provided by the user
40167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
40168 $as_echo_n "checking if we can lock with hard links... " >&6; }
40169   hard_links=yes
40170   $RM conftest*
40171   ln conftest.a conftest.b 2>/dev/null && hard_links=no
40172   touch conftest.a
40173   ln conftest.a conftest.b 2>&5 || hard_links=no
40174   ln conftest.a conftest.b 2>/dev/null && hard_links=no
40175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
40176 $as_echo "$hard_links" >&6; }
40177   if test "$hard_links" = no; then
40178     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
40179 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
40180     need_locks=warn
40181   fi
40182 else
40183   need_locks=no
40184 fi
40185
40186
40187
40188
40189
40190
40191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
40192 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
40193
40194   runpath_var=
40195   allow_undefined_flag=
40196   always_export_symbols=no
40197   archive_cmds=
40198   archive_expsym_cmds=
40199   compiler_needs_object=no
40200   enable_shared_with_static_runtimes=no
40201   export_dynamic_flag_spec=
40202   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
40203   hardcode_automatic=no
40204   hardcode_direct=no
40205   hardcode_direct_absolute=no
40206   hardcode_libdir_flag_spec=
40207   hardcode_libdir_separator=
40208   hardcode_minus_L=no
40209   hardcode_shlibpath_var=unsupported
40210   inherit_rpath=no
40211   link_all_deplibs=unknown
40212   module_cmds=
40213   module_expsym_cmds=
40214   old_archive_from_new_cmds=
40215   old_archive_from_expsyms_cmds=
40216   thread_safe_flag_spec=
40217   whole_archive_flag_spec=
40218   # include_expsyms should be a list of space-separated symbols to be *always*
40219   # included in the symbol list
40220   include_expsyms=
40221   # exclude_expsyms can be an extended regexp of symbols to exclude
40222   # it will be wrapped by ` (' and `)$', so one must not match beginning or
40223   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
40224   # as well as any symbol that contains `d'.
40225   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
40226   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
40227   # platforms (ab)use it in PIC code, but their linkers get confused if
40228   # the symbol is explicitly referenced.  Since portable code cannot
40229   # rely on this symbol name, it's probably fine to never include it in
40230   # preloaded symbol tables.
40231   # Exclude shared library initialization/finalization symbols.
40232   extract_expsyms_cmds=
40233
40234   case $host_os in
40235   cygwin* | mingw* | pw32* | cegcc*)
40236     # FIXME: the MSVC++ port hasn't been tested in a loooong time
40237     # When not using gcc, we currently assume that we are using
40238     # Microsoft Visual C++.
40239     if test "$GCC" != yes; then
40240       with_gnu_ld=no
40241     fi
40242     ;;
40243   interix*)
40244     # we just hope/assume this is gcc and not c89 (= MSVC++)
40245     with_gnu_ld=yes
40246     ;;
40247   openbsd*)
40248     with_gnu_ld=no
40249     ;;
40250   linux* | k*bsd*-gnu | gnu*)
40251     link_all_deplibs=no
40252     ;;
40253   esac
40254
40255   ld_shlibs=yes
40256
40257   # On some targets, GNU ld is compatible enough with the native linker
40258   # that we're better off using the native interface for both.
40259   lt_use_gnu_ld_interface=no
40260   if test "$with_gnu_ld" = yes; then
40261     case $host_os in
40262       aix*)
40263         # The AIX port of GNU ld has always aspired to compatibility
40264         # with the native linker.  However, as the warning in the GNU ld
40265         # block says, versions before 2.19.5* couldn't really create working
40266         # shared libraries, regardless of the interface used.
40267         case `$LD -v 2>&1` in
40268           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
40269           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
40270           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
40271           *)
40272             lt_use_gnu_ld_interface=yes
40273             ;;
40274         esac
40275         ;;
40276       *)
40277         lt_use_gnu_ld_interface=yes
40278         ;;
40279     esac
40280   fi
40281
40282   if test "$lt_use_gnu_ld_interface" = yes; then
40283     # If archive_cmds runs LD, not CC, wlarc should be empty
40284     wlarc='${wl}'
40285
40286     # Set some defaults for GNU ld with shared library support. These
40287     # are reset later if shared libraries are not supported. Putting them
40288     # here allows them to be overridden if necessary.
40289     runpath_var=LD_RUN_PATH
40290     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
40291     export_dynamic_flag_spec='${wl}--export-dynamic'
40292     # ancient GNU ld didn't support --whole-archive et. al.
40293     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
40294       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
40295     else
40296       whole_archive_flag_spec=
40297     fi
40298     supports_anon_versioning=no
40299     case `$LD -v 2>&1` in
40300       *GNU\ gold*) supports_anon_versioning=yes ;;
40301       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
40302       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
40303       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
40304       *\ 2.11.*) ;; # other 2.11 versions
40305       *) supports_anon_versioning=yes ;;
40306     esac
40307
40308     # See if GNU ld supports shared libraries.
40309     case $host_os in
40310     aix[3-9]*)
40311       # On AIX/PPC, the GNU linker is very broken
40312       if test "$host_cpu" != ia64; then
40313         ld_shlibs=no
40314         cat <<_LT_EOF 1>&2
40315
40316 *** Warning: the GNU linker, at least up to release 2.19, is reported
40317 *** to be unable to reliably create shared libraries on AIX.
40318 *** Therefore, libtool is disabling shared libraries support.  If you
40319 *** really care for shared libraries, you may want to install binutils
40320 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
40321 *** You will then need to restart the configuration process.
40322
40323 _LT_EOF
40324       fi
40325       ;;
40326
40327     amigaos*)
40328       case $host_cpu in
40329       powerpc)
40330             # see comment about AmigaOS4 .so support
40331             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40332             archive_expsym_cmds=''
40333         ;;
40334       m68k)
40335             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)'
40336             hardcode_libdir_flag_spec='-L$libdir'
40337             hardcode_minus_L=yes
40338         ;;
40339       esac
40340       ;;
40341
40342     beos*)
40343       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
40344         allow_undefined_flag=unsupported
40345         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
40346         # support --undefined.  This deserves some investigation.  FIXME
40347         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40348       else
40349         ld_shlibs=no
40350       fi
40351       ;;
40352
40353     cygwin* | mingw* | pw32* | cegcc*)
40354       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
40355       # as there is no search path for DLLs.
40356       hardcode_libdir_flag_spec='-L$libdir'
40357       export_dynamic_flag_spec='${wl}--export-all-symbols'
40358       allow_undefined_flag=unsupported
40359       always_export_symbols=no
40360       enable_shared_with_static_runtimes=yes
40361       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'
40362       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
40363
40364       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
40365         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
40366         # If the export-symbols file already is a .def file (1st line
40367         # is EXPORTS), use it as is; otherwise, prepend...
40368         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
40369           cp $export_symbols $output_objdir/$soname.def;
40370         else
40371           echo EXPORTS > $output_objdir/$soname.def;
40372           cat $export_symbols >> $output_objdir/$soname.def;
40373         fi~
40374         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
40375       else
40376         ld_shlibs=no
40377       fi
40378       ;;
40379
40380     haiku*)
40381       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40382       link_all_deplibs=yes
40383       ;;
40384
40385     interix[3-9]*)
40386       hardcode_direct=no
40387       hardcode_shlibpath_var=no
40388       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
40389       export_dynamic_flag_spec='${wl}-E'
40390       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
40391       # Instead, shared libraries are loaded at an image base (0x10000000 by
40392       # default) and relocated if they conflict, which is a slow very memory
40393       # consuming and fragmenting process.  To avoid this, we pick a random,
40394       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
40395       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
40396       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
40397       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'
40398       ;;
40399
40400     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
40401       tmp_diet=no
40402       if test "$host_os" = linux-dietlibc; then
40403         case $cc_basename in
40404           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
40405         esac
40406       fi
40407       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
40408          && test "$tmp_diet" = no
40409       then
40410         tmp_addflag=' $pic_flag'
40411         tmp_sharedflag='-shared'
40412         case $cc_basename,$host_cpu in
40413         pgcc*)                          # Portland Group C compiler
40414           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'
40415           tmp_addflag=' $pic_flag'
40416           ;;
40417         pgf77* | pgf90* | pgf95* | pgfortran*)
40418                                         # Portland Group f77 and f90 compilers
40419           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'
40420           tmp_addflag=' $pic_flag -Mnomain' ;;
40421         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
40422           tmp_addflag=' -i_dynamic' ;;
40423         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
40424           tmp_addflag=' -i_dynamic -nofor_main' ;;
40425         ifc* | ifort*)                  # Intel Fortran compiler
40426           tmp_addflag=' -nofor_main' ;;
40427         lf95*)                          # Lahey Fortran 8.1
40428           whole_archive_flag_spec=
40429           tmp_sharedflag='--shared' ;;
40430         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
40431           tmp_sharedflag='-qmkshrobj'
40432           tmp_addflag= ;;
40433         nvcc*)  # Cuda Compiler Driver 2.2
40434           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'
40435           compiler_needs_object=yes
40436           ;;
40437         esac
40438         case `$CC -V 2>&1 | sed 5q` in
40439         *Sun\ C*)                       # Sun C 5.9
40440           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'
40441           compiler_needs_object=yes
40442           tmp_sharedflag='-G' ;;
40443         *Sun\ F*)                       # Sun Fortran 8.3
40444           tmp_sharedflag='-G' ;;
40445         esac
40446         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40447
40448         if test "x$supports_anon_versioning" = xyes; then
40449           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
40450             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
40451             echo "local: *; };" >> $output_objdir/$libname.ver~
40452             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
40453         fi
40454
40455         case $cc_basename in
40456         xlf* | bgf* | bgxlf* | mpixlf*)
40457           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
40458           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
40459           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
40460           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
40461           if test "x$supports_anon_versioning" = xyes; then
40462             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
40463               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
40464               echo "local: *; };" >> $output_objdir/$libname.ver~
40465               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
40466           fi
40467           ;;
40468         esac
40469       else
40470         ld_shlibs=no
40471       fi
40472       ;;
40473
40474     netbsd* | netbsdelf*-gnu)
40475       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
40476         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
40477         wlarc=
40478       else
40479         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40480         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
40481       fi
40482       ;;
40483
40484     solaris*)
40485       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
40486         ld_shlibs=no
40487         cat <<_LT_EOF 1>&2
40488
40489 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
40490 *** create shared libraries on Solaris systems.  Therefore, libtool
40491 *** is disabling shared libraries support.  We urge you to upgrade GNU
40492 *** binutils to release 2.9.1 or newer.  Another option is to modify
40493 *** your PATH or compiler configuration so that the native linker is
40494 *** used, and then restart.
40495
40496 _LT_EOF
40497       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
40498         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40499         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
40500       else
40501         ld_shlibs=no
40502       fi
40503       ;;
40504
40505     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
40506       case `$LD -v 2>&1` in
40507         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
40508         ld_shlibs=no
40509         cat <<_LT_EOF 1>&2
40510
40511 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
40512 *** reliably create shared libraries on SCO systems.  Therefore, libtool
40513 *** is disabling shared libraries support.  We urge you to upgrade GNU
40514 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
40515 *** your PATH or compiler configuration so that the native linker is
40516 *** used, and then restart.
40517
40518 _LT_EOF
40519         ;;
40520         *)
40521           # For security reasons, it is highly recommended that you always
40522           # use absolute paths for naming shared libraries, and exclude the
40523           # DT_RUNPATH tag from executables and libraries.  But doing so
40524           # requires that you compile everything twice, which is a pain.
40525           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
40526             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
40527             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40528             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
40529           else
40530             ld_shlibs=no
40531           fi
40532         ;;
40533       esac
40534       ;;
40535
40536     sunos4*)
40537       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
40538       wlarc=
40539       hardcode_direct=yes
40540       hardcode_shlibpath_var=no
40541       ;;
40542
40543     *)
40544       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
40545         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40546         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
40547       else
40548         ld_shlibs=no
40549       fi
40550       ;;
40551     esac
40552
40553     if test "$ld_shlibs" = no; then
40554       runpath_var=
40555       hardcode_libdir_flag_spec=
40556       export_dynamic_flag_spec=
40557       whole_archive_flag_spec=
40558     fi
40559   else
40560     # PORTME fill in a description of your system's linker (not GNU ld)
40561     case $host_os in
40562     aix3*)
40563       allow_undefined_flag=unsupported
40564       always_export_symbols=yes
40565       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'
40566       # Note: this linker hardcodes the directories in LIBPATH if there
40567       # are no directories specified by -L.
40568       hardcode_minus_L=yes
40569       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
40570         # Neither direct hardcoding nor static linking is supported with a
40571         # broken collect2.
40572         hardcode_direct=unsupported
40573       fi
40574       ;;
40575
40576     aix[4-9]*)
40577       if test "$host_cpu" = ia64; then
40578         # On IA64, the linker does run time linking by default, so we don't
40579         # have to do anything special.
40580         aix_use_runtimelinking=no
40581         exp_sym_flag='-Bexport'
40582         no_entry_flag=""
40583       else
40584         # If we're using GNU nm, then we don't want the "-C" option.
40585         # -C means demangle to AIX nm, but means don't demangle with GNU nm
40586         # Also, AIX nm treats weak defined symbols like other global
40587         # defined symbols, whereas GNU nm marks them as "W".
40588         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
40589           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'
40590         else
40591           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'
40592         fi
40593         aix_use_runtimelinking=no
40594
40595         # Test if we are trying to use run time linking or normal
40596         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
40597         # need to do runtime linking.
40598         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
40599           for ld_flag in $LDFLAGS; do
40600           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
40601             aix_use_runtimelinking=yes
40602             break
40603           fi
40604           done
40605           ;;
40606         esac
40607
40608         exp_sym_flag='-bexport'
40609         no_entry_flag='-bnoentry'
40610       fi
40611
40612       # When large executables or shared objects are built, AIX ld can
40613       # have problems creating the table of contents.  If linking a library
40614       # or program results in "error TOC overflow" add -mminimal-toc to
40615       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
40616       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
40617
40618       archive_cmds=''
40619       hardcode_direct=yes
40620       hardcode_direct_absolute=yes
40621       hardcode_libdir_separator=':'
40622       link_all_deplibs=yes
40623       file_list_spec='${wl}-f,'
40624
40625       if test "$GCC" = yes; then
40626         case $host_os in aix4.[012]|aix4.[012].*)
40627         # We only want to do this on AIX 4.2 and lower, the check
40628         # below for broken collect2 doesn't work under 4.3+
40629           collect2name=`${CC} -print-prog-name=collect2`
40630           if test -f "$collect2name" &&
40631            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
40632           then
40633           # We have reworked collect2
40634           :
40635           else
40636           # We have old collect2
40637           hardcode_direct=unsupported
40638           # It fails to find uninstalled libraries when the uninstalled
40639           # path is not listed in the libpath.  Setting hardcode_minus_L
40640           # to unsupported forces relinking
40641           hardcode_minus_L=yes
40642           hardcode_libdir_flag_spec='-L$libdir'
40643           hardcode_libdir_separator=
40644           fi
40645           ;;
40646         esac
40647         shared_flag='-shared'
40648         if test "$aix_use_runtimelinking" = yes; then
40649           shared_flag="$shared_flag "'${wl}-G'
40650         fi
40651         link_all_deplibs=no
40652       else
40653         # not using gcc
40654         if test "$host_cpu" = ia64; then
40655         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
40656         # chokes on -Wl,-G. The following line is correct:
40657           shared_flag='-G'
40658         else
40659           if test "$aix_use_runtimelinking" = yes; then
40660             shared_flag='${wl}-G'
40661           else
40662             shared_flag='${wl}-bM:SRE'
40663           fi
40664         fi
40665       fi
40666
40667       export_dynamic_flag_spec='${wl}-bexpall'
40668       # It seems that -bexpall does not export symbols beginning with
40669       # underscore (_), so it is better to generate a list of symbols to export.
40670       always_export_symbols=yes
40671       if test "$aix_use_runtimelinking" = yes; then
40672         # Warning - without using the other runtime loading flags (-brtl),
40673         # -berok will link without error, but may produce a broken library.
40674         allow_undefined_flag='-berok'
40675         # Determine the default libpath from the value encoded in an
40676         # empty executable.
40677         if test "${lt_cv_aix_libpath+set}" = set; then
40678   aix_libpath=$lt_cv_aix_libpath
40679 else
40680   if ${lt_cv_aix_libpath_+:} false; then :
40681   $as_echo_n "(cached) " >&6
40682 else
40683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40684 /* end confdefs.h.  */
40685
40686 int
40687 main ()
40688 {
40689
40690   ;
40691   return 0;
40692 }
40693 _ACEOF
40694 if ac_fn_c_try_link "$LINENO"; then :
40695
40696   lt_aix_libpath_sed='
40697       /Import File Strings/,/^$/ {
40698           /^0/ {
40699               s/^0  *\([^ ]*\) *$/\1/
40700               p
40701           }
40702       }'
40703   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40704   # Check for a 64-bit object if we didn't find anything.
40705   if test -z "$lt_cv_aix_libpath_"; then
40706     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40707   fi
40708 fi
40709 rm -f core conftest.err conftest.$ac_objext \
40710     conftest$ac_exeext conftest.$ac_ext
40711   if test -z "$lt_cv_aix_libpath_"; then
40712     lt_cv_aix_libpath_="/usr/lib:/lib"
40713   fi
40714
40715 fi
40716
40717   aix_libpath=$lt_cv_aix_libpath_
40718 fi
40719
40720         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
40721         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"
40722       else
40723         if test "$host_cpu" = ia64; then
40724           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
40725           allow_undefined_flag="-z nodefs"
40726           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"
40727         else
40728          # Determine the default libpath from the value encoded in an
40729          # empty executable.
40730          if test "${lt_cv_aix_libpath+set}" = set; then
40731   aix_libpath=$lt_cv_aix_libpath
40732 else
40733   if ${lt_cv_aix_libpath_+:} false; then :
40734   $as_echo_n "(cached) " >&6
40735 else
40736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40737 /* end confdefs.h.  */
40738
40739 int
40740 main ()
40741 {
40742
40743   ;
40744   return 0;
40745 }
40746 _ACEOF
40747 if ac_fn_c_try_link "$LINENO"; then :
40748
40749   lt_aix_libpath_sed='
40750       /Import File Strings/,/^$/ {
40751           /^0/ {
40752               s/^0  *\([^ ]*\) *$/\1/
40753               p
40754           }
40755       }'
40756   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40757   # Check for a 64-bit object if we didn't find anything.
40758   if test -z "$lt_cv_aix_libpath_"; then
40759     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40760   fi
40761 fi
40762 rm -f core conftest.err conftest.$ac_objext \
40763     conftest$ac_exeext conftest.$ac_ext
40764   if test -z "$lt_cv_aix_libpath_"; then
40765     lt_cv_aix_libpath_="/usr/lib:/lib"
40766   fi
40767
40768 fi
40769
40770   aix_libpath=$lt_cv_aix_libpath_
40771 fi
40772
40773          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
40774           # Warning - without using the other run time loading flags,
40775           # -berok will link without error, but may produce a broken library.
40776           no_undefined_flag=' ${wl}-bernotok'
40777           allow_undefined_flag=' ${wl}-berok'
40778           if test "$with_gnu_ld" = yes; then
40779             # We only use this code for GNU lds that support --whole-archive.
40780             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
40781           else
40782             # Exported symbols can be pulled into shared objects from archives
40783             whole_archive_flag_spec='$convenience'
40784           fi
40785           archive_cmds_need_lc=yes
40786           # This is similar to how AIX traditionally builds its shared libraries.
40787           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'
40788         fi
40789       fi
40790       ;;
40791
40792     amigaos*)
40793       case $host_cpu in
40794       powerpc)
40795             # see comment about AmigaOS4 .so support
40796             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40797             archive_expsym_cmds=''
40798         ;;
40799       m68k)
40800             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)'
40801             hardcode_libdir_flag_spec='-L$libdir'
40802             hardcode_minus_L=yes
40803         ;;
40804       esac
40805       ;;
40806
40807     bsdi[45]*)
40808       export_dynamic_flag_spec=-rdynamic
40809       ;;
40810
40811     cygwin* | mingw* | pw32* | cegcc*)
40812       # When not using gcc, we currently assume that we are using
40813       # Microsoft Visual C++.
40814       # hardcode_libdir_flag_spec is actually meaningless, as there is
40815       # no search path for DLLs.
40816       case $cc_basename in
40817       cl*)
40818         # Native MSVC
40819         hardcode_libdir_flag_spec=' '
40820         allow_undefined_flag=unsupported
40821         always_export_symbols=yes
40822         file_list_spec='@'
40823         # Tell ltmain to make .lib files, not .a files.
40824         libext=lib
40825         # Tell ltmain to make .dll files, not .so files.
40826         shrext_cmds=".dll"
40827         # FIXME: Setting linknames here is a bad hack.
40828         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
40829         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
40830             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
40831           else
40832             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
40833           fi~
40834           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
40835           linknames='
40836         # The linker will not automatically build a static lib if we build a DLL.
40837         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
40838         enable_shared_with_static_runtimes=yes
40839         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
40840         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
40841         # Don't use ranlib
40842         old_postinstall_cmds='chmod 644 $oldlib'
40843         postlink_cmds='lt_outputfile="@OUTPUT@"~
40844           lt_tool_outputfile="@TOOL_OUTPUT@"~
40845           case $lt_outputfile in
40846             *.exe|*.EXE) ;;
40847             *)
40848               lt_outputfile="$lt_outputfile.exe"
40849               lt_tool_outputfile="$lt_tool_outputfile.exe"
40850               ;;
40851           esac~
40852           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
40853             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
40854             $RM "$lt_outputfile.manifest";
40855           fi'
40856         ;;
40857       *)
40858         # Assume MSVC wrapper
40859         hardcode_libdir_flag_spec=' '
40860         allow_undefined_flag=unsupported
40861         # Tell ltmain to make .lib files, not .a files.
40862         libext=lib
40863         # Tell ltmain to make .dll files, not .so files.
40864         shrext_cmds=".dll"
40865         # FIXME: Setting linknames here is a bad hack.
40866         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
40867         # The linker will automatically build a .lib file if we build a DLL.
40868         old_archive_from_new_cmds='true'
40869         # FIXME: Should let the user specify the lib program.
40870         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
40871         enable_shared_with_static_runtimes=yes
40872         ;;
40873       esac
40874       ;;
40875
40876     darwin* | rhapsody*)
40877
40878
40879   archive_cmds_need_lc=no
40880   hardcode_direct=no
40881   hardcode_automatic=yes
40882   hardcode_shlibpath_var=unsupported
40883   if test "$lt_cv_ld_force_load" = "yes"; then
40884     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\"`'
40885
40886   else
40887     whole_archive_flag_spec=''
40888   fi
40889   link_all_deplibs=yes
40890   allow_undefined_flag="$_lt_dar_allow_undefined"
40891   case $cc_basename in
40892      ifort*) _lt_dar_can_shared=yes ;;
40893      *) _lt_dar_can_shared=$GCC ;;
40894   esac
40895   if test "$_lt_dar_can_shared" = "yes"; then
40896     output_verbose_link_cmd=func_echo_all
40897     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
40898     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
40899     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}"
40900     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}"
40901
40902   else
40903   ld_shlibs=no
40904   fi
40905
40906       ;;
40907
40908     dgux*)
40909       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40910       hardcode_libdir_flag_spec='-L$libdir'
40911       hardcode_shlibpath_var=no
40912       ;;
40913
40914     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
40915     # support.  Future versions do this automatically, but an explicit c++rt0.o
40916     # does not break anything, and helps significantly (at the cost of a little
40917     # extra space).
40918     freebsd2.2*)
40919       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
40920       hardcode_libdir_flag_spec='-R$libdir'
40921       hardcode_direct=yes
40922       hardcode_shlibpath_var=no
40923       ;;
40924
40925     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
40926     freebsd2.*)
40927       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
40928       hardcode_direct=yes
40929       hardcode_minus_L=yes
40930       hardcode_shlibpath_var=no
40931       ;;
40932
40933     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
40934     freebsd* | dragonfly*)
40935       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
40936       hardcode_libdir_flag_spec='-R$libdir'
40937       hardcode_direct=yes
40938       hardcode_shlibpath_var=no
40939       ;;
40940
40941     hpux9*)
40942       if test "$GCC" = yes; then
40943         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'
40944       else
40945         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'
40946       fi
40947       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
40948       hardcode_libdir_separator=:
40949       hardcode_direct=yes
40950
40951       # hardcode_minus_L: Not really in the search PATH,
40952       # but as the default location of the library.
40953       hardcode_minus_L=yes
40954       export_dynamic_flag_spec='${wl}-E'
40955       ;;
40956
40957     hpux10*)
40958       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
40959         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40960       else
40961         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
40962       fi
40963       if test "$with_gnu_ld" = no; then
40964         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
40965         hardcode_libdir_separator=:
40966         hardcode_direct=yes
40967         hardcode_direct_absolute=yes
40968         export_dynamic_flag_spec='${wl}-E'
40969         # hardcode_minus_L: Not really in the search PATH,
40970         # but as the default location of the library.
40971         hardcode_minus_L=yes
40972       fi
40973       ;;
40974
40975     hpux11*)
40976       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
40977         case $host_cpu in
40978         hppa*64*)
40979           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
40980           ;;
40981         ia64*)
40982           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
40983           ;;
40984         *)
40985           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40986           ;;
40987         esac
40988       else
40989         case $host_cpu in
40990         hppa*64*)
40991           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
40992           ;;
40993         ia64*)
40994           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
40995           ;;
40996         *)
40997
40998           # Older versions of the 11.00 compiler do not understand -b yet
40999           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
41000           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
41001 $as_echo_n "checking if $CC understands -b... " >&6; }
41002 if ${lt_cv_prog_compiler__b+:} false; then :
41003   $as_echo_n "(cached) " >&6
41004 else
41005   lt_cv_prog_compiler__b=no
41006    save_LDFLAGS="$LDFLAGS"
41007    LDFLAGS="$LDFLAGS -b"
41008    echo "$lt_simple_link_test_code" > conftest.$ac_ext
41009    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
41010      # The linker can only warn and ignore the option if not recognized
41011      # So say no if there are warnings
41012      if test -s conftest.err; then
41013        # Append any errors to the config.log.
41014        cat conftest.err 1>&5
41015        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
41016        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
41017        if diff conftest.exp conftest.er2 >/dev/null; then
41018          lt_cv_prog_compiler__b=yes
41019        fi
41020      else
41021        lt_cv_prog_compiler__b=yes
41022      fi
41023    fi
41024    $RM -r conftest*
41025    LDFLAGS="$save_LDFLAGS"
41026
41027 fi
41028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
41029 $as_echo "$lt_cv_prog_compiler__b" >&6; }
41030
41031 if test x"$lt_cv_prog_compiler__b" = xyes; then
41032     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
41033 else
41034     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
41035 fi
41036
41037           ;;
41038         esac
41039       fi
41040       if test "$with_gnu_ld" = no; then
41041         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
41042         hardcode_libdir_separator=:
41043
41044         case $host_cpu in
41045         hppa*64*|ia64*)
41046           hardcode_direct=no
41047           hardcode_shlibpath_var=no
41048           ;;
41049         *)
41050           hardcode_direct=yes
41051           hardcode_direct_absolute=yes
41052           export_dynamic_flag_spec='${wl}-E'
41053
41054           # hardcode_minus_L: Not really in the search PATH,
41055           # but as the default location of the library.
41056           hardcode_minus_L=yes
41057           ;;
41058         esac
41059       fi
41060       ;;
41061
41062     irix5* | irix6* | nonstopux*)
41063       if test "$GCC" = yes; then
41064         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'
41065         # Try to use the -exported_symbol ld option, if it does not
41066         # work, assume that -exports_file does not work either and
41067         # implicitly export all symbols.
41068         # This should be the same for all languages, so no per-tag cache variable.
41069         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
41070 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
41071 if ${lt_cv_irix_exported_symbol+:} false; then :
41072   $as_echo_n "(cached) " >&6
41073 else
41074   save_LDFLAGS="$LDFLAGS"
41075            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
41076            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41077 /* end confdefs.h.  */
41078 int foo (void) { return 0; }
41079 _ACEOF
41080 if ac_fn_c_try_link "$LINENO"; then :
41081   lt_cv_irix_exported_symbol=yes
41082 else
41083   lt_cv_irix_exported_symbol=no
41084 fi
41085 rm -f core conftest.err conftest.$ac_objext \
41086     conftest$ac_exeext conftest.$ac_ext
41087            LDFLAGS="$save_LDFLAGS"
41088 fi
41089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
41090 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
41091         if test "$lt_cv_irix_exported_symbol" = yes; then
41092           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'
41093         fi
41094       else
41095         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'
41096         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'
41097       fi
41098       archive_cmds_need_lc='no'
41099       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
41100       hardcode_libdir_separator=:
41101       inherit_rpath=yes
41102       link_all_deplibs=yes
41103       ;;
41104
41105     netbsd* | netbsdelf*-gnu)
41106       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
41107         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
41108       else
41109         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
41110       fi
41111       hardcode_libdir_flag_spec='-R$libdir'
41112       hardcode_direct=yes
41113       hardcode_shlibpath_var=no
41114       ;;
41115
41116     newsos6)
41117       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41118       hardcode_direct=yes
41119       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
41120       hardcode_libdir_separator=:
41121       hardcode_shlibpath_var=no
41122       ;;
41123
41124     *nto* | *qnx*)
41125       ;;
41126
41127     openbsd*)
41128       if test -f /usr/libexec/ld.so; then
41129         hardcode_direct=yes
41130         hardcode_shlibpath_var=no
41131         hardcode_direct_absolute=yes
41132         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
41133           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
41134           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
41135           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
41136           export_dynamic_flag_spec='${wl}-E'
41137         else
41138           case $host_os in
41139            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
41140              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
41141              hardcode_libdir_flag_spec='-R$libdir'
41142              ;;
41143            *)
41144              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
41145              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
41146              ;;
41147           esac
41148         fi
41149       else
41150         ld_shlibs=no
41151       fi
41152       ;;
41153
41154     os2*)
41155       hardcode_libdir_flag_spec='-L$libdir'
41156       hardcode_minus_L=yes
41157       allow_undefined_flag=unsupported
41158       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'
41159       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
41160       ;;
41161
41162     osf3*)
41163       if test "$GCC" = yes; then
41164         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
41165         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'
41166       else
41167         allow_undefined_flag=' -expect_unresolved \*'
41168         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'
41169       fi
41170       archive_cmds_need_lc='no'
41171       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
41172       hardcode_libdir_separator=:
41173       ;;
41174
41175     osf4* | osf5*)      # as osf3* with the addition of -msym flag
41176       if test "$GCC" = yes; then
41177         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
41178         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'
41179         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
41180       else
41181         allow_undefined_flag=' -expect_unresolved \*'
41182         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'
41183         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~
41184         $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'
41185
41186         # Both c and cxx compiler support -rpath directly
41187         hardcode_libdir_flag_spec='-rpath $libdir'
41188       fi
41189       archive_cmds_need_lc='no'
41190       hardcode_libdir_separator=:
41191       ;;
41192
41193     solaris*)
41194       no_undefined_flag=' -z defs'
41195       if test "$GCC" = yes; then
41196         wlarc='${wl}'
41197         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
41198         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
41199           $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'
41200       else
41201         case `$CC -V 2>&1` in
41202         *"Compilers 5.0"*)
41203           wlarc=''
41204           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
41205           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
41206           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
41207           ;;
41208         *)
41209           wlarc='${wl}'
41210           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
41211           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
41212           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
41213           ;;
41214         esac
41215       fi
41216       hardcode_libdir_flag_spec='-R$libdir'
41217       hardcode_shlibpath_var=no
41218       case $host_os in
41219       solaris2.[0-5] | solaris2.[0-5].*) ;;
41220       *)
41221         # The compiler driver will combine and reorder linker options,
41222         # but understands `-z linker_flag'.  GCC discards it without `$wl',
41223         # but is careful enough not to reorder.
41224         # Supported since Solaris 2.6 (maybe 2.5.1?)
41225         if test "$GCC" = yes; then
41226           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
41227         else
41228           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
41229         fi
41230         ;;
41231       esac
41232       link_all_deplibs=yes
41233       ;;
41234
41235     sunos4*)
41236       if test "x$host_vendor" = xsequent; then
41237         # Use $CC to link under sequent, because it throws in some extra .o
41238         # files that make .init and .fini sections work.
41239         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
41240       else
41241         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
41242       fi
41243       hardcode_libdir_flag_spec='-L$libdir'
41244       hardcode_direct=yes
41245       hardcode_minus_L=yes
41246       hardcode_shlibpath_var=no
41247       ;;
41248
41249     sysv4)
41250       case $host_vendor in
41251         sni)
41252           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41253           hardcode_direct=yes # is this really true???
41254         ;;
41255         siemens)
41256           ## LD is ld it makes a PLAMLIB
41257           ## CC just makes a GrossModule.
41258           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
41259           reload_cmds='$CC -r -o $output$reload_objs'
41260           hardcode_direct=no
41261         ;;
41262         motorola)
41263           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41264           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
41265         ;;
41266       esac
41267       runpath_var='LD_RUN_PATH'
41268       hardcode_shlibpath_var=no
41269       ;;
41270
41271     sysv4.3*)
41272       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41273       hardcode_shlibpath_var=no
41274       export_dynamic_flag_spec='-Bexport'
41275       ;;
41276
41277     sysv4*MP*)
41278       if test -d /usr/nec; then
41279         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41280         hardcode_shlibpath_var=no
41281         runpath_var=LD_RUN_PATH
41282         hardcode_runpath_var=yes
41283         ld_shlibs=yes
41284       fi
41285       ;;
41286
41287     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
41288       no_undefined_flag='${wl}-z,text'
41289       archive_cmds_need_lc=no
41290       hardcode_shlibpath_var=no
41291       runpath_var='LD_RUN_PATH'
41292
41293       if test "$GCC" = yes; then
41294         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41295         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41296       else
41297         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41298         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41299       fi
41300       ;;
41301
41302     sysv5* | sco3.2v5* | sco5v6*)
41303       # Note: We can NOT use -z defs as we might desire, because we do not
41304       # link with -lc, and that would cause any symbols used from libc to
41305       # always be unresolved, which means just about no library would
41306       # ever link correctly.  If we're not using GNU ld we use -z text
41307       # though, which does catch some bad symbols but isn't as heavy-handed
41308       # as -z defs.
41309       no_undefined_flag='${wl}-z,text'
41310       allow_undefined_flag='${wl}-z,nodefs'
41311       archive_cmds_need_lc=no
41312       hardcode_shlibpath_var=no
41313       hardcode_libdir_flag_spec='${wl}-R,$libdir'
41314       hardcode_libdir_separator=':'
41315       link_all_deplibs=yes
41316       export_dynamic_flag_spec='${wl}-Bexport'
41317       runpath_var='LD_RUN_PATH'
41318
41319       if test "$GCC" = yes; then
41320         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41321         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41322       else
41323         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41324         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41325       fi
41326       ;;
41327
41328     uts4*)
41329       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41330       hardcode_libdir_flag_spec='-L$libdir'
41331       hardcode_shlibpath_var=no
41332       ;;
41333
41334     *)
41335       ld_shlibs=no
41336       ;;
41337     esac
41338
41339     if test x$host_vendor = xsni; then
41340       case $host in
41341       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
41342         export_dynamic_flag_spec='${wl}-Blargedynsym'
41343         ;;
41344       esac
41345     fi
41346   fi
41347
41348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
41349 $as_echo "$ld_shlibs" >&6; }
41350 test "$ld_shlibs" = no && can_build_shared=no
41351
41352 with_gnu_ld=$with_gnu_ld
41353
41354
41355
41356
41357
41358
41359
41360
41361
41362
41363
41364
41365
41366
41367
41368 #
41369 # Do we need to explicitly link libc?
41370 #
41371 case "x$archive_cmds_need_lc" in
41372 x|xyes)
41373   # Assume -lc should be added
41374   archive_cmds_need_lc=yes
41375
41376   if test "$enable_shared" = yes && test "$GCC" = yes; then
41377     case $archive_cmds in
41378     *'~'*)
41379       # FIXME: we may have to deal with multi-command sequences.
41380       ;;
41381     '$CC '*)
41382       # Test whether the compiler implicitly links with -lc since on some
41383       # systems, -lgcc has to come before -lc. If gcc already passes -lc
41384       # to ld, don't add -lc before -lgcc.
41385       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
41386 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
41387 if ${lt_cv_archive_cmds_need_lc+:} false; then :
41388   $as_echo_n "(cached) " >&6
41389 else
41390   $RM conftest*
41391         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
41392
41393         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
41394   (eval $ac_compile) 2>&5
41395   ac_status=$?
41396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41397   test $ac_status = 0; } 2>conftest.err; then
41398           soname=conftest
41399           lib=conftest
41400           libobjs=conftest.$ac_objext
41401           deplibs=
41402           wl=$lt_prog_compiler_wl
41403           pic_flag=$lt_prog_compiler_pic
41404           compiler_flags=-v
41405           linker_flags=-v
41406           verstring=
41407           output_objdir=.
41408           libname=conftest
41409           lt_save_allow_undefined_flag=$allow_undefined_flag
41410           allow_undefined_flag=
41411           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
41412   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
41413   ac_status=$?
41414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41415   test $ac_status = 0; }
41416           then
41417             lt_cv_archive_cmds_need_lc=no
41418           else
41419             lt_cv_archive_cmds_need_lc=yes
41420           fi
41421           allow_undefined_flag=$lt_save_allow_undefined_flag
41422         else
41423           cat conftest.err 1>&5
41424         fi
41425         $RM conftest*
41426
41427 fi
41428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
41429 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
41430       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
41431       ;;
41432     esac
41433   fi
41434   ;;
41435 esac
41436
41437
41438
41439
41440
41441
41442
41443
41444
41445
41446
41447
41448
41449
41450
41451
41452
41453
41454
41455
41456
41457
41458
41459
41460
41461
41462
41463
41464
41465
41466
41467
41468
41469
41470
41471
41472
41473
41474
41475
41476
41477
41478
41479
41480
41481
41482
41483
41484
41485
41486
41487
41488
41489
41490
41491
41492
41493
41494
41495
41496
41497
41498
41499
41500
41501
41502
41503
41504
41505
41506
41507
41508
41509
41510
41511
41512
41513
41514
41515
41516
41517
41518
41519
41520
41521
41522
41523
41524
41525
41526
41527
41528
41529
41530
41531
41532
41533
41534
41535
41536
41537
41538
41539
41540
41541
41542
41543
41544
41545
41546
41547
41548
41549
41550
41551
41552
41553
41554
41555
41556
41557
41558
41559
41560
41561
41562
41563
41564
41565
41566
41567
41568
41569
41570
41571
41572
41573
41574
41575
41576
41577
41578
41579
41580
41581
41582
41583
41584
41585
41586
41587
41588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
41589 $as_echo_n "checking dynamic linker characteristics... " >&6; }
41590
41591 if test "$GCC" = yes; then
41592   case $host_os in
41593     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
41594     *) lt_awk_arg="/^libraries:/" ;;
41595   esac
41596   case $host_os in
41597     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
41598     *) lt_sed_strip_eq="s,=/,/,g" ;;
41599   esac
41600   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
41601   case $lt_search_path_spec in
41602   *\;*)
41603     # if the path contains ";" then we assume it to be the separator
41604     # otherwise default to the standard path separator (i.e. ":") - it is
41605     # assumed that no part of a normal pathname contains ";" but that should
41606     # okay in the real world where ";" in dirpaths is itself problematic.
41607     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
41608     ;;
41609   *)
41610     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
41611     ;;
41612   esac
41613   # Ok, now we have the path, separated by spaces, we can step through it
41614   # and add multilib dir if necessary.
41615   lt_tmp_lt_search_path_spec=
41616   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
41617   for lt_sys_path in $lt_search_path_spec; do
41618     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
41619       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
41620     else
41621       test -d "$lt_sys_path" && \
41622         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
41623     fi
41624   done
41625   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
41626 BEGIN {RS=" "; FS="/|\n";} {
41627   lt_foo="";
41628   lt_count=0;
41629   for (lt_i = NF; lt_i > 0; lt_i--) {
41630     if ($lt_i != "" && $lt_i != ".") {
41631       if ($lt_i == "..") {
41632         lt_count++;
41633       } else {
41634         if (lt_count == 0) {
41635           lt_foo="/" $lt_i lt_foo;
41636         } else {
41637           lt_count--;
41638         }
41639       }
41640     }
41641   }
41642   if (lt_foo != "") { lt_freq[lt_foo]++; }
41643   if (lt_freq[lt_foo] == 1) { print lt_foo; }
41644 }'`
41645   # AWK program above erroneously prepends '/' to C:/dos/paths
41646   # for these hosts.
41647   case $host_os in
41648     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
41649       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
41650   esac
41651   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
41652 else
41653   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
41654 fi
41655 library_names_spec=
41656 libname_spec='lib$name'
41657 soname_spec=
41658 shrext_cmds=".so"
41659 postinstall_cmds=
41660 postuninstall_cmds=
41661 finish_cmds=
41662 finish_eval=
41663 shlibpath_var=
41664 shlibpath_overrides_runpath=unknown
41665 version_type=none
41666 dynamic_linker="$host_os ld.so"
41667 sys_lib_dlsearch_path_spec="/lib /usr/lib"
41668 need_lib_prefix=unknown
41669 hardcode_into_libs=no
41670
41671 # when you set need_version to no, make sure it does not cause -set_version
41672 # flags to be left without arguments
41673 need_version=unknown
41674
41675 case $host_os in
41676 aix3*)
41677   version_type=linux # correct to gnu/linux during the next big refactor
41678   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
41679   shlibpath_var=LIBPATH
41680
41681   # AIX 3 has no versioning support, so we append a major version to the name.
41682   soname_spec='${libname}${release}${shared_ext}$major'
41683   ;;
41684
41685 aix[4-9]*)
41686   version_type=linux # correct to gnu/linux during the next big refactor
41687   need_lib_prefix=no
41688   need_version=no
41689   hardcode_into_libs=yes
41690   if test "$host_cpu" = ia64; then
41691     # AIX 5 supports IA64
41692     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
41693     shlibpath_var=LD_LIBRARY_PATH
41694   else
41695     # With GCC up to 2.95.x, collect2 would create an import file
41696     # for dependence libraries.  The import file would start with
41697     # the line `#! .'.  This would cause the generated library to
41698     # depend on `.', always an invalid library.  This was fixed in
41699     # development snapshots of GCC prior to 3.0.
41700     case $host_os in
41701       aix4 | aix4.[01] | aix4.[01].*)
41702       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
41703            echo ' yes '
41704            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
41705         :
41706       else
41707         can_build_shared=no
41708       fi
41709       ;;
41710     esac
41711     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
41712     # soname into executable. Probably we can add versioning support to
41713     # collect2, so additional links can be useful in future.
41714     if test "$aix_use_runtimelinking" = yes; then
41715       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
41716       # instead of lib<name>.a to let people know that these are not
41717       # typical AIX shared libraries.
41718       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41719     else
41720       # We preserve .a as extension for shared libraries through AIX4.2
41721       # and later when we are not doing run time linking.
41722       library_names_spec='${libname}${release}.a $libname.a'
41723       soname_spec='${libname}${release}${shared_ext}$major'
41724     fi
41725     shlibpath_var=LIBPATH
41726   fi
41727   ;;
41728
41729 amigaos*)
41730   case $host_cpu in
41731   powerpc)
41732     # Since July 2007 AmigaOS4 officially supports .so libraries.
41733     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
41734     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41735     ;;
41736   m68k)
41737     library_names_spec='$libname.ixlibrary $libname.a'
41738     # Create ${libname}_ixlibrary.a entries in /sys/libs.
41739     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'
41740     ;;
41741   esac
41742   ;;
41743
41744 beos*)
41745   library_names_spec='${libname}${shared_ext}'
41746   dynamic_linker="$host_os ld.so"
41747   shlibpath_var=LIBRARY_PATH
41748   ;;
41749
41750 bsdi[45]*)
41751   version_type=linux # correct to gnu/linux during the next big refactor
41752   need_version=no
41753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41754   soname_spec='${libname}${release}${shared_ext}$major'
41755   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
41756   shlibpath_var=LD_LIBRARY_PATH
41757   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
41758   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
41759   # the default ld.so.conf also contains /usr/contrib/lib and
41760   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
41761   # libtool to hard-code these into programs
41762   ;;
41763
41764 cygwin* | mingw* | pw32* | cegcc*)
41765   version_type=windows
41766   shrext_cmds=".dll"
41767   need_version=no
41768   need_lib_prefix=no
41769
41770   case $GCC,$cc_basename in
41771   yes,*)
41772     # gcc
41773     library_names_spec='$libname.dll.a'
41774     # DLL is installed to $(libdir)/../bin by postinstall_cmds
41775     postinstall_cmds='base_file=`basename \${file}`~
41776       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
41777       dldir=$destdir/`dirname \$dlpath`~
41778       test -d \$dldir || mkdir -p \$dldir~
41779       $install_prog $dir/$dlname \$dldir/$dlname~
41780       chmod a+x \$dldir/$dlname~
41781       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
41782         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
41783       fi'
41784     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
41785       dlpath=$dir/\$dldll~
41786        $RM \$dlpath'
41787     shlibpath_overrides_runpath=yes
41788
41789     case $host_os in
41790     cygwin*)
41791       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
41792       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41793
41794       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
41795       ;;
41796     mingw* | cegcc*)
41797       # MinGW DLLs use traditional 'lib' prefix
41798       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41799       ;;
41800     pw32*)
41801       # pw32 DLLs use 'pw' prefix rather than 'lib'
41802       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41803       ;;
41804     esac
41805     dynamic_linker='Win32 ld.exe'
41806     ;;
41807
41808   *,cl*)
41809     # Native MSVC
41810     libname_spec='$name'
41811     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41812     library_names_spec='${libname}.dll.lib'
41813
41814     case $build_os in
41815     mingw*)
41816       sys_lib_search_path_spec=
41817       lt_save_ifs=$IFS
41818       IFS=';'
41819       for lt_path in $LIB
41820       do
41821         IFS=$lt_save_ifs
41822         # Let DOS variable expansion print the short 8.3 style file name.
41823         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
41824         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
41825       done
41826       IFS=$lt_save_ifs
41827       # Convert to MSYS style.
41828       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
41829       ;;
41830     cygwin*)
41831       # Convert to unix form, then to dos form, then back to unix form
41832       # but this time dos style (no spaces!) so that the unix form looks
41833       # like /cygdrive/c/PROGRA~1:/cygdr...
41834       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
41835       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
41836       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
41837       ;;
41838     *)
41839       sys_lib_search_path_spec="$LIB"
41840       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
41841         # It is most probably a Windows format PATH.
41842         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
41843       else
41844         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
41845       fi
41846       # FIXME: find the short name or the path components, as spaces are
41847       # common. (e.g. "Program Files" -> "PROGRA~1")
41848       ;;
41849     esac
41850
41851     # DLL is installed to $(libdir)/../bin by postinstall_cmds
41852     postinstall_cmds='base_file=`basename \${file}`~
41853       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
41854       dldir=$destdir/`dirname \$dlpath`~
41855       test -d \$dldir || mkdir -p \$dldir~
41856       $install_prog $dir/$dlname \$dldir/$dlname'
41857     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
41858       dlpath=$dir/\$dldll~
41859        $RM \$dlpath'
41860     shlibpath_overrides_runpath=yes
41861     dynamic_linker='Win32 link.exe'
41862     ;;
41863
41864   *)
41865     # Assume MSVC wrapper
41866     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
41867     dynamic_linker='Win32 ld.exe'
41868     ;;
41869   esac
41870   # FIXME: first we should search . and the directory the executable is in
41871   shlibpath_var=PATH
41872   ;;
41873
41874 darwin* | rhapsody*)
41875   dynamic_linker="$host_os dyld"
41876   version_type=darwin
41877   need_lib_prefix=no
41878   need_version=no
41879   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
41880   soname_spec='${libname}${release}${major}$shared_ext'
41881   shlibpath_overrides_runpath=yes
41882   shlibpath_var=DYLD_LIBRARY_PATH
41883   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
41884
41885   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
41886   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
41887   ;;
41888
41889 dgux*)
41890   version_type=linux # correct to gnu/linux during the next big refactor
41891   need_lib_prefix=no
41892   need_version=no
41893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
41894   soname_spec='${libname}${release}${shared_ext}$major'
41895   shlibpath_var=LD_LIBRARY_PATH
41896   ;;
41897
41898 freebsd* | dragonfly*)
41899   # DragonFly does not have aout.  When/if they implement a new
41900   # versioning mechanism, adjust this.
41901   if test -x /usr/bin/objformat; then
41902     objformat=`/usr/bin/objformat`
41903   else
41904     case $host_os in
41905     freebsd[23].*) objformat=aout ;;
41906     *) objformat=elf ;;
41907     esac
41908   fi
41909   version_type=freebsd-$objformat
41910   case $version_type in
41911     freebsd-elf*)
41912       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
41913       need_version=no
41914       need_lib_prefix=no
41915       ;;
41916     freebsd-*)
41917       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
41918       need_version=yes
41919       ;;
41920   esac
41921   shlibpath_var=LD_LIBRARY_PATH
41922   case $host_os in
41923   freebsd2.*)
41924     shlibpath_overrides_runpath=yes
41925     ;;
41926   freebsd3.[01]* | freebsdelf3.[01]*)
41927     shlibpath_overrides_runpath=yes
41928     hardcode_into_libs=yes
41929     ;;
41930   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
41931   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
41932     shlibpath_overrides_runpath=no
41933     hardcode_into_libs=yes
41934     ;;
41935   *) # from 4.6 on, and DragonFly
41936     shlibpath_overrides_runpath=yes
41937     hardcode_into_libs=yes
41938     ;;
41939   esac
41940   ;;
41941
41942 haiku*)
41943   version_type=linux # correct to gnu/linux during the next big refactor
41944   need_lib_prefix=no
41945   need_version=no
41946   dynamic_linker="$host_os runtime_loader"
41947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
41948   soname_spec='${libname}${release}${shared_ext}$major'
41949   shlibpath_var=LIBRARY_PATH
41950   shlibpath_overrides_runpath=yes
41951   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
41952   hardcode_into_libs=yes
41953   ;;
41954
41955 hpux9* | hpux10* | hpux11*)
41956   # Give a soname corresponding to the major version so that dld.sl refuses to
41957   # link against other versions.
41958   version_type=sunos
41959   need_lib_prefix=no
41960   need_version=no
41961   case $host_cpu in
41962   ia64*)
41963     shrext_cmds='.so'
41964     hardcode_into_libs=yes
41965     dynamic_linker="$host_os dld.so"
41966     shlibpath_var=LD_LIBRARY_PATH
41967     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
41968     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41969     soname_spec='${libname}${release}${shared_ext}$major'
41970     if test "X$HPUX_IA64_MODE" = X32; then
41971       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
41972     else
41973       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
41974     fi
41975     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
41976     ;;
41977   hppa*64*)
41978     shrext_cmds='.sl'
41979     hardcode_into_libs=yes
41980     dynamic_linker="$host_os dld.sl"
41981     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
41982     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
41983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41984     soname_spec='${libname}${release}${shared_ext}$major'
41985     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
41986     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
41987     ;;
41988   *)
41989     shrext_cmds='.sl'
41990     dynamic_linker="$host_os dld.sl"
41991     shlibpath_var=SHLIB_PATH
41992     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
41993     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41994     soname_spec='${libname}${release}${shared_ext}$major'
41995     ;;
41996   esac
41997   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
41998   postinstall_cmds='chmod 555 $lib'
41999   # or fails outright, so override atomically:
42000   install_override_mode=555
42001   ;;
42002
42003 interix[3-9]*)
42004   version_type=linux # correct to gnu/linux during the next big refactor
42005   need_lib_prefix=no
42006   need_version=no
42007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
42008   soname_spec='${libname}${release}${shared_ext}$major'
42009   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
42010   shlibpath_var=LD_LIBRARY_PATH
42011   shlibpath_overrides_runpath=no
42012   hardcode_into_libs=yes
42013   ;;
42014
42015 irix5* | irix6* | nonstopux*)
42016   case $host_os in
42017     nonstopux*) version_type=nonstopux ;;
42018     *)
42019         if test "$lt_cv_prog_gnu_ld" = yes; then
42020                 version_type=linux # correct to gnu/linux during the next big refactor
42021         else
42022                 version_type=irix
42023         fi ;;
42024   esac
42025   need_lib_prefix=no
42026   need_version=no
42027   soname_spec='${libname}${release}${shared_ext}$major'
42028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
42029   case $host_os in
42030   irix5* | nonstopux*)
42031     libsuff= shlibsuff=
42032     ;;
42033   *)
42034     case $LD in # libtool.m4 will add one of these switches to LD
42035     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
42036       libsuff= shlibsuff= libmagic=32-bit;;
42037     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
42038       libsuff=32 shlibsuff=N32 libmagic=N32;;
42039     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
42040       libsuff=64 shlibsuff=64 libmagic=64-bit;;
42041     *) libsuff= shlibsuff= libmagic=never-match;;
42042     esac
42043     ;;
42044   esac
42045   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
42046   shlibpath_overrides_runpath=no
42047   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
42048   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
42049   hardcode_into_libs=yes
42050   ;;
42051
42052 # No shared lib support for Linux oldld, aout, or coff.
42053 linux*oldld* | linux*aout* | linux*coff*)
42054   dynamic_linker=no
42055   ;;
42056
42057 # This must be glibc/ELF.
42058 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
42059   version_type=linux # correct to gnu/linux during the next big refactor
42060   need_lib_prefix=no
42061   need_version=no
42062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42063   soname_spec='${libname}${release}${shared_ext}$major'
42064   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
42065   shlibpath_var=LD_LIBRARY_PATH
42066   shlibpath_overrides_runpath=no
42067
42068   # Some binutils ld are patched to set DT_RUNPATH
42069   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
42070   $as_echo_n "(cached) " >&6
42071 else
42072   lt_cv_shlibpath_overrides_runpath=no
42073     save_LDFLAGS=$LDFLAGS
42074     save_libdir=$libdir
42075     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
42076          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
42077     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42078 /* end confdefs.h.  */
42079
42080 int
42081 main ()
42082 {
42083
42084   ;
42085   return 0;
42086 }
42087 _ACEOF
42088 if ac_fn_c_try_link "$LINENO"; then :
42089   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
42090   lt_cv_shlibpath_overrides_runpath=yes
42091 fi
42092 fi
42093 rm -f core conftest.err conftest.$ac_objext \
42094     conftest$ac_exeext conftest.$ac_ext
42095     LDFLAGS=$save_LDFLAGS
42096     libdir=$save_libdir
42097
42098 fi
42099
42100   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
42101
42102   # This implies no fast_install, which is unacceptable.
42103   # Some rework will be needed to allow for fast_install
42104   # before this can be enabled.
42105   hardcode_into_libs=yes
42106
42107   # Append ld.so.conf contents to the search path
42108   if test -f /etc/ld.so.conf; then
42109     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' ' '`
42110     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
42111   fi
42112
42113   # We used to test for /lib/ld.so.1 and disable shared libraries on
42114   # powerpc, because MkLinux only supported shared libraries with the
42115   # GNU dynamic linker.  Since this was broken with cross compilers,
42116   # most powerpc-linux boxes support dynamic linking these days and
42117   # people can always --disable-shared, the test was removed, and we
42118   # assume the GNU/Linux dynamic linker is in use.
42119   dynamic_linker='GNU/Linux ld.so'
42120   ;;
42121
42122 netbsdelf*-gnu)
42123   version_type=linux
42124   need_lib_prefix=no
42125   need_version=no
42126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
42127   soname_spec='${libname}${release}${shared_ext}$major'
42128   shlibpath_var=LD_LIBRARY_PATH
42129   shlibpath_overrides_runpath=no
42130   hardcode_into_libs=yes
42131   dynamic_linker='NetBSD ld.elf_so'
42132   ;;
42133
42134 netbsd*)
42135   version_type=sunos
42136   need_lib_prefix=no
42137   need_version=no
42138   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
42139     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
42140     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
42141     dynamic_linker='NetBSD (a.out) ld.so'
42142   else
42143     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
42144     soname_spec='${libname}${release}${shared_ext}$major'
42145     dynamic_linker='NetBSD ld.elf_so'
42146   fi
42147   shlibpath_var=LD_LIBRARY_PATH
42148   shlibpath_overrides_runpath=yes
42149   hardcode_into_libs=yes
42150   ;;
42151
42152 newsos6)
42153   version_type=linux # correct to gnu/linux during the next big refactor
42154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42155   shlibpath_var=LD_LIBRARY_PATH
42156   shlibpath_overrides_runpath=yes
42157   ;;
42158
42159 *nto* | *qnx*)
42160   version_type=qnx
42161   need_lib_prefix=no
42162   need_version=no
42163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42164   soname_spec='${libname}${release}${shared_ext}$major'
42165   shlibpath_var=LD_LIBRARY_PATH
42166   shlibpath_overrides_runpath=no
42167   hardcode_into_libs=yes
42168   dynamic_linker='ldqnx.so'
42169   ;;
42170
42171 openbsd*)
42172   version_type=sunos
42173   sys_lib_dlsearch_path_spec="/usr/lib"
42174   need_lib_prefix=no
42175   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
42176   case $host_os in
42177     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
42178     *)                          need_version=no  ;;
42179   esac
42180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
42181   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
42182   shlibpath_var=LD_LIBRARY_PATH
42183   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
42184     case $host_os in
42185       openbsd2.[89] | openbsd2.[89].*)
42186         shlibpath_overrides_runpath=no
42187         ;;
42188       *)
42189         shlibpath_overrides_runpath=yes
42190         ;;
42191       esac
42192   else
42193     shlibpath_overrides_runpath=yes
42194   fi
42195   ;;
42196
42197 os2*)
42198   libname_spec='$name'
42199   shrext_cmds=".dll"
42200   need_lib_prefix=no
42201   library_names_spec='$libname${shared_ext} $libname.a'
42202   dynamic_linker='OS/2 ld.exe'
42203   shlibpath_var=LIBPATH
42204   ;;
42205
42206 osf3* | osf4* | osf5*)
42207   version_type=osf
42208   need_lib_prefix=no
42209   need_version=no
42210   soname_spec='${libname}${release}${shared_ext}$major'
42211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42212   shlibpath_var=LD_LIBRARY_PATH
42213   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
42214   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
42215   ;;
42216
42217 rdos*)
42218   dynamic_linker=no
42219   ;;
42220
42221 solaris*)
42222   version_type=linux # correct to gnu/linux during the next big refactor
42223   need_lib_prefix=no
42224   need_version=no
42225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42226   soname_spec='${libname}${release}${shared_ext}$major'
42227   shlibpath_var=LD_LIBRARY_PATH
42228   shlibpath_overrides_runpath=yes
42229   hardcode_into_libs=yes
42230   # ldd complains unless libraries are executable
42231   postinstall_cmds='chmod +x $lib'
42232   ;;
42233
42234 sunos4*)
42235   version_type=sunos
42236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
42237   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
42238   shlibpath_var=LD_LIBRARY_PATH
42239   shlibpath_overrides_runpath=yes
42240   if test "$with_gnu_ld" = yes; then
42241     need_lib_prefix=no
42242   fi
42243   need_version=yes
42244   ;;
42245
42246 sysv4 | sysv4.3*)
42247   version_type=linux # correct to gnu/linux during the next big refactor
42248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42249   soname_spec='${libname}${release}${shared_ext}$major'
42250   shlibpath_var=LD_LIBRARY_PATH
42251   case $host_vendor in
42252     sni)
42253       shlibpath_overrides_runpath=no
42254       need_lib_prefix=no
42255       runpath_var=LD_RUN_PATH
42256       ;;
42257     siemens)
42258       need_lib_prefix=no
42259       ;;
42260     motorola)
42261       need_lib_prefix=no
42262       need_version=no
42263       shlibpath_overrides_runpath=no
42264       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
42265       ;;
42266   esac
42267   ;;
42268
42269 sysv4*MP*)
42270   if test -d /usr/nec ;then
42271     version_type=linux # correct to gnu/linux during the next big refactor
42272     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
42273     soname_spec='$libname${shared_ext}.$major'
42274     shlibpath_var=LD_LIBRARY_PATH
42275   fi
42276   ;;
42277
42278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
42279   version_type=freebsd-elf
42280   need_lib_prefix=no
42281   need_version=no
42282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
42283   soname_spec='${libname}${release}${shared_ext}$major'
42284   shlibpath_var=LD_LIBRARY_PATH
42285   shlibpath_overrides_runpath=yes
42286   hardcode_into_libs=yes
42287   if test "$with_gnu_ld" = yes; then
42288     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
42289   else
42290     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
42291     case $host_os in
42292       sco3.2v5*)
42293         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
42294         ;;
42295     esac
42296   fi
42297   sys_lib_dlsearch_path_spec='/usr/lib'
42298   ;;
42299
42300 tpf*)
42301   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
42302   version_type=linux # correct to gnu/linux during the next big refactor
42303   need_lib_prefix=no
42304   need_version=no
42305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42306   shlibpath_var=LD_LIBRARY_PATH
42307   shlibpath_overrides_runpath=no
42308   hardcode_into_libs=yes
42309   ;;
42310
42311 uts4*)
42312   version_type=linux # correct to gnu/linux during the next big refactor
42313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42314   soname_spec='${libname}${release}${shared_ext}$major'
42315   shlibpath_var=LD_LIBRARY_PATH
42316   ;;
42317
42318 *)
42319   dynamic_linker=no
42320   ;;
42321 esac
42322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
42323 $as_echo "$dynamic_linker" >&6; }
42324 test "$dynamic_linker" = no && can_build_shared=no
42325
42326 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
42327 if test "$GCC" = yes; then
42328   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
42329 fi
42330
42331 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
42332   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
42333 fi
42334 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
42335   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
42336 fi
42337
42338
42339
42340
42341
42342
42343
42344
42345
42346
42347
42348
42349
42350
42351
42352
42353
42354
42355
42356
42357
42358
42359
42360
42361
42362
42363
42364
42365
42366
42367
42368
42369
42370
42371
42372
42373
42374
42375
42376
42377
42378
42379
42380
42381
42382
42383
42384
42385
42386
42387
42388
42389
42390
42391
42392
42393
42394
42395
42396
42397
42398
42399
42400
42401
42402
42403
42404
42405
42406
42407
42408
42409
42410
42411
42412
42413
42414
42415
42416
42417
42418
42419
42420
42421
42422
42423
42424
42425
42426
42427
42428
42429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
42430 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
42431 hardcode_action=
42432 if test -n "$hardcode_libdir_flag_spec" ||
42433    test -n "$runpath_var" ||
42434    test "X$hardcode_automatic" = "Xyes" ; then
42435
42436   # We can hardcode non-existent directories.
42437   if test "$hardcode_direct" != no &&
42438      # If the only mechanism to avoid hardcoding is shlibpath_var, we
42439      # have to relink, otherwise we might link with an installed library
42440      # when we should be linking with a yet-to-be-installed one
42441      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
42442      test "$hardcode_minus_L" != no; then
42443     # Linking always hardcodes the temporary library directory.
42444     hardcode_action=relink
42445   else
42446     # We can link without hardcoding, and we can hardcode nonexisting dirs.
42447     hardcode_action=immediate
42448   fi
42449 else
42450   # We cannot hardcode anything, or else we can only hardcode existing
42451   # directories.
42452   hardcode_action=unsupported
42453 fi
42454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
42455 $as_echo "$hardcode_action" >&6; }
42456
42457 if test "$hardcode_action" = relink ||
42458    test "$inherit_rpath" = yes; then
42459   # Fast installation is not supported
42460   enable_fast_install=no
42461 elif test "$shlibpath_overrides_runpath" = yes ||
42462      test "$enable_shared" = no; then
42463   # Fast installation is not necessary
42464   enable_fast_install=needless
42465 fi
42466
42467
42468
42469
42470
42471
42472   if test "x$enable_dlopen" != xyes; then
42473   enable_dlopen=unknown
42474   enable_dlopen_self=unknown
42475   enable_dlopen_self_static=unknown
42476 else
42477   lt_cv_dlopen=no
42478   lt_cv_dlopen_libs=
42479
42480   case $host_os in
42481   beos*)
42482     lt_cv_dlopen="load_add_on"
42483     lt_cv_dlopen_libs=
42484     lt_cv_dlopen_self=yes
42485     ;;
42486
42487   mingw* | pw32* | cegcc*)
42488     lt_cv_dlopen="LoadLibrary"
42489     lt_cv_dlopen_libs=
42490     ;;
42491
42492   cygwin*)
42493     lt_cv_dlopen="dlopen"
42494     lt_cv_dlopen_libs=
42495     ;;
42496
42497   darwin*)
42498   # if libdl is installed we need to link against it
42499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
42500 $as_echo_n "checking for dlopen in -ldl... " >&6; }
42501 if ${ac_cv_lib_dl_dlopen+:} false; then :
42502   $as_echo_n "(cached) " >&6
42503 else
42504   ac_check_lib_save_LIBS=$LIBS
42505 LIBS="-ldl  $LIBS"
42506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42507 /* end confdefs.h.  */
42508
42509 /* Override any GCC internal prototype to avoid an error.
42510    Use char because int might match the return type of a GCC
42511    builtin and then its argument prototype would still apply.  */
42512 #ifdef __cplusplus
42513 extern "C"
42514 #endif
42515 char dlopen ();
42516 int
42517 main ()
42518 {
42519 return dlopen ();
42520   ;
42521   return 0;
42522 }
42523 _ACEOF
42524 if ac_fn_c_try_link "$LINENO"; then :
42525   ac_cv_lib_dl_dlopen=yes
42526 else
42527   ac_cv_lib_dl_dlopen=no
42528 fi
42529 rm -f core conftest.err conftest.$ac_objext \
42530     conftest$ac_exeext conftest.$ac_ext
42531 LIBS=$ac_check_lib_save_LIBS
42532 fi
42533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
42534 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
42535 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
42536   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
42537 else
42538
42539     lt_cv_dlopen="dyld"
42540     lt_cv_dlopen_libs=
42541     lt_cv_dlopen_self=yes
42542
42543 fi
42544
42545     ;;
42546
42547   *)
42548     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
42549 if test "x$ac_cv_func_shl_load" = xyes; then :
42550   lt_cv_dlopen="shl_load"
42551 else
42552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
42553 $as_echo_n "checking for shl_load in -ldld... " >&6; }
42554 if ${ac_cv_lib_dld_shl_load+:} false; then :
42555   $as_echo_n "(cached) " >&6
42556 else
42557   ac_check_lib_save_LIBS=$LIBS
42558 LIBS="-ldld  $LIBS"
42559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42560 /* end confdefs.h.  */
42561
42562 /* Override any GCC internal prototype to avoid an error.
42563    Use char because int might match the return type of a GCC
42564    builtin and then its argument prototype would still apply.  */
42565 #ifdef __cplusplus
42566 extern "C"
42567 #endif
42568 char shl_load ();
42569 int
42570 main ()
42571 {
42572 return shl_load ();
42573   ;
42574   return 0;
42575 }
42576 _ACEOF
42577 if ac_fn_c_try_link "$LINENO"; then :
42578   ac_cv_lib_dld_shl_load=yes
42579 else
42580   ac_cv_lib_dld_shl_load=no
42581 fi
42582 rm -f core conftest.err conftest.$ac_objext \
42583     conftest$ac_exeext conftest.$ac_ext
42584 LIBS=$ac_check_lib_save_LIBS
42585 fi
42586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
42587 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
42588 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
42589   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
42590 else
42591   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
42592 if test "x$ac_cv_func_dlopen" = xyes; then :
42593   lt_cv_dlopen="dlopen"
42594 else
42595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
42596 $as_echo_n "checking for dlopen in -ldl... " >&6; }
42597 if ${ac_cv_lib_dl_dlopen+:} false; then :
42598   $as_echo_n "(cached) " >&6
42599 else
42600   ac_check_lib_save_LIBS=$LIBS
42601 LIBS="-ldl  $LIBS"
42602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42603 /* end confdefs.h.  */
42604
42605 /* Override any GCC internal prototype to avoid an error.
42606    Use char because int might match the return type of a GCC
42607    builtin and then its argument prototype would still apply.  */
42608 #ifdef __cplusplus
42609 extern "C"
42610 #endif
42611 char dlopen ();
42612 int
42613 main ()
42614 {
42615 return dlopen ();
42616   ;
42617   return 0;
42618 }
42619 _ACEOF
42620 if ac_fn_c_try_link "$LINENO"; then :
42621   ac_cv_lib_dl_dlopen=yes
42622 else
42623   ac_cv_lib_dl_dlopen=no
42624 fi
42625 rm -f core conftest.err conftest.$ac_objext \
42626     conftest$ac_exeext conftest.$ac_ext
42627 LIBS=$ac_check_lib_save_LIBS
42628 fi
42629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
42630 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
42631 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
42632   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
42633 else
42634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
42635 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
42636 if ${ac_cv_lib_svld_dlopen+:} false; then :
42637   $as_echo_n "(cached) " >&6
42638 else
42639   ac_check_lib_save_LIBS=$LIBS
42640 LIBS="-lsvld  $LIBS"
42641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42642 /* end confdefs.h.  */
42643
42644 /* Override any GCC internal prototype to avoid an error.
42645    Use char because int might match the return type of a GCC
42646    builtin and then its argument prototype would still apply.  */
42647 #ifdef __cplusplus
42648 extern "C"
42649 #endif
42650 char dlopen ();
42651 int
42652 main ()
42653 {
42654 return dlopen ();
42655   ;
42656   return 0;
42657 }
42658 _ACEOF
42659 if ac_fn_c_try_link "$LINENO"; then :
42660   ac_cv_lib_svld_dlopen=yes
42661 else
42662   ac_cv_lib_svld_dlopen=no
42663 fi
42664 rm -f core conftest.err conftest.$ac_objext \
42665     conftest$ac_exeext conftest.$ac_ext
42666 LIBS=$ac_check_lib_save_LIBS
42667 fi
42668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
42669 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
42670 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
42671   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
42672 else
42673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
42674 $as_echo_n "checking for dld_link in -ldld... " >&6; }
42675 if ${ac_cv_lib_dld_dld_link+:} false; then :
42676   $as_echo_n "(cached) " >&6
42677 else
42678   ac_check_lib_save_LIBS=$LIBS
42679 LIBS="-ldld  $LIBS"
42680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42681 /* end confdefs.h.  */
42682
42683 /* Override any GCC internal prototype to avoid an error.
42684    Use char because int might match the return type of a GCC
42685    builtin and then its argument prototype would still apply.  */
42686 #ifdef __cplusplus
42687 extern "C"
42688 #endif
42689 char dld_link ();
42690 int
42691 main ()
42692 {
42693 return dld_link ();
42694   ;
42695   return 0;
42696 }
42697 _ACEOF
42698 if ac_fn_c_try_link "$LINENO"; then :
42699   ac_cv_lib_dld_dld_link=yes
42700 else
42701   ac_cv_lib_dld_dld_link=no
42702 fi
42703 rm -f core conftest.err conftest.$ac_objext \
42704     conftest$ac_exeext conftest.$ac_ext
42705 LIBS=$ac_check_lib_save_LIBS
42706 fi
42707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
42708 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
42709 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
42710   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
42711 fi
42712
42713
42714 fi
42715
42716
42717 fi
42718
42719
42720 fi
42721
42722
42723 fi
42724
42725
42726 fi
42727
42728     ;;
42729   esac
42730
42731   if test "x$lt_cv_dlopen" != xno; then
42732     enable_dlopen=yes
42733   else
42734     enable_dlopen=no
42735   fi
42736
42737   case $lt_cv_dlopen in
42738   dlopen)
42739     save_CPPFLAGS="$CPPFLAGS"
42740     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
42741
42742     save_LDFLAGS="$LDFLAGS"
42743     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
42744
42745     save_LIBS="$LIBS"
42746     LIBS="$lt_cv_dlopen_libs $LIBS"
42747
42748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
42749 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
42750 if ${lt_cv_dlopen_self+:} false; then :
42751   $as_echo_n "(cached) " >&6
42752 else
42753           if test "$cross_compiling" = yes; then :
42754   lt_cv_dlopen_self=cross
42755 else
42756   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
42757   lt_status=$lt_dlunknown
42758   cat > conftest.$ac_ext <<_LT_EOF
42759 #line $LINENO "configure"
42760 #include "confdefs.h"
42761
42762 #if HAVE_DLFCN_H
42763 #include <dlfcn.h>
42764 #endif
42765
42766 #include <stdio.h>
42767
42768 #ifdef RTLD_GLOBAL
42769 #  define LT_DLGLOBAL           RTLD_GLOBAL
42770 #else
42771 #  ifdef DL_GLOBAL
42772 #    define LT_DLGLOBAL         DL_GLOBAL
42773 #  else
42774 #    define LT_DLGLOBAL         0
42775 #  endif
42776 #endif
42777
42778 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
42779    find out it does not work in some platform. */
42780 #ifndef LT_DLLAZY_OR_NOW
42781 #  ifdef RTLD_LAZY
42782 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
42783 #  else
42784 #    ifdef DL_LAZY
42785 #      define LT_DLLAZY_OR_NOW          DL_LAZY
42786 #    else
42787 #      ifdef RTLD_NOW
42788 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
42789 #      else
42790 #        ifdef DL_NOW
42791 #          define LT_DLLAZY_OR_NOW      DL_NOW
42792 #        else
42793 #          define LT_DLLAZY_OR_NOW      0
42794 #        endif
42795 #      endif
42796 #    endif
42797 #  endif
42798 #endif
42799
42800 /* When -fvisbility=hidden is used, assume the code has been annotated
42801    correspondingly for the symbols needed.  */
42802 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
42803 int fnord () __attribute__((visibility("default")));
42804 #endif
42805
42806 int fnord () { return 42; }
42807 int main ()
42808 {
42809   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
42810   int status = $lt_dlunknown;
42811
42812   if (self)
42813     {
42814       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
42815       else
42816         {
42817           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
42818           else puts (dlerror ());
42819         }
42820       /* dlclose (self); */
42821     }
42822   else
42823     puts (dlerror ());
42824
42825   return status;
42826 }
42827 _LT_EOF
42828   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
42829   (eval $ac_link) 2>&5
42830   ac_status=$?
42831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42832   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
42833     (./conftest; exit; ) >&5 2>/dev/null
42834     lt_status=$?
42835     case x$lt_status in
42836       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
42837       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
42838       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
42839     esac
42840   else :
42841     # compilation failed
42842     lt_cv_dlopen_self=no
42843   fi
42844 fi
42845 rm -fr conftest*
42846
42847
42848 fi
42849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
42850 $as_echo "$lt_cv_dlopen_self" >&6; }
42851
42852     if test "x$lt_cv_dlopen_self" = xyes; then
42853       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
42854       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
42855 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
42856 if ${lt_cv_dlopen_self_static+:} false; then :
42857   $as_echo_n "(cached) " >&6
42858 else
42859           if test "$cross_compiling" = yes; then :
42860   lt_cv_dlopen_self_static=cross
42861 else
42862   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
42863   lt_status=$lt_dlunknown
42864   cat > conftest.$ac_ext <<_LT_EOF
42865 #line $LINENO "configure"
42866 #include "confdefs.h"
42867
42868 #if HAVE_DLFCN_H
42869 #include <dlfcn.h>
42870 #endif
42871
42872 #include <stdio.h>
42873
42874 #ifdef RTLD_GLOBAL
42875 #  define LT_DLGLOBAL           RTLD_GLOBAL
42876 #else
42877 #  ifdef DL_GLOBAL
42878 #    define LT_DLGLOBAL         DL_GLOBAL
42879 #  else
42880 #    define LT_DLGLOBAL         0
42881 #  endif
42882 #endif
42883
42884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
42885    find out it does not work in some platform. */
42886 #ifndef LT_DLLAZY_OR_NOW
42887 #  ifdef RTLD_LAZY
42888 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
42889 #  else
42890 #    ifdef DL_LAZY
42891 #      define LT_DLLAZY_OR_NOW          DL_LAZY
42892 #    else
42893 #      ifdef RTLD_NOW
42894 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
42895 #      else
42896 #        ifdef DL_NOW
42897 #          define LT_DLLAZY_OR_NOW      DL_NOW
42898 #        else
42899 #          define LT_DLLAZY_OR_NOW      0
42900 #        endif
42901 #      endif
42902 #    endif
42903 #  endif
42904 #endif
42905
42906 /* When -fvisbility=hidden is used, assume the code has been annotated
42907    correspondingly for the symbols needed.  */
42908 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
42909 int fnord () __attribute__((visibility("default")));
42910 #endif
42911
42912 int fnord () { return 42; }
42913 int main ()
42914 {
42915   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
42916   int status = $lt_dlunknown;
42917
42918   if (self)
42919     {
42920       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
42921       else
42922         {
42923           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
42924           else puts (dlerror ());
42925         }
42926       /* dlclose (self); */
42927     }
42928   else
42929     puts (dlerror ());
42930
42931   return status;
42932 }
42933 _LT_EOF
42934   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
42935   (eval $ac_link) 2>&5
42936   ac_status=$?
42937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42938   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
42939     (./conftest; exit; ) >&5 2>/dev/null
42940     lt_status=$?
42941     case x$lt_status in
42942       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
42943       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
42944       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
42945     esac
42946   else :
42947     # compilation failed
42948     lt_cv_dlopen_self_static=no
42949   fi
42950 fi
42951 rm -fr conftest*
42952
42953
42954 fi
42955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
42956 $as_echo "$lt_cv_dlopen_self_static" >&6; }
42957     fi
42958
42959     CPPFLAGS="$save_CPPFLAGS"
42960     LDFLAGS="$save_LDFLAGS"
42961     LIBS="$save_LIBS"
42962     ;;
42963   esac
42964
42965   case $lt_cv_dlopen_self in
42966   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
42967   *) enable_dlopen_self=unknown ;;
42968   esac
42969
42970   case $lt_cv_dlopen_self_static in
42971   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
42972   *) enable_dlopen_self_static=unknown ;;
42973   esac
42974 fi
42975
42976
42977
42978
42979
42980
42981
42982
42983
42984
42985
42986
42987
42988
42989
42990
42991
42992 striplib=
42993 old_striplib=
42994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
42995 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
42996 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
42997   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
42998   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
42999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43000 $as_echo "yes" >&6; }
43001 else
43002 # FIXME - insert some real tests, host_os isn't really good enough
43003   case $host_os in
43004   darwin*)
43005     if test -n "$STRIP" ; then
43006       striplib="$STRIP -x"
43007       old_striplib="$STRIP -S"
43008       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43009 $as_echo "yes" >&6; }
43010     else
43011       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43012 $as_echo "no" >&6; }
43013     fi
43014     ;;
43015   *)
43016     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43017 $as_echo "no" >&6; }
43018     ;;
43019   esac
43020 fi
43021
43022
43023
43024
43025
43026
43027
43028
43029
43030
43031
43032
43033   # Report which library types will actually be built
43034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
43035 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
43036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
43037 $as_echo "$can_build_shared" >&6; }
43038
43039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
43040 $as_echo_n "checking whether to build shared libraries... " >&6; }
43041   test "$can_build_shared" = "no" && enable_shared=no
43042
43043   # On AIX, shared libraries and static libraries use the same namespace, and
43044   # are all built from PIC.
43045   case $host_os in
43046   aix3*)
43047     test "$enable_shared" = yes && enable_static=no
43048     if test -n "$RANLIB"; then
43049       archive_cmds="$archive_cmds~\$RANLIB \$lib"
43050       postinstall_cmds='$RANLIB $lib'
43051     fi
43052     ;;
43053
43054   aix[4-9]*)
43055     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
43056       test "$enable_shared" = yes && enable_static=no
43057     fi
43058     ;;
43059   esac
43060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
43061 $as_echo "$enable_shared" >&6; }
43062
43063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
43064 $as_echo_n "checking whether to build static libraries... " >&6; }
43065   # Make sure either enable_shared or enable_static is yes.
43066   test "$enable_shared" = yes || enable_static=yes
43067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
43068 $as_echo "$enable_static" >&6; }
43069
43070
43071
43072
43073 fi
43074 ac_ext=c
43075 ac_cpp='$CPP $CPPFLAGS'
43076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43079
43080 CC="$lt_save_CC"
43081
43082       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
43083     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
43084     (test "X$CXX" != "Xg++"))) ; then
43085   ac_ext=cpp
43086 ac_cpp='$CXXCPP $CPPFLAGS'
43087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
43091 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
43092 if test -z "$CXXCPP"; then
43093   if ${ac_cv_prog_CXXCPP+:} false; then :
43094   $as_echo_n "(cached) " >&6
43095 else
43096       # Double quotes because CXXCPP needs to be expanded
43097     for CXXCPP in "$CXX -E" "/lib/cpp"
43098     do
43099       ac_preproc_ok=false
43100 for ac_cxx_preproc_warn_flag in '' yes
43101 do
43102   # Use a header file that comes with gcc, so configuring glibc
43103   # with a fresh cross-compiler works.
43104   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43105   # <limits.h> exists even on freestanding compilers.
43106   # On the NeXT, cc -E runs the code through the compiler's parser,
43107   # not just through cpp. "Syntax error" is here to catch this case.
43108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43109 /* end confdefs.h.  */
43110 #ifdef __STDC__
43111 # include <limits.h>
43112 #else
43113 # include <assert.h>
43114 #endif
43115                      Syntax error
43116 _ACEOF
43117 if ac_fn_cxx_try_cpp "$LINENO"; then :
43118
43119 else
43120   # Broken: fails on valid input.
43121 continue
43122 fi
43123 rm -f conftest.err conftest.i conftest.$ac_ext
43124
43125   # OK, works on sane cases.  Now check whether nonexistent headers
43126   # can be detected and how.
43127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43128 /* end confdefs.h.  */
43129 #include <ac_nonexistent.h>
43130 _ACEOF
43131 if ac_fn_cxx_try_cpp "$LINENO"; then :
43132   # Broken: success on invalid input.
43133 continue
43134 else
43135   # Passes both tests.
43136 ac_preproc_ok=:
43137 break
43138 fi
43139 rm -f conftest.err conftest.i conftest.$ac_ext
43140
43141 done
43142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
43143 rm -f conftest.i conftest.err conftest.$ac_ext
43144 if $ac_preproc_ok; then :
43145   break
43146 fi
43147
43148     done
43149     ac_cv_prog_CXXCPP=$CXXCPP
43150
43151 fi
43152   CXXCPP=$ac_cv_prog_CXXCPP
43153 else
43154   ac_cv_prog_CXXCPP=$CXXCPP
43155 fi
43156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
43157 $as_echo "$CXXCPP" >&6; }
43158 ac_preproc_ok=false
43159 for ac_cxx_preproc_warn_flag in '' yes
43160 do
43161   # Use a header file that comes with gcc, so configuring glibc
43162   # with a fresh cross-compiler works.
43163   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43164   # <limits.h> exists even on freestanding compilers.
43165   # On the NeXT, cc -E runs the code through the compiler's parser,
43166   # not just through cpp. "Syntax error" is here to catch this case.
43167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43168 /* end confdefs.h.  */
43169 #ifdef __STDC__
43170 # include <limits.h>
43171 #else
43172 # include <assert.h>
43173 #endif
43174                      Syntax error
43175 _ACEOF
43176 if ac_fn_cxx_try_cpp "$LINENO"; then :
43177
43178 else
43179   # Broken: fails on valid input.
43180 continue
43181 fi
43182 rm -f conftest.err conftest.i conftest.$ac_ext
43183
43184   # OK, works on sane cases.  Now check whether nonexistent headers
43185   # can be detected and how.
43186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43187 /* end confdefs.h.  */
43188 #include <ac_nonexistent.h>
43189 _ACEOF
43190 if ac_fn_cxx_try_cpp "$LINENO"; then :
43191   # Broken: success on invalid input.
43192 continue
43193 else
43194   # Passes both tests.
43195 ac_preproc_ok=:
43196 break
43197 fi
43198 rm -f conftest.err conftest.i conftest.$ac_ext
43199
43200 done
43201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
43202 rm -f conftest.i conftest.err conftest.$ac_ext
43203 if $ac_preproc_ok; then :
43204
43205 else
43206   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
43208 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
43209 See \`config.log' for more details" "$LINENO" 5; }
43210 fi
43211
43212 ac_ext=c
43213 ac_cpp='$CPP $CPPFLAGS'
43214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43217
43218 else
43219   _lt_caught_CXX_error=yes
43220 fi
43221
43222 ac_ext=cpp
43223 ac_cpp='$CXXCPP $CPPFLAGS'
43224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43227
43228 archive_cmds_need_lc_CXX=no
43229 allow_undefined_flag_CXX=
43230 always_export_symbols_CXX=no
43231 archive_expsym_cmds_CXX=
43232 compiler_needs_object_CXX=no
43233 export_dynamic_flag_spec_CXX=
43234 hardcode_direct_CXX=no
43235 hardcode_direct_absolute_CXX=no
43236 hardcode_libdir_flag_spec_CXX=
43237 hardcode_libdir_separator_CXX=
43238 hardcode_minus_L_CXX=no
43239 hardcode_shlibpath_var_CXX=unsupported
43240 hardcode_automatic_CXX=no
43241 inherit_rpath_CXX=no
43242 module_cmds_CXX=
43243 module_expsym_cmds_CXX=
43244 link_all_deplibs_CXX=unknown
43245 old_archive_cmds_CXX=$old_archive_cmds
43246 reload_flag_CXX=$reload_flag
43247 reload_cmds_CXX=$reload_cmds
43248 no_undefined_flag_CXX=
43249 whole_archive_flag_spec_CXX=
43250 enable_shared_with_static_runtimes_CXX=no
43251
43252 # Source file extension for C++ test sources.
43253 ac_ext=cpp
43254
43255 # Object file extension for compiled C++ test sources.
43256 objext=o
43257 objext_CXX=$objext
43258
43259 # No sense in running all these tests if we already determined that
43260 # the CXX compiler isn't working.  Some variables (like enable_shared)
43261 # are currently assumed to apply to all compilers on this platform,
43262 # and will be corrupted by setting them based on a non-working compiler.
43263 if test "$_lt_caught_CXX_error" != yes; then
43264   # Code to be used in simple compile tests
43265   lt_simple_compile_test_code="int some_variable = 0;"
43266
43267   # Code to be used in simple link tests
43268   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
43269
43270   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
43271
43272
43273
43274
43275
43276
43277 # If no C compiler was specified, use CC.
43278 LTCC=${LTCC-"$CC"}
43279
43280 # If no C compiler flags were specified, use CFLAGS.
43281 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
43282
43283 # Allow CC to be a program name with arguments.
43284 compiler=$CC
43285
43286
43287   # save warnings/boilerplate of simple test code
43288   ac_outfile=conftest.$ac_objext
43289 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
43290 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
43291 _lt_compiler_boilerplate=`cat conftest.err`
43292 $RM conftest*
43293
43294   ac_outfile=conftest.$ac_objext
43295 echo "$lt_simple_link_test_code" >conftest.$ac_ext
43296 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
43297 _lt_linker_boilerplate=`cat conftest.err`
43298 $RM -r conftest*
43299
43300
43301   # Allow CC to be a program name with arguments.
43302   lt_save_CC=$CC
43303   lt_save_CFLAGS=$CFLAGS
43304   lt_save_LD=$LD
43305   lt_save_GCC=$GCC
43306   GCC=$GXX
43307   lt_save_with_gnu_ld=$with_gnu_ld
43308   lt_save_path_LD=$lt_cv_path_LD
43309   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
43310     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
43311   else
43312     $as_unset lt_cv_prog_gnu_ld
43313   fi
43314   if test -n "${lt_cv_path_LDCXX+set}"; then
43315     lt_cv_path_LD=$lt_cv_path_LDCXX
43316   else
43317     $as_unset lt_cv_path_LD
43318   fi
43319   test -z "${LDCXX+set}" || LD=$LDCXX
43320   CC=${CXX-"c++"}
43321   CFLAGS=$CXXFLAGS
43322   compiler=$CC
43323   compiler_CXX=$CC
43324   for cc_temp in $compiler""; do
43325   case $cc_temp in
43326     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43327     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43328     \-*) ;;
43329     *) break;;
43330   esac
43331 done
43332 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43333
43334
43335   if test -n "$compiler"; then
43336     # We don't want -fno-exception when compiling C++ code, so set the
43337     # no_builtin_flag separately
43338     if test "$GXX" = yes; then
43339       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
43340     else
43341       lt_prog_compiler_no_builtin_flag_CXX=
43342     fi
43343
43344     if test "$GXX" = yes; then
43345       # Set up default GNU C++ configuration
43346
43347
43348
43349 # Check whether --with-gnu-ld was given.
43350 if test "${with_gnu_ld+set}" = set; then :
43351   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
43352 else
43353   with_gnu_ld=no
43354 fi
43355
43356 ac_prog=ld
43357 if test "$GCC" = yes; then
43358   # Check if gcc -print-prog-name=ld gives a path.
43359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
43360 $as_echo_n "checking for ld used by $CC... " >&6; }
43361   case $host in
43362   *-*-mingw*)
43363     # gcc leaves a trailing carriage return which upsets mingw
43364     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
43365   *)
43366     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
43367   esac
43368   case $ac_prog in
43369     # Accept absolute paths.
43370     [\\/]* | ?:[\\/]*)
43371       re_direlt='/[^/][^/]*/\.\./'
43372       # Canonicalize the pathname of ld
43373       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
43374       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
43375         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
43376       done
43377       test -z "$LD" && LD="$ac_prog"
43378       ;;
43379   "")
43380     # If it fails, then pretend we aren't using GCC.
43381     ac_prog=ld
43382     ;;
43383   *)
43384     # If it is relative, then search for the first ld in PATH.
43385     with_gnu_ld=unknown
43386     ;;
43387   esac
43388 elif test "$with_gnu_ld" = yes; then
43389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
43390 $as_echo_n "checking for GNU ld... " >&6; }
43391 else
43392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
43393 $as_echo_n "checking for non-GNU ld... " >&6; }
43394 fi
43395 if ${lt_cv_path_LD+:} false; then :
43396   $as_echo_n "(cached) " >&6
43397 else
43398   if test -z "$LD"; then
43399   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
43400   for ac_dir in $PATH; do
43401     IFS="$lt_save_ifs"
43402     test -z "$ac_dir" && ac_dir=.
43403     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
43404       lt_cv_path_LD="$ac_dir/$ac_prog"
43405       # Check to see if the program is GNU ld.  I'd rather use --version,
43406       # but apparently some variants of GNU ld only accept -v.
43407       # Break only if it was the GNU/non-GNU ld that we prefer.
43408       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
43409       *GNU* | *'with BFD'*)
43410         test "$with_gnu_ld" != no && break
43411         ;;
43412       *)
43413         test "$with_gnu_ld" != yes && break
43414         ;;
43415       esac
43416     fi
43417   done
43418   IFS="$lt_save_ifs"
43419 else
43420   lt_cv_path_LD="$LD" # Let the user override the test with a path.
43421 fi
43422 fi
43423
43424 LD="$lt_cv_path_LD"
43425 if test -n "$LD"; then
43426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
43427 $as_echo "$LD" >&6; }
43428 else
43429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43430 $as_echo "no" >&6; }
43431 fi
43432 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
43433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
43434 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
43435 if ${lt_cv_prog_gnu_ld+:} false; then :
43436   $as_echo_n "(cached) " >&6
43437 else
43438   # I'd rather use --version here, but apparently some GNU lds only accept -v.
43439 case `$LD -v 2>&1 </dev/null` in
43440 *GNU* | *'with BFD'*)
43441   lt_cv_prog_gnu_ld=yes
43442   ;;
43443 *)
43444   lt_cv_prog_gnu_ld=no
43445   ;;
43446 esac
43447 fi
43448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
43449 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
43450 with_gnu_ld=$lt_cv_prog_gnu_ld
43451
43452
43453
43454
43455
43456
43457
43458       # Check if GNU C++ uses GNU ld as the underlying linker, since the
43459       # archiving commands below assume that GNU ld is being used.
43460       if test "$with_gnu_ld" = yes; then
43461         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
43462         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'
43463
43464         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
43465         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
43466
43467         # If archive_cmds runs LD, not CC, wlarc should be empty
43468         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
43469         #     investigate it a little bit more. (MM)
43470         wlarc='${wl}'
43471
43472         # ancient GNU ld didn't support --whole-archive et. al.
43473         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
43474           $GREP 'no-whole-archive' > /dev/null; then
43475           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
43476         else
43477           whole_archive_flag_spec_CXX=
43478         fi
43479       else
43480         with_gnu_ld=no
43481         wlarc=
43482
43483         # A generic and very simple default shared library creation
43484         # command for GNU C++ for the case where it uses the native
43485         # linker, instead of GNU ld.  If possible, this setting should
43486         # overridden to take advantage of the native linker features on
43487         # the platform it is being used on.
43488         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
43489       fi
43490
43491       # Commands to make compiler produce verbose output that lists
43492       # what "hidden" libraries, object files and flags are used when
43493       # linking a shared library.
43494       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
43495
43496     else
43497       GXX=no
43498       with_gnu_ld=no
43499       wlarc=
43500     fi
43501
43502     # PORTME: fill in a description of your system's C++ link characteristics
43503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
43504 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
43505     ld_shlibs_CXX=yes
43506     case $host_os in
43507       aix3*)
43508         # FIXME: insert proper C++ library support
43509         ld_shlibs_CXX=no
43510         ;;
43511       aix[4-9]*)
43512         if test "$host_cpu" = ia64; then
43513           # On IA64, the linker does run time linking by default, so we don't
43514           # have to do anything special.
43515           aix_use_runtimelinking=no
43516           exp_sym_flag='-Bexport'
43517           no_entry_flag=""
43518         else
43519           aix_use_runtimelinking=no
43520
43521           # Test if we are trying to use run time linking or normal
43522           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
43523           # need to do runtime linking.
43524           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
43525             for ld_flag in $LDFLAGS; do
43526               case $ld_flag in
43527               *-brtl*)
43528                 aix_use_runtimelinking=yes
43529                 break
43530                 ;;
43531               esac
43532             done
43533             ;;
43534           esac
43535
43536           exp_sym_flag='-bexport'
43537           no_entry_flag='-bnoentry'
43538         fi
43539
43540         # When large executables or shared objects are built, AIX ld can
43541         # have problems creating the table of contents.  If linking a library
43542         # or program results in "error TOC overflow" add -mminimal-toc to
43543         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
43544         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
43545
43546         archive_cmds_CXX=''
43547         hardcode_direct_CXX=yes
43548         hardcode_direct_absolute_CXX=yes
43549         hardcode_libdir_separator_CXX=':'
43550         link_all_deplibs_CXX=yes
43551         file_list_spec_CXX='${wl}-f,'
43552
43553         if test "$GXX" = yes; then
43554           case $host_os in aix4.[012]|aix4.[012].*)
43555           # We only want to do this on AIX 4.2 and lower, the check
43556           # below for broken collect2 doesn't work under 4.3+
43557           collect2name=`${CC} -print-prog-name=collect2`
43558           if test -f "$collect2name" &&
43559              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
43560           then
43561             # We have reworked collect2
43562             :
43563           else
43564             # We have old collect2
43565             hardcode_direct_CXX=unsupported
43566             # It fails to find uninstalled libraries when the uninstalled
43567             # path is not listed in the libpath.  Setting hardcode_minus_L
43568             # to unsupported forces relinking
43569             hardcode_minus_L_CXX=yes
43570             hardcode_libdir_flag_spec_CXX='-L$libdir'
43571             hardcode_libdir_separator_CXX=
43572           fi
43573           esac
43574           shared_flag='-shared'
43575           if test "$aix_use_runtimelinking" = yes; then
43576             shared_flag="$shared_flag "'${wl}-G'
43577           fi
43578         else
43579           # not using gcc
43580           if test "$host_cpu" = ia64; then
43581           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
43582           # chokes on -Wl,-G. The following line is correct:
43583           shared_flag='-G'
43584           else
43585             if test "$aix_use_runtimelinking" = yes; then
43586               shared_flag='${wl}-G'
43587             else
43588               shared_flag='${wl}-bM:SRE'
43589             fi
43590           fi
43591         fi
43592
43593         export_dynamic_flag_spec_CXX='${wl}-bexpall'
43594         # It seems that -bexpall does not export symbols beginning with
43595         # underscore (_), so it is better to generate a list of symbols to
43596         # export.
43597         always_export_symbols_CXX=yes
43598         if test "$aix_use_runtimelinking" = yes; then
43599           # Warning - without using the other runtime loading flags (-brtl),
43600           # -berok will link without error, but may produce a broken library.
43601           allow_undefined_flag_CXX='-berok'
43602           # Determine the default libpath from the value encoded in an empty
43603           # executable.
43604           if test "${lt_cv_aix_libpath+set}" = set; then
43605   aix_libpath=$lt_cv_aix_libpath
43606 else
43607   if ${lt_cv_aix_libpath__CXX+:} false; then :
43608   $as_echo_n "(cached) " >&6
43609 else
43610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43611 /* end confdefs.h.  */
43612
43613 int
43614 main ()
43615 {
43616
43617   ;
43618   return 0;
43619 }
43620 _ACEOF
43621 if ac_fn_cxx_try_link "$LINENO"; then :
43622
43623   lt_aix_libpath_sed='
43624       /Import File Strings/,/^$/ {
43625           /^0/ {
43626               s/^0  *\([^ ]*\) *$/\1/
43627               p
43628           }
43629       }'
43630   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
43631   # Check for a 64-bit object if we didn't find anything.
43632   if test -z "$lt_cv_aix_libpath__CXX"; then
43633     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
43634   fi
43635 fi
43636 rm -f core conftest.err conftest.$ac_objext \
43637     conftest$ac_exeext conftest.$ac_ext
43638   if test -z "$lt_cv_aix_libpath__CXX"; then
43639     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
43640   fi
43641
43642 fi
43643
43644   aix_libpath=$lt_cv_aix_libpath__CXX
43645 fi
43646
43647           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
43648
43649           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"
43650         else
43651           if test "$host_cpu" = ia64; then
43652             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
43653             allow_undefined_flag_CXX="-z nodefs"
43654             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"
43655           else
43656             # Determine the default libpath from the value encoded in an
43657             # empty executable.
43658             if test "${lt_cv_aix_libpath+set}" = set; then
43659   aix_libpath=$lt_cv_aix_libpath
43660 else
43661   if ${lt_cv_aix_libpath__CXX+:} false; then :
43662   $as_echo_n "(cached) " >&6
43663 else
43664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43665 /* end confdefs.h.  */
43666
43667 int
43668 main ()
43669 {
43670
43671   ;
43672   return 0;
43673 }
43674 _ACEOF
43675 if ac_fn_cxx_try_link "$LINENO"; then :
43676
43677   lt_aix_libpath_sed='
43678       /Import File Strings/,/^$/ {
43679           /^0/ {
43680               s/^0  *\([^ ]*\) *$/\1/
43681               p
43682           }
43683       }'
43684   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
43685   # Check for a 64-bit object if we didn't find anything.
43686   if test -z "$lt_cv_aix_libpath__CXX"; then
43687     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
43688   fi
43689 fi
43690 rm -f core conftest.err conftest.$ac_objext \
43691     conftest$ac_exeext conftest.$ac_ext
43692   if test -z "$lt_cv_aix_libpath__CXX"; then
43693     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
43694   fi
43695
43696 fi
43697
43698   aix_libpath=$lt_cv_aix_libpath__CXX
43699 fi
43700
43701             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
43702             # Warning - without using the other run time loading flags,
43703             # -berok will link without error, but may produce a broken library.
43704             no_undefined_flag_CXX=' ${wl}-bernotok'
43705             allow_undefined_flag_CXX=' ${wl}-berok'
43706             if test "$with_gnu_ld" = yes; then
43707               # We only use this code for GNU lds that support --whole-archive.
43708               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
43709             else
43710               # Exported symbols can be pulled into shared objects from archives
43711               whole_archive_flag_spec_CXX='$convenience'
43712             fi
43713             archive_cmds_need_lc_CXX=yes
43714             # This is similar to how AIX traditionally builds its shared
43715             # libraries.
43716             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'
43717           fi
43718         fi
43719         ;;
43720
43721       beos*)
43722         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
43723           allow_undefined_flag_CXX=unsupported
43724           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
43725           # support --undefined.  This deserves some investigation.  FIXME
43726           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43727         else
43728           ld_shlibs_CXX=no
43729         fi
43730         ;;
43731
43732       chorus*)
43733         case $cc_basename in
43734           *)
43735           # FIXME: insert proper C++ library support
43736           ld_shlibs_CXX=no
43737           ;;
43738         esac
43739         ;;
43740
43741       cygwin* | mingw* | pw32* | cegcc*)
43742         case $GXX,$cc_basename in
43743         ,cl* | no,cl*)
43744           # Native MSVC
43745           # hardcode_libdir_flag_spec is actually meaningless, as there is
43746           # no search path for DLLs.
43747           hardcode_libdir_flag_spec_CXX=' '
43748           allow_undefined_flag_CXX=unsupported
43749           always_export_symbols_CXX=yes
43750           file_list_spec_CXX='@'
43751           # Tell ltmain to make .lib files, not .a files.
43752           libext=lib
43753           # Tell ltmain to make .dll files, not .so files.
43754           shrext_cmds=".dll"
43755           # FIXME: Setting linknames here is a bad hack.
43756           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
43757           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
43758               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
43759             else
43760               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
43761             fi~
43762             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
43763             linknames='
43764           # The linker will not automatically build a static lib if we build a DLL.
43765           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
43766           enable_shared_with_static_runtimes_CXX=yes
43767           # Don't use ranlib
43768           old_postinstall_cmds_CXX='chmod 644 $oldlib'
43769           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
43770             lt_tool_outputfile="@TOOL_OUTPUT@"~
43771             case $lt_outputfile in
43772               *.exe|*.EXE) ;;
43773               *)
43774                 lt_outputfile="$lt_outputfile.exe"
43775                 lt_tool_outputfile="$lt_tool_outputfile.exe"
43776                 ;;
43777             esac~
43778             func_to_tool_file "$lt_outputfile"~
43779             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
43780               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
43781               $RM "$lt_outputfile.manifest";
43782             fi'
43783           ;;
43784         *)
43785           # g++
43786           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
43787           # as there is no search path for DLLs.
43788           hardcode_libdir_flag_spec_CXX='-L$libdir'
43789           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
43790           allow_undefined_flag_CXX=unsupported
43791           always_export_symbols_CXX=no
43792           enable_shared_with_static_runtimes_CXX=yes
43793
43794           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
43795             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'
43796             # If the export-symbols file already is a .def file (1st line
43797             # is EXPORTS), use it as is; otherwise, prepend...
43798             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
43799               cp $export_symbols $output_objdir/$soname.def;
43800             else
43801               echo EXPORTS > $output_objdir/$soname.def;
43802               cat $export_symbols >> $output_objdir/$soname.def;
43803             fi~
43804             $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'
43805           else
43806             ld_shlibs_CXX=no
43807           fi
43808           ;;
43809         esac
43810         ;;
43811       darwin* | rhapsody*)
43812
43813
43814   archive_cmds_need_lc_CXX=no
43815   hardcode_direct_CXX=no
43816   hardcode_automatic_CXX=yes
43817   hardcode_shlibpath_var_CXX=unsupported
43818   if test "$lt_cv_ld_force_load" = "yes"; then
43819     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\"`'
43820
43821   else
43822     whole_archive_flag_spec_CXX=''
43823   fi
43824   link_all_deplibs_CXX=yes
43825   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
43826   case $cc_basename in
43827      ifort*) _lt_dar_can_shared=yes ;;
43828      *) _lt_dar_can_shared=$GCC ;;
43829   esac
43830   if test "$_lt_dar_can_shared" = "yes"; then
43831     output_verbose_link_cmd=func_echo_all
43832     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}"
43833     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
43834     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}"
43835     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}"
43836        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
43837       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}"
43838       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}"
43839     fi
43840
43841   else
43842   ld_shlibs_CXX=no
43843   fi
43844
43845         ;;
43846
43847       dgux*)
43848         case $cc_basename in
43849           ec++*)
43850             # FIXME: insert proper C++ library support
43851             ld_shlibs_CXX=no
43852             ;;
43853           ghcx*)
43854             # Green Hills C++ Compiler
43855             # FIXME: insert proper C++ library support
43856             ld_shlibs_CXX=no
43857             ;;
43858           *)
43859             # FIXME: insert proper C++ library support
43860             ld_shlibs_CXX=no
43861             ;;
43862         esac
43863         ;;
43864
43865       freebsd2.*)
43866         # C++ shared libraries reported to be fairly broken before
43867         # switch to ELF
43868         ld_shlibs_CXX=no
43869         ;;
43870
43871       freebsd-elf*)
43872         archive_cmds_need_lc_CXX=no
43873         ;;
43874
43875       freebsd* | dragonfly*)
43876         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
43877         # conventions
43878         ld_shlibs_CXX=yes
43879         ;;
43880
43881       haiku*)
43882         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43883         link_all_deplibs_CXX=yes
43884         ;;
43885
43886       hpux9*)
43887         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
43888         hardcode_libdir_separator_CXX=:
43889         export_dynamic_flag_spec_CXX='${wl}-E'
43890         hardcode_direct_CXX=yes
43891         hardcode_minus_L_CXX=yes # Not in the search PATH,
43892                                              # but as the default
43893                                              # location of the library.
43894
43895         case $cc_basename in
43896           CC*)
43897             # FIXME: insert proper C++ library support
43898             ld_shlibs_CXX=no
43899             ;;
43900           aCC*)
43901             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'
43902             # Commands to make compiler produce verbose output that lists
43903             # what "hidden" libraries, object files and flags are used when
43904             # linking a shared library.
43905             #
43906             # There doesn't appear to be a way to prevent this compiler from
43907             # explicitly linking system object files so we need to strip them
43908             # from the output so that they don't get included in the library
43909             # dependencies.
43910             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"'
43911             ;;
43912           *)
43913             if test "$GXX" = yes; then
43914               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'
43915             else
43916               # FIXME: insert proper C++ library support
43917               ld_shlibs_CXX=no
43918             fi
43919             ;;
43920         esac
43921         ;;
43922
43923       hpux10*|hpux11*)
43924         if test $with_gnu_ld = no; then
43925           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
43926           hardcode_libdir_separator_CXX=:
43927
43928           case $host_cpu in
43929             hppa*64*|ia64*)
43930               ;;
43931             *)
43932               export_dynamic_flag_spec_CXX='${wl}-E'
43933               ;;
43934           esac
43935         fi
43936         case $host_cpu in
43937           hppa*64*|ia64*)
43938             hardcode_direct_CXX=no
43939             hardcode_shlibpath_var_CXX=no
43940             ;;
43941           *)
43942             hardcode_direct_CXX=yes
43943             hardcode_direct_absolute_CXX=yes
43944             hardcode_minus_L_CXX=yes # Not in the search PATH,
43945                                                  # but as the default
43946                                                  # location of the library.
43947             ;;
43948         esac
43949
43950         case $cc_basename in
43951           CC*)
43952             # FIXME: insert proper C++ library support
43953             ld_shlibs_CXX=no
43954             ;;
43955           aCC*)
43956             case $host_cpu in
43957               hppa*64*)
43958                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43959                 ;;
43960               ia64*)
43961                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43962                 ;;
43963               *)
43964                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43965                 ;;
43966             esac
43967             # Commands to make compiler produce verbose output that lists
43968             # what "hidden" libraries, object files and flags are used when
43969             # linking a shared library.
43970             #
43971             # There doesn't appear to be a way to prevent this compiler from
43972             # explicitly linking system object files so we need to strip them
43973             # from the output so that they don't get included in the library
43974             # dependencies.
43975             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"'
43976             ;;
43977           *)
43978             if test "$GXX" = yes; then
43979               if test $with_gnu_ld = no; then
43980                 case $host_cpu in
43981                   hppa*64*)
43982                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43983                     ;;
43984                   ia64*)
43985                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43986                     ;;
43987                   *)
43988                     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'
43989                     ;;
43990                 esac
43991               fi
43992             else
43993               # FIXME: insert proper C++ library support
43994               ld_shlibs_CXX=no
43995             fi
43996             ;;
43997         esac
43998         ;;
43999
44000       interix[3-9]*)
44001         hardcode_direct_CXX=no
44002         hardcode_shlibpath_var_CXX=no
44003         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
44004         export_dynamic_flag_spec_CXX='${wl}-E'
44005         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
44006         # Instead, shared libraries are loaded at an image base (0x10000000 by
44007         # default) and relocated if they conflict, which is a slow very memory
44008         # consuming and fragmenting process.  To avoid this, we pick a random,
44009         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
44010         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
44011         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'
44012         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'
44013         ;;
44014       irix5* | irix6*)
44015         case $cc_basename in
44016           CC*)
44017             # SGI C++
44018             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'
44019
44020             # Archives containing C++ object files must be created using
44021             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
44022             # necessary to make sure instantiated templates are included
44023             # in the archive.
44024             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
44025             ;;
44026           *)
44027             if test "$GXX" = yes; then
44028               if test "$with_gnu_ld" = no; then
44029                 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'
44030               else
44031                 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'
44032               fi
44033             fi
44034             link_all_deplibs_CXX=yes
44035             ;;
44036         esac
44037         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
44038         hardcode_libdir_separator_CXX=:
44039         inherit_rpath_CXX=yes
44040         ;;
44041
44042       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
44043         case $cc_basename in
44044           KCC*)
44045             # Kuck and Associates, Inc. (KAI) C++ Compiler
44046
44047             # KCC will only create a shared library if the output file
44048             # ends with ".so" (or ".sl" for HP-UX), so rename the library
44049             # to its proper name (with version) after linking.
44050             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'
44051             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'
44052             # Commands to make compiler produce verbose output that lists
44053             # what "hidden" libraries, object files and flags are used when
44054             # linking a shared library.
44055             #
44056             # There doesn't appear to be a way to prevent this compiler from
44057             # explicitly linking system object files so we need to strip them
44058             # from the output so that they don't get included in the library
44059             # dependencies.
44060             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"'
44061
44062             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
44063             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
44064
44065             # Archives containing C++ object files must be created using
44066             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
44067             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
44068             ;;
44069           icpc* | ecpc* )
44070             # Intel C++
44071             with_gnu_ld=yes
44072             # version 8.0 and above of icpc choke on multiply defined symbols
44073             # if we add $predep_objects and $postdep_objects, however 7.1 and
44074             # earlier do not add the objects themselves.
44075             case `$CC -V 2>&1` in
44076               *"Version 7."*)
44077                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
44078                 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'
44079                 ;;
44080               *)  # Version 8.0 or newer
44081                 tmp_idyn=
44082                 case $host_cpu in
44083                   ia64*) tmp_idyn=' -i_dynamic';;
44084                 esac
44085                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
44086                 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'
44087                 ;;
44088             esac
44089             archive_cmds_need_lc_CXX=no
44090             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
44091             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
44092             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
44093             ;;
44094           pgCC* | pgcpp*)
44095             # Portland Group C++ compiler
44096             case `$CC -V` in
44097             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
44098               prelink_cmds_CXX='tpldir=Template.dir~
44099                 rm -rf $tpldir~
44100                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
44101                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
44102               old_archive_cmds_CXX='tpldir=Template.dir~
44103                 rm -rf $tpldir~
44104                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
44105                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
44106                 $RANLIB $oldlib'
44107               archive_cmds_CXX='tpldir=Template.dir~
44108                 rm -rf $tpldir~
44109                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
44110                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
44111               archive_expsym_cmds_CXX='tpldir=Template.dir~
44112                 rm -rf $tpldir~
44113                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
44114                 $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'
44115               ;;
44116             *) # Version 6 and above use weak symbols
44117               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
44118               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'
44119               ;;
44120             esac
44121
44122             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
44123             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
44124             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'
44125             ;;
44126           cxx*)
44127             # Compaq C++
44128             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
44129             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'
44130
44131             runpath_var=LD_RUN_PATH
44132             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
44133             hardcode_libdir_separator_CXX=:
44134
44135             # Commands to make compiler produce verbose output that lists
44136             # what "hidden" libraries, object files and flags are used when
44137             # linking a shared library.
44138             #
44139             # There doesn't appear to be a way to prevent this compiler from
44140             # explicitly linking system object files so we need to strip them
44141             # from the output so that they don't get included in the library
44142             # dependencies.
44143             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'
44144             ;;
44145           xl* | mpixl* | bgxl*)
44146             # IBM XL 8.0 on PPC, with GNU ld
44147             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
44148             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
44149             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
44150             if test "x$supports_anon_versioning" = xyes; then
44151               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
44152                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
44153                 echo "local: *; };" >> $output_objdir/$libname.ver~
44154                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
44155             fi
44156             ;;
44157           *)
44158             case `$CC -V 2>&1 | sed 5q` in
44159             *Sun\ C*)
44160               # Sun C++ 5.9
44161               no_undefined_flag_CXX=' -zdefs'
44162               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
44163               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'
44164               hardcode_libdir_flag_spec_CXX='-R$libdir'
44165               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'
44166               compiler_needs_object_CXX=yes
44167
44168               # Not sure whether something based on
44169               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
44170               # would be better.
44171               output_verbose_link_cmd='func_echo_all'
44172
44173               # Archives containing C++ object files must be created using
44174               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
44175               # necessary to make sure instantiated templates are included
44176               # in the archive.
44177               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
44178               ;;
44179             esac
44180             ;;
44181         esac
44182         ;;
44183
44184       lynxos*)
44185         # FIXME: insert proper C++ library support
44186         ld_shlibs_CXX=no
44187         ;;
44188
44189       m88k*)
44190         # FIXME: insert proper C++ library support
44191         ld_shlibs_CXX=no
44192         ;;
44193
44194       mvs*)
44195         case $cc_basename in
44196           cxx*)
44197             # FIXME: insert proper C++ library support
44198             ld_shlibs_CXX=no
44199             ;;
44200           *)
44201             # FIXME: insert proper C++ library support
44202             ld_shlibs_CXX=no
44203             ;;
44204         esac
44205         ;;
44206
44207       netbsd*)
44208         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
44209           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
44210           wlarc=
44211           hardcode_libdir_flag_spec_CXX='-R$libdir'
44212           hardcode_direct_CXX=yes
44213           hardcode_shlibpath_var_CXX=no
44214         fi
44215         # Workaround some broken pre-1.5 toolchains
44216         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
44217         ;;
44218
44219       *nto* | *qnx*)
44220         ld_shlibs_CXX=yes
44221         ;;
44222
44223       openbsd2*)
44224         # C++ shared libraries are fairly broken
44225         ld_shlibs_CXX=no
44226         ;;
44227
44228       openbsd*)
44229         if test -f /usr/libexec/ld.so; then
44230           hardcode_direct_CXX=yes
44231           hardcode_shlibpath_var_CXX=no
44232           hardcode_direct_absolute_CXX=yes
44233           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
44234           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
44235           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
44236             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
44237             export_dynamic_flag_spec_CXX='${wl}-E'
44238             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
44239           fi
44240           output_verbose_link_cmd=func_echo_all
44241         else
44242           ld_shlibs_CXX=no
44243         fi
44244         ;;
44245
44246       osf3* | osf4* | osf5*)
44247         case $cc_basename in
44248           KCC*)
44249             # Kuck and Associates, Inc. (KAI) C++ Compiler
44250
44251             # KCC will only create a shared library if the output file
44252             # ends with ".so" (or ".sl" for HP-UX), so rename the library
44253             # to its proper name (with version) after linking.
44254             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'
44255
44256             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
44257             hardcode_libdir_separator_CXX=:
44258
44259             # Archives containing C++ object files must be created using
44260             # the KAI C++ compiler.
44261             case $host in
44262               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
44263               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
44264             esac
44265             ;;
44266           RCC*)
44267             # Rational C++ 2.4.1
44268             # FIXME: insert proper C++ library support
44269             ld_shlibs_CXX=no
44270             ;;
44271           cxx*)
44272             case $host in
44273               osf3*)
44274                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
44275                 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'
44276                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
44277                 ;;
44278               *)
44279                 allow_undefined_flag_CXX=' -expect_unresolved \*'
44280                 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'
44281                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
44282                   echo "-hidden">> $lib.exp~
44283                   $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~
44284                   $RM $lib.exp'
44285                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
44286                 ;;
44287             esac
44288
44289             hardcode_libdir_separator_CXX=:
44290
44291             # Commands to make compiler produce verbose output that lists
44292             # what "hidden" libraries, object files and flags are used when
44293             # linking a shared library.
44294             #
44295             # There doesn't appear to be a way to prevent this compiler from
44296             # explicitly linking system object files so we need to strip them
44297             # from the output so that they don't get included in the library
44298             # dependencies.
44299             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"'
44300             ;;
44301           *)
44302             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
44303               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
44304               case $host in
44305                 osf3*)
44306                   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'
44307                   ;;
44308                 *)
44309                   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'
44310                   ;;
44311               esac
44312
44313               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
44314               hardcode_libdir_separator_CXX=:
44315
44316               # Commands to make compiler produce verbose output that lists
44317               # what "hidden" libraries, object files and flags are used when
44318               # linking a shared library.
44319               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
44320
44321             else
44322               # FIXME: insert proper C++ library support
44323               ld_shlibs_CXX=no
44324             fi
44325             ;;
44326         esac
44327         ;;
44328
44329       psos*)
44330         # FIXME: insert proper C++ library support
44331         ld_shlibs_CXX=no
44332         ;;
44333
44334       sunos4*)
44335         case $cc_basename in
44336           CC*)
44337             # Sun C++ 4.x
44338             # FIXME: insert proper C++ library support
44339             ld_shlibs_CXX=no
44340             ;;
44341           lcc*)
44342             # Lucid
44343             # FIXME: insert proper C++ library support
44344             ld_shlibs_CXX=no
44345             ;;
44346           *)
44347             # FIXME: insert proper C++ library support
44348             ld_shlibs_CXX=no
44349             ;;
44350         esac
44351         ;;
44352
44353       solaris*)
44354         case $cc_basename in
44355           CC* | sunCC*)
44356             # Sun C++ 4.2, 5.x and Centerline C++
44357             archive_cmds_need_lc_CXX=yes
44358             no_undefined_flag_CXX=' -zdefs'
44359             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
44360             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
44361               $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'
44362
44363             hardcode_libdir_flag_spec_CXX='-R$libdir'
44364             hardcode_shlibpath_var_CXX=no
44365             case $host_os in
44366               solaris2.[0-5] | solaris2.[0-5].*) ;;
44367               *)
44368                 # The compiler driver will combine and reorder linker options,
44369                 # but understands `-z linker_flag'.
44370                 # Supported since Solaris 2.6 (maybe 2.5.1?)
44371                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
44372                 ;;
44373             esac
44374             link_all_deplibs_CXX=yes
44375
44376             output_verbose_link_cmd='func_echo_all'
44377
44378             # Archives containing C++ object files must be created using
44379             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
44380             # necessary to make sure instantiated templates are included
44381             # in the archive.
44382             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
44383             ;;
44384           gcx*)
44385             # Green Hills C++ Compiler
44386             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
44387
44388             # The C++ compiler must be used to create the archive.
44389             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
44390             ;;
44391           *)
44392             # GNU C++ compiler with Solaris linker
44393             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
44394               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
44395               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
44396                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
44397                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
44398                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
44399
44400                 # Commands to make compiler produce verbose output that lists
44401                 # what "hidden" libraries, object files and flags are used when
44402                 # linking a shared library.
44403                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
44404               else
44405                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
44406                 # platform.
44407                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
44408                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
44409                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
44410
44411                 # Commands to make compiler produce verbose output that lists
44412                 # what "hidden" libraries, object files and flags are used when
44413                 # linking a shared library.
44414                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
44415               fi
44416
44417               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
44418               case $host_os in
44419                 solaris2.[0-5] | solaris2.[0-5].*) ;;
44420                 *)
44421                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
44422                   ;;
44423               esac
44424             fi
44425             ;;
44426         esac
44427         ;;
44428
44429     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
44430       no_undefined_flag_CXX='${wl}-z,text'
44431       archive_cmds_need_lc_CXX=no
44432       hardcode_shlibpath_var_CXX=no
44433       runpath_var='LD_RUN_PATH'
44434
44435       case $cc_basename in
44436         CC*)
44437           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44438           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44439           ;;
44440         *)
44441           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44442           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44443           ;;
44444       esac
44445       ;;
44446
44447       sysv5* | sco3.2v5* | sco5v6*)
44448         # Note: We can NOT use -z defs as we might desire, because we do not
44449         # link with -lc, and that would cause any symbols used from libc to
44450         # always be unresolved, which means just about no library would
44451         # ever link correctly.  If we're not using GNU ld we use -z text
44452         # though, which does catch some bad symbols but isn't as heavy-handed
44453         # as -z defs.
44454         no_undefined_flag_CXX='${wl}-z,text'
44455         allow_undefined_flag_CXX='${wl}-z,nodefs'
44456         archive_cmds_need_lc_CXX=no
44457         hardcode_shlibpath_var_CXX=no
44458         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
44459         hardcode_libdir_separator_CXX=':'
44460         link_all_deplibs_CXX=yes
44461         export_dynamic_flag_spec_CXX='${wl}-Bexport'
44462         runpath_var='LD_RUN_PATH'
44463
44464         case $cc_basename in
44465           CC*)
44466             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44467             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44468             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
44469               '"$old_archive_cmds_CXX"
44470             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
44471               '"$reload_cmds_CXX"
44472             ;;
44473           *)
44474             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44475             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44476             ;;
44477         esac
44478       ;;
44479
44480       tandem*)
44481         case $cc_basename in
44482           NCC*)
44483             # NonStop-UX NCC 3.20
44484             # FIXME: insert proper C++ library support
44485             ld_shlibs_CXX=no
44486             ;;
44487           *)
44488             # FIXME: insert proper C++ library support
44489             ld_shlibs_CXX=no
44490             ;;
44491         esac
44492         ;;
44493
44494       vxworks*)
44495         # FIXME: insert proper C++ library support
44496         ld_shlibs_CXX=no
44497         ;;
44498
44499       *)
44500         # FIXME: insert proper C++ library support
44501         ld_shlibs_CXX=no
44502         ;;
44503     esac
44504
44505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
44506 $as_echo "$ld_shlibs_CXX" >&6; }
44507     test "$ld_shlibs_CXX" = no && can_build_shared=no
44508
44509     GCC_CXX="$GXX"
44510     LD_CXX="$LD"
44511
44512     ## CAVEAT EMPTOR:
44513     ## There is no encapsulation within the following macros, do not change
44514     ## the running order or otherwise move them around unless you know exactly
44515     ## what you are doing...
44516     # Dependencies to place before and after the object being linked:
44517 predep_objects_CXX=
44518 postdep_objects_CXX=
44519 predeps_CXX=
44520 postdeps_CXX=
44521 compiler_lib_search_path_CXX=
44522
44523 cat > conftest.$ac_ext <<_LT_EOF
44524 class Foo
44525 {
44526 public:
44527   Foo (void) { a = 0; }
44528 private:
44529   int a;
44530 };
44531 _LT_EOF
44532
44533
44534 _lt_libdeps_save_CFLAGS=$CFLAGS
44535 case "$CC $CFLAGS " in #(
44536 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
44537 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
44538 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
44539 esac
44540
44541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
44542   (eval $ac_compile) 2>&5
44543   ac_status=$?
44544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44545   test $ac_status = 0; }; then
44546   # Parse the compiler output and extract the necessary
44547   # objects, libraries and library flags.
44548
44549   # Sentinel used to keep track of whether or not we are before
44550   # the conftest object file.
44551   pre_test_object_deps_done=no
44552
44553   for p in `eval "$output_verbose_link_cmd"`; do
44554     case ${prev}${p} in
44555
44556     -L* | -R* | -l*)
44557        # Some compilers place space between "-{L,R}" and the path.
44558        # Remove the space.
44559        if test $p = "-L" ||
44560           test $p = "-R"; then
44561          prev=$p
44562          continue
44563        fi
44564
44565        # Expand the sysroot to ease extracting the directories later.
44566        if test -z "$prev"; then
44567          case $p in
44568          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
44569          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
44570          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
44571          esac
44572        fi
44573        case $p in
44574        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
44575        esac
44576        if test "$pre_test_object_deps_done" = no; then
44577          case ${prev} in
44578          -L | -R)
44579            # Internal compiler library paths should come after those
44580            # provided the user.  The postdeps already come after the
44581            # user supplied libs so there is no need to process them.
44582            if test -z "$compiler_lib_search_path_CXX"; then
44583              compiler_lib_search_path_CXX="${prev}${p}"
44584            else
44585              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
44586            fi
44587            ;;
44588          # The "-l" case would never come before the object being
44589          # linked, so don't bother handling this case.
44590          esac
44591        else
44592          if test -z "$postdeps_CXX"; then
44593            postdeps_CXX="${prev}${p}"
44594          else
44595            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
44596          fi
44597        fi
44598        prev=
44599        ;;
44600
44601     *.lto.$objext) ;; # Ignore GCC LTO objects
44602     *.$objext)
44603        # This assumes that the test object file only shows up
44604        # once in the compiler output.
44605        if test "$p" = "conftest.$objext"; then
44606          pre_test_object_deps_done=yes
44607          continue
44608        fi
44609
44610        if test "$pre_test_object_deps_done" = no; then
44611          if test -z "$predep_objects_CXX"; then
44612            predep_objects_CXX="$p"
44613          else
44614            predep_objects_CXX="$predep_objects_CXX $p"
44615          fi
44616        else
44617          if test -z "$postdep_objects_CXX"; then
44618            postdep_objects_CXX="$p"
44619          else
44620            postdep_objects_CXX="$postdep_objects_CXX $p"
44621          fi
44622        fi
44623        ;;
44624
44625     *) ;; # Ignore the rest.
44626
44627     esac
44628   done
44629
44630   # Clean up.
44631   rm -f a.out a.exe
44632 else
44633   echo "libtool.m4: error: problem compiling CXX test program"
44634 fi
44635
44636 $RM -f confest.$objext
44637 CFLAGS=$_lt_libdeps_save_CFLAGS
44638
44639 # PORTME: override above test on systems where it is broken
44640 case $host_os in
44641 interix[3-9]*)
44642   # Interix 3.5 installs completely hosed .la files for C++, so rather than
44643   # hack all around it, let's just trust "g++" to DTRT.
44644   predep_objects_CXX=
44645   postdep_objects_CXX=
44646   postdeps_CXX=
44647   ;;
44648
44649 linux*)
44650   case `$CC -V 2>&1 | sed 5q` in
44651   *Sun\ C*)
44652     # Sun C++ 5.9
44653
44654     # The more standards-conforming stlport4 library is
44655     # incompatible with the Cstd library. Avoid specifying
44656     # it if it's in CXXFLAGS. Ignore libCrun as
44657     # -library=stlport4 depends on it.
44658     case " $CXX $CXXFLAGS " in
44659     *" -library=stlport4 "*)
44660       solaris_use_stlport4=yes
44661       ;;
44662     esac
44663
44664     if test "$solaris_use_stlport4" != yes; then
44665       postdeps_CXX='-library=Cstd -library=Crun'
44666     fi
44667     ;;
44668   esac
44669   ;;
44670
44671 solaris*)
44672   case $cc_basename in
44673   CC* | sunCC*)
44674     # The more standards-conforming stlport4 library is
44675     # incompatible with the Cstd library. Avoid specifying
44676     # it if it's in CXXFLAGS. Ignore libCrun as
44677     # -library=stlport4 depends on it.
44678     case " $CXX $CXXFLAGS " in
44679     *" -library=stlport4 "*)
44680       solaris_use_stlport4=yes
44681       ;;
44682     esac
44683
44684     # Adding this requires a known-good setup of shared libraries for
44685     # Sun compiler versions before 5.6, else PIC objects from an old
44686     # archive will be linked into the output, leading to subtle bugs.
44687     if test "$solaris_use_stlport4" != yes; then
44688       postdeps_CXX='-library=Cstd -library=Crun'
44689     fi
44690     ;;
44691   esac
44692   ;;
44693 esac
44694
44695
44696 case " $postdeps_CXX " in
44697 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
44698 esac
44699  compiler_lib_search_dirs_CXX=
44700 if test -n "${compiler_lib_search_path_CXX}"; then
44701  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
44702 fi
44703
44704
44705
44706
44707
44708
44709
44710
44711
44712
44713
44714
44715
44716
44717
44718
44719
44720
44721
44722
44723
44724
44725
44726
44727
44728
44729
44730
44731
44732
44733
44734     lt_prog_compiler_wl_CXX=
44735 lt_prog_compiler_pic_CXX=
44736 lt_prog_compiler_static_CXX=
44737
44738
44739   # C++ specific cases for pic, static, wl, etc.
44740   if test "$GXX" = yes; then
44741     lt_prog_compiler_wl_CXX='-Wl,'
44742     lt_prog_compiler_static_CXX='-static'
44743
44744     case $host_os in
44745     aix*)
44746       # All AIX code is PIC.
44747       if test "$host_cpu" = ia64; then
44748         # AIX 5 now supports IA64 processor
44749         lt_prog_compiler_static_CXX='-Bstatic'
44750       fi
44751       ;;
44752
44753     amigaos*)
44754       case $host_cpu in
44755       powerpc)
44756             # see comment about AmigaOS4 .so support
44757             lt_prog_compiler_pic_CXX='-fPIC'
44758         ;;
44759       m68k)
44760             # FIXME: we need at least 68020 code to build shared libraries, but
44761             # adding the `-m68020' flag to GCC prevents building anything better,
44762             # like `-m68040'.
44763             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
44764         ;;
44765       esac
44766       ;;
44767
44768     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
44769       # PIC is the default for these OSes.
44770       ;;
44771     mingw* | cygwin* | os2* | pw32* | cegcc*)
44772       # This hack is so that the source file can tell whether it is being
44773       # built for inclusion in a dll (and should export symbols for example).
44774       # Although the cygwin gcc ignores -fPIC, still need this for old-style
44775       # (--disable-auto-import) libraries
44776       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
44777       ;;
44778     darwin* | rhapsody*)
44779       # PIC is the default on this platform
44780       # Common symbols not allowed in MH_DYLIB files
44781       lt_prog_compiler_pic_CXX='-fno-common'
44782       ;;
44783     *djgpp*)
44784       # DJGPP does not support shared libraries at all
44785       lt_prog_compiler_pic_CXX=
44786       ;;
44787     haiku*)
44788       # PIC is the default for Haiku.
44789       # The "-static" flag exists, but is broken.
44790       lt_prog_compiler_static_CXX=
44791       ;;
44792     interix[3-9]*)
44793       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
44794       # Instead, we relocate shared libraries at runtime.
44795       ;;
44796     sysv4*MP*)
44797       if test -d /usr/nec; then
44798         lt_prog_compiler_pic_CXX=-Kconform_pic
44799       fi
44800       ;;
44801     hpux*)
44802       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
44803       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
44804       # sets the default TLS model and affects inlining.
44805       case $host_cpu in
44806       hppa*64*)
44807         ;;
44808       *)
44809         lt_prog_compiler_pic_CXX='-fPIC'
44810         ;;
44811       esac
44812       ;;
44813     *qnx* | *nto*)
44814       # QNX uses GNU C++, but need to define -shared option too, otherwise
44815       # it will coredump.
44816       lt_prog_compiler_pic_CXX='-fPIC -shared'
44817       ;;
44818     *)
44819       lt_prog_compiler_pic_CXX='-fPIC'
44820       ;;
44821     esac
44822   else
44823     case $host_os in
44824       aix[4-9]*)
44825         # All AIX code is PIC.
44826         if test "$host_cpu" = ia64; then
44827           # AIX 5 now supports IA64 processor
44828           lt_prog_compiler_static_CXX='-Bstatic'
44829         else
44830           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
44831         fi
44832         ;;
44833       chorus*)
44834         case $cc_basename in
44835         cxch68*)
44836           # Green Hills C++ Compiler
44837           # _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"
44838           ;;
44839         esac
44840         ;;
44841       mingw* | cygwin* | os2* | pw32* | cegcc*)
44842         # This hack is so that the source file can tell whether it is being
44843         # built for inclusion in a dll (and should export symbols for example).
44844         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
44845         ;;
44846       dgux*)
44847         case $cc_basename in
44848           ec++*)
44849             lt_prog_compiler_pic_CXX='-KPIC'
44850             ;;
44851           ghcx*)
44852             # Green Hills C++ Compiler
44853             lt_prog_compiler_pic_CXX='-pic'
44854             ;;
44855           *)
44856             ;;
44857         esac
44858         ;;
44859       freebsd* | dragonfly*)
44860         # FreeBSD uses GNU C++
44861         ;;
44862       hpux9* | hpux10* | hpux11*)
44863         case $cc_basename in
44864           CC*)
44865             lt_prog_compiler_wl_CXX='-Wl,'
44866             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
44867             if test "$host_cpu" != ia64; then
44868               lt_prog_compiler_pic_CXX='+Z'
44869             fi
44870             ;;
44871           aCC*)
44872             lt_prog_compiler_wl_CXX='-Wl,'
44873             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
44874             case $host_cpu in
44875             hppa*64*|ia64*)
44876               # +Z the default
44877               ;;
44878             *)
44879               lt_prog_compiler_pic_CXX='+Z'
44880               ;;
44881             esac
44882             ;;
44883           *)
44884             ;;
44885         esac
44886         ;;
44887       interix*)
44888         # This is c89, which is MS Visual C++ (no shared libs)
44889         # Anyone wants to do a port?
44890         ;;
44891       irix5* | irix6* | nonstopux*)
44892         case $cc_basename in
44893           CC*)
44894             lt_prog_compiler_wl_CXX='-Wl,'
44895             lt_prog_compiler_static_CXX='-non_shared'
44896             # CC pic flag -KPIC is the default.
44897             ;;
44898           *)
44899             ;;
44900         esac
44901         ;;
44902       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
44903         case $cc_basename in
44904           KCC*)
44905             # KAI C++ Compiler
44906             lt_prog_compiler_wl_CXX='--backend -Wl,'
44907             lt_prog_compiler_pic_CXX='-fPIC'
44908             ;;
44909           ecpc* )
44910             # old Intel C++ for x86_64 which still supported -KPIC.
44911             lt_prog_compiler_wl_CXX='-Wl,'
44912             lt_prog_compiler_pic_CXX='-KPIC'
44913             lt_prog_compiler_static_CXX='-static'
44914             ;;
44915           icpc* )
44916             # Intel C++, used to be incompatible with GCC.
44917             # ICC 10 doesn't accept -KPIC any more.
44918             lt_prog_compiler_wl_CXX='-Wl,'
44919             lt_prog_compiler_pic_CXX='-fPIC'
44920             lt_prog_compiler_static_CXX='-static'
44921             ;;
44922           pgCC* | pgcpp*)
44923             # Portland Group C++ compiler
44924             lt_prog_compiler_wl_CXX='-Wl,'
44925             lt_prog_compiler_pic_CXX='-fpic'
44926             lt_prog_compiler_static_CXX='-Bstatic'
44927             ;;
44928           cxx*)
44929             # Compaq C++
44930             # Make sure the PIC flag is empty.  It appears that all Alpha
44931             # Linux and Compaq Tru64 Unix objects are PIC.
44932             lt_prog_compiler_pic_CXX=
44933             lt_prog_compiler_static_CXX='-non_shared'
44934             ;;
44935           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
44936             # IBM XL 8.0, 9.0 on PPC and BlueGene
44937             lt_prog_compiler_wl_CXX='-Wl,'
44938             lt_prog_compiler_pic_CXX='-qpic'
44939             lt_prog_compiler_static_CXX='-qstaticlink'
44940             ;;
44941           *)
44942             case `$CC -V 2>&1 | sed 5q` in
44943             *Sun\ C*)
44944               # Sun C++ 5.9
44945               lt_prog_compiler_pic_CXX='-KPIC'
44946               lt_prog_compiler_static_CXX='-Bstatic'
44947               lt_prog_compiler_wl_CXX='-Qoption ld '
44948               ;;
44949             esac
44950             ;;
44951         esac
44952         ;;
44953       lynxos*)
44954         ;;
44955       m88k*)
44956         ;;
44957       mvs*)
44958         case $cc_basename in
44959           cxx*)
44960             lt_prog_compiler_pic_CXX='-W c,exportall'
44961             ;;
44962           *)
44963             ;;
44964         esac
44965         ;;
44966       netbsd* | netbsdelf*-gnu)
44967         ;;
44968       *qnx* | *nto*)
44969         # QNX uses GNU C++, but need to define -shared option too, otherwise
44970         # it will coredump.
44971         lt_prog_compiler_pic_CXX='-fPIC -shared'
44972         ;;
44973       osf3* | osf4* | osf5*)
44974         case $cc_basename in
44975           KCC*)
44976             lt_prog_compiler_wl_CXX='--backend -Wl,'
44977             ;;
44978           RCC*)
44979             # Rational C++ 2.4.1
44980             lt_prog_compiler_pic_CXX='-pic'
44981             ;;
44982           cxx*)
44983             # Digital/Compaq C++
44984             lt_prog_compiler_wl_CXX='-Wl,'
44985             # Make sure the PIC flag is empty.  It appears that all Alpha
44986             # Linux and Compaq Tru64 Unix objects are PIC.
44987             lt_prog_compiler_pic_CXX=
44988             lt_prog_compiler_static_CXX='-non_shared'
44989             ;;
44990           *)
44991             ;;
44992         esac
44993         ;;
44994       psos*)
44995         ;;
44996       solaris*)
44997         case $cc_basename in
44998           CC* | sunCC*)
44999             # Sun C++ 4.2, 5.x and Centerline C++
45000             lt_prog_compiler_pic_CXX='-KPIC'
45001             lt_prog_compiler_static_CXX='-Bstatic'
45002             lt_prog_compiler_wl_CXX='-Qoption ld '
45003             ;;
45004           gcx*)
45005             # Green Hills C++ Compiler
45006             lt_prog_compiler_pic_CXX='-PIC'
45007             ;;
45008           *)
45009             ;;
45010         esac
45011         ;;
45012       sunos4*)
45013         case $cc_basename in
45014           CC*)
45015             # Sun C++ 4.x
45016             lt_prog_compiler_pic_CXX='-pic'
45017             lt_prog_compiler_static_CXX='-Bstatic'
45018             ;;
45019           lcc*)
45020             # Lucid
45021             lt_prog_compiler_pic_CXX='-pic'
45022             ;;
45023           *)
45024             ;;
45025         esac
45026         ;;
45027       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
45028         case $cc_basename in
45029           CC*)
45030             lt_prog_compiler_wl_CXX='-Wl,'
45031             lt_prog_compiler_pic_CXX='-KPIC'
45032             lt_prog_compiler_static_CXX='-Bstatic'
45033             ;;
45034         esac
45035         ;;
45036       tandem*)
45037         case $cc_basename in
45038           NCC*)
45039             # NonStop-UX NCC 3.20
45040             lt_prog_compiler_pic_CXX='-KPIC'
45041             ;;
45042           *)
45043             ;;
45044         esac
45045         ;;
45046       vxworks*)
45047         ;;
45048       *)
45049         lt_prog_compiler_can_build_shared_CXX=no
45050         ;;
45051     esac
45052   fi
45053
45054 case $host_os in
45055   # For platforms which do not support PIC, -DPIC is meaningless:
45056   *djgpp*)
45057     lt_prog_compiler_pic_CXX=
45058     ;;
45059   *)
45060     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
45061     ;;
45062 esac
45063
45064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
45065 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
45066 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
45067   $as_echo_n "(cached) " >&6
45068 else
45069   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
45070 fi
45071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
45072 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
45073 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
45074
45075 #
45076 # Check to make sure the PIC flag actually works.
45077 #
45078 if test -n "$lt_prog_compiler_pic_CXX"; then
45079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
45080 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
45081 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
45082   $as_echo_n "(cached) " >&6
45083 else
45084   lt_cv_prog_compiler_pic_works_CXX=no
45085    ac_outfile=conftest.$ac_objext
45086    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
45087    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
45088    # Insert the option either (1) after the last *FLAGS variable, or
45089    # (2) before a word containing "conftest.", or (3) at the end.
45090    # Note that $ac_compile itself does not contain backslashes and begins
45091    # with a dollar sign (not a hyphen), so the echo should work correctly.
45092    # The option is referenced via a variable to avoid confusing sed.
45093    lt_compile=`echo "$ac_compile" | $SED \
45094    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45095    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45096    -e 's:$: $lt_compiler_flag:'`
45097    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
45098    (eval "$lt_compile" 2>conftest.err)
45099    ac_status=$?
45100    cat conftest.err >&5
45101    echo "$as_me:$LINENO: \$? = $ac_status" >&5
45102    if (exit $ac_status) && test -s "$ac_outfile"; then
45103      # The compiler can only warn and ignore the option if not recognized
45104      # So say no if there are warnings other than the usual output.
45105      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
45106      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
45107      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
45108        lt_cv_prog_compiler_pic_works_CXX=yes
45109      fi
45110    fi
45111    $RM conftest*
45112
45113 fi
45114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
45115 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
45116
45117 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
45118     case $lt_prog_compiler_pic_CXX in
45119      "" | " "*) ;;
45120      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
45121      esac
45122 else
45123     lt_prog_compiler_pic_CXX=
45124      lt_prog_compiler_can_build_shared_CXX=no
45125 fi
45126
45127 fi
45128
45129
45130
45131
45132
45133 #
45134 # Check to make sure the static flag actually works.
45135 #
45136 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
45137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
45138 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
45139 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
45140   $as_echo_n "(cached) " >&6
45141 else
45142   lt_cv_prog_compiler_static_works_CXX=no
45143    save_LDFLAGS="$LDFLAGS"
45144    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
45145    echo "$lt_simple_link_test_code" > conftest.$ac_ext
45146    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
45147      # The linker can only warn and ignore the option if not recognized
45148      # So say no if there are warnings
45149      if test -s conftest.err; then
45150        # Append any errors to the config.log.
45151        cat conftest.err 1>&5
45152        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
45153        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
45154        if diff conftest.exp conftest.er2 >/dev/null; then
45155          lt_cv_prog_compiler_static_works_CXX=yes
45156        fi
45157      else
45158        lt_cv_prog_compiler_static_works_CXX=yes
45159      fi
45160    fi
45161    $RM -r conftest*
45162    LDFLAGS="$save_LDFLAGS"
45163
45164 fi
45165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
45166 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
45167
45168 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
45169     :
45170 else
45171     lt_prog_compiler_static_CXX=
45172 fi
45173
45174
45175
45176
45177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
45178 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
45179 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
45180   $as_echo_n "(cached) " >&6
45181 else
45182   lt_cv_prog_compiler_c_o_CXX=no
45183    $RM -r conftest 2>/dev/null
45184    mkdir conftest
45185    cd conftest
45186    mkdir out
45187    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
45188
45189    lt_compiler_flag="-o out/conftest2.$ac_objext"
45190    # Insert the option either (1) after the last *FLAGS variable, or
45191    # (2) before a word containing "conftest.", or (3) at the end.
45192    # Note that $ac_compile itself does not contain backslashes and begins
45193    # with a dollar sign (not a hyphen), so the echo should work correctly.
45194    lt_compile=`echo "$ac_compile" | $SED \
45195    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45196    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45197    -e 's:$: $lt_compiler_flag:'`
45198    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
45199    (eval "$lt_compile" 2>out/conftest.err)
45200    ac_status=$?
45201    cat out/conftest.err >&5
45202    echo "$as_me:$LINENO: \$? = $ac_status" >&5
45203    if (exit $ac_status) && test -s out/conftest2.$ac_objext
45204    then
45205      # The compiler can only warn and ignore the option if not recognized
45206      # So say no if there are warnings
45207      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
45208      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
45209      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
45210        lt_cv_prog_compiler_c_o_CXX=yes
45211      fi
45212    fi
45213    chmod u+w . 2>&5
45214    $RM conftest*
45215    # SGI C++ compiler will create directory out/ii_files/ for
45216    # template instantiation
45217    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
45218    $RM out/* && rmdir out
45219    cd ..
45220    $RM -r conftest
45221    $RM conftest*
45222
45223 fi
45224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
45225 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
45226
45227
45228
45229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
45230 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
45231 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
45232   $as_echo_n "(cached) " >&6
45233 else
45234   lt_cv_prog_compiler_c_o_CXX=no
45235    $RM -r conftest 2>/dev/null
45236    mkdir conftest
45237    cd conftest
45238    mkdir out
45239    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
45240
45241    lt_compiler_flag="-o out/conftest2.$ac_objext"
45242    # Insert the option either (1) after the last *FLAGS variable, or
45243    # (2) before a word containing "conftest.", or (3) at the end.
45244    # Note that $ac_compile itself does not contain backslashes and begins
45245    # with a dollar sign (not a hyphen), so the echo should work correctly.
45246    lt_compile=`echo "$ac_compile" | $SED \
45247    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45248    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45249    -e 's:$: $lt_compiler_flag:'`
45250    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
45251    (eval "$lt_compile" 2>out/conftest.err)
45252    ac_status=$?
45253    cat out/conftest.err >&5
45254    echo "$as_me:$LINENO: \$? = $ac_status" >&5
45255    if (exit $ac_status) && test -s out/conftest2.$ac_objext
45256    then
45257      # The compiler can only warn and ignore the option if not recognized
45258      # So say no if there are warnings
45259      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
45260      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
45261      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
45262        lt_cv_prog_compiler_c_o_CXX=yes
45263      fi
45264    fi
45265    chmod u+w . 2>&5
45266    $RM conftest*
45267    # SGI C++ compiler will create directory out/ii_files/ for
45268    # template instantiation
45269    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
45270    $RM out/* && rmdir out
45271    cd ..
45272    $RM -r conftest
45273    $RM conftest*
45274
45275 fi
45276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
45277 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
45278
45279
45280
45281
45282 hard_links="nottested"
45283 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
45284   # do not overwrite the value of need_locks provided by the user
45285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
45286 $as_echo_n "checking if we can lock with hard links... " >&6; }
45287   hard_links=yes
45288   $RM conftest*
45289   ln conftest.a conftest.b 2>/dev/null && hard_links=no
45290   touch conftest.a
45291   ln conftest.a conftest.b 2>&5 || hard_links=no
45292   ln conftest.a conftest.b 2>/dev/null && hard_links=no
45293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
45294 $as_echo "$hard_links" >&6; }
45295   if test "$hard_links" = no; then
45296     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
45297 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
45298     need_locks=warn
45299   fi
45300 else
45301   need_locks=no
45302 fi
45303
45304
45305
45306     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
45307 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
45308
45309   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
45310   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
45311   case $host_os in
45312   aix[4-9]*)
45313     # If we're using GNU nm, then we don't want the "-C" option.
45314     # -C means demangle to AIX nm, but means don't demangle with GNU nm
45315     # Also, AIX nm treats weak defined symbols like other global defined
45316     # symbols, whereas GNU nm marks them as "W".
45317     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
45318       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'
45319     else
45320       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'
45321     fi
45322     ;;
45323   pw32*)
45324     export_symbols_cmds_CXX="$ltdll_cmds"
45325     ;;
45326   cygwin* | mingw* | cegcc*)
45327     case $cc_basename in
45328     cl*)
45329       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
45330       ;;
45331     *)
45332       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'
45333       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
45334       ;;
45335     esac
45336     ;;
45337   linux* | k*bsd*-gnu | gnu*)
45338     link_all_deplibs_CXX=no
45339     ;;
45340   *)
45341     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
45342     ;;
45343   esac
45344
45345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
45346 $as_echo "$ld_shlibs_CXX" >&6; }
45347 test "$ld_shlibs_CXX" = no && can_build_shared=no
45348
45349 with_gnu_ld_CXX=$with_gnu_ld
45350
45351
45352
45353
45354
45355
45356 #
45357 # Do we need to explicitly link libc?
45358 #
45359 case "x$archive_cmds_need_lc_CXX" in
45360 x|xyes)
45361   # Assume -lc should be added
45362   archive_cmds_need_lc_CXX=yes
45363
45364   if test "$enable_shared" = yes && test "$GCC" = yes; then
45365     case $archive_cmds_CXX in
45366     *'~'*)
45367       # FIXME: we may have to deal with multi-command sequences.
45368       ;;
45369     '$CC '*)
45370       # Test whether the compiler implicitly links with -lc since on some
45371       # systems, -lgcc has to come before -lc. If gcc already passes -lc
45372       # to ld, don't add -lc before -lgcc.
45373       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
45374 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
45375 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
45376   $as_echo_n "(cached) " >&6
45377 else
45378   $RM conftest*
45379         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
45380
45381         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
45382   (eval $ac_compile) 2>&5
45383   ac_status=$?
45384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45385   test $ac_status = 0; } 2>conftest.err; then
45386           soname=conftest
45387           lib=conftest
45388           libobjs=conftest.$ac_objext
45389           deplibs=
45390           wl=$lt_prog_compiler_wl_CXX
45391           pic_flag=$lt_prog_compiler_pic_CXX
45392           compiler_flags=-v
45393           linker_flags=-v
45394           verstring=
45395           output_objdir=.
45396           libname=conftest
45397           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
45398           allow_undefined_flag_CXX=
45399           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
45400   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
45401   ac_status=$?
45402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45403   test $ac_status = 0; }
45404           then
45405             lt_cv_archive_cmds_need_lc_CXX=no
45406           else
45407             lt_cv_archive_cmds_need_lc_CXX=yes
45408           fi
45409           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
45410         else
45411           cat conftest.err 1>&5
45412         fi
45413         $RM conftest*
45414
45415 fi
45416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
45417 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
45418       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
45419       ;;
45420     esac
45421   fi
45422   ;;
45423 esac
45424
45425
45426
45427
45428
45429
45430
45431
45432
45433
45434
45435
45436
45437
45438
45439
45440
45441
45442
45443
45444
45445
45446
45447
45448
45449
45450
45451
45452
45453
45454
45455
45456
45457
45458
45459
45460
45461
45462
45463
45464
45465
45466
45467
45468
45469
45470
45471
45472
45473
45474
45475
45476
45477
45478
45479
45480
45481
45482
45483
45484
45485
45486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
45487 $as_echo_n "checking dynamic linker characteristics... " >&6; }
45488
45489 library_names_spec=
45490 libname_spec='lib$name'
45491 soname_spec=
45492 shrext_cmds=".so"
45493 postinstall_cmds=
45494 postuninstall_cmds=
45495 finish_cmds=
45496 finish_eval=
45497 shlibpath_var=
45498 shlibpath_overrides_runpath=unknown
45499 version_type=none
45500 dynamic_linker="$host_os ld.so"
45501 sys_lib_dlsearch_path_spec="/lib /usr/lib"
45502 need_lib_prefix=unknown
45503 hardcode_into_libs=no
45504
45505 # when you set need_version to no, make sure it does not cause -set_version
45506 # flags to be left without arguments
45507 need_version=unknown
45508
45509 case $host_os in
45510 aix3*)
45511   version_type=linux # correct to gnu/linux during the next big refactor
45512   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
45513   shlibpath_var=LIBPATH
45514
45515   # AIX 3 has no versioning support, so we append a major version to the name.
45516   soname_spec='${libname}${release}${shared_ext}$major'
45517   ;;
45518
45519 aix[4-9]*)
45520   version_type=linux # correct to gnu/linux during the next big refactor
45521   need_lib_prefix=no
45522   need_version=no
45523   hardcode_into_libs=yes
45524   if test "$host_cpu" = ia64; then
45525     # AIX 5 supports IA64
45526     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
45527     shlibpath_var=LD_LIBRARY_PATH
45528   else
45529     # With GCC up to 2.95.x, collect2 would create an import file
45530     # for dependence libraries.  The import file would start with
45531     # the line `#! .'.  This would cause the generated library to
45532     # depend on `.', always an invalid library.  This was fixed in
45533     # development snapshots of GCC prior to 3.0.
45534     case $host_os in
45535       aix4 | aix4.[01] | aix4.[01].*)
45536       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
45537            echo ' yes '
45538            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
45539         :
45540       else
45541         can_build_shared=no
45542       fi
45543       ;;
45544     esac
45545     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
45546     # soname into executable. Probably we can add versioning support to
45547     # collect2, so additional links can be useful in future.
45548     if test "$aix_use_runtimelinking" = yes; then
45549       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
45550       # instead of lib<name>.a to let people know that these are not
45551       # typical AIX shared libraries.
45552       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45553     else
45554       # We preserve .a as extension for shared libraries through AIX4.2
45555       # and later when we are not doing run time linking.
45556       library_names_spec='${libname}${release}.a $libname.a'
45557       soname_spec='${libname}${release}${shared_ext}$major'
45558     fi
45559     shlibpath_var=LIBPATH
45560   fi
45561   ;;
45562
45563 amigaos*)
45564   case $host_cpu in
45565   powerpc)
45566     # Since July 2007 AmigaOS4 officially supports .so libraries.
45567     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
45568     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45569     ;;
45570   m68k)
45571     library_names_spec='$libname.ixlibrary $libname.a'
45572     # Create ${libname}_ixlibrary.a entries in /sys/libs.
45573     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'
45574     ;;
45575   esac
45576   ;;
45577
45578 beos*)
45579   library_names_spec='${libname}${shared_ext}'
45580   dynamic_linker="$host_os ld.so"
45581   shlibpath_var=LIBRARY_PATH
45582   ;;
45583
45584 bsdi[45]*)
45585   version_type=linux # correct to gnu/linux during the next big refactor
45586   need_version=no
45587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45588   soname_spec='${libname}${release}${shared_ext}$major'
45589   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
45590   shlibpath_var=LD_LIBRARY_PATH
45591   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
45592   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
45593   # the default ld.so.conf also contains /usr/contrib/lib and
45594   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
45595   # libtool to hard-code these into programs
45596   ;;
45597
45598 cygwin* | mingw* | pw32* | cegcc*)
45599   version_type=windows
45600   shrext_cmds=".dll"
45601   need_version=no
45602   need_lib_prefix=no
45603
45604   case $GCC,$cc_basename in
45605   yes,*)
45606     # gcc
45607     library_names_spec='$libname.dll.a'
45608     # DLL is installed to $(libdir)/../bin by postinstall_cmds
45609     postinstall_cmds='base_file=`basename \${file}`~
45610       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
45611       dldir=$destdir/`dirname \$dlpath`~
45612       test -d \$dldir || mkdir -p \$dldir~
45613       $install_prog $dir/$dlname \$dldir/$dlname~
45614       chmod a+x \$dldir/$dlname~
45615       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
45616         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
45617       fi'
45618     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
45619       dlpath=$dir/\$dldll~
45620        $RM \$dlpath'
45621     shlibpath_overrides_runpath=yes
45622
45623     case $host_os in
45624     cygwin*)
45625       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
45626       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45627
45628       ;;
45629     mingw* | cegcc*)
45630       # MinGW DLLs use traditional 'lib' prefix
45631       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45632       ;;
45633     pw32*)
45634       # pw32 DLLs use 'pw' prefix rather than 'lib'
45635       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45636       ;;
45637     esac
45638     dynamic_linker='Win32 ld.exe'
45639     ;;
45640
45641   *,cl*)
45642     # Native MSVC
45643     libname_spec='$name'
45644     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45645     library_names_spec='${libname}.dll.lib'
45646
45647     case $build_os in
45648     mingw*)
45649       sys_lib_search_path_spec=
45650       lt_save_ifs=$IFS
45651       IFS=';'
45652       for lt_path in $LIB
45653       do
45654         IFS=$lt_save_ifs
45655         # Let DOS variable expansion print the short 8.3 style file name.
45656         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
45657         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
45658       done
45659       IFS=$lt_save_ifs
45660       # Convert to MSYS style.
45661       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
45662       ;;
45663     cygwin*)
45664       # Convert to unix form, then to dos form, then back to unix form
45665       # but this time dos style (no spaces!) so that the unix form looks
45666       # like /cygdrive/c/PROGRA~1:/cygdr...
45667       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
45668       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
45669       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
45670       ;;
45671     *)
45672       sys_lib_search_path_spec="$LIB"
45673       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
45674         # It is most probably a Windows format PATH.
45675         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
45676       else
45677         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
45678       fi
45679       # FIXME: find the short name or the path components, as spaces are
45680       # common. (e.g. "Program Files" -> "PROGRA~1")
45681       ;;
45682     esac
45683
45684     # DLL is installed to $(libdir)/../bin by postinstall_cmds
45685     postinstall_cmds='base_file=`basename \${file}`~
45686       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
45687       dldir=$destdir/`dirname \$dlpath`~
45688       test -d \$dldir || mkdir -p \$dldir~
45689       $install_prog $dir/$dlname \$dldir/$dlname'
45690     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
45691       dlpath=$dir/\$dldll~
45692        $RM \$dlpath'
45693     shlibpath_overrides_runpath=yes
45694     dynamic_linker='Win32 link.exe'
45695     ;;
45696
45697   *)
45698     # Assume MSVC wrapper
45699     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
45700     dynamic_linker='Win32 ld.exe'
45701     ;;
45702   esac
45703   # FIXME: first we should search . and the directory the executable is in
45704   shlibpath_var=PATH
45705   ;;
45706
45707 darwin* | rhapsody*)
45708   dynamic_linker="$host_os dyld"
45709   version_type=darwin
45710   need_lib_prefix=no
45711   need_version=no
45712   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
45713   soname_spec='${libname}${release}${major}$shared_ext'
45714   shlibpath_overrides_runpath=yes
45715   shlibpath_var=DYLD_LIBRARY_PATH
45716   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
45717
45718   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
45719   ;;
45720
45721 dgux*)
45722   version_type=linux # correct to gnu/linux during the next big refactor
45723   need_lib_prefix=no
45724   need_version=no
45725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
45726   soname_spec='${libname}${release}${shared_ext}$major'
45727   shlibpath_var=LD_LIBRARY_PATH
45728   ;;
45729
45730 freebsd* | dragonfly*)
45731   # DragonFly does not have aout.  When/if they implement a new
45732   # versioning mechanism, adjust this.
45733   if test -x /usr/bin/objformat; then
45734     objformat=`/usr/bin/objformat`
45735   else
45736     case $host_os in
45737     freebsd[23].*) objformat=aout ;;
45738     *) objformat=elf ;;
45739     esac
45740   fi
45741   version_type=freebsd-$objformat
45742   case $version_type in
45743     freebsd-elf*)
45744       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
45745       need_version=no
45746       need_lib_prefix=no
45747       ;;
45748     freebsd-*)
45749       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
45750       need_version=yes
45751       ;;
45752   esac
45753   shlibpath_var=LD_LIBRARY_PATH
45754   case $host_os in
45755   freebsd2.*)
45756     shlibpath_overrides_runpath=yes
45757     ;;
45758   freebsd3.[01]* | freebsdelf3.[01]*)
45759     shlibpath_overrides_runpath=yes
45760     hardcode_into_libs=yes
45761     ;;
45762   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
45763   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
45764     shlibpath_overrides_runpath=no
45765     hardcode_into_libs=yes
45766     ;;
45767   *) # from 4.6 on, and DragonFly
45768     shlibpath_overrides_runpath=yes
45769     hardcode_into_libs=yes
45770     ;;
45771   esac
45772   ;;
45773
45774 haiku*)
45775   version_type=linux # correct to gnu/linux during the next big refactor
45776   need_lib_prefix=no
45777   need_version=no
45778   dynamic_linker="$host_os runtime_loader"
45779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
45780   soname_spec='${libname}${release}${shared_ext}$major'
45781   shlibpath_var=LIBRARY_PATH
45782   shlibpath_overrides_runpath=yes
45783   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
45784   hardcode_into_libs=yes
45785   ;;
45786
45787 hpux9* | hpux10* | hpux11*)
45788   # Give a soname corresponding to the major version so that dld.sl refuses to
45789   # link against other versions.
45790   version_type=sunos
45791   need_lib_prefix=no
45792   need_version=no
45793   case $host_cpu in
45794   ia64*)
45795     shrext_cmds='.so'
45796     hardcode_into_libs=yes
45797     dynamic_linker="$host_os dld.so"
45798     shlibpath_var=LD_LIBRARY_PATH
45799     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
45800     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45801     soname_spec='${libname}${release}${shared_ext}$major'
45802     if test "X$HPUX_IA64_MODE" = X32; then
45803       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
45804     else
45805       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
45806     fi
45807     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
45808     ;;
45809   hppa*64*)
45810     shrext_cmds='.sl'
45811     hardcode_into_libs=yes
45812     dynamic_linker="$host_os dld.sl"
45813     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
45814     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
45815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45816     soname_spec='${libname}${release}${shared_ext}$major'
45817     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
45818     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
45819     ;;
45820   *)
45821     shrext_cmds='.sl'
45822     dynamic_linker="$host_os dld.sl"
45823     shlibpath_var=SHLIB_PATH
45824     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
45825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45826     soname_spec='${libname}${release}${shared_ext}$major'
45827     ;;
45828   esac
45829   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
45830   postinstall_cmds='chmod 555 $lib'
45831   # or fails outright, so override atomically:
45832   install_override_mode=555
45833   ;;
45834
45835 interix[3-9]*)
45836   version_type=linux # correct to gnu/linux during the next big refactor
45837   need_lib_prefix=no
45838   need_version=no
45839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
45840   soname_spec='${libname}${release}${shared_ext}$major'
45841   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
45842   shlibpath_var=LD_LIBRARY_PATH
45843   shlibpath_overrides_runpath=no
45844   hardcode_into_libs=yes
45845   ;;
45846
45847 irix5* | irix6* | nonstopux*)
45848   case $host_os in
45849     nonstopux*) version_type=nonstopux ;;
45850     *)
45851         if test "$lt_cv_prog_gnu_ld" = yes; then
45852                 version_type=linux # correct to gnu/linux during the next big refactor
45853         else
45854                 version_type=irix
45855         fi ;;
45856   esac
45857   need_lib_prefix=no
45858   need_version=no
45859   soname_spec='${libname}${release}${shared_ext}$major'
45860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
45861   case $host_os in
45862   irix5* | nonstopux*)
45863     libsuff= shlibsuff=
45864     ;;
45865   *)
45866     case $LD in # libtool.m4 will add one of these switches to LD
45867     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
45868       libsuff= shlibsuff= libmagic=32-bit;;
45869     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
45870       libsuff=32 shlibsuff=N32 libmagic=N32;;
45871     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
45872       libsuff=64 shlibsuff=64 libmagic=64-bit;;
45873     *) libsuff= shlibsuff= libmagic=never-match;;
45874     esac
45875     ;;
45876   esac
45877   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
45878   shlibpath_overrides_runpath=no
45879   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
45880   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
45881   hardcode_into_libs=yes
45882   ;;
45883
45884 # No shared lib support for Linux oldld, aout, or coff.
45885 linux*oldld* | linux*aout* | linux*coff*)
45886   dynamic_linker=no
45887   ;;
45888
45889 # This must be glibc/ELF.
45890 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
45891   version_type=linux # correct to gnu/linux during the next big refactor
45892   need_lib_prefix=no
45893   need_version=no
45894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45895   soname_spec='${libname}${release}${shared_ext}$major'
45896   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
45897   shlibpath_var=LD_LIBRARY_PATH
45898   shlibpath_overrides_runpath=no
45899
45900   # Some binutils ld are patched to set DT_RUNPATH
45901   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
45902   $as_echo_n "(cached) " >&6
45903 else
45904   lt_cv_shlibpath_overrides_runpath=no
45905     save_LDFLAGS=$LDFLAGS
45906     save_libdir=$libdir
45907     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
45908          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
45909     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45910 /* end confdefs.h.  */
45911
45912 int
45913 main ()
45914 {
45915
45916   ;
45917   return 0;
45918 }
45919 _ACEOF
45920 if ac_fn_cxx_try_link "$LINENO"; then :
45921   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
45922   lt_cv_shlibpath_overrides_runpath=yes
45923 fi
45924 fi
45925 rm -f core conftest.err conftest.$ac_objext \
45926     conftest$ac_exeext conftest.$ac_ext
45927     LDFLAGS=$save_LDFLAGS
45928     libdir=$save_libdir
45929
45930 fi
45931
45932   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
45933
45934   # This implies no fast_install, which is unacceptable.
45935   # Some rework will be needed to allow for fast_install
45936   # before this can be enabled.
45937   hardcode_into_libs=yes
45938
45939   # Append ld.so.conf contents to the search path
45940   if test -f /etc/ld.so.conf; then
45941     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' ' '`
45942     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
45943   fi
45944
45945   # We used to test for /lib/ld.so.1 and disable shared libraries on
45946   # powerpc, because MkLinux only supported shared libraries with the
45947   # GNU dynamic linker.  Since this was broken with cross compilers,
45948   # most powerpc-linux boxes support dynamic linking these days and
45949   # people can always --disable-shared, the test was removed, and we
45950   # assume the GNU/Linux dynamic linker is in use.
45951   dynamic_linker='GNU/Linux ld.so'
45952   ;;
45953
45954 netbsdelf*-gnu)
45955   version_type=linux
45956   need_lib_prefix=no
45957   need_version=no
45958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
45959   soname_spec='${libname}${release}${shared_ext}$major'
45960   shlibpath_var=LD_LIBRARY_PATH
45961   shlibpath_overrides_runpath=no
45962   hardcode_into_libs=yes
45963   dynamic_linker='NetBSD ld.elf_so'
45964   ;;
45965
45966 netbsd*)
45967   version_type=sunos
45968   need_lib_prefix=no
45969   need_version=no
45970   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
45971     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
45972     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
45973     dynamic_linker='NetBSD (a.out) ld.so'
45974   else
45975     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
45976     soname_spec='${libname}${release}${shared_ext}$major'
45977     dynamic_linker='NetBSD ld.elf_so'
45978   fi
45979   shlibpath_var=LD_LIBRARY_PATH
45980   shlibpath_overrides_runpath=yes
45981   hardcode_into_libs=yes
45982   ;;
45983
45984 newsos6)
45985   version_type=linux # correct to gnu/linux during the next big refactor
45986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45987   shlibpath_var=LD_LIBRARY_PATH
45988   shlibpath_overrides_runpath=yes
45989   ;;
45990
45991 *nto* | *qnx*)
45992   version_type=qnx
45993   need_lib_prefix=no
45994   need_version=no
45995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45996   soname_spec='${libname}${release}${shared_ext}$major'
45997   shlibpath_var=LD_LIBRARY_PATH
45998   shlibpath_overrides_runpath=no
45999   hardcode_into_libs=yes
46000   dynamic_linker='ldqnx.so'
46001   ;;
46002
46003 openbsd*)
46004   version_type=sunos
46005   sys_lib_dlsearch_path_spec="/usr/lib"
46006   need_lib_prefix=no
46007   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
46008   case $host_os in
46009     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
46010     *)                          need_version=no  ;;
46011   esac
46012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46013   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
46014   shlibpath_var=LD_LIBRARY_PATH
46015   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
46016     case $host_os in
46017       openbsd2.[89] | openbsd2.[89].*)
46018         shlibpath_overrides_runpath=no
46019         ;;
46020       *)
46021         shlibpath_overrides_runpath=yes
46022         ;;
46023       esac
46024   else
46025     shlibpath_overrides_runpath=yes
46026   fi
46027   ;;
46028
46029 os2*)
46030   libname_spec='$name'
46031   shrext_cmds=".dll"
46032   need_lib_prefix=no
46033   library_names_spec='$libname${shared_ext} $libname.a'
46034   dynamic_linker='OS/2 ld.exe'
46035   shlibpath_var=LIBPATH
46036   ;;
46037
46038 osf3* | osf4* | osf5*)
46039   version_type=osf
46040   need_lib_prefix=no
46041   need_version=no
46042   soname_spec='${libname}${release}${shared_ext}$major'
46043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46044   shlibpath_var=LD_LIBRARY_PATH
46045   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
46046   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
46047   ;;
46048
46049 rdos*)
46050   dynamic_linker=no
46051   ;;
46052
46053 solaris*)
46054   version_type=linux # correct to gnu/linux during the next big refactor
46055   need_lib_prefix=no
46056   need_version=no
46057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46058   soname_spec='${libname}${release}${shared_ext}$major'
46059   shlibpath_var=LD_LIBRARY_PATH
46060   shlibpath_overrides_runpath=yes
46061   hardcode_into_libs=yes
46062   # ldd complains unless libraries are executable
46063   postinstall_cmds='chmod +x $lib'
46064   ;;
46065
46066 sunos4*)
46067   version_type=sunos
46068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46069   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
46070   shlibpath_var=LD_LIBRARY_PATH
46071   shlibpath_overrides_runpath=yes
46072   if test "$with_gnu_ld" = yes; then
46073     need_lib_prefix=no
46074   fi
46075   need_version=yes
46076   ;;
46077
46078 sysv4 | sysv4.3*)
46079   version_type=linux # correct to gnu/linux during the next big refactor
46080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46081   soname_spec='${libname}${release}${shared_ext}$major'
46082   shlibpath_var=LD_LIBRARY_PATH
46083   case $host_vendor in
46084     sni)
46085       shlibpath_overrides_runpath=no
46086       need_lib_prefix=no
46087       runpath_var=LD_RUN_PATH
46088       ;;
46089     siemens)
46090       need_lib_prefix=no
46091       ;;
46092     motorola)
46093       need_lib_prefix=no
46094       need_version=no
46095       shlibpath_overrides_runpath=no
46096       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
46097       ;;
46098   esac
46099   ;;
46100
46101 sysv4*MP*)
46102   if test -d /usr/nec ;then
46103     version_type=linux # correct to gnu/linux during the next big refactor
46104     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
46105     soname_spec='$libname${shared_ext}.$major'
46106     shlibpath_var=LD_LIBRARY_PATH
46107   fi
46108   ;;
46109
46110 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
46111   version_type=freebsd-elf
46112   need_lib_prefix=no
46113   need_version=no
46114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
46115   soname_spec='${libname}${release}${shared_ext}$major'
46116   shlibpath_var=LD_LIBRARY_PATH
46117   shlibpath_overrides_runpath=yes
46118   hardcode_into_libs=yes
46119   if test "$with_gnu_ld" = yes; then
46120     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
46121   else
46122     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
46123     case $host_os in
46124       sco3.2v5*)
46125         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
46126         ;;
46127     esac
46128   fi
46129   sys_lib_dlsearch_path_spec='/usr/lib'
46130   ;;
46131
46132 tpf*)
46133   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
46134   version_type=linux # correct to gnu/linux during the next big refactor
46135   need_lib_prefix=no
46136   need_version=no
46137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46138   shlibpath_var=LD_LIBRARY_PATH
46139   shlibpath_overrides_runpath=no
46140   hardcode_into_libs=yes
46141   ;;
46142
46143 uts4*)
46144   version_type=linux # correct to gnu/linux during the next big refactor
46145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46146   soname_spec='${libname}${release}${shared_ext}$major'
46147   shlibpath_var=LD_LIBRARY_PATH
46148   ;;
46149
46150 *)
46151   dynamic_linker=no
46152   ;;
46153 esac
46154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
46155 $as_echo "$dynamic_linker" >&6; }
46156 test "$dynamic_linker" = no && can_build_shared=no
46157
46158 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
46159 if test "$GCC" = yes; then
46160   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
46161 fi
46162
46163 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
46164   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
46165 fi
46166 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
46167   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
46168 fi
46169
46170
46171
46172
46173
46174
46175
46176
46177
46178
46179
46180
46181
46182
46183
46184
46185
46186
46187
46188
46189
46190
46191
46192
46193
46194
46195
46196
46197
46198
46199
46200
46201
46202
46203
46204
46205
46206
46207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
46208 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
46209 hardcode_action_CXX=
46210 if test -n "$hardcode_libdir_flag_spec_CXX" ||
46211    test -n "$runpath_var_CXX" ||
46212    test "X$hardcode_automatic_CXX" = "Xyes" ; then
46213
46214   # We can hardcode non-existent directories.
46215   if test "$hardcode_direct_CXX" != no &&
46216      # If the only mechanism to avoid hardcoding is shlibpath_var, we
46217      # have to relink, otherwise we might link with an installed library
46218      # when we should be linking with a yet-to-be-installed one
46219      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
46220      test "$hardcode_minus_L_CXX" != no; then
46221     # Linking always hardcodes the temporary library directory.
46222     hardcode_action_CXX=relink
46223   else
46224     # We can link without hardcoding, and we can hardcode nonexisting dirs.
46225     hardcode_action_CXX=immediate
46226   fi
46227 else
46228   # We cannot hardcode anything, or else we can only hardcode existing
46229   # directories.
46230   hardcode_action_CXX=unsupported
46231 fi
46232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
46233 $as_echo "$hardcode_action_CXX" >&6; }
46234
46235 if test "$hardcode_action_CXX" = relink ||
46236    test "$inherit_rpath_CXX" = yes; then
46237   # Fast installation is not supported
46238   enable_fast_install=no
46239 elif test "$shlibpath_overrides_runpath" = yes ||
46240      test "$enable_shared" = no; then
46241   # Fast installation is not necessary
46242   enable_fast_install=needless
46243 fi
46244
46245
46246
46247
46248
46249
46250
46251   fi # test -n "$compiler"
46252
46253   CC=$lt_save_CC
46254   CFLAGS=$lt_save_CFLAGS
46255   LDCXX=$LD
46256   LD=$lt_save_LD
46257   GCC=$lt_save_GCC
46258   with_gnu_ld=$lt_save_with_gnu_ld
46259   lt_cv_path_LDCXX=$lt_cv_path_LD
46260   lt_cv_path_LD=$lt_save_path_LD
46261   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
46262   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
46263 fi # test "$_lt_caught_CXX_error" != yes
46264
46265 ac_ext=c
46266 ac_cpp='$CPP $CPPFLAGS'
46267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46270
46271
46272
46273
46274
46275
46276
46277
46278
46279
46280
46281
46282
46283
46284
46285         ac_config_commands="$ac_config_commands libtool"
46286
46287
46288
46289
46290 # Only expand once:
46291
46292
46293
46294
46295
46296 # Check whether --enable-self-checks was given.
46297 if test "${enable_self_checks+set}" = set; then :
46298   enableval=$enable_self_checks; enable_self_checks=$enableval
46299 else
46300   enable_self_checks=no
46301 fi
46302
46303
46304
46305
46306
46307
46308
46309
46310
46311
46312
46313
46314
46315
46316
46317     use_additional=yes
46318
46319   acl_save_prefix="$prefix"
46320   prefix="$acl_final_prefix"
46321   acl_save_exec_prefix="$exec_prefix"
46322   exec_prefix="$acl_final_exec_prefix"
46323
46324     eval additional_includedir=\"$includedir\"
46325     eval additional_libdir=\"$libdir\"
46326
46327   exec_prefix="$acl_save_exec_prefix"
46328   prefix="$acl_save_prefix"
46329
46330
46331 # Check whether --with-libdl-prefix was given.
46332 if test "${with_libdl_prefix+set}" = set; then :
46333   withval=$with_libdl_prefix;
46334     if test "X$withval" = "Xno"; then
46335       use_additional=no
46336     else
46337       if test "X$withval" = "X"; then
46338
46339   acl_save_prefix="$prefix"
46340   prefix="$acl_final_prefix"
46341   acl_save_exec_prefix="$exec_prefix"
46342   exec_prefix="$acl_final_exec_prefix"
46343
46344           eval additional_includedir=\"$includedir\"
46345           eval additional_libdir=\"$libdir\"
46346
46347   exec_prefix="$acl_save_exec_prefix"
46348   prefix="$acl_save_prefix"
46349
46350       else
46351         additional_includedir="$withval/include"
46352         additional_libdir="$withval/$acl_libdirstem"
46353         if test "$acl_libdirstem2" != "$acl_libdirstem" \
46354            && ! test -d "$withval/$acl_libdirstem"; then
46355           additional_libdir="$withval/$acl_libdirstem2"
46356         fi
46357       fi
46358     fi
46359
46360 fi
46361
46362       LIBDL=
46363   LTLIBDL=
46364   INCDL=
46365   LIBDL_PREFIX=
46366       HAVE_LIBDL=
46367   rpathdirs=
46368   ltrpathdirs=
46369   names_already_handled=
46370   names_next_round='dl '
46371   while test -n "$names_next_round"; do
46372     names_this_round="$names_next_round"
46373     names_next_round=
46374     for name in $names_this_round; do
46375       already_handled=
46376       for n in $names_already_handled; do
46377         if test "$n" = "$name"; then
46378           already_handled=yes
46379           break
46380         fi
46381       done
46382       if test -z "$already_handled"; then
46383         names_already_handled="$names_already_handled $name"
46384                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
46385         eval value=\"\$HAVE_LIB$uppername\"
46386         if test -n "$value"; then
46387           if test "$value" = yes; then
46388             eval value=\"\$LIB$uppername\"
46389             test -z "$value" || LIBDL="${LIBDL}${LIBDL:+ }$value"
46390             eval value=\"\$LTLIB$uppername\"
46391             test -z "$value" || LTLIBDL="${LTLIBDL}${LTLIBDL:+ }$value"
46392           else
46393                                     :
46394           fi
46395         else
46396                               found_dir=
46397           found_la=
46398           found_so=
46399           found_a=
46400           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
46401           if test -n "$acl_shlibext"; then
46402             shrext=".$acl_shlibext"             # typically: shrext=.so
46403           else
46404             shrext=
46405           fi
46406           if test $use_additional = yes; then
46407             dir="$additional_libdir"
46408                                     if test -n "$acl_shlibext"; then
46409               if test -f "$dir/$libname$shrext"; then
46410                 found_dir="$dir"
46411                 found_so="$dir/$libname$shrext"
46412               else
46413                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
46414                   ver=`(cd "$dir" && \
46415                         for f in "$libname$shrext".*; do echo "$f"; done \
46416                         | sed -e "s,^$libname$shrext\\\\.,," \
46417                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
46418                         | sed 1q ) 2>/dev/null`
46419                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
46420                     found_dir="$dir"
46421                     found_so="$dir/$libname$shrext.$ver"
46422                   fi
46423                 else
46424                   eval library_names=\"$acl_library_names_spec\"
46425                   for f in $library_names; do
46426                     if test -f "$dir/$f"; then
46427                       found_dir="$dir"
46428                       found_so="$dir/$f"
46429                       break
46430                     fi
46431                   done
46432                 fi
46433               fi
46434             fi
46435                         if test "X$found_dir" = "X"; then
46436               if test -f "$dir/$libname.$acl_libext"; then
46437                 found_dir="$dir"
46438                 found_a="$dir/$libname.$acl_libext"
46439               fi
46440             fi
46441             if test "X$found_dir" != "X"; then
46442               if test -f "$dir/$libname.la"; then
46443                 found_la="$dir/$libname.la"
46444               fi
46445             fi
46446           fi
46447           if test "X$found_dir" = "X"; then
46448             for x in $LDFLAGS $LTLIBDL; do
46449
46450   acl_save_prefix="$prefix"
46451   prefix="$acl_final_prefix"
46452   acl_save_exec_prefix="$exec_prefix"
46453   exec_prefix="$acl_final_exec_prefix"
46454   eval x=\"$x\"
46455   exec_prefix="$acl_save_exec_prefix"
46456   prefix="$acl_save_prefix"
46457
46458               case "$x" in
46459                 -L*)
46460                   dir=`echo "X$x" | sed -e 's/^X-L//'`
46461                                     if test -n "$acl_shlibext"; then
46462                     if test -f "$dir/$libname$shrext"; then
46463                       found_dir="$dir"
46464                       found_so="$dir/$libname$shrext"
46465                     else
46466                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
46467                         ver=`(cd "$dir" && \
46468                               for f in "$libname$shrext".*; do echo "$f"; done \
46469                               | sed -e "s,^$libname$shrext\\\\.,," \
46470                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
46471                               | sed 1q ) 2>/dev/null`
46472                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
46473                           found_dir="$dir"
46474                           found_so="$dir/$libname$shrext.$ver"
46475                         fi
46476                       else
46477                         eval library_names=\"$acl_library_names_spec\"
46478                         for f in $library_names; do
46479                           if test -f "$dir/$f"; then
46480                             found_dir="$dir"
46481                             found_so="$dir/$f"
46482                             break
46483                           fi
46484                         done
46485                       fi
46486                     fi
46487                   fi
46488                                     if test "X$found_dir" = "X"; then
46489                     if test -f "$dir/$libname.$acl_libext"; then
46490                       found_dir="$dir"
46491                       found_a="$dir/$libname.$acl_libext"
46492                     fi
46493                   fi
46494                   if test "X$found_dir" != "X"; then
46495                     if test -f "$dir/$libname.la"; then
46496                       found_la="$dir/$libname.la"
46497                     fi
46498                   fi
46499                   ;;
46500               esac
46501               if test "X$found_dir" != "X"; then
46502                 break
46503               fi
46504             done
46505           fi
46506           if test "X$found_dir" != "X"; then
46507                         LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-L$found_dir -l$name"
46508             if test "X$found_so" != "X"; then
46509                                                         if test "$enable_rpath" = no \
46510                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
46511                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
46512                                 LIBDL="${LIBDL}${LIBDL:+ }$found_so"
46513               else
46514                                                                                 haveit=
46515                 for x in $ltrpathdirs; do
46516                   if test "X$x" = "X$found_dir"; then
46517                     haveit=yes
46518                     break
46519                   fi
46520                 done
46521                 if test -z "$haveit"; then
46522                   ltrpathdirs="$ltrpathdirs $found_dir"
46523                 fi
46524                                 if test "$acl_hardcode_direct" = yes; then
46525                                                       LIBDL="${LIBDL}${LIBDL:+ }$found_so"
46526                 else
46527                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
46528                                                             LIBDL="${LIBDL}${LIBDL:+ }$found_so"
46529                                                             haveit=
46530                     for x in $rpathdirs; do
46531                       if test "X$x" = "X$found_dir"; then
46532                         haveit=yes
46533                         break
46534                       fi
46535                     done
46536                     if test -z "$haveit"; then
46537                       rpathdirs="$rpathdirs $found_dir"
46538                     fi
46539                   else
46540                                                                                 haveit=
46541                     for x in $LDFLAGS $LIBDL; do
46542
46543   acl_save_prefix="$prefix"
46544   prefix="$acl_final_prefix"
46545   acl_save_exec_prefix="$exec_prefix"
46546   exec_prefix="$acl_final_exec_prefix"
46547   eval x=\"$x\"
46548   exec_prefix="$acl_save_exec_prefix"
46549   prefix="$acl_save_prefix"
46550
46551                       if test "X$x" = "X-L$found_dir"; then
46552                         haveit=yes
46553                         break
46554                       fi
46555                     done
46556                     if test -z "$haveit"; then
46557                       LIBDL="${LIBDL}${LIBDL:+ }-L$found_dir"
46558                     fi
46559                     if test "$acl_hardcode_minus_L" != no; then
46560                                                                                         LIBDL="${LIBDL}${LIBDL:+ }$found_so"
46561                     else
46562                                                                                                                                                                                 LIBDL="${LIBDL}${LIBDL:+ }-l$name"
46563                     fi
46564                   fi
46565                 fi
46566               fi
46567             else
46568               if test "X$found_a" != "X"; then
46569                                 LIBDL="${LIBDL}${LIBDL:+ }$found_a"
46570               else
46571                                                 LIBDL="${LIBDL}${LIBDL:+ }-L$found_dir -l$name"
46572               fi
46573             fi
46574                         additional_includedir=
46575             case "$found_dir" in
46576               */$acl_libdirstem | */$acl_libdirstem/)
46577                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
46578                 if test "$name" = 'dl'; then
46579                   LIBDL_PREFIX="$basedir"
46580                 fi
46581                 additional_includedir="$basedir/include"
46582                 ;;
46583               */$acl_libdirstem2 | */$acl_libdirstem2/)
46584                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
46585                 if test "$name" = 'dl'; then
46586                   LIBDL_PREFIX="$basedir"
46587                 fi
46588                 additional_includedir="$basedir/include"
46589                 ;;
46590             esac
46591             if test "X$additional_includedir" != "X"; then
46592                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
46593                 haveit=
46594                 if test "X$additional_includedir" = "X/usr/local/include"; then
46595                   if test -n "$GCC"; then
46596                     case $host_os in
46597                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
46598                     esac
46599                   fi
46600                 fi
46601                 if test -z "$haveit"; then
46602                   for x in $CPPFLAGS $INCDL; do
46603
46604   acl_save_prefix="$prefix"
46605   prefix="$acl_final_prefix"
46606   acl_save_exec_prefix="$exec_prefix"
46607   exec_prefix="$acl_final_exec_prefix"
46608   eval x=\"$x\"
46609   exec_prefix="$acl_save_exec_prefix"
46610   prefix="$acl_save_prefix"
46611
46612                     if test "X$x" = "X-I$additional_includedir"; then
46613                       haveit=yes
46614                       break
46615                     fi
46616                   done
46617                   if test -z "$haveit"; then
46618                     if test -d "$additional_includedir"; then
46619                                             INCDL="${INCDL}${INCDL:+ }-I$additional_includedir"
46620                     fi
46621                   fi
46622                 fi
46623               fi
46624             fi
46625                         if test -n "$found_la"; then
46626                                                         save_libdir="$libdir"
46627               case "$found_la" in
46628                 */* | *\\*) . "$found_la" ;;
46629                 *) . "./$found_la" ;;
46630               esac
46631               libdir="$save_libdir"
46632                             for dep in $dependency_libs; do
46633                 case "$dep" in
46634                   -L*)
46635                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
46636                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
46637                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
46638                       haveit=
46639                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
46640                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
46641                         if test -n "$GCC"; then
46642                           case $host_os in
46643                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
46644                           esac
46645                         fi
46646                       fi
46647                       if test -z "$haveit"; then
46648                         haveit=
46649                         for x in $LDFLAGS $LIBDL; do
46650
46651   acl_save_prefix="$prefix"
46652   prefix="$acl_final_prefix"
46653   acl_save_exec_prefix="$exec_prefix"
46654   exec_prefix="$acl_final_exec_prefix"
46655   eval x=\"$x\"
46656   exec_prefix="$acl_save_exec_prefix"
46657   prefix="$acl_save_prefix"
46658
46659                           if test "X$x" = "X-L$additional_libdir"; then
46660                             haveit=yes
46661                             break
46662                           fi
46663                         done
46664                         if test -z "$haveit"; then
46665                           if test -d "$additional_libdir"; then
46666                                                         LIBDL="${LIBDL}${LIBDL:+ }-L$additional_libdir"
46667                           fi
46668                         fi
46669                         haveit=
46670                         for x in $LDFLAGS $LTLIBDL; do
46671
46672   acl_save_prefix="$prefix"
46673   prefix="$acl_final_prefix"
46674   acl_save_exec_prefix="$exec_prefix"
46675   exec_prefix="$acl_final_exec_prefix"
46676   eval x=\"$x\"
46677   exec_prefix="$acl_save_exec_prefix"
46678   prefix="$acl_save_prefix"
46679
46680                           if test "X$x" = "X-L$additional_libdir"; then
46681                             haveit=yes
46682                             break
46683                           fi
46684                         done
46685                         if test -z "$haveit"; then
46686                           if test -d "$additional_libdir"; then
46687                                                         LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-L$additional_libdir"
46688                           fi
46689                         fi
46690                       fi
46691                     fi
46692                     ;;
46693                   -R*)
46694                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
46695                     if test "$enable_rpath" != no; then
46696                                                                   haveit=
46697                       for x in $rpathdirs; do
46698                         if test "X$x" = "X$dir"; then
46699                           haveit=yes
46700                           break
46701                         fi
46702                       done
46703                       if test -z "$haveit"; then
46704                         rpathdirs="$rpathdirs $dir"
46705                       fi
46706                                                                   haveit=
46707                       for x in $ltrpathdirs; do
46708                         if test "X$x" = "X$dir"; then
46709                           haveit=yes
46710                           break
46711                         fi
46712                       done
46713                       if test -z "$haveit"; then
46714                         ltrpathdirs="$ltrpathdirs $dir"
46715                       fi
46716                     fi
46717                     ;;
46718                   -l*)
46719                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
46720                     ;;
46721                   *.la)
46722                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
46723                     ;;
46724                   *)
46725                                         LIBDL="${LIBDL}${LIBDL:+ }$dep"
46726                     LTLIBDL="${LTLIBDL}${LTLIBDL:+ }$dep"
46727                     ;;
46728                 esac
46729               done
46730             fi
46731           else
46732                                                             LIBDL="${LIBDL}${LIBDL:+ }-l$name"
46733             LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-l$name"
46734           fi
46735         fi
46736       fi
46737     done
46738   done
46739   if test "X$rpathdirs" != "X"; then
46740     if test -n "$acl_hardcode_libdir_separator"; then
46741                         alldirs=
46742       for found_dir in $rpathdirs; do
46743         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
46744       done
46745             acl_save_libdir="$libdir"
46746       libdir="$alldirs"
46747       eval flag=\"$acl_hardcode_libdir_flag_spec\"
46748       libdir="$acl_save_libdir"
46749       LIBDL="${LIBDL}${LIBDL:+ }$flag"
46750     else
46751             for found_dir in $rpathdirs; do
46752         acl_save_libdir="$libdir"
46753         libdir="$found_dir"
46754         eval flag=\"$acl_hardcode_libdir_flag_spec\"
46755         libdir="$acl_save_libdir"
46756         LIBDL="${LIBDL}${LIBDL:+ }$flag"
46757       done
46758     fi
46759   fi
46760   if test "X$ltrpathdirs" != "X"; then
46761             for found_dir in $ltrpathdirs; do
46762       LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-R$found_dir"
46763     done
46764   fi
46765
46766
46767
46768
46769
46770
46771
46772         ac_save_CPPFLAGS="$CPPFLAGS"
46773
46774   for element in $INCDL; do
46775     haveit=
46776     for x in $CPPFLAGS; do
46777
46778   acl_save_prefix="$prefix"
46779   prefix="$acl_final_prefix"
46780   acl_save_exec_prefix="$exec_prefix"
46781   exec_prefix="$acl_final_exec_prefix"
46782   eval x=\"$x\"
46783   exec_prefix="$acl_save_exec_prefix"
46784   prefix="$acl_save_prefix"
46785
46786       if test "X$x" = "X$element"; then
46787         haveit=yes
46788         break
46789       fi
46790     done
46791     if test -z "$haveit"; then
46792       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
46793     fi
46794   done
46795
46796
46797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdl" >&5
46798 $as_echo_n "checking for libdl... " >&6; }
46799 if ${ac_cv_libdl+:} false; then :
46800   $as_echo_n "(cached) " >&6
46801 else
46802
46803     ac_save_LIBS="$LIBS"
46804                                 case " $LIBDL" in
46805       *" -l"*) LIBS="$LIBS $LIBDL" ;;
46806       *)       LIBS="$LIBDL $LIBS" ;;
46807     esac
46808     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46809 /* end confdefs.h.  */
46810 #include <dlfcn.h>
46811 int
46812 main ()
46813 {
46814 dladdr (0, 0);
46815   ;
46816   return 0;
46817 }
46818 _ACEOF
46819 if ac_fn_c_try_link "$LINENO"; then :
46820   ac_cv_libdl=yes
46821 else
46822   ac_cv_libdl='no'
46823 fi
46824 rm -f core conftest.err conftest.$ac_objext \
46825     conftest$ac_exeext conftest.$ac_ext
46826     LIBS="$ac_save_LIBS"
46827
46828 fi
46829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libdl" >&5
46830 $as_echo "$ac_cv_libdl" >&6; }
46831   if test "$ac_cv_libdl" = yes; then
46832     HAVE_LIBDL=yes
46833
46834 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
46835
46836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libdl" >&5
46837 $as_echo_n "checking how to link with libdl... " >&6; }
46838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBDL" >&5
46839 $as_echo "$LIBDL" >&6; }
46840   else
46841     HAVE_LIBDL=no
46842             CPPFLAGS="$ac_save_CPPFLAGS"
46843     LIBDL=
46844     LTLIBDL=
46845     LIBDL_PREFIX=
46846   fi
46847
46848
46849
46850
46851
46852
46853
46854
46855 # Check whether --enable-fips140-mode was given.
46856 if test "${enable_fips140_mode+set}" = set; then :
46857   enableval=$enable_fips140_mode; enable_fips=$enableval
46858 else
46859   enable_fips=no
46860 fi
46861
46862  if test "$enable_fips" = "yes"; then
46863   ENABLE_FIPS140_TRUE=
46864   ENABLE_FIPS140_FALSE='#'
46865 else
46866   ENABLE_FIPS140_TRUE='#'
46867   ENABLE_FIPS140_FALSE=
46868 fi
46869
46870 if  test "$enable_fips" = "yes" ;then
46871   if test "x$HAVE_LIBDL" = "xyes";then
46872     enable_self_checks=yes
46873
46874
46875 $as_echo "#define ENABLE_FIPS140 1" >>confdefs.h
46876
46877
46878     FIPS140_LIBS=$LIBDL
46879
46880   else
46881     enable_fips=no
46882     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
46883 ***
46884 *** This system is not supported in FIPS140 mode.
46885 *** libdl and dladdr() are required.
46886 *** " >&5
46887 $as_echo "$as_me: WARNING:
46888 ***
46889 *** This system is not supported in FIPS140 mode.
46890 *** libdl and dladdr() are required.
46891 *** " >&2;}
46892   fi
46893 fi
46894
46895 # Check whether --enable-non-suiteb-curves was given.
46896 if test "${enable_non_suiteb_curves+set}" = set; then :
46897   enableval=$enable_non_suiteb_curves; enable_non_suiteb=$enableval
46898 else
46899   enable_non_suiteb=yes
46900 fi
46901
46902 if  test "$enable_non_suiteb" = "yes" ;then
46903
46904 $as_echo "#define ENABLE_NON_SUITEB_CURVES 1" >>confdefs.h
46905
46906 fi
46907  if test "$enable_non_suiteb" = "yes"; then
46908   ENABLE_NON_SUITEB_CURVES_TRUE=
46909   ENABLE_NON_SUITEB_CURVES_FALSE='#'
46910 else
46911   ENABLE_NON_SUITEB_CURVES_TRUE='#'
46912   ENABLE_NON_SUITEB_CURVES_FALSE=
46913 fi
46914
46915
46916  if test "$enable_self_checks" = "yes"; then
46917   ENABLE_SELF_CHECKS_TRUE=
46918   ENABLE_SELF_CHECKS_FALSE='#'
46919 else
46920   ENABLE_SELF_CHECKS_TRUE='#'
46921   ENABLE_SELF_CHECKS_FALSE=
46922 fi
46923
46924 if  test "$enable_self_checks" = "yes" ;then
46925
46926 $as_echo "#define ENABLE_SELF_CHECKS 1" >>confdefs.h
46927
46928 fi
46929
46930
46931 # Check whether --with-arcfour128 was given.
46932 if test "${with_arcfour128+set}" = set; then :
46933   withval=$with_arcfour128; enable_arcfour=$withval
46934 else
46935   enable_arcfour=no
46936 fi
46937
46938 if  test "$enable_arcfour" = "yes" ;then
46939
46940 $as_echo "#define ENABLE_ARCFOUR128 1" >>confdefs.h
46941
46942 fi
46943  if test "$enable_arcfour" = "yes"; then
46944   ENABLE_ARCFOUR128_TRUE=
46945   ENABLE_ARCFOUR128_FALSE='#'
46946 else
46947   ENABLE_ARCFOUR128_TRUE='#'
46948   ENABLE_ARCFOUR128_FALSE=
46949 fi
46950
46951
46952
46953 # Check whether --with-ssl3 was given.
46954 if test "${with_ssl3+set}" = set; then :
46955   withval=$with_ssl3; enable_ssl3=$withval
46956 else
46957   enable_ssl3=no
46958 fi
46959
46960 if  test "$enable_ssl3" = "yes" ;then
46961
46962 $as_echo "#define ENABLE_SSL3 1" >>confdefs.h
46963
46964 fi
46965  if test "$enable_ssl3" = "yes"; then
46966   ENABLE_SSL3_TRUE=
46967   ENABLE_SSL3_FALSE='#'
46968 else
46969   ENABLE_SSL3_TRUE='#'
46970   ENABLE_SSL3_FALSE=
46971 fi
46972
46973
46974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build libdane" >&5
46975 $as_echo_n "checking whether to build libdane... " >&6; }
46976 # Check whether --enable-libdane was given.
46977 if test "${enable_libdane+set}" = set; then :
46978   enableval=$enable_libdane; enable_dane=$enableval
46979 else
46980   enable_dane=yes
46981 fi
46982
46983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dane" >&5
46984 $as_echo "$enable_dane" >&6; }
46985
46986 if test "$enable_dane" != "no"; then
46987     LIBS="$oldlibs -lunbound"
46988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unbound library" >&5
46989 $as_echo_n "checking for unbound library... " >&6; }
46990     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46991 /* end confdefs.h.  */
46992
46993                    #include <unbound.h>
46994 int
46995 main ()
46996 {
46997
46998                    struct ub_ctx* ctx;
46999                    ctx = ub_ctx_create();
47000   ;
47001   return 0;
47002 }
47003 _ACEOF
47004 if ac_fn_c_try_link "$LINENO"; then :
47005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47006 $as_echo "yes" >&6; }
47007                    UNBOUND_LIBS=-lunbound
47008
47009
47010
47011 $as_echo "#define HAVE_DANE 1" >>confdefs.h
47012
47013                    enable_dane=yes
47014 else
47015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47016 $as_echo "no" >&6; }
47017                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
47018 ***
47019 *** libunbound was not found. Libdane will not be built.
47020 *** " >&5
47021 $as_echo "$as_me: WARNING:
47022 ***
47023 *** libunbound was not found. Libdane will not be built.
47024 *** " >&2;}
47025                   enable_dane=no
47026 fi
47027 rm -f core conftest.err conftest.$ac_objext \
47028     conftest$ac_exeext conftest.$ac_ext
47029     LIBS="$oldlibs"
47030 fi
47031
47032  if test "$enable_dane" = "yes"; then
47033   ENABLE_DANE_TRUE=
47034   ENABLE_DANE_FALSE='#'
47035 else
47036   ENABLE_DANE_TRUE='#'
47037   ENABLE_DANE_FALSE=
47038 fi
47039
47040
47041
47042 # Check whether --with-unbound-root-key-file was given.
47043 if test "${with_unbound_root_key_file+set}" = set; then :
47044   withval=$with_unbound_root_key_file; unbound_root_key_file="$withval"
47045 else
47046   if test "$have_win" = yes; then
47047     unbound_root_key_file="C:\\Program Files\\Unbound\\root.key"
47048 else
47049     if test -f /var/lib/unbound/root.key;then
47050         unbound_root_key_file="/var/lib/unbound/root.key"
47051     else
47052         if test -f /usr/share/dns/root.key;then
47053             unbound_root_key_file="/usr/share/dns/root.key"
47054         else
47055             unbound_root_key_file="/etc/unbound/root.key"
47056         fi
47057     fi
47058 fi
47059
47060 fi
47061
47062
47063
47064 cat >>confdefs.h <<_ACEOF
47065 #define UNBOUND_ROOT_KEY_FILE "$unbound_root_key_file"
47066 _ACEOF
47067
47068
47069
47070 # Check whether --with-system-priority-file was given.
47071 if test "${with_system_priority_file+set}" = set; then :
47072   withval=$with_system_priority_file; system_priority_file="$withval"
47073 else
47074   system_priority_file="/etc/gnutls/default-priorities"
47075
47076 fi
47077
47078
47079
47080 cat >>confdefs.h <<_ACEOF
47081 #define SYSTEM_PRIORITY_FILE "$system_priority_file"
47082 _ACEOF
47083
47084
47085
47086 P11_KIT_MINIMUM=0.20.7
47087
47088 # Check whether --with-p11-kit was given.
47089 if test "${with_p11_kit+set}" = set; then :
47090   withval=$with_p11_kit;
47091 fi
47092
47093 if test "$with_p11_kit" != "no"; then
47094
47095 pkg_failed=no
47096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for P11_KIT" >&5
47097 $as_echo_n "checking for P11_KIT... " >&6; }
47098
47099 if test -n "$PKG_CONFIG"; then
47100     if test -n "$P11_KIT_CFLAGS"; then
47101         pkg_cv_P11_KIT_CFLAGS="$P11_KIT_CFLAGS"
47102     else
47103         if test -n "$PKG_CONFIG" && \
47104     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= \$P11_KIT_MINIMUM\""; } >&5
47105   ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM") 2>&5
47106   ac_status=$?
47107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47108   test $ac_status = 0; }; then
47109   pkg_cv_P11_KIT_CFLAGS=`$PKG_CONFIG --cflags "p11-kit-1 >= $P11_KIT_MINIMUM" 2>/dev/null`
47110 else
47111   pkg_failed=yes
47112 fi
47113     fi
47114 else
47115         pkg_failed=untried
47116 fi
47117 if test -n "$PKG_CONFIG"; then
47118     if test -n "$P11_KIT_LIBS"; then
47119         pkg_cv_P11_KIT_LIBS="$P11_KIT_LIBS"
47120     else
47121         if test -n "$PKG_CONFIG" && \
47122     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= \$P11_KIT_MINIMUM\""; } >&5
47123   ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM") 2>&5
47124   ac_status=$?
47125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47126   test $ac_status = 0; }; then
47127   pkg_cv_P11_KIT_LIBS=`$PKG_CONFIG --libs "p11-kit-1 >= $P11_KIT_MINIMUM" 2>/dev/null`
47128 else
47129   pkg_failed=yes
47130 fi
47131     fi
47132 else
47133         pkg_failed=untried
47134 fi
47135
47136
47137
47138 if test $pkg_failed = yes; then
47139
47140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47141         _pkg_short_errors_supported=yes
47142 else
47143         _pkg_short_errors_supported=no
47144 fi
47145         if test $_pkg_short_errors_supported = yes; then
47146                 P11_KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM"`
47147         else
47148                 P11_KIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM"`
47149         fi
47150         # Put the nasty error message in config.log where it belongs
47151         echo "$P11_KIT_PKG_ERRORS" >&5
47152
47153         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47154 $as_echo "no" >&6; }
47155                 with_p11_kit=no
47156 elif test $pkg_failed = untried; then
47157         with_p11_kit=no
47158 else
47159         P11_KIT_CFLAGS=$pkg_cv_P11_KIT_CFLAGS
47160         P11_KIT_LIBS=$pkg_cv_P11_KIT_LIBS
47161         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47162 $as_echo "yes" >&6; }
47163         with_p11_kit=yes
47164 fi
47165         if test "$with_p11_kit" != "no";then
47166
47167 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
47168
47169                 if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
47170                         GNUTLS_REQUIRES_PRIVATE="Requires.private: p11-kit-1"
47171                 else
47172                         GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, p11-kit-1"
47173                 fi
47174                 if ! $PKG_CONFIG --atleast-version=0.22.0 p11-kit-1; then
47175                         with_buggy_p11_kit=yes
47176                 fi
47177                 if $PKG_CONFIG --atleast-version=0.23.1 p11-kit-1; then
47178
47179 $as_echo "#define P11_KIT_HAS_PIN_VALUE 1" >>confdefs.h
47180
47181                 fi
47182         else
47183                 with_p11_kit=no
47184                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
47185 ***
47186 *** p11-kit >= $P11_KIT_MINIMUM was not found. PKCS #11 support will be disabled.
47187 *** You may get it from http://p11-glue.freedesktop.org/p11-kit.html
47188 *** " >&5
47189 $as_echo "$as_me: WARNING:
47190 ***
47191 *** p11-kit >= $P11_KIT_MINIMUM was not found. PKCS #11 support will be disabled.
47192 *** You may get it from http://p11-glue.freedesktop.org/p11-kit.html
47193 *** " >&2;}
47194         fi
47195 fi
47196
47197  if test "$with_p11_kit" != "no"; then
47198   ENABLE_PKCS11_TRUE=
47199   ENABLE_PKCS11_FALSE='#'
47200 else
47201   ENABLE_PKCS11_TRUE='#'
47202   ENABLE_PKCS11_FALSE=
47203 fi
47204
47205  if test "$with_buggy_p11_kit" = "yes"; then
47206   HAVE_BUGGY_P11_KIT_TRUE=
47207   HAVE_BUGGY_P11_KIT_FALSE='#'
47208 else
47209   HAVE_BUGGY_P11_KIT_TRUE='#'
47210   HAVE_BUGGY_P11_KIT_FALSE=
47211 fi
47212
47213
47214
47215 # Check whether --with-tpm was given.
47216 if test "${with_tpm+set}" = set; then :
47217   withval=$with_tpm; with_tpm=$withval
47218 else
47219   with_tpm=yes
47220 fi
47221
47222 if test "$with_tpm" != "no"; then
47223     LIBS="$oldlibs -ltspi"
47224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tss library" >&5
47225 $as_echo_n "checking for tss library... " >&6; }
47226     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47227 /* end confdefs.h.  */
47228
47229                    #include <trousers/tss.h>
47230                    #include <trousers/trousers.h>
47231 int
47232 main ()
47233 {
47234
47235                    int err = Tspi_Context_Create((void *)0);
47236                    Trspi_Error_String(err);
47237   ;
47238   return 0;
47239 }
47240 _ACEOF
47241 if ac_fn_c_try_link "$LINENO"; then :
47242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47243 $as_echo "yes" >&6; }
47244                    TSS_LIBS=-ltspi
47245
47246
47247
47248 $as_echo "#define HAVE_TROUSERS 1" >>confdefs.h
47249
47250                    with_tpm=yes
47251 else
47252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47253 $as_echo "no" >&6; }
47254                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
47255 ***
47256 *** trousers was not found. TPM support will be disabled.
47257 *** " >&5
47258 $as_echo "$as_me: WARNING:
47259 ***
47260 *** trousers was not found. TPM support will be disabled.
47261 *** " >&2;}
47262                   with_tpm=no
47263 fi
47264 rm -f core conftest.err conftest.$ac_objext \
47265     conftest$ac_exeext conftest.$ac_ext
47266     LIBS="$oldlibs"
47267 fi
47268
47269  if test "$with_tpm" != "no"; then
47270   ENABLE_TROUSERS_TRUE=
47271   ENABLE_TROUSERS_FALSE='#'
47272 else
47273   ENABLE_TROUSERS_TRUE='#'
47274   ENABLE_TROUSERS_FALSE=
47275 fi
47276
47277
47278 for l in /usr/lib64 /usr/lib /lib64 /lib /usr/lib/x86_64-linux-gnu/; do
47279     if test -f "${l}/libtspi.so.1";then
47280         default_trousers_lib="${l}/libtspi.so.1"
47281         break
47282     fi
47283 done
47284
47285
47286 # Check whether --with-trousers-lib was given.
47287 if test "${with_trousers_lib+set}" = set; then :
47288   withval=$with_trousers_lib; ac_trousers_lib=$withval
47289 else
47290   ac_trousers_lib=$default_trousers_lib
47291 fi
47292
47293
47294 if test "$with_tpm" != "no" && test -z "$ac_trousers_lib"; then
47295     as_fn_error $? "
47296   ***
47297   *** unable to find trousers library, please specify with --with-trousers-lib=<lib file>
47298   ***
47299   " "$LINENO" 5
47300 fi
47301
47302
47303 cat >>confdefs.h <<_ACEOF
47304 #define TROUSERS_LIB "$ac_trousers_lib"
47305 _ACEOF
47306
47307
47308
47309
47310
47311   ac_header_dirent=no
47312 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
47313   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
47314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
47315 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
47316 if eval \${$as_ac_Header+:} false; then :
47317   $as_echo_n "(cached) " >&6
47318 else
47319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47320 /* end confdefs.h.  */
47321 #include <sys/types.h>
47322 #include <$ac_hdr>
47323
47324 int
47325 main ()
47326 {
47327 if ((DIR *) 0)
47328 return 0;
47329   ;
47330   return 0;
47331 }
47332 _ACEOF
47333 if ac_fn_c_try_compile "$LINENO"; then :
47334   eval "$as_ac_Header=yes"
47335 else
47336   eval "$as_ac_Header=no"
47337 fi
47338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47339 fi
47340 eval ac_res=\$$as_ac_Header
47341                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
47342 $as_echo "$ac_res" >&6; }
47343 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47344   cat >>confdefs.h <<_ACEOF
47345 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
47346 _ACEOF
47347
47348 ac_header_dirent=$ac_hdr; break
47349 fi
47350
47351 done
47352 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
47353 if test $ac_header_dirent = dirent.h; then
47354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
47355 $as_echo_n "checking for library containing opendir... " >&6; }
47356 if ${ac_cv_search_opendir+:} false; then :
47357   $as_echo_n "(cached) " >&6
47358 else
47359   ac_func_search_save_LIBS=$LIBS
47360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47361 /* end confdefs.h.  */
47362
47363 /* Override any GCC internal prototype to avoid an error.
47364    Use char because int might match the return type of a GCC
47365    builtin and then its argument prototype would still apply.  */
47366 #ifdef __cplusplus
47367 extern "C"
47368 #endif
47369 char opendir ();
47370 int
47371 main ()
47372 {
47373 return opendir ();
47374   ;
47375   return 0;
47376 }
47377 _ACEOF
47378 for ac_lib in '' dir; do
47379   if test -z "$ac_lib"; then
47380     ac_res="none required"
47381   else
47382     ac_res=-l$ac_lib
47383     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
47384   fi
47385   if ac_fn_c_try_link "$LINENO"; then :
47386   ac_cv_search_opendir=$ac_res
47387 fi
47388 rm -f core conftest.err conftest.$ac_objext \
47389     conftest$ac_exeext
47390   if ${ac_cv_search_opendir+:} false; then :
47391   break
47392 fi
47393 done
47394 if ${ac_cv_search_opendir+:} false; then :
47395
47396 else
47397   ac_cv_search_opendir=no
47398 fi
47399 rm conftest.$ac_ext
47400 LIBS=$ac_func_search_save_LIBS
47401 fi
47402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
47403 $as_echo "$ac_cv_search_opendir" >&6; }
47404 ac_res=$ac_cv_search_opendir
47405 if test "$ac_res" != no; then :
47406   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
47407
47408 fi
47409
47410 else
47411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
47412 $as_echo_n "checking for library containing opendir... " >&6; }
47413 if ${ac_cv_search_opendir+:} false; then :
47414   $as_echo_n "(cached) " >&6
47415 else
47416   ac_func_search_save_LIBS=$LIBS
47417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47418 /* end confdefs.h.  */
47419
47420 /* Override any GCC internal prototype to avoid an error.
47421    Use char because int might match the return type of a GCC
47422    builtin and then its argument prototype would still apply.  */
47423 #ifdef __cplusplus
47424 extern "C"
47425 #endif
47426 char opendir ();
47427 int
47428 main ()
47429 {
47430 return opendir ();
47431   ;
47432   return 0;
47433 }
47434 _ACEOF
47435 for ac_lib in '' x; do
47436   if test -z "$ac_lib"; then
47437     ac_res="none required"
47438   else
47439     ac_res=-l$ac_lib
47440     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
47441   fi
47442   if ac_fn_c_try_link "$LINENO"; then :
47443   ac_cv_search_opendir=$ac_res
47444 fi
47445 rm -f core conftest.err conftest.$ac_objext \
47446     conftest$ac_exeext
47447   if ${ac_cv_search_opendir+:} false; then :
47448   break
47449 fi
47450 done
47451 if ${ac_cv_search_opendir+:} false; then :
47452
47453 else
47454   ac_cv_search_opendir=no
47455 fi
47456 rm conftest.$ac_ext
47457 LIBS=$ac_func_search_save_LIBS
47458 fi
47459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
47460 $as_echo "$ac_cv_search_opendir" >&6; }
47461 ac_res=$ac_cv_search_opendir
47462 if test "$ac_res" != no; then :
47463   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
47464
47465 fi
47466
47467 fi
47468
47469
47470   # =================
47471   # AC_CHECK_HEADERS
47472   # =================
47473   for ac_header in  \
47474       sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
47475       sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
47476       sys/un.h      sys/wait.h    dlfcn.h       errno.h \
47477       fcntl.h       libgen.h      libintl.h     memory.h \
47478       netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
47479       unistd.h      utime.h
47480 do :
47481   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47482 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
47483 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47484   cat >>confdefs.h <<_ACEOF
47485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47486 _ACEOF
47487
47488 fi
47489
47490 done
47491
47492
47493   for ac_header in stdarg.h     varargs.h
47494 do :
47495   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47496 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
47497 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47498   cat >>confdefs.h <<_ACEOF
47499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47500 _ACEOF
47501  lo_have_arg_hdr=true;break
47502 else
47503   lo_have_arg_hdr=false
47504 fi
47505
47506 done
47507
47508
47509   for ac_header in string.h     strings.h
47510 do :
47511   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47512 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
47513 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47514   cat >>confdefs.h <<_ACEOF
47515 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47516 _ACEOF
47517  lo_have_str_hdr=true;break
47518 else
47519   lo_have_str_hdr=false
47520 fi
47521
47522 done
47523
47524
47525   for ac_header in limits.h     sys/limits.h  values.h
47526 do :
47527   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47528 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
47529 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47530   cat >>confdefs.h <<_ACEOF
47531 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47532 _ACEOF
47533  lo_have_lim_hdr=true;break
47534 else
47535   lo_have_lim_hdr=false
47536 fi
47537
47538 done
47539
47540
47541   for ac_header in inttypes.h   stdint.h
47542 do :
47543   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47544 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
47545 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47546   cat >>confdefs.h <<_ACEOF
47547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47548 _ACEOF
47549  lo_have_typ_hdr=true;break
47550 else
47551   lo_have_typ_hdr=false
47552 fi
47553
47554 done
47555
47556
47557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
47558 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
47559 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
47560   $as_echo_n "(cached) " >&6
47561 else
47562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47563 /* end confdefs.h.  */
47564 #include <stdlib.h>
47565             #include <stdnoreturn.h>
47566             /* Do not check for 'noreturn' after the return type.
47567                C11 allows it, but it's rarely done that way
47568                and circa-2012 bleeding-edge GCC rejects it when given
47569                -Werror=old-style-declaration.  */
47570             noreturn void foo1 (void) { exit (0); }
47571             _Noreturn void foo2 (void) { exit (0); }
47572             int testit (int argc, char **argv) {
47573               if (argc & 1)
47574                 return 0;
47575               (argv[0][0] ? foo1 : foo2) ();
47576             }
47577
47578 int
47579 main ()
47580 {
47581
47582   ;
47583   return 0;
47584 }
47585 _ACEOF
47586 if ac_fn_c_try_compile "$LINENO"; then :
47587   gl_cv_header_working_stdnoreturn_h=yes
47588 else
47589   gl_cv_header_working_stdnoreturn_h=no
47590 fi
47591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47592 fi
47593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
47594 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
47595
47596   if test $gl_cv_header_working_stdnoreturn_h = yes; then
47597     STDNORETURN_H=''
47598   else
47599     STDNORETURN_H='stdnoreturn.h'
47600   fi
47601
47602
47603    if test -n "$STDNORETURN_H"; then
47604   GL_GENERATE_STDNORETURN_H_TRUE=
47605   GL_GENERATE_STDNORETURN_H_FALSE='#'
47606 else
47607   GL_GENERATE_STDNORETURN_H_TRUE='#'
47608   GL_GENERATE_STDNORETURN_H_FALSE=
47609 fi
47610
47611
47612
47613   # ----------------------------------------------------------------------
47614   # check for various programs used during the build.
47615   # On OS/X, "wchar.h" needs "runetype.h" to work properly.
47616   # ----------------------------------------------------------------------
47617   for ac_header in runetype.h wchar.h
47618 do :
47619   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47620 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
47621   $ac_includes_default
47622   #if HAVE_RUNETYPE_H
47623   # include <runetype.h>
47624   #endif
47625
47626 "
47627 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47628   cat >>confdefs.h <<_ACEOF
47629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47630 _ACEOF
47631
47632 fi
47633
47634 done
47635
47636
47637   # Check whether --enable-nls was given.
47638 if test "${enable_nls+set}" = set; then :
47639   enableval=$enable_nls;
47640 fi
47641
47642   if test "x$enable_nls" != "xno" && \
47643   test "X${ac_cv_header_libintl_h}" = Xyes; then :
47644
47645
47646 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
47647
47648 fi
47649
47650   # --------------------------------------------
47651   # Verify certain entries from AC_CHECK_HEADERS
47652   # --------------------------------------------
47653   ${lo_have_arg_hdr} || \
47654     as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
47655
47656   ${lo_have_str_hdr} || \
47657     as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
47658
47659   ${lo_have_lim_hdr} || \
47660     as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
47661
47662   ${lo_have_typ_hdr} || \
47663     as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
47664
47665   for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
47666   do eval as_ac_var=\${ac_cv_header_${f}_h}
47667      test "X${as_ac_var}" = Xyes || {
47668        as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
47669      }
47670   done
47671   test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
47672     echo '#include <stdint.h>' > inttypes.h
47673
47674   # ----------------------------------------------------------------------
47675   # Checks for typedefs
47676   # ----------------------------------------------------------------------
47677   ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
47678 if test "x$ac_cv_type_wchar_t" = xyes; then :
47679
47680 cat >>confdefs.h <<_ACEOF
47681 #define HAVE_WCHAR_T 1
47682 _ACEOF
47683
47684
47685 fi
47686
47687   ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
47688     $ac_includes_default
47689     #if HAVE_RUNETYPE_H
47690     # include <runetype.h>
47691     #endif
47692     #if HAVE_WCHAR_H
47693     # include <wchar.h>
47694     #endif
47695
47696 "
47697 if test "x$ac_cv_type_wint_t" = xyes; then :
47698
47699 cat >>confdefs.h <<_ACEOF
47700 #define HAVE_WINT_T 1
47701 _ACEOF
47702
47703
47704 fi
47705
47706   ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
47707 if test "x$ac_cv_type_int8_t" = xyes; then :
47708
47709 cat >>confdefs.h <<_ACEOF
47710 #define HAVE_INT8_T 1
47711 _ACEOF
47712
47713
47714 fi
47715 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
47716 if test "x$ac_cv_type_uint8_t" = xyes; then :
47717
47718 cat >>confdefs.h <<_ACEOF
47719 #define HAVE_UINT8_T 1
47720 _ACEOF
47721
47722
47723 fi
47724 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
47725 if test "x$ac_cv_type_int16_t" = xyes; then :
47726
47727 cat >>confdefs.h <<_ACEOF
47728 #define HAVE_INT16_T 1
47729 _ACEOF
47730
47731
47732 fi
47733 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
47734 if test "x$ac_cv_type_uint16_t" = xyes; then :
47735
47736 cat >>confdefs.h <<_ACEOF
47737 #define HAVE_UINT16_T 1
47738 _ACEOF
47739
47740
47741 fi
47742 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
47743 if test "x$ac_cv_type_int32_t" = xyes; then :
47744
47745 cat >>confdefs.h <<_ACEOF
47746 #define HAVE_INT32_T 1
47747 _ACEOF
47748
47749
47750 fi
47751 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
47752 if test "x$ac_cv_type_uint32_t" = xyes; then :
47753
47754 cat >>confdefs.h <<_ACEOF
47755 #define HAVE_UINT32_T 1
47756 _ACEOF
47757
47758
47759 fi
47760 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
47761 if test "x$ac_cv_type_intptr_t" = xyes; then :
47762
47763 cat >>confdefs.h <<_ACEOF
47764 #define HAVE_INTPTR_T 1
47765 _ACEOF
47766
47767
47768 fi
47769 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
47770 if test "x$ac_cv_type_uintptr_t" = xyes; then :
47771
47772 cat >>confdefs.h <<_ACEOF
47773 #define HAVE_UINTPTR_T 1
47774 _ACEOF
47775
47776
47777 fi
47778 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
47779 if test "x$ac_cv_type_uint_t" = xyes; then :
47780
47781 cat >>confdefs.h <<_ACEOF
47782 #define HAVE_UINT_T 1
47783 _ACEOF
47784
47785
47786 fi
47787 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
47788 if test "x$ac_cv_type_pid_t" = xyes; then :
47789
47790 cat >>confdefs.h <<_ACEOF
47791 #define HAVE_PID_T 1
47792 _ACEOF
47793
47794
47795 fi
47796 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
47797 if test "x$ac_cv_type_size_t" = xyes; then :
47798
47799 cat >>confdefs.h <<_ACEOF
47800 #define HAVE_SIZE_T 1
47801 _ACEOF
47802
47803
47804 fi
47805 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
47806 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
47807
47808 cat >>confdefs.h <<_ACEOF
47809 #define HAVE_PTRDIFF_T 1
47810 _ACEOF
47811
47812
47813 fi
47814
47815   # The cast to long int works around a bug in the HP C Compiler
47816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47818 # This bug is HP SR number 8606223364.
47819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
47820 $as_echo_n "checking size of char *... " >&6; }
47821 if ${ac_cv_sizeof_char_p+:} false; then :
47822   $as_echo_n "(cached) " >&6
47823 else
47824   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
47825
47826 else
47827   if test "$ac_cv_type_char_p" = yes; then
47828      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47830 as_fn_error 77 "cannot compute sizeof (char *)
47831 See \`config.log' for more details" "$LINENO" 5; }
47832    else
47833      ac_cv_sizeof_char_p=0
47834    fi
47835 fi
47836
47837 fi
47838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
47839 $as_echo "$ac_cv_sizeof_char_p" >&6; }
47840
47841
47842
47843 cat >>confdefs.h <<_ACEOF
47844 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
47845 _ACEOF
47846
47847
47848   # The cast to long int works around a bug in the HP C Compiler
47849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47851 # This bug is HP SR number 8606223364.
47852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
47853 $as_echo_n "checking size of int... " >&6; }
47854 if ${ac_cv_sizeof_int+:} false; then :
47855   $as_echo_n "(cached) " >&6
47856 else
47857   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
47858
47859 else
47860   if test "$ac_cv_type_int" = yes; then
47861      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47863 as_fn_error 77 "cannot compute sizeof (int)
47864 See \`config.log' for more details" "$LINENO" 5; }
47865    else
47866      ac_cv_sizeof_int=0
47867    fi
47868 fi
47869
47870 fi
47871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
47872 $as_echo "$ac_cv_sizeof_int" >&6; }
47873
47874
47875
47876 cat >>confdefs.h <<_ACEOF
47877 #define SIZEOF_INT $ac_cv_sizeof_int
47878 _ACEOF
47879
47880
47881   # The cast to long int works around a bug in the HP C Compiler
47882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47884 # This bug is HP SR number 8606223364.
47885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
47886 $as_echo_n "checking size of long... " >&6; }
47887 if ${ac_cv_sizeof_long+:} false; then :
47888   $as_echo_n "(cached) " >&6
47889 else
47890   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
47891
47892 else
47893   if test "$ac_cv_type_long" = yes; then
47894      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47896 as_fn_error 77 "cannot compute sizeof (long)
47897 See \`config.log' for more details" "$LINENO" 5; }
47898    else
47899      ac_cv_sizeof_long=0
47900    fi
47901 fi
47902
47903 fi
47904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
47905 $as_echo "$ac_cv_sizeof_long" >&6; }
47906
47907
47908
47909 cat >>confdefs.h <<_ACEOF
47910 #define SIZEOF_LONG $ac_cv_sizeof_long
47911 _ACEOF
47912
47913
47914   # The cast to long int works around a bug in the HP C Compiler
47915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47917 # This bug is HP SR number 8606223364.
47918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
47919 $as_echo_n "checking size of short... " >&6; }
47920 if ${ac_cv_sizeof_short+:} false; then :
47921   $as_echo_n "(cached) " >&6
47922 else
47923   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
47924
47925 else
47926   if test "$ac_cv_type_short" = yes; then
47927      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47929 as_fn_error 77 "cannot compute sizeof (short)
47930 See \`config.log' for more details" "$LINENO" 5; }
47931    else
47932      ac_cv_sizeof_short=0
47933    fi
47934 fi
47935
47936 fi
47937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
47938 $as_echo "$ac_cv_sizeof_short" >&6; }
47939
47940
47941
47942 cat >>confdefs.h <<_ACEOF
47943 #define SIZEOF_SHORT $ac_cv_sizeof_short
47944 _ACEOF
47945
47946
47947
47948   # ------------
47949   # AC_CHECK_LIB
47950   # ------------
47951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
47952 $as_echo_n "checking for pathfind in -lgen... " >&6; }
47953 if ${ac_cv_lib_gen_pathfind+:} false; then :
47954   $as_echo_n "(cached) " >&6
47955 else
47956   ac_check_lib_save_LIBS=$LIBS
47957 LIBS="-lgen  $LIBS"
47958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47959 /* end confdefs.h.  */
47960
47961 /* Override any GCC internal prototype to avoid an error.
47962    Use char because int might match the return type of a GCC
47963    builtin and then its argument prototype would still apply.  */
47964 #ifdef __cplusplus
47965 extern "C"
47966 #endif
47967 char pathfind ();
47968 int
47969 main ()
47970 {
47971 return pathfind ();
47972   ;
47973   return 0;
47974 }
47975 _ACEOF
47976 if ac_fn_c_try_link "$LINENO"; then :
47977   ac_cv_lib_gen_pathfind=yes
47978 else
47979   ac_cv_lib_gen_pathfind=no
47980 fi
47981 rm -f core conftest.err conftest.$ac_objext \
47982     conftest$ac_exeext conftest.$ac_ext
47983 LIBS=$ac_check_lib_save_LIBS
47984 fi
47985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
47986 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
47987 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
47988   cat >>confdefs.h <<_ACEOF
47989 #define HAVE_LIBGEN 1
47990 _ACEOF
47991
47992   LIBS="-lgen $LIBS"
47993
47994 fi
47995
47996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
47997 $as_echo_n "checking for gettext in -lintl... " >&6; }
47998 if ${ac_cv_lib_intl_gettext+:} false; then :
47999   $as_echo_n "(cached) " >&6
48000 else
48001   ac_check_lib_save_LIBS=$LIBS
48002 LIBS="-lintl  $LIBS"
48003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48004 /* end confdefs.h.  */
48005
48006 /* Override any GCC internal prototype to avoid an error.
48007    Use char because int might match the return type of a GCC
48008    builtin and then its argument prototype would still apply.  */
48009 #ifdef __cplusplus
48010 extern "C"
48011 #endif
48012 char gettext ();
48013 int
48014 main ()
48015 {
48016 return gettext ();
48017   ;
48018   return 0;
48019 }
48020 _ACEOF
48021 if ac_fn_c_try_link "$LINENO"; then :
48022   ac_cv_lib_intl_gettext=yes
48023 else
48024   ac_cv_lib_intl_gettext=no
48025 fi
48026 rm -f core conftest.err conftest.$ac_objext \
48027     conftest$ac_exeext conftest.$ac_ext
48028 LIBS=$ac_check_lib_save_LIBS
48029 fi
48030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
48031 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
48032 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
48033   cat >>confdefs.h <<_ACEOF
48034 #define HAVE_LIBINTL 1
48035 _ACEOF
48036
48037   LIBS="-lintl $LIBS"
48038
48039 fi
48040
48041   for ac_func in vprintf
48042 do :
48043   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
48044 if test "x$ac_cv_func_vprintf" = xyes; then :
48045   cat >>confdefs.h <<_ACEOF
48046 #define HAVE_VPRINTF 1
48047 _ACEOF
48048
48049 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
48050 if test "x$ac_cv_func__doprnt" = xyes; then :
48051
48052 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
48053
48054 fi
48055
48056 fi
48057 done
48058
48059
48060   for ac_header in vfork.h
48061 do :
48062   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
48063 if test "x$ac_cv_header_vfork_h" = xyes; then :
48064   cat >>confdefs.h <<_ACEOF
48065 #define HAVE_VFORK_H 1
48066 _ACEOF
48067
48068 fi
48069
48070 done
48071
48072 for ac_func in fork vfork
48073 do :
48074   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48075 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
48076 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
48077   cat >>confdefs.h <<_ACEOF
48078 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48079 _ACEOF
48080
48081 fi
48082 done
48083
48084 if test "x$ac_cv_func_fork" = xyes; then
48085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
48086 $as_echo_n "checking for working fork... " >&6; }
48087 if ${ac_cv_func_fork_works+:} false; then :
48088   $as_echo_n "(cached) " >&6
48089 else
48090   if test "$cross_compiling" = yes; then :
48091   ac_cv_func_fork_works=cross
48092 else
48093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48094 /* end confdefs.h.  */
48095 $ac_includes_default
48096 int
48097 main ()
48098 {
48099
48100           /* By Ruediger Kuhlmann. */
48101           return fork () < 0;
48102
48103   ;
48104   return 0;
48105 }
48106 _ACEOF
48107 if ac_fn_c_try_run "$LINENO"; then :
48108   ac_cv_func_fork_works=yes
48109 else
48110   ac_cv_func_fork_works=no
48111 fi
48112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48113   conftest.$ac_objext conftest.beam conftest.$ac_ext
48114 fi
48115
48116 fi
48117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
48118 $as_echo "$ac_cv_func_fork_works" >&6; }
48119
48120 else
48121   ac_cv_func_fork_works=$ac_cv_func_fork
48122 fi
48123 if test "x$ac_cv_func_fork_works" = xcross; then
48124   case $host in
48125     *-*-amigaos* | *-*-msdosdjgpp*)
48126       # Override, as these systems have only a dummy fork() stub
48127       ac_cv_func_fork_works=no
48128       ;;
48129     *)
48130       ac_cv_func_fork_works=yes
48131       ;;
48132   esac
48133   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
48134 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
48135 fi
48136 ac_cv_func_vfork_works=$ac_cv_func_vfork
48137 if test "x$ac_cv_func_vfork" = xyes; then
48138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
48139 $as_echo_n "checking for working vfork... " >&6; }
48140 if ${ac_cv_func_vfork_works+:} false; then :
48141   $as_echo_n "(cached) " >&6
48142 else
48143   if test "$cross_compiling" = yes; then :
48144   ac_cv_func_vfork_works=cross
48145 else
48146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48147 /* end confdefs.h.  */
48148 /* Thanks to Paul Eggert for this test.  */
48149 $ac_includes_default
48150 #include <sys/wait.h>
48151 #ifdef HAVE_VFORK_H
48152 # include <vfork.h>
48153 #endif
48154 /* On some sparc systems, changes by the child to local and incoming
48155    argument registers are propagated back to the parent.  The compiler
48156    is told about this with #include <vfork.h>, but some compilers
48157    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
48158    static variable whose address is put into a register that is
48159    clobbered by the vfork.  */
48160 static void
48161 #ifdef __cplusplus
48162 sparc_address_test (int arg)
48163 # else
48164 sparc_address_test (arg) int arg;
48165 #endif
48166 {
48167   static pid_t child;
48168   if (!child) {
48169     child = vfork ();
48170     if (child < 0) {
48171       perror ("vfork");
48172       _exit(2);
48173     }
48174     if (!child) {
48175       arg = getpid();
48176       write(-1, "", 0);
48177       _exit (arg);
48178     }
48179   }
48180 }
48181
48182 int
48183 main ()
48184 {
48185   pid_t parent = getpid ();
48186   pid_t child;
48187
48188   sparc_address_test (0);
48189
48190   child = vfork ();
48191
48192   if (child == 0) {
48193     /* Here is another test for sparc vfork register problems.  This
48194        test uses lots of local variables, at least as many local
48195        variables as main has allocated so far including compiler
48196        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
48197        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
48198        reuse the register of parent for one of the local variables,
48199        since it will think that parent can't possibly be used any more
48200        in this routine.  Assigning to the local variable will thus
48201        munge parent in the parent process.  */
48202     pid_t
48203       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
48204       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
48205     /* Convince the compiler that p..p7 are live; otherwise, it might
48206        use the same hardware register for all 8 local variables.  */
48207     if (p != p1 || p != p2 || p != p3 || p != p4
48208         || p != p5 || p != p6 || p != p7)
48209       _exit(1);
48210
48211     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
48212        from child file descriptors.  If the child closes a descriptor
48213        before it execs or exits, this munges the parent's descriptor
48214        as well.  Test for this by closing stdout in the child.  */
48215     _exit(close(fileno(stdout)) != 0);
48216   } else {
48217     int status;
48218     struct stat st;
48219
48220     while (wait(&status) != child)
48221       ;
48222     return (
48223          /* Was there some problem with vforking?  */
48224          child < 0
48225
48226          /* Did the child fail?  (This shouldn't happen.)  */
48227          || status
48228
48229          /* Did the vfork/compiler bug occur?  */
48230          || parent != getpid()
48231
48232          /* Did the file descriptor bug occur?  */
48233          || fstat(fileno(stdout), &st) != 0
48234          );
48235   }
48236 }
48237 _ACEOF
48238 if ac_fn_c_try_run "$LINENO"; then :
48239   ac_cv_func_vfork_works=yes
48240 else
48241   ac_cv_func_vfork_works=no
48242 fi
48243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48244   conftest.$ac_objext conftest.beam conftest.$ac_ext
48245 fi
48246
48247 fi
48248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
48249 $as_echo "$ac_cv_func_vfork_works" >&6; }
48250
48251 fi;
48252 if test "x$ac_cv_func_fork_works" = xcross; then
48253   ac_cv_func_vfork_works=$ac_cv_func_vfork
48254   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
48255 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
48256 fi
48257
48258 if test "x$ac_cv_func_vfork_works" = xyes; then
48259
48260 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
48261
48262 else
48263
48264 $as_echo "#define vfork fork" >>confdefs.h
48265
48266 fi
48267 if test "x$ac_cv_func_fork_works" = xyes; then
48268
48269 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
48270
48271 fi
48272
48273   for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
48274                  strrchr strsignal fchmod fstat chmod
48275 do :
48276   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48277 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
48278 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
48279   cat >>confdefs.h <<_ACEOF
48280 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48281 _ACEOF
48282
48283 fi
48284 done
48285
48286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
48287 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
48288 if ${ac_cv_path_SED+:} false; then :
48289   $as_echo_n "(cached) " >&6
48290 else
48291             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
48292      for ac_i in 1 2 3 4 5 6 7; do
48293        ac_script="$ac_script$as_nl$ac_script"
48294      done
48295      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
48296      { ac_script=; unset ac_script;}
48297      if test -z "$SED"; then
48298   ac_path_SED_found=false
48299   # Loop through the user's path and test for each of PROGNAME-LIST
48300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48301 for as_dir in $PATH
48302 do
48303   IFS=$as_save_IFS
48304   test -z "$as_dir" && as_dir=.
48305     for ac_prog in sed gsed; do
48306     for ac_exec_ext in '' $ac_executable_extensions; do
48307       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
48308       as_fn_executable_p "$ac_path_SED" || continue
48309 # Check for GNU ac_path_SED and select it if it is found.
48310   # Check for GNU $ac_path_SED
48311 case `"$ac_path_SED" --version 2>&1` in
48312 *GNU*)
48313   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
48314 *)
48315   ac_count=0
48316   $as_echo_n 0123456789 >"conftest.in"
48317   while :
48318   do
48319     cat "conftest.in" "conftest.in" >"conftest.tmp"
48320     mv "conftest.tmp" "conftest.in"
48321     cp "conftest.in" "conftest.nl"
48322     $as_echo '' >> "conftest.nl"
48323     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
48324     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
48325     as_fn_arith $ac_count + 1 && ac_count=$as_val
48326     if test $ac_count -gt ${ac_path_SED_max-0}; then
48327       # Best one so far, save it but keep looking for a better one
48328       ac_cv_path_SED="$ac_path_SED"
48329       ac_path_SED_max=$ac_count
48330     fi
48331     # 10*(2^10) chars as input seems more than enough
48332     test $ac_count -gt 10 && break
48333   done
48334   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
48335 esac
48336
48337       $ac_path_SED_found && break 3
48338     done
48339   done
48340   done
48341 IFS=$as_save_IFS
48342   if test -z "$ac_cv_path_SED"; then
48343     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
48344   fi
48345 else
48346   ac_cv_path_SED=$SED
48347 fi
48348
48349 fi
48350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
48351 $as_echo "$ac_cv_path_SED" >&6; }
48352  SED="$ac_cv_path_SED"
48353   rm -f conftest.sed
48354
48355   while :
48356   do
48357       POSIX_SHELL=`which bash`
48358       test -x "$POSIX_SHELL" && break
48359       POSIX_SHELL=`which dash`
48360       test -x "$POSIX_SHELL" && break
48361       POSIX_SHELL=/usr/xpg4/bin/sh
48362       test -x "$POSIX_SHELL" && break
48363       POSIX_SHELL=`/bin/sh -c '
48364           exec 2>/dev/null
48365           if ! true ; then exit 1 ; fi
48366           echo /bin/sh'`
48367       test -x "$POSIX_SHELL" && break
48368       as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
48369   done
48370
48371 cat >>confdefs.h <<_ACEOF
48372 #define POSIX_SHELL "${POSIX_SHELL}"
48373 _ACEOF
48374
48375
48376
48377
48378
48379   LIBOPTS_BUILD_BLOCKED=''
48380
48381
48382   NEED_LIBOPTS_DIR=''
48383
48384   # Check whether --enable-local-libopts was given.
48385 if test "${enable_local_libopts+set}" = set; then :
48386   enableval=$enable_local_libopts;
48387     if test x$enableval = xyes ; then
48388        { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
48389 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
48390        LIBOPTS_CFLAGS='-I$(top_srcdir)/src/libopts'
48391        NEED_LIBOPTS_DIR=true
48392        LIBOPTS_LDADD='$(top_builddir)/src/libopts/libopts.la'
48393     fi
48394 fi
48395
48396
48397   # Check whether --enable-libopts-install was given.
48398 if test "${enable_libopts_install+set}" = set; then :
48399   enableval=$enable_libopts_install;
48400 fi
48401
48402    if test "X${enable_libopts_install}" = Xyes; then
48403   INSTALL_LIBOPTS_TRUE=
48404   INSTALL_LIBOPTS_FALSE='#'
48405 else
48406   INSTALL_LIBOPTS_TRUE='#'
48407   INSTALL_LIBOPTS_FALSE=
48408 fi
48409
48410
48411   if test -z "${NEED_LIBOPTS_DIR}" ; then
48412      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
48413 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
48414
48415 # Check whether --with-autoopts-config was given.
48416 if test "${with_autoopts_config+set}" = set; then :
48417   withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
48418 else
48419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
48420 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
48421 if ${lo_cv_with_autoopts_config+:} false; then :
48422   $as_echo_n "(cached) " >&6
48423 else
48424   if autoopts-config --help 2>/dev/null 1>&2
48425         then lo_cv_with_autoopts_config=autoopts-config
48426         elif libopts-config --help 2>/dev/null 1>&2
48427         then lo_cv_with_autoopts_config=libopts-config
48428         else lo_cv_with_autoopts_config=no ; fi
48429 fi
48430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
48431 $as_echo "$lo_cv_with_autoopts_config" >&6; }
48432
48433 fi
48434  # end of AC_ARG_WITH
48435
48436      if ${lo_cv_test_autoopts+:} false; then :
48437   $as_echo_n "(cached) " >&6
48438 else
48439
48440         if test -z "${lo_cv_with_autoopts_config}" \
48441                 -o X"${lo_cv_with_autoopts_config}" = Xno
48442         then
48443            if autoopts-config --help 2>/dev/null 1>&2
48444            then lo_cv_with_autoopts_config=autoopts-config
48445            elif libopts-config --help 2>/dev/null 1>&2
48446            then lo_cv_with_autoopts_config=libopts-config
48447            else lo_cv_with_autoopts_config=false ; fi
48448         fi
48449         lo_cv_test_autoopts=`
48450             ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
48451         if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
48452         then lo_cv_test_autoopts=no ; fi
48453
48454 fi
48455  # end of CACHE_VAL
48456      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
48457 $as_echo "${lo_cv_test_autoopts}" >&6; }
48458
48459      if test "X${lo_cv_test_autoopts}" != Xno
48460      then
48461         LIBOPTS_LDADD="${lo_cv_test_autoopts}"
48462         LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
48463      else
48464         LIBOPTS_LDADD='$(top_builddir)/src/libopts/libopts.la'
48465         LIBOPTS_CFLAGS='-I$(top_srcdir)/src/libopts'
48466         NEED_LIBOPTS_DIR=true
48467      fi
48468   fi # end of if test -z "${NEED_LIBOPTS_DIR}"
48469   if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
48470     NEED_LIBOPTS_DIR=''
48471   fi
48472    if test -n "${NEED_LIBOPTS_DIR}"; then
48473   NEED_LIBOPTS_TRUE=
48474   NEED_LIBOPTS_FALSE='#'
48475 else
48476   NEED_LIBOPTS_TRUE='#'
48477   NEED_LIBOPTS_FALSE=
48478 fi
48479
48480
48481
48482   LIBOPTS_DIR=src/libopts
48483
48484
48485 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
48486
48487
48488     if test -z "$NEED_LIBOPTS_TRUE"; then :
48489
48490
48491
48492   # Check to see if a reg expr header is specified.
48493
48494
48495 # Check whether --with-regex-header was given.
48496 if test "${with_regex_header+set}" = set; then :
48497   withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
48498 else
48499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
48500 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
48501 if ${libopts_cv_with_regex_header+:} false; then :
48502   $as_echo_n "(cached) " >&6
48503 else
48504   libopts_cv_with_regex_header=no
48505 fi
48506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
48507 $as_echo "$libopts_cv_with_regex_header" >&6; }
48508
48509 fi
48510  # end of AC_ARG_WITH
48511   if test "X${libopts_cv_with_regex_header}" != Xno
48512   then
48513     cat >>confdefs.h <<_ACEOF
48514 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
48515 _ACEOF
48516
48517   else
48518
48519 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
48520
48521   fi
48522
48523
48524
48525   # Check to see if a working libregex can be found.
48526
48527
48528 # Check whether --with-libregex was given.
48529 if test "${with_libregex+set}" = set; then :
48530   withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
48531 else
48532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
48533 $as_echo_n "checking whether with-libregex was specified... " >&6; }
48534 if ${libopts_cv_with_libregex_root+:} false; then :
48535   $as_echo_n "(cached) " >&6
48536 else
48537   libopts_cv_with_libregex_root=no
48538 fi
48539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
48540 $as_echo "$libopts_cv_with_libregex_root" >&6; }
48541
48542 fi
48543  # end of AC_ARG_WITH libregex
48544
48545   if test "${with_libregex+set}" = set && \
48546      test "X${withval}" = Xno
48547   then ## disabled by request
48548     libopts_cv_with_libregex_root=no
48549     libopts_cv_with_libregex_cflags=no
48550     libopts_cv_with_libregex_libs=no
48551   else
48552
48553
48554 # Check whether --with-libregex-cflags was given.
48555 if test "${with_libregex_cflags+set}" = set; then :
48556   withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
48557 else
48558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
48559 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
48560 if ${libopts_cv_with_libregex_cflags+:} false; then :
48561   $as_echo_n "(cached) " >&6
48562 else
48563   libopts_cv_with_libregex_cflags=no
48564 fi
48565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
48566 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
48567
48568 fi
48569  # end of AC_ARG_WITH libregex-cflags
48570
48571
48572 # Check whether --with-libregex-libs was given.
48573 if test "${with_libregex_libs+set}" = set; then :
48574   withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
48575 else
48576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
48577 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
48578 if ${libopts_cv_with_libregex_libs+:} false; then :
48579   $as_echo_n "(cached) " >&6
48580 else
48581   libopts_cv_with_libregex_libs=no
48582 fi
48583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
48584 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
48585
48586 fi
48587  # end of AC_ARG_WITH libregex-libs
48588
48589   case "X${libopts_cv_with_libregex_cflags}" in
48590   Xyes|Xno|X )
48591     case "X${libopts_cv_with_libregex_root}" in
48592     Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
48593     * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
48594     esac
48595   esac
48596   case "X${libopts_cv_with_libregex_libs}" in
48597   Xyes|Xno|X )
48598     case "X${libopts_cv_with_libregex_root}" in
48599     Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
48600     * )        libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
48601     esac
48602   esac
48603   libopts_save_CPPFLAGS="${CPPFLAGS}"
48604   libopts_save_LIBS="${LIBS}"
48605   case "X${libopts_cv_with_libregex_cflags}" in
48606   Xyes|Xno|X )
48607     libopts_cv_with_libregex_cflags="" ;;
48608   * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
48609   esac
48610   case "X${libopts_cv_with_libregex_libs}" in
48611   Xyes|Xno|X )
48612     libopts_cv_with_libregex_libs="" ;;
48613   * )
48614     LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
48615   esac
48616   LIBREGEX_CFLAGS=""
48617   LIBREGEX_LIBS=""
48618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
48619 $as_echo_n "checking whether libregex functions properly... " >&6; }
48620   if ${libopts_cv_with_libregex+:} false; then :
48621   $as_echo_n "(cached) " >&6
48622 else
48623
48624   if test "$cross_compiling" = yes; then :
48625   libopts_cv_with_libregex=no
48626 else
48627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48628 /* end confdefs.h.  */
48629 #include <stdio.h>
48630 #include <stdlib.h>
48631 #include <sys/types.h>
48632 #include REGEX_HEADER
48633 static regex_t re;
48634 void comp_re(char const * pzPat) {
48635   int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
48636   if (res == 0) return;
48637   exit( res ); }
48638 int main() {
48639   regmatch_t m[2];
48640   comp_re( "^.*\$"   );
48641   comp_re( "()|no.*" );
48642   comp_re( "."       );
48643   if (regexec( &re, "X", 2, m, 0 ) != 0)  return 1;
48644   if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
48645     fputs( "error: regex -->.<-- did not match\n", stderr );
48646     return 1;
48647   }
48648   return 0; }
48649 _ACEOF
48650 if ac_fn_c_try_run "$LINENO"; then :
48651   libopts_cv_with_libregex=yes
48652 else
48653   libopts_cv_with_libregex=no
48654 fi
48655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48656   conftest.$ac_objext conftest.beam conftest.$ac_ext
48657 fi
48658  # end of AC_RUN_IFELSE
48659
48660 fi
48661  # end of AC_CACHE_VAL for libopts_cv_with_libregex
48662   fi ## disabled by request
48663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
48664 $as_echo "${libopts_cv_with_libregex}" >&6; }
48665   if test "X${libopts_cv_with_libregex}" != Xno
48666   then
48667
48668 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
48669
48670   else
48671     CPPFLAGS="${libopts_save_CPPFLAGS}"
48672     LIBS="${libopts_save_LIBS}"
48673     libopts_cv_with_libregex_root=no
48674 libopts_cv_with_libregex_cflags=no
48675 libopts_cv_with_libregex_libs=no
48676 libopts_cv_with_libregex=no
48677   fi
48678
48679
48680
48681   # Check to see if pathfind(3) works.
48682
48683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
48684 $as_echo_n "checking whether pathfind(3) works... " >&6; }
48685   if ${libopts_cv_run_pathfind+:} false; then :
48686   $as_echo_n "(cached) " >&6
48687 else
48688
48689   if test "$cross_compiling" = yes; then :
48690   libopts_cv_run_pathfind=no
48691
48692 else
48693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48694 /* end confdefs.h.  */
48695 #include <string.h>
48696 #include <stdlib.h>
48697 int main (int argc, char ** argv) {
48698    char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
48699    return (pz == 0) ? 1 : 0;
48700 }
48701 _ACEOF
48702 if ac_fn_c_try_run "$LINENO"; then :
48703   libopts_cv_run_pathfind=yes
48704 else
48705   libopts_cv_run_pathfind=no
48706 fi
48707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48708   conftest.$ac_objext conftest.beam conftest.$ac_ext
48709 fi
48710  # end of RUN_IFELSE
48711
48712 fi
48713  # end of AC_CACHE_VAL for libopts_cv_run_pathfind
48714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
48715 $as_echo "${libopts_cv_run_pathfind}" >&6; }
48716   if test "X${libopts_cv_run_pathfind}" != Xno
48717   then
48718
48719 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
48720
48721   fi
48722
48723
48724
48725   # Check to see if /dev/zero is readable device.
48726
48727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
48728 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
48729   if ${libopts_cv_test_dev_zero+:} false; then :
48730   $as_echo_n "(cached) " >&6
48731 else
48732
48733     libopts_cv_test_dev_zero=`exec 2> /dev/null
48734 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
48735 test -z "${dzero}" && exit 1
48736 echo ${dzero}`
48737     if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
48738     then libopts_cv_test_dev_zero=no
48739     fi
48740
48741 fi
48742  # end of CACHE_VAL of libopts_cv_test_dev_zero
48743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
48744 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
48745   if test "X${libopts_cv_test_dev_zero}" != Xno
48746   then
48747
48748 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
48749
48750   fi
48751
48752
48753
48754   # Check to see if we have a functional realpath(3C).
48755
48756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
48757 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
48758   if ${libopts_cv_run_realpath+:} false; then :
48759   $as_echo_n "(cached) " >&6
48760 else
48761
48762   if test "$cross_compiling" = yes; then :
48763   libopts_cv_run_realpath=no
48764
48765 else
48766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48767 /* end confdefs.h.  */
48768 #include <limits.h>
48769 #include <stdlib.h>
48770 int main (int argc, char ** argv) {
48771 #ifndef PATH_MAX
48772 choke me!!
48773 #else
48774    char zPath[PATH_MAX+1];
48775 #endif
48776    char *pz = realpath(argv[0], zPath);
48777    return (pz == zPath) ? 0 : 1;
48778 }
48779 _ACEOF
48780 if ac_fn_c_try_run "$LINENO"; then :
48781   libopts_cv_run_realpath=yes
48782 else
48783   libopts_cv_run_realpath=no
48784 fi
48785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48786   conftest.$ac_objext conftest.beam conftest.$ac_ext
48787 fi
48788  # end of RUN_IFELSE
48789
48790 fi
48791  # end of AC_CACHE_VAL for libopts_cv_run_realpath
48792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
48793 $as_echo "${libopts_cv_run_realpath}" >&6; }
48794   if test "X${libopts_cv_run_realpath}" != Xno
48795   then
48796
48797 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
48798
48799   fi
48800
48801
48802
48803   # Check to see if strftime() works.
48804
48805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
48806 $as_echo_n "checking whether strftime() works... " >&6; }
48807   if ${libopts_cv_run_strftime+:} false; then :
48808   $as_echo_n "(cached) " >&6
48809 else
48810
48811   if test "$cross_compiling" = yes; then :
48812   libopts_cv_run_strftime=no
48813
48814 else
48815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48816 /* end confdefs.h.  */
48817 #include <time.h>
48818 #include <string.h>
48819 char t_buf[ 64 ];
48820 int main() {
48821   static char const z[] = "Thursday Aug 28 240";
48822   struct tm tm;
48823   tm.tm_sec   = 36;  /* seconds after the minute [0, 61]  */
48824   tm.tm_min   = 44;  /* minutes after the hour [0, 59] */
48825   tm.tm_hour  = 12;  /* hour since midnight [0, 23] */
48826   tm.tm_mday  = 28;  /* day of the month [1, 31] */
48827   tm.tm_mon   =  7;  /* months since January [0, 11] */
48828   tm.tm_year  = 86;  /* years since 1900 */
48829   tm.tm_wday  =  4;  /* days since Sunday [0, 6] */
48830   tm.tm_yday  = 239; /* days since January 1 [0, 365] */
48831   tm.tm_isdst =  1;  /* flag for daylight savings time */
48832   strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
48833   return (strcmp( t_buf, z ) != 0); }
48834 _ACEOF
48835 if ac_fn_c_try_run "$LINENO"; then :
48836   libopts_cv_run_strftime=yes
48837 else
48838   libopts_cv_run_strftime=no
48839 fi
48840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48841   conftest.$ac_objext conftest.beam conftest.$ac_ext
48842 fi
48843  # end of RUN_IFELSE
48844
48845 fi
48846  # end of AC_CACHE_VAL for libopts_cv_run_strftime
48847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
48848 $as_echo "${libopts_cv_run_strftime}" >&6; }
48849   if test "X${libopts_cv_run_strftime}" != Xno
48850   then
48851
48852 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
48853
48854   fi
48855
48856
48857
48858   # Check to see if fopen accepts "b" mode.
48859
48860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
48861 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
48862   if ${libopts_cv_run_fopen_binary+:} false; then :
48863   $as_echo_n "(cached) " >&6
48864 else
48865
48866   if test "$cross_compiling" = yes; then :
48867   libopts_cv_run_fopen_binary=no
48868
48869 else
48870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48871 /* end confdefs.h.  */
48872 #include <stdio.h>
48873 int main (int argc, char ** argv) {
48874 FILE * fp = fopen("conftest.$ac_ext", "rb");
48875 return (fp == NULL) ? 1 : fclose(fp); }
48876 _ACEOF
48877 if ac_fn_c_try_run "$LINENO"; then :
48878   libopts_cv_run_fopen_binary=yes
48879 else
48880   libopts_cv_run_fopen_binary=no
48881 fi
48882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48883   conftest.$ac_objext conftest.beam conftest.$ac_ext
48884 fi
48885  # end of RUN_IFELSE
48886
48887 fi
48888  # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
48889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
48890 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
48891   if test "X${libopts_cv_run_fopen_binary}" != Xno
48892   then
48893
48894 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
48895
48896   else
48897
48898 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
48899
48900   fi
48901
48902
48903
48904   # Check to see if fopen accepts "t" mode.
48905
48906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
48907 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
48908   if ${libopts_cv_run_fopen_text+:} false; then :
48909   $as_echo_n "(cached) " >&6
48910 else
48911
48912   if test "$cross_compiling" = yes; then :
48913   libopts_cv_run_fopen_text=no
48914
48915 else
48916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48917 /* end confdefs.h.  */
48918 #include <stdio.h>
48919 int main (int argc, char ** argv) {
48920 FILE * fp = fopen("conftest.$ac_ext", "rt");
48921 return (fp == NULL) ? 1 : fclose(fp); }
48922 _ACEOF
48923 if ac_fn_c_try_run "$LINENO"; then :
48924   libopts_cv_run_fopen_text=yes
48925 else
48926   libopts_cv_run_fopen_text=no
48927 fi
48928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48929   conftest.$ac_objext conftest.beam conftest.$ac_ext
48930 fi
48931  # end of RUN_IFELSE
48932
48933 fi
48934  # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
48935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
48936 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
48937   if test "X${libopts_cv_run_fopen_text}" != Xno
48938   then
48939
48940 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
48941
48942   else
48943
48944 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
48945
48946   fi
48947
48948
48949
48950   # Check to see if not wanting optional option args.
48951
48952   # Check whether --enable-optional-args was given.
48953 if test "${enable_optional_args+set}" = set; then :
48954   enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
48955 else
48956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
48957 $as_echo_n "checking whether not wanting optional option args... " >&6; }
48958 if ${libopts_cv_enable_optional_args+:} false; then :
48959   $as_echo_n "(cached) " >&6
48960 else
48961   libopts_cv_enable_optional_args=yes
48962 fi
48963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
48964 $as_echo "$libopts_cv_enable_optional_args" >&6; }
48965
48966 fi
48967  # end of AC_ARG_ENABLE
48968   if test "X${libopts_cv_enable_optional_args}" = Xno
48969   then
48970
48971 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
48972
48973   fi
48974
48975
48976
48977
48978
48979           fi
48980   ac_config_files="$ac_config_files src/libopts/Makefile"
48981
48982   # end of AC_DEFUN of LIBOPTS_CHECK
48983
48984 if test "$NEED_LIBOPTS_DIR" = "true";then
48985                 missing_baks=
48986         for i in ${srcdir}/src/*-args.c.bak ${srcdir}/src/*-args.h.bak; do
48987                 nam=`echo $i|sed 's/.bak//g'`
48988                 if test -f $i;then
48989                         cp -f $i $nam
48990                 else
48991                         missing_baks=true
48992                 fi
48993         done
48994         if test -z "$missing_baks"; then
48995                 AUTOGEN=/bin/true
48996
48997         fi
48998         enable_local_libopts=yes
48999 else
49000         enable_local_libopts=no
49001 fi
49002  if test "$enable_local_libopts" = "yes"; then
49003   NEED_LIBOPTS_TRUE=
49004   NEED_LIBOPTS_FALSE='#'
49005 else
49006   NEED_LIBOPTS_TRUE='#'
49007   NEED_LIBOPTS_FALSE=
49008 fi
49009
49010
49011 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "
49012     #include <sys/types.h>
49013
49014 "
49015 if test "x$ac_cv_type_ssize_t" = xyes; then :
49016
49017     DEFINE_SSIZE_T="#include <sys/types.h>"
49018
49019
49020 else
49021
49022
49023 $as_echo "#define NO_SSIZE_T 1" >>confdefs.h
49024
49025     DEFINE_SSIZE_T="typedef int ssize_t;"
49026
49027
49028 fi
49029
49030
49031 # For minitasn1.
49032 # The cast to long int works around a bug in the HP C Compiler
49033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49035 # This bug is HP SR number 8606223364.
49036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
49037 $as_echo_n "checking size of unsigned long int... " >&6; }
49038 if ${ac_cv_sizeof_unsigned_long_int+:} false; then :
49039   $as_echo_n "(cached) " >&6
49040 else
49041   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int"        "$ac_includes_default"; then :
49042
49043 else
49044   if test "$ac_cv_type_unsigned_long_int" = yes; then
49045      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
49046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
49047 as_fn_error 77 "cannot compute sizeof (unsigned long int)
49048 See \`config.log' for more details" "$LINENO" 5; }
49049    else
49050      ac_cv_sizeof_unsigned_long_int=0
49051    fi
49052 fi
49053
49054 fi
49055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
49056 $as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
49057
49058
49059
49060 cat >>confdefs.h <<_ACEOF
49061 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
49062 _ACEOF
49063
49064
49065 # The cast to long int works around a bug in the HP C Compiler
49066 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49067 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49068 # This bug is HP SR number 8606223364.
49069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
49070 $as_echo_n "checking size of unsigned int... " >&6; }
49071 if ${ac_cv_sizeof_unsigned_int+:} false; then :
49072   $as_echo_n "(cached) " >&6
49073 else
49074   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
49075
49076 else
49077   if test "$ac_cv_type_unsigned_int" = yes; then
49078      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
49079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
49080 as_fn_error 77 "cannot compute sizeof (unsigned int)
49081 See \`config.log' for more details" "$LINENO" 5; }
49082    else
49083      ac_cv_sizeof_unsigned_int=0
49084    fi
49085 fi
49086
49087 fi
49088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
49089 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
49090
49091
49092
49093 cat >>confdefs.h <<_ACEOF
49094 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
49095 _ACEOF
49096
49097
49098
49099
49100 # Check whether --with-zlib was given.
49101 if test "${with_zlib+set}" = set; then :
49102   withval=$with_zlib; ac_zlib=$withval
49103 else
49104   ac_zlib=yes
49105 fi
49106
49107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include zlib compression support" >&5
49108 $as_echo_n "checking whether to include zlib compression support... " >&6; }
49109 if test x$ac_zlib != xno; then
49110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49111 $as_echo "yes" >&6; }
49112
49113
49114
49115
49116
49117
49118
49119
49120
49121
49122
49123
49124
49125     use_additional=yes
49126
49127   acl_save_prefix="$prefix"
49128   prefix="$acl_final_prefix"
49129   acl_save_exec_prefix="$exec_prefix"
49130   exec_prefix="$acl_final_exec_prefix"
49131
49132     eval additional_includedir=\"$includedir\"
49133     eval additional_libdir=\"$libdir\"
49134
49135   exec_prefix="$acl_save_exec_prefix"
49136   prefix="$acl_save_prefix"
49137
49138
49139 # Check whether --with-libz-prefix was given.
49140 if test "${with_libz_prefix+set}" = set; then :
49141   withval=$with_libz_prefix;
49142     if test "X$withval" = "Xno"; then
49143       use_additional=no
49144     else
49145       if test "X$withval" = "X"; then
49146
49147   acl_save_prefix="$prefix"
49148   prefix="$acl_final_prefix"
49149   acl_save_exec_prefix="$exec_prefix"
49150   exec_prefix="$acl_final_exec_prefix"
49151
49152           eval additional_includedir=\"$includedir\"
49153           eval additional_libdir=\"$libdir\"
49154
49155   exec_prefix="$acl_save_exec_prefix"
49156   prefix="$acl_save_prefix"
49157
49158       else
49159         additional_includedir="$withval/include"
49160         additional_libdir="$withval/$acl_libdirstem"
49161         if test "$acl_libdirstem2" != "$acl_libdirstem" \
49162            && ! test -d "$withval/$acl_libdirstem"; then
49163           additional_libdir="$withval/$acl_libdirstem2"
49164         fi
49165       fi
49166     fi
49167
49168 fi
49169
49170       LIBZ=
49171   LTLIBZ=
49172   INCZ=
49173   LIBZ_PREFIX=
49174       HAVE_LIBZ=
49175   rpathdirs=
49176   ltrpathdirs=
49177   names_already_handled=
49178   names_next_round='z '
49179   while test -n "$names_next_round"; do
49180     names_this_round="$names_next_round"
49181     names_next_round=
49182     for name in $names_this_round; do
49183       already_handled=
49184       for n in $names_already_handled; do
49185         if test "$n" = "$name"; then
49186           already_handled=yes
49187           break
49188         fi
49189       done
49190       if test -z "$already_handled"; then
49191         names_already_handled="$names_already_handled $name"
49192                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
49193         eval value=\"\$HAVE_LIB$uppername\"
49194         if test -n "$value"; then
49195           if test "$value" = yes; then
49196             eval value=\"\$LIB$uppername\"
49197             test -z "$value" || LIBZ="${LIBZ}${LIBZ:+ }$value"
49198             eval value=\"\$LTLIB$uppername\"
49199             test -z "$value" || LTLIBZ="${LTLIBZ}${LTLIBZ:+ }$value"
49200           else
49201                                     :
49202           fi
49203         else
49204                               found_dir=
49205           found_la=
49206           found_so=
49207           found_a=
49208           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
49209           if test -n "$acl_shlibext"; then
49210             shrext=".$acl_shlibext"             # typically: shrext=.so
49211           else
49212             shrext=
49213           fi
49214           if test $use_additional = yes; then
49215             dir="$additional_libdir"
49216                                     if test -n "$acl_shlibext"; then
49217               if test -f "$dir/$libname$shrext"; then
49218                 found_dir="$dir"
49219                 found_so="$dir/$libname$shrext"
49220               else
49221                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
49222                   ver=`(cd "$dir" && \
49223                         for f in "$libname$shrext".*; do echo "$f"; done \
49224                         | sed -e "s,^$libname$shrext\\\\.,," \
49225                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
49226                         | sed 1q ) 2>/dev/null`
49227                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
49228                     found_dir="$dir"
49229                     found_so="$dir/$libname$shrext.$ver"
49230                   fi
49231                 else
49232                   eval library_names=\"$acl_library_names_spec\"
49233                   for f in $library_names; do
49234                     if test -f "$dir/$f"; then
49235                       found_dir="$dir"
49236                       found_so="$dir/$f"
49237                       break
49238                     fi
49239                   done
49240                 fi
49241               fi
49242             fi
49243                         if test "X$found_dir" = "X"; then
49244               if test -f "$dir/$libname.$acl_libext"; then
49245                 found_dir="$dir"
49246                 found_a="$dir/$libname.$acl_libext"
49247               fi
49248             fi
49249             if test "X$found_dir" != "X"; then
49250               if test -f "$dir/$libname.la"; then
49251                 found_la="$dir/$libname.la"
49252               fi
49253             fi
49254           fi
49255           if test "X$found_dir" = "X"; then
49256             for x in $LDFLAGS $LTLIBZ; do
49257
49258   acl_save_prefix="$prefix"
49259   prefix="$acl_final_prefix"
49260   acl_save_exec_prefix="$exec_prefix"
49261   exec_prefix="$acl_final_exec_prefix"
49262   eval x=\"$x\"
49263   exec_prefix="$acl_save_exec_prefix"
49264   prefix="$acl_save_prefix"
49265
49266               case "$x" in
49267                 -L*)
49268                   dir=`echo "X$x" | sed -e 's/^X-L//'`
49269                                     if test -n "$acl_shlibext"; then
49270                     if test -f "$dir/$libname$shrext"; then
49271                       found_dir="$dir"
49272                       found_so="$dir/$libname$shrext"
49273                     else
49274                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
49275                         ver=`(cd "$dir" && \
49276                               for f in "$libname$shrext".*; do echo "$f"; done \
49277                               | sed -e "s,^$libname$shrext\\\\.,," \
49278                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
49279                               | sed 1q ) 2>/dev/null`
49280                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
49281                           found_dir="$dir"
49282                           found_so="$dir/$libname$shrext.$ver"
49283                         fi
49284                       else
49285                         eval library_names=\"$acl_library_names_spec\"
49286                         for f in $library_names; do
49287                           if test -f "$dir/$f"; then
49288                             found_dir="$dir"
49289                             found_so="$dir/$f"
49290                             break
49291                           fi
49292                         done
49293                       fi
49294                     fi
49295                   fi
49296                                     if test "X$found_dir" = "X"; then
49297                     if test -f "$dir/$libname.$acl_libext"; then
49298                       found_dir="$dir"
49299                       found_a="$dir/$libname.$acl_libext"
49300                     fi
49301                   fi
49302                   if test "X$found_dir" != "X"; then
49303                     if test -f "$dir/$libname.la"; then
49304                       found_la="$dir/$libname.la"
49305                     fi
49306                   fi
49307                   ;;
49308               esac
49309               if test "X$found_dir" != "X"; then
49310                 break
49311               fi
49312             done
49313           fi
49314           if test "X$found_dir" != "X"; then
49315                         LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-L$found_dir -l$name"
49316             if test "X$found_so" != "X"; then
49317                                                         if test "$enable_rpath" = no \
49318                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
49319                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
49320                                 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
49321               else
49322                                                                                 haveit=
49323                 for x in $ltrpathdirs; do
49324                   if test "X$x" = "X$found_dir"; then
49325                     haveit=yes
49326                     break
49327                   fi
49328                 done
49329                 if test -z "$haveit"; then
49330                   ltrpathdirs="$ltrpathdirs $found_dir"
49331                 fi
49332                                 if test "$acl_hardcode_direct" = yes; then
49333                                                       LIBZ="${LIBZ}${LIBZ:+ }$found_so"
49334                 else
49335                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
49336                                                             LIBZ="${LIBZ}${LIBZ:+ }$found_so"
49337                                                             haveit=
49338                     for x in $rpathdirs; do
49339                       if test "X$x" = "X$found_dir"; then
49340                         haveit=yes
49341                         break
49342                       fi
49343                     done
49344                     if test -z "$haveit"; then
49345                       rpathdirs="$rpathdirs $found_dir"
49346                     fi
49347                   else
49348                                                                                 haveit=
49349                     for x in $LDFLAGS $LIBZ; do
49350
49351   acl_save_prefix="$prefix"
49352   prefix="$acl_final_prefix"
49353   acl_save_exec_prefix="$exec_prefix"
49354   exec_prefix="$acl_final_exec_prefix"
49355   eval x=\"$x\"
49356   exec_prefix="$acl_save_exec_prefix"
49357   prefix="$acl_save_prefix"
49358
49359                       if test "X$x" = "X-L$found_dir"; then
49360                         haveit=yes
49361                         break
49362                       fi
49363                     done
49364                     if test -z "$haveit"; then
49365                       LIBZ="${LIBZ}${LIBZ:+ }-L$found_dir"
49366                     fi
49367                     if test "$acl_hardcode_minus_L" != no; then
49368                                                                                         LIBZ="${LIBZ}${LIBZ:+ }$found_so"
49369                     else
49370                                                                                                                                                                                 LIBZ="${LIBZ}${LIBZ:+ }-l$name"
49371                     fi
49372                   fi
49373                 fi
49374               fi
49375             else
49376               if test "X$found_a" != "X"; then
49377                                 LIBZ="${LIBZ}${LIBZ:+ }$found_a"
49378               else
49379                                                 LIBZ="${LIBZ}${LIBZ:+ }-L$found_dir -l$name"
49380               fi
49381             fi
49382                         additional_includedir=
49383             case "$found_dir" in
49384               */$acl_libdirstem | */$acl_libdirstem/)
49385                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
49386                 if test "$name" = 'z'; then
49387                   LIBZ_PREFIX="$basedir"
49388                 fi
49389                 additional_includedir="$basedir/include"
49390                 ;;
49391               */$acl_libdirstem2 | */$acl_libdirstem2/)
49392                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
49393                 if test "$name" = 'z'; then
49394                   LIBZ_PREFIX="$basedir"
49395                 fi
49396                 additional_includedir="$basedir/include"
49397                 ;;
49398             esac
49399             if test "X$additional_includedir" != "X"; then
49400                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
49401                 haveit=
49402                 if test "X$additional_includedir" = "X/usr/local/include"; then
49403                   if test -n "$GCC"; then
49404                     case $host_os in
49405                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
49406                     esac
49407                   fi
49408                 fi
49409                 if test -z "$haveit"; then
49410                   for x in $CPPFLAGS $INCZ; do
49411
49412   acl_save_prefix="$prefix"
49413   prefix="$acl_final_prefix"
49414   acl_save_exec_prefix="$exec_prefix"
49415   exec_prefix="$acl_final_exec_prefix"
49416   eval x=\"$x\"
49417   exec_prefix="$acl_save_exec_prefix"
49418   prefix="$acl_save_prefix"
49419
49420                     if test "X$x" = "X-I$additional_includedir"; then
49421                       haveit=yes
49422                       break
49423                     fi
49424                   done
49425                   if test -z "$haveit"; then
49426                     if test -d "$additional_includedir"; then
49427                                             INCZ="${INCZ}${INCZ:+ }-I$additional_includedir"
49428                     fi
49429                   fi
49430                 fi
49431               fi
49432             fi
49433                         if test -n "$found_la"; then
49434                                                         save_libdir="$libdir"
49435               case "$found_la" in
49436                 */* | *\\*) . "$found_la" ;;
49437                 *) . "./$found_la" ;;
49438               esac
49439               libdir="$save_libdir"
49440                             for dep in $dependency_libs; do
49441                 case "$dep" in
49442                   -L*)
49443                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
49444                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
49445                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
49446                       haveit=
49447                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
49448                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
49449                         if test -n "$GCC"; then
49450                           case $host_os in
49451                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
49452                           esac
49453                         fi
49454                       fi
49455                       if test -z "$haveit"; then
49456                         haveit=
49457                         for x in $LDFLAGS $LIBZ; do
49458
49459   acl_save_prefix="$prefix"
49460   prefix="$acl_final_prefix"
49461   acl_save_exec_prefix="$exec_prefix"
49462   exec_prefix="$acl_final_exec_prefix"
49463   eval x=\"$x\"
49464   exec_prefix="$acl_save_exec_prefix"
49465   prefix="$acl_save_prefix"
49466
49467                           if test "X$x" = "X-L$additional_libdir"; then
49468                             haveit=yes
49469                             break
49470                           fi
49471                         done
49472                         if test -z "$haveit"; then
49473                           if test -d "$additional_libdir"; then
49474                                                         LIBZ="${LIBZ}${LIBZ:+ }-L$additional_libdir"
49475                           fi
49476                         fi
49477                         haveit=
49478                         for x in $LDFLAGS $LTLIBZ; do
49479
49480   acl_save_prefix="$prefix"
49481   prefix="$acl_final_prefix"
49482   acl_save_exec_prefix="$exec_prefix"
49483   exec_prefix="$acl_final_exec_prefix"
49484   eval x=\"$x\"
49485   exec_prefix="$acl_save_exec_prefix"
49486   prefix="$acl_save_prefix"
49487
49488                           if test "X$x" = "X-L$additional_libdir"; then
49489                             haveit=yes
49490                             break
49491                           fi
49492                         done
49493                         if test -z "$haveit"; then
49494                           if test -d "$additional_libdir"; then
49495                                                         LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-L$additional_libdir"
49496                           fi
49497                         fi
49498                       fi
49499                     fi
49500                     ;;
49501                   -R*)
49502                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
49503                     if test "$enable_rpath" != no; then
49504                                                                   haveit=
49505                       for x in $rpathdirs; do
49506                         if test "X$x" = "X$dir"; then
49507                           haveit=yes
49508                           break
49509                         fi
49510                       done
49511                       if test -z "$haveit"; then
49512                         rpathdirs="$rpathdirs $dir"
49513                       fi
49514                                                                   haveit=
49515                       for x in $ltrpathdirs; do
49516                         if test "X$x" = "X$dir"; then
49517                           haveit=yes
49518                           break
49519                         fi
49520                       done
49521                       if test -z "$haveit"; then
49522                         ltrpathdirs="$ltrpathdirs $dir"
49523                       fi
49524                     fi
49525                     ;;
49526                   -l*)
49527                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
49528                     ;;
49529                   *.la)
49530                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
49531                     ;;
49532                   *)
49533                                         LIBZ="${LIBZ}${LIBZ:+ }$dep"
49534                     LTLIBZ="${LTLIBZ}${LTLIBZ:+ }$dep"
49535                     ;;
49536                 esac
49537               done
49538             fi
49539           else
49540                                                             LIBZ="${LIBZ}${LIBZ:+ }-l$name"
49541             LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-l$name"
49542           fi
49543         fi
49544       fi
49545     done
49546   done
49547   if test "X$rpathdirs" != "X"; then
49548     if test -n "$acl_hardcode_libdir_separator"; then
49549                         alldirs=
49550       for found_dir in $rpathdirs; do
49551         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
49552       done
49553             acl_save_libdir="$libdir"
49554       libdir="$alldirs"
49555       eval flag=\"$acl_hardcode_libdir_flag_spec\"
49556       libdir="$acl_save_libdir"
49557       LIBZ="${LIBZ}${LIBZ:+ }$flag"
49558     else
49559             for found_dir in $rpathdirs; do
49560         acl_save_libdir="$libdir"
49561         libdir="$found_dir"
49562         eval flag=\"$acl_hardcode_libdir_flag_spec\"
49563         libdir="$acl_save_libdir"
49564         LIBZ="${LIBZ}${LIBZ:+ }$flag"
49565       done
49566     fi
49567   fi
49568   if test "X$ltrpathdirs" != "X"; then
49569             for found_dir in $ltrpathdirs; do
49570       LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-R$found_dir"
49571     done
49572   fi
49573
49574
49575
49576
49577
49578
49579
49580         ac_save_CPPFLAGS="$CPPFLAGS"
49581
49582   for element in $INCZ; do
49583     haveit=
49584     for x in $CPPFLAGS; do
49585
49586   acl_save_prefix="$prefix"
49587   prefix="$acl_final_prefix"
49588   acl_save_exec_prefix="$exec_prefix"
49589   exec_prefix="$acl_final_exec_prefix"
49590   eval x=\"$x\"
49591   exec_prefix="$acl_save_exec_prefix"
49592   prefix="$acl_save_prefix"
49593
49594       if test "X$x" = "X$element"; then
49595         haveit=yes
49596         break
49597       fi
49598     done
49599     if test -z "$haveit"; then
49600       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
49601     fi
49602   done
49603
49604
49605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libz" >&5
49606 $as_echo_n "checking for libz... " >&6; }
49607 if ${ac_cv_libz+:} false; then :
49608   $as_echo_n "(cached) " >&6
49609 else
49610
49611     ac_save_LIBS="$LIBS"
49612                                 case " $LIBZ" in
49613       *" -l"*) LIBS="$LIBS $LIBZ" ;;
49614       *)       LIBS="$LIBZ $LIBS" ;;
49615     esac
49616     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49617 /* end confdefs.h.  */
49618 #include <zlib.h>
49619 int
49620 main ()
49621 {
49622 compress (0, 0, 0, 0);
49623   ;
49624   return 0;
49625 }
49626 _ACEOF
49627 if ac_fn_c_try_link "$LINENO"; then :
49628   ac_cv_libz=yes
49629 else
49630   ac_cv_libz='no'
49631 fi
49632 rm -f core conftest.err conftest.$ac_objext \
49633     conftest$ac_exeext conftest.$ac_ext
49634     LIBS="$ac_save_LIBS"
49635
49636 fi
49637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libz" >&5
49638 $as_echo "$ac_cv_libz" >&6; }
49639   if test "$ac_cv_libz" = yes; then
49640     HAVE_LIBZ=yes
49641
49642 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
49643
49644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libz" >&5
49645 $as_echo_n "checking how to link with libz... " >&6; }
49646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBZ" >&5
49647 $as_echo "$LIBZ" >&6; }
49648   else
49649     HAVE_LIBZ=no
49650             CPPFLAGS="$ac_save_CPPFLAGS"
49651     LIBZ=
49652     LTLIBZ=
49653     LIBZ_PREFIX=
49654   fi
49655
49656
49657
49658
49659
49660
49661
49662  if test x$ac_cv_libz != xyes; then
49663    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***
49664 *** ZLIB was not found. You will not be able to use ZLIB compression." >&5
49665 $as_echo "$as_me: WARNING: ***
49666 *** ZLIB was not found. You will not be able to use ZLIB compression." >&2;}
49667  fi
49668 else
49669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49670 $as_echo "no" >&6; }
49671 fi
49672
49673 if test -n "$PKG_CONFIG" && \
49674     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
49675   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
49676   ac_status=$?
49677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49678   test $ac_status = 0; }; then
49679   ZLIB_HAS_PKGCONFIG=y
49680 else
49681   ZLIB_HAS_PKGCONFIG=n
49682 fi
49683
49684 if test x$ac_zlib != xno; then
49685   if test "$ZLIB_HAS_PKGCONFIG" = "y" ; then
49686     if test "x$GNUTLS_REQUIRES_PRIVATE" = x; then
49687       GNUTLS_REQUIRES_PRIVATE="Requires.private: zlib"
49688     else
49689       GNUTLS_REQUIRES_PRIVATE="$GNUTLS_REQUIRES_PRIVATE, zlib"
49690     fi
49691   fi
49692 fi
49693
49694
49695
49696
49697
49698 # Check whether --with-default-trust-store-pkcs11 was given.
49699 if test "${with_default_trust_store_pkcs11+set}" = set; then :
49700   withval=$with_default_trust_store_pkcs11;
49701 fi
49702
49703
49704 if test "x$with_default_trust_store_pkcs11" != x; then
49705   if test "x$with_p11_kit" = xno; then
49706     as_fn_error $? "cannot use pkcs11 store without p11-kit" "$LINENO" 5
49707   fi
49708
49709 cat >>confdefs.h <<_ACEOF
49710 #define DEFAULT_TRUST_STORE_PKCS11 "$with_default_trust_store_pkcs11"
49711 _ACEOF
49712
49713 fi
49714
49715
49716 # Check whether --with-default-trust-store-dir was given.
49717 if test "${with_default_trust_store_dir+set}" = set; then :
49718   withval=$with_default_trust_store_dir;
49719 fi
49720
49721
49722 if test "x$with_default_trust_store_dir" != x; then
49723
49724 cat >>confdefs.h <<_ACEOF
49725 #define DEFAULT_TRUST_STORE_DIR "$with_default_trust_store_dir"
49726 _ACEOF
49727
49728 fi
49729
49730
49731 # Check whether --with-default-trust-store-file was given.
49732 if test "${with_default_trust_store_file+set}" = set; then :
49733   withval=$with_default_trust_store_file; with_default_trust_store_file="$withval"
49734 else
49735   if test "$build" = "$host" && test x$with_default_trust_store_pkcs11 = x && test x$with_default_trust_store_dir = x;then
49736   for i in \
49737     /etc/ssl/ca-bundle.pem \
49738     /etc/ssl/certs/ca-certificates.crt \
49739     /etc/pki/tls/cert.pem \
49740     /usr/local/share/certs/ca-root-nss.crt \
49741     /etc/ssl/cert.pem
49742     do
49743     if test -e "$i"; then
49744       with_default_trust_store_file="$i"
49745       break
49746     fi
49747   done
49748   fi
49749
49750 fi
49751
49752
49753 if test "$with_default_trust_store_file" = "no";then
49754   with_default_trust_store_file=""
49755 fi
49756
49757
49758 # Check whether --with-default-crl-file was given.
49759 if test "${with_default_crl_file+set}" = set; then :
49760   withval=$with_default_crl_file;
49761 fi
49762
49763
49764
49765 # Check whether --with-default-blacklist-file was given.
49766 if test "${with_default_blacklist_file+set}" = set; then :
49767   withval=$with_default_blacklist_file;
49768 fi
49769
49770
49771 if test "x$with_default_trust_store_file" != x; then
49772
49773 cat >>confdefs.h <<_ACEOF
49774 #define DEFAULT_TRUST_STORE_FILE "$with_default_trust_store_file"
49775 _ACEOF
49776
49777 fi
49778
49779 if test "x$with_default_crl_file" != x; then
49780
49781 cat >>confdefs.h <<_ACEOF
49782 #define DEFAULT_CRL_FILE "$with_default_crl_file"
49783 _ACEOF
49784
49785 fi
49786
49787 if test "x$with_default_blacklist_file" != x; then
49788
49789 cat >>confdefs.h <<_ACEOF
49790 #define DEFAULT_BLACKLIST_FILE "$with_default_blacklist_file"
49791 _ACEOF
49792
49793 fi
49794
49795 opt_guile_bindings=yes
49796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building Guile bindings" >&5
49797 $as_echo_n "checking whether building Guile bindings... " >&6; }
49798 # Check whether --enable-guile was given.
49799 if test "${enable_guile+set}" = set; then :
49800   enableval=$enable_guile; opt_guile_bindings=$enableval
49801 fi
49802
49803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_guile_bindings" >&5
49804 $as_echo "$opt_guile_bindings" >&6; }
49805
49806
49807 # Check whether --with-guile-site-dir was given.
49808 if test "${with_guile_site_dir+set}" = set; then :
49809   withval=$with_guile_site_dir;
49810 fi
49811
49812
49813 if test "$opt_guile_bindings" = "yes"; then
49814    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
49815 *** Detecting GNU Guile...
49816 " >&5
49817 $as_echo "***
49818 *** Detecting GNU Guile...
49819 " >&6; }
49820
49821    # Extract the first word of "guile-snarf", so it can be a program name with args.
49822 set dummy guile-snarf; ac_word=$2
49823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49824 $as_echo_n "checking for $ac_word... " >&6; }
49825 if ${ac_cv_path_guile_snarf+:} false; then :
49826   $as_echo_n "(cached) " >&6
49827 else
49828   case $guile_snarf in
49829   [\\/]* | ?:[\\/]*)
49830   ac_cv_path_guile_snarf="$guile_snarf" # Let the user override the test with a path.
49831   ;;
49832   *)
49833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49834 for as_dir in $PATH
49835 do
49836   IFS=$as_save_IFS
49837   test -z "$as_dir" && as_dir=.
49838     for ac_exec_ext in '' $ac_executable_extensions; do
49839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49840     ac_cv_path_guile_snarf="$as_dir/$ac_word$ac_exec_ext"
49841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49842     break 2
49843   fi
49844 done
49845   done
49846 IFS=$as_save_IFS
49847
49848   ;;
49849 esac
49850 fi
49851 guile_snarf=$ac_cv_path_guile_snarf
49852 if test -n "$guile_snarf"; then
49853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_snarf" >&5
49854 $as_echo "$guile_snarf" >&6; }
49855 else
49856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49857 $as_echo "no" >&6; }
49858 fi
49859
49860
49861    if test "x$guile_snarf" = "x"; then
49862       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`guile-snarf' from Guile 1.8 not found.  Guile bindings not built." >&5
49863 $as_echo "$as_me: WARNING: \`guile-snarf' from Guile 1.8 not found.  Guile bindings not built." >&2;}
49864       opt_guile_bindings=no
49865    else
49866       # Extract the first word of "guile", so it can be a program name with args.
49867 set dummy guile; ac_word=$2
49868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49869 $as_echo_n "checking for $ac_word... " >&6; }
49870 if ${ac_cv_path_GUILE+:} false; then :
49871   $as_echo_n "(cached) " >&6
49872 else
49873   case $GUILE in
49874   [\\/]* | ?:[\\/]*)
49875   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
49876   ;;
49877   *)
49878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49879 for as_dir in $PATH
49880 do
49881   IFS=$as_save_IFS
49882   test -z "$as_dir" && as_dir=.
49883     for ac_exec_ext in '' $ac_executable_extensions; do
49884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49885     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
49886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49887     break 2
49888   fi
49889 done
49890   done
49891 IFS=$as_save_IFS
49892
49893   ;;
49894 esac
49895 fi
49896 GUILE=$ac_cv_path_GUILE
49897 if test -n "$GUILE"; then
49898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
49899 $as_echo "$GUILE" >&6; }
49900 else
49901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49902 $as_echo "no" >&6; }
49903 fi
49904
49905
49906   if test "$GUILE" = "" ; then
49907       as_fn_error $? "guile required but not found" "$LINENO" 5
49908   fi
49909
49910   # Extract the first word of "guile-config", so it can be a program name with args.
49911 set dummy guile-config; ac_word=$2
49912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49913 $as_echo_n "checking for $ac_word... " >&6; }
49914 if ${ac_cv_path_GUILE_CONFIG+:} false; then :
49915   $as_echo_n "(cached) " >&6
49916 else
49917   case $GUILE_CONFIG in
49918   [\\/]* | ?:[\\/]*)
49919   ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
49920   ;;
49921   *)
49922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49923 for as_dir in $PATH
49924 do
49925   IFS=$as_save_IFS
49926   test -z "$as_dir" && as_dir=.
49927     for ac_exec_ext in '' $ac_executable_extensions; do
49928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49929     ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49931     break 2
49932   fi
49933 done
49934   done
49935 IFS=$as_save_IFS
49936
49937   ;;
49938 esac
49939 fi
49940 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
49941 if test -n "$GUILE_CONFIG"; then
49942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
49943 $as_echo "$GUILE_CONFIG" >&6; }
49944 else
49945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49946 $as_echo "no" >&6; }
49947 fi
49948
49949
49950   if test "$GUILE_CONFIG" = "" ; then
49951       as_fn_error $? "guile-config required but not found" "$LINENO" 5
49952   fi
49953
49954   # Extract the first word of "guile-tools", so it can be a program name with args.
49955 set dummy guile-tools; ac_word=$2
49956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49957 $as_echo_n "checking for $ac_word... " >&6; }
49958 if ${ac_cv_path_GUILE_TOOLS+:} false; then :
49959   $as_echo_n "(cached) " >&6
49960 else
49961   case $GUILE_TOOLS in
49962   [\\/]* | ?:[\\/]*)
49963   ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
49964   ;;
49965   *)
49966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49967 for as_dir in $PATH
49968 do
49969   IFS=$as_save_IFS
49970   test -z "$as_dir" && as_dir=.
49971     for ac_exec_ext in '' $ac_executable_extensions; do
49972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49973     ac_cv_path_GUILE_TOOLS="$as_dir/$ac_word$ac_exec_ext"
49974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49975     break 2
49976   fi
49977 done
49978   done
49979 IFS=$as_save_IFS
49980
49981   ;;
49982 esac
49983 fi
49984 GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
49985 if test -n "$GUILE_TOOLS"; then
49986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
49987 $as_echo "$GUILE_TOOLS" >&6; }
49988 else
49989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49990 $as_echo "no" >&6; }
49991 fi
49992
49993
49994
49995
49996         { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile compile flags" >&5
49997 $as_echo_n "checking libguile compile flags... " >&6; }
49998   GUILE_CFLAGS="`$GUILE_CONFIG compile`"
49999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CFLAGS" >&5
50000 $as_echo "$GUILE_CFLAGS" >&6; }
50001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile link flags" >&5
50002 $as_echo_n "checking libguile link flags... " >&6; }
50003   GUILE_LDFLAGS="`$GUILE_CONFIG link`"
50004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LDFLAGS" >&5
50005 $as_echo "$GUILE_LDFLAGS" >&6; }
50006
50007
50008
50009
50010       save_CFLAGS="$CFLAGS"
50011       save_LIBS="$LIBS"
50012       CFLAGS="$CFLAGS $GUILE_CFLAGS"
50013       LIBS="$LIBS $GUILE_LDFLAGS"
50014       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU Guile is recent enough" >&5
50015 $as_echo_n "checking whether GNU Guile is recent enough... " >&6; }
50016       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50017 /* end confdefs.h.  */
50018
50019 int
50020 main ()
50021 {
50022 scm_from_locale_string ("")
50023   ;
50024   return 0;
50025 }
50026 _ACEOF
50027 if ac_fn_c_try_link "$LINENO"; then :
50028
50029 else
50030   opt_guile_bindings=no
50031 fi
50032 rm -f core conftest.err conftest.$ac_objext \
50033     conftest$ac_exeext conftest.$ac_ext
50034       CFLAGS="$save_CFLAGS"
50035       LIBS="$save_LIBS"
50036
50037       if test "$opt_guile_bindings" = "yes"; then
50038         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50039 $as_echo "yes" >&6; }
50040         case "x$with_guile_site_dir" in
50041              xno)
50042                 # Use the default $(GUILE_SITE).
50043                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile site directory" >&5
50044 $as_echo_n "checking for Guile site directory... " >&6; }
50045   GUILE_SITE=`$GUILE_CONFIG info pkgdatadir`/site
50046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_SITE" >&5
50047 $as_echo "$GUILE_SITE" >&6; }
50048
50049
50050                 ;;
50051              x|xyes)
50052                 # Automatically derive $(GUILE_SITE) from $(pkgdatadir).  This
50053                 # hack is used to allow `distcheck' to work (see
50054                 # `DISTCHECK_CONFIGURE_FLAGS' in the top-level `Makefile.am').
50055                 GUILE_SITE="\$(datadir)/guile/site"
50056
50057                 ;;
50058              *)
50059                 # Use the user-specified directory as $(GUILE_SITE).
50060                 GUILE_SITE="$with_guile_site_dir"
50061
50062                 ;;
50063         esac
50064         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports -fgnu89-inline" >&5
50065 $as_echo_n "checking whether gcc supports -fgnu89-inline... " >&6; }
50066         _gcc_cflags_save="$CFLAGS"
50067         CFLAGS="${CFLAGS} -fgnu89-inline"
50068         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50069 /* end confdefs.h.  */
50070
50071 int
50072 main ()
50073 {
50074
50075   ;
50076   return 0;
50077 }
50078 _ACEOF
50079 if ac_fn_c_try_compile "$LINENO"; then :
50080   gnu89_inline=yes
50081 else
50082   gnu89_inline=no
50083 fi
50084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50085         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnu89_inline" >&5
50086 $as_echo "$gnu89_inline" >&6; }
50087         CFLAGS="$_gcc_cflags_save"
50088
50089         # Optional Guile functions.
50090         save_CFLAGS="$CFLAGS"
50091         save_LIBS="$LIBS"
50092         CFLAGS="$CFLAGS $GUILE_CFLAGS"
50093         LIBS="$LIBS $GUILE_LDFLAGS"
50094         for ac_func in scm_gc_malloc_pointerless
50095 do :
50096   ac_fn_c_check_func "$LINENO" "scm_gc_malloc_pointerless" "ac_cv_func_scm_gc_malloc_pointerless"
50097 if test "x$ac_cv_func_scm_gc_malloc_pointerless" = xyes; then :
50098   cat >>confdefs.h <<_ACEOF
50099 #define HAVE_SCM_GC_MALLOC_POINTERLESS 1
50100 _ACEOF
50101
50102 fi
50103 done
50104
50105         CFLAGS="$save_CFLAGS"
50106         LIBS="$save_LIBS"
50107
50108         # The place where guile-gnutls.la will go.
50109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Guile effective version" >&5
50110 $as_echo_n "checking the Guile effective version... " >&6; }
50111         guile_effective_version="`$GUILE -c '(display (effective-version))'`"
50112         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_effective_version" >&5
50113 $as_echo "$guile_effective_version" >&6; }
50114         guileextensiondir="$libdir/guile/$guile_effective_version"
50115
50116       else
50117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50118 $as_echo "no" >&6; }
50119         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A sufficiently recent GNU Guile not found.  Guile bindings not built." >&5
50120 $as_echo "$as_me: WARNING: A sufficiently recent GNU Guile not found.  Guile bindings not built." >&2;}
50121         opt_guile_bindings=no
50122       fi
50123    fi
50124 fi
50125  if test "$opt_guile_bindings" = "yes"; then
50126   HAVE_GUILE_TRUE=
50127   HAVE_GUILE_FALSE='#'
50128 else
50129   HAVE_GUILE_TRUE='#'
50130   HAVE_GUILE_FALSE=
50131 fi
50132
50133
50134 LIBGNUTLS_LIBS="-L${libdir} -lgnutls $LIBS"
50135 LIBGNUTLS_CFLAGS="-I${includedir}"
50136
50137
50138
50139  if test "$gnutls_needs_librt" = "yes"; then
50140   NEEDS_LIBRT_TRUE=
50141   NEEDS_LIBRT_FALSE='#'
50142 else
50143   NEEDS_LIBRT_TRUE='#'
50144   NEEDS_LIBRT_FALSE=
50145 fi
50146
50147
50148
50149 $as_echo "#define GNUTLS_COMPAT_H 1" >>confdefs.h
50150
50151
50152 $as_echo "#define GNUTLS_INTERNAL_BUILD 1" >>confdefs.h
50153
50154
50155
50156 $as_echo "#define fread_file _gnutls_fread_file" >>confdefs.h
50157
50158
50159 $as_echo "#define read_file _gnutls_read_file" >>confdefs.h
50160
50161
50162 $as_echo "#define read_binary_file _gnutls_read_binary_file" >>confdefs.h
50163
50164
50165    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
50166 *** Checking dependencies for crywrap...
50167 " >&5
50168 $as_echo "***
50169 *** Checking dependencies for crywrap...
50170 " >&6; }
50171
50172 crywrap=no
50173
50174 if test "$have_win" != "yes"; then
50175
50176 for ac_header in arpa/inet.h netinet/in.h sys/select.h sys/types.h sys/wait.h
50177 do :
50178   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
50179 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
50180 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
50181   cat >>confdefs.h <<_ACEOF
50182 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
50183 _ACEOF
50184
50185 fi
50186
50187 done
50188
50189
50190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
50191 $as_echo_n "checking return type of signal handlers... " >&6; }
50192 if ${ac_cv_type_signal+:} false; then :
50193   $as_echo_n "(cached) " >&6
50194 else
50195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50196 /* end confdefs.h.  */
50197 #include <sys/types.h>
50198 #include <signal.h>
50199
50200 int
50201 main ()
50202 {
50203 return *(signal (0, 0)) (0) == 1;
50204   ;
50205   return 0;
50206 }
50207 _ACEOF
50208 if ac_fn_c_try_compile "$LINENO"; then :
50209   ac_cv_type_signal=int
50210 else
50211   ac_cv_type_signal=void
50212 fi
50213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50214 fi
50215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
50216 $as_echo "$ac_cv_type_signal" >&6; }
50217
50218 cat >>confdefs.h <<_ACEOF
50219 #define RETSIGTYPE $ac_cv_type_signal
50220 _ACEOF
50221
50222
50223 for ac_header in sys/select.h sys/socket.h
50224 do :
50225   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
50226 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
50227 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
50228   cat >>confdefs.h <<_ACEOF
50229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
50230 _ACEOF
50231
50232 fi
50233
50234 done
50235
50236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
50237 $as_echo_n "checking types of arguments for select... " >&6; }
50238 if ${ac_cv_func_select_args+:} false; then :
50239   $as_echo_n "(cached) " >&6
50240 else
50241   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
50242  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
50243   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
50244    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50245 /* end confdefs.h.  */
50246 $ac_includes_default
50247 #ifdef HAVE_SYS_SELECT_H
50248 # include <sys/select.h>
50249 #endif
50250 #ifdef HAVE_SYS_SOCKET_H
50251 # include <sys/socket.h>
50252 #endif
50253
50254 int
50255 main ()
50256 {
50257 extern int select ($ac_arg1,
50258                                             $ac_arg234, $ac_arg234, $ac_arg234,
50259                                             $ac_arg5);
50260   ;
50261   return 0;
50262 }
50263 _ACEOF
50264 if ac_fn_c_try_compile "$LINENO"; then :
50265   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
50266 fi
50267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50268   done
50269  done
50270 done
50271 # Provide a safe default value.
50272 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
50273
50274 fi
50275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
50276 $as_echo "$ac_cv_func_select_args" >&6; }
50277 ac_save_IFS=$IFS; IFS=','
50278 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
50279 IFS=$ac_save_IFS
50280 shift
50281
50282 cat >>confdefs.h <<_ACEOF
50283 #define SELECT_TYPE_ARG1 $1
50284 _ACEOF
50285
50286
50287 cat >>confdefs.h <<_ACEOF
50288 #define SELECT_TYPE_ARG234 ($2)
50289 _ACEOF
50290
50291
50292 cat >>confdefs.h <<_ACEOF
50293 #define SELECT_TYPE_ARG5 ($3)
50294 _ACEOF
50295
50296 rm -f conftest*
50297
50298 for ac_func in alarm atexit dup2 epoll_create kqueue memchr memset munmap \
50299                 putenv regcomp scandir select socket strcasecmp strchr \
50300                 strdup strerror strncasecmp strrchr strstr strtoul uname
50301 do :
50302   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
50304 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
50305   cat >>confdefs.h <<_ACEOF
50306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50307 _ACEOF
50308
50309 fi
50310 done
50311
50312
50313 # Check whether --enable-crywrap was given.
50314 if test "${enable_crywrap+set}" = set; then :
50315   enableval=$enable_crywrap;
50316 fi
50317
50318
50319  libidn=no
50320
50321  if test "x$enable_crywrap" != "xno" ; then
50322
50323 pkg_failed=no
50324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBIDN" >&5
50325 $as_echo_n "checking for LIBIDN... " >&6; }
50326
50327 if test -n "$PKG_CONFIG"; then
50328     if test -n "$LIBIDN_CFLAGS"; then
50329         pkg_cv_LIBIDN_CFLAGS="$LIBIDN_CFLAGS"
50330     else
50331         if test -n "$PKG_CONFIG" && \
50332     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5
50333   ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5
50334   ac_status=$?
50335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50336   test $ac_status = 0; }; then
50337   pkg_cv_LIBIDN_CFLAGS=`$PKG_CONFIG --cflags "libidn >= 0.0.0" 2>/dev/null`
50338 else
50339   pkg_failed=yes
50340 fi
50341     fi
50342 else
50343         pkg_failed=untried
50344 fi
50345 if test -n "$PKG_CONFIG"; then
50346     if test -n "$LIBIDN_LIBS"; then
50347         pkg_cv_LIBIDN_LIBS="$LIBIDN_LIBS"
50348     else
50349         if test -n "$PKG_CONFIG" && \
50350     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5
50351   ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5
50352   ac_status=$?
50353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50354   test $ac_status = 0; }; then
50355   pkg_cv_LIBIDN_LIBS=`$PKG_CONFIG --libs "libidn >= 0.0.0" 2>/dev/null`
50356 else
50357   pkg_failed=yes
50358 fi
50359     fi
50360 else
50361         pkg_failed=untried
50362 fi
50363
50364
50365
50366 if test $pkg_failed = yes; then
50367
50368 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50369         _pkg_short_errors_supported=yes
50370 else
50371         _pkg_short_errors_supported=no
50372 fi
50373         if test $_pkg_short_errors_supported = yes; then
50374                 LIBIDN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libidn >= 0.0.0"`
50375         else
50376                 LIBIDN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libidn >= 0.0.0"`
50377         fi
50378         # Put the nasty error message in config.log where it belongs
50379         echo "$LIBIDN_PKG_ERRORS" >&5
50380
50381         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50382 $as_echo "no" >&6; }
50383                 libidn=no
50384 elif test $pkg_failed = untried; then
50385         libidn=no
50386 else
50387         LIBIDN_CFLAGS=$pkg_cv_LIBIDN_CFLAGS
50388         LIBIDN_LIBS=$pkg_cv_LIBIDN_LIBS
50389         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50390 $as_echo "yes" >&6; }
50391         libidn=yes
50392 fi
50393         for ac_func in argp_usage
50394 do :
50395   ac_fn_c_check_func "$LINENO" "argp_usage" "ac_cv_func_argp_usage"
50396 if test "x$ac_cv_func_argp_usage" = xyes; then :
50397   cat >>confdefs.h <<_ACEOF
50398 #define HAVE_ARGP_USAGE 1
50399 _ACEOF
50400  ac_argp=yes
50401 else
50402   ac_argp=no
50403 fi
50404 done
50405
50406  fi
50407
50408  if test "x$libidn" != "xno" && test "$ac_cv_func_daemon" != "no" && test "$ac_argp" != "no";then
50409   crywrap=yes
50410  fi
50411
50412 fi
50413
50414  if test "x$crywrap" != "xno"; then
50415   ENABLE_CRYWRAP_TRUE=
50416   ENABLE_CRYWRAP_FALSE='#'
50417 else
50418   ENABLE_CRYWRAP_TRUE='#'
50419   ENABLE_CRYWRAP_FALSE=
50420 fi
50421
50422
50423
50424 YEAR=`date +%Y`
50425 YEAR=$YEAR
50426
50427
50428 ac_config_files="$ac_config_files guile/pre-inst-guile"
50429
50430 ac_config_files="$ac_config_files Makefile doc/Makefile doc/credentials/Makefile doc/credentials/openpgp/Makefile doc/credentials/srp/Makefile doc/credentials/x509/Makefile doc/cyclo/Makefile doc/doxygen/Doxyfile doc/examples/Makefile doc/latex/Makefile doc/manpages/Makefile doc/reference/Makefile doc/reference/version.xml doc/scripts/Makefile extra/Makefile extra/includes/Makefile libdane/Makefile libdane/includes/Makefile libdane/gnutls-dane.pc gl/Makefile gl/tests/Makefile guile/Makefile guile/modules/Makefile guile/src/Makefile guile/tests/Makefile lib/Makefile lib/accelerated/Makefile lib/accelerated/x86/Makefile lib/algorithms/Makefile lib/auth/Makefile lib/ext/Makefile lib/extras/Makefile lib/gnutls.pc lib/includes/Makefile lib/includes/gnutls/gnutls.h lib/minitasn1/Makefile lib/nettle/Makefile lib/opencdk/Makefile lib/openpgp/Makefile lib/x509/Makefile po/Makefile.in src/Makefile src/crywrap/Makefile src/gl/Makefile tests/Makefile tests/cert-tests/Makefile tests/dsa/Makefile tests/dtls/Makefile tests/srp/Makefile tests/ecdsa/Makefile tests/key-tests/Makefile tests/openpgp-certs/Makefile tests/pkcs1-padding/Makefile tests/pkcs12-decode/Makefile tests/pkcs8-decode/Makefile tests/rsa-md5-collision/Makefile tests/safe-renegotiation/Makefile tests/scripts/Makefile tests/sha2/Makefile tests/slow/Makefile tests/suite/Makefile tests/userid/Makefile"
50431
50432
50433 cat >confcache <<\_ACEOF
50434 # This file is a shell script that caches the results of configure
50435 # tests run on this system so they can be shared between configure
50436 # scripts and configure runs, see configure's option --config-cache.
50437 # It is not useful on other systems.  If it contains results you don't
50438 # want to keep, you may remove or edit it.
50439 #
50440 # config.status only pays attention to the cache file if you give it
50441 # the --recheck option to rerun configure.
50442 #
50443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50445 # following values.
50446
50447 _ACEOF
50448
50449 # The following way of writing the cache mishandles newlines in values,
50450 # but we know of no workaround that is simple, portable, and efficient.
50451 # So, we kill variables containing newlines.
50452 # Ultrix sh set writes to stderr and can't be redirected directly,
50453 # and sets the high bit in the cache file unless we assign to the vars.
50454 (
50455   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
50456     eval ac_val=\$$ac_var
50457     case $ac_val in #(
50458     *${as_nl}*)
50459       case $ac_var in #(
50460       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
50461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
50462       esac
50463       case $ac_var in #(
50464       _ | IFS | as_nl) ;; #(
50465       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
50466       *) { eval $ac_var=; unset $ac_var;} ;;
50467       esac ;;
50468     esac
50469   done
50470
50471   (set) 2>&1 |
50472     case $as_nl`(ac_space=' '; set) 2>&1` in #(
50473     *${as_nl}ac_space=\ *)
50474       # `set' does not quote correctly, so add quotes: double-quote
50475       # substitution turns \\\\ into \\, and sed turns \\ into \.
50476       sed -n \
50477         "s/'/'\\\\''/g;
50478           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
50479       ;; #(
50480     *)
50481       # `set' quotes correctly as required by POSIX, so do not add quotes.
50482       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
50483       ;;
50484     esac |
50485     sort
50486 ) |
50487   sed '
50488      /^ac_cv_env_/b end
50489      t clear
50490      :clear
50491      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50492      t end
50493      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50494      :end' >>confcache
50495 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
50496   if test -w "$cache_file"; then
50497     if test "x$cache_file" != "x/dev/null"; then
50498       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
50499 $as_echo "$as_me: updating cache $cache_file" >&6;}
50500       if test ! -f "$cache_file" || test -h "$cache_file"; then
50501         cat confcache >"$cache_file"
50502       else
50503         case $cache_file in #(
50504         */* | ?:*)
50505           mv -f confcache "$cache_file"$$ &&
50506           mv -f "$cache_file"$$ "$cache_file" ;; #(
50507         *)
50508           mv -f confcache "$cache_file" ;;
50509         esac
50510       fi
50511     fi
50512   else
50513     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
50514 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50515   fi
50516 fi
50517 rm -f confcache
50518
50519 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50520 # Let make expand exec_prefix.
50521 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50522
50523 DEFS=-DHAVE_CONFIG_H
50524
50525 ac_libobjs=
50526 ac_ltlibobjs=
50527 U=
50528 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50529   # 1. Remove the extension, and $U if already installed.
50530   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
50531   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
50532   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
50533   #    will be set to the directory where LIBOBJS objects are built.
50534   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
50535   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
50536 done
50537 LIBOBJS=$ac_libobjs
50538
50539 LTLIBOBJS=$ac_ltlibobjs
50540
50541
50542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
50543 $as_echo_n "checking that generated files are newer than configure... " >&6; }
50544    if test -n "$am_sleep_pid"; then
50545      # Hide warnings about reused PIDs.
50546      wait $am_sleep_pid 2>/dev/null
50547    fi
50548    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
50549 $as_echo "done" >&6; }
50550  if test -n "$EXEEXT"; then
50551   am__EXEEXT_TRUE=
50552   am__EXEEXT_FALSE='#'
50553 else
50554   am__EXEEXT_TRUE='#'
50555   am__EXEEXT_FALSE=
50556 fi
50557
50558 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
50559   as_fn_error $? "conditional \"AMDEP\" was never defined.
50560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50561 fi
50562 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
50563   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
50564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50565 fi
50566 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
50567   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
50568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50569 fi
50570 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
50571   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
50572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50573 fi
50574 if test -z "${ENABLE_CXX_TRUE}" && test -z "${ENABLE_CXX_FALSE}"; then
50575   as_fn_error $? "conditional \"ENABLE_CXX\" was never defined.
50576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50577 fi
50578 if test -z "${WANT_TEST_SUITE_TRUE}" && test -z "${WANT_TEST_SUITE_FALSE}"; then
50579   as_fn_error $? "conditional \"WANT_TEST_SUITE\" was never defined.
50580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50581 fi
50582 if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
50583   as_fn_error $? "conditional \"WINDOWS\" was never defined.
50584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50585 fi
50586 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
50587   as_fn_error $? "conditional \"MACOSX\" was never defined.
50588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50589 fi
50590 if test -z "${ELF_TRUE}" && test -z "${ELF_FALSE}"; then
50591   as_fn_error $? "conditional \"ELF\" was never defined.
50592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50593 fi
50594 if test -z "${ENABLE_PADLOCK_TRUE}" && test -z "${ENABLE_PADLOCK_FALSE}"; then
50595   as_fn_error $? "conditional \"ENABLE_PADLOCK\" was never defined.
50596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50597 fi
50598 if test -z "${ASM_X86_64_TRUE}" && test -z "${ASM_X86_64_FALSE}"; then
50599   as_fn_error $? "conditional \"ASM_X86_64\" was never defined.
50600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50601 fi
50602 if test -z "${ASM_X86_32_TRUE}" && test -z "${ASM_X86_32_FALSE}"; then
50603   as_fn_error $? "conditional \"ASM_X86_32\" was never defined.
50604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50605 fi
50606 if test -z "${ASM_X86_TRUE}" && test -z "${ASM_X86_FALSE}"; then
50607   as_fn_error $? "conditional \"ASM_X86\" was never defined.
50608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50609 fi
50610 if test -z "${HAVE_GCC_GNU89_INLINE_OPTION_TRUE}" && test -z "${HAVE_GCC_GNU89_INLINE_OPTION_FALSE}"; then
50611   as_fn_error $? "conditional \"HAVE_GCC_GNU89_INLINE_OPTION\" was never defined.
50612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50613 fi
50614 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
50615   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
50616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50617 fi
50618 if test -z "${ENABLE_NETTLE_TRUE}" && test -z "${ENABLE_NETTLE_FALSE}"; then
50619   as_fn_error $? "conditional \"ENABLE_NETTLE\" was never defined.
50620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50621 fi
50622 if test -z "${USE_NETTLE3_TRUE}" && test -z "${USE_NETTLE3_FALSE}"; then
50623   as_fn_error $? "conditional \"USE_NETTLE3\" was never defined.
50624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50625 fi
50626 if test -z "${ENABLE_MINITASN1_TRUE}" && test -z "${ENABLE_MINITASN1_FALSE}"; then
50627   as_fn_error $? "conditional \"ENABLE_MINITASN1\" was never defined.
50628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50629 fi
50630 if test -z "${ENABLE_DTLS_SRTP_TRUE}" && test -z "${ENABLE_DTLS_SRTP_FALSE}"; then
50631   as_fn_error $? "conditional \"ENABLE_DTLS_SRTP\" was never defined.
50632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50633 fi
50634 if test -z "${ENABLE_ALPN_TRUE}" && test -z "${ENABLE_ALPN_FALSE}"; then
50635   as_fn_error $? "conditional \"ENABLE_ALPN\" was never defined.
50636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50637 fi
50638 if test -z "${ENABLE_RSA_EXPORT_TRUE}" && test -z "${ENABLE_RSA_EXPORT_FALSE}"; then
50639   as_fn_error $? "conditional \"ENABLE_RSA_EXPORT\" was never defined.
50640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50641 fi
50642 if test -z "${ENABLE_HEARTBEAT_TRUE}" && test -z "${ENABLE_HEARTBEAT_FALSE}"; then
50643   as_fn_error $? "conditional \"ENABLE_HEARTBEAT\" was never defined.
50644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50645 fi
50646 if test -z "${ENABLE_SRP_TRUE}" && test -z "${ENABLE_SRP_FALSE}"; then
50647   as_fn_error $? "conditional \"ENABLE_SRP\" was never defined.
50648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50649 fi
50650 if test -z "${ENABLE_PSK_TRUE}" && test -z "${ENABLE_PSK_FALSE}"; then
50651   as_fn_error $? "conditional \"ENABLE_PSK\" was never defined.
50652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50653 fi
50654 if test -z "${ENABLE_ANON_TRUE}" && test -z "${ENABLE_ANON_FALSE}"; then
50655   as_fn_error $? "conditional \"ENABLE_ANON\" was never defined.
50656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50657 fi
50658 if test -z "${ENABLE_DHE_TRUE}" && test -z "${ENABLE_DHE_FALSE}"; then
50659   as_fn_error $? "conditional \"ENABLE_DHE\" was never defined.
50660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50661 fi
50662 if test -z "${ENABLE_ECDHE_TRUE}" && test -z "${ENABLE_ECDHE_FALSE}"; then
50663   as_fn_error $? "conditional \"ENABLE_ECDHE\" was never defined.
50664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50665 fi
50666 if test -z "${ENABLE_OPENPGP_TRUE}" && test -z "${ENABLE_OPENPGP_FALSE}"; then
50667   as_fn_error $? "conditional \"ENABLE_OPENPGP\" was never defined.
50668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50669 fi
50670 if test -z "${ENABLE_OCSP_TRUE}" && test -z "${ENABLE_OCSP_FALSE}"; then
50671   as_fn_error $? "conditional \"ENABLE_OCSP\" was never defined.
50672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50673 fi
50674 if test -z "${ENABLE_SESSION_TICKETS_TRUE}" && test -z "${ENABLE_SESSION_TICKETS_FALSE}"; then
50675   as_fn_error $? "conditional \"ENABLE_SESSION_TICKETS\" was never defined.
50676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50677 fi
50678 if test -z "${ENABLE_OPENSSL_TRUE}" && test -z "${ENABLE_OPENSSL_FALSE}"; then
50679   as_fn_error $? "conditional \"ENABLE_OPENSSL\" was never defined.
50680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50681 fi
50682 if test -z "${ENABLE_DOC_TRUE}" && test -z "${ENABLE_DOC_FALSE}"; then
50683   as_fn_error $? "conditional \"ENABLE_DOC\" was never defined.
50684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50685 fi
50686 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
50687   as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
50688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50689 fi
50690 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
50691   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
50692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50693 fi
50694 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
50695   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
50696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50697 fi
50698 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
50699   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
50700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50701 fi
50702 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
50703   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
50704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50705 fi
50706 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
50707   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
50708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50709 fi
50710
50711 if test -z "${HAVE_FORK_TRUE}" && test -z "${HAVE_FORK_FALSE}"; then
50712   as_fn_error $? "conditional \"HAVE_FORK\" was never defined.
50713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50714 fi
50715 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
50716   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
50717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50718 fi
50719 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
50720   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
50721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50722 fi
50723 if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
50724   as_fn_error $? "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
50725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50726 fi
50727 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
50728   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
50729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50730 fi
50731 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
50732   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
50733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50734 fi
50735 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
50736   as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
50737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50738 fi
50739 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
50740   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
50741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50742 fi
50743 CONFIG_INCLUDE=config.h
50744
50745 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
50746   as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
50747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50748 fi
50749 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
50750   as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
50751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50752 fi
50753 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
50754   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
50755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50756 fi
50757 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
50758   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
50759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50760 fi
50761 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
50762   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
50763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50764 fi
50765
50766
50767     gl_libobjs=
50768     gl_ltlibobjs=
50769     if test -n "$gl_LIBOBJS"; then
50770       # Remove the extension.
50771       sed_drop_objext='s/\.o$//;s/\.obj$//'
50772       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
50773         gl_libobjs="$gl_libobjs $i.$ac_objext"
50774         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
50775       done
50776     fi
50777     gl_LIBOBJS=$gl_libobjs
50778
50779     gl_LTLIBOBJS=$gl_ltlibobjs
50780
50781
50782
50783     gltests_libobjs=
50784     gltests_ltlibobjs=
50785     if test -n "$gltests_LIBOBJS"; then
50786       # Remove the extension.
50787       sed_drop_objext='s/\.o$//;s/\.obj$//'
50788       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
50789         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
50790         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
50791       done
50792     fi
50793     gltests_LIBOBJS=$gltests_libobjs
50794
50795     gltests_LTLIBOBJS=$gltests_ltlibobjs
50796
50797
50798 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
50799   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
50800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50801 fi
50802 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
50803   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
50804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50805 fi
50806 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
50807   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
50808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50809 fi
50810 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
50811   as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
50812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50813 fi
50814 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
50815   as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
50816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50817 fi
50818 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
50819   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
50820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50821 fi
50822 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
50823   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
50824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50825 fi
50826
50827     ggl_libobjs=
50828     ggl_ltlibobjs=
50829     if test -n "$ggl_LIBOBJS"; then
50830       # Remove the extension.
50831       sed_drop_objext='s/\.o$//;s/\.obj$//'
50832       for i in `for i in $ggl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
50833         ggl_libobjs="$ggl_libobjs $i.$ac_objext"
50834         ggl_ltlibobjs="$ggl_ltlibobjs $i.lo"
50835       done
50836     fi
50837     ggl_LIBOBJS=$ggl_libobjs
50838
50839     ggl_LTLIBOBJS=$ggl_ltlibobjs
50840
50841
50842
50843     ggltests_libobjs=
50844     ggltests_ltlibobjs=
50845     if test -n "$ggltests_LIBOBJS"; then
50846       # Remove the extension.
50847       sed_drop_objext='s/\.o$//;s/\.obj$//'
50848       for i in `for i in $ggltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
50849         ggltests_libobjs="$ggltests_libobjs $i.$ac_objext"
50850         ggltests_ltlibobjs="$ggltests_ltlibobjs $i.lo"
50851       done
50852     fi
50853     ggltests_LIBOBJS=$ggltests_libobjs
50854
50855     ggltests_LTLIBOBJS=$ggltests_ltlibobjs
50856
50857
50858 if test -z "${ENABLE_FIPS140_TRUE}" && test -z "${ENABLE_FIPS140_FALSE}"; then
50859   as_fn_error $? "conditional \"ENABLE_FIPS140\" was never defined.
50860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50861 fi
50862 if test -z "${ENABLE_NON_SUITEB_CURVES_TRUE}" && test -z "${ENABLE_NON_SUITEB_CURVES_FALSE}"; then
50863   as_fn_error $? "conditional \"ENABLE_NON_SUITEB_CURVES\" was never defined.
50864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50865 fi
50866 if test -z "${ENABLE_SELF_CHECKS_TRUE}" && test -z "${ENABLE_SELF_CHECKS_FALSE}"; then
50867   as_fn_error $? "conditional \"ENABLE_SELF_CHECKS\" was never defined.
50868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50869 fi
50870 if test -z "${ENABLE_ARCFOUR128_TRUE}" && test -z "${ENABLE_ARCFOUR128_FALSE}"; then
50871   as_fn_error $? "conditional \"ENABLE_ARCFOUR128\" was never defined.
50872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50873 fi
50874 if test -z "${ENABLE_SSL3_TRUE}" && test -z "${ENABLE_SSL3_FALSE}"; then
50875   as_fn_error $? "conditional \"ENABLE_SSL3\" was never defined.
50876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50877 fi
50878 if test -z "${ENABLE_DANE_TRUE}" && test -z "${ENABLE_DANE_FALSE}"; then
50879   as_fn_error $? "conditional \"ENABLE_DANE\" was never defined.
50880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50881 fi
50882 if test -z "${ENABLE_PKCS11_TRUE}" && test -z "${ENABLE_PKCS11_FALSE}"; then
50883   as_fn_error $? "conditional \"ENABLE_PKCS11\" was never defined.
50884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50885 fi
50886 if test -z "${HAVE_BUGGY_P11_KIT_TRUE}" && test -z "${HAVE_BUGGY_P11_KIT_FALSE}"; then
50887   as_fn_error $? "conditional \"HAVE_BUGGY_P11_KIT\" was never defined.
50888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50889 fi
50890 if test -z "${ENABLE_TROUSERS_TRUE}" && test -z "${ENABLE_TROUSERS_FALSE}"; then
50891   as_fn_error $? "conditional \"ENABLE_TROUSERS\" was never defined.
50892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50893 fi
50894 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
50895   as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
50896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50897 fi
50898 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
50899   as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
50900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50901 fi
50902 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
50903   as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
50904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50905 fi
50906 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
50907   as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
50908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50909 fi
50910 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
50911   as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
50912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50913 fi
50914 if test -z "${NEEDS_LIBRT_TRUE}" && test -z "${NEEDS_LIBRT_FALSE}"; then
50915   as_fn_error $? "conditional \"NEEDS_LIBRT\" was never defined.
50916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50917 fi
50918 if test -z "${ENABLE_CRYWRAP_TRUE}" && test -z "${ENABLE_CRYWRAP_FALSE}"; then
50919   as_fn_error $? "conditional \"ENABLE_CRYWRAP\" was never defined.
50920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50921 fi
50922
50923 : "${CONFIG_STATUS=./config.status}"
50924 ac_write_fail=0
50925 ac_clean_files_save=$ac_clean_files
50926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
50928 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
50929 as_write_fail=0
50930 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
50931 #! $SHELL
50932 # Generated by $as_me.
50933 # Run this file to recreate the current configuration.
50934 # Compiler output produced by configure, useful for debugging
50935 # configure, is in config.log if it exists.
50936
50937 debug=false
50938 ac_cs_recheck=false
50939 ac_cs_silent=false
50940
50941 SHELL=\${CONFIG_SHELL-$SHELL}
50942 export SHELL
50943 _ASEOF
50944 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
50945 ## -------------------- ##
50946 ## M4sh Initialization. ##
50947 ## -------------------- ##
50948
50949 # Be more Bourne compatible
50950 DUALCASE=1; export DUALCASE # for MKS sh
50951 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
50952   emulate sh
50953   NULLCMD=:
50954   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
50955   # is contrary to our usage.  Disable this feature.
50956   alias -g '${1+"$@"}'='"$@"'
50957   setopt NO_GLOB_SUBST
50958 else
50959   case `(set -o) 2>/dev/null` in #(
50960   *posix*) :
50961     set -o posix ;; #(
50962   *) :
50963      ;;
50964 esac
50965 fi
50966
50967
50968 as_nl='
50969 '
50970 export as_nl
50971 # Printing a long string crashes Solaris 7 /usr/bin/printf.
50972 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
50973 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50974 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50975 # Prefer a ksh shell builtin over an external printf program on Solaris,
50976 # but without wasting forks for bash or zsh.
50977 if test -z "$BASH_VERSION$ZSH_VERSION" \
50978     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50979   as_echo='print -r --'
50980   as_echo_n='print -rn --'
50981 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50982   as_echo='printf %s\n'
50983   as_echo_n='printf %s'
50984 else
50985   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
50986     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
50987     as_echo_n='/usr/ucb/echo -n'
50988   else
50989     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
50990     as_echo_n_body='eval
50991       arg=$1;
50992       case $arg in #(
50993       *"$as_nl"*)
50994         expr "X$arg" : "X\\(.*\\)$as_nl";
50995         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
50996       esac;
50997       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
50998     '
50999     export as_echo_n_body
51000     as_echo_n='sh -c $as_echo_n_body as_echo'
51001   fi
51002   export as_echo_body
51003   as_echo='sh -c $as_echo_body as_echo'
51004 fi
51005
51006 # The user is always right.
51007 if test "${PATH_SEPARATOR+set}" != set; then
51008   PATH_SEPARATOR=:
51009   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
51010     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
51011       PATH_SEPARATOR=';'
51012   }
51013 fi
51014
51015
51016 # IFS
51017 # We need space, tab and new line, in precisely that order.  Quoting is
51018 # there to prevent editors from complaining about space-tab.
51019 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
51020 # splitting by setting IFS to empty value.)
51021 IFS=" ""        $as_nl"
51022
51023 # Find who we are.  Look in the path if we contain no directory separator.
51024 as_myself=
51025 case $0 in #((
51026   *[\\/]* ) as_myself=$0 ;;
51027   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51028 for as_dir in $PATH
51029 do
51030   IFS=$as_save_IFS
51031   test -z "$as_dir" && as_dir=.
51032     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51033   done
51034 IFS=$as_save_IFS
51035
51036      ;;
51037 esac
51038 # We did not find ourselves, most probably we were run as `sh COMMAND'
51039 # in which case we are not to be found in the path.
51040 if test "x$as_myself" = x; then
51041   as_myself=$0
51042 fi
51043 if test ! -f "$as_myself"; then
51044   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51045   exit 1
51046 fi
51047
51048 # Unset variables that we do not need and which cause bugs (e.g. in
51049 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
51050 # suppresses any "Segmentation fault" message there.  '((' could
51051 # trigger a bug in pdksh 5.2.14.
51052 for as_var in BASH_ENV ENV MAIL MAILPATH
51053 do eval test x\${$as_var+set} = xset \
51054   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
51055 done
51056 PS1='$ '
51057 PS2='> '
51058 PS4='+ '
51059
51060 # NLS nuisances.
51061 LC_ALL=C
51062 export LC_ALL
51063 LANGUAGE=C
51064 export LANGUAGE
51065
51066 # CDPATH.
51067 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
51068
51069
51070 # as_fn_error STATUS ERROR [LINENO LOG_FD]
51071 # ----------------------------------------
51072 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
51073 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
51074 # script with STATUS, using 1 if that was 0.
51075 as_fn_error ()
51076 {
51077   as_status=$1; test $as_status -eq 0 && as_status=1
51078   if test "$4"; then
51079     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
51080     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
51081   fi
51082   $as_echo "$as_me: error: $2" >&2
51083   as_fn_exit $as_status
51084 } # as_fn_error
51085
51086
51087 # as_fn_set_status STATUS
51088 # -----------------------
51089 # Set $? to STATUS, without forking.
51090 as_fn_set_status ()
51091 {
51092   return $1
51093 } # as_fn_set_status
51094
51095 # as_fn_exit STATUS
51096 # -----------------
51097 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
51098 as_fn_exit ()
51099 {
51100   set +e
51101   as_fn_set_status $1
51102   exit $1
51103 } # as_fn_exit
51104
51105 # as_fn_unset VAR
51106 # ---------------
51107 # Portably unset VAR.
51108 as_fn_unset ()
51109 {
51110   { eval $1=; unset $1;}
51111 }
51112 as_unset=as_fn_unset
51113 # as_fn_append VAR VALUE
51114 # ----------------------
51115 # Append the text in VALUE to the end of the definition contained in VAR. Take
51116 # advantage of any shell optimizations that allow amortized linear growth over
51117 # repeated appends, instead of the typical quadratic growth present in naive
51118 # implementations.
51119 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
51120   eval 'as_fn_append ()
51121   {
51122     eval $1+=\$2
51123   }'
51124 else
51125   as_fn_append ()
51126   {
51127     eval $1=\$$1\$2
51128   }
51129 fi # as_fn_append
51130
51131 # as_fn_arith ARG...
51132 # ------------------
51133 # Perform arithmetic evaluation on the ARGs, and store the result in the
51134 # global $as_val. Take advantage of shells that can avoid forks. The arguments
51135 # must be portable across $(()) and expr.
51136 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
51137   eval 'as_fn_arith ()
51138   {
51139     as_val=$(( $* ))
51140   }'
51141 else
51142   as_fn_arith ()
51143   {
51144     as_val=`expr "$@" || test $? -eq 1`
51145   }
51146 fi # as_fn_arith
51147
51148
51149 if expr a : '\(a\)' >/dev/null 2>&1 &&
51150    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51151   as_expr=expr
51152 else
51153   as_expr=false
51154 fi
51155
51156 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51157   as_basename=basename
51158 else
51159   as_basename=false
51160 fi
51161
51162 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51163   as_dirname=dirname
51164 else
51165   as_dirname=false
51166 fi
51167
51168 as_me=`$as_basename -- "$0" ||
51169 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51170          X"$0" : 'X\(//\)$' \| \
51171          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51172 $as_echo X/"$0" |
51173     sed '/^.*\/\([^/][^/]*\)\/*$/{
51174             s//\1/
51175             q
51176           }
51177           /^X\/\(\/\/\)$/{
51178             s//\1/
51179             q
51180           }
51181           /^X\/\(\/\).*/{
51182             s//\1/
51183             q
51184           }
51185           s/.*/./; q'`
51186
51187 # Avoid depending upon Character Ranges.
51188 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51189 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51190 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51191 as_cr_digits='0123456789'
51192 as_cr_alnum=$as_cr_Letters$as_cr_digits
51193
51194 ECHO_C= ECHO_N= ECHO_T=
51195 case `echo -n x` in #(((((
51196 -n*)
51197   case `echo 'xy\c'` in
51198   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
51199   xy)  ECHO_C='\c';;
51200   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
51201        ECHO_T=' ';;
51202   esac;;
51203 *)
51204   ECHO_N='-n';;
51205 esac
51206
51207 rm -f conf$$ conf$$.exe conf$$.file
51208 if test -d conf$$.dir; then
51209   rm -f conf$$.dir/conf$$.file
51210 else
51211   rm -f conf$$.dir
51212   mkdir conf$$.dir 2>/dev/null
51213 fi
51214 if (echo >conf$$.file) 2>/dev/null; then
51215   if ln -s conf$$.file conf$$ 2>/dev/null; then
51216     as_ln_s='ln -s'
51217     # ... but there are two gotchas:
51218     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
51219     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
51220     # In both cases, we have to default to `cp -pR'.
51221     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
51222       as_ln_s='cp -pR'
51223   elif ln conf$$.file conf$$ 2>/dev/null; then
51224     as_ln_s=ln
51225   else
51226     as_ln_s='cp -pR'
51227   fi
51228 else
51229   as_ln_s='cp -pR'
51230 fi
51231 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51232 rmdir conf$$.dir 2>/dev/null
51233
51234
51235 # as_fn_mkdir_p
51236 # -------------
51237 # Create "$as_dir" as a directory, including parents if necessary.
51238 as_fn_mkdir_p ()
51239 {
51240
51241   case $as_dir in #(
51242   -*) as_dir=./$as_dir;;
51243   esac
51244   test -d "$as_dir" || eval $as_mkdir_p || {
51245     as_dirs=
51246     while :; do
51247       case $as_dir in #(
51248       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
51249       *) as_qdir=$as_dir;;
51250       esac
51251       as_dirs="'$as_qdir' $as_dirs"
51252       as_dir=`$as_dirname -- "$as_dir" ||
51253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51254          X"$as_dir" : 'X\(//\)[^/]' \| \
51255          X"$as_dir" : 'X\(//\)$' \| \
51256          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51257 $as_echo X"$as_dir" |
51258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51259             s//\1/
51260             q
51261           }
51262           /^X\(\/\/\)[^/].*/{
51263             s//\1/
51264             q
51265           }
51266           /^X\(\/\/\)$/{
51267             s//\1/
51268             q
51269           }
51270           /^X\(\/\).*/{
51271             s//\1/
51272             q
51273           }
51274           s/.*/./; q'`
51275       test -d "$as_dir" && break
51276     done
51277     test -z "$as_dirs" || eval "mkdir $as_dirs"
51278   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
51279
51280
51281 } # as_fn_mkdir_p
51282 if mkdir -p . 2>/dev/null; then
51283   as_mkdir_p='mkdir -p "$as_dir"'
51284 else
51285   test -d ./-p && rmdir ./-p
51286   as_mkdir_p=false
51287 fi
51288
51289
51290 # as_fn_executable_p FILE
51291 # -----------------------
51292 # Test if FILE is an executable regular file.
51293 as_fn_executable_p ()
51294 {
51295   test -f "$1" && test -x "$1"
51296 } # as_fn_executable_p
51297 as_test_x='test -x'
51298 as_executable_p=as_fn_executable_p
51299
51300 # Sed expression to map a string onto a valid CPP name.
51301 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51302
51303 # Sed expression to map a string onto a valid variable name.
51304 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51305
51306
51307 exec 6>&1
51308 ## ----------------------------------- ##
51309 ## Main body of $CONFIG_STATUS script. ##
51310 ## ----------------------------------- ##
51311 _ASEOF
51312 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
51313
51314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51315 # Save the log message, to keep $0 and so on meaningful, and to
51316 # report actual input values of CONFIG_FILES etc. instead of their
51317 # values after options handling.
51318 ac_log="
51319 This file was extended by GnuTLS $as_me 3.3.27, which was
51320 generated by GNU Autoconf 2.69.  Invocation command line was
51321
51322   CONFIG_FILES    = $CONFIG_FILES
51323   CONFIG_HEADERS  = $CONFIG_HEADERS
51324   CONFIG_LINKS    = $CONFIG_LINKS
51325   CONFIG_COMMANDS = $CONFIG_COMMANDS
51326   $ $0 $@
51327
51328 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51329 "
51330
51331 _ACEOF
51332
51333 case $ac_config_files in *"
51334 "*) set x $ac_config_files; shift; ac_config_files=$*;;
51335 esac
51336
51337 case $ac_config_headers in *"
51338 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
51339 esac
51340
51341
51342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51343 # Files that config.status was made for.
51344 config_files="$ac_config_files"
51345 config_headers="$ac_config_headers"
51346 config_links="$ac_config_links"
51347 config_commands="$ac_config_commands"
51348
51349 _ACEOF
51350
51351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51352 ac_cs_usage="\
51353 \`$as_me' instantiates files and other configuration actions
51354 from templates according to the current configuration.  Unless the files
51355 and actions are specified as TAGs, all are instantiated by default.
51356
51357 Usage: $0 [OPTION]... [TAG]...
51358
51359   -h, --help       print this help, then exit
51360   -V, --version    print version number and configuration settings, then exit
51361       --config     print configuration, then exit
51362   -q, --quiet, --silent
51363                    do not print progress messages
51364   -d, --debug      don't remove temporary files
51365       --recheck    update $as_me by reconfiguring in the same conditions
51366       --file=FILE[:TEMPLATE]
51367                    instantiate the configuration file FILE
51368       --header=FILE[:TEMPLATE]
51369                    instantiate the configuration header FILE
51370
51371 Configuration files:
51372 $config_files
51373
51374 Configuration headers:
51375 $config_headers
51376
51377 Configuration links:
51378 $config_links
51379
51380 Configuration commands:
51381 $config_commands
51382
51383 Report bugs to <bugs@gnutls.org>."
51384
51385 _ACEOF
51386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51387 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
51388 ac_cs_version="\\
51389 GnuTLS config.status 3.3.27
51390 configured by $0, generated by GNU Autoconf 2.69,
51391   with options \\"\$ac_cs_config\\"
51392
51393 Copyright (C) 2012 Free Software Foundation, Inc.
51394 This config.status script is free software; the Free Software Foundation
51395 gives unlimited permission to copy, distribute and modify it."
51396
51397 ac_pwd='$ac_pwd'
51398 srcdir='$srcdir'
51399 INSTALL='$INSTALL'
51400 MKDIR_P='$MKDIR_P'
51401 AWK='$AWK'
51402 test -n "\$AWK" || AWK=awk
51403 _ACEOF
51404
51405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51406 # The default lists apply if the user does not specify any file.
51407 ac_need_defaults=:
51408 while test $# != 0
51409 do
51410   case $1 in
51411   --*=?*)
51412     ac_option=`expr "X$1" : 'X\([^=]*\)='`
51413     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51414     ac_shift=:
51415     ;;
51416   --*=)
51417     ac_option=`expr "X$1" : 'X\([^=]*\)='`
51418     ac_optarg=
51419     ac_shift=:
51420     ;;
51421   *)
51422     ac_option=$1
51423     ac_optarg=$2
51424     ac_shift=shift
51425     ;;
51426   esac
51427
51428   case $ac_option in
51429   # Handling of the options.
51430   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51431     ac_cs_recheck=: ;;
51432   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51433     $as_echo "$ac_cs_version"; exit ;;
51434   --config | --confi | --conf | --con | --co | --c )
51435     $as_echo "$ac_cs_config"; exit ;;
51436   --debug | --debu | --deb | --de | --d | -d )
51437     debug=: ;;
51438   --file | --fil | --fi | --f )
51439     $ac_shift
51440     case $ac_optarg in
51441     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
51442     '') as_fn_error $? "missing file argument" ;;
51443     esac
51444     as_fn_append CONFIG_FILES " '$ac_optarg'"
51445     ac_need_defaults=false;;
51446   --header | --heade | --head | --hea )
51447     $ac_shift
51448     case $ac_optarg in
51449     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
51450     esac
51451     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
51452     ac_need_defaults=false;;
51453   --he | --h)
51454     # Conflict between --help and --header
51455     as_fn_error $? "ambiguous option: \`$1'
51456 Try \`$0 --help' for more information.";;
51457   --help | --hel | -h )
51458     $as_echo "$ac_cs_usage"; exit ;;
51459   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51460   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51461     ac_cs_silent=: ;;
51462
51463   # This is an error.
51464   -*) as_fn_error $? "unrecognized option: \`$1'
51465 Try \`$0 --help' for more information." ;;
51466
51467   *) as_fn_append ac_config_targets " $1"
51468      ac_need_defaults=false ;;
51469
51470   esac
51471   shift
51472 done
51473
51474 ac_configure_extra_args=
51475
51476 if $ac_cs_silent; then
51477   exec 6>/dev/null
51478   ac_configure_extra_args="$ac_configure_extra_args --silent"
51479 fi
51480
51481 _ACEOF
51482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51483 if \$ac_cs_recheck; then
51484   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51485   shift
51486   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
51487   CONFIG_SHELL='$SHELL'
51488   export CONFIG_SHELL
51489   exec "\$@"
51490 fi
51491
51492 _ACEOF
51493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51494 exec 5>>config.log
51495 {
51496   echo
51497   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51498 ## Running $as_me. ##
51499 _ASBOX
51500   $as_echo "$ac_log"
51501 } >&5
51502
51503 _ACEOF
51504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51505 #
51506 # INIT-COMMANDS
51507 #
51508 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51509 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
51510     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
51511     # from automake < 1.5.
51512     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
51513     # Capture the value of LINGUAS because we need it to compute CATALOGS.
51514     LINGUAS="${LINGUAS-%UNSET%}"
51515
51516 GNUmakefile=$GNUmakefile
51517
51518
51519 # The HP-UX ksh and POSIX shell print the target directory to stdout
51520 # if CDPATH is set.
51521 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
51522
51523 sed_quote_subst='$sed_quote_subst'
51524 double_quote_subst='$double_quote_subst'
51525 delay_variable_subst='$delay_variable_subst'
51526 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
51527 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
51528 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
51529 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
51530 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
51531 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
51532 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
51533 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
51534 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
51535 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
51536 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
51537 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
51538 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
51539 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
51540 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
51541 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
51542 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
51543 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
51544 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
51545 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
51546 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
51547 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
51548 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
51549 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
51550 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
51551 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
51552 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
51553 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
51554 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
51555 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
51556 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
51557 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
51558 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
51559 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
51560 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
51561 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
51562 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
51563 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
51564 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
51565 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
51566 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
51567 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
51568 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
51569 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
51570 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
51571 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
51572 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
51573 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
51574 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
51575 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
51576 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
51577 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
51578 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
51579 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
51580 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
51581 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
51582 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"`'
51583 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
51584 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
51585 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
51586 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
51587 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
51588 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
51589 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
51590 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
51591 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
51592 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
51593 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
51594 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
51595 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
51596 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
51597 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
51598 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
51599 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
51600 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
51601 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
51602 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
51603 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
51604 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
51605 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
51606 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
51607 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
51608 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
51609 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
51610 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
51611 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
51612 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
51613 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
51614 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
51615 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
51616 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
51617 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
51618 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
51619 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
51620 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
51621 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
51622 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
51623 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
51624 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
51625 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
51626 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
51627 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
51628 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
51629 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
51630 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
51631 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
51632 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
51633 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
51634 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
51635 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
51636 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
51637 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
51638 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
51639 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
51640 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
51641 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
51642 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
51643 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
51644 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
51645 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
51646 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
51647 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
51648 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
51649 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
51650 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
51651 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
51652 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
51653 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
51654 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
51655 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
51656 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
51657 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
51658 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
51659 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
51660 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
51661 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
51662 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
51663 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
51664 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51665 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51666 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
51667 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
51668 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
51669 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
51670 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
51671 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
51672 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
51673 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
51674 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
51675 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
51676 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
51677 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
51678 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51679 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51680 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51681 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51682 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51683 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51684 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
51685 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
51686 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
51687 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
51688 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
51689 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
51690 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
51691 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
51692 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
51693 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
51694 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
51695 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
51696 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
51697 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51698 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
51699 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
51700 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51701 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51702 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
51703 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
51704 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
51705 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
51706 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
51707 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
51708 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
51709 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
51710
51711 LTCC='$LTCC'
51712 LTCFLAGS='$LTCFLAGS'
51713 compiler='$compiler_DEFAULT'
51714
51715 # A function that is used when there is no print builtin or printf.
51716 func_fallback_echo ()
51717 {
51718   eval 'cat <<_LTECHO_EOF
51719 \$1
51720 _LTECHO_EOF'
51721 }
51722
51723 # Quote evaled strings.
51724 for var in SHELL \
51725 ECHO \
51726 PATH_SEPARATOR \
51727 SED \
51728 GREP \
51729 EGREP \
51730 FGREP \
51731 LD \
51732 NM \
51733 LN_S \
51734 lt_SP2NL \
51735 lt_NL2SP \
51736 reload_flag \
51737 OBJDUMP \
51738 deplibs_check_method \
51739 file_magic_cmd \
51740 file_magic_glob \
51741 want_nocaseglob \
51742 DLLTOOL \
51743 sharedlib_from_linklib_cmd \
51744 AR \
51745 AR_FLAGS \
51746 archiver_list_spec \
51747 STRIP \
51748 RANLIB \
51749 CC \
51750 CFLAGS \
51751 compiler \
51752 lt_cv_sys_global_symbol_pipe \
51753 lt_cv_sys_global_symbol_to_cdecl \
51754 lt_cv_sys_global_symbol_to_c_name_address \
51755 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
51756 nm_file_list_spec \
51757 lt_prog_compiler_no_builtin_flag \
51758 lt_prog_compiler_pic \
51759 lt_prog_compiler_wl \
51760 lt_prog_compiler_static \
51761 lt_cv_prog_compiler_c_o \
51762 need_locks \
51763 MANIFEST_TOOL \
51764 DSYMUTIL \
51765 NMEDIT \
51766 LIPO \
51767 OTOOL \
51768 OTOOL64 \
51769 shrext_cmds \
51770 export_dynamic_flag_spec \
51771 whole_archive_flag_spec \
51772 compiler_needs_object \
51773 with_gnu_ld \
51774 allow_undefined_flag \
51775 no_undefined_flag \
51776 hardcode_libdir_flag_spec \
51777 hardcode_libdir_separator \
51778 exclude_expsyms \
51779 include_expsyms \
51780 file_list_spec \
51781 variables_saved_for_relink \
51782 libname_spec \
51783 library_names_spec \
51784 soname_spec \
51785 install_override_mode \
51786 finish_eval \
51787 old_striplib \
51788 striplib \
51789 compiler_lib_search_dirs \
51790 predep_objects \
51791 postdep_objects \
51792 predeps \
51793 postdeps \
51794 compiler_lib_search_path \
51795 LD_CXX \
51796 reload_flag_CXX \
51797 compiler_CXX \
51798 lt_prog_compiler_no_builtin_flag_CXX \
51799 lt_prog_compiler_pic_CXX \
51800 lt_prog_compiler_wl_CXX \
51801 lt_prog_compiler_static_CXX \
51802 lt_cv_prog_compiler_c_o_CXX \
51803 export_dynamic_flag_spec_CXX \
51804 whole_archive_flag_spec_CXX \
51805 compiler_needs_object_CXX \
51806 with_gnu_ld_CXX \
51807 allow_undefined_flag_CXX \
51808 no_undefined_flag_CXX \
51809 hardcode_libdir_flag_spec_CXX \
51810 hardcode_libdir_separator_CXX \
51811 exclude_expsyms_CXX \
51812 include_expsyms_CXX \
51813 file_list_spec_CXX \
51814 compiler_lib_search_dirs_CXX \
51815 predep_objects_CXX \
51816 postdep_objects_CXX \
51817 predeps_CXX \
51818 postdeps_CXX \
51819 compiler_lib_search_path_CXX; do
51820     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
51821     *[\\\\\\\`\\"\\\$]*)
51822       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
51823       ;;
51824     *)
51825       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
51826       ;;
51827     esac
51828 done
51829
51830 # Double-quote double-evaled strings.
51831 for var in reload_cmds \
51832 old_postinstall_cmds \
51833 old_postuninstall_cmds \
51834 old_archive_cmds \
51835 extract_expsyms_cmds \
51836 old_archive_from_new_cmds \
51837 old_archive_from_expsyms_cmds \
51838 archive_cmds \
51839 archive_expsym_cmds \
51840 module_cmds \
51841 module_expsym_cmds \
51842 export_symbols_cmds \
51843 prelink_cmds \
51844 postlink_cmds \
51845 postinstall_cmds \
51846 postuninstall_cmds \
51847 finish_cmds \
51848 sys_lib_search_path_spec \
51849 sys_lib_dlsearch_path_spec \
51850 reload_cmds_CXX \
51851 old_archive_cmds_CXX \
51852 old_archive_from_new_cmds_CXX \
51853 old_archive_from_expsyms_cmds_CXX \
51854 archive_cmds_CXX \
51855 archive_expsym_cmds_CXX \
51856 module_cmds_CXX \
51857 module_expsym_cmds_CXX \
51858 export_symbols_cmds_CXX \
51859 prelink_cmds_CXX \
51860 postlink_cmds_CXX; do
51861     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
51862     *[\\\\\\\`\\"\\\$]*)
51863       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
51864       ;;
51865     *)
51866       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
51867       ;;
51868     esac
51869 done
51870
51871 ac_aux_dir='$ac_aux_dir'
51872 xsi_shell='$xsi_shell'
51873 lt_shell_append='$lt_shell_append'
51874
51875 # See if we are running on zsh, and set the options which allow our
51876 # commands through without removal of \ escapes INIT.
51877 if test -n "\${ZSH_VERSION+set}" ; then
51878    setopt NO_GLOB_SUBST
51879 fi
51880
51881
51882     PACKAGE='$PACKAGE'
51883     VERSION='$VERSION'
51884     TIMESTAMP='$TIMESTAMP'
51885     RM='$RM'
51886     ofile='$ofile'
51887
51888
51889
51890
51891
51892
51893 _ACEOF
51894
51895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51896
51897 # Handling of arguments.
51898 for ac_config_target in $ac_config_targets
51899 do
51900   case $ac_config_target in
51901     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
51902     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51903     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
51904     "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
51905     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
51906     "src/libopts/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopts/Makefile" ;;
51907     "guile/pre-inst-guile") CONFIG_FILES="$CONFIG_FILES guile/pre-inst-guile" ;;
51908     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51909     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
51910     "doc/credentials/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/Makefile" ;;
51911     "doc/credentials/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/openpgp/Makefile" ;;
51912     "doc/credentials/srp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/srp/Makefile" ;;
51913     "doc/credentials/x509/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/x509/Makefile" ;;
51914     "doc/cyclo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/cyclo/Makefile" ;;
51915     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
51916     "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
51917     "doc/latex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/latex/Makefile" ;;
51918     "doc/manpages/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpages/Makefile" ;;
51919     "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
51920     "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;;
51921     "doc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/scripts/Makefile" ;;
51922     "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;;
51923     "extra/includes/Makefile") CONFIG_FILES="$CONFIG_FILES extra/includes/Makefile" ;;
51924     "libdane/Makefile") CONFIG_FILES="$CONFIG_FILES libdane/Makefile" ;;
51925     "libdane/includes/Makefile") CONFIG_FILES="$CONFIG_FILES libdane/includes/Makefile" ;;
51926     "libdane/gnutls-dane.pc") CONFIG_FILES="$CONFIG_FILES libdane/gnutls-dane.pc" ;;
51927     "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
51928     "gl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gl/tests/Makefile" ;;
51929     "guile/Makefile") CONFIG_FILES="$CONFIG_FILES guile/Makefile" ;;
51930     "guile/modules/Makefile") CONFIG_FILES="$CONFIG_FILES guile/modules/Makefile" ;;
51931     "guile/src/Makefile") CONFIG_FILES="$CONFIG_FILES guile/src/Makefile" ;;
51932     "guile/tests/Makefile") CONFIG_FILES="$CONFIG_FILES guile/tests/Makefile" ;;
51933     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
51934     "lib/accelerated/Makefile") CONFIG_FILES="$CONFIG_FILES lib/accelerated/Makefile" ;;
51935     "lib/accelerated/x86/Makefile") CONFIG_FILES="$CONFIG_FILES lib/accelerated/x86/Makefile" ;;
51936     "lib/algorithms/Makefile") CONFIG_FILES="$CONFIG_FILES lib/algorithms/Makefile" ;;
51937     "lib/auth/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
51938     "lib/ext/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ext/Makefile" ;;
51939     "lib/extras/Makefile") CONFIG_FILES="$CONFIG_FILES lib/extras/Makefile" ;;
51940     "lib/gnutls.pc") CONFIG_FILES="$CONFIG_FILES lib/gnutls.pc" ;;
51941     "lib/includes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/includes/Makefile" ;;
51942     "lib/includes/gnutls/gnutls.h") CONFIG_FILES="$CONFIG_FILES lib/includes/gnutls/gnutls.h" ;;
51943     "lib/minitasn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/minitasn1/Makefile" ;;
51944     "lib/nettle/Makefile") CONFIG_FILES="$CONFIG_FILES lib/nettle/Makefile" ;;
51945     "lib/opencdk/Makefile") CONFIG_FILES="$CONFIG_FILES lib/opencdk/Makefile" ;;
51946     "lib/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/openpgp/Makefile" ;;
51947     "lib/x509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/x509/Makefile" ;;
51948     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
51949     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
51950     "src/crywrap/Makefile") CONFIG_FILES="$CONFIG_FILES src/crywrap/Makefile" ;;
51951     "src/gl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gl/Makefile" ;;
51952     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
51953     "tests/cert-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cert-tests/Makefile" ;;
51954     "tests/dsa/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dsa/Makefile" ;;
51955     "tests/dtls/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dtls/Makefile" ;;
51956     "tests/srp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/srp/Makefile" ;;
51957     "tests/ecdsa/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ecdsa/Makefile" ;;
51958     "tests/key-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/key-tests/Makefile" ;;
51959     "tests/openpgp-certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp-certs/Makefile" ;;
51960     "tests/pkcs1-padding/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs1-padding/Makefile" ;;
51961     "tests/pkcs12-decode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs12-decode/Makefile" ;;
51962     "tests/pkcs8-decode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs8-decode/Makefile" ;;
51963     "tests/rsa-md5-collision/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rsa-md5-collision/Makefile" ;;
51964     "tests/safe-renegotiation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/safe-renegotiation/Makefile" ;;
51965     "tests/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/scripts/Makefile" ;;
51966     "tests/sha2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sha2/Makefile" ;;
51967     "tests/slow/Makefile") CONFIG_FILES="$CONFIG_FILES tests/slow/Makefile" ;;
51968     "tests/suite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/suite/Makefile" ;;
51969     "tests/userid/Makefile") CONFIG_FILES="$CONFIG_FILES tests/userid/Makefile" ;;
51970
51971   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
51972   esac
51973 done
51974
51975
51976 # If the user did not use the arguments to specify the items to instantiate,
51977 # then the envvar interface is used.  Set only those that are not.
51978 # We use the long form for the default assignment because of an extremely
51979 # bizarre bug on SunOS 4.1.3.
51980 if $ac_need_defaults; then
51981   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51982   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51983   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
51984   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51985 fi
51986
51987 # Have a temporary directory for convenience.  Make it in the build tree
51988 # simply because there is no reason against having it here, and in addition,
51989 # creating and moving files from /tmp can sometimes cause problems.
51990 # Hook for its removal unless debugging.
51991 # Note that there is a small window in which the directory will not be cleaned:
51992 # after its creation but before its name has been assigned to `$tmp'.
51993 $debug ||
51994 {
51995   tmp= ac_tmp=
51996   trap 'exit_status=$?
51997   : "${ac_tmp:=$tmp}"
51998   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
51999 ' 0
52000   trap 'as_fn_exit 1' 1 2 13 15
52001 }
52002 # Create a (secure) tmp directory for tmp files.
52003
52004 {
52005   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
52006   test -d "$tmp"
52007 }  ||
52008 {
52009   tmp=./conf$$-$RANDOM
52010   (umask 077 && mkdir "$tmp")
52011 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
52012 ac_tmp=$tmp
52013
52014 # Set up the scripts for CONFIG_FILES section.
52015 # No need to generate them if there are no CONFIG_FILES.
52016 # This happens for instance with `./config.status config.h'.
52017 if test -n "$CONFIG_FILES"; then
52018
52019
52020 ac_cr=`echo X | tr X '\015'`
52021 # On cygwin, bash can eat \r inside `` if the user requested igncr.
52022 # But we know of no other shell where ac_cr would be empty at this
52023 # point, so we can use a bashism as a fallback.
52024 if test "x$ac_cr" = x; then
52025   eval ac_cr=\$\'\\r\'
52026 fi
52027 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
52028 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
52029   ac_cs_awk_cr='\\r'
52030 else
52031   ac_cs_awk_cr=$ac_cr
52032 fi
52033
52034 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
52035 _ACEOF
52036
52037
52038 {
52039   echo "cat >conf$$subs.awk <<_ACEOF" &&
52040   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
52041   echo "_ACEOF"
52042 } >conf$$subs.sh ||
52043   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
52044 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
52045 ac_delim='%!_!# '
52046 for ac_last_try in false false false false false :; do
52047   . ./conf$$subs.sh ||
52048     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
52049
52050   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
52051   if test $ac_delim_n = $ac_delim_num; then
52052     break
52053   elif $ac_last_try; then
52054     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
52055   else
52056     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52057   fi
52058 done
52059 rm -f conf$$subs.sh
52060
52061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52062 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
52063 _ACEOF
52064 sed -n '
52065 h
52066 s/^/S["/; s/!.*/"]=/
52067 p
52068 g
52069 s/^[^!]*!//
52070 :repl
52071 t repl
52072 s/'"$ac_delim"'$//
52073 t delim
52074 :nl
52075 h
52076 s/\(.\{148\}\)..*/\1/
52077 t more1
52078 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
52079 p
52080 n
52081 b repl
52082 :more1
52083 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
52084 p
52085 g
52086 s/.\{148\}//
52087 t nl
52088 :delim
52089 h
52090 s/\(.\{148\}\)..*/\1/
52091 t more2
52092 s/["\\]/\\&/g; s/^/"/; s/$/"/
52093 p
52094 b
52095 :more2
52096 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
52097 p
52098 g
52099 s/.\{148\}//
52100 t delim
52101 ' <conf$$subs.awk | sed '
52102 /^[^""]/{
52103   N
52104   s/\n//
52105 }
52106 ' >>$CONFIG_STATUS || ac_write_fail=1
52107 rm -f conf$$subs.awk
52108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52109 _ACAWK
52110 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
52111   for (key in S) S_is_set[key] = 1
52112   FS = "\a"
52113
52114 }
52115 {
52116   line = $ 0
52117   nfields = split(line, field, "@")
52118   substed = 0
52119   len = length(field[1])
52120   for (i = 2; i < nfields; i++) {
52121     key = field[i]
52122     keylen = length(key)
52123     if (S_is_set[key]) {
52124       value = S[key]
52125       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
52126       len += length(value) + length(field[++i])
52127       substed = 1
52128     } else
52129       len += 1 + keylen
52130   }
52131
52132   print line
52133 }
52134
52135 _ACAWK
52136 _ACEOF
52137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52138 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
52139   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
52140 else
52141   cat
52142 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
52143   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
52144 _ACEOF
52145
52146 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
52147 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
52148 # trailing colons and then remove the whole line if VPATH becomes empty
52149 # (actually we leave an empty line to preserve line numbers).
52150 if test "x$srcdir" = x.; then
52151   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
52152 h
52153 s///
52154 s/^/:/
52155 s/[      ]*$/:/
52156 s/:\$(srcdir):/:/g
52157 s/:\${srcdir}:/:/g
52158 s/:@srcdir@:/:/g
52159 s/^:*//
52160 s/:*$//
52161 x
52162 s/\(=[   ]*\).*/\1/
52163 G
52164 s/\n//
52165 s/^[^=]*=[       ]*$//
52166 }'
52167 fi
52168
52169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52170 fi # test -n "$CONFIG_FILES"
52171
52172 # Set up the scripts for CONFIG_HEADERS section.
52173 # No need to generate them if there are no CONFIG_HEADERS.
52174 # This happens for instance with `./config.status Makefile'.
52175 if test -n "$CONFIG_HEADERS"; then
52176 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
52177 BEGIN {
52178 _ACEOF
52179
52180 # Transform confdefs.h into an awk script `defines.awk', embedded as
52181 # here-document in config.status, that substitutes the proper values into
52182 # config.h.in to produce config.h.
52183
52184 # Create a delimiter string that does not exist in confdefs.h, to ease
52185 # handling of long lines.
52186 ac_delim='%!_!# '
52187 for ac_last_try in false false :; do
52188   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
52189   if test -z "$ac_tt"; then
52190     break
52191   elif $ac_last_try; then
52192     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
52193   else
52194     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52195   fi
52196 done
52197
52198 # For the awk script, D is an array of macro values keyed by name,
52199 # likewise P contains macro parameters if any.  Preserve backslash
52200 # newline sequences.
52201
52202 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52203 sed -n '
52204 s/.\{148\}/&'"$ac_delim"'/g
52205 t rset
52206 :rset
52207 s/^[     ]*#[    ]*define[       ][      ]*/ /
52208 t def
52209 d
52210 :def
52211 s/\\$//
52212 t bsnl
52213 s/["\\]/\\&/g
52214 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
52215 D["\1"]=" \3"/p
52216 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
52217 d
52218 :bsnl
52219 s/["\\]/\\&/g
52220 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
52221 D["\1"]=" \3\\\\\\n"\\/p
52222 t cont
52223 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
52224 t cont
52225 d
52226 :cont
52227 n
52228 s/.\{148\}/&'"$ac_delim"'/g
52229 t clear
52230 :clear
52231 s/\\$//
52232 t bsnlc
52233 s/["\\]/\\&/g; s/^/"/; s/$/"/p
52234 d
52235 :bsnlc
52236 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
52237 b cont
52238 ' <confdefs.h | sed '
52239 s/'"$ac_delim"'/"\\\
52240 "/g' >>$CONFIG_STATUS || ac_write_fail=1
52241
52242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52243   for (key in D) D_is_set[key] = 1
52244   FS = "\a"
52245 }
52246 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
52247   line = \$ 0
52248   split(line, arg, " ")
52249   if (arg[1] == "#") {
52250     defundef = arg[2]
52251     mac1 = arg[3]
52252   } else {
52253     defundef = substr(arg[1], 2)
52254     mac1 = arg[2]
52255   }
52256   split(mac1, mac2, "(") #)
52257   macro = mac2[1]
52258   prefix = substr(line, 1, index(line, defundef) - 1)
52259   if (D_is_set[macro]) {
52260     # Preserve the white space surrounding the "#".
52261     print prefix "define", macro P[macro] D[macro]
52262     next
52263   } else {
52264     # Replace #undef with comments.  This is necessary, for example,
52265     # in the case of _POSIX_SOURCE, which is predefined and required
52266     # on some systems where configure will not decide to define it.
52267     if (defundef == "undef") {
52268       print "/*", prefix defundef, macro, "*/"
52269       next
52270     }
52271   }
52272 }
52273 { print }
52274 _ACAWK
52275 _ACEOF
52276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52277   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
52278 fi # test -n "$CONFIG_HEADERS"
52279
52280
52281 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
52282 shift
52283 for ac_tag
52284 do
52285   case $ac_tag in
52286   :[FHLC]) ac_mode=$ac_tag; continue;;
52287   esac
52288   case $ac_mode$ac_tag in
52289   :[FHL]*:*);;
52290   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
52291   :[FH]-) ac_tag=-:-;;
52292   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52293   esac
52294   ac_save_IFS=$IFS
52295   IFS=:
52296   set x $ac_tag
52297   IFS=$ac_save_IFS
52298   shift
52299   ac_file=$1
52300   shift
52301
52302   case $ac_mode in
52303   :L) ac_source=$1;;
52304   :[FH])
52305     ac_file_inputs=
52306     for ac_f
52307     do
52308       case $ac_f in
52309       -) ac_f="$ac_tmp/stdin";;
52310       *) # Look for the file first in the build tree, then in the source tree
52311          # (if the path is not absolute).  The absolute path cannot be DOS-style,
52312          # because $ac_f cannot contain `:'.
52313          test -f "$ac_f" ||
52314            case $ac_f in
52315            [\\/$]*) false;;
52316            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52317            esac ||
52318            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
52319       esac
52320       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
52321       as_fn_append ac_file_inputs " '$ac_f'"
52322     done
52323
52324     # Let's still pretend it is `configure' which instantiates (i.e., don't
52325     # use $as_me), people would be surprised to read:
52326     #    /* config.h.  Generated by config.status.  */
52327     configure_input='Generated from '`
52328           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
52329         `' by configure.'
52330     if test x"$ac_file" != x-; then
52331       configure_input="$ac_file.  $configure_input"
52332       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
52333 $as_echo "$as_me: creating $ac_file" >&6;}
52334     fi
52335     # Neutralize special characters interpreted by sed in replacement strings.
52336     case $configure_input in #(
52337     *\&* | *\|* | *\\* )
52338        ac_sed_conf_input=`$as_echo "$configure_input" |
52339        sed 's/[\\\\&|]/\\\\&/g'`;; #(
52340     *) ac_sed_conf_input=$configure_input;;
52341     esac
52342
52343     case $ac_tag in
52344     *:-:* | *:-) cat >"$ac_tmp/stdin" \
52345       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
52346     esac
52347     ;;
52348   esac
52349
52350   ac_dir=`$as_dirname -- "$ac_file" ||
52351 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52352          X"$ac_file" : 'X\(//\)[^/]' \| \
52353          X"$ac_file" : 'X\(//\)$' \| \
52354          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
52355 $as_echo X"$ac_file" |
52356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52357             s//\1/
52358             q
52359           }
52360           /^X\(\/\/\)[^/].*/{
52361             s//\1/
52362             q
52363           }
52364           /^X\(\/\/\)$/{
52365             s//\1/
52366             q
52367           }
52368           /^X\(\/\).*/{
52369             s//\1/
52370             q
52371           }
52372           s/.*/./; q'`
52373   as_dir="$ac_dir"; as_fn_mkdir_p
52374   ac_builddir=.
52375
52376 case "$ac_dir" in
52377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52378 *)
52379   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
52380   # A ".." for each directory in $ac_dir_suffix.
52381   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
52382   case $ac_top_builddir_sub in
52383   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52384   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52385   esac ;;
52386 esac
52387 ac_abs_top_builddir=$ac_pwd
52388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52389 # for backward compatibility:
52390 ac_top_builddir=$ac_top_build_prefix
52391
52392 case $srcdir in
52393   .)  # We are building in place.
52394     ac_srcdir=.
52395     ac_top_srcdir=$ac_top_builddir_sub
52396     ac_abs_top_srcdir=$ac_pwd ;;
52397   [\\/]* | ?:[\\/]* )  # Absolute name.
52398     ac_srcdir=$srcdir$ac_dir_suffix;
52399     ac_top_srcdir=$srcdir
52400     ac_abs_top_srcdir=$srcdir ;;
52401   *) # Relative name.
52402     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52403     ac_top_srcdir=$ac_top_build_prefix$srcdir
52404     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52405 esac
52406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52407
52408
52409   case $ac_mode in
52410   :F)
52411   #
52412   # CONFIG_FILE
52413   #
52414
52415   case $INSTALL in
52416   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52417   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52418   esac
52419   ac_MKDIR_P=$MKDIR_P
52420   case $MKDIR_P in
52421   [\\/$]* | ?:[\\/]* ) ;;
52422   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
52423   esac
52424 _ACEOF
52425
52426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52427 # If the template does not know about datarootdir, expand it.
52428 # FIXME: This hack should be removed a few years after 2.60.
52429 ac_datarootdir_hack=; ac_datarootdir_seen=
52430 ac_sed_dataroot='
52431 /datarootdir/ {
52432   p
52433   q
52434 }
52435 /@datadir@/p
52436 /@docdir@/p
52437 /@infodir@/p
52438 /@localedir@/p
52439 /@mandir@/p'
52440 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
52441 *datarootdir*) ac_datarootdir_seen=yes;;
52442 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52443   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52444 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52445 _ACEOF
52446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52447   ac_datarootdir_hack='
52448   s&@datadir@&$datadir&g
52449   s&@docdir@&$docdir&g
52450   s&@infodir@&$infodir&g
52451   s&@localedir@&$localedir&g
52452   s&@mandir@&$mandir&g
52453   s&\\\${datarootdir}&$datarootdir&g' ;;
52454 esac
52455 _ACEOF
52456
52457 # Neutralize VPATH when `$srcdir' = `.'.
52458 # Shell code in configure.ac might set extrasub.
52459 # FIXME: do we really want to maintain this feature?
52460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52461 ac_sed_extra="$ac_vpsub
52462 $extrasub
52463 _ACEOF
52464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52465 :t
52466 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52467 s|@configure_input@|$ac_sed_conf_input|;t t
52468 s&@top_builddir@&$ac_top_builddir_sub&;t t
52469 s&@top_build_prefix@&$ac_top_build_prefix&;t t
52470 s&@srcdir@&$ac_srcdir&;t t
52471 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52472 s&@top_srcdir@&$ac_top_srcdir&;t t
52473 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52474 s&@builddir@&$ac_builddir&;t t
52475 s&@abs_builddir@&$ac_abs_builddir&;t t
52476 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52477 s&@INSTALL@&$ac_INSTALL&;t t
52478 s&@MKDIR_P@&$ac_MKDIR_P&;t t
52479 $ac_datarootdir_hack
52480 "
52481 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
52482   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
52483
52484 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52485   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
52486   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
52487       "$ac_tmp/out"`; test -z "$ac_out"; } &&
52488   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52489 which seems to be undefined.  Please make sure it is defined" >&5
52490 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52491 which seems to be undefined.  Please make sure it is defined" >&2;}
52492
52493   rm -f "$ac_tmp/stdin"
52494   case $ac_file in
52495   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
52496   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
52497   esac \
52498   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
52499  ;;
52500   :H)
52501   #
52502   # CONFIG_HEADER
52503   #
52504   if test x"$ac_file" != x-; then
52505     {
52506       $as_echo "/* $configure_input  */" \
52507       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
52508     } >"$ac_tmp/config.h" \
52509       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
52510     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
52511       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
52512 $as_echo "$as_me: $ac_file is unchanged" >&6;}
52513     else
52514       rm -f "$ac_file"
52515       mv "$ac_tmp/config.h" "$ac_file" \
52516         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
52517     fi
52518   else
52519     $as_echo "/* $configure_input  */" \
52520       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
52521       || as_fn_error $? "could not create -" "$LINENO" 5
52522   fi
52523 # Compute "$ac_file"'s index in $config_headers.
52524 _am_arg="$ac_file"
52525 _am_stamp_count=1
52526 for _am_header in $config_headers :; do
52527   case $_am_header in
52528     $_am_arg | $_am_arg:* )
52529       break ;;
52530     * )
52531       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52532   esac
52533 done
52534 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
52535 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52536          X"$_am_arg" : 'X\(//\)[^/]' \| \
52537          X"$_am_arg" : 'X\(//\)$' \| \
52538          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
52539 $as_echo X"$_am_arg" |
52540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52541             s//\1/
52542             q
52543           }
52544           /^X\(\/\/\)[^/].*/{
52545             s//\1/
52546             q
52547           }
52548           /^X\(\/\/\)$/{
52549             s//\1/
52550             q
52551           }
52552           /^X\(\/\).*/{
52553             s//\1/
52554             q
52555           }
52556           s/.*/./; q'`/stamp-h$_am_stamp_count
52557  ;;
52558   :L)
52559   #
52560   # CONFIG_LINK
52561   #
52562
52563   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
52564     :
52565   else
52566     # Prefer the file from the source tree if names are identical.
52567     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
52568       ac_source=$srcdir/$ac_source
52569     fi
52570
52571     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
52572 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
52573
52574     if test ! -r "$ac_source"; then
52575       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
52576     fi
52577     rm -f "$ac_file"
52578
52579     # Try a relative symlink, then a hard link, then a copy.
52580     case $ac_source in
52581     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
52582         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
52583     esac
52584     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
52585       ln "$ac_source" "$ac_file" 2>/dev/null ||
52586       cp -p "$ac_source" "$ac_file" ||
52587       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
52588   fi
52589  ;;
52590   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
52591 $as_echo "$as_me: executing $ac_file commands" >&6;}
52592  ;;
52593   esac
52594
52595
52596   case $ac_file$ac_mode in
52597     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
52598   # Older Autoconf quotes --file arguments for eval, but not when files
52599   # are listed without --file.  Let's play safe and only enable the eval
52600   # if we detect the quoting.
52601   case $CONFIG_FILES in
52602   *\'*) eval set x "$CONFIG_FILES" ;;
52603   *)   set x $CONFIG_FILES ;;
52604   esac
52605   shift
52606   for mf
52607   do
52608     # Strip MF so we end up with the name of the file.
52609     mf=`echo "$mf" | sed -e 's/:.*$//'`
52610     # Check whether this is an Automake generated Makefile or not.
52611     # We used to match only the files named 'Makefile.in', but
52612     # some people rename them; so instead we look at the file content.
52613     # Grep'ing the first line is not enough: some people post-process
52614     # each Makefile.in and add a new line on top of each file to say so.
52615     # Grep'ing the whole file is not good either: AIX grep has a line
52616     # limit of 2048, but all sed's we know have understand at least 4000.
52617     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
52618       dirpart=`$as_dirname -- "$mf" ||
52619 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52620          X"$mf" : 'X\(//\)[^/]' \| \
52621          X"$mf" : 'X\(//\)$' \| \
52622          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
52623 $as_echo X"$mf" |
52624     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52625             s//\1/
52626             q
52627           }
52628           /^X\(\/\/\)[^/].*/{
52629             s//\1/
52630             q
52631           }
52632           /^X\(\/\/\)$/{
52633             s//\1/
52634             q
52635           }
52636           /^X\(\/\).*/{
52637             s//\1/
52638             q
52639           }
52640           s/.*/./; q'`
52641     else
52642       continue
52643     fi
52644     # Extract the definition of DEPDIR, am__include, and am__quote
52645     # from the Makefile without running 'make'.
52646     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52647     test -z "$DEPDIR" && continue
52648     am__include=`sed -n 's/^am__include = //p' < "$mf"`
52649     test -z "$am__include" && continue
52650     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
52651     # Find all dependency output files, they are included files with
52652     # $(DEPDIR) in their names.  We invoke sed twice because it is the
52653     # simplest approach to changing $(DEPDIR) to its actual value in the
52654     # expansion.
52655     for file in `sed -n "
52656       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
52657          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
52658       # Make sure the directory exists.
52659       test -f "$dirpart/$file" && continue
52660       fdir=`$as_dirname -- "$file" ||
52661 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52662          X"$file" : 'X\(//\)[^/]' \| \
52663          X"$file" : 'X\(//\)$' \| \
52664          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
52665 $as_echo X"$file" |
52666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52667             s//\1/
52668             q
52669           }
52670           /^X\(\/\/\)[^/].*/{
52671             s//\1/
52672             q
52673           }
52674           /^X\(\/\/\)$/{
52675             s//\1/
52676             q
52677           }
52678           /^X\(\/\).*/{
52679             s//\1/
52680             q
52681           }
52682           s/.*/./; q'`
52683       as_dir=$dirpart/$fdir; as_fn_mkdir_p
52684       # echo "creating $dirpart/$file"
52685       echo '# dummy' > "$dirpart/$file"
52686     done
52687   done
52688 }
52689  ;;
52690     "po-directories":C)
52691     for ac_file in $CONFIG_FILES; do
52692       # Support "outfile[:infile[:infile...]]"
52693       case "$ac_file" in
52694         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
52695       esac
52696       # PO directories have a Makefile.in generated from Makefile.in.in.
52697       case "$ac_file" in */Makefile.in)
52698         # Adjust a relative srcdir.
52699         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
52700         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
52701         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
52702         # In autoconf-2.13 it is called $ac_given_srcdir.
52703         # In autoconf-2.50 it is called $srcdir.
52704         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
52705         case "$ac_given_srcdir" in
52706           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
52707           /*) top_srcdir="$ac_given_srcdir" ;;
52708           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
52709         esac
52710         # Treat a directory as a PO directory if and only if it has a
52711         # POTFILES.in file. This allows packages to have multiple PO
52712         # directories under different names or in different locations.
52713         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
52714           rm -f "$ac_dir/POTFILES"
52715           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
52716           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
52717           POMAKEFILEDEPS="POTFILES.in"
52718           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
52719           # on $ac_dir but don't depend on user-specified configuration
52720           # parameters.
52721           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
52722             # The LINGUAS file contains the set of available languages.
52723             if test -n "$OBSOLETE_ALL_LINGUAS"; then
52724               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
52725             fi
52726             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
52727             # Hide the ALL_LINGUAS assigment from automake < 1.5.
52728             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
52729             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
52730           else
52731             # The set of available languages was given in configure.in.
52732             # Hide the ALL_LINGUAS assigment from automake < 1.5.
52733             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
52734           fi
52735           # Compute POFILES
52736           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
52737           # Compute UPDATEPOFILES
52738           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
52739           # Compute DUMMYPOFILES
52740           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
52741           # Compute GMOFILES
52742           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
52743           case "$ac_given_srcdir" in
52744             .) srcdirpre= ;;
52745             *) srcdirpre='$(srcdir)/' ;;
52746           esac
52747           POFILES=
52748           UPDATEPOFILES=
52749           DUMMYPOFILES=
52750           GMOFILES=
52751           for lang in $ALL_LINGUAS; do
52752             POFILES="$POFILES $srcdirpre$lang.po"
52753             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
52754             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
52755             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
52756           done
52757           # CATALOGS depends on both $ac_dir and the user's LINGUAS
52758           # environment variable.
52759           INST_LINGUAS=
52760           if test -n "$ALL_LINGUAS"; then
52761             for presentlang in $ALL_LINGUAS; do
52762               useit=no
52763               if test "%UNSET%" != "$LINGUAS"; then
52764                 desiredlanguages="$LINGUAS"
52765               else
52766                 desiredlanguages="$ALL_LINGUAS"
52767               fi
52768               for desiredlang in $desiredlanguages; do
52769                 # Use the presentlang catalog if desiredlang is
52770                 #   a. equal to presentlang, or
52771                 #   b. a variant of presentlang (because in this case,
52772                 #      presentlang can be used as a fallback for messages
52773                 #      which are not translated in the desiredlang catalog).
52774                 case "$desiredlang" in
52775                   "$presentlang"*) useit=yes;;
52776                 esac
52777               done
52778               if test $useit = yes; then
52779                 INST_LINGUAS="$INST_LINGUAS $presentlang"
52780               fi
52781             done
52782           fi
52783           CATALOGS=
52784           if test -n "$INST_LINGUAS"; then
52785             for lang in $INST_LINGUAS; do
52786               CATALOGS="$CATALOGS $lang.gmo"
52787             done
52788           fi
52789           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
52790           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
52791           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
52792             if test -f "$f"; then
52793               case "$f" in
52794                 *.orig | *.bak | *~) ;;
52795                 *) cat "$f" >> "$ac_dir/Makefile" ;;
52796               esac
52797             fi
52798           done
52799         fi
52800         ;;
52801       esac
52802     done ;;
52803     "libtool":C)
52804
52805     # See if we are running on zsh, and set the options which allow our
52806     # commands through without removal of \ escapes.
52807     if test -n "${ZSH_VERSION+set}" ; then
52808       setopt NO_GLOB_SUBST
52809     fi
52810
52811     cfgfile="${ofile}T"
52812     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
52813     $RM "$cfgfile"
52814
52815     cat <<_LT_EOF >> "$cfgfile"
52816 #! $SHELL
52817
52818 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
52819 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
52820 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
52821 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
52822 #
52823 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
52824 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
52825 #                 Foundation, Inc.
52826 #   Written by Gordon Matzigkeit, 1996
52827 #
52828 #   This file is part of GNU Libtool.
52829 #
52830 # GNU Libtool is free software; you can redistribute it and/or
52831 # modify it under the terms of the GNU General Public License as
52832 # published by the Free Software Foundation; either version 2 of
52833 # the License, or (at your option) any later version.
52834 #
52835 # As a special exception to the GNU General Public License,
52836 # if you distribute this file as part of a program or library that
52837 # is built using GNU Libtool, you may include this file under the
52838 # same distribution terms that you use for the rest of that program.
52839 #
52840 # GNU Libtool is distributed in the hope that it will be useful,
52841 # but WITHOUT ANY WARRANTY; without even the implied warranty of
52842 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
52843 # GNU General Public License for more details.
52844 #
52845 # You should have received a copy of the GNU General Public License
52846 # along with GNU Libtool; see the file COPYING.  If not, a copy
52847 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
52848 # obtained by writing to the Free Software Foundation, Inc.,
52849 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
52850
52851
52852 # The names of the tagged configurations supported by this script.
52853 available_tags="CXX "
52854
52855 # ### BEGIN LIBTOOL CONFIG
52856
52857 # Which release of libtool.m4 was used?
52858 macro_version=$macro_version
52859 macro_revision=$macro_revision
52860
52861 # Whether or not to build static libraries.
52862 build_old_libs=$enable_static
52863
52864 # Whether or not to build shared libraries.
52865 build_libtool_libs=$enable_shared
52866
52867 # What type of objects to build.
52868 pic_mode=$pic_mode
52869
52870 # Whether or not to optimize for fast installation.
52871 fast_install=$enable_fast_install
52872
52873 # Shell to use when invoking shell scripts.
52874 SHELL=$lt_SHELL
52875
52876 # An echo program that protects backslashes.
52877 ECHO=$lt_ECHO
52878
52879 # The PATH separator for the build system.
52880 PATH_SEPARATOR=$lt_PATH_SEPARATOR
52881
52882 # The host system.
52883 host_alias=$host_alias
52884 host=$host
52885 host_os=$host_os
52886
52887 # The build system.
52888 build_alias=$build_alias
52889 build=$build
52890 build_os=$build_os
52891
52892 # A sed program that does not truncate output.
52893 SED=$lt_SED
52894
52895 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
52896 Xsed="\$SED -e 1s/^X//"
52897
52898 # A grep program that handles long lines.
52899 GREP=$lt_GREP
52900
52901 # An ERE matcher.
52902 EGREP=$lt_EGREP
52903
52904 # A literal string matcher.
52905 FGREP=$lt_FGREP
52906
52907 # A BSD- or MS-compatible name lister.
52908 NM=$lt_NM
52909
52910 # Whether we need soft or hard links.
52911 LN_S=$lt_LN_S
52912
52913 # What is the maximum length of a command?
52914 max_cmd_len=$max_cmd_len
52915
52916 # Object file suffix (normally "o").
52917 objext=$ac_objext
52918
52919 # Executable file suffix (normally "").
52920 exeext=$exeext
52921
52922 # whether the shell understands "unset".
52923 lt_unset=$lt_unset
52924
52925 # turn spaces into newlines.
52926 SP2NL=$lt_lt_SP2NL
52927
52928 # turn newlines into spaces.
52929 NL2SP=$lt_lt_NL2SP
52930
52931 # convert \$build file names to \$host format.
52932 to_host_file_cmd=$lt_cv_to_host_file_cmd
52933
52934 # convert \$build files to toolchain format.
52935 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
52936
52937 # An object symbol dumper.
52938 OBJDUMP=$lt_OBJDUMP
52939
52940 # Method to check whether dependent libraries are shared objects.
52941 deplibs_check_method=$lt_deplibs_check_method
52942
52943 # Command to use when deplibs_check_method = "file_magic".
52944 file_magic_cmd=$lt_file_magic_cmd
52945
52946 # How to find potential files when deplibs_check_method = "file_magic".
52947 file_magic_glob=$lt_file_magic_glob
52948
52949 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
52950 want_nocaseglob=$lt_want_nocaseglob
52951
52952 # DLL creation program.
52953 DLLTOOL=$lt_DLLTOOL
52954
52955 # Command to associate shared and link libraries.
52956 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
52957
52958 # The archiver.
52959 AR=$lt_AR
52960
52961 # Flags to create an archive.
52962 AR_FLAGS=$lt_AR_FLAGS
52963
52964 # How to feed a file listing to the archiver.
52965 archiver_list_spec=$lt_archiver_list_spec
52966
52967 # A symbol stripping program.
52968 STRIP=$lt_STRIP
52969
52970 # Commands used to install an old-style archive.
52971 RANLIB=$lt_RANLIB
52972 old_postinstall_cmds=$lt_old_postinstall_cmds
52973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
52974
52975 # Whether to use a lock for old archive extraction.
52976 lock_old_archive_extraction=$lock_old_archive_extraction
52977
52978 # A C compiler.
52979 LTCC=$lt_CC
52980
52981 # LTCC compiler flags.
52982 LTCFLAGS=$lt_CFLAGS
52983
52984 # Take the output of nm and produce a listing of raw symbols and C names.
52985 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
52986
52987 # Transform the output of nm in a proper C declaration.
52988 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
52989
52990 # Transform the output of nm in a C name address pair.
52991 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
52992
52993 # Transform the output of nm in a C name address pair when lib prefix is needed.
52994 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
52995
52996 # Specify filename containing input files for \$NM.
52997 nm_file_list_spec=$lt_nm_file_list_spec
52998
52999 # The root where to search for dependent libraries,and in which our libraries should be installed.
53000 lt_sysroot=$lt_sysroot
53001
53002 # The name of the directory that contains temporary libtool files.
53003 objdir=$objdir
53004
53005 # Used to examine libraries when file_magic_cmd begins with "file".
53006 MAGIC_CMD=$MAGIC_CMD
53007
53008 # Must we lock files when doing compilation?
53009 need_locks=$lt_need_locks
53010
53011 # Manifest tool.
53012 MANIFEST_TOOL=$lt_MANIFEST_TOOL
53013
53014 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
53015 DSYMUTIL=$lt_DSYMUTIL
53016
53017 # Tool to change global to local symbols on Mac OS X.
53018 NMEDIT=$lt_NMEDIT
53019
53020 # Tool to manipulate fat objects and archives on Mac OS X.
53021 LIPO=$lt_LIPO
53022
53023 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
53024 OTOOL=$lt_OTOOL
53025
53026 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
53027 OTOOL64=$lt_OTOOL64
53028
53029 # Old archive suffix (normally "a").
53030 libext=$libext
53031
53032 # Shared library suffix (normally ".so").
53033 shrext_cmds=$lt_shrext_cmds
53034
53035 # The commands to extract the exported symbol list from a shared archive.
53036 extract_expsyms_cmds=$lt_extract_expsyms_cmds
53037
53038 # Variables whose values should be saved in libtool wrapper scripts and
53039 # restored at link time.
53040 variables_saved_for_relink=$lt_variables_saved_for_relink
53041
53042 # Do we need the "lib" prefix for modules?
53043 need_lib_prefix=$need_lib_prefix
53044
53045 # Do we need a version for libraries?
53046 need_version=$need_version
53047
53048 # Library versioning type.
53049 version_type=$version_type
53050
53051 # Shared library runtime path variable.
53052 runpath_var=$runpath_var
53053
53054 # Shared library path variable.
53055 shlibpath_var=$shlibpath_var
53056
53057 # Is shlibpath searched before the hard-coded library search path?
53058 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
53059
53060 # Format of library name prefix.
53061 libname_spec=$lt_libname_spec
53062
53063 # List of archive names.  First name is the real one, the rest are links.
53064 # The last name is the one that the linker finds with -lNAME
53065 library_names_spec=$lt_library_names_spec
53066
53067 # The coded name of the library, if different from the real name.
53068 soname_spec=$lt_soname_spec
53069
53070 # Permission mode override for installation of shared libraries.
53071 install_override_mode=$lt_install_override_mode
53072
53073 # Command to use after installation of a shared archive.
53074 postinstall_cmds=$lt_postinstall_cmds
53075
53076 # Command to use after uninstallation of a shared archive.
53077 postuninstall_cmds=$lt_postuninstall_cmds
53078
53079 # Commands used to finish a libtool library installation in a directory.
53080 finish_cmds=$lt_finish_cmds
53081
53082 # As "finish_cmds", except a single script fragment to be evaled but
53083 # not shown.
53084 finish_eval=$lt_finish_eval
53085
53086 # Whether we should hardcode library paths into libraries.
53087 hardcode_into_libs=$hardcode_into_libs
53088
53089 # Compile-time system search path for libraries.
53090 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
53091
53092 # Run-time system search path for libraries.
53093 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
53094
53095 # Whether dlopen is supported.
53096 dlopen_support=$enable_dlopen
53097
53098 # Whether dlopen of programs is supported.
53099 dlopen_self=$enable_dlopen_self
53100
53101 # Whether dlopen of statically linked programs is supported.
53102 dlopen_self_static=$enable_dlopen_self_static
53103
53104 # Commands to strip libraries.
53105 old_striplib=$lt_old_striplib
53106 striplib=$lt_striplib
53107
53108
53109 # The linker used to build libraries.
53110 LD=$lt_LD
53111
53112 # How to create reloadable object files.
53113 reload_flag=$lt_reload_flag
53114 reload_cmds=$lt_reload_cmds
53115
53116 # Commands used to build an old-style archive.
53117 old_archive_cmds=$lt_old_archive_cmds
53118
53119 # A language specific compiler.
53120 CC=$lt_compiler
53121
53122 # Is the compiler the GNU compiler?
53123 with_gcc=$GCC
53124
53125 # Compiler flag to turn off builtin functions.
53126 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
53127
53128 # Additional compiler flags for building library objects.
53129 pic_flag=$lt_lt_prog_compiler_pic
53130
53131 # How to pass a linker flag through the compiler.
53132 wl=$lt_lt_prog_compiler_wl
53133
53134 # Compiler flag to prevent dynamic linking.
53135 link_static_flag=$lt_lt_prog_compiler_static
53136
53137 # Does compiler simultaneously support -c and -o options?
53138 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
53139
53140 # Whether or not to add -lc for building shared libraries.
53141 build_libtool_need_lc=$archive_cmds_need_lc
53142
53143 # Whether or not to disallow shared libs when runtime libs are static.
53144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
53145
53146 # Compiler flag to allow reflexive dlopens.
53147 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
53148
53149 # Compiler flag to generate shared objects directly from archives.
53150 whole_archive_flag_spec=$lt_whole_archive_flag_spec
53151
53152 # Whether the compiler copes with passing no objects directly.
53153 compiler_needs_object=$lt_compiler_needs_object
53154
53155 # Create an old-style archive from a shared archive.
53156 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
53157
53158 # Create a temporary old-style archive to link instead of a shared archive.
53159 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
53160
53161 # Commands used to build a shared archive.
53162 archive_cmds=$lt_archive_cmds
53163 archive_expsym_cmds=$lt_archive_expsym_cmds
53164
53165 # Commands used to build a loadable module if different from building
53166 # a shared archive.
53167 module_cmds=$lt_module_cmds
53168 module_expsym_cmds=$lt_module_expsym_cmds
53169
53170 # Whether we are building with GNU ld or not.
53171 with_gnu_ld=$lt_with_gnu_ld
53172
53173 # Flag that allows shared libraries with undefined symbols to be built.
53174 allow_undefined_flag=$lt_allow_undefined_flag
53175
53176 # Flag that enforces no undefined symbols.
53177 no_undefined_flag=$lt_no_undefined_flag
53178
53179 # Flag to hardcode \$libdir into a binary during linking.
53180 # This must work even if \$libdir does not exist
53181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
53182
53183 # Whether we need a single "-rpath" flag with a separated argument.
53184 hardcode_libdir_separator=$lt_hardcode_libdir_separator
53185
53186 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
53187 # DIR into the resulting binary.
53188 hardcode_direct=$hardcode_direct
53189
53190 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
53191 # DIR into the resulting binary and the resulting library dependency is
53192 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
53193 # library is relocated.
53194 hardcode_direct_absolute=$hardcode_direct_absolute
53195
53196 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
53197 # into the resulting binary.
53198 hardcode_minus_L=$hardcode_minus_L
53199
53200 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
53201 # into the resulting binary.
53202 hardcode_shlibpath_var=$hardcode_shlibpath_var
53203
53204 # Set to "yes" if building a shared library automatically hardcodes DIR
53205 # into the library and all subsequent libraries and executables linked
53206 # against it.
53207 hardcode_automatic=$hardcode_automatic
53208
53209 # Set to yes if linker adds runtime paths of dependent libraries
53210 # to runtime path list.
53211 inherit_rpath=$inherit_rpath
53212
53213 # Whether libtool must link a program against all its dependency libraries.
53214 link_all_deplibs=$link_all_deplibs
53215
53216 # Set to "yes" if exported symbols are required.
53217 always_export_symbols=$always_export_symbols
53218
53219 # The commands to list exported symbols.
53220 export_symbols_cmds=$lt_export_symbols_cmds
53221
53222 # Symbols that should not be listed in the preloaded symbols.
53223 exclude_expsyms=$lt_exclude_expsyms
53224
53225 # Symbols that must always be exported.
53226 include_expsyms=$lt_include_expsyms
53227
53228 # Commands necessary for linking programs (against libraries) with templates.
53229 prelink_cmds=$lt_prelink_cmds
53230
53231 # Commands necessary for finishing linking programs.
53232 postlink_cmds=$lt_postlink_cmds
53233
53234 # Specify filename containing input files.
53235 file_list_spec=$lt_file_list_spec
53236
53237 # How to hardcode a shared library path into an executable.
53238 hardcode_action=$hardcode_action
53239
53240 # The directories searched by this compiler when creating a shared library.
53241 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
53242
53243 # Dependencies to place before and after the objects being linked to
53244 # create a shared library.
53245 predep_objects=$lt_predep_objects
53246 postdep_objects=$lt_postdep_objects
53247 predeps=$lt_predeps
53248 postdeps=$lt_postdeps
53249
53250 # The library search path used internally by the compiler when linking
53251 # a shared library.
53252 compiler_lib_search_path=$lt_compiler_lib_search_path
53253
53254 # ### END LIBTOOL CONFIG
53255
53256 _LT_EOF
53257
53258   case $host_os in
53259   aix3*)
53260     cat <<\_LT_EOF >> "$cfgfile"
53261 # AIX sometimes has problems with the GCC collect2 program.  For some
53262 # reason, if we set the COLLECT_NAMES environment variable, the problems
53263 # vanish in a puff of smoke.
53264 if test "X${COLLECT_NAMES+set}" != Xset; then
53265   COLLECT_NAMES=
53266   export COLLECT_NAMES
53267 fi
53268 _LT_EOF
53269     ;;
53270   esac
53271
53272
53273 ltmain="$ac_aux_dir/ltmain.sh"
53274
53275
53276   # We use sed instead of cat because bash on DJGPP gets confused if
53277   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
53278   # text mode, it properly converts lines to CR/LF.  This bash problem
53279   # is reportedly fixed, but why not run on old versions too?
53280   sed '$q' "$ltmain" >> "$cfgfile" \
53281      || (rm -f "$cfgfile"; exit 1)
53282
53283   if test x"$xsi_shell" = xyes; then
53284   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
53285 func_dirname ()\
53286 {\
53287 \    case ${1} in\
53288 \      */*) func_dirname_result="${1%/*}${2}" ;;\
53289 \      *  ) func_dirname_result="${3}" ;;\
53290 \    esac\
53291 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
53292   && mv -f "$cfgfile.tmp" "$cfgfile" \
53293     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53294 test 0 -eq $? || _lt_function_replace_fail=:
53295
53296
53297   sed -e '/^func_basename ()$/,/^} # func_basename /c\
53298 func_basename ()\
53299 {\
53300 \    func_basename_result="${1##*/}"\
53301 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
53302   && mv -f "$cfgfile.tmp" "$cfgfile" \
53303     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53304 test 0 -eq $? || _lt_function_replace_fail=:
53305
53306
53307   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
53308 func_dirname_and_basename ()\
53309 {\
53310 \    case ${1} in\
53311 \      */*) func_dirname_result="${1%/*}${2}" ;;\
53312 \      *  ) func_dirname_result="${3}" ;;\
53313 \    esac\
53314 \    func_basename_result="${1##*/}"\
53315 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
53316   && mv -f "$cfgfile.tmp" "$cfgfile" \
53317     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53318 test 0 -eq $? || _lt_function_replace_fail=:
53319
53320
53321   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
53322 func_stripname ()\
53323 {\
53324 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
53325 \    # positional parameters, so assign one to ordinary parameter first.\
53326 \    func_stripname_result=${3}\
53327 \    func_stripname_result=${func_stripname_result#"${1}"}\
53328 \    func_stripname_result=${func_stripname_result%"${2}"}\
53329 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
53330   && mv -f "$cfgfile.tmp" "$cfgfile" \
53331     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53332 test 0 -eq $? || _lt_function_replace_fail=:
53333
53334
53335   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
53336 func_split_long_opt ()\
53337 {\
53338 \    func_split_long_opt_name=${1%%=*}\
53339 \    func_split_long_opt_arg=${1#*=}\
53340 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
53341   && mv -f "$cfgfile.tmp" "$cfgfile" \
53342     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53343 test 0 -eq $? || _lt_function_replace_fail=:
53344
53345
53346   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
53347 func_split_short_opt ()\
53348 {\
53349 \    func_split_short_opt_arg=${1#??}\
53350 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
53351 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
53352   && mv -f "$cfgfile.tmp" "$cfgfile" \
53353     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53354 test 0 -eq $? || _lt_function_replace_fail=:
53355
53356
53357   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
53358 func_lo2o ()\
53359 {\
53360 \    case ${1} in\
53361 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
53362 \      *)    func_lo2o_result=${1} ;;\
53363 \    esac\
53364 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
53365   && mv -f "$cfgfile.tmp" "$cfgfile" \
53366     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53367 test 0 -eq $? || _lt_function_replace_fail=:
53368
53369
53370   sed -e '/^func_xform ()$/,/^} # func_xform /c\
53371 func_xform ()\
53372 {\
53373     func_xform_result=${1%.*}.lo\
53374 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
53375   && mv -f "$cfgfile.tmp" "$cfgfile" \
53376     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53377 test 0 -eq $? || _lt_function_replace_fail=:
53378
53379
53380   sed -e '/^func_arith ()$/,/^} # func_arith /c\
53381 func_arith ()\
53382 {\
53383     func_arith_result=$(( $* ))\
53384 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
53385   && mv -f "$cfgfile.tmp" "$cfgfile" \
53386     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53387 test 0 -eq $? || _lt_function_replace_fail=:
53388
53389
53390   sed -e '/^func_len ()$/,/^} # func_len /c\
53391 func_len ()\
53392 {\
53393     func_len_result=${#1}\
53394 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
53395   && mv -f "$cfgfile.tmp" "$cfgfile" \
53396     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53397 test 0 -eq $? || _lt_function_replace_fail=:
53398
53399 fi
53400
53401 if test x"$lt_shell_append" = xyes; then
53402   sed -e '/^func_append ()$/,/^} # func_append /c\
53403 func_append ()\
53404 {\
53405     eval "${1}+=\\${2}"\
53406 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
53407   && mv -f "$cfgfile.tmp" "$cfgfile" \
53408     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53409 test 0 -eq $? || _lt_function_replace_fail=:
53410
53411
53412   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
53413 func_append_quoted ()\
53414 {\
53415 \    func_quote_for_eval "${2}"\
53416 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
53417 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
53418   && mv -f "$cfgfile.tmp" "$cfgfile" \
53419     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53420 test 0 -eq $? || _lt_function_replace_fail=:
53421
53422
53423   # Save a `func_append' function call where possible by direct use of '+='
53424   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
53425     && mv -f "$cfgfile.tmp" "$cfgfile" \
53426       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53427   test 0 -eq $? || _lt_function_replace_fail=:
53428 else
53429   # Save a `func_append' function call even when '+=' is not available
53430   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
53431     && mv -f "$cfgfile.tmp" "$cfgfile" \
53432       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53433   test 0 -eq $? || _lt_function_replace_fail=:
53434 fi
53435
53436 if test x"$_lt_function_replace_fail" = x":"; then
53437   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
53438 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
53439 fi
53440
53441
53442    mv -f "$cfgfile" "$ofile" ||
53443     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
53444   chmod +x "$ofile"
53445
53446
53447     cat <<_LT_EOF >> "$ofile"
53448
53449 # ### BEGIN LIBTOOL TAG CONFIG: CXX
53450
53451 # The linker used to build libraries.
53452 LD=$lt_LD_CXX
53453
53454 # How to create reloadable object files.
53455 reload_flag=$lt_reload_flag_CXX
53456 reload_cmds=$lt_reload_cmds_CXX
53457
53458 # Commands used to build an old-style archive.
53459 old_archive_cmds=$lt_old_archive_cmds_CXX
53460
53461 # A language specific compiler.
53462 CC=$lt_compiler_CXX
53463
53464 # Is the compiler the GNU compiler?
53465 with_gcc=$GCC_CXX
53466
53467 # Compiler flag to turn off builtin functions.
53468 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
53469
53470 # Additional compiler flags for building library objects.
53471 pic_flag=$lt_lt_prog_compiler_pic_CXX
53472
53473 # How to pass a linker flag through the compiler.
53474 wl=$lt_lt_prog_compiler_wl_CXX
53475
53476 # Compiler flag to prevent dynamic linking.
53477 link_static_flag=$lt_lt_prog_compiler_static_CXX
53478
53479 # Does compiler simultaneously support -c and -o options?
53480 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
53481
53482 # Whether or not to add -lc for building shared libraries.
53483 build_libtool_need_lc=$archive_cmds_need_lc_CXX
53484
53485 # Whether or not to disallow shared libs when runtime libs are static.
53486 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
53487
53488 # Compiler flag to allow reflexive dlopens.
53489 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
53490
53491 # Compiler flag to generate shared objects directly from archives.
53492 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
53493
53494 # Whether the compiler copes with passing no objects directly.
53495 compiler_needs_object=$lt_compiler_needs_object_CXX
53496
53497 # Create an old-style archive from a shared archive.
53498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
53499
53500 # Create a temporary old-style archive to link instead of a shared archive.
53501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
53502
53503 # Commands used to build a shared archive.
53504 archive_cmds=$lt_archive_cmds_CXX
53505 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
53506
53507 # Commands used to build a loadable module if different from building
53508 # a shared archive.
53509 module_cmds=$lt_module_cmds_CXX
53510 module_expsym_cmds=$lt_module_expsym_cmds_CXX
53511
53512 # Whether we are building with GNU ld or not.
53513 with_gnu_ld=$lt_with_gnu_ld_CXX
53514
53515 # Flag that allows shared libraries with undefined symbols to be built.
53516 allow_undefined_flag=$lt_allow_undefined_flag_CXX
53517
53518 # Flag that enforces no undefined symbols.
53519 no_undefined_flag=$lt_no_undefined_flag_CXX
53520
53521 # Flag to hardcode \$libdir into a binary during linking.
53522 # This must work even if \$libdir does not exist
53523 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
53524
53525 # Whether we need a single "-rpath" flag with a separated argument.
53526 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
53527
53528 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
53529 # DIR into the resulting binary.
53530 hardcode_direct=$hardcode_direct_CXX
53531
53532 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
53533 # DIR into the resulting binary and the resulting library dependency is
53534 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
53535 # library is relocated.
53536 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
53537
53538 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
53539 # into the resulting binary.
53540 hardcode_minus_L=$hardcode_minus_L_CXX
53541
53542 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
53543 # into the resulting binary.
53544 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
53545
53546 # Set to "yes" if building a shared library automatically hardcodes DIR
53547 # into the library and all subsequent libraries and executables linked
53548 # against it.
53549 hardcode_automatic=$hardcode_automatic_CXX
53550
53551 # Set to yes if linker adds runtime paths of dependent libraries
53552 # to runtime path list.
53553 inherit_rpath=$inherit_rpath_CXX
53554
53555 # Whether libtool must link a program against all its dependency libraries.
53556 link_all_deplibs=$link_all_deplibs_CXX
53557
53558 # Set to "yes" if exported symbols are required.
53559 always_export_symbols=$always_export_symbols_CXX
53560
53561 # The commands to list exported symbols.
53562 export_symbols_cmds=$lt_export_symbols_cmds_CXX
53563
53564 # Symbols that should not be listed in the preloaded symbols.
53565 exclude_expsyms=$lt_exclude_expsyms_CXX
53566
53567 # Symbols that must always be exported.
53568 include_expsyms=$lt_include_expsyms_CXX
53569
53570 # Commands necessary for linking programs (against libraries) with templates.
53571 prelink_cmds=$lt_prelink_cmds_CXX
53572
53573 # Commands necessary for finishing linking programs.
53574 postlink_cmds=$lt_postlink_cmds_CXX
53575
53576 # Specify filename containing input files.
53577 file_list_spec=$lt_file_list_spec_CXX
53578
53579 # How to hardcode a shared library path into an executable.
53580 hardcode_action=$hardcode_action_CXX
53581
53582 # The directories searched by this compiler when creating a shared library.
53583 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
53584
53585 # Dependencies to place before and after the objects being linked to
53586 # create a shared library.
53587 predep_objects=$lt_predep_objects_CXX
53588 postdep_objects=$lt_postdep_objects_CXX
53589 predeps=$lt_predeps_CXX
53590 postdeps=$lt_postdeps_CXX
53591
53592 # The library search path used internally by the compiler when linking
53593 # a shared library.
53594 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
53595
53596 # ### END LIBTOOL TAG CONFIG: CXX
53597 _LT_EOF
53598
53599  ;;
53600     "guile/pre-inst-guile":F) chmod +x guile/pre-inst-guile ;;
53601
53602   esac
53603 done # for ac_tag
53604
53605
53606 as_fn_exit 0
53607 _ACEOF
53608 ac_clean_files=$ac_clean_files_save
53609
53610 test $ac_write_fail = 0 ||
53611   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
53612
53613
53614 # configure is writing to config.log, and then calls config.status.
53615 # config.status does its own redirection, appending to config.log.
53616 # Unfortunately, on DOS this fails, as config.log is still kept open
53617 # by configure, so config.status won't be able to write to it; its
53618 # output is simply discarded.  So we exec the FD to /dev/null,
53619 # effectively closing config.log, so it can be properly (re)opened and
53620 # appended to by config.status.  When coming back to configure, we
53621 # need to make the FD available again.
53622 if test "$no_create" != yes; then
53623   ac_cs_success=:
53624   ac_config_status_args=
53625   test "$silent" = yes &&
53626     ac_config_status_args="$ac_config_status_args --quiet"
53627   exec 5>/dev/null
53628   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
53629   exec 5>>config.log
53630   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
53631   # would make configure fail if this is the last instruction.
53632   $ac_cs_success || as_fn_exit 1
53633 fi
53634 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
53635   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
53636 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
53637 fi
53638
53639
53640 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
53641
53642   version:              ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
53643   Host/Target system:   ${host}
53644   Build system:         ${build}
53645   Install prefix:       ${prefix}
53646   Compiler:             ${CC}
53647   CFlags:               ${CFLAGS}
53648   Library types:        Shared=${enable_shared}, Static=${enable_static}
53649   Local libopts:        ${enable_local_libopts}
53650   Local libtasn1:       ${included_libtasn1}
53651   Use nettle-mini:      ${mini_nettle}
53652   nettle-version:       ${nettle_version}
53653 " >&5
53654 $as_echo "$as_me: summary of build options:
53655
53656   version:              ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
53657   Host/Target system:   ${host}
53658   Build system:         ${build}
53659   Install prefix:       ${prefix}
53660   Compiler:             ${CC}
53661   CFlags:               ${CFLAGS}
53662   Library types:        Shared=${enable_shared}, Static=${enable_static}
53663   Local libopts:        ${enable_local_libopts}
53664   Local libtasn1:       ${included_libtasn1}
53665   Use nettle-mini:      ${mini_nettle}
53666   nettle-version:       ${nettle_version}
53667 " >&6;}
53668
53669 { $as_echo "$as_me:${as_lineno-$LINENO}: External hardware support:
53670
53671   /dev/crypto:          $enable_cryptodev
53672   Hardware accel:       $hw_accel
53673   Padlock accel:        $use_padlock
53674   PKCS#11 support:      $with_p11_kit
53675   TPM support:          $with_tpm
53676 " >&5
53677 $as_echo "$as_me: External hardware support:
53678
53679   /dev/crypto:          $enable_cryptodev
53680   Hardware accel:       $hw_accel
53681   Padlock accel:        $use_padlock
53682   PKCS#11 support:      $with_p11_kit
53683   TPM support:          $with_tpm
53684 " >&6;}
53685 if test -n "$ac_trousers_lib";then
53686 { $as_echo "$as_me:${as_lineno-$LINENO}:
53687   TPM library:          $ac_trousers_lib
53688 " >&5
53689 $as_echo "$as_me:
53690   TPM library:          $ac_trousers_lib
53691 " >&6;}
53692 fi
53693
53694 { $as_echo "$as_me:${as_lineno-$LINENO}: Optional features:
53695 (note that included applications might not compile properly
53696 if features are disabled)
53697
53698   DTLS-SRTP support:    $ac_enable_srtp
53699   ALPN support:         $ac_enable_alpn
53700   OCSP support:         $ac_enable_ocsp
53701   Ses. ticket support:  $ac_enable_session_tickets
53702   OpenPGP support:      $ac_enable_openpgp
53703   SRP support:          $ac_enable_srp
53704   PSK support:          $ac_enable_psk
53705   DHE support:          $ac_enable_dhe
53706   ECDHE support:        $ac_enable_ecdhe
53707   RSA-EXPORT support:   $ac_enable_rsa_export
53708   Anon auth support:    $ac_enable_anon
53709   Heartbeat support:    $ac_enable_heartbeat
53710   Unicode support:      $ac_have_unicode
53711   Self checks:          $enable_self_checks
53712   Non-SuiteB curves:    $enable_non_suiteb
53713   FIPS140 mode:         $enable_fips
53714 " >&5
53715 $as_echo "$as_me: Optional features:
53716 (note that included applications might not compile properly
53717 if features are disabled)
53718
53719   DTLS-SRTP support:    $ac_enable_srtp
53720   ALPN support:         $ac_enable_alpn
53721   OCSP support:         $ac_enable_ocsp
53722   Ses. ticket support:  $ac_enable_session_tickets
53723   OpenPGP support:      $ac_enable_openpgp
53724   SRP support:          $ac_enable_srp
53725   PSK support:          $ac_enable_psk
53726   DHE support:          $ac_enable_dhe
53727   ECDHE support:        $ac_enable_ecdhe
53728   RSA-EXPORT support:   $ac_enable_rsa_export
53729   Anon auth support:    $ac_enable_anon
53730   Heartbeat support:    $ac_enable_heartbeat
53731   Unicode support:      $ac_have_unicode
53732   Self checks:          $enable_self_checks
53733   Non-SuiteB curves:    $enable_non_suiteb
53734   FIPS140 mode:         $enable_fips
53735 " >&6;}
53736
53737 { $as_echo "$as_me:${as_lineno-$LINENO}: Optional applications:
53738
53739   crywrap app:          $libidn
53740 " >&5
53741 $as_echo "$as_me: Optional applications:
53742
53743   crywrap app:          $libidn
53744 " >&6;}
53745
53746 { $as_echo "$as_me:${as_lineno-$LINENO}: Optional libraries:
53747
53748   Guile wrappers:       $opt_guile_bindings
53749   C++ library:          $use_cxx
53750   DANE library:         $enable_dane
53751   OpenSSL compat:       $enable_openssl
53752 " >&5
53753 $as_echo "$as_me: Optional libraries:
53754
53755   Guile wrappers:       $opt_guile_bindings
53756   C++ library:          $use_cxx
53757   DANE library:         $enable_dane
53758   OpenSSL compat:       $enable_openssl
53759 " >&6;}
53760
53761 { $as_echo "$as_me:${as_lineno-$LINENO}: System files:
53762
53763   Trust store pkcs11:   $with_default_trust_store_pkcs11
53764   Trust store dir:      $with_default_trust_store_dir
53765   Trust store file:     $with_default_trust_store_file
53766   Blacklist file:       $with_default_blacklist_file
53767   CRL file:             $with_default_crl_file
53768   Priority file:        $system_priority_file
53769   DNSSEC root key file: $unbound_root_key_file
53770 " >&5
53771 $as_echo "$as_me: System files:
53772
53773   Trust store pkcs11:   $with_default_trust_store_pkcs11
53774   Trust store dir:      $with_default_trust_store_dir
53775   Trust store file:     $with_default_trust_store_file
53776   Blacklist file:       $with_default_blacklist_file
53777   CRL file:             $with_default_crl_file
53778   Priority file:        $system_priority_file
53779   DNSSEC root key file: $unbound_root_key_file
53780 " >&6;}
53781
53782 if test ! -f "$unbound_root_key_file"; then
53783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
53784 ***
53785 *** The DNSSEC root key file in $unbound_root_key_file was not found.
53786 *** This file is needed for the verification of DNSSEC responses.
53787 *** Use the command: unbound-anchor -a \"$unbound_root_key_file\"
53788 *** to generate or update it.
53789 *** " >&5
53790 $as_echo "$as_me: WARNING:
53791 ***
53792 *** The DNSSEC root key file in $unbound_root_key_file was not found.
53793 *** This file is needed for the verification of DNSSEC responses.
53794 *** Use the command: unbound-anchor -a \"$unbound_root_key_file\"
53795 *** to generate or update it.
53796 *** " >&2;}
53797 fi